diff --git a/RELEASES.md b/RELEASES.md index 5e289c6a8..8bafb2d01 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -888,4 +888,21 @@ Based on: ### Generated - [go v1.38.2] go-client-sdk ### Releases -- [Go v1.38.2] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.38.2 - go-client-sdk \ No newline at end of file +- [Go v1.38.2] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.38.2 - go-client-sdk + +## 2023-10-25 00:11:59 +### Changes +Based on: +- OpenAPI Doc 0.1.0 +- Speakeasy CLI 1.107.0 (2.171.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [swift v0.1.0] swift-client-sdk +- [typescript v1.40.0] typescript-client-sdk +- [csharp v0.1.0] csharp-client-sdk +- [go v1.39.0] go-client-sdk +- [java v1.38.0] java-client-sdk +- [php v1.36.0] php-client-sdk +- [python v2.0.0] python-client-sdk +- [ruby v1.36.0] ruby-client-sdk +### Releases +- [Go v1.39.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.39.0 - go-client-sdk \ No newline at end of file diff --git a/csharp-client-sdk/.gitattributes b/csharp-client-sdk/.gitattributes new file mode 100755 index 000000000..c094dba67 --- /dev/null +++ b/csharp-client-sdk/.gitattributes @@ -0,0 +1,2 @@ +# This allows generated code to be indexed correctly +*.cs linguist-generated=false \ No newline at end of file diff --git a/csharp-client-sdk/.gitignore b/csharp-client-sdk/.gitignore new file mode 100755 index 000000000..b004ecedd --- /dev/null +++ b/csharp-client-sdk/.gitignore @@ -0,0 +1,3 @@ +obj/ +bin/ +debug/ diff --git a/csharp-client-sdk/README.md b/csharp-client-sdk/README.md new file mode 100755 index 000000000..df662844e --- /dev/null +++ b/csharp-client-sdk/README.md @@ -0,0 +1,477 @@ +# openapi + +
+ + + +
+ + +## 🏗 **Welcome to your new SDK!** 🏗 + +It has been generated successfully based on your OpenAPI spec. However, it is not yet ready for production use. Here are some next steps: +- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasyapi.dev/docs/customize-sdks) +- [ ] ♻️ Refine your SDK quickly by iterating locally with the [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) +- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/productionize-sdks/publish-sdks) +- [ ] ✨ When ready to productionize, delete this section from the README + +# SDK Installation + +## Nuget + +```bash +dotnet add package openapi +``` + + +## SDK Example Usage + + + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.GlobalNameOverriddenAsync(); + +// handle response +``` + + +# Second +Do this second +```csharp +using SDK; +using SDK.Models.Operations; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.UsageExamplePostAsync(new UsageExamplePostSecurity() { + Password = "YOUR_PASSWORD", + Username = "YOUR_USERNAME", +}, new UsageExamplePostRequest() { + BigintParameter = 168827, + BigintStrParameter = 446729, + BoolParameter = false, + DateParameter = LocalDate.FromDateTime(DateTime.Parse("2023-06-11")), + DateTimeDefaultParameter = DateTime.Parse("2022-07-22T13:16:48.221Z"), + DateTimeParameter = DateTime.Parse("2021-10-21T09:16:58.799Z"), + DecimalParameter = 5223.72M, + DecimalStrParameter = 2911.37M, + DoubleParameter = 6946.59D, + EnumParameter = SDK.Models.Operations.UsageExamplePostEnumParameter.Value1, + FalseyNumberParameter = 0D, + Float32Parameter = 1029.75F, + FloatParameter = 5669.99D, + Int64Parameter = 195232, + IntParameter = 569663, + StrParameter = "example 1", + RequestBody = new UsageExamplePostRequestBody() { + FakerFormattedStrings = new FakerFormattedStrings() {}, + FakerStrings = new FakerStrings() {}, + SimpleObject = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + OptEnumParameter = SDK.Models.Operations.UsageExamplePostOptEnumParameter.Value3, +}); + +// handle response +``` + + + +# Available Resources and Operations + +## [SDK](docs/sdks/sdk/README.md) + +* [PutAnythingIgnoredGeneration](docs/sdks/sdk/README.md#putanythingignoredgeneration) +* [ResponseBodyJsonGet](docs/sdks/sdk/README.md#responsebodyjsonget) + +## [Auth](docs/sdks/auth/README.md) + +* [ApiKeyAuth](docs/sdks/auth/README.md#apikeyauth) +* [ApiKeyAuthGlobal](docs/sdks/auth/README.md#apikeyauthglobal) +* [BasicAuth](docs/sdks/auth/README.md#basicauth) +* [BearerAuth](docs/sdks/auth/README.md#bearerauth) +* [GlobalBearerAuth](docs/sdks/auth/README.md#globalbearerauth) +* [Oauth2Auth](docs/sdks/auth/README.md#oauth2auth) +* [Oauth2Override](docs/sdks/auth/README.md#oauth2override) +* [OpenIdConnectAuth](docs/sdks/auth/README.md#openidconnectauth) + +## [AuthNew](docs/sdks/authnew/README.md) + +* [ApiKeyAuthGlobalNew](docs/sdks/authnew/README.md#apikeyauthglobalnew) +* [AuthGlobal](docs/sdks/authnew/README.md#authglobal) +* [BasicAuthNew](docs/sdks/authnew/README.md#basicauthnew) +* [MultipleMixedOptionsAuth](docs/sdks/authnew/README.md#multiplemixedoptionsauth) +* [MultipleMixedSchemeAuth](docs/sdks/authnew/README.md#multiplemixedschemeauth) +* [MultipleOptionsWithMixedSchemesAuth](docs/sdks/authnew/README.md#multipleoptionswithmixedschemesauth) +* [MultipleOptionsWithSimpleSchemesAuth](docs/sdks/authnew/README.md#multipleoptionswithsimpleschemesauth) +* [MultipleSimpleOptionsAuth](docs/sdks/authnew/README.md#multiplesimpleoptionsauth) +* [MultipleSimpleSchemeAuth](docs/sdks/authnew/README.md#multiplesimpleschemeauth) +* [Oauth2AuthNew](docs/sdks/authnew/README.md#oauth2authnew) +* [OpenIdConnectAuthNew](docs/sdks/authnew/README.md#openidconnectauthnew) + +## [Documentation](docs/sdks/documentation/README.md) + +* [GetDocumentationPerLanguage](docs/sdks/documentation/README.md#getdocumentationperlanguage) - Gets documentation for some language, I guess. + +## [Errors](docs/sdks/errors/README.md) + +* [ConnectionErrorGet](docs/sdks/errors/README.md#connectionerrorget) +* [StatusGetError](docs/sdks/errors/README.md#statusgeterror) +* [StatusGetXSpeakeasyErrors](docs/sdks/errors/README.md#statusgetxspeakeasyerrors) + +## [First](docs/sdks/first/README.md) + +* [Get](docs/sdks/first/README.md#get) + +## [Flattening](docs/sdks/flattening/README.md) + +* [ComponentBodyAndParamConflict](docs/sdks/flattening/README.md#componentbodyandparamconflict) +* [ComponentBodyAndParamNoConflict](docs/sdks/flattening/README.md#componentbodyandparamnoconflict) +* [ConflictingParams](docs/sdks/flattening/README.md#conflictingparams) +* [InlineBodyAndParamConflict](docs/sdks/flattening/README.md#inlinebodyandparamconflict) +* [InlineBodyAndParamNoConflict](docs/sdks/flattening/README.md#inlinebodyandparamnoconflict) + +## [Generation](docs/sdks/generation/README.md) + +* [AnchorTypesGet](docs/sdks/generation/README.md#anchortypesget) +* [ArrayCircularReferenceGet](docs/sdks/generation/README.md#arraycircularreferenceget) +* [CircularReferenceGet](docs/sdks/generation/README.md#circularreferenceget) +* [DateParamWithDefault](docs/sdks/generation/README.md#dateparamwithdefault) +* [DateTimeParamWithDefault](docs/sdks/generation/README.md#datetimeparamwithdefault) +* [DecimalParamWithDefault](docs/sdks/generation/README.md#decimalparamwithdefault) +* [DeprecatedFieldInSchemaPost](docs/sdks/generation/README.md#deprecatedfieldinschemapost) +* [DeprecatedObjectInSchemaGet](docs/sdks/generation/README.md#deprecatedobjectinschemaget) +* [~~DeprecatedOperationNoCommentsGet~~](docs/sdks/generation/README.md#deprecatedoperationnocommentsget) - :warning: **Deprecated** +* [~~DeprecatedOperationWithCommentsGet~~](docs/sdks/generation/README.md#deprecatedoperationwithcommentsget) - This is an endpoint setup to test deprecation with comments :warning: **Deprecated** Use `SimplePathParameterObjects` instead. +* [EmptyObjectGet](docs/sdks/generation/README.md#emptyobjectget) +* [EmptyResponseObjectWithCommentGet](docs/sdks/generation/README.md#emptyresponseobjectwithcommentget) +* [GlobalNameOverridden](docs/sdks/generation/README.md#globalnameoverridden) +* [IgnoredGenerationGet](docs/sdks/generation/README.md#ignoredgenerationget) +* [IgnoresPost](docs/sdks/generation/README.md#ignorespost) +* [NameOverride](docs/sdks/generation/README.md#nameoverride) +* [ObjectCircularReferenceGet](docs/sdks/generation/README.md#objectcircularreferenceget) +* [OneOfCircularReferenceGet](docs/sdks/generation/README.md#oneofcircularreferenceget) +* [TypedParameterGenerationGet](docs/sdks/generation/README.md#typedparametergenerationget) +* [UsageExamplePost](docs/sdks/generation/README.md#usageexamplepost) - An operation used for testing usage examples + +## [Globals](docs/sdks/globals/README.md) + +* [GlobalPathParameterGet](docs/sdks/globals/README.md#globalpathparameterget) +* [GlobalsQueryParameterGet](docs/sdks/globals/README.md#globalsqueryparameterget) + + +## [Nest.First](docs/sdks/nestfirst/README.md) + +* [Get](docs/sdks/nestfirst/README.md#get) + +## [Nested](docs/sdks/nested/README.md) + +* [Get](docs/sdks/nested/README.md#get) + +## [Nested.First](docs/sdks/nestedfirst/README.md) + +* [Get](docs/sdks/nestedfirst/README.md#get) + +## [Nested.Second](docs/sdks/nestedsecond/README.md) + +* [Get](docs/sdks/nestedsecond/README.md#get) + +## [Pagination](docs/sdks/pagination/README.md) + +* [PaginationCursorBody](docs/sdks/pagination/README.md#paginationcursorbody) +* [PaginationCursorParams](docs/sdks/pagination/README.md#paginationcursorparams) +* [PaginationLimitOffsetOffsetBody](docs/sdks/pagination/README.md#paginationlimitoffsetoffsetbody) +* [PaginationLimitOffsetOffsetParams](docs/sdks/pagination/README.md#paginationlimitoffsetoffsetparams) +* [PaginationLimitOffsetPageBody](docs/sdks/pagination/README.md#paginationlimitoffsetpagebody) +* [PaginationLimitOffsetPageParams](docs/sdks/pagination/README.md#paginationlimitoffsetpageparams) + +## [Parameters](docs/sdks/parameters/README.md) + +* [DeepObjectQueryParamsMap](docs/sdks/parameters/README.md#deepobjectqueryparamsmap) +* [DeepObjectQueryParamsObject](docs/sdks/parameters/README.md#deepobjectqueryparamsobject) +* [DuplicateParam](docs/sdks/parameters/README.md#duplicateparam) +* [FormQueryParamsArray](docs/sdks/parameters/README.md#formqueryparamsarray) +* [FormQueryParamsCamelObject](docs/sdks/parameters/README.md#formqueryparamscamelobject) +* [FormQueryParamsMap](docs/sdks/parameters/README.md#formqueryparamsmap) +* [FormQueryParamsObject](docs/sdks/parameters/README.md#formqueryparamsobject) +* [FormQueryParamsPrimitive](docs/sdks/parameters/README.md#formqueryparamsprimitive) +* [FormQueryParamsRefParamObject](docs/sdks/parameters/README.md#formqueryparamsrefparamobject) +* [HeaderParamsArray](docs/sdks/parameters/README.md#headerparamsarray) +* [HeaderParamsMap](docs/sdks/parameters/README.md#headerparamsmap) +* [HeaderParamsObject](docs/sdks/parameters/README.md#headerparamsobject) +* [HeaderParamsPrimitive](docs/sdks/parameters/README.md#headerparamsprimitive) +* [JsonQueryParamsObject](docs/sdks/parameters/README.md#jsonqueryparamsobject) +* [MixedParametersCamelCase](docs/sdks/parameters/README.md#mixedparameterscamelcase) +* [MixedParametersPrimitives](docs/sdks/parameters/README.md#mixedparametersprimitives) +* [MixedQueryParams](docs/sdks/parameters/README.md#mixedqueryparams) +* [PathParameterJson](docs/sdks/parameters/README.md#pathparameterjson) +* [PipeDelimitedQueryParamsArray](docs/sdks/parameters/README.md#pipedelimitedqueryparamsarray) +* [SimplePathParameterArrays](docs/sdks/parameters/README.md#simplepathparameterarrays) +* [SimplePathParameterMaps](docs/sdks/parameters/README.md#simplepathparametermaps) +* [SimplePathParameterObjects](docs/sdks/parameters/README.md#simplepathparameterobjects) +* [SimplePathParameterPrimitives](docs/sdks/parameters/README.md#simplepathparameterprimitives) + +## [RequestBodies](docs/sdks/requestbodies/README.md) + +* [NullableObjectPost](docs/sdks/requestbodies/README.md#nullableobjectpost) +* [NullableRequiredEmptyObjectPost](docs/sdks/requestbodies/README.md#nullablerequiredemptyobjectpost) +* [NullableRequiredPropertyPost](docs/sdks/requestbodies/README.md#nullablerequiredpropertypost) +* [NullableRequiredSharedObjectPost](docs/sdks/requestbodies/README.md#nullablerequiredsharedobjectpost) +* [RequestBodyPostApplicationJsonArray](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarray) +* [RequestBodyPostApplicationJsonArrayCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarraycamelcase) +* [RequestBodyPostApplicationJsonArrayObj](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayobj) +* [RequestBodyPostApplicationJsonArrayObjCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayobjcamelcase) +* [RequestBodyPostApplicationJsonArrayOfArray](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayofarray) +* [RequestBodyPostApplicationJsonArrayOfArrayCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayofarraycamelcase) +* [RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayofarrayofprimitive) +* [RequestBodyPostApplicationJsonArrayOfMap](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayofmap) +* [RequestBodyPostApplicationJsonArrayOfMapCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayofmapcamelcase) +* [RequestBodyPostApplicationJsonArrayOfPrimitive](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonarrayofprimitive) +* [RequestBodyPostApplicationJsonDeep](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsondeep) +* [RequestBodyPostApplicationJsonDeepCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsondeepcamelcase) +* [RequestBodyPostApplicationJsonMap](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmap) +* [RequestBodyPostApplicationJsonMapCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapcamelcase) +* [RequestBodyPostApplicationJsonMapObj](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapobj) +* [RequestBodyPostApplicationJsonMapObjCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapobjcamelcase) +* [RequestBodyPostApplicationJsonMapOfArray](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapofarray) +* [RequestBodyPostApplicationJsonMapOfArrayCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapofarraycamelcase) +* [RequestBodyPostApplicationJsonMapOfMap](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapofmap) +* [RequestBodyPostApplicationJsonMapOfMapCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapofmapcamelcase) +* [RequestBodyPostApplicationJsonMapOfMapOfPrimitive](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapofmapofprimitive) +* [RequestBodyPostApplicationJsonMapOfPrimitive](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmapofprimitive) +* [RequestBodyPostApplicationJsonMultipleJsonFiltered](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonmultiplejsonfiltered) +* [RequestBodyPostApplicationJsonSimple](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonsimple) +* [RequestBodyPostApplicationJsonSimpleCamelCase](docs/sdks/requestbodies/README.md#requestbodypostapplicationjsonsimplecamelcase) +* [RequestBodyPostComplexNumberTypes](docs/sdks/requestbodies/README.md#requestbodypostcomplexnumbertypes) +* [RequestBodyPostDefaultsAndConsts](docs/sdks/requestbodies/README.md#requestbodypostdefaultsandconsts) +* [RequestBodyPostEmptyObject](docs/sdks/requestbodies/README.md#requestbodypostemptyobject) +* [RequestBodyPostFormDeep](docs/sdks/requestbodies/README.md#requestbodypostformdeep) +* [RequestBodyPostFormMapPrimitive](docs/sdks/requestbodies/README.md#requestbodypostformmapprimitive) +* [RequestBodyPostFormSimple](docs/sdks/requestbodies/README.md#requestbodypostformsimple) +* [RequestBodyPostJsonDataTypesArrayBigInt](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesarraybigint) +* [RequestBodyPostJsonDataTypesArrayDate](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesarraydate) +* [RequestBodyPostJsonDataTypesArrayDecimalStr](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesarraydecimalstr) +* [RequestBodyPostJsonDataTypesBigInt](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesbigint) +* [RequestBodyPostJsonDataTypesBigIntStr](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesbigintstr) +* [RequestBodyPostJsonDataTypesBoolean](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesboolean) +* [RequestBodyPostJsonDataTypesDate](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesdate) +* [RequestBodyPostJsonDataTypesDateTime](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesdatetime) +* [RequestBodyPostJsonDataTypesDecimal](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesdecimal) +* [RequestBodyPostJsonDataTypesDecimalStr](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesdecimalstr) +* [RequestBodyPostJsonDataTypesFloat32](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesfloat32) +* [RequestBodyPostJsonDataTypesInt32](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesint32) +* [RequestBodyPostJsonDataTypesInteger](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesinteger) +* [RequestBodyPostJsonDataTypesMapBigIntStr](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesmapbigintstr) +* [RequestBodyPostJsonDataTypesMapDateTime](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesmapdatetime) +* [RequestBodyPostJsonDataTypesMapDecimal](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesmapdecimal) +* [RequestBodyPostJsonDataTypesNumber](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesnumber) +* [RequestBodyPostJsonDataTypesString](docs/sdks/requestbodies/README.md#requestbodypostjsondatatypesstring) +* [RequestBodyPostMultipleContentTypesComponentFiltered](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypescomponentfiltered) +* [RequestBodyPostMultipleContentTypesInlineFiltered](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypesinlinefiltered) +* [RequestBodyPostMultipleContentTypesSplitParamForm](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypessplitparamform) +* [RequestBodyPostMultipleContentTypesSplitParamJson](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypessplitparamjson) +* [RequestBodyPostMultipleContentTypesSplitParamMultipart](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypessplitparammultipart) +* [RequestBodyPostMultipleContentTypesSplitForm](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypessplitform) +* [RequestBodyPostMultipleContentTypesSplitJson](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypessplitjson) +* [RequestBodyPostMultipleContentTypesSplitMultipart](docs/sdks/requestbodies/README.md#requestbodypostmultiplecontenttypessplitmultipart) +* [RequestBodyPostNotNullableNotRequiredStringBody](docs/sdks/requestbodies/README.md#requestbodypostnotnullablenotrequiredstringbody) +* [RequestBodyPostNullArray](docs/sdks/requestbodies/README.md#requestbodypostnullarray) +* [RequestBodyPostNullDictionary](docs/sdks/requestbodies/README.md#requestbodypostnulldictionary) +* [RequestBodyPostNullableNotRequiredStringBody](docs/sdks/requestbodies/README.md#requestbodypostnullablenotrequiredstringbody) +* [RequestBodyPostNullableRequiredStringBody](docs/sdks/requestbodies/README.md#requestbodypostnullablerequiredstringbody) +* [RequestBodyPutBytes](docs/sdks/requestbodies/README.md#requestbodyputbytes) +* [RequestBodyPutBytesWithParams](docs/sdks/requestbodies/README.md#requestbodyputbyteswithparams) +* [RequestBodyPutMultipartDeep](docs/sdks/requestbodies/README.md#requestbodyputmultipartdeep) +* [RequestBodyPutMultipartDifferentFileName](docs/sdks/requestbodies/README.md#requestbodyputmultipartdifferentfilename) +* [RequestBodyPutMultipartFile](docs/sdks/requestbodies/README.md#requestbodyputmultipartfile) +* [RequestBodyPutMultipartSimple](docs/sdks/requestbodies/README.md#requestbodyputmultipartsimple) +* [RequestBodyPutString](docs/sdks/requestbodies/README.md#requestbodyputstring) +* [RequestBodyPutStringWithParams](docs/sdks/requestbodies/README.md#requestbodyputstringwithparams) +* [RequestBodyReadAndWrite](docs/sdks/requestbodies/README.md#requestbodyreadandwrite) +* [RequestBodyReadOnlyInput](docs/sdks/requestbodies/README.md#requestbodyreadonlyinput) +* [RequestBodyReadOnlyUnion](docs/sdks/requestbodies/README.md#requestbodyreadonlyunion) +* [RequestBodyReadWriteOnlyUnion](docs/sdks/requestbodies/README.md#requestbodyreadwriteonlyunion) +* [RequestBodyWriteOnly](docs/sdks/requestbodies/README.md#requestbodywriteonly) +* [RequestBodyWriteOnlyOutput](docs/sdks/requestbodies/README.md#requestbodywriteonlyoutput) +* [RequestBodyWriteOnlyUnion](docs/sdks/requestbodies/README.md#requestbodywriteonlyunion) + +## [Resource](docs/sdks/resource/README.md) + +* [CreateFile](docs/sdks/resource/README.md#createfile) +* [CreateResource](docs/sdks/resource/README.md#createresource) +* [DeleteResource](docs/sdks/resource/README.md#deleteresource) +* [GetResource](docs/sdks/resource/README.md#getresource) +* [UpdateResource](docs/sdks/resource/README.md#updateresource) + +## [ResponseBodies](docs/sdks/responsebodies/README.md) + +* [ResponseBodyAdditionalPropertiesComplexNumbersPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiescomplexnumberspost) +* [ResponseBodyAdditionalPropertiesDatePost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesdatepost) +* [ResponseBodyAdditionalPropertiesObjectPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesobjectpost) +* [ResponseBodyAdditionalPropertiesPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiespost) +* [ResponseBodyBytesGet](docs/sdks/responsebodies/README.md#responsebodybytesget) +* [ResponseBodyEmptyWithHeaders](docs/sdks/responsebodies/README.md#responsebodyemptywithheaders) +* [ResponseBodyOptionalGet](docs/sdks/responsebodies/README.md#responsebodyoptionalget) +* [ResponseBodyReadOnly](docs/sdks/responsebodies/README.md#responsebodyreadonly) +* [ResponseBodyStringGet](docs/sdks/responsebodies/README.md#responsebodystringget) +* [ResponseBodyXmlGet](docs/sdks/responsebodies/README.md#responsebodyxmlget) +* [ResponseBodyZeroValueComplexTypePtrsPost](docs/sdks/responsebodies/README.md#responsebodyzerovaluecomplextypeptrspost) + +## [Retries](docs/sdks/retries/README.md) + +* [RetriesGet](docs/sdks/retries/README.md#retriesget) + +## [Second](docs/sdks/second/README.md) + +* [Get](docs/sdks/second/README.md#get) + +## [Servers](docs/sdks/servers/README.md) + +* [SelectGlobalServer](docs/sdks/servers/README.md#selectglobalserver) +* [SelectServerWithID](docs/sdks/servers/README.md#selectserverwithid) - Select a server by ID. +* [ServerWithProtocolTemplate](docs/sdks/servers/README.md#serverwithprotocoltemplate) +* [ServerWithTemplates](docs/sdks/servers/README.md#serverwithtemplates) +* [ServerWithTemplatesGlobal](docs/sdks/servers/README.md#serverwithtemplatesglobal) +* [ServersByIDWithTemplates](docs/sdks/servers/README.md#serversbyidwithtemplates) + +## [Telemetry](docs/sdks/telemetry/README.md) + +* [TelemetrySpeakeasyUserAgentGet](docs/sdks/telemetry/README.md#telemetryspeakeasyuseragentget) +* [TelemetryUserAgentGet](docs/sdks/telemetry/README.md#telemetryuseragentget) + +## [Unions](docs/sdks/unions/README.md) + +* [FlattenedTypedObjectPost](docs/sdks/unions/README.md#flattenedtypedobjectpost) +* [MixedTypeOneOfPost](docs/sdks/unions/README.md#mixedtypeoneofpost) +* [NullableOneOfRefInObjectPost](docs/sdks/unions/README.md#nullableoneofrefinobjectpost) +* [NullableOneOfSchemaPost](docs/sdks/unions/README.md#nullableoneofschemapost) +* [NullableOneOfTypeInObjectPost](docs/sdks/unions/README.md#nullableoneoftypeinobjectpost) +* [NullableTypedObjectPost](docs/sdks/unions/README.md#nullabletypedobjectpost) +* [PrimitiveTypeOneOfPost](docs/sdks/unions/README.md#primitivetypeoneofpost) +* [StronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) +* [TypedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) +* [TypedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [UnionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [UnionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) +* [WeaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) + + + + + + + + + +# Global Parameters + +Certain parameters are configured globally. These parameters must be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. + +For example, you can set `globalPathParam` to `100` at SDK initialization and then you do not have to pass the same value on calls to operations like `GlobalPathParameterGet`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. + + +## Available Globals + +The following global parameters are available. The required parameters must be set when you initialize the SDK client. + +| Name | Type | Required | Description | +| ---- | ---- |:--------:| ----------- | +| globalPathParam | long | ✔️ | The globalPathParam parameter. | +| globalQueryParam | string | ✔️ | The globalQueryParam parameter. | + + + +## Example #1 + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Globals.GlobalPathParameterGetAsync(719830); + +// handle response +``` + + +## Example #2 + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Globals.GlobalsQueryParameterGetAsync("string"); + +// handle response +``` + + + + + +# Development + +## Maturity + +This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage +to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally +looking for the latest version. + +## Contributions + +While we value open-source contributions to this SDK, this library is generated programmatically. +Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release! + +### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/csharp-client-sdk/SDK.sln b/csharp-client-sdk/SDK.sln new file mode 100755 index 000000000..823ccf9ef --- /dev/null +++ b/csharp-client-sdk/SDK.sln @@ -0,0 +1,18 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SDK", "SDK\SDK.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests/Tests.csproj", "{94ECA098-99ED-4231-B020-71F1A2DA4C11}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Auth.cs b/csharp-client-sdk/SDK/Auth.cs new file mode 100755 index 000000000..8c6462035 --- /dev/null +++ b/csharp-client-sdk/SDK/Auth.cs @@ -0,0 +1,429 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing authentication. + /// + public interface IAuthSDK + { + Task ApiKeyAuthAsync(ApiKeyAuthSecurity security); + Task ApiKeyAuthGlobalAsync(); + Task BasicAuthAsync(BasicAuthSecurity security, string passwd, string user); + Task BearerAuthAsync(BearerAuthSecurity security); + Task GlobalBearerAuthAsync(); + Task Oauth2AuthAsync(Oauth2AuthSecurity security); + Task Oauth2OverrideAsync(Oauth2OverrideSecurity security); + Task OpenIdConnectAuthAsync(OpenIdConnectAuthSecurity security); + } + + /// + /// Endpoints for testing authentication. + /// + public class AuthSDK: IAuthSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public AuthSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task ApiKeyAuthAsync(ApiKeyAuthSecurity security) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer#operation"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ApiKeyAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task ApiKeyAuthGlobalAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ApiKeyAuthGlobalResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task BasicAuthAsync(BasicAuthSecurity security, string passwd, string user) + { + var request = new BasicAuthRequest() + { + Passwd = passwd, + User = user, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/basic-auth/{user}/{passwd}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new BasicAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.User = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task BearerAuthAsync(BearerAuthSecurity security) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer#bearer"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new BearerAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task GlobalBearerAuthAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer#global"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GlobalBearerAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task Oauth2AuthAsync(Oauth2AuthSecurity security) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer#oauth2"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new Oauth2AuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task Oauth2OverrideAsync(Oauth2OverrideSecurity security) + { + var request = new Oauth2OverrideRequest() + { + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer#oauth2AuthOverride"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new Oauth2OverrideResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task OpenIdConnectAuthAsync(OpenIdConnectAuthSecurity security) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bearer#openIdConnect"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new OpenIdConnectAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Token = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 401)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/AuthNew.cs b/csharp-client-sdk/SDK/AuthNew.cs new file mode 100755 index 000000000..46afcae2b --- /dev/null +++ b/csharp-client-sdk/SDK/AuthNew.cs @@ -0,0 +1,669 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing authentication. + /// + public interface IAuthNewSDK + { + Task ApiKeyAuthGlobalNewAsync(AuthServiceRequestBody request, string? serverUrl = null); + Task AuthGlobalAsync(AuthServiceRequestBody request, string? serverUrl = null); + Task BasicAuthNewAsync(BasicAuthNewSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task MultipleMixedOptionsAuthAsync(MultipleMixedOptionsAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task MultipleMixedSchemeAuthAsync(MultipleMixedSchemeAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task MultipleOptionsWithMixedSchemesAuthAsync(MultipleOptionsWithMixedSchemesAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task MultipleOptionsWithSimpleSchemesAuthAsync(MultipleOptionsWithSimpleSchemesAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task MultipleSimpleOptionsAuthAsync(MultipleSimpleOptionsAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task MultipleSimpleSchemeAuthAsync(MultipleSimpleSchemeAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task Oauth2AuthNewAsync(Oauth2AuthNewSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + Task OpenIdConnectAuthNewAsync(OpenIdConnectAuthNewSecurity security, AuthServiceRequestBody request, string? serverUrl = null); + } + + /// + /// Endpoints for testing authentication. + /// + public class AuthNewSDK: IAuthNewSDK + { + /** + * ApiKeyAuthGlobalNewSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] ApiKeyAuthGlobalNewSERVERS = { + "http://localhost:35456", + }; + + /** + * AuthGlobalSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] AuthGlobalSERVERS = { + "http://localhost:35456", + }; + + /** + * BasicAuthNewSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] BasicAuthNewSERVERS = { + "http://localhost:35456", + }; + + /** + * MultipleMixedOptionsAuthSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] MultipleMixedOptionsAuthSERVERS = { + "http://localhost:35456", + }; + + /** + * MultipleMixedSchemeAuthSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] MultipleMixedSchemeAuthSERVERS = { + "http://localhost:35456", + }; + + /** + * MultipleOptionsWithMixedSchemesAuthSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] MultipleOptionsWithMixedSchemesAuthSERVERS = { + "http://localhost:35456", + }; + + /** + * MultipleOptionsWithSimpleSchemesAuthSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] MultipleOptionsWithSimpleSchemesAuthSERVERS = { + "http://localhost:35456", + }; + + /** + * MultipleSimpleOptionsAuthSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] MultipleSimpleOptionsAuthSERVERS = { + "http://localhost:35456", + }; + + /** + * MultipleSimpleSchemeAuthSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] MultipleSimpleSchemeAuthSERVERS = { + "http://localhost:35456", + }; + + /** + * Oauth2AuthNewSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] Oauth2AuthNewSERVERS = { + "http://localhost:35456", + }; + + /** + * OpenIdConnectAuthNewSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] OpenIdConnectAuthNewSERVERS = { + "http://localhost:35456", + }; + + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public AuthNewSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task ApiKeyAuthGlobalNewAsync(AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = ApiKeyAuthGlobalNewSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#apiKeyAuthGlobal"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ApiKeyAuthGlobalNewResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task AuthGlobalAsync(AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = AuthGlobalSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#authGlobal"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new AuthGlobalResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task BasicAuthNewAsync(BasicAuthNewSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = BasicAuthNewSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#basicAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new BasicAuthNewResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task MultipleMixedOptionsAuthAsync(MultipleMixedOptionsAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = MultipleMixedOptionsAuthSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#multipleMixedOptionsAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MultipleMixedOptionsAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task MultipleMixedSchemeAuthAsync(MultipleMixedSchemeAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = MultipleMixedSchemeAuthSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#multipleMixedSchemeAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MultipleMixedSchemeAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task MultipleOptionsWithMixedSchemesAuthAsync(MultipleOptionsWithMixedSchemesAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = MultipleOptionsWithMixedSchemesAuthSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#multipleOptionsWithMixedSchemesAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MultipleOptionsWithMixedSchemesAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task MultipleOptionsWithSimpleSchemesAuthAsync(MultipleOptionsWithSimpleSchemesAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = MultipleOptionsWithSimpleSchemesAuthSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#multipleOptionsWithSimpleSchemesAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MultipleOptionsWithSimpleSchemesAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task MultipleSimpleOptionsAuthAsync(MultipleSimpleOptionsAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = MultipleSimpleOptionsAuthSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#multipleSimpleOptionsAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MultipleSimpleOptionsAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task MultipleSimpleSchemeAuthAsync(MultipleSimpleSchemeAuthSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = MultipleSimpleSchemeAuthSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#multipleSimpleSchemeAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MultipleSimpleSchemeAuthResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task Oauth2AuthNewAsync(Oauth2AuthNewSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = Oauth2AuthNewSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#oauth2Auth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new Oauth2AuthNewResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + + public async Task OpenIdConnectAuthNewAsync(OpenIdConnectAuthNewSecurity security, AuthServiceRequestBody request, string? serverUrl = null) + { + string baseUrl = OpenIdConnectAuthNewSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/auth#openIdConnectAuth"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new OpenIdConnectAuthNewResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 401)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Documentation.cs b/csharp-client-sdk/SDK/Documentation.cs new file mode 100755 index 000000000..badd75ea1 --- /dev/null +++ b/csharp-client-sdk/SDK/Documentation.cs @@ -0,0 +1,96 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Testing for documentation extensions and tooling. + /// + public interface IDocumentationSDK + { + + /// + /// Gets documentation for some language, I guess. + /// + Task GetDocumentationPerLanguageAsync(string language); + } + + /// + /// Testing for documentation extensions and tooling. + /// + public class DocumentationSDK: IDocumentationSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public DocumentationSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GetDocumentationPerLanguageAsync(string language) + { + var request = new GetDocumentationPerLanguageRequest() + { + Language = language, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/docs/per-language-docs", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GetDocumentationPerLanguageResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Errors.cs b/csharp-client-sdk/SDK/Errors.cs new file mode 100755 index 000000000..56be068a6 --- /dev/null +++ b/csharp-client-sdk/SDK/Errors.cs @@ -0,0 +1,211 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing error responses. + /// + public interface IErrorsSDK + { + Task ConnectionErrorGetAsync(string? serverUrl = null); + Task StatusGetErrorAsync(long statusCode); + Task StatusGetXSpeakeasyErrorsAsync(long statusCode, string? serverUrl = null); + } + + /// + /// Endpoints for testing error responses. + /// + public class ErrorsSDK: IErrorsSDK + { + /** + * ConnectionErrorGetSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] ConnectionErrorGetSERVERS = { + "http://somebrokenapi.broken", + }; + + /** + * StatusGetXSpeakeasyErrorsSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] StatusGetXSpeakeasyErrorsSERVERS = { + "http://localhost:35456", + }; + + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public ErrorsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task ConnectionErrorGetAsync(string? serverUrl = null) + { + string baseUrl = ConnectionErrorGetSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/connectionError"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ConnectionErrorGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task StatusGetErrorAsync(long statusCode) + { + var request = new StatusGetErrorRequest() + { + StatusCode = statusCode, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/status/{statusCode}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new StatusGetErrorResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 300) || (response.StatusCode == 400) || (response.StatusCode == 500)) + { + + return response; + } + return response; + } + + + public async Task StatusGetXSpeakeasyErrorsAsync(long statusCode, string? serverUrl = null) + { + var request = new StatusGetXSpeakeasyErrorsRequest() + { + StatusCode = statusCode, + }; + string baseUrl = StatusGetXSpeakeasyErrorsSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/errors/{statusCode}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new StatusGetXSpeakeasyErrorsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200) || (response.StatusCode == 300) || (response.StatusCode == 400)) + { + + return response; + } + if((response.StatusCode == 500)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Error = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + if((response.StatusCode == 501)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.StatusGetXSpeakeasyErrors501ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/First.cs b/csharp-client-sdk/SDK/First.cs new file mode 100755 index 000000000..26ec0cc62 --- /dev/null +++ b/csharp-client-sdk/SDK/First.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface IFirstSDK + { + Task GetAsync(); + } + + public class FirstSDK: IFirstSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public FirstSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/group/first"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GroupFirstGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Flattening.cs b/csharp-client-sdk/SDK/Flattening.cs new file mode 100755 index 000000000..cb9b7a9a6 --- /dev/null +++ b/csharp-client-sdk/SDK/Flattening.cs @@ -0,0 +1,319 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing flattening through request body and parameter combinations. + /// + public interface IFlatteningSDK + { + Task ComponentBodyAndParamConflictAsync(SimpleObject simpleObject, string str); + Task ComponentBodyAndParamNoConflictAsync(string paramStr, SimpleObject simpleObject); + Task ConflictingParamsAsync(string strPathParameter, string strQueryParameter); + Task InlineBodyAndParamConflictAsync(InlineBodyAndParamConflictRequestBody requestBody, string str); + Task InlineBodyAndParamNoConflictAsync(InlineBodyAndParamNoConflictRequestBody requestBody, string paramStr); + } + + /// + /// Endpoints for testing flattening through request body and parameter combinations. + /// + public class FlatteningSDK: IFlatteningSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public FlatteningSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task ComponentBodyAndParamConflictAsync(SimpleObject simpleObject, string str) + { + var request = new ComponentBodyAndParamConflictRequest() + { + SimpleObject = simpleObject, + Str = str, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/flattening/componentBodyAndParamConflict", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "SimpleObject", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ComponentBodyAndParamConflictResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ComponentBodyAndParamNoConflictAsync(string paramStr, SimpleObject simpleObject) + { + var request = new ComponentBodyAndParamNoConflictRequest() + { + ParamStr = paramStr, + SimpleObject = simpleObject, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/flattening/componentBodyAndParamNoConflict", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "SimpleObject", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ComponentBodyAndParamNoConflictResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ConflictingParamsAsync(string strPathParameter, string strQueryParameter) + { + var request = new ConflictingParamsRequest() + { + StrPathParameter = strPathParameter, + StrQueryParameter = strQueryParameter, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/flattening/conflictingParams/{str}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ConflictingParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task InlineBodyAndParamConflictAsync(InlineBodyAndParamConflictRequestBody requestBody, string str) + { + var request = new InlineBodyAndParamConflictRequest() + { + RequestBody = requestBody, + Str = str, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/flattening/inlineBodyAndParamConflict", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new InlineBodyAndParamConflictResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task InlineBodyAndParamNoConflictAsync(InlineBodyAndParamNoConflictRequestBody requestBody, string paramStr) + { + var request = new InlineBodyAndParamNoConflictRequest() + { + RequestBody = requestBody, + ParamStr = paramStr, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/flattening/inlineBodyAndParamNoConflict", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new InlineBodyAndParamNoConflictResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Generation.cs b/csharp-client-sdk/SDK/Generation.cs new file mode 100755 index 000000000..f4e36ce32 --- /dev/null +++ b/csharp-client-sdk/SDK/Generation.cs @@ -0,0 +1,925 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Numerics; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for purely testing valid generation behavior. + /// + public interface IGenerationSDK + { + Task AnchorTypesGetAsync(); + Task ArrayCircularReferenceGetAsync(); + Task CircularReferenceGetAsync(); + Task DateParamWithDefaultAsync(LocalDate dateInput); + Task DateTimeParamWithDefaultAsync(DateTime dateTimeInput); + Task DecimalParamWithDefaultAsync(decimal decimalInput); + Task DeprecatedFieldInSchemaPostAsync(DeprecatedFieldInObject request); + Task DeprecatedObjectInSchemaGetAsync(); + Task DeprecatedOperationNoCommentsGetAsync(string? deprecatedParameter = null); + + /// + /// This is an endpoint setup to test deprecation with comments + /// + Task DeprecatedOperationWithCommentsGetAsync(string? deprecatedParameter = null, string? newParameter = null); + Task EmptyObjectGetAsync(EmptyObjectParam emptyObject); + Task EmptyResponseObjectWithCommentGetAsync(); + Task GlobalNameOverriddenAsync(); + Task IgnoredGenerationGetAsync(); + Task IgnoresPostAsync(IgnoresPostApplicationJSON requestBody, string? testParam = null); + Task NameOverrideAsync(NameOverrideGetEnumNameOverride testEnumQueryParam, string testQueryParam); + Task ObjectCircularReferenceGetAsync(); + Task OneOfCircularReferenceGetAsync(); + Task TypedParameterGenerationGetAsync(BigInteger? bigint = null, LocalDate? date = null, decimal? decimalP = null, TypedParameterGenerationGetObj? obj = null); + + /// + /// An operation used for testing usage examples + /// + /// + /// An operation used for testing usage examples that includes a large array of parameters and input types to ensure that all are handled correctly + /// + /// + /// https://docs.example.com} - Usage example docs + /// + Task UsageExamplePostAsync(UsageExamplePostSecurity security, UsageExamplePostRequest? request = null); + } + + /// + /// Endpoints for purely testing valid generation behavior. + /// + public class GenerationSDK: IGenerationSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public GenerationSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task AnchorTypesGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/anchorTypes"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new AnchorTypesGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.TypeFromAnchor = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ArrayCircularReferenceGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/arrayCircularReference"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ArrayCircularReferenceGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ArrayCircularReferenceObject = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task CircularReferenceGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/circularReference"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new CircularReferenceGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ValidCircularReferenceObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task DateParamWithDefaultAsync(LocalDate dateInput) + { + var request = new DateParamWithDefaultRequest() + { + DateInput = dateInput, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/dateParamWithDefault", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DateParamWithDefaultResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 204)) + { + + return response; + } + return response; + } + + + public async Task DateTimeParamWithDefaultAsync(DateTime dateTimeInput) + { + var request = new DateTimeParamWithDefaultRequest() + { + DateTimeInput = dateTimeInput, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/dateTimeParamWithDefault", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DateTimeParamWithDefaultResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 204)) + { + + return response; + } + return response; + } + + + public async Task DecimalParamWithDefaultAsync(decimal decimalInput) + { + var request = new DecimalParamWithDefaultRequest() + { + DecimalInput = decimalInput, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/decimalParamWithDefault", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DecimalParamWithDefaultResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 204)) + { + + return response; + } + return response; + } + + + public async Task DeprecatedFieldInSchemaPostAsync(DeprecatedFieldInObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/deprecatedFieldInSchema"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeprecatedFieldInSchemaPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task DeprecatedObjectInSchemaGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/deprecatedObjectInSchema"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeprecatedObjectInSchemaGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.DeprecatedObjectInSchemaGet200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + [Obsolete("This method will be removed in a future release, please migrate away from it as soon as possible")] + public async Task DeprecatedOperationNoCommentsGetAsync(string? deprecatedParameter = null) + { + var request = new DeprecatedOperationNoCommentsGetRequest() + { + DeprecatedParameter = deprecatedParameter, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/deprecatedOperationNoComments", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeprecatedOperationNoCommentsGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + [Obsolete("This method will be removed in a future release, please migrate away from it as soon as possible. Use SimplePathParameterObjects instead")] + public async Task DeprecatedOperationWithCommentsGetAsync(string? deprecatedParameter = null, string? newParameter = null) + { + var request = new DeprecatedOperationWithCommentsGetRequest() + { + DeprecatedParameter = deprecatedParameter, + NewParameter = newParameter, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/deprecatedOperationWithComments", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeprecatedOperationWithCommentsGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task EmptyObjectGetAsync(EmptyObjectParam emptyObject) + { + var request = new EmptyObjectGetRequest() + { + EmptyObject = emptyObject, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/{emptyObject}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new EmptyObjectGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task EmptyResponseObjectWithCommentGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/emptyResponseObjectWithComment"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new EmptyResponseObjectWithCommentGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) + { + response.Body = await httpResponse.Content.ReadAsByteArrayAsync(); + } + + return response; + } + return response; + } + + + public async Task GlobalNameOverriddenAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/globalNameOverride"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GetGlobalNameOverrideResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.GetGlobalNameOverride200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task IgnoredGenerationGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/ignoredGeneration"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new IgnoredGenerationGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.IgnoredGenerationGet200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task IgnoresPostAsync(IgnoresPostApplicationJSON requestBody, string? testParam = null) + { + var request = new IgnoresPostRequest() + { + RequestBody = requestBody, + TestParam = testParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/ignores", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new IgnoresPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.HttpBinSimpleJsonObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task NameOverrideAsync(NameOverrideGetEnumNameOverride testEnumQueryParam, string testQueryParam) + { + var request = new NameOverrideGetRequest() + { + TestEnumQueryParam = testEnumQueryParam, + TestQueryParam = testQueryParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/nameOverride", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NameOverrideGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.OverriddenResponse = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ObjectCircularReferenceGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/objectCircularReference"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ObjectCircularReferenceGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ObjectCircularReferenceObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task OneOfCircularReferenceGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/oneOfCircularReference"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new OneOfCircularReferenceGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.OneOfCircularReferenceObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task TypedParameterGenerationGetAsync(BigInteger? bigint = null, LocalDate? date = null, decimal? decimalP = null, TypedParameterGenerationGetObj? obj = null) + { + var request = new TypedParameterGenerationGetRequest() + { + Bigint = bigint, + Date = date, + Decimal = decimalP, + Obj = obj, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/typedParameterGeneration", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new TypedParameterGenerationGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task UsageExamplePostAsync(UsageExamplePostSecurity security, UsageExamplePostRequest? request = null) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/usageExample", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json"); + if (serializedBody != null) + { + httpRequest.Content = serializedBody; + } + + var client = SecuritySerializer.Apply(_defaultClient, security); + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new UsageExamplePostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.UsageExamplePost200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Globals.cs b/csharp-client-sdk/SDK/Globals.cs new file mode 100755 index 000000000..7bb256fbd --- /dev/null +++ b/csharp-client-sdk/SDK/Globals.cs @@ -0,0 +1,144 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing global parameters. + /// + public interface IGlobalsSDK + { + Task GlobalPathParameterGetAsync(long? globalPathParam = null); + Task GlobalsQueryParameterGetAsync(string? globalQueryParam = null); + } + + /// + /// Endpoints for testing global parameters. + /// + public class GlobalsSDK: IGlobalsSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public GlobalsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GlobalPathParameterGetAsync(long? globalPathParam = null) + { + var request = new GlobalPathParameterGetRequest() + { + GlobalPathParam = globalPathParam, + }; + request.GlobalPathParam ??= Config.GlobalPathParam; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/globals/pathParameter/{globalPathParam}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GlobalPathParameterGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task GlobalsQueryParameterGetAsync(string? globalQueryParam = null) + { + var request = new GlobalsQueryParameterGetRequest() + { + GlobalQueryParam = globalQueryParam, + }; + request.GlobalQueryParam ??= Config.GlobalQueryParam; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/globals/queryParameter", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GlobalsQueryParameterGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.cs b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.cs new file mode 100755 index 000000000..ed76c8315 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Callbacks +{ + using Newtonsoft.Json; + + public class IgnoredGenerationGetNotIgnoredCallbackRequestBody + { + + [JsonProperty("someProp")] + public string? SomeProp { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.cs b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.cs new file mode 100755 index 000000000..f41f8c372 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Callbacks +{ + using System.Net.Http; + using System; + + public class IgnoredGenerationGetNotIgnoredCallbackResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.cs b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.cs new file mode 100755 index 000000000..9bd600db6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Callbacks +{ + using Newtonsoft.Json; + + public class IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody + { + + [JsonProperty("someProp")] + public string? SomeProp { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.cs b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.cs new file mode 100755 index 000000000..e3c46ffa1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Callbacks +{ + using System.Net.Http; + using System; + + public class IgnoredGenerationGetSingledIgnoredCallbackOperationResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/AnchorTypesGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/AnchorTypesGetResponse.cs new file mode 100755 index 000000000..9cceb8aff --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/AnchorTypesGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class AnchorTypesGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public TypeFromAnchor? TypeFromAnchor { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalNewResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalNewResponse.cs new file mode 100755 index 000000000..8cd078107 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalNewResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ApiKeyAuthGlobalNewResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalResponse.cs new file mode 100755 index 000000000..9363d87a1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ApiKeyAuthGlobalResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public ApiKeyAuthGlobalToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalToken.cs b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalToken.cs new file mode 100755 index 000000000..7a690da32 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthGlobalToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class ApiKeyAuthGlobalToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthResponse.cs new file mode 100755 index 000000000..679fe634d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ApiKeyAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public ApiKeyAuthToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthSecurity.cs new file mode 100755 index 000000000..a6e061f0b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class ApiKeyAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=Authorization")] + public string ApiKeyAuth { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthToken.cs b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthToken.cs new file mode 100755 index 000000000..7ebbaedea --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ApiKeyAuthToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class ApiKeyAuthToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ArrayCircularReferenceGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ArrayCircularReferenceGetResponse.cs new file mode 100755 index 000000000..2d85b70be --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ArrayCircularReferenceGetResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class ArrayCircularReferenceGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List? ArrayCircularReferenceObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/AuthGlobalResponse.cs b/csharp-client-sdk/SDK/Models/Operations/AuthGlobalResponse.cs new file mode 100755 index 000000000..a40f6971f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/AuthGlobalResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class AuthGlobalResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BasicAuthNewResponse.cs b/csharp-client-sdk/SDK/Models/Operations/BasicAuthNewResponse.cs new file mode 100755 index 000000000..620e3bd30 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BasicAuthNewResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class BasicAuthNewResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BasicAuthNewSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/BasicAuthNewSecurity.cs new file mode 100755 index 000000000..ec5986cd3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BasicAuthNewSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class BasicAuthNewSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic,name=password")] + public string Password { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic,name=username")] + public string Username { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BasicAuthRequest.cs b/csharp-client-sdk/SDK/Models/Operations/BasicAuthRequest.cs new file mode 100755 index 000000000..9594982bf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BasicAuthRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class BasicAuthRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=passwd")] + public string Passwd { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=user")] + public string User { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BasicAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/BasicAuthResponse.cs new file mode 100755 index 000000000..a88a4540d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BasicAuthResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class BasicAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public BasicAuthUser? User { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BasicAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/BasicAuthSecurity.cs new file mode 100755 index 000000000..3ec2e5399 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BasicAuthSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class BasicAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic,name=password")] + public string Password { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic,name=username")] + public string Username { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BasicAuthUser.cs b/csharp-client-sdk/SDK/Models/Operations/BasicAuthUser.cs new file mode 100755 index 000000000..c63f9fc97 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BasicAuthUser.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class BasicAuthUser + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("user")] + public string User { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BearerAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/BearerAuthResponse.cs new file mode 100755 index 000000000..314742ddb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BearerAuthResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class BearerAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public BearerAuthToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BearerAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/BearerAuthSecurity.cs new file mode 100755 index 000000000..394a73ebe --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BearerAuthSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class BearerAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=bearer,name=Authorization")] + public string BearerAuth { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/BearerAuthToken.cs b/csharp-client-sdk/SDK/Models/Operations/BearerAuthToken.cs new file mode 100755 index 000000000..19f0479da --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/BearerAuthToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class BearerAuthToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/CircularReferenceGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/CircularReferenceGetResponse.cs new file mode 100755 index 000000000..ad4b4b0e2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/CircularReferenceGetResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class CircularReferenceGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ValidCircularReferenceObject? ValidCircularReferenceObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictRequest.cs b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictRequest.cs new file mode 100755 index 000000000..f401392ac --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class ComponentBodyAndParamConflictRequest + { + + [SpeakeasyMetadata("request:mediaType=application/json")] + public SimpleObject SimpleObject { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictRes.cs b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictRes.cs new file mode 100755 index 000000000..897a2d499 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictRes.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + using System.Collections.Generic; + + /// + /// OK + /// + public class ComponentBodyAndParamConflictRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictResponse.cs new file mode 100755 index 000000000..6fa0cf26a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamConflictResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ComponentBodyAndParamConflictResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ComponentBodyAndParamConflictRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictRequest.cs b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictRequest.cs new file mode 100755 index 000000000..75450c4b2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class ComponentBodyAndParamNoConflictRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=paramStr")] + public string ParamStr { get; set; } = default!; + + [SpeakeasyMetadata("request:mediaType=application/json")] + public SimpleObject SimpleObject { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictRes.cs b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictRes.cs new file mode 100755 index 000000000..54b284611 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictRes.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + using System.Collections.Generic; + + /// + /// OK + /// + public class ComponentBodyAndParamNoConflictRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictResponse.cs new file mode 100755 index 000000000..5e811bb3c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ComponentBodyAndParamNoConflictResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ComponentBodyAndParamNoConflictResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ComponentBodyAndParamNoConflictRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsRequest.cs new file mode 100755 index 000000000..58205d637 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class ConflictingParamsRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=str")] + public string StrPathParameter { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=str")] + public string StrQueryParameter { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsRes.cs new file mode 100755 index 000000000..89e80acd0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class ConflictingParamsRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsResponse.cs new file mode 100755 index 000000000..fb3241717 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ConflictingParamsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ConflictingParamsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ConflictingParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ConnectionErrorGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ConnectionErrorGetResponse.cs new file mode 100755 index 000000000..6f11a8d47 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ConnectionErrorGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ConnectionErrorGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/CreateFileRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/CreateFileRequestBody.cs new file mode 100755 index 000000000..74f64a5df --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/CreateFileRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class CreateFileRequestBody + { + + [SpeakeasyMetadata("multipartForm:file")] + public CreateFileRequestBodyFile? File { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/CreateFileRequestBodyFile.cs b/csharp-client-sdk/SDK/Models/Operations/CreateFileRequestBodyFile.cs new file mode 100755 index 000000000..612e0599c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/CreateFileRequestBodyFile.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class CreateFileRequestBodyFile + { + + [SpeakeasyMetadata("multipartForm:content")] + public byte[] Content { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=file")] + public string File { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/CreateFileResponse.cs b/csharp-client-sdk/SDK/Models/Operations/CreateFileResponse.cs new file mode 100755 index 000000000..53347fd31 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/CreateFileResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class CreateFileResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// OK + /// + public FileResource? FileResource { get; set; } + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/CreateResourceResponse.cs b/csharp-client-sdk/SDK/Models/Operations/CreateResourceResponse.cs new file mode 100755 index 000000000..76cfe42e4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/CreateResourceResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class CreateResourceResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// OK + /// + public ExampleResource? ExampleResource { get; set; } + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DateParamWithDefaultRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DateParamWithDefaultRequest.cs new file mode 100755 index 000000000..fb0f9be8f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DateParamWithDefaultRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using NodaTime; + using SDK.Utils; + + public class DateParamWithDefaultRequest + { + + /// + /// A date parameter with a default value + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateInput")] + public LocalDate DateInput { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DateParamWithDefaultResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DateParamWithDefaultResponse.cs new file mode 100755 index 000000000..42b2b674f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DateParamWithDefaultResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DateParamWithDefaultResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DateTimeParamWithDefaultRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DateTimeParamWithDefaultRequest.cs new file mode 100755 index 000000000..768ab5a88 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DateTimeParamWithDefaultRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System; + + public class DateTimeParamWithDefaultRequest + { + + /// + /// A date time parameter with a default value + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateTimeInput")] + public DateTime DateTimeInput { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DateTimeParamWithDefaultResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DateTimeParamWithDefaultResponse.cs new file mode 100755 index 000000000..954739177 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DateTimeParamWithDefaultResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DateTimeParamWithDefaultResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DecimalParamWithDefaultRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DecimalParamWithDefaultRequest.cs new file mode 100755 index 000000000..95631933a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DecimalParamWithDefaultRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class DecimalParamWithDefaultRequest + { + + /// + /// A decimal parameter with a default value + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimalInput")] + public decimal DecimalInput { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DecimalParamWithDefaultResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DecimalParamWithDefaultResponse.cs new file mode 100755 index 000000000..c4c0ff1f6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DecimalParamWithDefaultResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DecimalParamWithDefaultResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapRequest.cs new file mode 100755 index 000000000..b7e492392 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class DeepObjectQueryParamsMapRequest + { + + [SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=mapParam")] + public Dictionary MapParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=mapArrParam")] + public Dictionary>? MapArrParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapRes.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapRes.cs new file mode 100755 index 000000000..0b4f5cd3e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class DeepObjectQueryParamsMapRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapResponse.cs new file mode 100755 index 000000000..4d56cf104 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsMapResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeepObjectQueryParamsMapResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public DeepObjectQueryParamsMapRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectObjArrParam.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectObjArrParam.cs new file mode 100755 index 000000000..a229eb2f9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectObjArrParam.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class DeepObjectQueryParamsObjectObjArrParam + { + + [SpeakeasyMetadata("queryParam:name=arr")] + public List? Arr { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectRequest.cs new file mode 100755 index 000000000..05117cee5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectRequest.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class DeepObjectQueryParamsObjectRequest + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=objParam")] + public SimpleObject ObjParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=objArrParam")] + public DeepObjectQueryParamsObjectObjArrParam? ObjArrParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectRes.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectRes.cs new file mode 100755 index 000000000..57c3312bf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class DeepObjectQueryParamsObjectRes + { + + [JsonProperty("args")] + public DeepObjectQueryParamsObjectResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectResArgs.cs new file mode 100755 index 000000000..bdb367888 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectResArgs.cs @@ -0,0 +1,76 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class DeepObjectQueryParamsObjectResArgs + { + + [JsonProperty("objArrParam[arr]")] + public List ObjArrParamArr { get; set; } = default!; + + [JsonProperty("objParam[any]")] + public string ObjParamAny { get; set; } = default!; + + [JsonProperty("objParam[bigintStr]")] + public string? ObjParamBigintStr { get; set; } + + [JsonProperty("objParam[bigint]")] + public string? ObjParamBigint { get; set; } + + [JsonProperty("objParam[boolOpt]")] + public string ObjParamBoolOpt { get; set; } = default!; + + [JsonProperty("objParam[bool]")] + public string ObjParamBool { get; set; } = default!; + + [JsonProperty("objParam[dateTime]")] + public string ObjParamDateTime { get; set; } = default!; + + [JsonProperty("objParam[date]")] + public string ObjParamDate { get; set; } = default!; + + [JsonProperty("objParam[decimalStr]")] + public string? ObjParamDecimalStr { get; set; } + + [JsonProperty("objParam[decimal]")] + public string? ObjParamDecimal { get; set; } + + [JsonProperty("objParam[enum]")] + public string ObjParamEnum { get; set; } = default!; + + [JsonProperty("objParam[float32]")] + public string ObjParamFloat32 { get; set; } = default!; + + [JsonProperty("objParam[int32Enum]")] + public string ObjParamInt32Enum { get; set; } = default!; + + [JsonProperty("objParam[int32]")] + public string ObjParamInt32 { get; set; } = default!; + + [JsonProperty("objParam[intEnum]")] + public string ObjParamIntEnum { get; set; } = default!; + + [JsonProperty("objParam[int]")] + public string ObjParamInt { get; set; } = default!; + + [JsonProperty("objParam[num]")] + public string ObjParamNum { get; set; } = default!; + + [JsonProperty("objParam[strOpt]")] + public string ObjParamStrOpt { get; set; } = default!; + + [JsonProperty("objParam[str]")] + public string ObjParamStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectResponse.cs new file mode 100755 index 000000000..f285910e7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeepObjectQueryParamsObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeepObjectQueryParamsObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public DeepObjectQueryParamsObjectRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeleteResourceRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DeleteResourceRequest.cs new file mode 100755 index 000000000..f5a998ee0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeleteResourceRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class DeleteResourceRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=resourceId")] + public string ResourceId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeleteResourceResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeleteResourceResponse.cs new file mode 100755 index 000000000..af2064d72 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeleteResourceResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeleteResourceResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedFieldInSchemaPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedFieldInSchemaPostResponse.cs new file mode 100755 index 000000000..c21f0390a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedFieldInSchemaPostResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeprecatedFieldInSchemaPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedObjectInSchemaGet200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedObjectInSchemaGet200ApplicationJSON.cs new file mode 100755 index 000000000..a3688969d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedObjectInSchemaGet200ApplicationJSON.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + using System; + + /// + /// A successful response that contains a deprecatedObject sent in the request body + /// + public class DeprecatedObjectInSchemaGet200ApplicationJSON + { + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [JsonProperty("json")] + public DeprecatedObject? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedObjectInSchemaGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedObjectInSchemaGetResponse.cs new file mode 100755 index 000000000..121cf2800 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedObjectInSchemaGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeprecatedObjectInSchemaGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// A successful response that contains a deprecatedObject sent in the request body + /// + public DeprecatedObjectInSchemaGet200ApplicationJSON? DeprecatedObjectInSchemaGet200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationNoCommentsGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationNoCommentsGetRequest.cs new file mode 100755 index 000000000..280ccba76 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationNoCommentsGetRequest.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System; + + public class DeprecatedOperationNoCommentsGetRequest + { + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=deprecatedParameter")] + public string? DeprecatedParameter { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationNoCommentsGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationNoCommentsGetResponse.cs new file mode 100755 index 000000000..8e20138f0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationNoCommentsGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeprecatedOperationNoCommentsGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationWithCommentsGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationWithCommentsGetRequest.cs new file mode 100755 index 000000000..3ec0b2f21 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationWithCommentsGetRequest.cs @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System; + + public class DeprecatedOperationWithCommentsGetRequest + { + + /// + /// This is a string parameter + /// + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use NewParameter instead")] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=deprecatedParameter")] + public string? DeprecatedParameter { get; set; } + + /// + /// This is a string parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=newParameter")] + public string? NewParameter { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationWithCommentsGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationWithCommentsGetResponse.cs new file mode 100755 index 000000000..cdfa67926 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DeprecatedOperationWithCommentsGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DeprecatedOperationWithCommentsGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DuplicateParamDuplicateParamResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DuplicateParamDuplicateParamResponse.cs new file mode 100755 index 000000000..c33b731c6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DuplicateParamDuplicateParamResponse.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class DuplicateParamDuplicateParamResponse + { + + [JsonProperty("url")] + public string? Url { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DuplicateParamRequest.cs b/csharp-client-sdk/SDK/Models/Operations/DuplicateParamRequest.cs new file mode 100755 index 000000000..5629647e4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DuplicateParamRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class DuplicateParamRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=duplicateParamRequest")] + public string DuplicateParamRequestValue { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/DuplicateParamResponse.cs b/csharp-client-sdk/SDK/Models/Operations/DuplicateParamResponse.cs new file mode 100755 index 000000000..3e20382cc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/DuplicateParamResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class DuplicateParamResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public DuplicateParamDuplicateParamResponse? DuplicateParamResponseValue { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/EmptyObjectGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/EmptyObjectGetRequest.cs new file mode 100755 index 000000000..8cc4c73fc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/EmptyObjectGetRequest.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class EmptyObjectGetRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=emptyObject")] + public EmptyObjectParam EmptyObject { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/EmptyObjectGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/EmptyObjectGetResponse.cs new file mode 100755 index 000000000..91bd4519a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/EmptyObjectGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class EmptyObjectGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.cs b/csharp-client-sdk/SDK/Models/Operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.cs new file mode 100755 index 000000000..a189d29d0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.cs @@ -0,0 +1,20 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + /// + /// OK + /// + public class EmptyResponseObjectWithCommentGet200ApplicationOctetStream + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/EmptyResponseObjectWithCommentGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/EmptyResponseObjectWithCommentGetResponse.cs new file mode 100755 index 000000000..f92133a1c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/EmptyResponseObjectWithCommentGetResponse.cs @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class EmptyResponseObjectWithCommentGetResponse + { + + public byte[]? Body { get; set; } + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FlattenedTypedObjectPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/FlattenedTypedObjectPostRes.cs new file mode 100755 index 000000000..b1b26648e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FlattenedTypedObjectPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class FlattenedTypedObjectPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FlattenedTypedObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FlattenedTypedObjectPostResponse.cs new file mode 100755 index 000000000..db609fdc4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FlattenedTypedObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FlattenedTypedObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FlattenedTypedObjectPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayRequest.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayRequest.cs new file mode 100755 index 000000000..54561d2ab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class FormQueryParamsArrayRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=false,name=arrParam")] + public List? ArrParam { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=arrParamExploded")] + public List? ArrParamExploded { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayRes.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayRes.cs new file mode 100755 index 000000000..ceda2ce09 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class FormQueryParamsArrayRes + { + + [JsonProperty("args")] + public FormQueryParamsArrayResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayResArgs.cs new file mode 100755 index 000000000..f611f009d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayResArgs.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class FormQueryParamsArrayResArgs + { + + [JsonProperty("arrParam")] + public string ArrParam { get; set; } = default!; + + [JsonProperty("arrParamExploded")] + public List ArrParamExploded { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayResponse.cs new file mode 100755 index 000000000..ba3774662 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsArrayResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FormQueryParamsArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FormQueryParamsArrayRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectObjParam.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectObjParam.cs new file mode 100755 index 000000000..1458345a4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectObjParam.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class FormQueryParamsCamelObjectObjParam + { + + [SpeakeasyMetadata("queryParam:name=encoded_count")] + public string? EncodedCount { get; set; } + + [SpeakeasyMetadata("queryParam:name=encoded_term")] + public string? EncodedTerm { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.cs new file mode 100755 index 000000000..b236d719a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class FormQueryParamsCamelObjectObjParamExploded + { + + [SpeakeasyMetadata("queryParam:name=item_count")] + public string? ItemCount { get; set; } + + [SpeakeasyMetadata("queryParam:name=search_term")] + public string? SearchTerm { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectRequest.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectRequest.cs new file mode 100755 index 000000000..9d91e6ef5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class FormQueryParamsCamelObjectRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=obj_param_exploded")] + public FormQueryParamsCamelObjectObjParamExploded ObjParamExploded { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=false,name=obj_param")] + public FormQueryParamsCamelObjectObjParam? ObjParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectRes.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectRes.cs new file mode 100755 index 000000000..df0757ad7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class FormQueryParamsCamelObjectRes + { + + [JsonProperty("args")] + public FormQueryParamsCamelObjectResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectResArgs.cs new file mode 100755 index 000000000..7afdd2a89 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectResArgs.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class FormQueryParamsCamelObjectResArgs + { + + [JsonProperty("item_count")] + public string ItemCount { get; set; } = default!; + + [JsonProperty("search_term")] + public string SearchTerm { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectResponse.cs new file mode 100755 index 000000000..866c99dd9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsCamelObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FormQueryParamsCamelObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FormQueryParamsCamelObjectRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapRequest.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapRequest.cs new file mode 100755 index 000000000..8fe6d83c9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class FormQueryParamsMapRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=false,name=mapParam")] + public Dictionary? MapParam { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=mapParamExploded")] + public Dictionary? MapParamExploded { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapRes.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapRes.cs new file mode 100755 index 000000000..e2f508f93 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class FormQueryParamsMapRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapResponse.cs new file mode 100755 index 000000000..9c76f35f5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsMapResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FormQueryParamsMapResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FormQueryParamsMapRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectRequest.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectRequest.cs new file mode 100755 index 000000000..be8e760fc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectRequest.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class FormQueryParamsObjectRequest + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=objParamExploded")] + public SimpleObject ObjParamExploded { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:style=form,explode=false,name=objParam")] + public SimpleObject? ObjParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectRes.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectRes.cs new file mode 100755 index 000000000..5539af9c0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class FormQueryParamsObjectRes + { + + [JsonProperty("args")] + public FormQueryParamsObjectResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectResArgs.cs new file mode 100755 index 000000000..7cfb04af0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectResArgs.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class FormQueryParamsObjectResArgs + { + + [JsonProperty("any")] + public string Any { get; set; } = default!; + + [JsonProperty("bigint")] + public string? Bigint { get; set; } + + [JsonProperty("bigintStr")] + public string? BigintStr { get; set; } + + [JsonProperty("bool")] + public string Bool { get; set; } = default!; + + [JsonProperty("boolOpt")] + public string? BoolOpt { get; set; } + + [JsonProperty("date")] + public string Date { get; set; } = default!; + + [JsonProperty("dateTime")] + public string DateTime { get; set; } = default!; + + [JsonProperty("decimal")] + public string? Decimal { get; set; } + + [JsonProperty("decimalStr")] + public string? DecimalStr { get; set; } + + [JsonProperty("enum")] + public string Enum { get; set; } = default!; + + [JsonProperty("float32")] + public string Float32 { get; set; } = default!; + + [JsonProperty("int")] + public string Int { get; set; } = default!; + + [JsonProperty("int32")] + public string Int32 { get; set; } = default!; + + [JsonProperty("int32Enum")] + public string Int32Enum { get; set; } = default!; + + [JsonProperty("intEnum")] + public string IntEnum { get; set; } = default!; + + [JsonProperty("intOptNull")] + public string? IntOptNull { get; set; } + + [JsonProperty("num")] + public string Num { get; set; } = default!; + + [JsonProperty("numOptNull")] + public string? NumOptNull { get; set; } + + [JsonProperty("objParam")] + public string ObjParam { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + + [JsonProperty("strOpt")] + public string? StrOpt { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectResponse.cs new file mode 100755 index 000000000..d0d3fa5e4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FormQueryParamsObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FormQueryParamsObjectRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveRequest.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveRequest.cs new file mode 100755 index 000000000..20898cf3b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class FormQueryParamsPrimitiveRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=boolParam")] + public bool BoolParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=intParam")] + public long IntParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=numParam")] + public double NumParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=strParam")] + public string StrParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveRes.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveRes.cs new file mode 100755 index 000000000..29b8f7b63 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class FormQueryParamsPrimitiveRes + { + + [JsonProperty("args")] + public FormQueryParamsPrimitiveResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveResArgs.cs new file mode 100755 index 000000000..fa64159fa --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveResArgs.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class FormQueryParamsPrimitiveResArgs + { + + [JsonProperty("boolParam")] + public string BoolParam { get; set; } = default!; + + [JsonProperty("intParam")] + public string IntParam { get; set; } = default!; + + [JsonProperty("numParam")] + public string NumParam { get; set; } = default!; + + [JsonProperty("strParam")] + public string StrParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveResponse.cs new file mode 100755 index 000000000..2e1528f35 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsPrimitiveResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FormQueryParamsPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FormQueryParamsPrimitiveRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectRequest.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectRequest.cs new file mode 100755 index 000000000..ac99d3b50 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class FormQueryParamsRefParamObjectRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=false,name=refObjParam")] + public RefQueryParamObj? RefObjParam { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=refObjParamExploded")] + public RefQueryParamObjExploded? RefObjParamExploded { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectRes.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectRes.cs new file mode 100755 index 000000000..042ed58d2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class FormQueryParamsRefParamObjectRes + { + + [JsonProperty("args")] + public FormQueryParamsRefParamObjectResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectResArgs.cs new file mode 100755 index 000000000..1035c7d46 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectResArgs.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class FormQueryParamsRefParamObjectResArgs + { + + [JsonProperty("bool")] + public string Bool { get; set; } = default!; + + [JsonProperty("int")] + public string Int { get; set; } = default!; + + [JsonProperty("num")] + public string Num { get; set; } = default!; + + [JsonProperty("refObjParam")] + public string RefObjParam { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectResponse.cs new file mode 100755 index 000000000..cf4c41e0d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/FormQueryParamsRefParamObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class FormQueryParamsRefParamObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public FormQueryParamsRefParamObjectRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GetDocumentationPerLanguageRequest.cs b/csharp-client-sdk/SDK/Models/Operations/GetDocumentationPerLanguageRequest.cs new file mode 100755 index 000000000..271285316 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GetDocumentationPerLanguageRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class GetDocumentationPerLanguageRequest + { + + /// + /// The language parameter for this endpoint. + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=language")] + public string Language { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GetDocumentationPerLanguageResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GetDocumentationPerLanguageResponse.cs new file mode 100755 index 000000000..293b21f64 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GetDocumentationPerLanguageResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GetDocumentationPerLanguageResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GetGlobalNameOverride200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/GetGlobalNameOverride200ApplicationJSON.cs new file mode 100755 index 000000000..6d5ffdab7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GetGlobalNameOverride200ApplicationJSON.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public class GetGlobalNameOverride200ApplicationJSON + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GetGlobalNameOverrideResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GetGlobalNameOverrideResponse.cs new file mode 100755 index 000000000..d8735aa55 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GetGlobalNameOverrideResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GetGlobalNameOverrideResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public GetGlobalNameOverride200ApplicationJSON? GetGlobalNameOverride200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GetResourceRequest.cs b/csharp-client-sdk/SDK/Models/Operations/GetResourceRequest.cs new file mode 100755 index 000000000..1e50e24b6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GetResourceRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class GetResourceRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=resourceId")] + public string ResourceId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GetResourceResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GetResourceResponse.cs new file mode 100755 index 000000000..36d0f5188 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GetResourceResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class GetResourceResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// OK + /// + public ExampleResource? ExampleResource { get; set; } + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalBearerAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalBearerAuthResponse.cs new file mode 100755 index 000000000..55b85322a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalBearerAuthResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GlobalBearerAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public GlobalBearerAuthToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalBearerAuthToken.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalBearerAuthToken.cs new file mode 100755 index 000000000..99421f2a5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalBearerAuthToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class GlobalBearerAuthToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetRequest.cs new file mode 100755 index 000000000..98652f373 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class GlobalPathParameterGetRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=globalPathParam")] + public long? GlobalPathParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetRes.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetRes.cs new file mode 100755 index 000000000..46414fa5c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class GlobalPathParameterGetRes + { + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetResponse.cs new file mode 100755 index 000000000..7e73cf482 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalPathParameterGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GlobalPathParameterGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public GlobalPathParameterGetRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetRequest.cs new file mode 100755 index 000000000..0191e6628 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class GlobalsQueryParameterGetRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=globalQueryParam")] + public string? GlobalQueryParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetRes.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetRes.cs new file mode 100755 index 000000000..5bc23e439 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class GlobalsQueryParameterGetRes + { + + [JsonProperty("args")] + public GlobalsQueryParameterGetResArgs Args { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetResArgs.cs new file mode 100755 index 000000000..d163841d8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetResArgs.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class GlobalsQueryParameterGetResArgs + { + + [JsonProperty("globalQueryParam")] + public string GlobalQueryParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetResponse.cs new file mode 100755 index 000000000..f5419a7c5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GlobalsQueryParameterGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GlobalsQueryParameterGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public GlobalsQueryParameterGetRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GroupFirstGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GroupFirstGetResponse.cs new file mode 100755 index 000000000..473128d73 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GroupFirstGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GroupFirstGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/GroupSecondGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/GroupSecondGetResponse.cs new file mode 100755 index 000000000..172e04051 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/GroupSecondGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class GroupSecondGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayRequest.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayRequest.cs new file mode 100755 index 000000000..757df47b2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayRequest.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class HeaderParamsArrayRequest + { + + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-Array")] + public List XHeaderArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayRes.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayRes.cs new file mode 100755 index 000000000..fa59d6c24 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class HeaderParamsArrayRes + { + + [JsonProperty("headers")] + public HeaderParamsArrayResHeaders Headers { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayResHeaders.cs new file mode 100755 index 000000000..c670371b6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayResHeaders.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class HeaderParamsArrayResHeaders + { + + [JsonProperty("X-Header-Array")] + public string XHeaderArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayResponse.cs new file mode 100755 index 000000000..3fe22b1d4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsArrayResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class HeaderParamsArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public HeaderParamsArrayRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapRequest.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapRequest.cs new file mode 100755 index 000000000..a3d0ecdbb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class HeaderParamsMapRequest + { + + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-Map")] + public Dictionary XHeaderMap { get; set; } = default!; + + [SpeakeasyMetadata("header:style=simple,explode=true,name=X-Header-Map-Explode")] + public Dictionary XHeaderMapExplode { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapRes.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapRes.cs new file mode 100755 index 000000000..34623f220 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class HeaderParamsMapRes + { + + [JsonProperty("headers")] + public HeaderParamsMapResHeaders Headers { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapResHeaders.cs new file mode 100755 index 000000000..7f71cd0de --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapResHeaders.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class HeaderParamsMapResHeaders + { + + [JsonProperty("X-Header-Map")] + public string XHeaderMap { get; set; } = default!; + + [JsonProperty("X-Header-Map-Explode")] + public string XHeaderMapExplode { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapResponse.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapResponse.cs new file mode 100755 index 000000000..68fcf229d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsMapResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class HeaderParamsMapResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public HeaderParamsMapRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectRequest.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectRequest.cs new file mode 100755 index 000000000..6660b4032 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectRequest.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class HeaderParamsObjectRequest + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-Obj")] + public SimpleObject XHeaderObj { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("header:style=simple,explode=true,name=X-Header-Obj-Explode")] + public SimpleObject XHeaderObjExplode { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectRes.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectRes.cs new file mode 100755 index 000000000..148113244 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class HeaderParamsObjectRes + { + + [JsonProperty("headers")] + public HeaderParamsObjectResHeaders Headers { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectResHeaders.cs new file mode 100755 index 000000000..ba9a28be2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectResHeaders.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class HeaderParamsObjectResHeaders + { + + [JsonProperty("X-Header-Obj")] + public string XHeaderObj { get; set; } = default!; + + [JsonProperty("X-Header-Obj-Explode")] + public string XHeaderObjExplode { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectResponse.cs new file mode 100755 index 000000000..929b639c7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class HeaderParamsObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public HeaderParamsObjectRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveRequest.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveRequest.cs new file mode 100755 index 000000000..0f9937e5b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class HeaderParamsPrimitiveRequest + { + + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-Boolean")] + public bool XHeaderBoolean { get; set; } = default!; + + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-Integer")] + public long XHeaderInteger { get; set; } = default!; + + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-Number")] + public double XHeaderNumber { get; set; } = default!; + + [SpeakeasyMetadata("header:style=simple,explode=false,name=X-Header-String")] + public string XHeaderString { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveRes.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveRes.cs new file mode 100755 index 000000000..c61c5a642 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class HeaderParamsPrimitiveRes + { + + [JsonProperty("headers")] + public HeaderParamsPrimitiveResHeaders Headers { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveResHeaders.cs new file mode 100755 index 000000000..cfe2efa17 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveResHeaders.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class HeaderParamsPrimitiveResHeaders + { + + [JsonProperty("X-Header-Boolean")] + public string XHeaderBoolean { get; set; } = default!; + + [JsonProperty("X-Header-Integer")] + public string XHeaderInteger { get; set; } = default!; + + [JsonProperty("X-Header-Number")] + public string XHeaderNumber { get; set; } = default!; + + [JsonProperty("X-Header-String")] + public string XHeaderString { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveResponse.cs new file mode 100755 index 000000000..1e0562058 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/HeaderParamsPrimitiveResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class HeaderParamsPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public HeaderParamsPrimitiveRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/IgnoredGenerationGet200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/IgnoredGenerationGet200ApplicationJSON.cs new file mode 100755 index 000000000..68bdf7152 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/IgnoredGenerationGet200ApplicationJSON.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public class IgnoredGenerationGet200ApplicationJSON + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/IgnoredGenerationGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/IgnoredGenerationGetResponse.cs new file mode 100755 index 000000000..e386abc9c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/IgnoredGenerationGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class IgnoredGenerationGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public IgnoredGenerationGet200ApplicationJSON? IgnoredGenerationGet200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/IgnoresPostApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/IgnoresPostApplicationJSON.cs new file mode 100755 index 000000000..99ce3a847 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/IgnoresPostApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class IgnoresPostApplicationJSON + { + + [JsonProperty("callbackUrl")] + public string? CallbackUrl { get; set; } + + [JsonProperty("testProp")] + public string? TestProp { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/IgnoresPostRequest.cs b/csharp-client-sdk/SDK/Models/Operations/IgnoresPostRequest.cs new file mode 100755 index 000000000..77e54d461 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/IgnoresPostRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class IgnoresPostRequest + { + + [SpeakeasyMetadata("request:mediaType=application/json")] + public IgnoresPostApplicationJSON RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=testParam")] + public string? TestParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/IgnoresPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/IgnoresPostResponse.cs new file mode 100755 index 000000000..ed3c2249a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/IgnoresPostResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class IgnoresPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public HttpBinSimpleJsonObject? HttpBinSimpleJsonObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRequest.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRequest.cs new file mode 100755 index 000000000..27fe8346f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class InlineBodyAndParamConflictRequest + { + + [SpeakeasyMetadata("request:mediaType=application/json")] + public InlineBodyAndParamConflictRequestBody RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRequestBody.cs new file mode 100755 index 000000000..03eb7f199 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class InlineBodyAndParamConflictRequestBody + { + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRes.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRes.cs new file mode 100755 index 000000000..580de2fb4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class InlineBodyAndParamConflictRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + [JsonProperty("json")] + public InlineBodyAndParamConflictResJson Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictResJson.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictResJson.cs new file mode 100755 index 000000000..b8c6368dc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictResJson.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class InlineBodyAndParamConflictResJson + { + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictResponse.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictResponse.cs new file mode 100755 index 000000000..d2bc06433 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamConflictResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class InlineBodyAndParamConflictResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public InlineBodyAndParamConflictRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRequest.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRequest.cs new file mode 100755 index 000000000..4fd4c1ce8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class InlineBodyAndParamNoConflictRequest + { + + [SpeakeasyMetadata("request:mediaType=application/json")] + public InlineBodyAndParamNoConflictRequestBody RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=paramStr")] + public string ParamStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRequestBody.cs new file mode 100755 index 000000000..4d909e30a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class InlineBodyAndParamNoConflictRequestBody + { + + [JsonProperty("bodyStr")] + public string BodyStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRes.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRes.cs new file mode 100755 index 000000000..72712c057 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class InlineBodyAndParamNoConflictRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + [JsonProperty("json")] + public InlineBodyAndParamNoConflictResJson Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictResJson.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictResJson.cs new file mode 100755 index 000000000..e7f2dc8ca --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictResJson.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class InlineBodyAndParamNoConflictResJson + { + + [JsonProperty("bodyStr")] + public string BodyStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictResponse.cs b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictResponse.cs new file mode 100755 index 000000000..919bcaf57 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/InlineBodyAndParamNoConflictResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class InlineBodyAndParamNoConflictResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public InlineBodyAndParamNoConflictRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectRequest.cs b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectRequest.cs new file mode 100755 index 000000000..546ca3c7f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectRequest.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class JsonQueryParamsObjectRequest + { + + [SpeakeasyMetadata("queryParam:serialization=json,name=deepObjParam")] + public DeepObject DeepObjParam { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:serialization=json,name=simpleObjParam")] + public SimpleObject SimpleObjParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectRes.cs b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectRes.cs new file mode 100755 index 000000000..b1bf172ce --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class JsonQueryParamsObjectRes + { + + [JsonProperty("args")] + public JsonQueryParamsObjectResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectResArgs.cs new file mode 100755 index 000000000..6cdfd90a4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectResArgs.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class JsonQueryParamsObjectResArgs + { + + [JsonProperty("deepObjParam")] + public string DeepObjParam { get; set; } = default!; + + [JsonProperty("simpleObjParam")] + public string SimpleObjParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectResponse.cs new file mode 100755 index 000000000..e9ff6894f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/JsonQueryParamsObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class JsonQueryParamsObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public JsonQueryParamsObjectRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseRequest.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseRequest.cs new file mode 100755 index 000000000..c443cffa6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseRequest.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MixedParametersCamelCaseRequest + { + + [SpeakeasyMetadata("header:style=simple,explode=false,name=header_param")] + public string HeaderParam { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=path_param")] + public string PathParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=query_string_param")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseRes.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseRes.cs new file mode 100755 index 000000000..02503e533 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseRes.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class MixedParametersCamelCaseRes + { + + [JsonProperty("args")] + public MixedParametersCamelCaseResArgs Args { get; set; } = default!; + + [JsonProperty("headers")] + public MixedParametersCamelCaseResHeaders Headers { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResArgs.cs new file mode 100755 index 000000000..1b72864e3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResArgs.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class MixedParametersCamelCaseResArgs + { + + [JsonProperty("query_string_param")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResHeaders.cs new file mode 100755 index 000000000..06baf49ca --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResHeaders.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class MixedParametersCamelCaseResHeaders + { + + [JsonProperty("Header-Param")] + public string HeaderParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResponse.cs new file mode 100755 index 000000000..46e9ac757 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersCamelCaseResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MixedParametersCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public MixedParametersCamelCaseRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesRequest.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesRequest.cs new file mode 100755 index 000000000..6ad4156dd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesRequest.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MixedParametersPrimitivesRequest + { + + [SpeakeasyMetadata("header:style=simple,explode=false,name=headerParam")] + public string HeaderParam { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pathParam")] + public string PathParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryStringParam")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesRes.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesRes.cs new file mode 100755 index 000000000..2e09d4059 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesRes.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class MixedParametersPrimitivesRes + { + + [JsonProperty("args")] + public MixedParametersPrimitivesResArgs Args { get; set; } = default!; + + [JsonProperty("headers")] + public MixedParametersPrimitivesResHeaders Headers { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResArgs.cs new file mode 100755 index 000000000..1379840b8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResArgs.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class MixedParametersPrimitivesResArgs + { + + [JsonProperty("queryStringParam")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResHeaders.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResHeaders.cs new file mode 100755 index 000000000..c998488ee --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResHeaders.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class MixedParametersPrimitivesResHeaders + { + + [JsonProperty("Headerparam")] + public string Headerparam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResponse.cs new file mode 100755 index 000000000..9cc097f91 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedParametersPrimitivesResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MixedParametersPrimitivesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public MixedParametersPrimitivesRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsRequest.cs new file mode 100755 index 000000000..952900bb6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsRequest.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class MixedQueryParamsRequest + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=deepObjectParam")] + public SimpleObject DeepObjectParam { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=formParam")] + public SimpleObject FormParam { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:serialization=json,name=jsonParam")] + public SimpleObject JsonParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsRes.cs new file mode 100755 index 000000000..e4c545915 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class MixedQueryParamsRes + { + + [JsonProperty("args")] + public Dictionary Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsResponse.cs new file mode 100755 index 000000000..3dd5ab02b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedQueryParamsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MixedQueryParamsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public MixedQueryParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedTypeOneOfPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/MixedTypeOneOfPostRes.cs new file mode 100755 index 000000000..e30c7399f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedTypeOneOfPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class MixedTypeOneOfPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MixedTypeOneOfPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MixedTypeOneOfPostResponse.cs new file mode 100755 index 000000000..389eba511 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MixedTypeOneOfPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MixedTypeOneOfPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public MixedTypeOneOfPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleMixedOptionsAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedOptionsAuthResponse.cs new file mode 100755 index 000000000..feeb25fb0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedOptionsAuthResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MultipleMixedOptionsAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleMixedOptionsAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedOptionsAuthSecurity.cs new file mode 100755 index 000000000..1fb769b24 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedOptionsAuthSecurity.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class MultipleMixedOptionsAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string? ApiKeyAuthNew { get; set; } + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic")] + public SchemeBasicAuth? BasicAuth { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleMixedSchemeAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedSchemeAuthResponse.cs new file mode 100755 index 000000000..ffd6aed21 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedSchemeAuthResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MultipleMixedSchemeAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleMixedSchemeAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedSchemeAuthSecurity.cs new file mode 100755 index 000000000..5f0440f08 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleMixedSchemeAuthSecurity.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class MultipleMixedSchemeAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string ApiKeyAuthNew { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic")] + public SchemeBasicAuth BasicAuth { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthResponse.cs new file mode 100755 index 000000000..5365c10f3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MultipleOptionsWithMixedSchemesAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurity.cs new file mode 100755 index 000000000..54ca631bf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleOptionsWithMixedSchemesAuthSecurity + { + + [SpeakeasyMetadata("security:option=true")] + public MultipleOptionsWithMixedSchemesAuthSecurityOption1? Option1 { get; set; } + + [SpeakeasyMetadata("security:option=true")] + public MultipleOptionsWithMixedSchemesAuthSecurityOption2? Option2 { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.cs new file mode 100755 index 000000000..621a5042b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleOptionsWithMixedSchemesAuthSecurityOption1 + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string ApiKeyAuthNew { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string Oauth2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.cs new file mode 100755 index 000000000..436ee5723 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class MultipleOptionsWithMixedSchemesAuthSecurityOption2 + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string ApiKeyAuthNew { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic")] + public SchemeBasicAuth BasicAuth { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthResponse.cs new file mode 100755 index 000000000..e0d0973f6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MultipleOptionsWithSimpleSchemesAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurity.cs new file mode 100755 index 000000000..4f8e18449 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleOptionsWithSimpleSchemesAuthSecurity + { + + [SpeakeasyMetadata("security:option=true")] + public MultipleOptionsWithSimpleSchemesAuthSecurityOption1? Option1 { get; set; } + + [SpeakeasyMetadata("security:option=true")] + public MultipleOptionsWithSimpleSchemesAuthSecurityOption2? Option2 { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.cs new file mode 100755 index 000000000..ec9ddd722 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleOptionsWithSimpleSchemesAuthSecurityOption1 + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string ApiKeyAuthNew { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string Oauth2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.cs new file mode 100755 index 000000000..d1da018c8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleOptionsWithSimpleSchemesAuthSecurityOption2 + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string ApiKeyAuthNew { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=openIdConnect,name=Authorization")] + public string OpenIdConnect { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleOptionsAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleOptionsAuthResponse.cs new file mode 100755 index 000000000..58dc542c9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleOptionsAuthResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MultipleSimpleOptionsAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleOptionsAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleOptionsAuthSecurity.cs new file mode 100755 index 000000000..16f9b5472 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleOptionsAuthSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleSimpleOptionsAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string? ApiKeyAuthNew { get; set; } + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string? Oauth2 { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleSchemeAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleSchemeAuthResponse.cs new file mode 100755 index 000000000..03aef22c3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleSchemeAuthResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class MultipleSimpleSchemeAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleSchemeAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleSchemeAuthSecurity.cs new file mode 100755 index 000000000..f9efc0917 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/MultipleSimpleSchemeAuthSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class MultipleSimpleSchemeAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string ApiKeyAuthNew { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string Oauth2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetEnumNameOverride.cs b/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetEnumNameOverride.cs new file mode 100755 index 000000000..6bcbcdca6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetEnumNameOverride.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System; + + /// + /// An enum type + /// + public enum NameOverrideGetEnumNameOverride + { + [JsonProperty("value1")] + Value1, + [JsonProperty("value2")] + Value2, + [JsonProperty("value3")] + Value3, + } + + public static class NameOverrideGetEnumNameOverrideExtension + { + public static string Value(this NameOverrideGetEnumNameOverride value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static NameOverrideGetEnumNameOverride ToEnum(this string value) + { + foreach(var field in typeof(NameOverrideGetEnumNameOverride).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is NameOverrideGetEnumNameOverride) + { + return (NameOverrideGetEnumNameOverride)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum NameOverrideGetEnumNameOverride"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetRequest.cs new file mode 100755 index 000000000..28ec6b4bc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetRequest.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class NameOverrideGetRequest + { + + /// + /// An enum type + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=enumNameOverride")] + public NameOverrideGetEnumNameOverride TestEnumQueryParam { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=nameOverride")] + public string TestQueryParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetResponse.cs new file mode 100755 index 000000000..498f5904e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NameOverrideGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NameOverrideGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public OverriddenResponse? OverriddenResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NestFirstGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NestFirstGetResponse.cs new file mode 100755 index 000000000..5fe22279b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NestFirstGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NestFirstGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NestedFirstGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NestedFirstGetResponse.cs new file mode 100755 index 000000000..1b509d8e8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NestedFirstGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NestedFirstGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NestedGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NestedGetResponse.cs new file mode 100755 index 000000000..0e285c8ca --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NestedGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NestedGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NestedSecondGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NestedSecondGetResponse.cs new file mode 100755 index 000000000..b84dbdb72 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NestedSecondGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NestedSecondGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableObjectPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/NullableObjectPostRes.cs new file mode 100755 index 000000000..1eb42583b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableObjectPostRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class NullableObjectPostRes + { + + [JsonProperty("json")] + public NullableObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableObjectPostResponse.cs new file mode 100755 index 000000000..d7a10dc39 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public NullableObjectPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableOneOfRefInObjectPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfRefInObjectPostRes.cs new file mode 100755 index 000000000..73da6a27a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfRefInObjectPostRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class NullableOneOfRefInObjectPostRes + { + + [JsonProperty("json")] + public NullableOneOfRefInObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableOneOfRefInObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfRefInObjectPostResponse.cs new file mode 100755 index 000000000..e896a6b6a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfRefInObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableOneOfRefInObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public NullableOneOfRefInObjectPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableOneOfSchemaPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfSchemaPostRes.cs new file mode 100755 index 000000000..39a8f1b9c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfSchemaPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class NullableOneOfSchemaPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableOneOfSchemaPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfSchemaPostResponse.cs new file mode 100755 index 000000000..a2f342d9d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfSchemaPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableOneOfSchemaPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public NullableOneOfSchemaPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableOneOfTypeInObjectPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfTypeInObjectPostRes.cs new file mode 100755 index 000000000..854cfd717 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfTypeInObjectPostRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class NullableOneOfTypeInObjectPostRes + { + + [JsonProperty("json")] + public NullableOneOfTypeInObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableOneOfTypeInObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfTypeInObjectPostResponse.cs new file mode 100755 index 000000000..fbceb66eb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableOneOfTypeInObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableOneOfTypeInObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public NullableOneOfTypeInObjectPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBody.cs new file mode 100755 index 000000000..f0d4606b5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBody.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class NullableRequiredEmptyObjectPostRequestBody + { + + [JsonProperty("NullableRequiredObj")] + public NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj NullableRequiredObj { get; set; } = default!; + + [JsonProperty("RequiredObj")] + public NullableRequiredEmptyObjectPostRequestBodyRequiredObj RequiredObj { get; set; } = default!; + + [JsonProperty("NullableOptionalObj")] + public NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj? NullableOptionalObj { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.cs new file mode 100755 index 000000000..121e6cb93 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.cs new file mode 100755 index 000000000..e69a4b442 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.cs new file mode 100755 index 000000000..f7ce2c8a1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class NullableRequiredEmptyObjectPostRequestBodyRequiredObj + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostResponse.cs new file mode 100755 index 000000000..cec8ba52e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredEmptyObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableRequiredEmptyObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public string? NullableRequiredEmptyObjectPost200ApplicationJSONString { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostRequestBody.cs new file mode 100755 index 000000000..4afa380a9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostRequestBody.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class NullableRequiredPropertyPostRequestBody + { + + [JsonProperty("NullableRequiredArray")] + public List NullableRequiredArray { get; set; } = default!; + + [JsonProperty("NullableRequiredEnum")] + public NullableRequiredPropertyPostRequestBodyNullableRequiredEnum NullableRequiredEnum { get; set; } = default!; + + [JsonProperty("NullableRequiredInt")] + public long NullableRequiredInt { get; set; } = default!; + + [JsonProperty("NullableOptionalInt")] + public long? NullableOptionalInt { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.cs new file mode 100755 index 000000000..053d0f589 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System; + + public enum NullableRequiredPropertyPostRequestBodyNullableRequiredEnum + { + [JsonProperty("first")] + First, + [JsonProperty("second")] + Second, + } + + public static class NullableRequiredPropertyPostRequestBodyNullableRequiredEnumExtension + { + public static string Value(this NullableRequiredPropertyPostRequestBodyNullableRequiredEnum value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static NullableRequiredPropertyPostRequestBodyNullableRequiredEnum ToEnum(this string value) + { + foreach(var field in typeof(NullableRequiredPropertyPostRequestBodyNullableRequiredEnum).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is NullableRequiredPropertyPostRequestBodyNullableRequiredEnum) + { + return (NullableRequiredPropertyPostRequestBodyNullableRequiredEnum)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum NullableRequiredPropertyPostRequestBodyNullableRequiredEnum"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostResponse.cs new file mode 100755 index 000000000..fd10ac144 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredPropertyPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableRequiredPropertyPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public string? NullableRequiredPropertyPost200ApplicationJSONString { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredSharedObjectPostRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredSharedObjectPostRequestBody.cs new file mode 100755 index 000000000..63eed7134 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredSharedObjectPostRequestBody.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + public class NullableRequiredSharedObjectPostRequestBody + { + + [JsonProperty("NullableRequiredObj")] + public NullableObject NullableRequiredObj { get; set; } = default!; + + [JsonProperty("NullableOptionalObj")] + public NullableObject? NullableOptionalObj { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableRequiredSharedObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredSharedObjectPostResponse.cs new file mode 100755 index 000000000..14065bb75 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableRequiredSharedObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableRequiredSharedObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public string? NullableRequiredSharedObjectPost200ApplicationJSONString { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableTypedObjectPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/NullableTypedObjectPostRes.cs new file mode 100755 index 000000000..9b6c4c65c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableTypedObjectPostRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class NullableTypedObjectPostRes + { + + [JsonProperty("json")] + public TypedObject1 Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/NullableTypedObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/NullableTypedObjectPostResponse.cs new file mode 100755 index 000000000..cc05f5fe6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/NullableTypedObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class NullableTypedObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public NullableTypedObjectPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthNewResponse.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthNewResponse.cs new file mode 100755 index 000000000..9a6814619 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthNewResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class Oauth2AuthNewResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthNewSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthNewSecurity.cs new file mode 100755 index 000000000..ff956602a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthNewSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class Oauth2AuthNewSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string Oauth2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthResponse.cs new file mode 100755 index 000000000..ebb85ebaf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class Oauth2AuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public Oauth2AuthToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthSecurity.cs new file mode 100755 index 000000000..d281a29ac --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class Oauth2AuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string Oauth2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthToken.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthToken.cs new file mode 100755 index 000000000..7564440b4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2AuthToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class Oauth2AuthToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideRequest.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideRequest.cs new file mode 100755 index 000000000..7614f3680 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideRequest.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class Oauth2OverrideRequest + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideResponse.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideResponse.cs new file mode 100755 index 000000000..e72967412 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class Oauth2OverrideResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public Oauth2OverrideToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideSecurity.cs new file mode 100755 index 000000000..2a51c155d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class Oauth2OverrideSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string Oauth2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideToken.cs b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideToken.cs new file mode 100755 index 000000000..cb9d346fc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/Oauth2OverrideToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class Oauth2OverrideToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ObjectCircularReferenceGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ObjectCircularReferenceGetResponse.cs new file mode 100755 index 000000000..2318aee1b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ObjectCircularReferenceGetResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class ObjectCircularReferenceGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ObjectCircularReferenceObject? ObjectCircularReferenceObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OneOfCircularReferenceGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/OneOfCircularReferenceGetResponse.cs new file mode 100755 index 000000000..1a5845cc5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OneOfCircularReferenceGetResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class OneOfCircularReferenceGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public OneOfCircularReferenceObject? OneOfCircularReferenceObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthNewResponse.cs b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthNewResponse.cs new file mode 100755 index 000000000..83c8054cd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthNewResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class OpenIdConnectAuthNewResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthNewSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthNewSecurity.cs new file mode 100755 index 000000000..c34dd1f87 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthNewSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class OpenIdConnectAuthNewSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=openIdConnect,name=Authorization")] + public string OpenIdConnect { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthResponse.cs b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthResponse.cs new file mode 100755 index 000000000..c871a1312 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class OpenIdConnectAuthResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Successful authentication. + /// + public OpenIdConnectAuthToken? Token { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthSecurity.cs new file mode 100755 index 000000000..fc1e1fb92 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthSecurity.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class OpenIdConnectAuthSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=openIdConnect,name=Authorization")] + public string OpenIdConnect { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthToken.cs b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthToken.cs new file mode 100755 index 000000000..c3eba09da --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OpenIdConnectAuthToken.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// Successful authentication. + /// + public class OpenIdConnectAuthToken + { + + [JsonProperty("authenticated")] + public bool Authenticated { get; set; } = default!; + + [JsonProperty("token")] + public string Token { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/OverriddenResponse.cs b/csharp-client-sdk/SDK/Models/Operations/OverriddenResponse.cs new file mode 100755 index 000000000..68d40fbf7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/OverriddenResponse.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public class OverriddenResponse + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyRequestBody.cs new file mode 100755 index 000000000..760cbc425 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class PaginationCursorBodyRequestBody + { + + [JsonProperty("cursor")] + public long Cursor { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyRes.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyRes.cs new file mode 100755 index 000000000..5b978ed7d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class PaginationCursorBodyRes + { + + [JsonProperty("numPages")] + public long NumPages { get; set; } = default!; + + [JsonProperty("resultArray")] + public List ResultArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyResponse.cs new file mode 100755 index 000000000..a0a9b19ab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorBodyResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public class PaginationCursorBodyResponse + { + public Func>? Next {get;set;} + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PaginationCursorBodyRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsRequest.cs new file mode 100755 index 000000000..c80ba9ce6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class PaginationCursorParamsRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor")] + public long Cursor { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsRes.cs new file mode 100755 index 000000000..415f5b32d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class PaginationCursorParamsRes + { + + [JsonProperty("numPages")] + public long NumPages { get; set; } = default!; + + [JsonProperty("resultArray")] + public List ResultArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsResponse.cs new file mode 100755 index 000000000..d48be0a0b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationCursorParamsResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public class PaginationCursorParamsResponse + { + public Func>? Next {get;set;} + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PaginationCursorParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetBodyRes.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetBodyRes.cs new file mode 100755 index 000000000..2d296a96c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetBodyRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class PaginationLimitOffsetOffsetBodyRes + { + + [JsonProperty("numPages")] + public long NumPages { get; set; } = default!; + + [JsonProperty("resultArray")] + public List ResultArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetBodyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetBodyResponse.cs new file mode 100755 index 000000000..d881c9f5f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetBodyResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public class PaginationLimitOffsetOffsetBodyResponse + { + public Func>? Next {get;set;} + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PaginationLimitOffsetOffsetBodyRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRequest.cs new file mode 100755 index 000000000..7546ec9f2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class PaginationLimitOffsetOffsetParamsRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit")] + public long? Limit { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=offset")] + public long? Offset { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRes.cs new file mode 100755 index 000000000..8049520ec --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class PaginationLimitOffsetOffsetParamsRes + { + + [JsonProperty("numPages")] + public long NumPages { get; set; } = default!; + + [JsonProperty("resultArray")] + public List ResultArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsResponse.cs new file mode 100755 index 000000000..1902a9a4d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetOffsetParamsResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public class PaginationLimitOffsetOffsetParamsResponse + { + public Func>? Next {get;set;} + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PaginationLimitOffsetOffsetParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageBodyRes.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageBodyRes.cs new file mode 100755 index 000000000..359dea867 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageBodyRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class PaginationLimitOffsetPageBodyRes + { + + [JsonProperty("numPages")] + public long NumPages { get; set; } = default!; + + [JsonProperty("resultArray")] + public List ResultArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageBodyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageBodyResponse.cs new file mode 100755 index 000000000..df9d6c4f8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageBodyResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public class PaginationLimitOffsetPageBodyResponse + { + public Func>? Next {get;set;} + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PaginationLimitOffsetPageBodyRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsRequest.cs new file mode 100755 index 000000000..c45a6b379 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class PaginationLimitOffsetPageParamsRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=page")] + public long Page { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsRes.cs new file mode 100755 index 000000000..ed4c68e66 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class PaginationLimitOffsetPageParamsRes + { + + [JsonProperty("numPages")] + public long NumPages { get; set; } = default!; + + [JsonProperty("resultArray")] + public List ResultArray { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsResponse.cs new file mode 100755 index 000000000..2eeb7a993 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PaginationLimitOffsetPageParamsResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public class PaginationLimitOffsetPageParamsResponse + { + public Func>? Next {get;set;} + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PaginationLimitOffsetPageParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonRequest.cs b/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonRequest.cs new file mode 100755 index 000000000..399e58d14 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class PathParameterJsonRequest + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("pathParam:serialization=json,name=jsonObj")] + public SimpleObject JsonObj { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonRes.cs b/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonRes.cs new file mode 100755 index 000000000..4d865d499 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class PathParameterJsonRes + { + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonResponse.cs new file mode 100755 index 000000000..ae540be24 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PathParameterJsonResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class PathParameterJsonResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PathParameterJsonRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayRequest.cs b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayRequest.cs new file mode 100755 index 000000000..f143d111b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayRequest.cs @@ -0,0 +1,35 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + + public class PipeDelimitedQueryParamsArrayRequest + { + + [SpeakeasyMetadata("queryParam:style=pipeDelimited,explode=false,name=arrParam")] + public List? ArrParam { get; set; } + + [SpeakeasyMetadata("queryParam:style=pipeDelimited,explode=true,name=arrParamExploded")] + public List? ArrParamExploded { get; set; } + + [SpeakeasyMetadata("queryParam:style=pipeDelimited,explode=false,name=mapParam")] + public Dictionary? MapParam { get; set; } + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("queryParam:style=pipeDelimited,explode=false,name=objParam")] + public SimpleObject? ObjParam { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayRes.cs b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayRes.cs new file mode 100755 index 000000000..aa4310196 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class PipeDelimitedQueryParamsArrayRes + { + + [JsonProperty("args")] + public PipeDelimitedQueryParamsArrayResArgs Args { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayResArgs.cs new file mode 100755 index 000000000..7bf70c5ad --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayResArgs.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class PipeDelimitedQueryParamsArrayResArgs + { + + [JsonProperty("arrParam")] + public string ArrParam { get; set; } = default!; + + [JsonProperty("arrParamExploded")] + public List ArrParamExploded { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayResponse.cs new file mode 100755 index 000000000..79717254a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PipeDelimitedQueryParamsArrayResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class PipeDelimitedQueryParamsArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PipeDelimitedQueryParamsArrayRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PrimitiveTypeOneOfPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/PrimitiveTypeOneOfPostRes.cs new file mode 100755 index 000000000..1555d7038 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PrimitiveTypeOneOfPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class PrimitiveTypeOneOfPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PrimitiveTypeOneOfPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PrimitiveTypeOneOfPostResponse.cs new file mode 100755 index 000000000..16127a5cd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PrimitiveTypeOneOfPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class PrimitiveTypeOneOfPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PrimitiveTypeOneOfPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PutAnythingIgnoredGeneration200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/PutAnythingIgnoredGeneration200ApplicationJSON.cs new file mode 100755 index 000000000..fdfcc484a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PutAnythingIgnoredGeneration200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class PutAnythingIgnoredGeneration200ApplicationJSON + { + + [JsonProperty("json")] + public string? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/PutAnythingIgnoredGenerationResponse.cs b/csharp-client-sdk/SDK/Models/Operations/PutAnythingIgnoredGenerationResponse.cs new file mode 100755 index 000000000..01275b9d6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/PutAnythingIgnoredGenerationResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class PutAnythingIgnoredGenerationResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public PutAnythingIgnoredGeneration200ApplicationJSON? PutAnythingIgnoredGeneration200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.cs new file mode 100755 index 000000000..b6d553e41 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List? SimpleObjectCamelCases { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.cs new file mode 100755 index 000000000..fac623d1d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayObjCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ArrObjValueCamelCase? ArrObjValueCamelCase { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjResponse.cs new file mode 100755 index 000000000..5884e23cf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayObjResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ArrObjValue? ArrObjValue { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.cs new file mode 100755 index 000000000..225341f1d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List>? Arrs { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.cs new file mode 100755 index 000000000..0bb8e30a6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List>? Arrs { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.cs new file mode 100755 index 000000000..6796eae45 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayOfArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List>? Arrs { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.cs new file mode 100755 index 000000000..01d6fa50e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List>? Maps { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapResponse.cs new file mode 100755 index 000000000..44348f22a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayOfMapResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List>? Maps { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.cs new file mode 100755 index 000000000..384ac1b10 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayOfPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List? Strings { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayResponse.cs new file mode 100755 index 000000000..10ef124b5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonArrayResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public List? SimpleObjects { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.cs new file mode 100755 index 000000000..833d13adf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostApplicationJsonDeepCamelCaseRes + { + + [JsonProperty("json")] + public DeepObjectCamelCase? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.cs new file mode 100755 index 000000000..a3eacd5ab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonDeepCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostApplicationJsonDeepCamelCaseRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepRes.cs new file mode 100755 index 000000000..2616da2fb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostApplicationJsonDeepRes + { + + [JsonProperty("json")] + public DeepObject? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepResponse.cs new file mode 100755 index 000000000..f64db77b4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonDeepResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonDeepResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostApplicationJsonDeepRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.cs new file mode 100755 index 000000000..0438da669 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.cs new file mode 100755 index 000000000..f0599a2bb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapObjCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public MapObjValueCamelCase? MapObjValueCamelCase { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjResponse.cs new file mode 100755 index 000000000..7c252e18e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapObjResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public MapObjValue? MapObjValue { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.cs new file mode 100755 index 000000000..bd7b28c29 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary>? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayResponse.cs new file mode 100755 index 000000000..5cc7424ea --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapOfArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary>? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.cs new file mode 100755 index 000000000..af5bea6b5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary>? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.cs new file mode 100755 index 000000000..aebf21bbc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary>? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapResponse.cs new file mode 100755 index 000000000..da68a46d2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapOfMapResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary>? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.cs new file mode 100755 index 000000000..5f17f7a08 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapOfPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapResponse.cs new file mode 100755 index 000000000..d2fcd72de --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMapResponse.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMapResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public Dictionary? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.cs new file mode 100755 index 000000000..93aa5c513 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostApplicationJsonMultipleJsonFilteredRes + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.cs new file mode 100755 index 000000000..26523a485 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonMultipleJsonFilteredResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostApplicationJsonMultipleJsonFilteredRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.cs new file mode 100755 index 000000000..8e86ec1b3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostApplicationJsonSimpleCamelCaseRes + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObjectCamelCase Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.cs new file mode 100755 index 000000000..e44a75a8b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonSimpleCamelCaseResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostApplicationJsonSimpleCamelCaseRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleRes.cs new file mode 100755 index 000000000..82eec6f80 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleRes.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostApplicationJsonSimpleRes + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleResponse.cs new file mode 100755 index 000000000..1beac6117 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostApplicationJsonSimpleResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostApplicationJsonSimpleRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.cs new file mode 100755 index 000000000..f1946efe2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostComplexNumberTypes200ApplicationJSON + { + + [JsonProperty("json")] + public ComplexNumberTypes Json { get; set; } = default!; + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypesRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypesRequest.cs new file mode 100755 index 000000000..6a4ec8319 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypesRequest.cs @@ -0,0 +1,47 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + using System.Numerics; + + public class RequestBodyPostComplexNumberTypesRequest + { + + [SpeakeasyMetadata("request:mediaType=application/json")] + public ComplexNumberTypes ComplexNumberTypes { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pathBigInt")] + public BigInteger PathBigInt { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pathBigIntStr")] + public BigInteger PathBigIntStr { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pathDecimal")] + public decimal PathDecimal { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pathDecimalStr")] + public decimal PathDecimalStr { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryBigInt")] + public BigInteger QueryBigInt { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryBigIntStr")] + public BigInteger QueryBigIntStr { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryDecimal")] + public decimal QueryDecimal { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryDecimalStr")] + public decimal QueryDecimalStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypesResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypesResponse.cs new file mode 100755 index 000000000..c63a11e33 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostComplexNumberTypesResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostComplexNumberTypesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostComplexNumberTypes200ApplicationJSON? RequestBodyPostComplexNumberTypes200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.cs new file mode 100755 index 000000000..712424cd6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostDefaultsAndConsts200ApplicationJSON + { + + [JsonProperty("json")] + public DefaultsAndConstsOutput Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostDefaultsAndConstsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostDefaultsAndConstsResponse.cs new file mode 100755 index 000000000..4d17e83b7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostDefaultsAndConstsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostDefaultsAndConstsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostDefaultsAndConsts200ApplicationJSON? RequestBodyPostDefaultsAndConsts200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSON.cs new file mode 100755 index 000000000..21a6efcab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSON.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostEmptyObject200ApplicationJSON + { + + [JsonProperty("empty")] + public RequestBodyPostEmptyObject200ApplicationJSONEmpty? Empty { get; set; } + + [JsonProperty("emptyRespWithEmptyProperies")] + public RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies? EmptyRespWithEmptyProperies { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.cs new file mode 100755 index 000000000..8ab33114b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class RequestBodyPostEmptyObject200ApplicationJSONEmpty + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.cs new file mode 100755 index 000000000..fba7e4b17 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBody.cs new file mode 100755 index 000000000..fcf798ba0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBody.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostEmptyObjectRequestBody + { + + [JsonProperty("empty")] + public RequestBodyPostEmptyObjectRequestBodyEmpty? Empty { get; set; } + + [JsonProperty("emptyWithEmptyProperties")] + public RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties? EmptyWithEmptyProperties { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmpty.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmpty.cs new file mode 100755 index 000000000..d69315a2c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmpty.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class RequestBodyPostEmptyObjectRequestBodyEmpty + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.cs new file mode 100755 index 000000000..50871dfeb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + + public class RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectResponse.cs new file mode 100755 index 000000000..cdd058729 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostEmptyObjectResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostEmptyObjectResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostEmptyObject200ApplicationJSON? RequestBodyPostEmptyObject200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepRes.cs new file mode 100755 index 000000000..ee065c284 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostFormDeepRes + { + + [JsonProperty("form")] + public RequestBodyPostFormDeepResForm Form { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepResForm.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepResForm.cs new file mode 100755 index 000000000..f64029465 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepResForm.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostFormDeepResForm + { + + [JsonProperty("arr")] + public string Arr { get; set; } = default!; + + [JsonProperty("bool")] + public string Bool { get; set; } = default!; + + [JsonProperty("int")] + public string Int { get; set; } = default!; + + [JsonProperty("map")] + public string Map { get; set; } = default!; + + [JsonProperty("num")] + public string Num { get; set; } = default!; + + [JsonProperty("obj")] + public string Obj { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepResponse.cs new file mode 100755 index 000000000..371518d37 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormDeepResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostFormDeepResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostFormDeepRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormMapPrimitiveRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormMapPrimitiveRes.cs new file mode 100755 index 000000000..f226cbd4e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormMapPrimitiveRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostFormMapPrimitiveRes + { + + [JsonProperty("form")] + public Dictionary Form { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormMapPrimitiveResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormMapPrimitiveResponse.cs new file mode 100755 index 000000000..3f95296c5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormMapPrimitiveResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostFormMapPrimitiveResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostFormMapPrimitiveRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs new file mode 100755 index 000000000..4a29a7bb5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostFormSimpleRes + { + + [JsonProperty("form")] + public RequestBodyPostFormSimpleResForm Form { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResForm.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResForm.cs new file mode 100755 index 000000000..357c5cb92 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResForm.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostFormSimpleResForm + { + + [JsonProperty("any")] + public string Any { get; set; } = default!; + + [JsonProperty("bool")] + public string Bool { get; set; } = default!; + + [JsonProperty("boolOpt")] + public string? BoolOpt { get; set; } + + [JsonProperty("date")] + public string Date { get; set; } = default!; + + [JsonProperty("dateTime")] + public string DateTime { get; set; } = default!; + + [JsonProperty("enum")] + public string Enum { get; set; } = default!; + + [JsonProperty("float32")] + public string Float32 { get; set; } = default!; + + [JsonProperty("int")] + public string Int { get; set; } = default!; + + [JsonProperty("int32")] + public string Int32 { get; set; } = default!; + + [JsonProperty("intOptNull")] + public string? IntOptNull { get; set; } + + [JsonProperty("num")] + public string Num { get; set; } = default!; + + [JsonProperty("numOptNull")] + public string? NumOptNull { get; set; } + + [JsonProperty("str")] + public string Str { get; set; } = default!; + + [JsonProperty("strOpt")] + public string? StrOpt { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResponse.cs new file mode 100755 index 000000000..5f86491f4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostFormSimpleResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostFormSimpleResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostFormSimpleRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.cs new file mode 100755 index 000000000..d5627a80a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Numerics; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public List Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.cs new file mode 100755 index 000000000..a81c63c12 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using NodaTime; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public List Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.cs new file mode 100755 index 000000000..eb9d97c23 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public List Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.cs new file mode 100755 index 000000000..39398393c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Numerics; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesBigInt200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public BigInteger Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.cs new file mode 100755 index 000000000..fc7efe9ab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Utils; + using System.Numerics; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.cs new file mode 100755 index 000000000..4c23c9e26 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesBoolean200ApplicationJSON + { + + [JsonProperty("json")] + public bool Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.cs new file mode 100755 index 000000000..54a7d0ee3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using NodaTime; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesDate200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public LocalDate Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.cs new file mode 100755 index 000000000..a0141eff3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesDateTime200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public DateTime Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.cs new file mode 100755 index 000000000..cf5fdb579 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesDecimal200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public decimal Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.cs new file mode 100755 index 000000000..cc5483895 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Utils; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + [JsonConverter(typeof(DecimalSerializer))] + public decimal Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.cs new file mode 100755 index 000000000..0486b550b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesFloat32200ApplicationJSON + { + + [JsonProperty("json")] + public double Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.cs new file mode 100755 index 000000000..4af0dd2a1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesInt32200ApplicationJSON + { + + [JsonProperty("json")] + public int Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.cs new file mode 100755 index 000000000..59a2605f9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesInteger200ApplicationJSON + { + + [JsonProperty("json")] + public long Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.cs new file mode 100755 index 000000000..d4a9374ac --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Numerics; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.cs new file mode 100755 index 000000000..95baed600 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.cs new file mode 100755 index 000000000..66f86847d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.cs new file mode 100755 index 000000000..99f6222e1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesNumber200ApplicationJSON + { + + [JsonProperty("json")] + public double Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.cs new file mode 100755 index 000000000..b9b6fe43b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostJSONDataTypesString200ApplicationJSON + { + + [JsonProperty("json")] + public string Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.cs new file mode 100755 index 000000000..ffadb61c7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesArrayBigIntResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON? RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDateResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDateResponse.cs new file mode 100755 index 000000000..32efc2b70 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDateResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesArrayDateResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON? RequestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.cs new file mode 100755 index 000000000..07a599358 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesArrayDecimalStrResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON? RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntResponse.cs new file mode 100755 index 000000000..685e81076 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesBigIntResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesBigInt200ApplicationJSON? RequestBodyPostJSONDataTypesBigInt200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntStrResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntStrResponse.cs new file mode 100755 index 000000000..f6ec774cd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntStrResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesBigIntStrResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON? RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBooleanResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBooleanResponse.cs new file mode 100755 index 000000000..c96768eb6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesBooleanResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesBooleanResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesBoolean200ApplicationJSON? RequestBodyPostJSONDataTypesBoolean200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDateResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDateResponse.cs new file mode 100755 index 000000000..f4d3717be --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDateResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesDateResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesDate200ApplicationJSON? RequestBodyPostJSONDataTypesDate200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDateTimeResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDateTimeResponse.cs new file mode 100755 index 000000000..813e49c1b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDateTimeResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesDateTimeResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesDateTime200ApplicationJSON? RequestBodyPostJSONDataTypesDateTime200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalResponse.cs new file mode 100755 index 000000000..03c818ff1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesDecimalResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesDecimal200ApplicationJSON? RequestBodyPostJSONDataTypesDecimal200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalStrResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalStrResponse.cs new file mode 100755 index 000000000..587dd8ecf --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalStrResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesDecimalStrResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON? RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesFloat32Response.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesFloat32Response.cs new file mode 100755 index 000000000..49cc2b503 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesFloat32Response.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesFloat32Response + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesFloat32200ApplicationJSON? RequestBodyPostJSONDataTypesFloat32200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesInt32Response.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesInt32Response.cs new file mode 100755 index 000000000..d8e57367e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesInt32Response.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesInt32Response + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesInt32200ApplicationJSON? RequestBodyPostJSONDataTypesInt32200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesIntegerResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesIntegerResponse.cs new file mode 100755 index 000000000..7b5804b7c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesIntegerResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesIntegerResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesInteger200ApplicationJSON? RequestBodyPostJSONDataTypesInteger200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.cs new file mode 100755 index 000000000..39c30afb1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesMapBigIntStrResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON? RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.cs new file mode 100755 index 000000000..515bfecce --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesMapDateTimeResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON? RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDecimalResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDecimalResponse.cs new file mode 100755 index 000000000..40d53459e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDecimalResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesMapDecimalResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON? RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesNumberResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesNumberResponse.cs new file mode 100755 index 000000000..2fac100e2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesNumberResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesNumberResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesNumber200ApplicationJSON? RequestBodyPostJSONDataTypesNumber200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesStringResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesStringResponse.cs new file mode 100755 index 000000000..db6913ea3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostJsonDataTypesStringResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostJsonDataTypesStringResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostJSONDataTypesString200ApplicationJSON? RequestBodyPostJSONDataTypesString200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.cs new file mode 100755 index 000000000..a501db0ab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesComponentFilteredRes + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.cs new file mode 100755 index 000000000..70548d7f1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesComponentFilteredResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesComponentFilteredRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.cs new file mode 100755 index 000000000..34399941d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON + { + + [JsonProperty("bool")] + public bool Bool { get; set; } = default!; + + [JsonProperty("num")] + public double Num { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.cs new file mode 100755 index 000000000..b3e96db06 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesInlineFilteredRes + { + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.cs new file mode 100755 index 000000000..e90a06b35 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesInlineFilteredResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesInlineFilteredRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.cs new file mode 100755 index 000000000..96f315dab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostMultipleContentTypesSplitApplicationJSON + { + + [JsonProperty("bool")] + public bool Bool { get; set; } = default!; + + [JsonProperty("num")] + public double Num { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.cs new file mode 100755 index 000000000..a7c6f60a0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded + { + + [SpeakeasyMetadata("form:name=bool3")] + public bool Bool3 { get; set; } = default!; + + [SpeakeasyMetadata("form:name=num3")] + public double Num3 { get; set; } = default!; + + [SpeakeasyMetadata("form:name=str3")] + public string Str3 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormRes.cs new file mode 100755 index 000000000..5faa02a55 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesSplitFormRes + { + + [JsonProperty("form")] + public Dictionary? Form { get; set; } + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormResponse.cs new file mode 100755 index 000000000..2f5d428ae --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesSplitFormResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesSplitFormRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonRes.cs new file mode 100755 index 000000000..731cc030d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesSplitJsonRes + { + + [JsonProperty("form")] + public Dictionary? Form { get; set; } + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.cs new file mode 100755 index 000000000..100b1c3aa --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesSplitJsonResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesSplitJsonRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.cs new file mode 100755 index 000000000..492828301 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitMultipartFormData + { + + [SpeakeasyMetadata("multipartForm:name=bool2")] + public bool Bool2 { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=num2")] + public double Num2 { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=str2")] + public string Str2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.cs new file mode 100755 index 000000000..8f9d48858 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesSplitMultipartRes + { + + [JsonProperty("form")] + public Dictionary? Form { get; set; } + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.cs new file mode 100755 index 000000000..4710a1d2b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesSplitMultipartResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesSplitMultipartRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.cs new file mode 100755 index 000000000..66ce80bf3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPostMultipleContentTypesSplitParamApplicationJSON + { + + [JsonProperty("bool")] + public bool Bool { get; set; } = default!; + + [JsonProperty("num")] + public double Num { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.cs new file mode 100755 index 000000000..3cf8a78ba --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded + { + + [SpeakeasyMetadata("form:name=bool3")] + public bool Bool3 { get; set; } = default!; + + [SpeakeasyMetadata("form:name=num3")] + public double Num3 { get; set; } = default!; + + [SpeakeasyMetadata("form:name=str3")] + public string Str3 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.cs new file mode 100755 index 000000000..3cf785276 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitParamFormRequest + { + + [SpeakeasyMetadata("request:mediaType=application/x-www-form-urlencoded")] + public RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=paramStr")] + public string ParamStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.cs new file mode 100755 index 000000000..27e4f6dfb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesSplitParamFormRes + { + + [JsonProperty("args")] + public Dictionary? Args { get; set; } + + [JsonProperty("form")] + public Dictionary? Form { get; set; } + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.cs new file mode 100755 index 000000000..4f3a0cc36 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesSplitParamFormResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesSplitParamFormRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.cs new file mode 100755 index 000000000..d5c668c44 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitParamJsonRequest + { + + [SpeakeasyMetadata("request:mediaType=application/json")] + public RequestBodyPostMultipleContentTypesSplitParamApplicationJSON RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=paramStr")] + public string ParamStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.cs new file mode 100755 index 000000000..2661e65fc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesSplitParamJsonRes + { + + [JsonProperty("args")] + public Dictionary? Args { get; set; } + + [JsonProperty("form")] + public Dictionary? Form { get; set; } + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.cs new file mode 100755 index 000000000..acaacc023 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesSplitParamJsonResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesSplitParamJsonRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.cs new file mode 100755 index 000000000..28d5ad37b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitParamMultipartFormData + { + + [SpeakeasyMetadata("multipartForm:name=bool2")] + public bool Bool2 { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=num2")] + public double Num2 { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=str2")] + public string Str2 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.cs new file mode 100755 index 000000000..8ec36426a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPostMultipleContentTypesSplitParamMultipartRequest + { + + [SpeakeasyMetadata("request:mediaType=multipart/form-data")] + public RequestBodyPostMultipleContentTypesSplitParamMultipartFormData RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=paramStr")] + public string ParamStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.cs new file mode 100755 index 000000000..e7e87c18e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPostMultipleContentTypesSplitParamMultipartRes + { + + [JsonProperty("args")] + public Dictionary? Args { get; set; } + + [JsonProperty("form")] + public Dictionary? Form { get; set; } + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.cs new file mode 100755 index 000000000..7338ceb3c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostMultipleContentTypesSplitParamMultipartResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostMultipleContentTypesSplitParamMultipartRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.cs new file mode 100755 index 000000000..a40ee2309 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.cs new file mode 100755 index 000000000..f9c0e4d29 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostNotNullableNotRequiredStringBodyResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON? RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullArray200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullArray200ApplicationJSON.cs new file mode 100755 index 000000000..3d72492bc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullArray200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostNullArray200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullArrayResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullArrayResponse.cs new file mode 100755 index 000000000..2546c63d2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullArrayResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostNullArrayResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostNullArray200ApplicationJSON? RequestBodyPostNullArray200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullDictionary200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullDictionary200ApplicationJSON.cs new file mode 100755 index 000000000..265c91349 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullDictionary200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostNullDictionary200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullDictionaryResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullDictionaryResponse.cs new file mode 100755 index 000000000..36d90c895 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullDictionaryResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostNullDictionaryResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostNullDictionary200ApplicationJSON? RequestBodyPostNullDictionary200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.cs new file mode 100755 index 000000000..ead2fc060 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBodyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBodyResponse.cs new file mode 100755 index 000000000..8cfb3913b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBodyResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostNullableNotRequiredStringBodyResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON? RequestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.cs new file mode 100755 index 000000000..26c7544a5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPostNullableRequiredStringBody200ApplicationJSON + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableRequiredStringBodyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableRequiredStringBodyResponse.cs new file mode 100755 index 000000000..5854e100b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPostNullableRequiredStringBodyResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPostNullableRequiredStringBodyResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPostNullableRequiredStringBody200ApplicationJSON? RequestBodyPostNullableRequiredStringBody200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesRes.cs new file mode 100755 index 000000000..d43c6e7c9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPutBytesRes + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesResponse.cs new file mode 100755 index 000000000..420f3e987 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutBytesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutBytesRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsRequest.cs new file mode 100755 index 000000000..69040bb2f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPutBytesWithParamsRequest + { + + [SpeakeasyMetadata("request:mediaType=application/octet-stream")] + public byte[] RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryStringParam")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsRes.cs new file mode 100755 index 000000000..65c098c97 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPutBytesWithParamsRes + { + + [JsonProperty("args")] + public RequestBodyPutBytesWithParamsResArgs Args { get; set; } = default!; + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsResArgs.cs new file mode 100755 index 000000000..c8c1e7ccc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsResArgs.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPutBytesWithParamsResArgs + { + + [JsonProperty("queryStringParam")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsResponse.cs new file mode 100755 index 000000000..7853f5311 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutBytesWithParamsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutBytesWithParamsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutBytesWithParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepRes.cs new file mode 100755 index 000000000..a075ec156 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPutMultipartDeepRes + { + + [JsonProperty("form")] + public RequestBodyPutMultipartDeepResForm Form { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepResForm.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepResForm.cs new file mode 100755 index 000000000..4ea0816e1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepResForm.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPutMultipartDeepResForm + { + + [JsonProperty("arr")] + public string Arr { get; set; } = default!; + + [JsonProperty("bool")] + public string Bool { get; set; } = default!; + + [JsonProperty("int")] + public string Int { get; set; } = default!; + + [JsonProperty("map")] + public string Map { get; set; } = default!; + + [JsonProperty("num")] + public string Num { get; set; } = default!; + + [JsonProperty("obj")] + public string Obj { get; set; } = default!; + + [JsonProperty("str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepResponse.cs new file mode 100755 index 000000000..7b7b642b8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDeepResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutMultipartDeepResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutMultipartDeepRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBody.cs new file mode 100755 index 000000000..a5b1f82ac --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPutMultipartDifferentFileNameRequestBody + { + + [SpeakeasyMetadata("multipartForm:file")] + public RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName? DifferentFileName { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.cs new file mode 100755 index 000000000..4d06530cc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName + { + + [SpeakeasyMetadata("multipartForm:content")] + public byte[] Content { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=differentFileName")] + public string DifferentFileName { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRes.cs new file mode 100755 index 000000000..431acf290 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPutMultipartDifferentFileNameRes + { + + [JsonProperty("files")] + public Dictionary Files { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameResponse.cs new file mode 100755 index 000000000..f15afc851 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutMultipartDifferentFileNameResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutMultipartDifferentFileNameRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRequestBody.cs new file mode 100755 index 000000000..7b8d4829e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRequestBody.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPutMultipartFileRequestBody + { + + [SpeakeasyMetadata("multipartForm:file")] + public RequestBodyPutMultipartFileRequestBodyFile? File { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRequestBodyFile.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRequestBodyFile.cs new file mode 100755 index 000000000..7baffa4ac --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRequestBodyFile.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPutMultipartFileRequestBodyFile + { + + [SpeakeasyMetadata("multipartForm:content")] + public byte[] Content { get; set; } = default!; + + [SpeakeasyMetadata("multipartForm:name=file")] + public string File { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRes.cs new file mode 100755 index 000000000..3615c90ca --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class RequestBodyPutMultipartFileRes + { + + [JsonProperty("files")] + public Dictionary Files { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileResponse.cs new file mode 100755 index 000000000..90c3787a1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartFileResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutMultipartFileResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutMultipartFileRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs new file mode 100755 index 000000000..0e0171aa6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPutMultipartSimpleRes + { + + [JsonProperty("form")] + public RequestBodyPutMultipartSimpleResForm Form { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResForm.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResForm.cs new file mode 100755 index 000000000..ba29591db --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResForm.cs @@ -0,0 +1,60 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPutMultipartSimpleResForm + { + + [JsonProperty("any")] + public string Any { get; set; } = default!; + + [JsonProperty("bool")] + public string Bool { get; set; } = default!; + + [JsonProperty("boolOpt")] + public string? BoolOpt { get; set; } + + [JsonProperty("date")] + public string Date { get; set; } = default!; + + [JsonProperty("dateTime")] + public string DateTime { get; set; } = default!; + + [JsonProperty("enum")] + public string Enum { get; set; } = default!; + + [JsonProperty("float32")] + public string Float32 { get; set; } = default!; + + [JsonProperty("int")] + public string Int { get; set; } = default!; + + [JsonProperty("int32")] + public string Int32 { get; set; } = default!; + + [JsonProperty("intOptNull")] + public string? IntOptNull { get; set; } + + [JsonProperty("num")] + public string Num { get; set; } = default!; + + [JsonProperty("numOptNull")] + public string? NumOptNull { get; set; } + + [JsonProperty("str")] + public string Str { get; set; } = default!; + + [JsonProperty("strOpt")] + public string? StrOpt { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResponse.cs new file mode 100755 index 000000000..96454b011 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutMultipartSimpleResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutMultipartSimpleResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutMultipartSimpleRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringRes.cs new file mode 100755 index 000000000..d87f09757 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPutStringRes + { + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringResponse.cs new file mode 100755 index 000000000..829166a1c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutStringResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutStringRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsRequest.cs new file mode 100755 index 000000000..e61e8627a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RequestBodyPutStringWithParamsRequest + { + + [SpeakeasyMetadata("request:mediaType=text/plain")] + public string RequestBody { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=queryStringParam")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsRes.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsRes.cs new file mode 100755 index 000000000..6e028e89a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsRes.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RequestBodyPutStringWithParamsRes + { + + [JsonProperty("args")] + public RequestBodyPutStringWithParamsResArgs Args { get; set; } = default!; + + [JsonProperty("data")] + public string Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsResArgs.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsResArgs.cs new file mode 100755 index 000000000..3eb7dc02b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsResArgs.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + public class RequestBodyPutStringWithParamsResArgs + { + + [JsonProperty("queryStringParam")] + public string QueryStringParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsResponse.cs new file mode 100755 index 000000000..ba2cce042 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyPutStringWithParamsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyPutStringWithParamsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RequestBodyPutStringWithParamsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadAndWriteResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadAndWriteResponse.cs new file mode 100755 index 000000000..a0cfae3bb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadAndWriteResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyReadAndWriteResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ReadWriteObjectOutput? ReadWriteObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadOnlyInputResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadOnlyInputResponse.cs new file mode 100755 index 000000000..a2d43a5d8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadOnlyInputResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyReadOnlyInputResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ReadOnlyObject? ReadOnlyObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadOnlyUnionResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadOnlyUnionResponse.cs new file mode 100755 index 000000000..d1a6cb48c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadOnlyUnionResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyReadOnlyUnionResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public object? WeaklyTypedOneOfReadOnlyObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadWriteOnlyUnionResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadWriteOnlyUnionResponse.cs new file mode 100755 index 000000000..68a055b5a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyReadWriteOnlyUnionResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyReadWriteOnlyUnionResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public object? WeaklyTypedOneOfReadWriteObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyOutputResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyOutputResponse.cs new file mode 100755 index 000000000..a2ecdad36 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyOutputResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyWriteOnlyOutputResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public WriteOnlyObjectOutput? WriteOnlyObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyResponse.cs new file mode 100755 index 000000000..80689cc79 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class RequestBodyWriteOnlyResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ReadOnlyObject? ReadOnlyObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyUnionResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyUnionResponse.cs new file mode 100755 index 000000000..175c75a4f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RequestBodyWriteOnlyUnionResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RequestBodyWriteOnlyUnionResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public object? WeaklyTypedOneOfWriteOnlyObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.cs new file mode 100755 index 000000000..c04678f9b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.cs @@ -0,0 +1,26 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Numerics; + + /// + /// OK + /// + public class ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON + { + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.cs new file mode 100755 index 000000000..151b2c262 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyAdditionalPropertiesComplexNumbersPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON? ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.cs new file mode 100755 index 000000000..913068720 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.cs @@ -0,0 +1,26 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using NodaTime; + using System.Collections.Generic; + + /// + /// OK + /// + public class ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON + { + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePostResponse.cs new file mode 100755 index 000000000..20964cfc4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyAdditionalPropertiesDatePostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON? ResponseBodyAdditionalPropertiesDatePost200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.cs new file mode 100755 index 000000000..4f6575ffd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.cs @@ -0,0 +1,26 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + using System.Collections.Generic; + + /// + /// OK + /// + public class ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + { + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.cs new file mode 100755 index 000000000..c7a98cfce --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyAdditionalPropertiesObjectPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON? ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.cs new file mode 100755 index 000000000..e9bbeaaf8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class ResponseBodyAdditionalPropertiesPost200ApplicationJSON + { + + [JsonProperty("json")] + public Dictionary Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesPostResponse.cs new file mode 100755 index 000000000..20c9cc7b0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyAdditionalPropertiesPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyAdditionalPropertiesPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ResponseBodyAdditionalPropertiesPost200ApplicationJSON? ResponseBodyAdditionalPropertiesPost200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyBytesGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyBytesGetResponse.cs new file mode 100755 index 000000000..b3dea3d7a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyBytesGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyBytesGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public byte[]? Bytes { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyEmptyWithHeadersRequest.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyEmptyWithHeadersRequest.cs new file mode 100755 index 000000000..25f45d3d0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyEmptyWithHeadersRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class ResponseBodyEmptyWithHeadersRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Number-Header")] + public double XNumberHeader { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-String-Header")] + public string XStringHeader { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyEmptyWithHeadersResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyEmptyWithHeadersResponse.cs new file mode 100755 index 000000000..87b5c5bb8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyEmptyWithHeadersResponse.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class ResponseBodyEmptyWithHeadersResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + public Dictionary>? Headers { get; set; } + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyJsonGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyJsonGetResponse.cs new file mode 100755 index 000000000..b82e301a8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyJsonGetResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class ResponseBodyJsonGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public HttpBinSimpleJsonObject? HttpBinSimpleJsonObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyOptionalGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyOptionalGetResponse.cs new file mode 100755 index 000000000..feeae21d1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyOptionalGetResponse.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class ResponseBodyOptionalGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public string? ResponseBodyOptionalGet200TextPlainString { get; set; } + + /// + /// OK + /// + public TypedObject1? TypedObject1 { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyReadOnlyResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyReadOnlyResponse.cs new file mode 100755 index 000000000..09b7627ff --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyReadOnlyResponse.cs @@ -0,0 +1,40 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class ResponseBodyReadOnlyResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ReadOnlyObject? ReadOnlyObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyStringGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyStringGetResponse.cs new file mode 100755 index 000000000..dabc3e4fc --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyStringGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyStringGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public string? Html { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyXmlGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyXmlGetResponse.cs new file mode 100755 index 000000000..53e5b5579 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyXmlGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyXmlGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public string? Xml { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.cs new file mode 100755 index 000000000..d097e2b86 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// OK + /// + public class ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON + { + + [JsonProperty("json")] + public ObjWithZeroValueComplexTypePtrs Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.cs new file mode 100755 index 000000000..39a5197e7 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ResponseBodyZeroValueComplexTypePtrsPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON? ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RetriesGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/RetriesGetRequest.cs new file mode 100755 index 000000000..30d22242e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RetriesGetRequest.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class RetriesGetRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=request-id")] + public string RequestId { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=num-retries")] + public long? NumRetries { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RetriesGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/RetriesGetResponse.cs new file mode 100755 index 000000000..1b5c51445 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RetriesGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class RetriesGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public RetriesGetRetries? Retries { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/RetriesGetRetries.cs b/csharp-client-sdk/SDK/Models/Operations/RetriesGetRetries.cs new file mode 100755 index 000000000..0bae8b038 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/RetriesGetRetries.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class RetriesGetRetries + { + + [JsonProperty("retries")] + public long Retries { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SelectGlobalServerResponse.cs b/csharp-client-sdk/SDK/Models/Operations/SelectGlobalServerResponse.cs new file mode 100755 index 000000000..ee260189f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SelectGlobalServerResponse.cs @@ -0,0 +1,37 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Collections.Generic; + using System.Net.Http; + using System; + + public class SelectGlobalServerResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + public Dictionary>? Headers { get; set; } + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SelectServerWithIDResponse.cs b/csharp-client-sdk/SDK/Models/Operations/SelectServerWithIDResponse.cs new file mode 100755 index 000000000..ecc563bd8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SelectServerWithIDResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class SelectServerWithIDResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ServerWithProtocolTemplateResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ServerWithProtocolTemplateResponse.cs new file mode 100755 index 000000000..82a18616a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ServerWithProtocolTemplateResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ServerWithProtocolTemplateResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ServerWithTemplatesGlobalResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ServerWithTemplatesGlobalResponse.cs new file mode 100755 index 000000000..05f1fdb34 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ServerWithTemplatesGlobalResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ServerWithTemplatesGlobalResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ServerWithTemplatesResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ServerWithTemplatesResponse.cs new file mode 100755 index 000000000..a45866535 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ServerWithTemplatesResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ServerWithTemplatesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/ServersByIDWithTemplatesResponse.cs b/csharp-client-sdk/SDK/Models/Operations/ServersByIDWithTemplatesResponse.cs new file mode 100755 index 000000000..dc6ed2860 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/ServersByIDWithTemplatesResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class ServersByIDWithTemplatesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysRequest.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysRequest.cs new file mode 100755 index 000000000..2932ea945 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysRequest.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class SimplePathParameterArraysRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=arrParam")] + public List ArrParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysRes.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysRes.cs new file mode 100755 index 000000000..c2c5ae715 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class SimplePathParameterArraysRes + { + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysResponse.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysResponse.cs new file mode 100755 index 000000000..670d919f4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterArraysResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class SimplePathParameterArraysResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public SimplePathParameterArraysRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsRequest.cs new file mode 100755 index 000000000..72017e85e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + using System.Collections.Generic; + + public class SimplePathParameterMapsRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=mapParam")] + public Dictionary MapParam { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=true,name=mapParamExploded")] + public Dictionary MapParamExploded { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsRes.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsRes.cs new file mode 100755 index 000000000..31112febd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class SimplePathParameterMapsRes + { + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsResponse.cs new file mode 100755 index 000000000..7713234a0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterMapsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class SimplePathParameterMapsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public SimplePathParameterMapsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsRequest.cs new file mode 100755 index 000000000..892891439 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsRequest.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using SDK.Utils; + + public class SimplePathParameterObjectsRequest + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=objParam")] + public SimpleObject ObjParam { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + [SpeakeasyMetadata("pathParam:style=simple,explode=true,name=objParamExploded")] + public SimpleObject ObjParamExploded { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsRes.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsRes.cs new file mode 100755 index 000000000..d9f915f28 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class SimplePathParameterObjectsRes + { + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsResponse.cs new file mode 100755 index 000000000..448fbc230 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterObjectsResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class SimplePathParameterObjectsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public SimplePathParameterObjectsRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesRequest.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesRequest.cs new file mode 100755 index 000000000..664071096 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class SimplePathParameterPrimitivesRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=boolParam")] + public bool BoolParam { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=intParam")] + public long IntParam { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=numParam")] + public double NumParam { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=strParam")] + public string StrParam { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesRes.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesRes.cs new file mode 100755 index 000000000..a339f184d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class SimplePathParameterPrimitivesRes + { + + [JsonProperty("url")] + public string Url { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesResponse.cs b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesResponse.cs new file mode 100755 index 000000000..e4518d6c8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/SimplePathParameterPrimitivesResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class SimplePathParameterPrimitivesResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public SimplePathParameterPrimitivesRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StatusGetErrorRequest.cs b/csharp-client-sdk/SDK/Models/Operations/StatusGetErrorRequest.cs new file mode 100755 index 000000000..31600f890 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StatusGetErrorRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class StatusGetErrorRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=statusCode")] + public long StatusCode { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StatusGetErrorResponse.cs b/csharp-client-sdk/SDK/Models/Operations/StatusGetErrorResponse.cs new file mode 100755 index 000000000..420e5ea78 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StatusGetErrorResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class StatusGetErrorResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.cs new file mode 100755 index 000000000..a978bb3a1 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// Not Implemented + /// + public class StatusGetXSpeakeasyErrors501ApplicationJSON + { + + [JsonProperty("code")] + public string? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("type")] + public ErrorType? Type { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrorsRequest.cs b/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrorsRequest.cs new file mode 100755 index 000000000..5538b8106 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrorsRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class StatusGetXSpeakeasyErrorsRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=statusCode")] + public long StatusCode { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrorsResponse.cs b/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrorsResponse.cs new file mode 100755 index 000000000..9aa4af75b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StatusGetXSpeakeasyErrorsResponse.cs @@ -0,0 +1,45 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Models.Shared; + using System.Net.Http; + using System; + + public class StatusGetXSpeakeasyErrorsResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// Internal Server Error + /// + public Error? Error { get; set; } + + /// + /// Not Implemented + /// + public StatusGetXSpeakeasyErrors501ApplicationJSON? StatusGetXSpeakeasyErrors501ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StronglyTypedOneOfPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/StronglyTypedOneOfPostRes.cs new file mode 100755 index 000000000..8e69307a4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StronglyTypedOneOfPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class StronglyTypedOneOfPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/StronglyTypedOneOfPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/StronglyTypedOneOfPostResponse.cs new file mode 100755 index 000000000..dcc979e29 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/StronglyTypedOneOfPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class StronglyTypedOneOfPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public StronglyTypedOneOfPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRequest.cs new file mode 100755 index 000000000..17b606514 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class TelemetrySpeakeasyUserAgentGetRequest + { + + [SpeakeasyMetadata("header:style=simple,explode=false,name=User-Agent")] + public string UserAgent { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRes.cs b/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRes.cs new file mode 100755 index 000000000..63cc69443 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class TelemetrySpeakeasyUserAgentGetRes + { + + [JsonProperty("headers")] + public Dictionary Headers { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetResponse.cs new file mode 100755 index 000000000..30de7fa2c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class TelemetrySpeakeasyUserAgentGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public TelemetrySpeakeasyUserAgentGetRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TelemetryUserAgentGetRes.cs b/csharp-client-sdk/SDK/Models/Operations/TelemetryUserAgentGetRes.cs new file mode 100755 index 000000000..d31543fe5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TelemetryUserAgentGetRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// OK + /// + public class TelemetryUserAgentGetRes + { + + [JsonProperty("headers")] + public Dictionary Headers { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TelemetryUserAgentGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/TelemetryUserAgentGetResponse.cs new file mode 100755 index 000000000..519553185 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TelemetryUserAgentGetResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class TelemetryUserAgentGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public TelemetryUserAgentGetRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypeFromAnchor.cs b/csharp-client-sdk/SDK/Models/Operations/TypeFromAnchor.cs new file mode 100755 index 000000000..519cf1920 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypeFromAnchor.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public class TypeFromAnchor + { + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("json")] + public SimpleObject? Json { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedObjectNullableOneOfPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/TypedObjectNullableOneOfPostRes.cs new file mode 100755 index 000000000..e91b7edca --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedObjectNullableOneOfPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class TypedObjectNullableOneOfPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedObjectNullableOneOfPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/TypedObjectNullableOneOfPostResponse.cs new file mode 100755 index 000000000..c16084d80 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedObjectNullableOneOfPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class TypedObjectNullableOneOfPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public TypedObjectNullableOneOfPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedObjectOneOfPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/TypedObjectOneOfPostRes.cs new file mode 100755 index 000000000..9ce45b212 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedObjectOneOfPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class TypedObjectOneOfPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedObjectOneOfPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/TypedObjectOneOfPostResponse.cs new file mode 100755 index 000000000..584f3babd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedObjectOneOfPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class TypedObjectOneOfPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public TypedObjectOneOfPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetObj.cs b/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetObj.cs new file mode 100755 index 000000000..9cf25d6ed --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetObj.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class TypedParameterGenerationGetObj + { + + [SpeakeasyMetadata("queryParam:name=bool")] + public bool Bool { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=num")] + public double Num { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetRequest.cs b/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetRequest.cs new file mode 100755 index 000000000..c200e2efb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetRequest.cs @@ -0,0 +1,32 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using NodaTime; + using SDK.Utils; + using System.Numerics; + + public class TypedParameterGenerationGetRequest + { + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=bigint")] + public BigInteger? Bigint { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=date")] + public LocalDate? Date { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimal")] + public decimal? Decimal { get; set; } + + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=obj")] + public TypedParameterGenerationGetObj? Obj { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetResponse.cs b/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetResponse.cs new file mode 100755 index 000000000..3f631ff0c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/TypedParameterGenerationGetResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class TypedParameterGenerationGetResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionDateNullRes.cs b/csharp-client-sdk/SDK/Models/Operations/UnionDateNullRes.cs new file mode 100755 index 000000000..ddc280020 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionDateNullRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using NodaTime; + + /// + /// OK + /// + public class UnionDateNullRes + { + + [JsonProperty("json")] + public LocalDate Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionDateNullResponse.cs b/csharp-client-sdk/SDK/Models/Operations/UnionDateNullResponse.cs new file mode 100755 index 000000000..a7a0951e3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionDateNullResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class UnionDateNullResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public UnionDateNullRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeNullRes.cs b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeNullRes.cs new file mode 100755 index 000000000..7878de93d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeNullRes.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System; + + /// + /// OK + /// + public class UnionDateTimeNullRes + { + + [JsonProperty("json")] + public DateTime Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeNullResponse.cs b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeNullResponse.cs new file mode 100755 index 000000000..95c1df7aa --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UnionDateTimeNullResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class UnionDateTimeNullResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public UnionDateTimeNullRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UpdateResourceRequest.cs b/csharp-client-sdk/SDK/Models/Operations/UpdateResourceRequest.cs new file mode 100755 index 000000000..d1d7edcef --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UpdateResourceRequest.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class UpdateResourceRequest + { + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=resourceId")] + public string ResourceId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UpdateResourceResponse.cs b/csharp-client-sdk/SDK/Models/Operations/UpdateResourceResponse.cs new file mode 100755 index 000000000..18d5beee6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UpdateResourceResponse.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class UpdateResourceResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePost200ApplicationJSON.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePost200ApplicationJSON.cs new file mode 100755 index 000000000..942031263 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePost200ApplicationJSON.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// A response body that contains the simpleObject sent in the request body + /// + public class UsageExamplePost200ApplicationJSON + { + + [JsonProperty("json")] + public UsageExamplePost200ApplicationJSONJSON Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePost200ApplicationJSONJSON.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePost200ApplicationJSONJSON.cs new file mode 100755 index 000000000..f4cbe4683 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePost200ApplicationJSONJSON.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + public class UsageExamplePost200ApplicationJSONJSON + { + + /// + /// A set of strings with format values that lead to relevant examples being generated for them + /// + [JsonProperty("fakerFormattedStrings")] + public FakerFormattedStrings? FakerFormattedStrings { get; set; } + + /// + /// A set of strings with fieldnames that lead to relevant examples being generated for them + /// + [JsonProperty("fakerStrings")] + public FakerStrings? FakerStrings { get; set; } + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("simpleObject")] + public SimpleObject? SimpleObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostEnumParameter.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostEnumParameter.cs new file mode 100755 index 000000000..42e3cee2a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostEnumParameter.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System; + + /// + /// An enum type + /// + public enum UsageExamplePostEnumParameter + { + [JsonProperty("value1")] + Value1, + [JsonProperty("value2")] + Value2, + [JsonProperty("value3")] + Value3, + } + + public static class UsageExamplePostEnumParameterExtension + { + public static string Value(this UsageExamplePostEnumParameter value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static UsageExamplePostEnumParameter ToEnum(this string value) + { + foreach(var field in typeof(UsageExamplePostEnumParameter).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is UsageExamplePostEnumParameter) + { + return (UsageExamplePostEnumParameter)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum UsageExamplePostEnumParameter"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostOptEnumParameter.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostOptEnumParameter.cs new file mode 100755 index 000000000..dd67a6437 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostOptEnumParameter.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using System; + + /// + /// An enum type + /// + public enum UsageExamplePostOptEnumParameter + { + [JsonProperty("value1")] + Value1, + [JsonProperty("value2")] + Value2, + [JsonProperty("value3")] + Value3, + } + + public static class UsageExamplePostOptEnumParameterExtension + { + public static string Value(this UsageExamplePostOptEnumParameter value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static UsageExamplePostOptEnumParameter ToEnum(this string value) + { + foreach(var field in typeof(UsageExamplePostOptEnumParameter).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is UsageExamplePostOptEnumParameter) + { + return (UsageExamplePostOptEnumParameter)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum UsageExamplePostOptEnumParameter"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostRequest.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostRequest.cs new file mode 100755 index 000000000..ceb3988ec --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostRequest.cs @@ -0,0 +1,153 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using NodaTime; + using SDK.Utils; + using System.Numerics; + using System; + + public class UsageExamplePostRequest + { + + /// + /// An bigint parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=bigintParameter")] + public BigInteger BigintParameter { get; set; } = default!; + + /// + /// An bigint parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=bigintStrParameter")] + public BigInteger BigintStrParameter { get; set; } = default!; + + /// + /// A boolean parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=boolParameter")] + public bool BoolParameter { get; set; } = default!; + + /// + /// A date parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateParameter")] + public LocalDate DateParameter { get; set; } = default!; + + /// + /// A date time parameter with a default value + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateTimeDefaultParameter")] + public DateTime DateTimeDefaultParameter { get; set; } = default!; + + /// + /// A date time parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateTimeParameter")] + public DateTime DateTimeParameter { get; set; } = default!; + + /// + /// A decimal parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimalParameter")] + public decimal DecimalParameter { get; set; } = default!; + + /// + /// A decimal parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimalStrParameter")] + public decimal DecimalStrParameter { get; set; } = default!; + + /// + /// A double parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=doubleParameter")] + public double DoubleParameter { get; set; } = default!; + + /// + /// An enum parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=enumParameter")] + public UsageExamplePostEnumParameter EnumParameter { get; set; } = default!; + + /// + /// A number parameter that contains a falsey example value + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=falseyNumberParameter")] + public double FalseyNumberParameter { get; set; } = default!; + + /// + /// A float32 parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=float32Parameter")] + public float Float32Parameter { get; set; } = default!; + + /// + /// A float parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=floatParameter")] + public double FloatParameter { get; set; } = default!; + + /// + /// An int64 parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=int64Parameter")] + public long Int64Parameter { get; set; } = default!; + + /// + /// An integer parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=intParameter")] + public int IntParameter { get; set; } = default!; + + /// + /// A string parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=strParameter")] + public string StrParameter { get; set; } = default!; + + /// + /// A request body that contains fields with different formats for testing example generation + /// + [SpeakeasyMetadata("request:mediaType=application/json")] + public UsageExamplePostRequestBody? RequestBody { get; set; } + + /// + /// An bigint parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=bigintParameterOptional")] + public BigInteger? BigintParameterOptional { get; set; } + + /// + /// An bigint parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=bigintStrParameterOptional")] + public BigInteger? BigintStrParameterOptional { get; set; } + + /// + /// A decimal parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimalParameterOptional")] + public decimal? DecimalParameterOptional { get; set; } + + /// + /// A decimal parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimalStrParameterOptional")] + public decimal? DecimalStrParameterOptional { get; set; } + + /// + /// An enum parameter + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=optEnumParameter")] + public UsageExamplePostOptEnumParameter? OptEnumParameter { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostRequestBody.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostRequestBody.cs new file mode 100755 index 000000000..15cda0e1d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostRequestBody.cs @@ -0,0 +1,42 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + using SDK.Models.Shared; + + /// + /// A request body that contains fields with different formats for testing example generation + /// + public class UsageExamplePostRequestBody + { + + /// + /// A set of strings with format values that lead to relevant examples being generated for them + /// + [JsonProperty("fakerFormattedStrings")] + public FakerFormattedStrings? FakerFormattedStrings { get; set; } + + /// + /// A set of strings with fieldnames that lead to relevant examples being generated for them + /// + [JsonProperty("fakerStrings")] + public FakerStrings? FakerStrings { get; set; } + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("simpleObject")] + public SimpleObject? SimpleObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostResponse.cs new file mode 100755 index 000000000..b3ba0c43f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class UsageExamplePostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// A successful response that contains the simpleObject sent in the request body + /// + public UsageExamplePost200ApplicationJSON? UsageExamplePost200ApplicationJSONObject { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostSecurity.cs b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostSecurity.cs new file mode 100755 index 000000000..693f5277c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/UsageExamplePostSecurity.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using SDK.Utils; + + public class UsageExamplePostSecurity + { + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic,name=password")] + public string Password { get; set; } = default!; + + [SpeakeasyMetadata("security:scheme=true,type=http,subType=basic,name=username")] + public string Username { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/WeaklyTypedOneOfPostRes.cs b/csharp-client-sdk/SDK/Models/Operations/WeaklyTypedOneOfPostRes.cs new file mode 100755 index 000000000..3ac6d0e5f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/WeaklyTypedOneOfPostRes.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using Newtonsoft.Json; + + /// + /// OK + /// + public class WeaklyTypedOneOfPostRes + { + + [JsonProperty("json")] + public object Json { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Operations/WeaklyTypedOneOfPostResponse.cs b/csharp-client-sdk/SDK/Models/Operations/WeaklyTypedOneOfPostResponse.cs new file mode 100755 index 000000000..8bebce9ab --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Operations/WeaklyTypedOneOfPostResponse.cs @@ -0,0 +1,39 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Operations +{ + using System.Net.Http; + using System; + + public class WeaklyTypedOneOfPostResponse + { + + /// + /// HTTP response content type for this operation + /// + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + public HttpResponseMessage? RawResponse { get; set; } + + /// + /// OK + /// + public WeaklyTypedOneOfPostRes? Res { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/AllOfToAllOf.cs b/csharp-client-sdk/SDK/Models/Shared/AllOfToAllOf.cs new file mode 100755 index 000000000..72a985845 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/AllOfToAllOf.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class AllOfToAllOf + { + + [JsonProperty("id")] + public string? Id { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ArrObjValue.cs b/csharp-client-sdk/SDK/Models/Shared/ArrObjValue.cs new file mode 100755 index 000000000..ac56afcc3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ArrObjValue.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class ArrObjValue + { + + [JsonProperty("json")] + public List? Json { get; set; } + + [JsonProperty("required")] + public object? Required { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ArrObjValueCamelCase.cs b/csharp-client-sdk/SDK/Models/Shared/ArrObjValueCamelCase.cs new file mode 100755 index 000000000..ff5e32bb6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ArrObjValueCamelCase.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class ArrObjValueCamelCase + { + + [JsonProperty("json")] + public List? Json { get; set; } + + [JsonProperty("required")] + public object? Required { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ArrayCircularReferenceObject.cs b/csharp-client-sdk/SDK/Models/Shared/ArrayCircularReferenceObject.cs new file mode 100755 index 000000000..115bbabbd --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ArrayCircularReferenceObject.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class ArrayCircularReferenceObject + { + + [JsonProperty("circular")] + public List Circular { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBody.cs b/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBody.cs new file mode 100755 index 000000000..cbd6dd4c3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBody.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class AuthServiceRequestBody + { + + [JsonProperty("basicAuth")] + public AuthServiceRequestBodyBasicAuth? BasicAuth { get; set; } + + [JsonProperty("headerAuth")] + public List? HeaderAuth { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBodyBasicAuth.cs b/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBodyBasicAuth.cs new file mode 100755 index 000000000..45b8be337 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBodyBasicAuth.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class AuthServiceRequestBodyBasicAuth + { + + [JsonProperty("password")] + public string Password { get; set; } = default!; + + [JsonProperty("username")] + public string Username { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBodyHeaderAuth.cs b/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBodyHeaderAuth.cs new file mode 100755 index 000000000..c2aa48690 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/AuthServiceRequestBodyHeaderAuth.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class AuthServiceRequestBodyHeaderAuth + { + + [JsonProperty("expectedValue")] + public string ExpectedValue { get; set; } = default!; + + [JsonProperty("headerName")] + public string HeaderName { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ComplexNumberTypes.cs b/csharp-client-sdk/SDK/Models/Shared/ComplexNumberTypes.cs new file mode 100755 index 000000000..9e2457c2a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ComplexNumberTypes.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using SDK.Utils; + using System.Numerics; + + public class ComplexNumberTypes + { + + [JsonProperty("bigint")] + public BigInteger Bigint { get; set; } = default!; + + [JsonProperty("bigintStr")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger BigintStr { get; set; } = default!; + + [JsonProperty("decimal")] + public decimal Decimal { get; set; } = default!; + + [JsonProperty("decimalStr")] + [JsonConverter(typeof(DecimalSerializer))] + public decimal DecimalStr { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DeepObject.cs b/csharp-client-sdk/SDK/Models/Shared/DeepObject.cs new file mode 100755 index 000000000..b628fce14 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DeepObject.cs @@ -0,0 +1,61 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using SDK.Utils; + using System.Collections.Generic; + + public class DeepObject + { + + [JsonProperty("any")] + [SpeakeasyMetadata("form:name=any,json multipartForm:name=any,json")] + public object Any { get; set; } = default!; + + [JsonProperty("arr")] + [SpeakeasyMetadata("form:name=arr,json multipartForm:name=arr,json")] + public List Arr { get; set; } = default!; + + [JsonProperty("bool")] + [SpeakeasyMetadata("form:name=bool multipartForm:name=bool")] + public bool Bool { get; set; } = default!; + + [JsonProperty("int")] + [SpeakeasyMetadata("form:name=int multipartForm:name=int")] + public long Int { get; set; } = default!; + + [JsonProperty("map")] + [SpeakeasyMetadata("form:name=map,json multipartForm:name=map,json")] + public Dictionary Map { get; set; } = default!; + + [JsonProperty("num")] + [SpeakeasyMetadata("form:name=num multipartForm:name=num")] + public double Num { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("obj")] + [SpeakeasyMetadata("form:name=obj,json multipartForm:name=obj,json")] + public SimpleObject Obj { get; set; } = default!; + + [JsonProperty("str")] + [SpeakeasyMetadata("form:name=str multipartForm:name=str")] + public string Str { get; set; } = default!; + + [JsonProperty("type")] + [SpeakeasyMetadata("form:name=type multipartForm:name=type")] + public string? Type { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DeepObjectCamelCase.cs b/csharp-client-sdk/SDK/Models/Shared/DeepObjectCamelCase.cs new file mode 100755 index 000000000..94f158408 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DeepObjectCamelCase.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class DeepObjectCamelCase + { + + [JsonProperty("any_val")] + public object AnyVal { get; set; } = default!; + + [JsonProperty("arr_val")] + public List ArrVal { get; set; } = default!; + + [JsonProperty("bool_val")] + public bool BoolVal { get; set; } = default!; + + [JsonProperty("int_val")] + public long IntVal { get; set; } = default!; + + [JsonProperty("map_val")] + public Dictionary MapVal { get; set; } = default!; + + [JsonProperty("num_val")] + public double NumVal { get; set; } = default!; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + [JsonProperty("obj_val")] + public SimpleObjectCamelCase ObjVal { get; set; } = default!; + + [JsonProperty("str_val")] + public string StrVal { get; set; } = default!; + + [JsonProperty("type")] + public string? Type { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConsts.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConsts.cs new file mode 100755 index 000000000..1292f49a2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConsts.cs @@ -0,0 +1,110 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Utils; + using System.Numerics; + using System; + + public class DefaultsAndConsts + { + + [JsonProperty("constBigInt")] + public BigInteger ConstBigInt { get; set; } = default!; + + [JsonProperty("constBigIntStr")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger ConstBigIntStr { get; set; } = default!; + + [JsonProperty("constBool")] + public bool ConstBool { get; set; } = default!; + + [JsonProperty("constDate")] + public LocalDate ConstDate { get; set; } = default!; + + [JsonProperty("constDateTime")] + public DateTime ConstDateTime { get; set; } = default!; + + [JsonProperty("constDecimal")] + public decimal ConstDecimal { get; set; } = default!; + + [JsonProperty("constDecimalStr")] + [JsonConverter(typeof(DecimalSerializer))] + public decimal ConstDecimalStr { get; set; } = default!; + + [JsonProperty("constEnumInt")] + public DefaultsAndConstsConstEnumInt ConstEnumInt { get; set; } = default!; + + [JsonProperty("constEnumStr")] + public DefaultsAndConstsConstEnumStr ConstEnumStr { get; set; } = default!; + + [JsonProperty("constInt")] + public long ConstInt { get; set; } = default!; + + [JsonProperty("constNum")] + public double ConstNum { get; set; } = default!; + + [JsonProperty("constStr")] + public string ConstStr { get; set; } = default!; + + [JsonProperty("constStrNull")] + public string ConstStrNull { get; set; } = default!; + + [JsonProperty("normalField")] + public string NormalField { get; set; } = default!; + + [JsonProperty("defaultBigInt")] + public BigInteger? DefaultBigInt { get; set; } + + [JsonProperty("defaultBigIntStr")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger? DefaultBigIntStr { get; set; } + + [JsonProperty("defaultBool")] + public bool? DefaultBool { get; set; } + + [JsonProperty("defaultDate")] + public LocalDate? DefaultDate { get; set; } + + [JsonProperty("defaultDateTime")] + public DateTime? DefaultDateTime { get; set; } + + [JsonProperty("defaultDecimal")] + public decimal? DefaultDecimal { get; set; } + + [JsonProperty("defaultDecimalStr")] + [JsonConverter(typeof(DecimalSerializer))] + public decimal? DefaultDecimalStr { get; set; } + + [JsonProperty("defaultEnumInt")] + public DefaultsAndConstsDefaultEnumInt? DefaultEnumInt { get; set; } + + [JsonProperty("defaultEnumStr")] + public DefaultsAndConstsDefaultEnumStr? DefaultEnumStr { get; set; } + + [JsonProperty("defaultInt")] + public long? DefaultInt { get; set; } + + [JsonProperty("defaultNum")] + public double? DefaultNum { get; set; } + + [JsonProperty("defaultStr")] + public string? DefaultStr { get; set; } + + [JsonProperty("defaultStrNullable")] + public string? DefaultStrNullable { get; set; } + + [JsonProperty("defaultStrOptional")] + public string? DefaultStrOptional { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsConstEnumInt.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsConstEnumInt.cs new file mode 100755 index 000000000..3e9dd2202 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsConstEnumInt.cs @@ -0,0 +1,20 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public enum DefaultsAndConstsConstEnumInt + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsConstEnumStr.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsConstEnumStr.cs new file mode 100755 index 000000000..cdea13938 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsConstEnumStr.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum DefaultsAndConstsConstEnumStr + { + [JsonProperty("one")] + One, + [JsonProperty("two")] + Two, + [JsonProperty("three")] + Three, + } + + public static class DefaultsAndConstsConstEnumStrExtension + { + public static string Value(this DefaultsAndConstsConstEnumStr value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static DefaultsAndConstsConstEnumStr ToEnum(this string value) + { + foreach(var field in typeof(DefaultsAndConstsConstEnumStr).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is DefaultsAndConstsConstEnumStr) + { + return (DefaultsAndConstsConstEnumStr)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum DefaultsAndConstsConstEnumStr"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsDefaultEnumInt.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsDefaultEnumInt.cs new file mode 100755 index 000000000..7260a5514 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsDefaultEnumInt.cs @@ -0,0 +1,20 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public enum DefaultsAndConstsDefaultEnumInt + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsDefaultEnumStr.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsDefaultEnumStr.cs new file mode 100755 index 000000000..616a9785a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsDefaultEnumStr.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum DefaultsAndConstsDefaultEnumStr + { + [JsonProperty("one")] + One, + [JsonProperty("two")] + Two, + [JsonProperty("three")] + Three, + } + + public static class DefaultsAndConstsDefaultEnumStrExtension + { + public static string Value(this DefaultsAndConstsDefaultEnumStr value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static DefaultsAndConstsDefaultEnumStr ToEnum(this string value) + { + foreach(var field in typeof(DefaultsAndConstsDefaultEnumStr).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is DefaultsAndConstsDefaultEnumStr) + { + return (DefaultsAndConstsDefaultEnumStr)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum DefaultsAndConstsDefaultEnumStr"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutput.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutput.cs new file mode 100755 index 000000000..b225b8a5d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutput.cs @@ -0,0 +1,110 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Utils; + using System.Numerics; + using System; + + public class DefaultsAndConstsOutput + { + + [JsonProperty("constBigInt")] + public BigInteger ConstBigInt { get; set; } = default!; + + [JsonProperty("constBigIntStr")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger ConstBigIntStr { get; set; } = default!; + + [JsonProperty("constBool")] + public bool ConstBool { get; set; } = default!; + + [JsonProperty("constDate")] + public LocalDate ConstDate { get; set; } = default!; + + [JsonProperty("constDateTime")] + public DateTime ConstDateTime { get; set; } = default!; + + [JsonProperty("constDecimal")] + public decimal ConstDecimal { get; set; } = default!; + + [JsonProperty("constDecimalStr")] + [JsonConverter(typeof(DecimalSerializer))] + public decimal ConstDecimalStr { get; set; } = default!; + + [JsonProperty("constEnumInt")] + public DefaultsAndConstsOutputConstEnumInt ConstEnumInt { get; set; } = default!; + + [JsonProperty("constEnumStr")] + public DefaultsAndConstsOutputConstEnumStr ConstEnumStr { get; set; } = default!; + + [JsonProperty("constInt")] + public long ConstInt { get; set; } = default!; + + [JsonProperty("constNum")] + public double ConstNum { get; set; } = default!; + + [JsonProperty("constStr")] + public string ConstStr { get; set; } = default!; + + [JsonProperty("constStrNull")] + public string ConstStrNull { get; set; } = default!; + + [JsonProperty("defaultBigInt")] + public BigInteger DefaultBigInt { get; set; } = default!; + + [JsonProperty("defaultBigIntStr")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger DefaultBigIntStr { get; set; } = default!; + + [JsonProperty("defaultBool")] + public bool DefaultBool { get; set; } = default!; + + [JsonProperty("defaultDate")] + public LocalDate DefaultDate { get; set; } = default!; + + [JsonProperty("defaultDateTime")] + public DateTime DefaultDateTime { get; set; } = default!; + + [JsonProperty("defaultDecimal")] + public decimal DefaultDecimal { get; set; } = default!; + + [JsonProperty("defaultDecimalStr")] + [JsonConverter(typeof(DecimalSerializer))] + public decimal DefaultDecimalStr { get; set; } = default!; + + [JsonProperty("defaultEnumInt")] + public DefaultsAndConstsOutputDefaultEnumInt DefaultEnumInt { get; set; } = default!; + + [JsonProperty("defaultEnumStr")] + public DefaultsAndConstsOutputDefaultEnumStr DefaultEnumStr { get; set; } = default!; + + [JsonProperty("defaultInt")] + public long DefaultInt { get; set; } = default!; + + [JsonProperty("defaultNum")] + public double DefaultNum { get; set; } = default!; + + [JsonProperty("defaultStr")] + public string DefaultStr { get; set; } = default!; + + [JsonProperty("defaultStrNullable")] + public string DefaultStrNullable { get; set; } = default!; + + [JsonProperty("defaultStrOptional")] + public string? DefaultStrOptional { get; set; } + + [JsonProperty("normalField")] + public string NormalField { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputConstEnumInt.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputConstEnumInt.cs new file mode 100755 index 000000000..1767ed0e8 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputConstEnumInt.cs @@ -0,0 +1,20 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public enum DefaultsAndConstsOutputConstEnumInt + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputConstEnumStr.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputConstEnumStr.cs new file mode 100755 index 000000000..3688d105b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputConstEnumStr.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum DefaultsAndConstsOutputConstEnumStr + { + [JsonProperty("one")] + One, + [JsonProperty("two")] + Two, + [JsonProperty("three")] + Three, + } + + public static class DefaultsAndConstsOutputConstEnumStrExtension + { + public static string Value(this DefaultsAndConstsOutputConstEnumStr value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static DefaultsAndConstsOutputConstEnumStr ToEnum(this string value) + { + foreach(var field in typeof(DefaultsAndConstsOutputConstEnumStr).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is DefaultsAndConstsOutputConstEnumStr) + { + return (DefaultsAndConstsOutputConstEnumStr)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum DefaultsAndConstsOutputConstEnumStr"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumInt.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumInt.cs new file mode 100755 index 000000000..a70d7189a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumInt.cs @@ -0,0 +1,20 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public enum DefaultsAndConstsOutputDefaultEnumInt + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumStr.cs b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumStr.cs new file mode 100755 index 000000000..649606633 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumStr.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum DefaultsAndConstsOutputDefaultEnumStr + { + [JsonProperty("one")] + One, + [JsonProperty("two")] + Two, + [JsonProperty("three")] + Three, + } + + public static class DefaultsAndConstsOutputDefaultEnumStrExtension + { + public static string Value(this DefaultsAndConstsOutputDefaultEnumStr value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static DefaultsAndConstsOutputDefaultEnumStr ToEnum(this string value) + { + foreach(var field in typeof(DefaultsAndConstsOutputDefaultEnumStr).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is DefaultsAndConstsOutputDefaultEnumStr) + { + return (DefaultsAndConstsOutputDefaultEnumStr)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum DefaultsAndConstsOutputDefaultEnumStr"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DeprecatedFieldInObject.cs b/csharp-client-sdk/SDK/Models/Shared/DeprecatedFieldInObject.cs new file mode 100755 index 000000000..e4293168b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DeprecatedFieldInObject.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public class DeprecatedFieldInObject + { + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [JsonProperty("deprecatedEnum")] + public DeprecatedFieldInObjectDeprecatedEnum? DeprecatedEnum { get; set; } + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use NewField instead")] + [JsonProperty("deprecatedField")] + public string? DeprecatedField { get; set; } + + [JsonProperty("newField")] + public string? NewField { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DeprecatedFieldInObjectDeprecatedEnum.cs b/csharp-client-sdk/SDK/Models/Shared/DeprecatedFieldInObjectDeprecatedEnum.cs new file mode 100755 index 000000000..2dd65bb43 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DeprecatedFieldInObjectDeprecatedEnum.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + [Obsolete("This enum is deprecated.")] + public enum DeprecatedFieldInObjectDeprecatedEnum + { + [JsonProperty("a")] + A, + [JsonProperty("b")] + B, + [JsonProperty("c")] + C, + } + + public static class DeprecatedFieldInObjectDeprecatedEnumExtension + { + public static string Value(this DeprecatedFieldInObjectDeprecatedEnum value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static DeprecatedFieldInObjectDeprecatedEnum ToEnum(this string value) + { + foreach(var field in typeof(DeprecatedFieldInObjectDeprecatedEnum).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is DeprecatedFieldInObjectDeprecatedEnum) + { + return (DeprecatedFieldInObjectDeprecatedEnum)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum DeprecatedFieldInObjectDeprecatedEnum"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/DeprecatedObject.cs b/csharp-client-sdk/SDK/Models/Shared/DeprecatedObject.cs new file mode 100755 index 000000000..dcdbeb99f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/DeprecatedObject.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + [Obsolete("This object is deprecated.")] + public class DeprecatedObject + { + + [JsonProperty("str")] + public string? Str { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/EmptyObjectParam.cs b/csharp-client-sdk/SDK/Models/Shared/EmptyObjectParam.cs new file mode 100755 index 000000000..6ff32aab5 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/EmptyObjectParam.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public class EmptyObjectParam + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/Enum.cs b/csharp-client-sdk/SDK/Models/Shared/Enum.cs new file mode 100755 index 000000000..fe4d6907f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/Enum.cs @@ -0,0 +1,63 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + /// + /// A string based enum + /// + public enum Enum + { + [JsonProperty("one")] + One, + [JsonProperty("two")] + Two, + [JsonProperty("three")] + Three, + [JsonProperty("four_and_more")] + FourAndMore, + } + + public static class EnumExtension + { + public static string Value(this Enum value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static Enum ToEnum(this string value) + { + foreach(var field in typeof(Enum).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is Enum) + { + return (Enum)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum Enum"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/Error.cs b/csharp-client-sdk/SDK/Models/Shared/Error.cs new file mode 100755 index 000000000..46f23a10f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/Error.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class Error + { + + [JsonProperty("code")] + public string? Code { get; set; } + + [JsonProperty("message")] + public string? Message { get; set; } + + [JsonProperty("type")] + public ErrorType? Type { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ErrorType.cs b/csharp-client-sdk/SDK/Models/Shared/ErrorType.cs new file mode 100755 index 000000000..150200d6e --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ErrorType.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum ErrorType + { + [JsonProperty("not_found")] + NotFound, + [JsonProperty("invalid")] + Invalid, + [JsonProperty("internal")] + Internal, + } + + public static class ErrorTypeExtension + { + public static string Value(this ErrorType value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static ErrorType ToEnum(this string value) + { + foreach(var field in typeof(ErrorType).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is ErrorType) + { + return (ErrorType)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum ErrorType"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ExampleResource.cs b/csharp-client-sdk/SDK/Models/Shared/ExampleResource.cs new file mode 100755 index 000000000..71d1a2a5b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ExampleResource.cs @@ -0,0 +1,56 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + + public class ExampleResource + { + + [JsonProperty("chocolates")] + public List Chocolates { get; set; } = default!; + + [JsonProperty("id")] + public string Id { get; set; } = default!; + + [JsonProperty("name")] + public string Name { get; set; } = default!; + + [JsonProperty("vehicle")] + public object Vehicle { get; set; } = default!; + + [JsonProperty("arrayOfNumber")] + public List? ArrayOfNumber { get; set; } + + [JsonProperty("arrayOfString")] + public List? ArrayOfString { get; set; } + + [JsonProperty("createdAt")] + public DateTime? CreatedAt { get; set; } + + [JsonProperty("enumNumber")] + public ExampleResourceEnumNumber? EnumNumber { get; set; } + + [JsonProperty("enumStr")] + public ExampleResourceEnumStr? EnumStr { get; set; } + + [JsonProperty("mapOfInteger")] + public Dictionary? MapOfInteger { get; set; } + + [JsonProperty("mapOfString")] + public Dictionary? MapOfString { get; set; } + + [JsonProperty("updatedAt")] + public DateTime? UpdatedAt { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ExampleResourceChocolates.cs b/csharp-client-sdk/SDK/Models/Shared/ExampleResourceChocolates.cs new file mode 100755 index 000000000..21e1151d0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ExampleResourceChocolates.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class ExampleResourceChocolates + { + + [JsonProperty("description")] + public string Description { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ExampleResourceEnumNumber.cs b/csharp-client-sdk/SDK/Models/Shared/ExampleResourceEnumNumber.cs new file mode 100755 index 000000000..8612cbddb --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ExampleResourceEnumNumber.cs @@ -0,0 +1,20 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public enum ExampleResourceEnumNumber + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ExampleResourceEnumStr.cs b/csharp-client-sdk/SDK/Models/Shared/ExampleResourceEnumStr.cs new file mode 100755 index 000000000..04cbcc235 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ExampleResourceEnumStr.cs @@ -0,0 +1,58 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum ExampleResourceEnumStr + { + [JsonProperty("one")] + One, + [JsonProperty("two")] + Two, + [JsonProperty("three")] + Three, + } + + public static class ExampleResourceEnumStrExtension + { + public static string Value(this ExampleResourceEnumStr value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static ExampleResourceEnumStr ToEnum(this string value) + { + foreach(var field in typeof(ExampleResourceEnumStr).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is ExampleResourceEnumStr) + { + return (ExampleResourceEnumStr)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum ExampleResourceEnumStr"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/FakerFormattedStrings.cs b/csharp-client-sdk/SDK/Models/Shared/FakerFormattedStrings.cs new file mode 100755 index 000000000..f65e26e8d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/FakerFormattedStrings.cs @@ -0,0 +1,129 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + /// + /// A set of strings with format values that lead to relevant examples being generated for them + /// + public class FakerFormattedStrings + { + + /// + /// A field that will have an address generated as example + /// + [JsonProperty("addressFormat")] + public string? AddressFormat { get; set; } + + /// + /// A field that will have a directory path generated as example + /// + [JsonProperty("directoryFormat")] + public string? DirectoryFormat { get; set; } + + /// + /// A field that will have a domain name generated as example + /// + [JsonProperty("domainFormat")] + public string? DomainFormat { get; set; } + + /// + /// A field that will have an email address generated as example + /// + [JsonProperty("emailFormat")] + public string? EmailFormat { get; set; } + + /// + /// A field that will have a filename generated as example + /// + [JsonProperty("filenameFormat")] + public string? FilenameFormat { get; set; } + + /// + /// A field that will have a file path generated as example + /// + [JsonProperty("filepathFormat")] + public string? FilepathFormat { get; set; } + + /// + /// A field that will have a image url generated as example + /// + [JsonProperty("imageFormat")] + public string? ImageFormat { get; set; } + + /// + /// A field that will have an IPv4 address generated as example + /// + [JsonProperty("ipv4Format")] + public string? Ipv4Format { get; set; } + + /// + /// A field that will have an IPv6 address generated as example + /// + [JsonProperty("ipv6Format")] + public string? Ipv6Format { get; set; } + + /// + /// A field that will have a JSON generated as example + /// + [JsonProperty("jsonFormat")] + public string? JsonFormat { get; set; } + + /// + /// A field that will have a MAC address generated as example + /// + [JsonProperty("macFormat")] + public string? MacFormat { get; set; } + + /// + /// A field that will have a fake password generated as example + /// + [JsonProperty("passwordFormat")] + public string? PasswordFormat { get; set; } + + /// + /// A field that will have a phone number generated as example + /// + [JsonProperty("phoneFormat")] + public string? PhoneFormat { get; set; } + + /// + /// A field that will have a timezone generated as example + /// + [JsonProperty("timezoneFormat")] + public string? TimezoneFormat { get; set; } + + /// + /// A field that will have random words generated as example + /// + [JsonProperty("unknownFormat")] + public string? UnknownFormat { get; set; } + + /// + /// A field that will have a URL generated as example + /// + [JsonProperty("urlFormat")] + public string? UrlFormat { get; set; } + + /// + /// A field that will have a UUID generated as example + /// + [JsonProperty("uuidFormat")] + public string? UuidFormat { get; set; } + + /// + /// A field that will have a postal code generated as example + /// + [JsonProperty("zipcodeFormat")] + public string? ZipcodeFormat { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/FakerStrings.cs b/csharp-client-sdk/SDK/Models/Shared/FakerStrings.cs new file mode 100755 index 000000000..e780abd6f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/FakerStrings.cs @@ -0,0 +1,180 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + /// + /// A set of strings with fieldnames that lead to relevant examples being generated for them + /// + public class FakerStrings + { + + [JsonProperty("City")] + public string? City { get; set; } + + [JsonProperty("IBAN")] + public string? Iban { get; set; } + + [JsonProperty("ID")] + public string? Id { get; set; } + + [JsonProperty("IPv4")] + public string? IPv4 { get; set; } + + [JsonProperty("IPv6")] + public string? IPv6 { get; set; } + + [JsonProperty("account")] + public string? Account { get; set; } + + [JsonProperty("address")] + public string? Address { get; set; } + + [JsonProperty("amount")] + public string? Amount { get; set; } + + [JsonProperty("avatar")] + public string? Avatar { get; set; } + + [JsonProperty("color")] + public string? Color { get; set; } + + [JsonProperty("comment")] + public string? Comment { get; set; } + + [JsonProperty("company")] + public string? Company { get; set; } + + [JsonProperty("country")] + public string? Country { get; set; } + + [JsonProperty("country_code")] + public string? CountryCode { get; set; } + + [JsonProperty("currency")] + public string? Currency { get; set; } + + [JsonProperty("datatype")] + public string? Datatype { get; set; } + + [JsonProperty("default")] + public string? Default { get; set; } + + [JsonProperty("description")] + public string? Description { get; set; } + + [JsonProperty("directory")] + public string? Directory { get; set; } + + [JsonProperty("domainName")] + public string? DomainName { get; set; } + + [JsonProperty("emailAddr")] + public string? EmailAddr { get; set; } + + [JsonProperty("extension")] + public string? Extension { get; set; } + + [JsonProperty("filename")] + public string? Filename { get; set; } + + [JsonProperty("filepath")] + public string? Filepath { get; set; } + + [JsonProperty("filetype")] + public string? Filetype { get; set; } + + [JsonProperty("firstName")] + public string? FirstName { get; set; } + + [JsonProperty("fullName")] + public string? FullName { get; set; } + + [JsonProperty("gender")] + public string? Gender { get; set; } + + [JsonProperty("job")] + public string? Job { get; set; } + + [JsonProperty("json")] + public string? Json { get; set; } + + [JsonProperty("key")] + public string? Key { get; set; } + + [JsonProperty("lastName")] + public string? LastName { get; set; } + + [JsonProperty("latitude")] + public string? Latitude { get; set; } + + [JsonProperty("locale")] + public string? Locale { get; set; } + + [JsonProperty("longitude")] + public string? Longitude { get; set; } + + [JsonProperty("mac")] + public string? Mac { get; set; } + + [JsonProperty("manufacturer")] + public string? Manufacturer { get; set; } + + [JsonProperty("material")] + public string? Material { get; set; } + + [JsonProperty("middleName")] + public string? MiddleName { get; set; } + + [JsonProperty("model")] + public string? Model { get; set; } + + [JsonProperty("password")] + public string? Password { get; set; } + + [JsonProperty("phone")] + public string? Phone { get; set; } + + [JsonProperty("pin")] + public string? Pin { get; set; } + + [JsonProperty("postal-code")] + public string? PostalCode { get; set; } + + [JsonProperty("price")] + public string? Price { get; set; } + + [JsonProperty("product")] + public string? Product { get; set; } + + [JsonProperty("sex")] + public string? Sex { get; set; } + + [JsonProperty("street")] + public string? Street { get; set; } + + [JsonProperty("timezone")] + public string? Timezone { get; set; } + + [JsonProperty("unit")] + public string? Unit { get; set; } + + [JsonProperty("url")] + public string? Url { get; set; } + + [JsonProperty("username")] + public string? Username { get; set; } + + [JsonProperty("uuid")] + public string? Uuid { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/FileResource.cs b/csharp-client-sdk/SDK/Models/Shared/FileResource.cs new file mode 100755 index 000000000..e7431cf70 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/FileResource.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class FileResource + { + + [JsonProperty("id")] + public string Id { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObject.cs b/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObject.cs new file mode 100755 index 000000000..c4790b5b0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObject.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class HttpBinSimpleJsonObject + { + + [JsonProperty("slideshow")] + public HttpBinSimpleJsonObjectSlideshow Slideshow { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshow.cs b/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshow.cs new file mode 100755 index 000000000..2527e3145 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshow.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class HttpBinSimpleJsonObjectSlideshow + { + + [JsonProperty("author")] + public string Author { get; set; } = default!; + + [JsonProperty("date")] + public string Date { get; set; } = default!; + + [JsonProperty("slides")] + public List Slides { get; set; } = default!; + + [JsonProperty("title")] + public string Title { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshowSlides.cs b/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshowSlides.cs new file mode 100755 index 000000000..867f9ca23 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshowSlides.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class HttpBinSimpleJsonObjectSlideshowSlides + { + + [JsonProperty("items")] + public List? Items { get; set; } + + [JsonProperty("title")] + public string Title { get; set; } = default!; + + [JsonProperty("type")] + public string Type { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/LimitOffsetConfig.cs b/csharp-client-sdk/SDK/Models/Shared/LimitOffsetConfig.cs new file mode 100755 index 000000000..a8618f209 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/LimitOffsetConfig.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class LimitOffsetConfig + { + + [JsonProperty("limit")] + public long? Limit { get; set; } + + [JsonProperty("offset")] + public long? Offset { get; set; } + + [JsonProperty("page")] + public long? Page { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/MapObjValue.cs b/csharp-client-sdk/SDK/Models/Shared/MapObjValue.cs new file mode 100755 index 000000000..72216560d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/MapObjValue.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class MapObjValue + { + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + + [JsonProperty("required")] + public object? Required { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/MapObjValueCamelCase.cs b/csharp-client-sdk/SDK/Models/Shared/MapObjValueCamelCase.cs new file mode 100755 index 000000000..d4fd0b35a --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/MapObjValueCamelCase.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class MapObjValueCamelCase + { + + [JsonProperty("json")] + public Dictionary? Json { get; set; } + + [JsonProperty("required")] + public object? Required { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/NullableObject.cs b/csharp-client-sdk/SDK/Models/Shared/NullableObject.cs new file mode 100755 index 000000000..22f831e9b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/NullableObject.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class NullableObject + { + + [JsonProperty("required")] + public long Required { get; set; } = default!; + + [JsonProperty("optional")] + public string? Optional { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/NullableOneOfRefInObject.cs b/csharp-client-sdk/SDK/Models/Shared/NullableOneOfRefInObject.cs new file mode 100755 index 000000000..5b81fe855 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/NullableOneOfRefInObject.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class NullableOneOfRefInObject + { + + [JsonProperty("NullableOneOfOne")] + public TypedObject1 NullableOneOfOne { get; set; } = default!; + + [JsonProperty("NullableOneOfTwo")] + public object NullableOneOfTwo { get; set; } = default!; + + [JsonProperty("OneOfOne")] + public object OneOfOne { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/NullableOneOfTypeInObject.cs b/csharp-client-sdk/SDK/Models/Shared/NullableOneOfTypeInObject.cs new file mode 100755 index 000000000..b5d36814f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/NullableOneOfTypeInObject.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class NullableOneOfTypeInObject + { + + [JsonProperty("NullableOneOfOne")] + public bool NullableOneOfOne { get; set; } = default!; + + [JsonProperty("NullableOneOfTwo")] + public object NullableOneOfTwo { get; set; } = default!; + + [JsonProperty("OneOfOne")] + public bool OneOfOne { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ObjWithZeroValueComplexTypePtrs.cs b/csharp-client-sdk/SDK/Models/Shared/ObjWithZeroValueComplexTypePtrs.cs new file mode 100755 index 000000000..b760c1a69 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ObjWithZeroValueComplexTypePtrs.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Utils; + using System.Numerics; + using System; + + public class ObjWithZeroValueComplexTypePtrs + { + + [JsonProperty("bigint")] + public BigInteger? Bigint { get; set; } + + [JsonProperty("bigintStr")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger? BigintStr { get; set; } + + /// + /// A date property. + /// + [JsonProperty("date")] + public LocalDate? Date { get; set; } + + /// + /// A date-time property. + /// + [JsonProperty("dateTime")] + public DateTime? DateTime { get; set; } + + [JsonProperty("decimal")] + public decimal? Decimal { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ObjectCircularReferenceObject.cs b/csharp-client-sdk/SDK/Models/Shared/ObjectCircularReferenceObject.cs new file mode 100755 index 000000000..8f52f9034 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ObjectCircularReferenceObject.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class ObjectCircularReferenceObject + { + + [JsonProperty("circular")] + public ObjectCircularReferenceObject? Circular { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/OneOfCircularReferenceObject.cs b/csharp-client-sdk/SDK/Models/Shared/OneOfCircularReferenceObject.cs new file mode 100755 index 000000000..da890c9a0 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/OneOfCircularReferenceObject.cs @@ -0,0 +1,21 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class OneOfCircularReferenceObject + { + + [JsonProperty("child")] + public object Child { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/OneOfGenerationStressTest.cs b/csharp-client-sdk/SDK/Models/Shared/OneOfGenerationStressTest.cs new file mode 100755 index 000000000..f363b96e6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/OneOfGenerationStressTest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class OneOfGenerationStressTest + { + + [JsonProperty("any")] + public object Any { get; set; } = default!; + + [JsonProperty("nullableAny")] + public object NullableAny { get; set; } = default!; + + [JsonProperty("oneOfFromArrayOfTypes")] + public object OneOfFromArrayOfTypes { get; set; } = default!; + + [JsonProperty("oneOfSameType")] + public object OneOfSameType { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ReadOnlyObject.cs b/csharp-client-sdk/SDK/Models/Shared/ReadOnlyObject.cs new file mode 100755 index 000000000..065e3d811 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ReadOnlyObject.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class ReadOnlyObject + { + + [JsonProperty("bool")] + public bool Bool { get; set; } = default!; + + [JsonProperty("num")] + public double Num { get; set; } = default!; + + [JsonProperty("string")] + public string String { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ReadOnlyObjectInput.cs b/csharp-client-sdk/SDK/Models/Shared/ReadOnlyObjectInput.cs new file mode 100755 index 000000000..c1c127891 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ReadOnlyObjectInput.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public class ReadOnlyObjectInput + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ReadWriteObjectInput.cs b/csharp-client-sdk/SDK/Models/Shared/ReadWriteObjectInput.cs new file mode 100755 index 000000000..11b25a582 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ReadWriteObjectInput.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class ReadWriteObjectInput + { + + [JsonProperty("num1")] + public long Num1 { get; set; } = default!; + + [JsonProperty("num2")] + public long Num2 { get; set; } = default!; + + [JsonProperty("num3")] + public long Num3 { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ReadWriteObjectOutput.cs b/csharp-client-sdk/SDK/Models/Shared/ReadWriteObjectOutput.cs new file mode 100755 index 000000000..76539d36f --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ReadWriteObjectOutput.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class ReadWriteObjectOutput + { + + [JsonProperty("num3")] + public long Num3 { get; set; } = default!; + + [JsonProperty("sum")] + public long Sum { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/RefQueryParamObj.cs b/csharp-client-sdk/SDK/Models/Shared/RefQueryParamObj.cs new file mode 100755 index 000000000..fb8d3afc4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/RefQueryParamObj.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using SDK.Utils; + + public class RefQueryParamObj + { + + [SpeakeasyMetadata("queryParam:name=bool")] + public bool Bool { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=int")] + public long Int { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=num")] + public double Num { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/RefQueryParamObjExploded.cs b/csharp-client-sdk/SDK/Models/Shared/RefQueryParamObjExploded.cs new file mode 100755 index 000000000..98dda7cf4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/RefQueryParamObjExploded.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using SDK.Utils; + + public class RefQueryParamObjExploded + { + + [SpeakeasyMetadata("queryParam:name=bool")] + public bool Bool { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=int")] + public long Int { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=num")] + public double Num { get; set; } = default!; + + [SpeakeasyMetadata("queryParam:name=str")] + public string Str { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SchemeBasicAuth.cs b/csharp-client-sdk/SDK/Models/Shared/SchemeBasicAuth.cs new file mode 100755 index 000000000..5b181bc7c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SchemeBasicAuth.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using SDK.Utils; + + public class SchemeBasicAuth + { + + [SpeakeasyMetadata("security:name=password")] + public string Password { get; set; } = default!; + + [SpeakeasyMetadata("security:name=username")] + public string Username { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/Security.cs b/csharp-client-sdk/SDK/Models/Shared/Security.cs new file mode 100755 index 000000000..4f3648cd3 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/Security.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using SDK.Utils; + + public class Security + { + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=Authorization")] + public string? ApiKeyAuth { get; set; } + + [SpeakeasyMetadata("security:scheme=true,type=apiKey,subType=header,name=x-api-key")] + public string? ApiKeyAuthNew { get; set; } + + [SpeakeasyMetadata("security:scheme=true,type=oauth2,name=Authorization")] + public string? Oauth2 { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SimpleObject.cs b/csharp-client-sdk/SDK/Models/Shared/SimpleObject.cs new file mode 100755 index 000000000..5615ce7fa --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SimpleObject.cs @@ -0,0 +1,157 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Utils; + using System.Numerics; + using System; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + public class SimpleObject + { + + /// + /// An any property. + /// + [JsonProperty("any")] + [SpeakeasyMetadata("header:name=any pathParam:name=any queryParam:name=any form:name=any multipartForm:name=any")] + public object Any { get; set; } = default!; + + /// + /// A boolean property. + /// + [JsonProperty("bool")] + [SpeakeasyMetadata("header:name=bool pathParam:name=bool queryParam:name=bool form:name=bool multipartForm:name=bool")] + public bool Bool { get; set; } = default!; + + /// + /// A date property. + /// + [JsonProperty("date")] + [SpeakeasyMetadata("header:name=date pathParam:name=date queryParam:name=date form:name=date multipartForm:name=date")] + public LocalDate Date { get; set; } = default!; + + /// + /// A date-time property. + /// + [JsonProperty("dateTime")] + [SpeakeasyMetadata("header:name=dateTime pathParam:name=dateTime queryParam:name=dateTime form:name=dateTime multipartForm:name=dateTime")] + public DateTime DateTime { get; set; } = default!; + + /// + /// A string based enum + /// + [JsonProperty("enum")] + [SpeakeasyMetadata("header:name=enum pathParam:name=enum queryParam:name=enum form:name=enum multipartForm:name=enum")] + public Enum Enum { get; set; } = default!; + + /// + /// A float32 property. + /// + [JsonProperty("float32")] + [SpeakeasyMetadata("header:name=float32 pathParam:name=float32 queryParam:name=float32 form:name=float32 multipartForm:name=float32")] + public float Float32 { get; set; } = default!; + + /// + /// An integer property. + /// + [JsonProperty("int")] + [SpeakeasyMetadata("header:name=int pathParam:name=int queryParam:name=int form:name=int multipartForm:name=int")] + public long Int { get; set; } = default!; + + /// + /// An int32 property. + /// + [JsonProperty("int32")] + [SpeakeasyMetadata("header:name=int32 pathParam:name=int32 queryParam:name=int32 form:name=int32 multipartForm:name=int32")] + public int Int32 { get; set; } = default!; + + /// + /// An int32 enum property. + /// + [JsonProperty("int32Enum")] + [SpeakeasyMetadata("header:name=int32Enum pathParam:name=int32Enum queryParam:name=int32Enum form:name=int32Enum multipartForm:name=int32Enum")] + public SimpleObjectInt32Enum Int32Enum { get; set; } = default!; + + /// + /// An integer enum property. + /// + [JsonProperty("intEnum")] + [SpeakeasyMetadata("header:name=intEnum pathParam:name=intEnum queryParam:name=intEnum form:name=intEnum multipartForm:name=intEnum")] + public SimpleObjectIntEnum IntEnum { get; set; } = default!; + + /// + /// A number property. + /// + [JsonProperty("num")] + [SpeakeasyMetadata("header:name=num pathParam:name=num queryParam:name=num form:name=num multipartForm:name=num")] + public double Num { get; set; } = default!; + + /// + /// A string property. + /// + [JsonProperty("str")] + [SpeakeasyMetadata("header:name=str pathParam:name=str queryParam:name=str form:name=str multipartForm:name=str")] + public string Str { get; set; } = default!; + + [JsonProperty("bigint")] + [SpeakeasyMetadata("header:name=bigint pathParam:name=bigint queryParam:name=bigint form:name=bigint multipartForm:name=bigint")] + public BigInteger? Bigint { get; set; } + + [JsonProperty("bigintStr")] + [JsonConverter(typeof(BigIntSerializer))] + [SpeakeasyMetadata("header:name=bigintStr pathParam:name=bigintStr queryParam:name=bigintStr form:name=bigintStr multipartForm:name=bigintStr")] + public BigInteger? BigintStr { get; set; } + + /// + /// An optional boolean property. + /// + [JsonProperty("boolOpt")] + [SpeakeasyMetadata("header:name=boolOpt pathParam:name=boolOpt queryParam:name=boolOpt form:name=boolOpt multipartForm:name=boolOpt")] + public bool? BoolOpt { get; set; } + + [JsonProperty("decimal")] + [SpeakeasyMetadata("header:name=decimal pathParam:name=decimal queryParam:name=decimal form:name=decimal multipartForm:name=decimal")] + public decimal? Decimal { get; set; } + + [JsonProperty("decimalStr")] + [JsonConverter(typeof(DecimalSerializer))] + [SpeakeasyMetadata("header:name=decimalStr pathParam:name=decimalStr queryParam:name=decimalStr form:name=decimalStr multipartForm:name=decimalStr")] + public decimal? DecimalStr { get; set; } + + /// + /// An optional integer property will be null for tests. + /// + [JsonProperty("intOptNull")] + [SpeakeasyMetadata("header:name=intOptNull pathParam:name=intOptNull queryParam:name=intOptNull form:name=intOptNull multipartForm:name=intOptNull")] + public long? IntOptNull { get; set; } + + /// + /// An optional number property will be null for tests. + /// + [JsonProperty("numOptNull")] + [SpeakeasyMetadata("header:name=numOptNull pathParam:name=numOptNull queryParam:name=numOptNull form:name=numOptNull multipartForm:name=numOptNull")] + public double? NumOptNull { get; set; } + + /// + /// An optional string property. + /// + [JsonProperty("strOpt")] + [SpeakeasyMetadata("header:name=strOpt pathParam:name=strOpt queryParam:name=strOpt form:name=strOpt multipartForm:name=strOpt")] + public string? StrOpt { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCase.cs b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCase.cs new file mode 100755 index 000000000..caf61b63b --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCase.cs @@ -0,0 +1,133 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Utils; + using System.Numerics; + using System; + + /// + /// A simple object that uses all our supported primitive types and enums and has optional properties. + /// + /// https://docs.speakeasyapi.dev} - A link to the external docs. + /// + public class SimpleObjectCamelCase + { + + /// + /// An any property. + /// + [JsonProperty("any_val")] + public object AnyVal { get; set; } = default!; + + /// + /// A boolean property. + /// + [JsonProperty("bool_val")] + public bool BoolVal { get; set; } = default!; + + /// + /// A date-time property. + /// + [JsonProperty("date_time_val")] + public DateTime DateTimeVal { get; set; } = default!; + + /// + /// A date property. + /// + [JsonProperty("date_val")] + public LocalDate DateVal { get; set; } = default!; + + /// + /// A string based enum + /// + [JsonProperty("enum_val")] + public Enum EnumVal { get; set; } = default!; + + /// + /// A float32 property. + /// + [JsonProperty("float32_val")] + public float Float32Val { get; set; } = default!; + + /// + /// An int32 enum property. + /// + [JsonProperty("int32_enum_val")] + public SimpleObjectCamelCaseInt32EnumVal Int32EnumVal { get; set; } = default!; + + /// + /// An int32 property. + /// + [JsonProperty("int32_val")] + public int Int32Val { get; set; } = default!; + + /// + /// An integer enum property. + /// + [JsonProperty("int_enum_val")] + public SimpleObjectCamelCaseIntEnumVal IntEnumVal { get; set; } = default!; + + /// + /// An integer property. + /// + [JsonProperty("int_val")] + public long IntVal { get; set; } = default!; + + /// + /// A number property. + /// + [JsonProperty("num_val")] + public double NumVal { get; set; } = default!; + + /// + /// A string property. + /// + [JsonProperty("str_val")] + public string StrVal { get; set; } = default!; + + [JsonProperty("bigint_str_val")] + [JsonConverter(typeof(BigIntSerializer))] + public BigInteger? BigintStrVal { get; set; } + + [JsonProperty("bigint_val")] + public BigInteger? BigintVal { get; set; } + + /// + /// An optional boolean property. + /// + [JsonProperty("bool_opt_val")] + public bool? BoolOptVal { get; set; } + + [JsonProperty("decimal_val")] + public decimal? DecimalVal { get; set; } + + /// + /// An optional integer property will be null for tests. + /// + [JsonProperty("int_opt_null_val")] + public long? IntOptNullVal { get; set; } + + /// + /// An optional number property will be null for tests. + /// + [JsonProperty("num_opt_null_val")] + public double? NumOptNullVal { get; set; } + + /// + /// An optional string property. + /// + [JsonProperty("str_opt_val")] + public string? StrOptVal { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCaseInt32EnumVal.cs b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCaseInt32EnumVal.cs new file mode 100755 index 000000000..2f1d4681d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCaseInt32EnumVal.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + /// + /// An int32 enum property. + /// + public enum SimpleObjectCamelCaseInt32EnumVal + { + FiftyFive = 55, + SixtyNine = 69, + OneHundredAndEightyOne = 181, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCaseIntEnumVal.cs b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCaseIntEnumVal.cs new file mode 100755 index 000000000..8f0186d82 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectCamelCaseIntEnumVal.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + /// + /// An integer enum property. + /// + public enum SimpleObjectCamelCaseIntEnumVal + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SimpleObjectInt32Enum.cs b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectInt32Enum.cs new file mode 100755 index 000000000..eab52264d --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectInt32Enum.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + /// + /// An int32 enum property. + /// + public enum SimpleObjectInt32Enum + { + FiftyFive = 55, + SixtyNine = 69, + OneHundredAndEightyOne = 181, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/SimpleObjectIntEnum.cs b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectIntEnum.cs new file mode 100755 index 000000000..50c99e0c4 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/SimpleObjectIntEnum.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + /// + /// An integer enum property. + /// + public enum SimpleObjectIntEnum + { + One = 1, + Two = 2, + Three = 3, + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/TypedObject1.cs b/csharp-client-sdk/SDK/Models/Shared/TypedObject1.cs new file mode 100755 index 000000000..024df03a9 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/TypedObject1.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class TypedObject1 + { + + [JsonProperty("type")] + public TypedObject1Type Type { get; set; } = default!; + + [JsonProperty("value")] + public string Value { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/TypedObject1Type.cs b/csharp-client-sdk/SDK/Models/Shared/TypedObject1Type.cs new file mode 100755 index 000000000..8a4f5b4d2 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/TypedObject1Type.cs @@ -0,0 +1,54 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System; + + public enum TypedObject1Type + { + [JsonProperty("obj1")] + Obj1, + } + + public static class TypedObject1TypeExtension + { + public static string Value(this TypedObject1Type value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static TypedObject1Type ToEnum(this string value) + { + foreach(var field in typeof(TypedObject1Type).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is TypedObject1Type) + { + return (TypedObject1Type)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum TypedObject1Type"); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/UnsupportedEnums.cs b/csharp-client-sdk/SDK/Models/Shared/UnsupportedEnums.cs new file mode 100755 index 000000000..2b684665c --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/UnsupportedEnums.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class UnsupportedEnums + { + + [JsonProperty("booleanEnum")] + public bool BooleanEnum { get; set; } = default!; + + [JsonProperty("numberEnum")] + public double NumberEnum { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/ValidCircularReferenceObject.cs b/csharp-client-sdk/SDK/Models/Shared/ValidCircularReferenceObject.cs new file mode 100755 index 000000000..b5c625938 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/ValidCircularReferenceObject.cs @@ -0,0 +1,22 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + using System.Collections.Generic; + + public class ValidCircularReferenceObject + { + + [JsonProperty("circular")] + public List? Circular { get; set; } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/WriteOnlyObject.cs b/csharp-client-sdk/SDK/Models/Shared/WriteOnlyObject.cs new file mode 100755 index 000000000..be8607124 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/WriteOnlyObject.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + using Newtonsoft.Json; + + public class WriteOnlyObject + { + + [JsonProperty("bool")] + public bool Bool { get; set; } = default!; + + [JsonProperty("num")] + public double Num { get; set; } = default!; + + [JsonProperty("string")] + public string String { get; set; } = default!; + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Models/Shared/WriteOnlyObjectOutput.cs b/csharp-client-sdk/SDK/Models/Shared/WriteOnlyObjectOutput.cs new file mode 100755 index 000000000..4a7e8c0c6 --- /dev/null +++ b/csharp-client-sdk/SDK/Models/Shared/WriteOnlyObjectOutput.cs @@ -0,0 +1,17 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Models.Shared +{ + + public class WriteOnlyObjectOutput + { + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Nest.cs b/csharp-client-sdk/SDK/Nest.cs new file mode 100755 index 000000000..3fc19f337 --- /dev/null +++ b/csharp-client-sdk/SDK/Nest.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Utils; + using System; + + public interface INestSDK + { + public INestFirstSDK First { get; } + } + + public class NestSDK: INestSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + public INestFirstSDK First { get; private set; } + + public NestSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + First = new NestFirstSDK(_defaultClient, _securityClient, _serverUrl, Config); + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/NestFirst.cs b/csharp-client-sdk/SDK/NestFirst.cs new file mode 100755 index 000000000..a847dbd2e --- /dev/null +++ b/csharp-client-sdk/SDK/NestFirst.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface INestFirstSDK + { + Task GetAsync(); + } + + public class NestFirstSDK: INestFirstSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public NestFirstSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nest/first"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NestFirstGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Nested.cs b/csharp-client-sdk/SDK/Nested.cs new file mode 100755 index 000000000..100a4862a --- /dev/null +++ b/csharp-client-sdk/SDK/Nested.cs @@ -0,0 +1,87 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface INestedSDK + { + public INestedFirstSDK First { get; } + public INestedSecondSDK Second { get; } + Task GetAsync(); + } + + public class NestedSDK: INestedSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + public INestedFirstSDK First { get; private set; } + public INestedSecondSDK Second { get; private set; } + + public NestedSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + First = new NestedFirstSDK(_defaultClient, _securityClient, _serverUrl, Config); + Second = new NestedSecondSDK(_defaultClient, _securityClient, _serverUrl, Config); + } + + + public async Task GetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nested"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NestedGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/NestedFirst.cs b/csharp-client-sdk/SDK/NestedFirst.cs new file mode 100755 index 000000000..4abe54849 --- /dev/null +++ b/csharp-client-sdk/SDK/NestedFirst.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface INestedFirstSDK + { + Task GetAsync(); + } + + public class NestedFirstSDK: INestedFirstSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public NestedFirstSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nested/first"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NestedFirstGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/NestedSecond.cs b/csharp-client-sdk/SDK/NestedSecond.cs new file mode 100755 index 000000000..b3daaed43 --- /dev/null +++ b/csharp-client-sdk/SDK/NestedSecond.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface INestedSecondSDK + { + Task GetAsync(); + } + + public class NestedSecondSDK: INestedSecondSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public NestedSecondSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nested/second"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NestedSecondGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Pagination.cs b/csharp-client-sdk/SDK/Pagination.cs new file mode 100755 index 000000000..1c393351a --- /dev/null +++ b/csharp-client-sdk/SDK/Pagination.cs @@ -0,0 +1,570 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json.Linq; + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Linq; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing the pagination extension + /// + public interface IPaginationSDK + { + Task PaginationCursorBodyAsync(PaginationCursorBodyRequestBody request, string? serverUrl = null); + Task PaginationCursorParamsAsync(long cursor, string? serverUrl = null); + Task PaginationLimitOffsetOffsetBodyAsync(LimitOffsetConfig request, string? serverUrl = null); + Task PaginationLimitOffsetOffsetParamsAsync(long? limit = null, long? offset = null, string? serverUrl = null); + Task PaginationLimitOffsetPageBodyAsync(LimitOffsetConfig request, string? serverUrl = null); + Task PaginationLimitOffsetPageParamsAsync(long page, string? serverUrl = null); + } + + /// + /// Endpoints for testing the pagination extension + /// + public class PaginationSDK: IPaginationSDK + { + /** + * PaginationCursorBodySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] PaginationCursorBodySERVERS = { + "http://localhost:35456", + }; + + /** + * PaginationCursorParamsSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] PaginationCursorParamsSERVERS = { + "http://localhost:35456", + }; + + /** + * PaginationLimitOffsetOffsetBodySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] PaginationLimitOffsetOffsetBodySERVERS = { + "http://localhost:35456", + }; + + /** + * PaginationLimitOffsetOffsetParamsSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] PaginationLimitOffsetOffsetParamsSERVERS = { + "http://localhost:35456", + }; + + /** + * PaginationLimitOffsetPageBodySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] PaginationLimitOffsetPageBodySERVERS = { + "http://localhost:35456", + }; + + /** + * PaginationLimitOffsetPageParamsSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] PaginationLimitOffsetPageParamsSERVERS = { + "http://localhost:35456", + }; + + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public PaginationSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task PaginationCursorBodyAsync(PaginationCursorBodyRequestBody request, string? serverUrl = null) + { + string baseUrl = PaginationCursorBodySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/pagination/cursor"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + Func> nextFunc = async delegate() { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + + if (request == null) + { + return null; + } + var nextCursorToken = body.SelectToken("$.resultArray[-1:]"); + + if(nextCursorToken == null) { + return null; + }; + + var nextCursor = nextCursorToken.Value(); + + + return await PaginationCursorBodyAsync( + request: new PaginationCursorBodyRequestBody{ + Cursor = nextCursor + }, + serverUrl: serverUrl + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PaginationCursorBodyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse, + Next = nextFunc + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PaginationCursorParamsAsync(long cursor, string? serverUrl = null) + { + var request = new PaginationCursorParamsRequest() + { + Cursor = cursor, + }; + string baseUrl = PaginationCursorParamsSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/pagination/cursor", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + Func> nextFunc = async delegate() { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + + if (request == null) + { + return null; + } + var nextCursorToken = body.SelectToken("$.resultArray[-1:]"); + + if(nextCursorToken == null) { + return null; + }; + + var nextCursor = nextCursorToken.Value(); + + + return await PaginationCursorParamsAsync( + cursor: nextCursor, + serverUrl: serverUrl + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PaginationCursorParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse, + Next = nextFunc + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PaginationLimitOffsetOffsetBodyAsync(LimitOffsetConfig request, string? serverUrl = null) + { + string baseUrl = PaginationLimitOffsetOffsetBodySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/pagination/limitoffset/offset"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + Func> nextFunc = async delegate() { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + + if (request == null) + { + return null; + } + var offset = request.Offset; + var firstResult = body.SelectToken("$.resultArray"); + if (firstResult == null) { + return null; + }; + + if ( firstResult.Children().Count() == 0) { + return null; + }; + var limit = request.Limit; + if (firstResult.Children().Count() < limit) { + return null; + }; + var newOffset = offset + firstResult.Children().Count(); + + + return await PaginationLimitOffsetOffsetBodyAsync( + request: new LimitOffsetConfig{ + Limit = request.Limit, + Offset = newOffset, + Page = request.Page + }, + serverUrl: serverUrl + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PaginationLimitOffsetOffsetBodyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse, + Next = nextFunc + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PaginationLimitOffsetOffsetParamsAsync(long? limit = null, long? offset = null, string? serverUrl = null) + { + var request = new PaginationLimitOffsetOffsetParamsRequest() + { + Limit = limit, + Offset = offset, + }; + string baseUrl = PaginationLimitOffsetOffsetParamsSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/pagination/limitoffset/offset", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + Func> nextFunc = async delegate() { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + + if (request == null) + { + return null; + } + var offset = request.Offset; + var firstResult = body.SelectToken("$.resultArray"); + if (firstResult == null) { + return null; + }; + + if ( firstResult.Children().Count() == 0) { + return null; + }; + var limit = request.Limit; + if (firstResult.Children().Count() < limit) { + return null; + }; + var newOffset = offset + firstResult.Children().Count(); + + + return await PaginationLimitOffsetOffsetParamsAsync( + limit, + offset: newOffset, + serverUrl: serverUrl + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PaginationLimitOffsetOffsetParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse, + Next = nextFunc + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PaginationLimitOffsetPageBodyAsync(LimitOffsetConfig request, string? serverUrl = null) + { + string baseUrl = PaginationLimitOffsetPageBodySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/pagination/limitoffset/page"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + Func> nextFunc = async delegate() { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + + if (request == null) + { + return null; + } + var page = request.Page; + var newPage = page + 1; + + var numPages = body.SelectToken("$.numPages"); + + if (numPages == null || numPages.Value() <= page) { + return null; + }; + + + return await PaginationLimitOffsetPageBodyAsync( + request: new LimitOffsetConfig{ + Limit = request.Limit, + Offset = request.Offset, + Page = newPage + }, + serverUrl: serverUrl + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PaginationLimitOffsetPageBodyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse, + Next = nextFunc + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PaginationLimitOffsetPageParamsAsync(long page, string? serverUrl = null) + { + var request = new PaginationLimitOffsetPageParamsRequest() + { + Page = page, + }; + string baseUrl = PaginationLimitOffsetPageParamsSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/pagination/limitoffset/page", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + Func> nextFunc = async delegate() { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + + if (request == null) + { + return null; + } + var page = request.Page; + var newPage = page + 1; + + var firstResult = body.SelectToken("$.resultArray"); + if (firstResult == null) { + return null; + }; + + if ( firstResult.Children().Count() == 0) { + return null; + }; + + + return await PaginationLimitOffsetPageParamsAsync( + page: newPage, + serverUrl: serverUrl + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PaginationLimitOffsetPageParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse, + Next = nextFunc + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Parameters.cs b/csharp-client-sdk/SDK/Parameters.cs new file mode 100755 index 000000000..4b31ebb19 --- /dev/null +++ b/csharp-client-sdk/SDK/Parameters.cs @@ -0,0 +1,1125 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing parameters. + /// + public interface IParametersSDK + { + Task DeepObjectQueryParamsMapAsync(Dictionary mapParam, Dictionary>? mapArrParam = null); + Task DeepObjectQueryParamsObjectAsync(SimpleObject objParam, DeepObjectQueryParamsObjectObjArrParam? objArrParam = null); + Task DuplicateParamAsync(string duplicateParamRequest); + Task FormQueryParamsArrayAsync(List? arrParam = null, List? arrParamExploded = null); + Task FormQueryParamsCamelObjectAsync(FormQueryParamsCamelObjectObjParamExploded objParamExploded, FormQueryParamsCamelObjectObjParam? objParam = null); + Task FormQueryParamsMapAsync(Dictionary? mapParam = null, Dictionary? mapParamExploded = null); + Task FormQueryParamsObjectAsync(SimpleObject objParamExploded, SimpleObject? objParam = null); + Task FormQueryParamsPrimitiveAsync(bool boolParam, long intParam, double numParam, string strParam); + Task FormQueryParamsRefParamObjectAsync(RefQueryParamObj? refObjParam = null, RefQueryParamObjExploded? refObjParamExploded = null); + Task HeaderParamsArrayAsync(List xHeaderArray); + Task HeaderParamsMapAsync(Dictionary xHeaderMap, Dictionary xHeaderMapExplode); + Task HeaderParamsObjectAsync(SimpleObject xHeaderObj, SimpleObject xHeaderObjExplode); + Task HeaderParamsPrimitiveAsync(bool xHeaderBoolean, long xHeaderInteger, double xHeaderNumber, string xHeaderString); + Task JsonQueryParamsObjectAsync(DeepObject deepObjParam, SimpleObject simpleObjParam); + Task MixedParametersCamelCaseAsync(string headerParam, string pathParam, string queryStringParam); + Task MixedParametersPrimitivesAsync(string headerParam, string pathParam, string queryStringParam); + Task MixedQueryParamsAsync(SimpleObject deepObjectParam, SimpleObject formParam, SimpleObject jsonParam); + Task PathParameterJsonAsync(SimpleObject jsonObj); + Task PipeDelimitedQueryParamsArrayAsync(List? arrParam = null, List? arrParamExploded = null, Dictionary? mapParam = null, SimpleObject? objParam = null); + Task SimplePathParameterArraysAsync(List arrParam); + Task SimplePathParameterMapsAsync(Dictionary mapParam, Dictionary mapParamExploded); + Task SimplePathParameterObjectsAsync(SimpleObject objParam, SimpleObject objParamExploded); + Task SimplePathParameterPrimitivesAsync(bool boolParam, long intParam, double numParam, string strParam); + } + + /// + /// Endpoints for testing parameters. + /// + public class ParametersSDK: IParametersSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public ParametersSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task DeepObjectQueryParamsMapAsync(Dictionary mapParam, Dictionary>? mapArrParam = null) + { + var request = new DeepObjectQueryParamsMapRequest() + { + MapParam = mapParam, + MapArrParam = mapArrParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/deepObject/map", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeepObjectQueryParamsMapResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task DeepObjectQueryParamsObjectAsync(SimpleObject objParam, DeepObjectQueryParamsObjectObjArrParam? objArrParam = null) + { + var request = new DeepObjectQueryParamsObjectRequest() + { + ObjParam = objParam, + ObjArrParam = objArrParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/deepObject/obj", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeepObjectQueryParamsObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task DuplicateParamAsync(string duplicateParamRequest) + { + var request = new DuplicateParamRequest() + { + DuplicateParamRequestValue = duplicateParamRequest, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/params/{duplicateParamRequest}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DuplicateParamResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.DuplicateParamResponseValue = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task FormQueryParamsArrayAsync(List? arrParam = null, List? arrParamExploded = null) + { + var request = new FormQueryParamsArrayRequest() + { + ArrParam = arrParam, + ArrParamExploded = arrParamExploded, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/form/array", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FormQueryParamsArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task FormQueryParamsCamelObjectAsync(FormQueryParamsCamelObjectObjParamExploded objParamExploded, FormQueryParamsCamelObjectObjParam? objParam = null) + { + var request = new FormQueryParamsCamelObjectRequest() + { + ObjParamExploded = objParamExploded, + ObjParam = objParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/form/camelObj", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FormQueryParamsCamelObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task FormQueryParamsMapAsync(Dictionary? mapParam = null, Dictionary? mapParamExploded = null) + { + var request = new FormQueryParamsMapRequest() + { + MapParam = mapParam, + MapParamExploded = mapParamExploded, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/form/map", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FormQueryParamsMapResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task FormQueryParamsObjectAsync(SimpleObject objParamExploded, SimpleObject? objParam = null) + { + var request = new FormQueryParamsObjectRequest() + { + ObjParamExploded = objParamExploded, + ObjParam = objParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/form/obj", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FormQueryParamsObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task FormQueryParamsPrimitiveAsync(bool boolParam, long intParam, double numParam, string strParam) + { + var request = new FormQueryParamsPrimitiveRequest() + { + BoolParam = boolParam, + IntParam = intParam, + NumParam = numParam, + StrParam = strParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/form/primitive", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FormQueryParamsPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task FormQueryParamsRefParamObjectAsync(RefQueryParamObj? refObjParam = null, RefQueryParamObjExploded? refObjParamExploded = null) + { + var request = new FormQueryParamsRefParamObjectRequest() + { + RefObjParam = refObjParam, + RefObjParamExploded = refObjParamExploded, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/form/refParamObject", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FormQueryParamsRefParamObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task HeaderParamsArrayAsync(List xHeaderArray) + { + var request = new HeaderParamsArrayRequest() + { + XHeaderArray = xHeaderArray, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/headers/array"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new HeaderParamsArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task HeaderParamsMapAsync(Dictionary xHeaderMap, Dictionary xHeaderMapExplode) + { + var request = new HeaderParamsMapRequest() + { + XHeaderMap = xHeaderMap, + XHeaderMapExplode = xHeaderMapExplode, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/headers/map"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new HeaderParamsMapResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task HeaderParamsObjectAsync(SimpleObject xHeaderObj, SimpleObject xHeaderObjExplode) + { + var request = new HeaderParamsObjectRequest() + { + XHeaderObj = xHeaderObj, + XHeaderObjExplode = xHeaderObjExplode, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/headers/obj"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new HeaderParamsObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task HeaderParamsPrimitiveAsync(bool xHeaderBoolean, long xHeaderInteger, double xHeaderNumber, string xHeaderString) + { + var request = new HeaderParamsPrimitiveRequest() + { + XHeaderBoolean = xHeaderBoolean, + XHeaderInteger = xHeaderInteger, + XHeaderNumber = xHeaderNumber, + XHeaderString = xHeaderString, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/headers/primitive"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new HeaderParamsPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task JsonQueryParamsObjectAsync(DeepObject deepObjParam, SimpleObject simpleObjParam) + { + var request = new JsonQueryParamsObjectRequest() + { + DeepObjParam = deepObjParam, + SimpleObjParam = simpleObjParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/json/obj", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new JsonQueryParamsObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task MixedParametersCamelCaseAsync(string headerParam, string pathParam, string queryStringParam) + { + var request = new MixedParametersCamelCaseRequest() + { + HeaderParam = headerParam, + PathParam = pathParam, + QueryStringParam = queryStringParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/mixedParams/path/{path_param}/camelcase", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MixedParametersCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task MixedParametersPrimitivesAsync(string headerParam, string pathParam, string queryStringParam) + { + var request = new MixedParametersPrimitivesRequest() + { + HeaderParam = headerParam, + PathParam = pathParam, + QueryStringParam = queryStringParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/mixedParams/path/{pathParam}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MixedParametersPrimitivesResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task MixedQueryParamsAsync(SimpleObject deepObjectParam, SimpleObject formParam, SimpleObject jsonParam) + { + var request = new MixedQueryParamsRequest() + { + DeepObjectParam = deepObjectParam, + FormParam = formParam, + JsonParam = jsonParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/mixed", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MixedQueryParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PathParameterJsonAsync(SimpleObject jsonObj) + { + var request = new PathParameterJsonRequest() + { + JsonObj = jsonObj, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/pathParams/json/{jsonObj}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PathParameterJsonResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PipeDelimitedQueryParamsArrayAsync(List? arrParam = null, List? arrParamExploded = null, Dictionary? mapParam = null, SimpleObject? objParam = null) + { + var request = new PipeDelimitedQueryParamsArrayRequest() + { + ArrParam = arrParam, + ArrParamExploded = arrParamExploded, + MapParam = mapParam, + ObjParam = objParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/queryParams/pipe/array", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PipeDelimitedQueryParamsArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task SimplePathParameterArraysAsync(List arrParam) + { + var request = new SimplePathParameterArraysRequest() + { + ArrParam = arrParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/pathParams/arr/{arrParam}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new SimplePathParameterArraysResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task SimplePathParameterMapsAsync(Dictionary mapParam, Dictionary mapParamExploded) + { + var request = new SimplePathParameterMapsRequest() + { + MapParam = mapParam, + MapParamExploded = mapParamExploded, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/pathParams/map/{mapParam}/mapExploded/{mapParamExploded}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new SimplePathParameterMapsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task SimplePathParameterObjectsAsync(SimpleObject objParam, SimpleObject objParamExploded) + { + var request = new SimplePathParameterObjectsRequest() + { + ObjParam = objParam, + ObjParamExploded = objParamExploded, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/pathParams/obj/{objParam}/objExploded/{objParamExploded}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new SimplePathParameterObjectsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task SimplePathParameterPrimitivesAsync(bool boolParam, long intParam, double numParam, string strParam) + { + var request = new SimplePathParameterPrimitivesRequest() + { + BoolParam = boolParam, + IntParam = intParam, + NumParam = numParam, + StrParam = strParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/pathParams/str/{strParam}/bool/{boolParam}/int/{intParam}/num/{numParam}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new SimplePathParameterPrimitivesResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/RequestBodies.cs b/csharp-client-sdk/SDK/RequestBodies.cs new file mode 100755 index 000000000..5d01f7829 --- /dev/null +++ b/csharp-client-sdk/SDK/RequestBodies.cs @@ -0,0 +1,4353 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Numerics; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing request bodies. + /// + public interface IRequestBodiesSDK + { + Task NullableObjectPostAsync(NullableObject request); + Task NullableRequiredEmptyObjectPostAsync(NullableRequiredEmptyObjectPostRequestBody request); + Task NullableRequiredPropertyPostAsync(NullableRequiredPropertyPostRequestBody request); + Task NullableRequiredSharedObjectPostAsync(NullableRequiredSharedObjectPostRequestBody request); + Task RequestBodyPostApplicationJsonArrayAsync(List request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayCamelCaseAsync(List request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayObjAsync(List request); + Task RequestBodyPostApplicationJsonArrayObjCamelCaseAsync(List request); + Task RequestBodyPostApplicationJsonArrayOfArrayAsync(List> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayOfArrayCamelCaseAsync(List> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveAsync(List> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayOfMapAsync(List> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayOfMapCamelCaseAsync(List> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonArrayOfPrimitiveAsync(List request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonDeepAsync(DeepObject request); + Task RequestBodyPostApplicationJsonDeepCamelCaseAsync(DeepObjectCamelCase request); + Task RequestBodyPostApplicationJsonMapAsync(Dictionary request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapCamelCaseAsync(Dictionary request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapObjAsync(Dictionary request); + Task RequestBodyPostApplicationJsonMapObjCamelCaseAsync(Dictionary request); + Task RequestBodyPostApplicationJsonMapOfArrayAsync(Dictionary> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapOfArrayCamelCaseAsync(Dictionary> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapOfMapAsync(Dictionary> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapOfMapCamelCaseAsync(Dictionary> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapOfMapOfPrimitiveAsync(Dictionary> request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMapOfPrimitiveAsync(Dictionary request, string? serverUrl = null); + Task RequestBodyPostApplicationJsonMultipleJsonFilteredAsync(SimpleObject request); + Task RequestBodyPostApplicationJsonSimpleAsync(SimpleObject request); + Task RequestBodyPostApplicationJsonSimpleCamelCaseAsync(SimpleObjectCamelCase request); + Task RequestBodyPostComplexNumberTypesAsync(RequestBodyPostComplexNumberTypesRequest request); + Task RequestBodyPostDefaultsAndConstsAsync(DefaultsAndConsts request); + Task RequestBodyPostEmptyObjectAsync(RequestBodyPostEmptyObjectRequestBody request); + Task RequestBodyPostFormDeepAsync(DeepObject request); + Task RequestBodyPostFormMapPrimitiveAsync(Dictionary request); + Task RequestBodyPostFormSimpleAsync(SimpleObject request); + Task RequestBodyPostJsonDataTypesArrayBigIntAsync(List request); + Task RequestBodyPostJsonDataTypesArrayDateAsync(List request); + Task RequestBodyPostJsonDataTypesArrayDecimalStrAsync(List request); + Task RequestBodyPostJsonDataTypesBigIntAsync(BigInteger request); + Task RequestBodyPostJsonDataTypesBigIntStrAsync(BigInteger request); + Task RequestBodyPostJsonDataTypesBooleanAsync(bool request); + Task RequestBodyPostJsonDataTypesDateAsync(LocalDate request); + Task RequestBodyPostJsonDataTypesDateTimeAsync(DateTime request); + Task RequestBodyPostJsonDataTypesDecimalAsync(decimal request); + Task RequestBodyPostJsonDataTypesDecimalStrAsync(decimal request); + Task RequestBodyPostJsonDataTypesFloat32Async(double request); + Task RequestBodyPostJsonDataTypesInt32Async(int request); + Task RequestBodyPostJsonDataTypesIntegerAsync(long request); + Task RequestBodyPostJsonDataTypesMapBigIntStrAsync(Dictionary request); + Task RequestBodyPostJsonDataTypesMapDateTimeAsync(Dictionary request); + Task RequestBodyPostJsonDataTypesMapDecimalAsync(Dictionary request); + Task RequestBodyPostJsonDataTypesNumberAsync(double request); + Task RequestBodyPostJsonDataTypesStringAsync(string request); + Task RequestBodyPostMultipleContentTypesComponentFilteredAsync(SimpleObject request); + Task RequestBodyPostMultipleContentTypesInlineFilteredAsync(RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON request); + Task RequestBodyPostMultipleContentTypesSplitParamFormAsync(RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded requestBody, string paramStr); + Task RequestBodyPostMultipleContentTypesSplitParamJsonAsync(RequestBodyPostMultipleContentTypesSplitParamApplicationJSON requestBody, string paramStr); + Task RequestBodyPostMultipleContentTypesSplitParamMultipartAsync(RequestBodyPostMultipleContentTypesSplitParamMultipartFormData requestBody, string paramStr); + Task RequestBodyPostMultipleContentTypesSplitFormAsync(RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded request); + Task RequestBodyPostMultipleContentTypesSplitJsonAsync(RequestBodyPostMultipleContentTypesSplitApplicationJSON request); + Task RequestBodyPostMultipleContentTypesSplitMultipartAsync(RequestBodyPostMultipleContentTypesSplitMultipartFormData request); + Task RequestBodyPostNotNullableNotRequiredStringBodyAsync(string? request = null); + Task RequestBodyPostNullArrayAsync(List request); + Task RequestBodyPostNullDictionaryAsync(Dictionary request); + Task RequestBodyPostNullableNotRequiredStringBodyAsync(string? request = null); + Task RequestBodyPostNullableRequiredStringBodyAsync(string request); + Task RequestBodyPutBytesAsync(byte[] request); + Task RequestBodyPutBytesWithParamsAsync(byte[] requestBody, string queryStringParam); + Task RequestBodyPutMultipartDeepAsync(DeepObject request); + Task RequestBodyPutMultipartDifferentFileNameAsync(RequestBodyPutMultipartDifferentFileNameRequestBody request); + Task RequestBodyPutMultipartFileAsync(RequestBodyPutMultipartFileRequestBody request); + Task RequestBodyPutMultipartSimpleAsync(SimpleObject request); + Task RequestBodyPutStringAsync(string request); + Task RequestBodyPutStringWithParamsAsync(string requestBody, string queryStringParam); + Task RequestBodyReadAndWriteAsync(ReadWriteObjectInput request, string? serverUrl = null); + Task RequestBodyReadOnlyInputAsync(ReadOnlyObjectInput request, string? serverUrl = null); + Task RequestBodyReadOnlyUnionAsync(object request, string? serverUrl = null); + Task RequestBodyReadWriteOnlyUnionAsync(object request, string? serverUrl = null); + Task RequestBodyWriteOnlyAsync(WriteOnlyObject request, string? serverUrl = null); + Task RequestBodyWriteOnlyOutputAsync(WriteOnlyObject request, string? serverUrl = null); + Task RequestBodyWriteOnlyUnionAsync(object request, string? serverUrl = null); + } + + /// + /// Endpoints for testing request bodies. + /// + public class RequestBodiesSDK: IRequestBodiesSDK + { + /** + * RequestBodyPostApplicationJsonArraySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArraySERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayCamelCaseSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayCamelCaseSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayOfArraySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayOfArraySERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayOfArrayCamelCaseSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayOfArrayCamelCaseSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayOfMapSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayOfMapSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayOfMapCamelCaseSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayOfMapCamelCaseSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonArrayOfPrimitiveSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonArrayOfPrimitiveSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapCamelCaseSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapCamelCaseSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapOfArraySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapOfArraySERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapOfArrayCamelCaseSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapOfArrayCamelCaseSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapOfMapSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapOfMapSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapOfMapCamelCaseSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapOfMapCamelCaseSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapOfMapOfPrimitiveSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapOfMapOfPrimitiveSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyPostApplicationJsonMapOfPrimitiveSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyPostApplicationJsonMapOfPrimitiveSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyReadAndWriteSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyReadAndWriteSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyReadOnlyInputSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyReadOnlyInputSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyReadOnlyUnionSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyReadOnlyUnionSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyReadWriteOnlyUnionSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyReadWriteOnlyUnionSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyWriteOnlySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyWriteOnlySERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyWriteOnlyOutputSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyWriteOnlyOutputSERVERS = { + "http://localhost:35456", + }; + + /** + * RequestBodyWriteOnlyUnionSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RequestBodyWriteOnlyUnionSERVERS = { + "http://localhost:35456", + }; + + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public RequestBodiesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task NullableObjectPostAsync(NullableObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/nullableRequiredObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task NullableRequiredEmptyObjectPostAsync(NullableRequiredEmptyObjectPostRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/nullableRequiredEmptyObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableRequiredEmptyObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.NullableRequiredEmptyObjectPost200ApplicationJSONString = await httpResponse.Content.ReadAsStringAsync(); + } + + return response; + } + return response; + } + + + public async Task NullableRequiredPropertyPostAsync(NullableRequiredPropertyPostRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/nullableRequiredProperty"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableRequiredPropertyPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.NullableRequiredPropertyPost200ApplicationJSONString = await httpResponse.Content.ReadAsStringAsync(); + } + + return response; + } + return response; + } + + + public async Task NullableRequiredSharedObjectPostAsync(NullableRequiredSharedObjectPostRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/nullableRequiredSharedObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableRequiredSharedObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.NullableRequiredSharedObjectPost200ApplicationJSONString = await httpResponse.Content.ReadAsStringAsync(); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayAsync(List request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArraySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#array"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.SimpleObjects = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayCamelCaseAsync(List request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayCamelCaseSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.SimpleObjectCamelCases = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayObjAsync(List request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/array/objResponse"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayObjResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ArrObjValue = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayObjCamelCaseAsync(List request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/array/objResponseCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayObjCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ArrObjValueCamelCase = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayOfArrayAsync(List> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayOfArraySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayOfArrays"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayOfArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Arrs = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayOfArrayCamelCaseAsync(List> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayOfArrayCamelCaseSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayOfArraysCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Arrs = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveAsync(List> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayOfArraysOfPrimitives"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Arrs = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayOfMapAsync(List> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayOfMapSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayOfMaps"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayOfMapResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Maps = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayOfMapCamelCaseAsync(List> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayOfMapCamelCaseSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayOfMapsCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Maps = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonArrayOfPrimitiveAsync(List request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonArrayOfPrimitiveSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#arrayOfPrimitives"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonArrayOfPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Strings = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonDeepAsync(DeepObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/deep"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonDeepResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonDeepCamelCaseAsync(DeepObjectCamelCase request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/deep/camelcase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonDeepCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapAsync(Dictionary request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#map"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapCamelCaseAsync(Dictionary request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapCamelCaseSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapObjAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/map/objResponse"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapObjResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.MapObjValue = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapObjCamelCaseAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/map/objResponseCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapObjCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.MapObjValueCamelCase = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapOfArrayAsync(Dictionary> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapOfArraySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapOfArrays"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapOfArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapOfArrayCamelCaseAsync(Dictionary> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapOfArrayCamelCaseSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapOfArraysCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapOfMapAsync(Dictionary> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapOfMapSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapOfMaps"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapOfMapResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapOfMapCamelCaseAsync(Dictionary> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapOfMapCamelCaseSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapOfMapsCamelCase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapOfMapOfPrimitiveAsync(Dictionary> request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapOfMapOfPrimitiveSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapOfMapsOfPrimitives"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMapOfPrimitiveAsync(Dictionary request, string? serverUrl = null) + { + string baseUrl = RequestBodyPostApplicationJsonMapOfPrimitiveSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/requestbody#mapOfPrimitives"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMapOfPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonMultipleJsonFilteredAsync(SimpleObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/multiple/json/filtered"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonMultipleJsonFilteredResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonSimpleAsync(SimpleObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/simple"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonSimpleResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostApplicationJsonSimpleCamelCaseAsync(SimpleObjectCamelCase request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/application/json/camelcase"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostApplicationJsonSimpleCamelCaseResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostComplexNumberTypesAsync(RequestBodyPostComplexNumberTypesRequest request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/requestBodies/post/{pathBigInt}/{pathBigIntStr}/{pathDecimal}/{pathDecimalStr}/complex-number-types", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "ComplexNumberTypes", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostComplexNumberTypesResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostComplexNumberTypes200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostDefaultsAndConstsAsync(DefaultsAndConsts request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/defaultsAndConsts"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostDefaultsAndConstsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostDefaultsAndConsts200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostEmptyObjectAsync(RequestBodyPostEmptyObjectRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/empty-object"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostEmptyObjectResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostEmptyObject200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostFormDeepAsync(DeepObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/form/deep"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "form"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostFormDeepResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostFormMapPrimitiveAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/form/map/primitive"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "form"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostFormMapPrimitiveResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostFormSimpleAsync(SimpleObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/form/simple"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "form"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostFormSimpleResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesArrayBigIntAsync(List request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/array/bigInt"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesArrayBigIntResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesArrayDateAsync(List request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/array/date"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesArrayDateResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesArrayDecimalStrAsync(List request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/array/decimalStr"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesArrayDecimalStrResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesBigIntAsync(BigInteger request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/bigint"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesBigIntResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesBigInt200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesBigIntStrAsync(BigInteger request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/bigintStr"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesBigIntStrResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesBooleanAsync(bool request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/boolean"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesBooleanResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesBoolean200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesDateAsync(LocalDate request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/date"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesDateResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesDate200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesDateTimeAsync(DateTime request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/dateTime"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesDateTimeResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesDateTime200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesDecimalAsync(decimal request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/decimal"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesDecimalResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesDecimal200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesDecimalStrAsync(decimal request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/decimalStr"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesDecimalStrResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesFloat32Async(double request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/float32"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesFloat32Response + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesFloat32200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesInt32Async(int request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/int32"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesInt32Response + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesInt32200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesIntegerAsync(long request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/integer"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesIntegerResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesInteger200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesMapBigIntStrAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/map/bigIntStr"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesMapBigIntStrResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesMapDateTimeAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/map/dateTime"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesMapDateTimeResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesMapDecimalAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/map/decimal"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesMapDecimalResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesNumberAsync(double request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/number"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesNumberResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesNumber200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostJsonDataTypesStringAsync(string request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/jsonDataTypes/string"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostJsonDataTypesStringResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostJSONDataTypesString200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesComponentFilteredAsync(SimpleObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/multiple/contentTypes/component/filtered"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesComponentFilteredResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesInlineFilteredAsync(RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/multiple/contentTypes/inline/filtered"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesInlineFilteredResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesSplitParamFormAsync(RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded requestBody, string paramStr) + { + var request = new RequestBodyPostMultipleContentTypesSplitParamFormRequest() + { + RequestBody = requestBody, + ParamStr = paramStr, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/requestBodies/post/multiple/contentTypes/split/param", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "form"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesSplitParamFormResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesSplitParamJsonAsync(RequestBodyPostMultipleContentTypesSplitParamApplicationJSON requestBody, string paramStr) + { + var request = new RequestBodyPostMultipleContentTypesSplitParamJsonRequest() + { + RequestBody = requestBody, + ParamStr = paramStr, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/requestBodies/post/multiple/contentTypes/split/param", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesSplitParamJsonResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesSplitParamMultipartAsync(RequestBodyPostMultipleContentTypesSplitParamMultipartFormData requestBody, string paramStr) + { + var request = new RequestBodyPostMultipleContentTypesSplitParamMultipartRequest() + { + RequestBody = requestBody, + ParamStr = paramStr, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/requestBodies/post/multiple/contentTypes/split/param", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesSplitParamMultipartResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesSplitFormAsync(RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/multiple/contentTypes/split"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "form"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesSplitFormResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesSplitJsonAsync(RequestBodyPostMultipleContentTypesSplitApplicationJSON request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/multiple/contentTypes/split"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesSplitJsonResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostMultipleContentTypesSplitMultipartAsync(RequestBodyPostMultipleContentTypesSplitMultipartFormData request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/multiple/contentTypes/split"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostMultipleContentTypesSplitMultipartResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostNotNullableNotRequiredStringBodyAsync(string? request = null) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/notnullable/notrequired/string"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody != null) + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostNotNullableNotRequiredStringBodyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostNullArrayAsync(List request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/null-array"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostNullArrayResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostNullArray200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostNullDictionaryAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/null-dictionary"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostNullDictionaryResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostNullDictionary200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostNullableNotRequiredStringBodyAsync(string? request = null) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/nullable/notrequired/string"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody != null) + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostNullableNotRequiredStringBodyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPostNullableRequiredStringBodyAsync(string request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/post/nullable/required/string"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPostNullableRequiredStringBodyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.RequestBodyPostNullableRequiredStringBody200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutBytesAsync(byte[] request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/put/bytes"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "raw"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutBytesResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutBytesWithParamsAsync(byte[] requestBody, string queryStringParam) + { + var request = new RequestBodyPutBytesWithParamsRequest() + { + RequestBody = requestBody, + QueryStringParam = queryStringParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/requestBodies/put/bytesWithParams", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "raw"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutBytesWithParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutMultipartDeepAsync(DeepObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/put/multipart/deep"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutMultipartDeepResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutMultipartDifferentFileNameAsync(RequestBodyPutMultipartDifferentFileNameRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/put/multipart/differentFileName"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutMultipartDifferentFileNameResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutMultipartFileAsync(RequestBodyPutMultipartFileRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/put/multipart/file"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutMultipartFileResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutMultipartSimpleAsync(SimpleObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/put/multipart/simple"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutMultipartSimpleResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutStringAsync(string request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/requestBodies/put/string"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "string"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutStringResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyPutStringWithParamsAsync(string requestBody, string queryStringParam) + { + var request = new RequestBodyPutStringWithParamsRequest() + { + RequestBody = requestBody, + QueryStringParam = queryStringParam, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/anything/requestBodies/put/stringWithParams", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "string"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyPutStringWithParamsResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyReadAndWriteAsync(ReadWriteObjectInput request, string? serverUrl = null) + { + string baseUrl = RequestBodyReadAndWriteSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/readonlyandwriteonly"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyReadAndWriteResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ReadWriteObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyReadOnlyInputAsync(ReadOnlyObjectInput request, string? serverUrl = null) + { + string baseUrl = RequestBodyReadOnlyInputSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/readonlyorwriteonly#readOnlyInput"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyReadOnlyInputResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ReadOnlyObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyReadOnlyUnionAsync(object request, string? serverUrl = null) + { + string baseUrl = RequestBodyReadOnlyUnionSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/readonlyorwriteonly#readOnlyUnion"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyReadOnlyUnionResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.WeaklyTypedOneOfReadOnlyObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyReadWriteOnlyUnionAsync(object request, string? serverUrl = null) + { + string baseUrl = RequestBodyReadWriteOnlyUnionSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/readonlyandwriteonly#readWriteOnlyUnion"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyReadWriteOnlyUnionResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.WeaklyTypedOneOfReadWriteObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyWriteOnlyAsync(WriteOnlyObject request, string? serverUrl = null) + { + string baseUrl = RequestBodyWriteOnlySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/readonlyorwriteonly#writeOnly"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyWriteOnlyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ReadOnlyObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyWriteOnlyOutputAsync(WriteOnlyObject request, string? serverUrl = null) + { + string baseUrl = RequestBodyWriteOnlyOutputSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/writeonlyoutput#writeOnlyOutput"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyWriteOnlyOutputResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.WriteOnlyObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task RequestBodyWriteOnlyUnionAsync(object request, string? serverUrl = null) + { + string baseUrl = RequestBodyWriteOnlyUnionSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/writeonlyoutput#writeOnlyUnion"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RequestBodyWriteOnlyUnionResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.WeaklyTypedOneOfWriteOnlyObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Resource.cs b/csharp-client-sdk/SDK/Resource.cs new file mode 100755 index 000000000..964b746f6 --- /dev/null +++ b/csharp-client-sdk/SDK/Resource.cs @@ -0,0 +1,274 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface IResourceSDK + { + Task CreateFileAsync(CreateFileRequestBody request); + Task CreateResourceAsync(ExampleResource request); + Task DeleteResourceAsync(string resourceId); + Task GetResourceAsync(string resourceId); + Task UpdateResourceAsync(string resourceId); + } + + public class ResourceSDK: IResourceSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public ResourceSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task CreateFileAsync(CreateFileRequestBody request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/fileResource"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "multipart"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new CreateFileResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.FileResource = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task CreateResourceAsync(ExampleResource request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/resource"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new CreateResourceResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ExampleResource = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task DeleteResourceAsync(string resourceId) + { + var request = new DeleteResourceRequest() + { + ResourceId = resourceId, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/resource/{resourceId}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeleteResourceResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 204)) + { + + return response; + } + return response; + } + + + public async Task GetResourceAsync(string resourceId) + { + var request = new GetResourceRequest() + { + ResourceId = resourceId, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/resource/{resourceId}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GetResourceResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ExampleResource = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task UpdateResourceAsync(string resourceId) + { + var request = new UpdateResourceRequest() + { + ResourceId = resourceId, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/resource/{resourceId}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new UpdateResourceResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 202)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/ResponseBodies.cs b/csharp-client-sdk/SDK/ResponseBodies.cs new file mode 100755 index 000000000..48b7ca14a --- /dev/null +++ b/csharp-client-sdk/SDK/ResponseBodies.cs @@ -0,0 +1,577 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Numerics; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing response bodies. + /// + public interface IResponseBodiesSDK + { + Task ResponseBodyAdditionalPropertiesComplexNumbersPostAsync(Dictionary request); + Task ResponseBodyAdditionalPropertiesDatePostAsync(Dictionary request); + Task ResponseBodyAdditionalPropertiesObjectPostAsync(Dictionary request); + Task ResponseBodyAdditionalPropertiesPostAsync(Dictionary request); + Task ResponseBodyBytesGetAsync(); + Task ResponseBodyEmptyWithHeadersAsync(double xNumberHeader, string xStringHeader); + Task ResponseBodyOptionalGetAsync(string? serverUrl = null); + Task ResponseBodyReadOnlyAsync(string? serverUrl = null); + Task ResponseBodyStringGetAsync(); + Task ResponseBodyXmlGetAsync(); + Task ResponseBodyZeroValueComplexTypePtrsPostAsync(ObjWithZeroValueComplexTypePtrs request); + } + + /// + /// Endpoints for testing response bodies. + /// + public class ResponseBodiesSDK: IResponseBodiesSDK + { + /** + * ResponseBodyOptionalGetSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] ResponseBodyOptionalGetSERVERS = { + "http://localhost:35456", + }; + + /** + * ResponseBodyReadOnlySERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] ResponseBodyReadOnlySERVERS = { + "http://localhost:35456", + }; + + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public ResponseBodiesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task ResponseBodyAdditionalPropertiesComplexNumbersPostAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/responseBodies/additionalPropertiesComplexNumbers"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyAdditionalPropertiesComplexNumbersPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyAdditionalPropertiesDatePostAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/responseBodies/additionalPropertiesDate"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyAdditionalPropertiesDatePostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ResponseBodyAdditionalPropertiesDatePost200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyAdditionalPropertiesObjectPostAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/responseBodies/additionalPropertiesObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyAdditionalPropertiesObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyAdditionalPropertiesPostAsync(Dictionary request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/responseBodies/additionalProperties"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyAdditionalPropertiesPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ResponseBodyAdditionalPropertiesPost200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyBytesGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/bytes/100"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyBytesGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) + { + response.Bytes = await httpResponse.Content.ReadAsByteArrayAsync(); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyEmptyWithHeadersAsync(double xNumberHeader, string xStringHeader) + { + var request = new ResponseBodyEmptyWithHeadersRequest() + { + XNumberHeader = xNumberHeader, + XStringHeader = xStringHeader, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/response-headers", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyEmptyWithHeadersResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task ResponseBodyOptionalGetAsync(string? serverUrl = null) + { + string baseUrl = ResponseBodyOptionalGetSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/optional"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyOptionalGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.TypedObject1 = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + if(Utilities.IsContentTypeMatch("text/plain",response.ContentType)) + { + response.ResponseBodyOptionalGet200TextPlainString = await httpResponse.Content.ReadAsStringAsync(); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyReadOnlyAsync(string? serverUrl = null) + { + string baseUrl = ResponseBodyReadOnlySERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/readonlyorwriteonly#readOnly"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyReadOnlyResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ReadOnlyObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyStringGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/html"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyStringGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("text/html",response.ContentType)) + { + response.Html = await httpResponse.Content.ReadAsStringAsync(); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyXmlGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/xml"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyXmlGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/xml",response.ContentType)) + { + response.Xml = await httpResponse.Content.ReadAsStringAsync(); + } + + return response; + } + return response; + } + + + public async Task ResponseBodyZeroValueComplexTypePtrsPostAsync(ObjWithZeroValueComplexTypePtrs request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/responseBodies/zeroValueComplexTypePtrs"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyZeroValueComplexTypePtrsPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Retries.cs b/csharp-client-sdk/SDK/Retries.cs new file mode 100755 index 000000000..cb4e92636 --- /dev/null +++ b/csharp-client-sdk/SDK/Retries.cs @@ -0,0 +1,109 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing retries. + /// + public interface IRetriesSDK + { + Task RetriesGetAsync(string requestId, long? numRetries = null, string? serverUrl = null); + } + + /// + /// Endpoints for testing retries. + /// + public class RetriesSDK: IRetriesSDK + { + /** + * RetriesGetSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] RetriesGetSERVERS = { + "http://localhost:35456", + }; + + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public RetriesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task RetriesGetAsync(string requestId, long? numRetries = null, string? serverUrl = null) + { + var request = new RetriesGetRequest() + { + RequestId = requestId, + NumRetries = numRetries, + }; + string baseUrl = RetriesGetSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/retries", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new RetriesGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Retries = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/SDK.csproj b/csharp-client-sdk/SDK/SDK.csproj new file mode 100755 index 000000000..ab2351741 --- /dev/null +++ b/csharp-client-sdk/SDK/SDK.csproj @@ -0,0 +1,34 @@ + + + true + openapi + 0.1.0 + Speakeasy + net5.0 + enable + README.md + true + 1591 + https://github.com/speakeasy-api/openapi-generation-tests + + + + + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + diff --git a/csharp-client-sdk/SDK/SDKSDK.cs b/csharp-client-sdk/SDK/SDKSDK.cs new file mode 100755 index 000000000..475f3d1c3 --- /dev/null +++ b/csharp-client-sdk/SDK/SDKSDK.cs @@ -0,0 +1,303 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Test: Test Summary + /// + /// + /// Some test description.
+ /// About our test document. + ///
+ /// + /// https://speakeasyapi.dev/docs/home} - Speakeasy Docs + ///
+ public interface ISDKSDK + { + + /// + /// Endpoints for testing authentication. + /// + public IAuthSDK Auth { get; } + + /// + /// Endpoints for testing authentication. + /// + public IAuthNewSDK AuthNew { get; } + + /// + /// Testing for documentation extensions and tooling. + /// + public IDocumentationSDK Documentation { get; } + + /// + /// Endpoints for testing error responses. + /// + public IErrorsSDK Errors { get; } + public IFirstSDK First { get; } + + /// + /// Endpoints for testing flattening through request body and parameter combinations. + /// + public IFlatteningSDK Flattening { get; } + + /// + /// Endpoints for purely testing valid generation behavior. + /// + public IGenerationSDK Generation { get; } + + /// + /// Endpoints for testing global parameters. + /// + public IGlobalsSDK Globals { get; } + public INestSDK Nest { get; } + public INestedSDK Nested { get; } + + /// + /// Endpoints for testing the pagination extension + /// + public IPaginationSDK Pagination { get; } + + /// + /// Endpoints for testing parameters. + /// + public IParametersSDK Parameters { get; } + + /// + /// Endpoints for testing request bodies. + /// + public IRequestBodiesSDK RequestBodies { get; } + public IResourceSDK Resource { get; } + + /// + /// Endpoints for testing response bodies. + /// + public IResponseBodiesSDK ResponseBodies { get; } + + /// + /// Endpoints for testing retries. + /// + public IRetriesSDK Retries { get; } + public ISecondSDK Second { get; } + + /// + /// Endpoints for testing servers. + /// + public IServersSDK Servers { get; } + + /// + /// Endpoints for testing telemetry. + /// + public ITelemetrySDK Telemetry { get; } + + /// + /// Endpoints for testing union types. + /// + public IUnionsSDK Unions { get; } + Task PutAnythingIgnoredGenerationAsync(string request); + Task ResponseBodyJsonGetAsync(); + } + + public class SDKConfig + { + public long? GlobalPathParam; + public string? GlobalQueryParam; + } + + /// + /// Test: Test Summary + /// + /// + /// Some test description.
+ /// About our test document. + ///
+ /// + /// https://speakeasyapi.dev/docs/home} - Speakeasy Docs + ///
+ public class SDKSDK: ISDKSDK + { + public SDKConfig Config { get; private set; } + public static List ServerList = new List() + { + "http://localhost:35123", + "http://broken", + "http://{hostname}:{port}", + "http://localhost:35123/anything/{something}", + "{protocol}://{hostname}:{port}", + }; + + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + public IAuthSDK Auth { get; private set; } + public IAuthNewSDK AuthNew { get; private set; } + public IDocumentationSDK Documentation { get; private set; } + public IErrorsSDK Errors { get; private set; } + public IFirstSDK First { get; private set; } + public IFlatteningSDK Flattening { get; private set; } + public IGenerationSDK Generation { get; private set; } + public IGlobalsSDK Globals { get; private set; } + public INestSDK Nest { get; private set; } + public INestedSDK Nested { get; private set; } + public IPaginationSDK Pagination { get; private set; } + public IParametersSDK Parameters { get; private set; } + public IRequestBodiesSDK RequestBodies { get; private set; } + public IResourceSDK Resource { get; private set; } + public IResponseBodiesSDK ResponseBodies { get; private set; } + public IRetriesSDK Retries { get; private set; } + public ISecondSDK Second { get; private set; } + public IServersSDK Servers { get; private set; } + public ITelemetrySDK Telemetry { get; private set; } + public IUnionsSDK Unions { get; private set; } + + public SDKSDK(Security? security = null, long? globalPathParam = null, string? globalQueryParam = null, string? serverUrl = null, ISpeakeasyHttpClient? client = null) + { + _serverUrl = serverUrl ?? SDKSDK.ServerList[0]; + + _defaultClient = new SpeakeasyHttpClient(client); + _securityClient = _defaultClient; + + if(security != null) + { + _securityClient = SecuritySerializer.Apply(_defaultClient, security); + } + + Config = new SDKConfig() + { + GlobalPathParam = globalPathParam, + GlobalQueryParam = globalQueryParam, + }; + + Auth = new AuthSDK(_defaultClient, _securityClient, _serverUrl, Config); + AuthNew = new AuthNewSDK(_defaultClient, _securityClient, _serverUrl, Config); + Documentation = new DocumentationSDK(_defaultClient, _securityClient, _serverUrl, Config); + Errors = new ErrorsSDK(_defaultClient, _securityClient, _serverUrl, Config); + First = new FirstSDK(_defaultClient, _securityClient, _serverUrl, Config); + Flattening = new FlatteningSDK(_defaultClient, _securityClient, _serverUrl, Config); + Generation = new GenerationSDK(_defaultClient, _securityClient, _serverUrl, Config); + Globals = new GlobalsSDK(_defaultClient, _securityClient, _serverUrl, Config); + Nest = new NestSDK(_defaultClient, _securityClient, _serverUrl, Config); + Nested = new NestedSDK(_defaultClient, _securityClient, _serverUrl, Config); + Pagination = new PaginationSDK(_defaultClient, _securityClient, _serverUrl, Config); + Parameters = new ParametersSDK(_defaultClient, _securityClient, _serverUrl, Config); + RequestBodies = new RequestBodiesSDK(_defaultClient, _securityClient, _serverUrl, Config); + Resource = new ResourceSDK(_defaultClient, _securityClient, _serverUrl, Config); + ResponseBodies = new ResponseBodiesSDK(_defaultClient, _securityClient, _serverUrl, Config); + Retries = new RetriesSDK(_defaultClient, _securityClient, _serverUrl, Config); + Second = new SecondSDK(_defaultClient, _securityClient, _serverUrl, Config); + Servers = new ServersSDK(_defaultClient, _securityClient, _serverUrl, Config); + Telemetry = new TelemetrySDK(_defaultClient, _securityClient, _serverUrl, Config); + Unions = new UnionsSDK(_defaultClient, _securityClient, _serverUrl, Config); + } + + public async Task PutAnythingIgnoredGenerationAsync(string request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/ignoredGeneration"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PutAnythingIgnoredGenerationResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.PutAnythingIgnoredGeneration200ApplicationJSONObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + public async Task ResponseBodyJsonGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/json"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ResponseBodyJsonGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.HttpBinSimpleJsonObject = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Second.cs b/csharp-client-sdk/SDK/Second.cs new file mode 100755 index 000000000..6ca785664 --- /dev/null +++ b/csharp-client-sdk/SDK/Second.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + public interface ISecondSDK + { + Task GetAsync(); + } + + public class SecondSDK: ISecondSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public SecondSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task GetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/group/second"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new GroupSecondGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Servers.cs b/csharp-client-sdk/SDK/Servers.cs new file mode 100755 index 000000000..777b0f3d4 --- /dev/null +++ b/csharp-client-sdk/SDK/Servers.cs @@ -0,0 +1,340 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using SDK.Models.Operations; + using SDK.Utils; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing servers. + /// + public interface IServersSDK + { + Task SelectGlobalServerAsync(); + + /// + /// Select a server by ID. + /// + Task SelectServerWithIDAsync(string? serverUrl = null); + Task ServerWithProtocolTemplateAsync(string? serverUrl = null); + Task ServerWithTemplatesAsync(string? serverUrl = null); + Task ServerWithTemplatesGlobalAsync(); + Task ServersByIDWithTemplatesAsync(string? serverUrl = null); + } + + /// + /// Endpoints for testing servers. + /// + public class ServersSDK: IServersSDK + { + /** + * SelectServerWithIDServers contains identifiers for the servers available to the SDK. + */ + public enum SelectServerWithIDServers { + Valid, + Broken, + } + + /** + * SelectServerWithIDSERVERS contains the list of server urls available to the SDK. + */ + public static readonly Dictionary SelectServerWithIDSERVERS = new Dictionary() + { + { SelectServerWithIDServers.Valid, "http://localhost:35123" }, + { SelectServerWithIDServers.Broken, "http://broken" }, + }; + /** + * ServerWithProtocolTemplateServers contains identifiers for the servers available to the SDK. + */ + public enum ServerWithProtocolTemplateServers { + Main, + } + + /** + * ServerWithProtocolTemplateSERVERS contains the list of server urls available to the SDK. + */ + public static readonly Dictionary ServerWithProtocolTemplateSERVERS = new Dictionary() + { + { ServerWithProtocolTemplateServers.Main, "{protocol}://{hostname}:{port}" }, + }; + /** + * ServerWithTemplatesSERVERS contains the list of server urls available to the SDK. + */ + public static readonly string[] ServerWithTemplatesSERVERS = { + "http://{hostname}:{port}", + }; + + /** + * ServersByIDWithTemplatesServers contains identifiers for the servers available to the SDK. + */ + public enum ServersByIDWithTemplatesServers { + Main, + } + + /** + * SERVERSByIDWithTemplatesSERVERS contains the list of server urls available to the SDK. + */ + public static readonly Dictionary SERVERSByIDWithTemplatesSERVERS = new Dictionary() + { + { ServersByIDWithTemplatesServers.Main, "http://{hostname}:{port}" }, + }; + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public ServersSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task SelectGlobalServerAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/selectGlobalServer"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new SelectGlobalServerResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task SelectServerWithIDAsync(string? serverUrl = null) + { + string baseUrl = SelectServerWithIDSERVERS[SelectServerWithIDServers.Valid]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/selectServerWithID"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new SelectServerWithIDResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task ServerWithProtocolTemplateAsync(string? serverUrl = null) + { + string baseUrl = ServerWithProtocolTemplateSERVERS[ServerWithProtocolTemplateServers.Main]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/serverWithProtocolTemplate"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ServerWithProtocolTemplateResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task ServerWithTemplatesAsync(string? serverUrl = null) + { + string baseUrl = ServerWithTemplatesSERVERS[0]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/serverWithTemplates"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ServerWithTemplatesResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task ServerWithTemplatesGlobalAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/serverWithTemplatesGlobal"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ServerWithTemplatesGlobalResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + + public async Task ServersByIDWithTemplatesAsync(string? serverUrl = null) + { + string baseUrl = SERVERSByIDWithTemplatesSERVERS[ServersByIDWithTemplatesServers.Main]; + if (!string.IsNullOrEmpty(serverUrl)) { + baseUrl = serverUrl; + } + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/serversByIDWithTemplates"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new ServersByIDWithTemplatesResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Telemetry.cs b/csharp-client-sdk/SDK/Telemetry.cs new file mode 100755 index 000000000..8eb121196 --- /dev/null +++ b/csharp-client-sdk/SDK/Telemetry.cs @@ -0,0 +1,139 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using SDK.Models.Operations; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing telemetry. + /// + public interface ITelemetrySDK + { + Task TelemetrySpeakeasyUserAgentGetAsync(string userAgent); + Task TelemetryUserAgentGetAsync(); + } + + /// + /// Endpoints for testing telemetry. + /// + public class TelemetrySDK: ITelemetrySDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public TelemetrySDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task TelemetrySpeakeasyUserAgentGetAsync(string userAgent) + { + var request = new TelemetrySpeakeasyUserAgentGetRequest() + { + UserAgent = userAgent, + }; + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/telemetry/speakeasy-user-agent"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + HeaderSerializer.PopulateHeaders(ref httpRequest, request); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new TelemetrySpeakeasyUserAgentGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task TelemetryUserAgentGetAsync() + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/telemetry/user-agent"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new TelemetryUserAgentGetResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Unions.cs b/csharp-client-sdk/SDK/Unions.cs new file mode 100755 index 000000000..341c04a39 --- /dev/null +++ b/csharp-client-sdk/SDK/Unions.cs @@ -0,0 +1,704 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK +{ + using Newtonsoft.Json; + using NodaTime; + using SDK.Models.Operations; + using SDK.Models.Shared; + using SDK.Utils; + using System.Net.Http.Headers; + using System.Net.Http; + using System.Threading.Tasks; + using System; + + /// + /// Endpoints for testing union types. + /// + public interface IUnionsSDK + { + Task FlattenedTypedObjectPostAsync(object request); + Task MixedTypeOneOfPostAsync(object request); + Task NullableOneOfRefInObjectPostAsync(NullableOneOfRefInObject request); + Task NullableOneOfSchemaPostAsync(object request); + Task NullableOneOfTypeInObjectPostAsync(NullableOneOfTypeInObject request); + Task NullableTypedObjectPostAsync(TypedObject1 request); + Task PrimitiveTypeOneOfPostAsync(object request); + Task StronglyTypedOneOfPostAsync(object request); + Task TypedObjectNullableOneOfPostAsync(object request); + Task TypedObjectOneOfPostAsync(object request); + Task UnionDateNullAsync(LocalDate request); + Task UnionDateTimeNullAsync(DateTime request); + Task WeaklyTypedOneOfPostAsync(object request); + } + + /// + /// Endpoints for testing union types. + /// + public class UnionsSDK: IUnionsSDK + { + public SDKConfig Config { get; private set; } + private const string _language = "csharp"; + private const string _sdkVersion = "0.1.0"; + private const string _sdkGenVersion = "2.171.0"; + private const string _openapiDocVersion = "0.1.0"; + private const string _userAgent = "speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private ISpeakeasyHttpClient _securityClient; + + public UnionsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securityClient = securityClient; + _serverUrl = serverUrl; + Config = config; + } + + + public async Task FlattenedTypedObjectPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/flattenedTypedObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new FlattenedTypedObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task MixedTypeOneOfPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/mixedTypeOneOf"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new MixedTypeOneOfPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task NullableOneOfRefInObjectPostAsync(NullableOneOfRefInObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nullableOneOfRefInObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableOneOfRefInObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task NullableOneOfSchemaPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nullableOneOfSchema"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableOneOfSchemaPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task NullableOneOfTypeInObjectPostAsync(NullableOneOfTypeInObject request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nullableOneOfInObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableOneOfTypeInObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task NullableTypedObjectPostAsync(TypedObject1 request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/nullableTypedObject"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new NullableTypedObjectPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task PrimitiveTypeOneOfPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/primitiveTypeOneOf"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new PrimitiveTypeOneOfPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task StronglyTypedOneOfPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/stronglyTypedOneOf"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new StronglyTypedOneOfPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task TypedObjectNullableOneOfPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/typedObjectNullableOneOf"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new TypedObjectNullableOneOfPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task TypedObjectOneOfPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/typedObjectOneOf"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new TypedObjectOneOfPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task UnionDateNullAsync(LocalDate request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/unionDateNull"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new UnionDateNullResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task UnionDateTimeNullAsync(DateTime request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/unionDateTimeNull"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new UnionDateTimeNullResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + + public async Task WeaklyTypedOneOfPostAsync(object request) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = baseUrl + "/anything/weaklyTypedOneOf"; + + + var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); + httpRequest.Headers.Add("x-speakeasy-user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json"); + if (serializedBody == null) + { + throw new ArgumentNullException("request body is required"); + } + else + { + httpRequest.Content = serializedBody; + } + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new WeaklyTypedOneOfPostResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + response.Res = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + } + + return response; + } + return response; + } + + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Utils/BigIntSerializer.cs b/csharp-client-sdk/SDK/Utils/BigIntSerializer.cs new file mode 100755 index 000000000..c5c1867fe --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/BigIntSerializer.cs @@ -0,0 +1,50 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Globalization; + using System.Numerics; + using Newtonsoft.Json; + + internal class BigIntSerializer : JsonConverter + { + public override bool CanConvert(Type objectType) => objectType == typeof(BigInteger); + + public override bool CanRead => true; + + public override object? ReadJson( + JsonReader reader, + Type objectType, + object? existingValue, + JsonSerializer serializer + ) + { + if (reader.Value == null) + { + return null; + } + + return BigInteger.Parse(reader.Value.ToString()!); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteValue("null"); + return; + } + + writer.WriteValue(((BigInteger)value).ToString(CultureInfo.InvariantCulture)); + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/DecimalSerializer.cs b/csharp-client-sdk/SDK/Utils/DecimalSerializer.cs new file mode 100755 index 000000000..0f4e77989 --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/DecimalSerializer.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Globalization; + using Newtonsoft.Json; + + internal class DecimalSerializer : JsonConverter + { + public override bool CanConvert(Type objectType) => objectType == typeof(Decimal); + + public override bool CanRead => true; + + public override object? ReadJson( + JsonReader reader, + Type objectType, + object? existingValue, + JsonSerializer serializer + ) + { + if (reader.Value == null) + { + return null; + } + + return Decimal.Parse(reader.Value.ToString()!); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteValue("null"); + return; + } + + writer.WriteValue(((Decimal)value).ToString(CultureInfo.InvariantCulture)); + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/EnumSerializer.cs b/csharp-client-sdk/SDK/Utils/EnumSerializer.cs new file mode 100755 index 000000000..de81f5b4e --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/EnumSerializer.cs @@ -0,0 +1,68 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +using System; +using Newtonsoft.Json; +using System.Runtime.CompilerServices; +[assembly: InternalsVisibleTo("Tests")] +namespace SDK.Utils +{ + internal class EnumSerializer : JsonConverter + { + public override bool CanConvert(Type objectType) => objectType.IsEnum; + + public override bool CanRead => true; + + public override object? ReadJson( + JsonReader reader, + Type objectType, + object? existingValue, + JsonSerializer serializer + ) + { + if (reader.Value == null) + { + throw new ArgumentNullException(nameof(reader.Value)); + } + + var extensionType = Type.GetType(objectType.FullName + "Extension"); + if (extensionType == null) + { + return Enum.ToObject(objectType, reader.Value); + } + + var method = extensionType.GetMethod("ToEnum"); + if (method == null) + { + throw new Exception($"Unable to find ToEnum method on {extensionType.FullName}"); + } + + return method.Invoke(null, new[] { (string)reader.Value }); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteValue("null"); + return; + } + + var extensionType = Type.GetType(value.GetType().FullName + "Extension"); + if (extensionType == null) + { + writer.WriteValue(value); + return; + } + + writer.WriteValue(Utilities.ToString(value)); + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/FlexibleObjectDeserializer.cs b/csharp-client-sdk/SDK/Utils/FlexibleObjectDeserializer.cs new file mode 100755 index 000000000..ac565c90b --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/FlexibleObjectDeserializer.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + + internal class FlexibleObjectDeserializer: JsonConverter + { + public override bool CanConvert(Type objectType) => + objectType == typeof(object); + + public override bool CanWrite => false; + + public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer) + { + var token = JToken.ReadFrom(reader); + + if (token is JArray) + { + return new List(token.Select(t => + { + return t.ToString(); + })); + } + + return token.ToObject(objectType); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) => + throw new NotImplementedException(); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Utils/HeaderSerializer.cs b/csharp-client-sdk/SDK/Utils/HeaderSerializer.cs new file mode 100755 index 000000000..dc576841d --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/HeaderSerializer.cs @@ -0,0 +1,129 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Reflection; + + internal static class HeaderSerializer + { + public static void PopulateHeaders(ref HttpRequestMessage httpRequest, object? request) + { + if (request == null) + { + return; + } + + var props = request.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(request); + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetHeaderMetadata(); + if (metadata == null || metadata.Name == "") + { + continue; + } + + var headerValue = SerializeHeader(val, metadata.Explode); + if (headerValue != "") + { + httpRequest.Headers.Add(metadata.Name, headerValue); + } + } + } + + private static string SerializeHeader(object value, bool explode) + { + if (Utilities.IsClass(value)) + { + var items = new List(); + + var props = value.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(value); + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetHeaderMetadata(); + if (metadata == null || metadata.Name == null) + { + continue; + } + + if (explode) + { + items.Add($"{metadata.Name}={Utilities.ValueToString(val)}"); + } + else + { + items.Add(metadata.Name); + items.Add(Utilities.ValueToString(val)); + } + } + + return string.Join(",", items); + } + else if (Utilities.IsDictionary(value)) + { + var items = new List(); + + foreach (DictionaryEntry entry in (IDictionary)value) + { + var key = entry.Key?.ToString(); + + if (key == null) + { + continue; + } + + if (explode) + { + items.Add($"{key}={Utilities.ValueToString(entry.Value)}"); + } + else + { + items.Add(key); + items.Add(Utilities.ValueToString(entry.Value)); + } + } + + return string.Join(",", items); + } + else if (Utilities.IsList(value)) + { + var items = new List(); + + foreach (var item in (IList)value) + { + items.Add(Utilities.ValueToString(item)); + } + + return string.Join(",", items); + } + else + { + return Utilities.ValueToString(value); + } + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/IsoDateTimeSerializer.cs b/csharp-client-sdk/SDK/Utils/IsoDateTimeSerializer.cs new file mode 100755 index 000000000..d671a0003 --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/IsoDateTimeSerializer.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Globalization; + using Newtonsoft.Json; + + internal class IsoDateTimeSerializer: JsonConverter + { + public override bool CanConvert(Type objectType) => + objectType == typeof(DateTime); + + public override bool CanRead => false; + + public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer) => + throw new NotImplementedException(); + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteValue("null"); + return; + } + + DateTime time = (DateTime)value; + // The built-in Iso converter coerces to local time; + // This standardizes to UTC. + writer.WriteValue(time.ToUniversalTime().ToString("o", CultureInfo.InvariantCulture)); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Utils/RequestBodySerializer.cs b/csharp-client-sdk/SDK/Utils/RequestBodySerializer.cs new file mode 100755 index 000000000..d833e0925 --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/RequestBodySerializer.cs @@ -0,0 +1,502 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Reflection; + using System.Text; + + internal class RequestBodySerializer + { + public static HttpContent? Serialize( + object? request, + string requestFieldName, + string serializationMethod + ) + { + if (request == null) + { + return null; + } + + if (Utilities.IsClass(request)) + { + var prop = GetPropertyInfo(request, requestFieldName); + + if (prop != null) + { + var metadata = prop.GetCustomAttribute()?.GetRequestMetadata(); + if (metadata != null) + { + var fieldValue = prop.GetValue(request); + if (fieldValue == null) + { + return null; + } + + return TrySerialize( + fieldValue, + requestFieldName, + serializationMethod, + metadata.MediaType ?? "" + ); + } + } + } + + // Not an object or flattened request + return TrySerialize(request, requestFieldName, serializationMethod); + } + + private static HttpContent? TrySerialize( + object request, + string requestFieldName, + string serializationMethod, + string mediaType = "" + ) + { + if (mediaType == "") + { + mediaType = new Dictionary() + { + { "json", "application/json" }, + { "form", "application/x-www-form-urlencoded" }, + { "multipart", "multipart/form-data" }, + { "raw", "application/octet-stream" }, + { "string", "text/plain" }, + }[serializationMethod]; + } + + switch (serializationMethod) + { + case "json": + return SerializeJson(request, mediaType); + case "form": + return SerializeForm(request, requestFieldName, mediaType); + case "multipart": + return SerializeMultipart(request, mediaType); + default: + // if request is a byte array, use it directly otherwise encode + if (request.GetType() == typeof(byte[])) + { + return SerializeRaw((byte[])request, mediaType); + } + else if (request.GetType() == typeof(string)) + { + return SerializeString((string)request, mediaType); + } + else + { + throw new Exception( + "Cannot serialize request body of type " + + request.GetType().Name + + " with serialization method " + + serializationMethod + + "" + ); + } + } + } + + private static HttpContent SerializeJson(object request, string mediaType) + { + return new StringContent(Utilities.SerializeJSON(request), Encoding.UTF8, mediaType); + } + + private static HttpContent SerializeForm( + object request, + string requestFieldName, + string mediaType + ) + { + Dictionary> form = new Dictionary>(); + + if (Utilities.IsClass(request)) + { + var props = request.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(request); + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetFormMetadata(); + if (metadata == null) + { + continue; + } + + if (metadata.Json) + { + var key = metadata.Name ?? prop.Name; + if (key == "") + { + continue; + } + + if (!form.ContainsKey(key)) + { + form.Add(key, new List()); + } + + form[key].Add(Utilities.SerializeJSON(val)); + } + else + { + switch (metadata.Style) + { + case "form": + SerializeFormValue( + metadata.Name ?? prop.Name, + metadata.Explode, + val, + ref form + ); + break; + default: + throw new Exception("Unsupported form style " + metadata.Style); + } + } + } + } + else if (Utilities.IsDictionary(request)) + { + foreach (var k in ((IDictionary)request).Keys) + { + var key = k?.ToString(); + + if (key == null) + { + continue; + } + + if (!form.ContainsKey(key)) + { + form.Add(key, new List()); + } + + form[key].Add(Utilities.ValueToString(((IDictionary)request)[key])); + } + } + else if (Utilities.IsList(request)) + { + foreach (var item in (IList)request) + { + if (!form.ContainsKey(requestFieldName)) + { + form.Add(requestFieldName, new List()); + } + + form[requestFieldName].Add(Utilities.ValueToString(item)); + } + } + else + { + throw new Exception( + "Cannot serialize form data from type " + request.GetType().Name + ); + } + + var formData = new List>(); + + foreach (var key in form.Keys) + { + foreach (var val in form[key]) + { + formData.Add( + new KeyValuePair( + key + (form[key].Count > 1 ? "[]" : ""), + val + ) + ); + } + } + + return new FormUrlEncodedContent(formData); + } + + private static HttpContent SerializeMultipart(object request, string mediaType) + { + var formData = new MultipartFormDataContent(); + + var properties = request.GetType().GetProperties(); + + foreach (var prop in properties) + { + var value = prop.GetValue(request); + if (value == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetMultipartFormMetadata(); + if (metadata == null) + { + continue; + } + + if (metadata.File) + { + if (!Utilities.IsClass(value)) + { + throw new Exception( + "Cannot serialize multipart file from type " + value.GetType().Name + ); + } + + var fileProps = value.GetType().GetProperties(); + + byte[]? content = null; + string fileName = ""; + string fieldName = ""; + + foreach (var fileProp in fileProps) + { + var fileMetadata = fileProp + .GetCustomAttribute() + ?.GetMultipartFormMetadata(); + if ( + fileMetadata == null + || (!fileMetadata.Content && fileMetadata.Name == "") + ) + { + continue; + } + + if (fileMetadata.Content) + { + content = (byte[]?)fileProp.GetValue(value); + } + else + { + fieldName = fileMetadata.Name ?? fileProp.Name; + fileName = fileProp.GetValue(value)?.ToString() ?? ""; + } + } + + if (fieldName == "" || fileName == "" || content == null) + { + throw new Exception("Invalid multipart/form-data file"); + } + + formData.Add(new ByteArrayContent(content), fieldName, fileName); + } + else if (metadata.Json) + { + formData.Add( + new StringContent(Utilities.SerializeJSON(value)), + metadata.Name ?? prop.Name + ); + } + else if (Utilities.IsList(value)) + { + var values = new List(); + + foreach (var item in (IList)value) + { + values.Add(Utilities.ValueToString(item)); + } + + foreach (var val in values) + { + formData.Add(new StringContent(val), metadata.Name ?? prop.Name); + } + } + else + { + formData.Add( + new StringContent(Utilities.ValueToString(value)), + metadata.Name ?? prop.Name + ); + } + } + + return formData; + } + + private static HttpContent SerializeRaw(byte[] request, string mediaType) + { + var content = new ByteArrayContent(request); + content.Headers.Add("Content-Type", mediaType); + return content; + } + + private static HttpContent SerializeString(string request, string mediaType) + { + return new StringContent(request, Encoding.UTF8, mediaType); + } + + private static void SerializeFormValue( + string fieldName, + bool explode, + object value, + ref Dictionary> form + ) + { + if (Utilities.IsClass(value)) + { + if (Utilities.IsDate(value)) + { + if (!form.ContainsKey(fieldName)) + { + form[fieldName] = new List(); + } + + form[fieldName].Add(Utilities.ValueToString(value)); + } + else + { + var props = value.GetType().GetProperties(); + + var items = new List(); + + foreach (var prop in props) + { + var val = prop.GetValue(value); + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetFormMetadata(); + if (metadata == null || metadata.Name == null) + { + continue; + } + + if (explode) + { + if (!form.ContainsKey(metadata.Name)) + { + form[metadata.Name] = new List(); + } + + form[metadata.Name].Add(Utilities.ValueToString(val)); + } + else + { + items.Add($"{metadata.Name},{Utilities.ValueToString(val)}"); + } + } + + if (items.Count > 0) + { + if (!form.ContainsKey(fieldName)) + { + form[fieldName] = new List(); + } + + form[fieldName].Add(string.Join(",", items)); + } + } + } + else if (Utilities.IsDictionary(value)) + { + var items = new List(); + + foreach (var k in ((IDictionary)value).Keys) + { + var key = k?.ToString(); + + if (key == null) + { + continue; + } + + if (explode) + { + if (!form.ContainsKey(key)) + { + form[key] = new List(); + } + + form[key].Add( + Utilities.ValueToString(((IDictionary)value)[key]) + ); + } + else + { + items.Add($"{key},{Utilities.ValueToString(((IDictionary)value)[key])}"); + } + } + + if (items.Count > 0) + { + if (!form.ContainsKey(fieldName)) + { + form[fieldName] = new List(); + } + + form[fieldName].Add(string.Join(",", items)); + } + } + else if (Utilities.IsList(value)) + { + var values = new List(); + var items = new List(); + + foreach (var item in (IList)value) + { + if (explode) + { + values.Add(Utilities.ValueToString(item)); + } + else + { + items.Add(Utilities.ValueToString(item)); + } + } + + if (items.Count > 0) + { + values.Add(string.Join(",", items)); + } + + foreach (var val in values) + { + if (!form.ContainsKey(fieldName)) + { + form[fieldName] = new List(); + } + + form[fieldName].Add(val); + } + } + else + { + if (!form.ContainsKey(fieldName)) + { + form[fieldName] = new List(); + } + + form[fieldName].Add(Utilities.ValueToString(value)); + } + } + + private static PropertyInfo? GetPropertyInfo(object value, string propertyName) + { + try + { + return value.GetType().GetProperty(propertyName); + } + catch (Exception) + { + return null; + } + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Utils/SecuritySerializer.cs b/csharp-client-sdk/SDK/Utils/SecuritySerializer.cs new file mode 100755 index 000000000..5cc31473e --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/SecuritySerializer.cs @@ -0,0 +1,227 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Reflection; + using System.Text; + + internal static class SecuritySerializer + { + public static ISpeakeasyHttpClient Apply(ISpeakeasyHttpClient client, object security) + { + if (security == null) + { + return client; + } + + client = new SpeakeasyHttpClient(client); + + var props = security.GetType().GetProperties(); + + foreach (var prop in props) + { + var value = prop.GetValue(security, null); + + if (value == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetSecurityMetadata(); + if (metadata == null) + { + continue; + } + + if (metadata.Option) + { + ApplyOption(ref client, value); + } + else if (metadata.Scheme) + { + if (metadata.SubType == "basic" && !Utilities.IsClass(value)) + { + ApplyScheme(ref client, metadata, security); + return client; + } + else + { + ApplyScheme(ref client, metadata, value); + } + } + } + + return client; + } + + private static void ApplyOption(ref ISpeakeasyHttpClient client, object option) + { + var props = option.GetType().GetProperties(); + + foreach (var prop in props) + { + var value = prop.GetValue(option, null); + + if (value == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetSecurityMetadata(); + if (metadata == null || !metadata.Scheme) + { + continue; + } + + ApplyScheme(ref client, metadata, value); + } + } + + private static void ApplyScheme( + ref ISpeakeasyHttpClient client, + SpeakeasyMetadata.SecurityMetadata schemeMetadata, + object scheme + ) + { + if (Utilities.IsClass(scheme)) + { + if (schemeMetadata.Type == "http" && schemeMetadata.SubType == "basic") + { + ApplyBasicAuthScheme(ref client, scheme); + return; + } + + var props = scheme.GetType().GetProperties(); + + foreach (var prop in props) + { + var value = prop.GetValue(scheme, null); + + if (value == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetSecurityMetadata(); + if (metadata == null || metadata.Name == "") + { + continue; + } + + ApplySchemeValue(ref client, schemeMetadata, metadata, value); + } + } + else + { + ApplySchemeValue(ref client, schemeMetadata, schemeMetadata, scheme); + } + } + + private static void ApplySchemeValue( + ref ISpeakeasyHttpClient client, + SpeakeasyMetadata.SecurityMetadata schemeMetadata, + SpeakeasyMetadata.SecurityMetadata valueMetadata, + object value + ) + { + if (valueMetadata.Name == "") + { + return; + } + + switch (schemeMetadata.Type) + { + case "apiKey": + switch (schemeMetadata.SubType) + { + case "header": + client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + break; + case "query": + client.AddQueryParam( + valueMetadata.Name, + Utilities.ValueToString(value) + ); + break; + case "cookie": + client.AddHeader( + "cookie", + $"{valueMetadata.Name}={Utilities.ValueToString(value)}" + ); + break; + default: + throw new Exception( + $"Unknown apiKey subType: {schemeMetadata.SubType}" + ); + } + break; + case "openIdConnect": + client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + break; + case "oauth2": + client.AddHeader(valueMetadata.Name, Utilities.ValueToString(value)); + break; + case "http": + switch (schemeMetadata.SubType) + { + case "bearer": + client.AddHeader( + valueMetadata.Name, + Utilities.PrefixBearer(Utilities.ValueToString(value)) + ); + break; + default: + throw new Exception($"Unknown http subType: {schemeMetadata.SubType}"); + } + break; + default: + throw new Exception($"Unknown security type: {schemeMetadata.Type}"); + } + } + + private static void ApplyBasicAuthScheme(ref ISpeakeasyHttpClient client, object scheme) + { + var props = scheme.GetType().GetProperties(); + + string username = ""; + string password = ""; + + foreach (var prop in props) + { + var value = prop.GetValue(scheme, null); + + if (value == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetSecurityMetadata(); + if (metadata == null || metadata.Name == "") + { + continue; + } + + if (metadata.Name == "username") + { + username = Utilities.ValueToString(value); + } + else if (metadata.Name == "password") + { + password = Utilities.ValueToString(value); + } + } + + var auth = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}")); + client.AddHeader("Authorization", $"Basic {auth}"); + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/SpeakeasyHttpClient.cs b/csharp-client-sdk/SDK/Utils/SpeakeasyHttpClient.cs new file mode 100755 index 000000000..4cfdc0b3b --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/SpeakeasyHttpClient.cs @@ -0,0 +1,96 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading.Tasks; + + public interface ISpeakeasyHttpClient + { + void AddHeader(string key, string value); + void AddQueryParam(string key, string value); + Task SendAsync(HttpRequestMessage message); + } + + public class SpeakeasyHttpClient : ISpeakeasyHttpClient + { + private ISpeakeasyHttpClient? client; + + private Dictionary> headers { get; } = + new Dictionary>(); + + private Dictionary> queryParams { get; } = + new Dictionary>(); + + internal SpeakeasyHttpClient(ISpeakeasyHttpClient? client = null) + { + this.client = client; + } + + public void AddHeader(string key, string value) + { + if (headers.ContainsKey(key)) + { + headers[key].Add(value); + } + else + { + headers.Add(key, new List { value }); + } + } + + public void AddQueryParam(string key, string value) + { + if (queryParams.ContainsKey(key)) + { + queryParams[key].Add(value); + } + else + { + queryParams.Add(key, new List { value }); + } + } + + public async Task SendAsync(HttpRequestMessage message) + { + foreach(var hh in headers) + { + foreach(var hv in hh.Value) + { + message.Headers.Add(hh.Key, hv); + } + } + + /*var qp = URLBuilder.SerializeQueryParams(queryParams); + + if (qp != "") + { + if (message.uri.Query == "") + { + message.url += "?" + qp; + } + else + { + message.url += "&" + qp; + } + }*/ + + if (client != null) + { + return await client.SendAsync(message); + } + + return await new HttpClient().SendAsync(message); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/SDK/Utils/SpeakeasyMetadata.cs b/csharp-client-sdk/SDK/Utils/SpeakeasyMetadata.cs new file mode 100755 index 000000000..da200e121 --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/SpeakeasyMetadata.cs @@ -0,0 +1,243 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Collections.Generic; + + [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] + internal class SpeakeasyMetadata : Attribute + { + internal class RequestMetadata + { + public string? MediaType { get; set; } = null; + } + + internal class FormMetadata + { + public string Style { get; set; } = "form"; + public bool Explode { get; set; } = true; + public bool Json { get; set; } = false; + public string Name { get; set; } = ""; + } + + internal class MultipartFormMetadata + { + public bool File { get; set; } = false; + public bool Content { get; set; } = false; + public bool Json { get; set; } = false; + public string Name { get; set; } = ""; + } + + internal class PathParamMetadata + { + public string Style { get; set; } = "simple"; + public bool Explode { get; set; } = false; + public string Name { get; set; } = ""; + public string? Serialization { get; set; } = null; + } + + internal class QueryParamMetadata + { + public string Style { get; set; } = "form"; + public bool Explode { get; set; } = true; + public string Name { get; set; } = ""; + public string? Serialization { get; set; } = null; + } + + internal class HeaderMetadata + { + public string Style { get; set; } = "simple"; + public bool Explode { get; set; } = false; + public string Name { get; set; } = ""; + } + + internal class SecurityMetadata + { + public string? Type { get; set; } = null; + public string? SubType { get; set; } = null; + public bool Option { get; set; } = false; + public bool Scheme { get; set; } = false; + public string Name { get; set; } = ""; + } + + public string Value { get; set; } + private Dictionary? metadata; + + public SpeakeasyMetadata(string value) + { + Value = value; + } + + public RequestMetadata? GetRequestMetadata() + { + if (GetMetadata().TryGetValue("request", out var value)) + { + var metadata = new RequestMetadata(); + + ParseMetadata(value, ref metadata); + + return metadata; + } + + return null; + } + + public FormMetadata? GetFormMetadata() + { + if (GetMetadata().TryGetValue("form", out var value)) + { + var metadata = new FormMetadata(); + + ParseMetadata(value, ref metadata); + + return metadata; + } + + return null; + } + + public MultipartFormMetadata? GetMultipartFormMetadata() + { + if (GetMetadata().TryGetValue("multipartForm", out var value)) + { + var metadata = new MultipartFormMetadata(); + + ParseMetadata(value, ref metadata); + + return metadata; + } + + return null; + } + + public PathParamMetadata? GetPathParamMetadata() + { + if (GetMetadata().TryGetValue("pathParam", out var value)) + { + var metadata = new PathParamMetadata(); + ParseMetadata(value, ref metadata); + return metadata; + } + + return null; + } + + public QueryParamMetadata? GetQueryParamMetadata() + { + if (GetMetadata().TryGetValue("queryParam", out var value)) + { + var metadata = new QueryParamMetadata(); + + ParseMetadata(value, ref metadata); + + return metadata; + } + + return null; + } + + public HeaderMetadata? GetHeaderMetadata() + { + if (GetMetadata().TryGetValue("header", out var value)) + { + var metadata = new HeaderMetadata(); + + ParseMetadata(value, ref metadata); + + return metadata; + } + + return null; + } + + public SecurityMetadata? GetSecurityMetadata() + { + if (GetMetadata().TryGetValue("security", out var value)) + { + var metadata = new SecurityMetadata(); + + ParseMetadata(value, ref metadata); + + return metadata; + } + + return null; + } + + private Dictionary GetMetadata() + { + if (metadata != null) + { + return metadata; + } + + metadata = new Dictionary(); + + var groups = Value.Split(" "); + + foreach (var group in groups) + { + var parts = group.Split(":"); + + if (parts.Length != 2) + { + continue; + } + + metadata.Add(parts[0], parts[1]); + } + + return metadata; + } + + private void ParseMetadata(string raw, ref T metadata) + { + Dictionary values = new Dictionary(); + + var groups = raw.Split(","); + + foreach (var group in groups) + { + var parts = group.Split("="); + var val = ""; + if (parts.Length == 2) + { + val = parts[1]; + } + + values.Add(parts[0], val); + } + + var props = typeof(T).GetProperties(); + + foreach (var prop in props) + { + if ( + values.TryGetValue( + char.ToLower(prop.Name[0]) + prop.Name.Substring(1), + out var value + ) + ) + { + if (prop.PropertyType == typeof(bool) || prop.PropertyType == typeof(Boolean)) + { + prop.SetValue(metadata, value == "true" || value == ""); + } + else + { + prop.SetValue(metadata, value); + } + } + } + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/URLBuilder.cs b/csharp-client-sdk/SDK/Utils/URLBuilder.cs new file mode 100755 index 000000000..eb56107bb --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/URLBuilder.cs @@ -0,0 +1,589 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Net; + using System.Reflection; + + internal static class URLBuilder + { + public static string Build(string baseUrl, string path, object? request) + { + var url = baseUrl; + + if (url.EndsWith("/")) + { + url = url.Substring(0, url.Length - 1); + } + + url += path; + + var parameters = GetPathParameters(request); + + url = ReplaceParameters(url, parameters); + + var queryParams = SerializeQueryParams(TrySerializeQueryParams(request)); + + if (queryParams != "") + { + url += $"?{queryParams}"; + } + + return url; + } + + public static string ReplaceParameters(string url, Dictionary parameters) + { + foreach (var key in parameters.Keys) + { + url = url.Replace($"{{{key}}}", parameters[key]); + } + + return url; + } + + public static string SerializeQueryParams(Dictionary> queryParams) { + var queries = new List(); + + foreach (var key in queryParams.Keys) + { + foreach (var value in queryParams[key]) + { + queries.Add($"{key}={value}"); + } + } + + return string.Join("&", queries); + } + + private static Dictionary GetPathParameters(object? request) + { + var parameters = new Dictionary(); + + if (request == null) + { + return parameters; + } + + var props = request.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(request); + + if (val == null) + { + continue; + } + + if (prop.GetCustomAttribute()?.GetRequestMetadata() != null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetPathParamMetadata(); + + if (metadata == null) + { + continue; + } + + if (metadata.Serialization != null) + { + switch (metadata.Serialization) + { + case "json": + parameters.Add( + metadata.Name ?? prop.Name, + WebUtility.UrlEncode(Utilities.SerializeJSON(val)) + ); + break; + default: + throw new Exception( + $"Unknown serialization type: {metadata.Serialization}" + ); + } + } + else + { + switch (metadata.Style) + { + case "simple": + var simpleParams = SerializeSimplePathParams( + metadata.Name ?? prop.Name, + val, + metadata.Explode + ); + foreach (var key in simpleParams.Keys) + { + parameters.Add(key, simpleParams[key]); + } + break; + default: + throw new Exception($"Unsupported path param style: {metadata.Style}"); + } + } + } + + return parameters; + } + + private static Dictionary> TrySerializeQueryParams(object? request) + { + var parameters = new Dictionary>(); + + if (request == null) + { + return parameters; + } + + var props = request.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(request); + + if (val == null) + { + continue; + } + + if (prop.GetCustomAttribute()?.GetRequestMetadata() != null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetQueryParamMetadata(); + if (metadata == null) + { + continue; + } + + if (metadata.Serialization != null) + { + switch (metadata.Serialization) + { + case "json": + if (!parameters.ContainsKey(metadata.Name ?? prop.Name)) + { + parameters.Add(metadata.Name ?? prop.Name, new List()); + } + + parameters[metadata.Name ?? prop.Name].Add( + Utilities.SerializeJSON(val) + ); + break; + default: + throw new Exception( + $"Unknown serialization type: {metadata.Serialization}" + ); + } + } + else + { + switch (metadata.Style) + { + case "form": + var formParams = SerializeFormQueryParams( + metadata.Name ?? prop.Name, + val, + metadata.Explode, + "," + ); + foreach (var key in formParams.Keys) + { + if (!parameters.ContainsKey(key)) + { + parameters.Add(key, new List()); + } + + foreach (var v in formParams[key]) + { + parameters[key].Add(v); + } + } + break; + case "deepObject": + var deepObjParams = SerializeDeepObjectQueryParams( + metadata.Name ?? prop.Name, + val + ); + foreach (var key in deepObjParams.Keys) + { + if (!parameters.ContainsKey(key)) + { + parameters.Add(key, new List()); + } + + foreach (var v in deepObjParams[key]) + { + parameters[key].Add(v); + } + } + break; + case "pipeDelimited": + var pipeParams = SerializeFormQueryParams( + metadata.Name ?? prop.Name, + val, + metadata.Explode, + "|" + ); + foreach (var key in pipeParams.Keys) + { + if (!parameters.ContainsKey(key)) + { + parameters.Add(key, new List()); + } + + foreach (var v in pipeParams[key]) + { + parameters[key].Add(v); + } + } + break; + default: + throw new Exception($"Unsupported query param style: {metadata.Style}"); + } + } + } + + return parameters; + } + + private static Dictionary SerializeSimplePathParams( + string parentName, + object value, + bool explode + ) + { + var parameters = new Dictionary(); + + if (Utilities.IsClass(value)) + { + var vals = new List(); + + var props = value.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(value); + + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetPathParamMetadata(); + if (metadata == null) + { + continue; + } + + if (explode) + { + vals.Add($"{metadata.Name}={Utilities.ToString(val)}"); + } + else + { + vals.Add($"{metadata.Name},{Utilities.ToString(val)}"); + } + } + + parameters.Add(parentName, string.Join(",", vals)); + } + else if (Utilities.IsDictionary(value)) + { + var vals = new List(); + + foreach (var key in ((IDictionary)value).Keys) + { + if (key == null) + { + continue; + } + + var val = ((IDictionary)value)[key]; + + if (explode) + { + vals.Add($"{key}={Utilities.ToString(val)}"); + } + else + { + vals.Add($"{key},{Utilities.ToString(val)}"); + } + } + + parameters.Add(parentName, string.Join(",", vals)); + } + else if (Utilities.IsList(value)) + { + var vals = new List(); + + foreach (var val in (IEnumerable)value) + { + vals.Add(Utilities.ToString(val)); + } + + parameters.Add(parentName, string.Join(",", vals)); + } + else + { + parameters.Add(parentName, Utilities.ToString(value)); + } + + return parameters; + } + + private static Dictionary> SerializeFormQueryParams( + string parentName, + object value, + bool explode, + string delimiter + ) + { + var parameters = new Dictionary>(); + + if (Utilities.IsClass(value) && !Utilities.IsDate(value)) + { + var props = value.GetType().GetProperties(); + + var items = new List(); + + foreach (var prop in props) + { + var val = prop.GetValue(value); + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetQueryParamMetadata(); + if (metadata == null || metadata.Name == null) + { + continue; + } + + if (explode) + { + if (!parameters.ContainsKey(metadata.Name)) + { + parameters.Add(metadata.Name, new List()); + } + + parameters[metadata.Name].Add( + Utilities.ToString(val) + ); + } + else + { + items.Add( + $"{metadata.Name}{delimiter}{Utilities.ValueToString(val)}" + ); + } + } + + if (items.Count > 0) + { + if (!parameters.ContainsKey(parentName)) + { + parameters.Add(parentName, new List()); + } + + parameters[parentName].Add(string.Join(delimiter, items)); + } + } + else if (Utilities.IsDictionary(value)) + { + var items = new List(); + + foreach (var k in ((IDictionary)value).Keys) + { + var key = k?.ToString(); + + if (key == null) + { + continue; + } + + if (explode) + { + if (!parameters.ContainsKey(key)) + { + parameters.Add(key, new List()); + } + + parameters[key].Add( + Utilities.ValueToString(((IDictionary)value)[key]) + ); + } + else + { + items.Add( + $"{key}{delimiter}{Utilities.ValueToString(((IDictionary)value)[key])}" + ); + } + } + + if (items.Count > 0) + { + if (!parameters.ContainsKey(parentName)) + { + parameters.Add(parentName, new List()); + } + + parameters[parentName].Add(string.Join(delimiter, items)); + } + } + else if (Utilities.IsList(value)) + { + var values = new List(); + var items = new List(); + + foreach (var item in (IList)value) + { + if (explode) + { + values.Add(Utilities.ValueToString(item)); + } + else + { + items.Add(Utilities.ValueToString(item)); + } + } + + if (items.Count > 0) + { + values.Add(string.Join(delimiter, items)); + } + + foreach (var val in values) + { + if (!parameters.ContainsKey(parentName)) + { + parameters.Add(parentName, new List()); + } + + parameters[parentName].Add(val); + } + } + else + { + if (!parameters.ContainsKey(parentName)) + { + parameters.Add(parentName, new List()); + } + + parameters[parentName].Add(Utilities.ValueToString(value)); + } + + return parameters; + } + + private static Dictionary> SerializeDeepObjectQueryParams( + string parentName, + object value + ) + { + var parameters = new Dictionary>(); + + if (Utilities.IsClass(value)) + { + var props = value.GetType().GetProperties(); + + foreach (var prop in props) + { + var val = prop.GetValue(value); + + if (val == null) + { + continue; + } + + var metadata = prop.GetCustomAttribute()?.GetQueryParamMetadata(); + if (metadata == null || metadata.Name == null) + { + continue; + } + + var keyName = $"{parentName}[{metadata.Name}]"; + + if (val != null && Utilities.IsList(val)) + { + foreach (var v in (IList)val) + { + if (!parameters.ContainsKey(keyName)) + { + parameters.Add(keyName, new List()); + } + + parameters[keyName].Add( + Utilities.ValueToString(v) + ); + } + } + else + { + if (!parameters.ContainsKey(keyName)) + { + parameters.Add(keyName, new List()); + } + + parameters[keyName].Add(Utilities.ValueToString(val)); + } + } + } + else if (Utilities.IsDictionary(value)) + { + foreach (var key in ((IDictionary)value).Keys) + { + if (key == null) + { + continue; + } + + var val = ((IDictionary)value)[key]; + + var keyName = $"{parentName}[{key}]"; + + if (val != null && Utilities.IsList(val)) + { + foreach (var v in (IList)val) + { + if (!parameters.ContainsKey(keyName)) + { + parameters.Add(keyName, new List()); + } + + parameters[keyName].Add( + Utilities.ValueToString(v) + ); + } + } + else + { + if (!parameters.ContainsKey(keyName)) + { + parameters.Add(keyName, new List()); + } + + parameters[keyName].Add(Utilities.ValueToString(val)); + } + } + } + + return parameters; + } + } +} diff --git a/csharp-client-sdk/SDK/Utils/Utilities.cs b/csharp-client-sdk/SDK/Utils/Utilities.cs new file mode 100755 index 000000000..75344e72a --- /dev/null +++ b/csharp-client-sdk/SDK/Utils/Utilities.cs @@ -0,0 +1,225 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace SDK.Utils +{ + using System; + using System.Linq; + using System.Net.Http.Headers; + using System.Collections.Generic; + using System.Text.RegularExpressions; + using Newtonsoft.Json; + using NodaTime; + using System.Collections; + + public class Utilities + { + public static string SerializeJSON(object obj) + { + return JsonConvert.SerializeObject( + obj, + new JsonSerializerSettings() + { + NullValueHandling = NullValueHandling.Ignore, + Converters = new JsonConverter[] + { + new IsoDateTimeSerializer(), + new EnumSerializer() + } + } + ); + } + + public static bool IsDictionary(object? o) + { + if (o == null) + return false; + return o is IDictionary + && o.GetType().IsGenericType + && o.GetType().GetGenericTypeDefinition().IsAssignableFrom(typeof(Dictionary<,>)); + } + + public static bool IsList(object? o) + { + if (o == null) + return false; + return o is IList + && o.GetType().IsGenericType + && o.GetType().GetGenericTypeDefinition().IsAssignableFrom(typeof(List<>)); + } + + public static bool IsClass(object? o) + { + if (o == null) + return false; + return o.GetType().IsClass && (o.GetType().FullName ?? "").StartsWith("SDK.Models"); + } + + // TODO: code review polyfilled for IsAssignableTo + public static bool IsSameOrSubclass(Type potentialBase, Type potentialDescendant) + { + return potentialDescendant.IsSubclassOf(potentialBase) + || potentialDescendant == potentialBase; + } + + public static bool IsString(object? obj) + { + if (obj != null) + { + var type = obj.GetType(); + return IsSameOrSubclass(type, typeof(string)); + } + else + { + return false; + } + } + + public static bool IsPrimitive(object obj) => obj != null && obj.GetType().IsPrimitive; + + public static bool IsEnum(object obj) => obj != null && obj.GetType().IsEnum; + + public static bool IsDate(object obj) => + obj != null && (obj.GetType() == typeof(DateTime) || obj.GetType() == typeof(LocalDate)); + + private static string StripSurroundingQuotes(string input) + { + Regex surroundingQuotesRegex = new Regex("^\"(.*)\"$"); + var match = surroundingQuotesRegex.Match(input); + if(match.Groups.Values.Count() == 2) + { + return match.Groups.Values.Last().ToString(); + } + return input; + } + + public static string ValueToString(object? value) + { + if (value == null) + { + return ""; + } + + if (value.GetType() == typeof(DateTime)) + { + return ((DateTime)value) + .ToUniversalTime() + .ToString("o", System.Globalization.CultureInfo.InvariantCulture); + } + else if (value.GetType() == typeof(LocalDate)) + { + return ((LocalDate)value) + .ToDateTimeUnspecified() + .ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture); + } + else if (value.GetType() == typeof(bool)) + { + return (bool)value ? "true" : "false"; + } + else if (IsEnum(value)) + { + var method = Type.GetType(value.GetType().FullName + "Extension") + ?.GetMethod("Value"); + if (method == null) + { + return Convert.ChangeType(value, Enum.GetUnderlyingType(value.GetType()))?.ToString() ?? ""; + } + return (string)(method.Invoke(null, new[] { value }) ?? ""); + } + + return value.ToString() ?? ""; + } + + public static string ToString(object? obj) + { + if (obj == null) + { + return ""; + } + + if (IsString(obj)) + { + return obj.ToString() ?? ""; + } + + if (IsPrimitive(obj)) + { + return JsonConvert.SerializeObject(obj); + } + + if (IsEnum(obj)) + { + var attributes = obj.GetType().GetMember(obj.ToString() ?? "").First().CustomAttributes; + if (attributes.Count() == 0) + { + return JsonConvert.SerializeObject(obj); + } + + var args = attributes.First().ConstructorArguments; + if (args.Count() == 0) + { + return JsonConvert.SerializeObject(obj); + } + return StripSurroundingQuotes(args.First().ToString()); + } + + if (IsDate(obj)) + { + return StripSurroundingQuotes(JsonConvert.SerializeObject(obj, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new IsoDateTimeSerializer(), new EnumSerializer() }})); + } + return JsonConvert.SerializeObject(obj, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new IsoDateTimeSerializer(), new EnumSerializer() }}); + } + + public static bool IsContentTypeMatch(string expected, string? actual) + { + if (actual == null) + { + return false; + } + + if (expected == actual || expected == "*" || expected == "*/*") + { + return true; + } + + try + { + var mediaType = MediaTypeHeaderValue.Parse(actual).MediaType ?? ""; + + if (expected == mediaType) + { + return true; + } + + var parts = mediaType.Split('/'); + if (parts.Length == 2) + { + if (parts[0] + "/*" == expected || "*/" + parts[1] == expected) + { + return true; + } + } + } + catch (Exception) { } + + return false; + } + + public static string PrefixBearer(string authHeaderValue) + { + if (authHeaderValue.StartsWith("bearer ", StringComparison.InvariantCultureIgnoreCase)) + { + return authHeaderValue; + } + + return $"Bearer {authHeaderValue}"; + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/Tests/CommonHelpers.cs b/csharp-client-sdk/Tests/CommonHelpers.cs new file mode 100755 index 000000000..d874430f6 --- /dev/null +++ b/csharp-client-sdk/Tests/CommonHelpers.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System; +using System.Collections.Generic; +using System.IO; + +public class CommonHelpers { + private static object obj = new(); + public static void RecordTest(string id) + { + lock (obj) + { + File.AppendAllLines("test-csharp-record.txt", new List { id }); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/Tests/Tests.csproj b/csharp-client-sdk/Tests/Tests.csproj new file mode 100755 index 000000000..4cabb93cc --- /dev/null +++ b/csharp-client-sdk/Tests/Tests.csproj @@ -0,0 +1,24 @@ + + + + net5.0 + true + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + \ No newline at end of file diff --git a/csharp-client-sdk/TestsCommon/CommonHelpers.cs b/csharp-client-sdk/TestsCommon/CommonHelpers.cs new file mode 100755 index 000000000..d874430f6 --- /dev/null +++ b/csharp-client-sdk/TestsCommon/CommonHelpers.cs @@ -0,0 +1,23 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System; +using System.Collections.Generic; +using System.IO; + +public class CommonHelpers { + private static object obj = new(); + public static void RecordTest(string id) + { + lock (obj) + { + File.AppendAllLines("test-csharp-record.txt", new List { id }); + } + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsCommon/Tests.csproj b/csharp-client-sdk/TestsCommon/Tests.csproj new file mode 100755 index 000000000..4cabb93cc --- /dev/null +++ b/csharp-client-sdk/TestsCommon/Tests.csproj @@ -0,0 +1,24 @@ + + + + net5.0 + true + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/AuthShould.cs b/csharp-client-sdk/TestsPrimary/AuthShould.cs new file mode 100755 index 000000000..9057a4a29 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/AuthShould.cs @@ -0,0 +1,487 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using System.Collections.Generic; +using System.Threading.Tasks; + +public class AuthShould +{ + [Fact] + public async Task BasicAuth() + { + CommonHelpers.RecordTest("auth-basic-auth"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.BasicAuthNewAsync( + new BasicAuthNewSecurity() { Username = "testUser", Password = "testPass" }, + new AuthServiceRequestBody() + { + BasicAuth = new AuthServiceRequestBodyBasicAuth() + { + Username = "testUser", + Password = "testPass" + } + } + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task ApiKeyAuthGlobal() + { + CommonHelpers.RecordTest("auth-api-key-auth-global"); + + var sdk = new SDKSDK(security: new Security() { ApiKeyAuthNew = "test_api_key" }); + + var res = await sdk.AuthNew.ApiKeyAuthGlobalNewAsync( + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + ExpectedValue = "test_api_key", + HeaderName = "x-api-key" + } + } + } + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task ApiKeyAuthOperation() + { + CommonHelpers.RecordTest("auth-api-key-auth-operation"); + + var sdk = new SDKSDK(); + + var res = await sdk.Auth.ApiKeyAuthAsync( + new ApiKeyAuthSecurity() { ApiKeyAuth = "Bearer testToken" } + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + Assert.True(res.Token.Authenticated); + Assert.Equal("testToken", res.Token.Token); + } + + [Fact] + public async Task BearerAuthOperationWithPrefix() + { + CommonHelpers.RecordTest("auth-bearer-auth-operation-with-prefix"); + + var sdk = new SDKSDK(); + + var res = await sdk.Auth.BearerAuthAsync( + new BearerAuthSecurity() { BearerAuth = "Bearer testToken" } + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + Assert.True(res.Token.Authenticated); + Assert.Equal("testToken", res.Token.Token); + } + + [Fact] + public async Task BearerAuthOperationWithoutPrefix() + { + CommonHelpers.RecordTest("auth-bearer-auth-operation-without-prefix"); + + var sdk = new SDKSDK(); + + var res = await sdk.Auth.BearerAuthAsync( + new BearerAuthSecurity() { BearerAuth = "testToken" } + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + Assert.True(res.Token.Authenticated); + Assert.Equal("testToken", res.Token.Token); + } + + [Fact] + public async Task Oauth2Auth() + { + CommonHelpers.RecordTest("auth-oauth2-auth"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.Oauth2AuthNewAsync( + new Oauth2AuthNewSecurity() { Oauth2 = "Bearer testToken" }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task OpenIdConnectAuth() + { + CommonHelpers.RecordTest("auth-open-id-connect-auth"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.OpenIdConnectAuthNewAsync( + new OpenIdConnectAuthNewSecurity() { OpenIdConnect = "Bearer testToken" }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleSimpleSchemeAuth() + { + CommonHelpers.RecordTest("auth-multiple-simple-scheme-auth"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleSimpleSchemeAuthAsync( + new MultipleSimpleSchemeAuthSecurity() + { + ApiKeyAuthNew = "test_api_key", + Oauth2 = "Bearer testToken" + }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + }, + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleMixedSchemeAuth() + { + CommonHelpers.RecordTest("auth-multiple-mixed-scheme-auth"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleMixedSchemeAuthAsync( + new MultipleMixedSchemeAuthSecurity() + { + ApiKeyAuthNew = "test_api_key", + BasicAuth = new SchemeBasicAuth() { Username = "testUser", Password = "testPass" } + }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + } + }, + BasicAuth = new AuthServiceRequestBodyBasicAuth() + { + Username = "testUser", + Password = "testPass" + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleSimpleOptionsAuthFirstOption() + { + CommonHelpers.RecordTest("auth-multiple-simple-options-auth-first-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleSimpleOptionsAuthAsync( + new MultipleSimpleOptionsAuthSecurity { ApiKeyAuthNew = "test_api_key" }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleSimpleOptionsAuthSecondOption() + { + CommonHelpers.RecordTest("auth-multiple-simple-options-auth-second-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleSimpleOptionsAuthAsync( + new MultipleSimpleOptionsAuthSecurity { Oauth2 = "Bearer testToken" }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleMixedOptionsAuthFirstOption() + { + CommonHelpers.RecordTest("auth-multiple-mixed-options-auth-first-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleMixedOptionsAuthAsync( + new MultipleMixedOptionsAuthSecurity() { ApiKeyAuthNew = "test_api_key" }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleMixedOptionsAuthSecondOption() + { + CommonHelpers.RecordTest("auth-multiple-mixed-options-auth-second-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleMixedOptionsAuthAsync( + new MultipleMixedOptionsAuthSecurity() + { + BasicAuth = new SchemeBasicAuth() { Username = "testUser", Password = "testPass" } + }, + new AuthServiceRequestBody() + { + BasicAuth = new AuthServiceRequestBodyBasicAuth() + { + Username = "testUser", + Password = "testPass" + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleOptionsWithSimpleSchemesAuthFirstOption() + { + CommonHelpers.RecordTest("auth-multiple-options-with-simple-schemes-auth-first-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleOptionsWithSimpleSchemesAuthAsync( + new MultipleOptionsWithSimpleSchemesAuthSecurity() + { + Option1 = new MultipleOptionsWithSimpleSchemesAuthSecurityOption1() + { + ApiKeyAuthNew = "test_api_key", + Oauth2 = "Bearer testToken" + } + }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + }, + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleOptionsWithSimpleSchemesAuthSecondOption() + { + CommonHelpers.RecordTest("auth-multiple-options-with-simple-schemes-auth-second-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleOptionsWithSimpleSchemesAuthAsync( + new MultipleOptionsWithSimpleSchemesAuthSecurity() + { + Option2 = new MultipleOptionsWithSimpleSchemesAuthSecurityOption2() + { + ApiKeyAuthNew = "test_api_key", + OpenIdConnect = "Bearer testToken" + } + }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + }, + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleOptionsWithMixedSchemesAuthFirstOption() + { + CommonHelpers.RecordTest("auth-multiple-options-with-mixed-schemes-auth-first-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleOptionsWithMixedSchemesAuthAsync( + new MultipleOptionsWithMixedSchemesAuthSecurity() + { + Option1 = new MultipleOptionsWithMixedSchemesAuthSecurityOption1() + { + ApiKeyAuthNew = "test_api_key", + Oauth2 = "Bearer testToken" + } + }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + }, + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "Authorization", + ExpectedValue = "Bearer testToken" + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task MultipleOptionsWithMixedSchemesAuthSecondOption() + { + CommonHelpers.RecordTest("auth-multiple-options-with-mixed-schemes-auth-second-option"); + + var sdk = new SDKSDK(); + + var res = await sdk.AuthNew.MultipleOptionsWithMixedSchemesAuthAsync( + new MultipleOptionsWithMixedSchemesAuthSecurity() + { + Option2 = new MultipleOptionsWithMixedSchemesAuthSecurityOption2() + { + ApiKeyAuthNew = "test_api_key", + BasicAuth = new SchemeBasicAuth() + { + Username = "testUser", + Password = "testPass" + } + } + }, + new AuthServiceRequestBody() + { + HeaderAuth = new List() + { + new AuthServiceRequestBodyHeaderAuth() + { + HeaderName = "x-api-key", + ExpectedValue = "test_api_key" + } + }, + BasicAuth = new AuthServiceRequestBodyBasicAuth() + { + Username = "testUser", + Password = "testPass" + } + } + ); + + Assert.Equal(200, res.StatusCode); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/FlatteningShould.cs b/csharp-client-sdk/TestsPrimary/FlatteningShould.cs new file mode 100755 index 000000000..e221e17fc --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/FlatteningShould.cs @@ -0,0 +1,100 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using SDK.Models.Operations; +using System.Threading.Tasks; + +public class FlatteningShould +{ + [Fact] + public async Task ComponentBodyAndParamNoConflict() + { + CommonHelpers.RecordTest("flattening-component-body-and-param-no-conflict"); + + var sdk = new SDKSDK(); + + var res = await sdk.Flattening.ComponentBodyAndParamNoConflictAsync( + "param test", + Helpers.CreateSimpleObject() + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + Assert.Equal("param test", res.Res.Args["paramStr"]); + Helpers.AssertSimpleObject(res.Res.Json); + } + + [Fact] + public async Task ComponentBodyAndParamConflict() + { + CommonHelpers.RecordTest("flattening-component-body-and-param-conflict"); + + var sdk = new SDKSDK(); + + var res = await sdk.Flattening.ComponentBodyAndParamConflictAsync( + Helpers.CreateSimpleObject(), + "param test" + ); + + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + Assert.Equal("param test", res.Res.Args["str"]); + Helpers.AssertSimpleObject(res.Res.Json); + } + + [Fact] + public async Task InlineBodyAndParamConflict() + { + CommonHelpers.RecordTest("flattening-inline-body-and-param-conflict"); + + var sdk = new SDKSDK(); + + var res = await sdk.Flattening.InlineBodyAndParamConflictAsync( + new InlineBodyAndParamConflictRequestBody() { Str = "body test" }, + "param test" + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("param test", res.Res.Args["str"]); + Assert.Equal("body test", res.Res.Json.Str); + } + + [Fact] + public async Task InlineBodyAndParamNoConflict() + { + CommonHelpers.RecordTest("flattening-inline-body-and-param-no-conflict"); + + var sdk = new SDKSDK(); + + var res = await sdk.Flattening.InlineBodyAndParamNoConflictAsync( + new InlineBodyAndParamNoConflictRequestBody() { BodyStr = "body test" }, + "param test" + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("param test", res.Res.Args["paramStr"]); + Assert.Equal("body test", res.Res.Json.BodyStr); + } + + [Fact] + public async Task ConflictingParams() + { + CommonHelpers.RecordTest("flattening-conflicting-params"); + + var sdk = new SDKSDK(); + + var res = await sdk.Flattening.ConflictingParamsAsync("pathParam", "queryParam"); + + Assert.Equal(200, res.StatusCode); + Assert.Contains("/pathParam?", res.Res.Url); + Assert.Equal("queryParam", res.Res.Args["str"]); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/GlobalsShould.cs b/csharp-client-sdk/TestsPrimary/GlobalsShould.cs new file mode 100755 index 000000000..935f93983 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/GlobalsShould.cs @@ -0,0 +1,67 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using System.Threading.Tasks; + +public class GlobalsShould +{ + [Fact] + public async Task GlobalsQueryParameterGetUsesGlobal() + { + CommonHelpers.RecordTest("globals-query-parameter-get-uses-global"); + + var sdk = new SDKSDK(globalQueryParam: "test"); + + var res = await sdk.Globals.GlobalsQueryParameterGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("test", res.Res.Args.GlobalQueryParam); + } + + [Fact] + public async Task GlobalsQueryParameterGetUsesLocal() + { + CommonHelpers.RecordTest("globals-query-parameter-get-uses-local"); + + var sdk = new SDKSDK(globalQueryParam: "test"); + + var res = await sdk.Globals.GlobalsQueryParameterGetAsync("local"); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("local", res.Res.Args.GlobalQueryParam); + } + + [Fact] + public async Task GlobalPathParameterGetUsesGlobal() + { + CommonHelpers.RecordTest("globals-path-parameter-get-uses-global"); + + var sdk = new SDKSDK(globalPathParam: 1); + + var res = await sdk.Globals.GlobalPathParameterGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("http://localhost:35123/anything/globals/pathParameter/1", res.Res.Url); + } + + [Fact] + public async Task GlobalPathParameterGetUsesLocal() + { + CommonHelpers.RecordTest("globals-path-parameter-get-uses-local"); + + var sdk = new SDKSDK(globalPathParam: 1); + + var res = await sdk.Globals.GlobalPathParameterGetAsync(2); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("http://localhost:35123/anything/globals/pathParameter/2", res.Res.Url); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/Helpers.cs b/csharp-client-sdk/TestsPrimary/Helpers.cs new file mode 100755 index 000000000..2dbd7bc16 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/Helpers.cs @@ -0,0 +1,169 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using Newtonsoft.Json; +using Xunit; +using SDK.Models.Shared; +using SDK.Utils; +using NodaTime; + +public class Helpers +{ + public static SimpleObject CreateSimpleObject() => + new SimpleObject() + { + Any = "any", + Bool = true, + BoolOpt = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.0000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int32 = 1, + Int32Enum = SimpleObjectInt32Enum.FiftyFive, + IntEnum = SimpleObjectIntEnum.Two, + IntOptNull = null, + Int = 1, + Num = 1.1D, + NumOptNull = null, + Str = "test", + StrOpt = "testOptional" + }; + + public static void AssertSimpleObject(SimpleObject a) + { + var e = CreateSimpleObject(); + Assert.Equal(e.Any, a.Any); + Assert.Equal(e.Bool, a.Bool); + Assert.Equal(e.BoolOpt, a.BoolOpt); + Assert.Equal(e.Date, a.Date); + Assert.Equal(e.DateTime.ToUniversalTime(), a.DateTime.ToUniversalTime()); + Assert.Equal(e.Enum, a.Enum); + Assert.Equal(e.Float32, a.Float32); + Assert.Equal(e.Int32, a.Int32); + Assert.Equal(e.IntOptNull, a.IntOptNull); + Assert.Equal(e.Int, a.Int); + Assert.Equal(e.Num, a.Num); + Assert.Equal(e.NumOptNull, a.NumOptNull); + Assert.Equal(e.Str, a.Str); + Assert.Equal(e.StrOpt, a.StrOpt); + } + + public static SimpleObjectCamelCase CreateSimpleObjectCamelCase() => + new SimpleObjectCamelCase() + { + AnyVal = "any", + BoolVal = true, + BoolOptVal = true, + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00.0000001Z"), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 1.1F, + Int32Val = 1, + Int32EnumVal = SimpleObjectCamelCaseInt32EnumVal.FiftyFive, + IntEnumVal = SimpleObjectCamelCaseIntEnumVal.Two, + IntOptNullVal = null, + IntVal = 1, + NumVal = 1.1D, + NumOptNullVal = null, + StrVal = "test", + StrOptVal = "test_optional" + }; + + public static void AssertSimpleObjectCamelCase(SimpleObjectCamelCase a) + { + var e = CreateSimpleObjectCamelCase(); + Assert.Equal(e.AnyVal, a.AnyVal); + Assert.Equal(e.BoolVal, a.BoolVal); + Assert.Equal(e.BoolOptVal, a.BoolOptVal); + Assert.Equal(e.DateVal, a.DateVal); + Assert.Equal(e.DateTimeVal.ToUniversalTime(), a.DateTimeVal.ToUniversalTime()); + Assert.Equal(e.EnumVal, a.EnumVal); + Assert.Equal(e.Float32Val, a.Float32Val); + Assert.Equal(e.Int32Val, a.Int32Val); + Assert.Null(a.IntOptNullVal); + Assert.Equal(e.IntVal, a.IntVal); + Assert.Equal(e.NumVal, a.NumVal); + Assert.Null(a.NumOptNullVal); + Assert.Equal(e.StrVal, a.StrVal); + Assert.Equal(e.StrOptVal, a.StrOptVal); + } + + public static DeepObject CreateDeepObject() => + new DeepObject() + { + Any = CreateSimpleObject(), + Arr = new List() { CreateSimpleObject(), CreateSimpleObject() }, + Bool = true, + Int = 1, + Map = new Dictionary() { { "key", CreateSimpleObject() } }, + Num = 1.1D, + Obj = CreateSimpleObject(), + Str = "test" + }; + + public static byte[] GetData() => + Encoding.Unicode.GetBytes( + "{\r \"some\": \"json\",\r \"to\": \"be\",\r \"uploaded\": \"in\",\r \"a\": \"file\"\r}\r" + ); + + public static void AssertDeepObject(DeepObject a) + { + // because Any is object, the field-names + // aren't deserialized to match SimpleObject, so + // a.Any cannot be cast to Simple object in the + // standard way. + var json = JsonConvert.SerializeObject( + a.Any, + new JsonSerializerSettings() + { + NullValueHandling = NullValueHandling.Ignore, + Converters = new JsonConverter[] + { + new FlexibleObjectDeserializer(), + new IsoDateTimeSerializer(), + new EnumSerializer() + } + } + ); + var any = JsonConvert.DeserializeObject( + json, + new JsonSerializerSettings() + { + NullValueHandling = NullValueHandling.Ignore, + Converters = new JsonConverter[] + { + new FlexibleObjectDeserializer(), + new IsoDateTimeSerializer(), + new EnumSerializer() + } + } + ); + AssertSimpleObject(any); + + Assert.Equal(2, a.Arr.Count()); + AssertSimpleObject(a.Arr.ToList().First()); + AssertSimpleObject(a.Arr.ToList().Last()); + + Assert.True(a.Bool); + Assert.Equal(1, a.Int); + + Assert.Single(a.Map); + AssertSimpleObject(a.Map["key"]); + + Assert.Equal(1.1D, a.Num); + AssertSimpleObject(a.Obj); + Assert.Equal("test", a.Str); + } +} diff --git a/csharp-client-sdk/TestsPrimary/MultiLevelShould.cs b/csharp-client-sdk/TestsPrimary/MultiLevelShould.cs new file mode 100755 index 000000000..231489f11 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/MultiLevelShould.cs @@ -0,0 +1,31 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; +using System.Threading.Tasks; +using System.Text.RegularExpressions; +using Xunit; +using SDK; + +public class MultiLevelShould +{ + [Fact] + public async Task MultiLevelTest() + { + CommonHelpers.RecordTest("multi-level-grouping"); + var sdk = new SDKSDK(); + + var res = await sdk.Nested.First.GetAsync(); + + Assert.Equal(200, res.StatusCode); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/PaginationShould.cs b/csharp-client-sdk/TestsPrimary/PaginationShould.cs new file mode 100755 index 000000000..94e48341b --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/PaginationShould.cs @@ -0,0 +1,165 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using SDK.Models.Shared; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using SDK.Models.Operations; + +public class PaginationShould +{ + [Fact] + public async Task PaginationLimitOffsetPageParams() + { + CommonHelpers.RecordTest("pagination-limitOffset-page-params"); + var sdk = new SDKSDK(); + + var serverLimit = 20; + + var res = await sdk.Pagination.PaginationLimitOffsetPageParamsAsync(page: 1); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(res.Res.ResultArray.Count(), serverLimit); + + var nextRes = await res.Next(); + Assert.Equal(200, nextRes.StatusCode); + Assert.NotNull(nextRes.Res); + Assert.Equal(nextRes.Res.ResultArray.Count(), 0); + + var nullRes = await nextRes.Next(); + Assert.Null(nullRes); + } + + [Fact] + public async Task PaginationLimitOffsetPageBody() + { + CommonHelpers.RecordTest("pagination-limitOffset-page-body"); + var sdk = new SDKSDK(); + var limit = 15; + + var res = await sdk.Pagination.PaginationLimitOffsetPageBodyAsync(request: new LimitOffsetConfig{Page = 1, Limit = limit}); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(res.Res.ResultArray.Count(), limit); + + var nextRes = await res.Next(); + Assert.Equal(200, nextRes.StatusCode); + Assert.NotNull(nextRes.Res); + Assert.True(nextRes.Res.ResultArray.Count() < limit, "result count is expected to be less than the limit"); + + var nullRes = await nextRes.Next(); + Assert.Null(nullRes); + } + + [Fact] + public async Task PaginationLimitOffsetOffsetParams() + { + CommonHelpers.RecordTest("pagination-limitOffset-offset-params"); + var sdk = new SDKSDK(); + var limit = 15; + + var res = await sdk.Pagination.PaginationLimitOffsetOffsetParamsAsync(limit: limit, offset: 0); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(res.Res.ResultArray.Count(), limit); + + var nextRes = await res.Next(); + Assert.Equal(200, nextRes.StatusCode); + Assert.NotNull(nextRes.Res); + Assert.True(nextRes.Res.ResultArray.Count() < limit, "result count is expected to be less than the limit"); + + var nullRes = await nextRes.Next(); + Assert.Null(nullRes); + } + + [Fact] + public async Task PaginationLimitOffsetOffsetBody() + { + CommonHelpers.RecordTest("pagination-limitOffset-offset-body"); + var sdk = new SDKSDK(); + var limit = 15; + + var res = await sdk.Pagination.PaginationLimitOffsetOffsetBodyAsync(request: new LimitOffsetConfig{Limit = limit, Offset = 0}); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(res.Res.ResultArray.Count(), limit); + + var nextRes = await res.Next(); + Assert.Equal(200, nextRes.StatusCode); + Assert.NotNull(nextRes.Res); + Assert.True(nextRes.Res.ResultArray.Count() < limit, "result count is expected to be less than the limit"); + + var nullRes = await nextRes.Next(); + Assert.Null(nullRes); + } + + [Fact] + public async Task PaginationCursorParams() + { + CommonHelpers.RecordTest("pagination-cursor-params"); + var sdk = new SDKSDK(); + var limit = 15; + + var res = await sdk.Pagination.PaginationCursorParamsAsync(cursor: -1); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(res.Res.ResultArray.Count(), limit); + + var nextRes = await res.Next(); + Assert.Equal(200, nextRes.StatusCode); + Assert.NotNull(nextRes.Res); + Assert.True(nextRes.Res.ResultArray.Count() < limit, "result count is expected to be less than the limit"); + + var penultimateRes = await nextRes.Next(); + Assert.Equal(200, penultimateRes.StatusCode); + Assert.NotNull(penultimateRes.Res); + Assert.Equal(penultimateRes.Res.ResultArray.Count(), 0); + + + var nullRes = await penultimateRes.Next(); + Assert.Null(nullRes); + } + + [Fact] + public async Task PaginationCursorBody() + { + CommonHelpers.RecordTest("pagination-cursor-body"); + var sdk = new SDKSDK(); + var limit = 15; + + var res = await sdk.Pagination.PaginationCursorBodyAsync(request: new PaginationCursorBodyRequestBody{Cursor = -1}); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(res.Res.ResultArray.Count(), limit); + + var nextRes = await res.Next(); + Assert.Equal(200, nextRes.StatusCode); + Assert.NotNull(nextRes.Res); + Assert.True(nextRes.Res.ResultArray.Count() < limit, "result count is expected to be less than the limit"); + + var penultimateRes = await nextRes.Next(); + Assert.Equal(200, penultimateRes.StatusCode); + Assert.NotNull(penultimateRes.Res); + Assert.Equal(penultimateRes.Res.ResultArray.Count(), 0); + + + var nullRes = await penultimateRes.Next(); + Assert.Null(nullRes); + } + +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/ParametersShould.cs b/csharp-client-sdk/TestsPrimary/ParametersShould.cs new file mode 100755 index 000000000..c5896a860 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/ParametersShould.cs @@ -0,0 +1,467 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using SDK.Models.Shared; +using System.Collections.Generic; +using System.Threading.Tasks; +using SDK.Models.Operations; + +public class ParametersShould +{ + [Fact] + public async Task MixedParameters() + { + CommonHelpers.RecordTest("parameters-mixed-primitives"); + + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.MixedParametersPrimitivesAsync( + "headerValue", + "pathValue", + "queryValue" + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + Assert.Equal("headerValue", res.Res.Headers.Headerparam); + Assert.Equal("queryValue", res.Res.Args.QueryStringParam); + } + + [Fact] + public async Task CamelCase() + { + CommonHelpers.RecordTest("parameters-camel-case"); + + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.MixedParametersCamelCaseAsync( + "headerValue", + "pathValue", + "queryValue" + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/mixedParams/path/pathValue/camelcase?query_string_param=queryValue", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + Assert.Equal("headerValue", res.Res.Headers.HeaderParam); + Assert.Equal("queryValue", res.Res.Args.QueryStringParam); + } + + [Fact] + public async Task SimplePathParameterPrimitives() + { + CommonHelpers.RecordTest("parameters-simple-path-parameter-primitives"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.SimplePathParameterPrimitivesAsync(true, 1, 1.1D, "test"); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task SimplePathParameterObjects() + { + CommonHelpers.RecordTest("parameters-simple-path-parameter-objects"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.SimplePathParameterObjectsAsync( + Helpers.CreateSimpleObject(), + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/pathParams/obj/any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.0000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional/objExploded/any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.0000001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task SimplePathParameterArrays() + { + CommonHelpers.RecordTest("parameters-simple-path-parameter-arrays"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.SimplePathParameterArraysAsync( + new List() { "test", "test2" } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/pathParams/arr/test,test2", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task SimplePathParameterMaps() + { + CommonHelpers.RecordTest("parameters-simple-path-parameter-maps"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.SimplePathParameterMapsAsync( + new Dictionary() { { "test", "value" }, { "test2", "value2" } }, + new Dictionary() { { "test", 1 }, { "test2", 2 } } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task PathParameterJson() + { + CommonHelpers.RecordTest("parameters-path-parameter-json"); + + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.PathParameterJsonAsync(Helpers.CreateSimpleObject()); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/pathParams/json/{\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"}", + res.Res.Url + ); + } + + [Fact] + public async Task FormQueryParamsPrimitive() + { + CommonHelpers.RecordTest("parameters-form-query-params-primitive"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.FormQueryParamsPrimitiveAsync(true, 1, 1.1D, "test"); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/form/primitive?boolParam=true&intParam=1&numParam=1.1&strParam=test", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task FormQueryParamsObject() + { + CommonHelpers.RecordTest("parameters-form-query-params-object"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.FormQueryParamsObjectAsync( + Helpers.CreateSimpleObject(), + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/form/obj?any=any&bool=true&date=2020-01-01&dateTime=2020-01-01T00:00:00.0000001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&str=test&boolOpt=true&strOpt=testOptional&objParam=any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.0000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task FormQueryParamsArray() + { + CommonHelpers.RecordTest("parameters-form-query-params-array"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.FormQueryParamsArrayAsync( + new List() { "test", "test2" }, + new List() { 1, 2 } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/form/array?arrParam=test,test2&arrParamExploded=1&arrParamExploded=2", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + Assert.Equal("test,test2", res.Res.Args.ArrParam); + Assert.Equal(new List() { "1", "2" }, res.Res.Args.ArrParamExploded); + } + + [Fact] + public async Task PipeDelimitedQueryParamsArray() + { + CommonHelpers.RecordTest("parameters-pipe-query-params-array"); + + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.PipeDelimitedQueryParamsArrayAsync( + new List() { "test", "test2" }, + new List { 1, 2 }, + new Dictionary() { { "key1", "val1" }, { "key2", "val2" } }, + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/pipe/array?arrParam=test|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1|val1|key2|val2&objParam=any|any|bool|true|date|2020-01-01|dateTime|2020-01-01T00:00:00.0000001Z|enum|one|float32|1.1|int|1|int32|1|int32Enum|55|intEnum|2|num|1.1|str|test|boolOpt|true|strOpt|testOptional", + res.Res.Url + ); + Assert.Equal("test|test2", res.Res.Args.ArrParam); + Assert.Equal(new List() { "1", "2" }, res.Res.Args.ArrParamExploded); + } + + [Fact] + public async Task FormQueryParamsMap() + { + CommonHelpers.RecordTest("parameters-form-query-params-map"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.FormQueryParamsMapAsync( + new Dictionary() { { "test", "value" }, { "test2", "value2" } }, + new Dictionary() { { "test", 1 }, { "test2", 2 } } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/form/map?mapParam=test,value,test2,value2&test=1&test2=2", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + Assert.Equal( + new Dictionary() + { + { "mapParam", "test,value,test2,value2" }, + { "test", "1" }, + { "test2", "2" } + }, + res.Res.Args + ); + } + + [Fact] + public async Task FormQueryParamsRefParamObject() + { + CommonHelpers.RecordTest("parameters-form-query-params-ref-param-object"); + + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.FormQueryParamsRefParamObjectAsync( + new RefQueryParamObj() + { + Bool = true, + Int = 1, + Num = 1.1D, + Str = "test" + }, + new RefQueryParamObjExploded() + { + Bool = true, + Int = 1, + Num = 1.1D, + Str = "test" + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/form/refParamObject?refObjParam=bool,true,int,1,num,1.1,str,test&bool=true&int=1&num=1.1&str=test", + res.Res.Url + ); + Assert.Equal("true", res.Res.Args.Bool); + Assert.Equal("1", res.Res.Args.Int); + Assert.Equal("1.1", res.Res.Args.Num); + Assert.Equal("test", res.Res.Args.Str); + Assert.Equal("bool,true,int,1,num,1.1,str,test", res.Res.Args.RefObjParam); + } + + [Fact] + public async Task DeepObjectQueryParamsObject() + { + CommonHelpers.RecordTest("parameters-deep-object-query-params-object"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.DeepObjectQueryParamsObjectAsync( + Helpers.CreateSimpleObject(), + new DeepObjectQueryParamsObjectObjArrParam() + { + Arr = new List { "test", "test2" } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/deepObject/obj?objParam[any]=any&objParam[bool]=true&objParam[date]=2020-01-01&objParam[dateTime]=2020-01-01T00:00:00.0000001Z&objParam[enum]=one&objParam[float32]=1.1&objParam[int]=1&objParam[int32]=1&objParam[int32Enum]=55&objParam[intEnum]=2&objParam[num]=1.1&objParam[str]=test&objParam[boolOpt]=true&objParam[strOpt]=testOptional&objArrParam[arr]=test&objArrParam[arr]=test2", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + Assert.Equal(new string[] { "test", "test2" }, res.Res.Args.ObjArrParamArr); + Assert.Equal("any", res.Res.Args.ObjParamAny); + Assert.Equal("true", res.Res.Args.ObjParamBool); + Assert.Equal("true", res.Res.Args.ObjParamBoolOpt); + Assert.Equal("2020-01-01", res.Res.Args.ObjParamDate); + Assert.Equal("2020-01-01T00:00:00.0000001Z", res.Res.Args.ObjParamDateTime); + Assert.Equal("one", res.Res.Args.ObjParamEnum); + Assert.Equal("1.1", res.Res.Args.ObjParamFloat32); + Assert.Equal("1", res.Res.Args.ObjParamInt32); + Assert.Equal("1", res.Res.Args.ObjParamInt); + Assert.Equal("1.1", res.Res.Args.ObjParamNum); + Assert.Equal("test", res.Res.Args.ObjParamStr); + Assert.Equal("testOptional", res.Res.Args.ObjParamStrOpt); + } + + [Fact] + public async Task DeepObjectQueryParamsMap() + { + CommonHelpers.RecordTest("parameters-deep-object-query-params-map"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.DeepObjectQueryParamsMapAsync( + new Dictionary() { { "test", "value" }, { "test2", "value2" } }, + new Dictionary>() + { + { + "test", + new List() { "value", "value2" } + }, + { + "test2", + new List() { "value3", "value4" } + } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/deepObject/map?mapParam[test]=value&mapParam[test2]=value2&mapArrParam[test]=value&mapArrParam[test]=value2&mapArrParam[test2]=value3&mapArrParam[test2]=value4", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + Assert.Equal( + new Dictionary() + { + { + "mapArrParam[test2]", + new List() { "value3", "value4" } + }, + { + "mapArrParam[test]", + new List() { "value", "value2" } + }, + { "mapParam[test2]", "value2" }, + { "mapParam[test]", "value" } + }, + res.Res.Args + ); + } + + [Fact] + public async Task JsonQueryParamsObject() + { + CommonHelpers.RecordTest("parameters-json-query-params-object"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.JsonQueryParamsObjectAsync( + Helpers.CreateDeepObject(), + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/json/obj?deepObjParam={\"any\":{\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"},\"arr\":[{\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"},{\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"}],\"bool\":true,\"int\":1,\"map\":{\"key\":{\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"}},\"num\":1.1,\"obj\":{\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"},\"str\":\"test\"}&simpleObjParam={\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"}", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task MixedQueryParams() + { + CommonHelpers.RecordTest("parameters-mixed-query-params"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.MixedQueryParamsAsync( + Helpers.CreateSimpleObject(), + Helpers.CreateSimpleObject(), + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "http://localhost:35123/anything/queryParams/mixed?deepObjectParam[any]=any&deepObjectParam[bool]=true&deepObjectParam[date]=2020-01-01&deepObjectParam[dateTime]=2020-01-01T00:00:00.0000001Z&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int]=1&deepObjectParam[int32]=1&deepObjectParam[int32Enum]=55&deepObjectParam[intEnum]=2&deepObjectParam[num]=1.1&deepObjectParam[str]=test&deepObjectParam[boolOpt]=true&deepObjectParam[strOpt]=testOptional&any=any&bool=true&date=2020-01-01&dateTime=2020-01-01T00:00:00.0000001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&str=test&boolOpt=true&strOpt=testOptional&jsonParam={\"any\":\"any\",\"bool\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.0000001Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"boolOpt\":true,\"strOpt\":\"testOptional\"}", + res.RawResponse.RequestMessage.RequestUri.ToString() + ); + } + + [Fact] + public async Task HeaderParamsPrimitive() + { + CommonHelpers.RecordTest("parameters-header-params-primitive"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.HeaderParamsPrimitiveAsync(true, 1, 1.1D, "test"); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("true", res.Res.Headers.XHeaderBoolean); + Assert.Equal("1", res.Res.Headers.XHeaderInteger); + Assert.Equal("1.1", res.Res.Headers.XHeaderNumber); + Assert.Equal("test", res.Res.Headers.XHeaderString); + } + + [Fact] + public async Task HeaderParamsObject() + { + CommonHelpers.RecordTest("parameters-header-params-object"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.HeaderParamsObjectAsync( + Helpers.CreateSimpleObject(), + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.0000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional", + res.Res.Headers.XHeaderObj + ); + Assert.Equal( + "any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.0000001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional", + res.Res.Headers.XHeaderObjExplode + ); + } + + [Fact] + public async Task HeaderParamsMap() + { + CommonHelpers.RecordTest("parameters-header-params-map"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.HeaderParamsMapAsync( + new Dictionary() { { "key1", "value1" }, { "key2", "value2" } }, + new Dictionary() { { "test1", "val1" }, { "test2", "val2" } } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("key1,value1,key2,value2", res.Res.Headers.XHeaderMap); + Assert.Equal("test1=val1,test2=val2", res.Res.Headers.XHeaderMapExplode); + } + + [Fact] + public async Task HeaderParamsArray() + { + CommonHelpers.RecordTest("parameters-header-params-array"); + var sdk = new SDKSDK(); + + var res = await sdk.Parameters.HeaderParamsArrayAsync( + new List { "test1", "test2" } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("test1,test2", res.Res.Headers.XHeaderArray); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/RequestBodiesShould.cs b/csharp-client-sdk/TestsPrimary/RequestBodiesShould.cs new file mode 100755 index 000000000..549fae79f --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/RequestBodiesShould.cs @@ -0,0 +1,910 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; +using System.Threading.Tasks; +using System.Text.RegularExpressions; +using Xunit; +using SDK; +using SDK.Models.Shared; +using SDK.Utils; +using SDK.Models.Operations; + +public class RequestBodiesShould +{ + [Fact] + public async Task PostApplicationJsonSimple() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-simple"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonSimpleAsync( + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Helpers.AssertSimpleObject(res.Res.Json); + } + + [Fact] + public async Task PostApplicationJsonArray() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-array"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayAsync( + new List() { Helpers.CreateSimpleObject(), Helpers.CreateSimpleObject() } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.SimpleObjects.Count()); + foreach (var obj in res.SimpleObjects) + { + Helpers.AssertSimpleObject(obj); + } + } + + [Fact] + public async Task PostApplicationJsonArrayOfArray() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-array-of-array"); + var sdk = new SDKSDK(); + + var obj = Helpers.CreateSimpleObject(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfArrayAsync( + new List> + { + new List() { obj, obj }, + new List() { obj, obj } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Arrs.Count()); + Assert.Equal(2, res.Arrs.ToList()[0].Count()); + Assert.Equal(2, res.Arrs.ToList()[1].Count()); + + for (var i = 0; i < 2; i++) + { + for (var j = 0; j < 2; j++) + { + Helpers.AssertSimpleObject(res.Arrs.ToList()[i].ToList()[j]); + } + } + } + + [Fact] + public async Task PostApplicationJsonMap() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-map"); + var sdk = new SDKSDK(); + + var obj = Helpers.CreateSimpleObject(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapAsync( + new Dictionary() { { "mapElem1", obj }, { "mapElem2", obj } } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Res.Count()); + Helpers.AssertSimpleObject(res.Res["mapElem1"]); + Helpers.AssertSimpleObject(res.Res["mapElem2"]); + } + + [Fact] + public async Task PostApplicationJsonMapOfMap() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-map-of-map"); + var sdk = new SDKSDK(); + + var obj = Helpers.CreateSimpleObject(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfMapAsync( + new Dictionary>() + { + { + "mapElem1", + new Dictionary() + { + { "subMapElem1", obj }, + { "subMapElem2", obj } + } + }, + { + "mapElem2", + new Dictionary() + { + { "subMapElem1", obj }, + { "subMapElem2", obj } + } + }, + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Res.Count()); + Assert.Equal(2, res.Res["mapElem1"].Count()); + Assert.Equal(2, res.Res["mapElem2"].Count()); + Helpers.AssertSimpleObject(res.Res["mapElem1"]["subMapElem1"]); + Helpers.AssertSimpleObject(res.Res["mapElem1"]["subMapElem2"]); + Helpers.AssertSimpleObject(res.Res["mapElem2"]["subMapElem1"]); + Helpers.AssertSimpleObject(res.Res["mapElem2"]["subMapElem2"]); + } + + [Fact] + public async Task PostApplicationJsonMapOfArray() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-map-of-array"); + var sdk = new SDKSDK(); + + var obj = Helpers.CreateSimpleObject(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfArrayAsync( + new Dictionary>() + { + { + "mapElem1", + new List() { obj, obj } + }, + { + "mapElem2", + new List() { obj, obj } + } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Res.Count()); + Assert.Equal(2, res.Res["mapElem1"].Count()); + Assert.Equal(2, res.Res["mapElem2"].Count()); + Helpers.AssertSimpleObject(res.Res["mapElem1"].First()); + Helpers.AssertSimpleObject(res.Res["mapElem1"].Last()); + Helpers.AssertSimpleObject(res.Res["mapElem2"].First()); + Helpers.AssertSimpleObject(res.Res["mapElem2"].Last()); + } + + [Fact] + public async Task PostApplicationJsonArrayOfMap() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-array-of-map"); + var sdk = new SDKSDK(); + + var maps = new List>(); + for (int i = 0; i < 2; i++) + { + maps.Add( + new Dictionary() + { + { "mapElem1", Helpers.CreateSimpleObject() }, + { "mapElem2", Helpers.CreateSimpleObject() } + } + ); + } + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfMapAsync(maps); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Maps.Count()); + Assert.Equal(2, res.Maps.ToList()[0].Count()); + Assert.Equal(2, res.Maps.ToList()[1].Count()); + Helpers.AssertSimpleObject(res.Maps.ToList()[0]["mapElem1"]); + Helpers.AssertSimpleObject(res.Maps.ToList()[0]["mapElem2"]); + Helpers.AssertSimpleObject(res.Maps.ToList()[1]["mapElem1"]); + Helpers.AssertSimpleObject(res.Maps.ToList()[1]["mapElem2"]); + } + + [Fact] + public async Task PostApplicationJsonMapOfPrimitive() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-map-of-primitive"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfPrimitiveAsync( + new Dictionary() { { "mapElem1", "hello" }, { "mapElem2", "world" } } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Res.Count()); + Assert.Equal("hello", res.Res["mapElem1"]); + Assert.Equal("world", res.Res["mapElem2"]); + } + + [Fact] + public async Task PostApplicationJsonArrayOfPrimitive() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-array-of-primitive"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfPrimitiveAsync( + new List() { "hello", "world" } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Strings.Count()); + Assert.Equal("hello", res.Strings.ToList()[0]); + Assert.Equal("world", res.Strings.ToList()[1]); + } + + [Fact] + public async Task PostApplicationJsonMapOfMapOfPrimitive() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-map-of-map-of-primitive"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfMapOfPrimitiveAsync( + new Dictionary>() + { + { + "mapElem1", + new Dictionary() + { + { "subMapElem1", "foo" }, + { "subMapElem2", "bar" } + } + }, + { + "mapElem2", + new Dictionary() + { + { "subMapElem1", "buzz" }, + { "subMapElem2", "bazz" } + } + } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Res.Count()); + Assert.Equal(2, res.Res["mapElem1"].Count()); + Assert.Equal(2, res.Res["mapElem2"].Count()); + Assert.Equal("foo", res.Res["mapElem1"]["subMapElem1"]); + Assert.Equal("bar", res.Res["mapElem1"]["subMapElem2"]); + Assert.Equal("buzz", res.Res["mapElem2"]["subMapElem1"]); + Assert.Equal("bazz", res.Res["mapElem2"]["subMapElem2"]); + } + + [Fact] + public async Task PostApplicationJsonArrayOfArrayOfPrimitive() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-array-of-array-of-primitive"); + var sdk = new SDKSDK(); + + var res = + await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveAsync( + new List>() + { + new List() { "foo", "bar" }, + new List() { "buzz", "bazz" } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.Arrs.Count()); + Assert.Equal(2, res.Arrs.First().Count()); + Assert.Equal(2, res.Arrs.Last().Count()); + Assert.Equal("foo", res.Arrs.First().First()); + Assert.Equal("bar", res.Arrs.First().Last()); + Assert.Equal("buzz", res.Arrs.Last().First()); + Assert.Equal("bazz", res.Arrs.Last().Last()); + } + + [Fact] + public async Task PostApplicationJsonArrayObject() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-array-object"); + var sdk = new SDKSDK(); + + var obj = Helpers.CreateSimpleObject(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayObjAsync( + new List() { obj, obj } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.ArrObjValue.Json.Count()); + Helpers.AssertSimpleObject(res.ArrObjValue.Json.ToList()[0]); + Helpers.AssertSimpleObject(res.ArrObjValue.Json.ToList()[1]); + } + + [Fact] + public async Task PostApplicationJsonMapObject() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-map-object"); + var sdk = new SDKSDK(); + + var obj = Helpers.CreateSimpleObject(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapObjAsync( + new Dictionary() { { "mapElem1", obj }, { "mapElem2", obj } } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(2, res.MapObjValue.Json.Count()); + Helpers.AssertSimpleObject(res.MapObjValue.Json["mapElem1"]); + Helpers.AssertSimpleObject(res.MapObjValue.Json["mapElem2"]); + } + + [Fact] + public async Task PostApplicationJsonDeep() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-deep"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonDeepAsync( + Helpers.CreateDeepObject() + ); + + Assert.Equal(200, res.StatusCode); + Helpers.AssertDeepObject(res.Res.Json); + } + + [Fact] + public async Task PostApplicationJsonMultipleJsonFiltered() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-multiple-json-filtered"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMultipleJsonFilteredAsync( + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Helpers.AssertSimpleObject(res.Res.Json); + } + + [Fact] + public async Task PostMultipleContentTypesComponentFiltered() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-component-filtered"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesComponentFilteredAsync( + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Helpers.AssertSimpleObject(res.Res.Json); + } + + [Fact] + public async Task PostMultipleContentTypesInlineFiltered() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-inline-filtered"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesInlineFilteredAsync( + new RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON() + { + Bool = true, + Num = 1.1F, + Str = "test" + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(3, res.Res.Json.Count()); + Assert.True((bool)res.Res.Json["bool"]); + Assert.Equal(1.1, (double)res.Res.Json["num"], 0.0001); + Assert.Equal("test", res.Res.Json["str"]); + } + + [Fact] + public async Task PostMultipleContentTypeSplitJson() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-split-json"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitJsonAsync( + new RequestBodyPostMultipleContentTypesSplitApplicationJSON() + { + Bool = true, + Num = 1.1F, + Str = "test" + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.True((bool)res.Res.Json["bool"]); + Assert.Equal(1.1, (double)res.Res.Json["num"], 0.0001); + Assert.Equal("test", res.Res.Json["str"]); + } + + [Fact] + public async Task PostMutlipleContentTypesSplitMultipart() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-split-multipart"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitMultipartAsync( + new RequestBodyPostMultipleContentTypesSplitMultipartFormData() + { + Bool2 = true, + Num2 = 1.1D, + Str2 = "test" + } + ); + + Assert.Equal(200, res.StatusCode); + + Assert.Equal("true", res.Res.Form["bool2"]); + Assert.Equal("1.1", res.Res.Form["num2"]); + Assert.Equal("test", res.Res.Form["str2"]); + } + + [Fact] + public async Task PostMultipleContentTypesSplitForm() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-split-form"); + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitFormAsync( + new RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded() + { + Bool3 = true, + Num3 = 1.1D, + Str3 = "test" + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("true", res.Res.Form["bool3"]); + Assert.Equal("1.1", res.Res.Form["num3"]); + Assert.Equal("test", res.Res.Form["str3"]); + } + + [Fact] + public async Task PostMultipleContentTypesSplitJsonWithParam() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-split-json-with-param"); + + var sdk = new SDKSDK(); + + var requestBody = new RequestBodyPostMultipleContentTypesSplitParamApplicationJSON() + { + Bool = true, + Num = 1.1D, + Str = "test body" + }; + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamJsonAsync( + requestBody, + "test param" + ); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.True((bool)res.Res.Json["bool"]); + Assert.Equal(1.1, (double)res.Res.Json["num"]); + Assert.Equal("test body", res.Res.Json["str"].ToString()); + Assert.Equal("test param", res.Res.Args["paramStr"]); + } + + [Fact] + public async Task PostMultipleContentTypesSplitMultiplartWithParam() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-split-multipart-with-param"); + + var sdk = new SDKSDK(); + + var formData = new RequestBodyPostMultipleContentTypesSplitParamMultipartFormData() + { + Bool2 = true, + Num2 = 1.1D, + Str2 = "test body" + }; + + var res = + await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamMultipartAsync( + formData, + "test param" + ); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal("true", res.Res.Form["bool2"]); + Assert.Equal("1.1", res.Res.Form["num2"]); + Assert.Equal("test body", res.Res.Form["str2"]); + Assert.Equal("test param", res.Res.Args["paramStr"]); + } + + [Fact] + public async Task PostMultipleContentTypesSplitFormWithParam() + { + CommonHelpers.RecordTest("request-bodies-post-multiple-content-types-split-form-with-param"); + + var sdk = new SDKSDK(); + + var requestBody = + new RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded() + { + Bool3 = true, + Num3 = 1.1D, + Str3 = "test body" + }; + + var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamFormAsync( + requestBody, + "test param" + ); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal("true", res.Res.Form["bool3"]); + Assert.Equal("1.1", res.Res.Form["num3"]); + Assert.Equal("test body", res.Res.Form["str3"]); + Assert.Equal("test param", res.Res.Args["paramStr"]); + } + + [Fact] + public async Task PutMultipartSimple() + { + CommonHelpers.RecordTest("request-bodies-put-multipart-simple"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPutMultipartSimpleAsync( + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("any", res.Res.Form.Any); + Assert.Equal("true", res.Res.Form.Bool); + Assert.Equal("true", res.Res.Form.BoolOpt); + Assert.Equal("2020-01-01", res.Res.Form.Date); + Assert.Equal("2020-01-01T00:00:00.0000001Z", res.Res.Form.DateTime); + Assert.Equal("one", res.Res.Form.Enum); + Assert.Equal("1.1", res.Res.Form.Float32); + Assert.Equal("1", res.Res.Form.Int); + Assert.Equal("1", res.Res.Form.Int32); + Assert.Equal("1.1", res.Res.Form.Num); + Assert.Equal("test", res.Res.Form.Str); + Assert.Equal("testOptional", res.Res.Form.StrOpt); + } + + [Fact] + public async Task PutMultipartDeep() + { + CommonHelpers.RecordTest("request-bodies-put-multipart-deep"); + + var sdk = new SDKSDK(); + + var obj = Helpers.CreateDeepObject(); + var res = await sdk.RequestBodies.RequestBodyPutMultipartDeepAsync(obj); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(Utilities.ToString(obj.Arr), res.Res.Form.Arr); + Assert.Equal("true", res.Res.Form.Bool); + Assert.Equal("1", res.Res.Form.Int); + Assert.Equal(Utilities.ToString(obj.Map), res.Res.Form.Map); + Assert.Equal("1.1", res.Res.Form.Num); + Assert.Equal(Utilities.ToString(obj.Obj), res.Res.Form.Obj); + Assert.Equal("test", res.Res.Form.Str); + } + + [Fact] + public async Task PutMultipartFile() + { + CommonHelpers.RecordTest("request-bodies-put-multipart-file"); + + var sdk = new SDKSDK(); + + var data = Helpers.GetData(); + + var res = await sdk.RequestBodies.RequestBodyPutMultipartFileAsync( + new RequestBodyPutMultipartFileRequestBody() + { + File = new RequestBodyPutMultipartFileRequestBodyFile() + { + Content = data, + File = "testUpload.json" + } + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(Encoding.UTF8.GetString(data, 0, data.Length), res.Res.Files["file"]); + } + + [Fact] + public async Task PostFormSimple() + { + CommonHelpers.RecordTest("request-bodies-post-form-simple"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostFormSimpleAsync( + Helpers.CreateSimpleObject() + ); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal("any", res.Res.Form.Any); + Assert.Equal("true", res.Res.Form.Bool); + Assert.Equal("true", res.Res.Form.BoolOpt); + Assert.Equal("2020-01-01", res.Res.Form.Date); + Assert.Equal("2020-01-01T00:00:00.0000001Z", res.Res.Form.DateTime); + Assert.Equal("one", res.Res.Form.Enum); + Assert.Equal("1.1", res.Res.Form.Float32); + Assert.Equal("1", res.Res.Form.Int); + Assert.Equal("1", res.Res.Form.Int32); + Assert.Equal("1.1", res.Res.Form.Num); + Assert.Equal("test", res.Res.Form.Str); + Assert.Equal("testOptional", res.Res.Form.StrOpt); + } + + [Fact] + public async Task PostFormDeep() + { + CommonHelpers.RecordTest("request-bodies-post-form-deep"); + + var sdk = new SDKSDK(); + + var obj = Helpers.CreateDeepObject(); + + var res = await sdk.RequestBodies.RequestBodyPostFormDeepAsync(obj); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Res); + Assert.Equal(Utilities.ToString(obj.Arr), res.Res.Form.Arr); + Assert.Equal("true", res.Res.Form.Bool); + Assert.Equal("1", res.Res.Form.Int); + Assert.Equal(Utilities.ToString(obj.Map), res.Res.Form.Map); + Assert.Equal("1.1", res.Res.Form.Num); + Assert.Equal(Utilities.ToString(obj.Obj), res.Res.Form.Obj); + Assert.Equal("test", res.Res.Form.Str); + } + + [Fact] + public async Task PostFormMapPrimitive() + { + CommonHelpers.RecordTest("request-bodies-post-form-map-primitive"); + + var sdk = new SDKSDK(); + + var map = new Dictionary() + { + { "key1", "value1" }, + { "key2", "value2" }, + { "key3", "value3" } + }; + + var res = await sdk.RequestBodies.RequestBodyPostFormMapPrimitiveAsync(map); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(map, res.Res.Form); + } + + [Fact] + public async Task PutString() + { + CommonHelpers.RecordTest("request-bodies-put-string"); + + var sdk = new SDKSDK(); + + var str = "Hello world"; + + var res = await sdk.RequestBodies.RequestBodyPutStringAsync(str); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(str, res.Res.Data); + } + + [Fact] + public async Task PutBytes() + { + CommonHelpers.RecordTest("request-bodies-put-bytes"); + + var sdk = new SDKSDK(); + + var data = Helpers.GetData(); + + var res = await sdk.RequestBodies.RequestBodyPutBytesAsync(data); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(Encoding.UTF8.GetString(data, 0, data.Length), res.Res.Data); + } + + [Fact] + public async Task PutStringWithParams() + { + CommonHelpers.RecordTest("request-bodies-put-string-with-params"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPutStringWithParamsAsync( + "Hello world", + "test param" + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("Hello world", res.Res.Data); + Assert.Equal("test param", res.Res.Args.QueryStringParam); + } + + [Fact] + public async Task PutBytesWithParams() + { + CommonHelpers.RecordTest("request-bodies-put-bytes-with-params"); + + var sdk = new SDKSDK(); + + var data = Helpers.GetData(); + + var res = await sdk.RequestBodies.RequestBodyPutBytesWithParamsAsync(data, "test param"); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(Encoding.UTF8.GetString(data, 0, data.Length), res.Res.Data); + Assert.Equal("test param", res.Res.Args.QueryStringParam); + } + + [Fact] + public async Task EmptyObject() + { + CommonHelpers.RecordTest("request-bodies-post-empty-object"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostEmptyObjectAsync( + new RequestBodyPostEmptyObjectRequestBody() + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task CamelCase() + { + CommonHelpers.RecordTest("request-bodies-post-application-json-simple-camel-case"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonSimpleCamelCaseAsync( + Helpers.CreateSimpleObjectCamelCase() + ); + + Assert.Equal(200, res.StatusCode); + Helpers.AssertSimpleObjectCamelCase(res.Res.Json); + + var rawResponseString = await res.RawResponse.Content.ReadAsStringAsync(); + Assert.Equal(28, Regex.Matches(rawResponseString, "_val").Count); + } + + [Fact] + public async Task RequestBodyReadOnlyInput() + { + CommonHelpers.RecordTest("request-bodies-read-only-input"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyReadOnlyInputAsync(new ReadOnlyObjectInput()); + + Assert.Equal(200, res.StatusCode); + Assert.True(res.ReadOnlyObject.Bool); + Assert.Equal(1.0, res.ReadOnlyObject.Num); + Assert.Equal("hello", res.ReadOnlyObject.String); + } + + [Fact] + public async Task RequestBodyWriteOnlyOutput() + { + CommonHelpers.RecordTest("request-bodies-write-only-output"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyWriteOnlyOutputAsync( + new WriteOnlyObject() + { + Bool = true, + Num = 1.0F, + String = "hello" + } + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task RequestBodyWriteOnly() + { + CommonHelpers.RecordTest("request-bodies-write-only"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyWriteOnlyAsync( + new WriteOnlyObject() + { + Bool = true, + Num = 1.0F, + String = "hello" + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.True(res.ReadOnlyObject.Bool); + Assert.Equal(1.0, res.ReadOnlyObject.Num); + Assert.Equal("hello", res.ReadOnlyObject.String); + } + + [Fact] + public async Task RequestBodyReadAndWrite() + { + CommonHelpers.RecordTest("request-bodies-read-and-write"); + + var sdk = new SDKSDK(); + + var res = await sdk.RequestBodies.RequestBodyReadAndWriteAsync( + new ReadWriteObjectInput() + { + Num1 = 1, + Num2 = 2, + Num3 = 4, + } + ); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(4, res.ReadWriteObject.Num3); + Assert.Equal(7, res.ReadWriteObject.Sum); + } + + [Fact] + public async Task RequestBodyPostComplexNumberTypesAsync() + { + CommonHelpers.RecordTest("request-bodies-complex-number-types"); + + var sdk = new SDKSDK(); + + var req = new RequestBodyPostComplexNumberTypesRequest() + { + ComplexNumberTypes = new ComplexNumberTypes() + { + Bigint = BigInteger.Parse("9007199254740991"), + BigintStr = BigInteger.Parse("9223372036854775807"), + Decimal = 3.141592653589793M, + DecimalStr = 3.141592653589793238462643383279M + }, + PathBigInt = BigInteger.Parse("9007199254740991"), + PathBigIntStr = BigInteger.Parse("9223372036854775807"), + PathDecimal = 3.141592653589793M, + PathDecimalStr = 3.141592653589793238462643383279M, + QueryBigInt = BigInteger.Parse("9007199254740991"), + QueryBigIntStr = BigInteger.Parse("9223372036854775807"), + QueryDecimal = 3.141592653589793M, + QueryDecimalStr = 3.141592653589793238462643383279M + }; + + var res = await sdk.RequestBodies.RequestBodyPostComplexNumberTypesAsync(req); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + req.ComplexNumberTypes.Bigint, + res.RequestBodyPostComplexNumberTypes200ApplicationJSONObject.Json.Bigint + ); + Assert.Equal( + req.ComplexNumberTypes.BigintStr, + res.RequestBodyPostComplexNumberTypes200ApplicationJSONObject.Json.BigintStr + ); + Assert.Equal( + req.ComplexNumberTypes.Decimal, + res.RequestBodyPostComplexNumberTypes200ApplicationJSONObject.Json.Decimal + ); + Assert.Equal( + req.ComplexNumberTypes.DecimalStr, + res.RequestBodyPostComplexNumberTypes200ApplicationJSONObject.Json.DecimalStr + ); + Assert.Equal( + "http://localhost:35123/anything/requestBodies/post/9007199254740991/9223372036854775807/3.141592653589793/3.1415926535897932384626433833/complex-number-types?queryBigInt=9007199254740991&queryBigIntStr=9223372036854775807&queryDecimal=3.141592653589793&queryDecimalStr=3.1415926535897932384626433833", + res.RequestBodyPostComplexNumberTypes200ApplicationJSONObject.Url + ); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/ResponseBodiesShould.cs b/csharp-client-sdk/TestsPrimary/ResponseBodiesShould.cs new file mode 100755 index 000000000..628a3a190 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/ResponseBodiesShould.cs @@ -0,0 +1,102 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using System.Threading.Tasks; + +public class ResponseBodiesShould +{ + [Fact] + public async Task JsonGet() + { + CommonHelpers.RecordTest("response-bodies-json-get"); + var sdk = new SDKSDK(); + + var res = await sdk.ResponseBodyJsonGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.HttpBinSimpleJsonObject); + + var slideshow = res.HttpBinSimpleJsonObject.Slideshow; + Assert.Equal("Yours Truly", slideshow.Author); + Assert.Equal("date of publication", slideshow.Date); + Assert.Equal("Sample Slide Show", slideshow.Title); + + var slides = slideshow.Slides.ToArray(); + Assert.Equal("Wake up to WonderWidgets!", slides[0].Title); + Assert.Equal("all", slides[0].Type); + Assert.Equal("Overview", slides[1].Title); + Assert.Equal("all", slides[1].Type); + + var items = slides[1].Items.ToArray(); + Assert.Equal("Why WonderWidgets are great", items[0]); + Assert.Equal("Who buys WonderWidgets", items[1]); + } + + [Fact] + public async Task StringGet() + { + CommonHelpers.RecordTest("response-bodies-string-get"); + + var sdk = new SDKSDK(); + + var res = await sdk.ResponseBodies.ResponseBodyStringGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.False(string.IsNullOrEmpty(res.Html)); + Assert.Equal( + "\n\n \n \n \n

Herman Melville - Moby-Dick

\n\n
\n

\n Availing himself of the mild, summer-cool weather that now reigned in these latitudes, and in preparation for the peculiarly active pursuits shortly to be anticipated, Perth, the begrimed, blistered old blacksmith, had not removed his portable forge to the hold again, after concluding his contributory work for Ahab's leg, but still retained it on deck, fast lashed to ringbolts by the foremast; being now almost incessantly invoked by the headsmen, and harpooneers, and bowsmen to do some little job for them; altering, or repairing, or new shaping their various weapons and boat furniture. Often he would be surrounded by an eager circle, all waiting to be served; holding boat-spades, pike-heads, harpoons, and lances, and jealously watching his every sooty movement, as he toiled. Nevertheless, this old man's was a patient hammer wielded by a patient arm. No murmur, no impatience, no petulance did come from him. Silent, slow, and solemn; bowing over still further his chronically broken back, he toiled away, as if toil were life itself, and the heavy beating of his hammer the heavy beating of his heart. And so it was.—Most miserable! A peculiar walk in this old man, a certain slight but painful appearing yawing in his gait, had at an early period of the voyage excited the curiosity of the mariners. And to the importunity of their persisted questionings he had finally given in; and so it came to pass that every one now knew the shameful story of his wretched fate. Belated, and not innocently, one bitter winter's midnight, on the road running between two country towns, the blacksmith half-stupidly felt the deadly numbness stealing over him, and sought refuge in a leaning, dilapidated barn. The issue was, the loss of the extremities of both feet. Out of this revelation, part by part, at last came out the four acts of the gladness, and the one long, and as yet uncatastrophied fifth act of the grief of his life's drama. He was an old man, who, at the age of nearly sixty, had postponedly encountered that thing in sorrow's technicals called ruin. He had been an artisan of famed excellence, and with plenty to do; owned a house and garden; embraced a youthful, daughter-like, loving wife, and three blithe, ruddy children; every Sunday went to a cheerful-looking church, planted in a grove. But one night, under cover of darkness, and further concealed in a most cunning disguisement, a desperate burglar slid into his happy home, and robbed them all of everything. And darker yet to tell, the blacksmith himself did ignorantly conduct this burglar into his family's heart. It was the Bottle Conjuror! Upon the opening of that fatal cork, forth flew the fiend, and shrivelled up his home. Now, for prudent, most wise, and economic reasons, the blacksmith's shop was in the basement of his dwelling, but with a separate entrance to it; so that always had the young and loving healthy wife listened with no unhappy nervousness, but with vigorous pleasure, to the stout ringing of her young-armed old husband's hammer; whose reverberations, muffled by passing through the floors and walls, came up to her, not unsweetly, in her nursery; and so, to stout Labor's iron lullaby, the blacksmith's infants were rocked to slumber. Oh, woe on woe! Oh, Death, why canst thou not sometimes be timely? Hadst thou taken this old blacksmith to thyself ere his full ruin came upon him, then had the young widow had a delicious grief, and her orphans a truly venerable, legendary sire to dream of in their after years; and all of them a care-killing competency.\n

\n
\n \n", + res.Html + ); + } + + [Fact] + public async Task XmlGet() + { + CommonHelpers.RecordTest("response-bodies-xml-get"); + + var sdk = new SDKSDK(); + + var res = await sdk.ResponseBodies.ResponseBodyXmlGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.Equal( + "\n\n\n\n\n\n \n \n Wake up to WonderWidgets!\n \n\n \n \n Overview\n Why WonderWidgets are great\n \n Who buys WonderWidgets\n \n\n", + res.Xml + ); + } + + [Fact] + public async Task BytesGet() + { + CommonHelpers.RecordTest("response-bodies-bytes-get"); + var sdk = new SDKSDK(); + + var res = await sdk.ResponseBodies.ResponseBodyBytesGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.NotNull(res.Bytes); + Assert.Equal(100, res.Bytes.Length); + } + + [Fact] + public async Task ResponseBodyReadOnly() + { + CommonHelpers.RecordTest("response-bodies-read-only"); + var sdk = new SDKSDK(); + + var res = await sdk.ResponseBodies.ResponseBodyReadOnlyAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.True(res.ReadOnlyObject.Bool); + Assert.Equal(1.0, res.ReadOnlyObject.Num); + Assert.Equal("hello", res.ReadOnlyObject.String); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/ServersShould.cs b/csharp-client-sdk/TestsPrimary/ServersShould.cs new file mode 100755 index 000000000..64626ba51 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/ServersShould.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System.Net.Http; +using System.Threading.Tasks; +using Xunit; +using SDK; + +public class ServersShould +{ + [Fact] + public async Task SelectGlobalServerValid() + { + CommonHelpers.RecordTest("servers-select-global-server-valid"); + var sdk = new SDKSDK(serverUrl: SDKSDK.ServerList[0]); + + var res = await sdk.Servers.SelectGlobalServerAsync(); + Assert.NotNull(res); + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task SelectGlobalServerBroken() + { + CommonHelpers.RecordTest("servers-select-global-server-broken"); + var sdk = new SDKSDK(serverUrl: SDKSDK.ServerList[1]); + + await Assert.ThrowsAsync( + async () => await sdk.Servers.SelectGlobalServerAsync() + ); + } + + [Fact] + public async Task SelectServerWithIDDefault() + { + CommonHelpers.RecordTest("servers-select-server-with-id-default"); + var sdk = new SDKSDK(); + + var res = await sdk.Servers.SelectServerWithIDAsync(); + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task SelectServerWithIDValid() + { + CommonHelpers.RecordTest("servers-select-server-with-id-valid"); + + var sdk = new SDKSDK(); + + var res = await sdk.Servers.SelectServerWithIDAsync( + serverUrl: ServersSDK.SelectServerWithIDSERVERS[ + ServersSDK.SelectServerWithIDServers.Valid + ] + ); + + Assert.Equal(200, res.StatusCode); + } + + [Fact] + public async Task SelectServerWithIDBroken() + { + CommonHelpers.RecordTest("servers-select-server-with-id-broken"); + + var sdk = new SDKSDK(); + + await Assert.ThrowsAsync( + async () => + await sdk.Servers.SelectServerWithIDAsync( + serverUrl: ServersSDK.SelectServerWithIDSERVERS[ + ServersSDK.SelectServerWithIDServers.Broken + ] + ) + ); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsPrimary/TelemetryShould.cs b/csharp-client-sdk/TestsPrimary/TelemetryShould.cs new file mode 100755 index 000000000..b6219a306 --- /dev/null +++ b/csharp-client-sdk/TestsPrimary/TelemetryShould.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using System.Threading.Tasks; + +public class TelemetryShould +{ + [Fact] + public async Task UserAgentGet() + { + CommonHelpers.RecordTest("telemetry-user-agent-get"); + + var sdk = new SDKSDK(); + + var res = await sdk.Telemetry.TelemetryUserAgentGetAsync(); + + Assert.Equal(200, res.StatusCode); + Assert.Equal("speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]); + } + + [Fact] + public async Task SpeakeasyUserAgentGet() + { + CommonHelpers.RecordTest("telemetry-speakeasy-user-agent-get"); + + var sdk = new SDKSDK(); + + var userAgent = "test user agent"; + + var res = await sdk.Telemetry.TelemetrySpeakeasyUserAgentGetAsync(userAgent); + + Assert.Equal(200, res.StatusCode); + Assert.Equal(userAgent, res.Res.Headers["User-Agent"]); + Assert.Equal("speakeasy-sdk/csharp 0.1.0 2.171.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]); + } +} \ No newline at end of file diff --git a/csharp-client-sdk/TestsSimpleSecurity/AuthShould.cs b/csharp-client-sdk/TestsSimpleSecurity/AuthShould.cs new file mode 100755 index 000000000..2be455461 --- /dev/null +++ b/csharp-client-sdk/TestsSimpleSecurity/AuthShould.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using Xunit; +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using System.Collections.Generic; +using System.Threading.Tasks; + +public class AuthShould +{ + // TODO: + // [Fact] + // public async Task TestGlobalSecurityFlattening() + // recordTest("auth-global-security-flattening") + + // s := sdk.New(sdk.WithSecurity("Bearer testToken")) + + // res, err := s.Auth.APIKeyAuthGlobal(context.Background()) + // require.NoError(t, err) + // require.NotNil(t, res) + // assert.Equal(t, http.StatusOK, res.StatusCode) + // assert.True(t, res.Token.Authenticated) + // assert.Equal(t, "testToken", res.Token.Token) + // } +} \ No newline at end of file diff --git a/csharp-client-sdk/USAGE.md b/csharp-client-sdk/USAGE.md new file mode 100755 index 000000000..a9e5dfee5 --- /dev/null +++ b/csharp-client-sdk/USAGE.md @@ -0,0 +1,85 @@ + + + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.GlobalNameOverriddenAsync(); + +// handle response +``` + + +## Second +Do this second +```csharp +using SDK; +using SDK.Models.Operations; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.UsageExamplePostAsync(new UsageExamplePostSecurity() { + Password = "YOUR_PASSWORD", + Username = "YOUR_USERNAME", +}, new UsageExamplePostRequest() { + BigintParameter = 168827, + BigintStrParameter = 446729, + BoolParameter = false, + DateParameter = LocalDate.FromDateTime(DateTime.Parse("2023-06-11")), + DateTimeDefaultParameter = DateTime.Parse("2022-07-22T13:16:48.221Z"), + DateTimeParameter = DateTime.Parse("2021-10-21T09:16:58.799Z"), + DecimalParameter = 5223.72M, + DecimalStrParameter = 2911.37M, + DoubleParameter = 6946.59D, + EnumParameter = SDK.Models.Operations.UsageExamplePostEnumParameter.Value1, + FalseyNumberParameter = 0D, + Float32Parameter = 1029.75F, + FloatParameter = 5669.99D, + Int64Parameter = 195232, + IntParameter = 569663, + StrParameter = "example 1", + RequestBody = new UsageExamplePostRequestBody() { + FakerFormattedStrings = new FakerFormattedStrings() {}, + FakerStrings = new FakerStrings() {}, + SimpleObject = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + OptEnumParameter = SDK.Models.Operations.UsageExamplePostOptEnumParameter.Value3, +}); + +// handle response +``` + \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.md b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.md new file mode 100755 index 000000000..e3305b996 --- /dev/null +++ b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.md @@ -0,0 +1,8 @@ +# IgnoredGenerationGetNotIgnoredCallbackRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `SomeProp` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.md b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.md new file mode 100755 index 000000000..c4e64a95a --- /dev/null +++ b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.md @@ -0,0 +1,10 @@ +# IgnoredGenerationGetNotIgnoredCallbackResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.md b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.md new file mode 100755 index 000000000..d7b1d3b39 --- /dev/null +++ b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.md @@ -0,0 +1,8 @@ +# IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `SomeProp` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.md b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.md new file mode 100755 index 000000000..92ca71608 --- /dev/null +++ b/csharp-client-sdk/docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.md @@ -0,0 +1,10 @@ +# IgnoredGenerationGetSingledIgnoredCallbackOperationResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/AnchorTypesGetResponse.md b/csharp-client-sdk/docs/models/operations/AnchorTypesGetResponse.md new file mode 100755 index 000000000..0379313cc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/AnchorTypesGetResponse.md @@ -0,0 +1,11 @@ +# AnchorTypesGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `TypeFromAnchor` | [TypeFromAnchor](../../models/operations/TypeFromAnchor.md) | :heavy_minus_sign: | A successful response that contains the simpleObject sent in the request body | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalNewResponse.md b/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalNewResponse.md new file mode 100755 index 000000000..406ba7e58 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalNewResponse.md @@ -0,0 +1,10 @@ +# ApiKeyAuthGlobalNewResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalResponse.md b/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalResponse.md new file mode 100755 index 000000000..0dc62c418 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalResponse.md @@ -0,0 +1,11 @@ +# ApiKeyAuthGlobalResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [ApiKeyAuthGlobalToken](../../models/operations/ApiKeyAuthGlobalToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalToken.md b/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalToken.md new file mode 100755 index 000000000..98240d2d2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ApiKeyAuthGlobalToken.md @@ -0,0 +1,11 @@ +# ApiKeyAuthGlobalToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ApiKeyAuthResponse.md b/csharp-client-sdk/docs/models/operations/ApiKeyAuthResponse.md new file mode 100755 index 000000000..bb4dbe432 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ApiKeyAuthResponse.md @@ -0,0 +1,11 @@ +# ApiKeyAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [ApiKeyAuthToken](../../models/operations/ApiKeyAuthToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ApiKeyAuthSecurity.md b/csharp-client-sdk/docs/models/operations/ApiKeyAuthSecurity.md new file mode 100755 index 000000000..64034f182 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ApiKeyAuthSecurity.md @@ -0,0 +1,8 @@ +# ApiKeyAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ApiKeyAuth` | *string* | :heavy_check_mark: | N/A | Token YOUR_API_KEY | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ApiKeyAuthToken.md b/csharp-client-sdk/docs/models/operations/ApiKeyAuthToken.md new file mode 100755 index 000000000..f0d4d39c0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ApiKeyAuthToken.md @@ -0,0 +1,11 @@ +# ApiKeyAuthToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ArrayCircularReferenceGetResponse.md b/csharp-client-sdk/docs/models/operations/ArrayCircularReferenceGetResponse.md new file mode 100755 index 000000000..456a25a73 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ArrayCircularReferenceGetResponse.md @@ -0,0 +1,11 @@ +# ArrayCircularReferenceGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ArrayCircularReferenceObject` | List<[ArrayCircularReferenceObject](../../models/shared/ArrayCircularReferenceObject.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/AuthGlobalResponse.md b/csharp-client-sdk/docs/models/operations/AuthGlobalResponse.md new file mode 100755 index 000000000..35fde2182 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/AuthGlobalResponse.md @@ -0,0 +1,10 @@ +# AuthGlobalResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BasicAuthNewResponse.md b/csharp-client-sdk/docs/models/operations/BasicAuthNewResponse.md new file mode 100755 index 000000000..88bb767fd --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BasicAuthNewResponse.md @@ -0,0 +1,10 @@ +# BasicAuthNewResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BasicAuthNewSecurity.md b/csharp-client-sdk/docs/models/operations/BasicAuthNewSecurity.md new file mode 100755 index 000000000..53dea4cc1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BasicAuthNewSecurity.md @@ -0,0 +1,9 @@ +# BasicAuthNewSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Password` | *string* | :heavy_check_mark: | N/A | YOUR_PASSWORD | +| `Username` | *string* | :heavy_check_mark: | N/A | YOUR_USERNAME | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BasicAuthRequest.md b/csharp-client-sdk/docs/models/operations/BasicAuthRequest.md new file mode 100755 index 000000000..cbf5f5308 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BasicAuthRequest.md @@ -0,0 +1,9 @@ +# BasicAuthRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Passwd` | *string* | :heavy_check_mark: | N/A | +| `User` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BasicAuthResponse.md b/csharp-client-sdk/docs/models/operations/BasicAuthResponse.md new file mode 100755 index 000000000..aa9d5dbef --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BasicAuthResponse.md @@ -0,0 +1,11 @@ +# BasicAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `User` | [BasicAuthUser](../../models/operations/BasicAuthUser.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BasicAuthSecurity.md b/csharp-client-sdk/docs/models/operations/BasicAuthSecurity.md new file mode 100755 index 000000000..57ec430cf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BasicAuthSecurity.md @@ -0,0 +1,9 @@ +# BasicAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Password` | *string* | :heavy_check_mark: | N/A | YOUR_PASSWORD | +| `Username` | *string* | :heavy_check_mark: | N/A | YOUR_USERNAME | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BasicAuthUser.md b/csharp-client-sdk/docs/models/operations/BasicAuthUser.md new file mode 100755 index 000000000..f25a7fb6d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BasicAuthUser.md @@ -0,0 +1,11 @@ +# BasicAuthUser + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `User` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BearerAuthResponse.md b/csharp-client-sdk/docs/models/operations/BearerAuthResponse.md new file mode 100755 index 000000000..ff5a4647b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BearerAuthResponse.md @@ -0,0 +1,11 @@ +# BearerAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [BearerAuthToken](../../models/operations/BearerAuthToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BearerAuthSecurity.md b/csharp-client-sdk/docs/models/operations/BearerAuthSecurity.md new file mode 100755 index 000000000..846347386 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BearerAuthSecurity.md @@ -0,0 +1,8 @@ +# BearerAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `BearerAuth` | *string* | :heavy_check_mark: | N/A | YOUR_JWT | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/BearerAuthToken.md b/csharp-client-sdk/docs/models/operations/BearerAuthToken.md new file mode 100755 index 000000000..90a510fc8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/BearerAuthToken.md @@ -0,0 +1,11 @@ +# BearerAuthToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/CircularReferenceGetResponse.md b/csharp-client-sdk/docs/models/operations/CircularReferenceGetResponse.md new file mode 100755 index 000000000..d1a795b97 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/CircularReferenceGetResponse.md @@ -0,0 +1,11 @@ +# CircularReferenceGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ValidCircularReferenceObject` | [ValidCircularReferenceObject](../../models/shared/ValidCircularReferenceObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictRequest.md b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictRequest.md new file mode 100755 index 000000000..922996f59 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictRequest.md @@ -0,0 +1,9 @@ +# ComponentBodyAndParamConflictRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `SimpleObject` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictRes.md b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictRes.md new file mode 100755 index 000000000..1b31e06f9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictRes.md @@ -0,0 +1,11 @@ +# ComponentBodyAndParamConflictRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictResponse.md b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictResponse.md new file mode 100755 index 000000000..a0b83bca0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamConflictResponse.md @@ -0,0 +1,11 @@ +# ComponentBodyAndParamConflictResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [ComponentBodyAndParamConflictRes](../../models/operations/ComponentBodyAndParamConflictRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictRequest.md b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictRequest.md new file mode 100755 index 000000000..eaefff74f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictRequest.md @@ -0,0 +1,9 @@ +# ComponentBodyAndParamNoConflictRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | +| `SimpleObject` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictRes.md b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictRes.md new file mode 100755 index 000000000..f6d8c0c2d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictRes.md @@ -0,0 +1,11 @@ +# ComponentBodyAndParamNoConflictRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictResponse.md b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictResponse.md new file mode 100755 index 000000000..6d2b6d36b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ComponentBodyAndParamNoConflictResponse.md @@ -0,0 +1,11 @@ +# ComponentBodyAndParamNoConflictResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [ComponentBodyAndParamNoConflictRes](../../models/operations/ComponentBodyAndParamNoConflictRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ConflictingParamsRequest.md b/csharp-client-sdk/docs/models/operations/ConflictingParamsRequest.md new file mode 100755 index 000000000..b159b60d6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ConflictingParamsRequest.md @@ -0,0 +1,9 @@ +# ConflictingParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `StrPathParameter` | *string* | :heavy_check_mark: | N/A | +| `StrQueryParameter` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ConflictingParamsRes.md b/csharp-client-sdk/docs/models/operations/ConflictingParamsRes.md new file mode 100755 index 000000000..95429a24e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ConflictingParamsRes.md @@ -0,0 +1,11 @@ +# ConflictingParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | +| `Url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ConflictingParamsResponse.md b/csharp-client-sdk/docs/models/operations/ConflictingParamsResponse.md new file mode 100755 index 000000000..b416357d0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ConflictingParamsResponse.md @@ -0,0 +1,11 @@ +# ConflictingParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [ConflictingParamsRes](../../models/operations/ConflictingParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ConnectionErrorGetResponse.md b/csharp-client-sdk/docs/models/operations/ConnectionErrorGetResponse.md new file mode 100755 index 000000000..76f41108d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ConnectionErrorGetResponse.md @@ -0,0 +1,10 @@ +# ConnectionErrorGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/CreateFileRequestBody.md b/csharp-client-sdk/docs/models/operations/CreateFileRequestBody.md new file mode 100755 index 000000000..9754a8f49 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/CreateFileRequestBody.md @@ -0,0 +1,8 @@ +# CreateFileRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `File` | [CreateFileRequestBodyFile](../../models/operations/CreateFileRequestBodyFile.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/CreateFileRequestBodyFile.md b/csharp-client-sdk/docs/models/operations/CreateFileRequestBodyFile.md new file mode 100755 index 000000000..fa9db081a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/CreateFileRequestBodyFile.md @@ -0,0 +1,9 @@ +# CreateFileRequestBodyFile + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Content` | *byte[]* | :heavy_check_mark: | N/A | +| `File` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/CreateFileResponse.md b/csharp-client-sdk/docs/models/operations/CreateFileResponse.md new file mode 100755 index 000000000..a60b04e40 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/CreateFileResponse.md @@ -0,0 +1,11 @@ +# CreateFileResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `FileResource` | [FileResource](../../models/shared/FileResource.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/CreateResourceResponse.md b/csharp-client-sdk/docs/models/operations/CreateResourceResponse.md new file mode 100755 index 000000000..c38f638d7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/CreateResourceResponse.md @@ -0,0 +1,11 @@ +# CreateResourceResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `ExampleResource` | [ExampleResource](../../models/shared/ExampleResource.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md b/csharp-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md new file mode 100755 index 000000000..dc73b92cd --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `DateInput` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md b/csharp-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md new file mode 100755 index 000000000..c42d4aba0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md b/csharp-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md new file mode 100755 index 000000000..310b83163 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `DateTimeInput` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md b/csharp-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md new file mode 100755 index 000000000..0b750b76c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md b/csharp-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md new file mode 100755 index 000000000..54e0e31a4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `DecimalInput` | *decimal* | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md b/csharp-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md new file mode 100755 index 000000000..7fe842915 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md new file mode 100755 index 000000000..3a360a67f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md @@ -0,0 +1,9 @@ +# DeepObjectQueryParamsMapRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `MapParam` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `MapArrParam` | Dictionary> | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md new file mode 100755 index 000000000..e075c5014 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md @@ -0,0 +1,11 @@ +# DeepObjectQueryParamsMapRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapResponse.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapResponse.md new file mode 100755 index 000000000..7a0b66f8f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsMapResponse.md @@ -0,0 +1,11 @@ +# DeepObjectQueryParamsMapResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [DeepObjectQueryParamsMapRes](../../models/operations/DeepObjectQueryParamsMapRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectObjArrParam.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectObjArrParam.md new file mode 100755 index 000000000..e1cc8c0bf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectObjArrParam.md @@ -0,0 +1,8 @@ +# DeepObjectQueryParamsObjectObjArrParam + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Arr` | List<*string*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectRequest.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectRequest.md new file mode 100755 index 000000000..d5c51068c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectRequest.md @@ -0,0 +1,9 @@ +# DeepObjectQueryParamsObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `ObjArrParam` | [DeepObjectQueryParamsObjectObjArrParam](../../models/operations/DeepObjectQueryParamsObjectObjArrParam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectRes.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectRes.md new file mode 100755 index 000000000..03b96360a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectRes.md @@ -0,0 +1,11 @@ +# DeepObjectQueryParamsObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | [DeepObjectQueryParamsObjectResArgs](../../models/operations/DeepObjectQueryParamsObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/deepObject/obj?objArrParam[arr]=test&objArrParam[arr]=test2&objParam[any]=any&objParam[bigintStr]=9223372036854775808&objParam[bigint]=8821239038968084&objParam[boolOpt]=true&objParam[bool]=true&objParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&objParam[date]=2020-01-01&objParam[decimalStr]=3.14159265358979344719667586&objParam[decimal]=3.141592653589793&objParam[enum]=one&objParam[float32]=1.1&objParam[int32Enum]=55&objParam[int32]=1&objParam[intEnum]=2&objParam[int]=1&objParam[num]=1.1&objParam[strOpt]=testOptional&objParam[str]=test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectResArgs.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectResArgs.md new file mode 100755 index 000000000..680dea7b2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectResArgs.md @@ -0,0 +1,26 @@ +# DeepObjectQueryParamsObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `ObjArrParamArr` | List<*string*> | :heavy_check_mark: | N/A | | +| `ObjParamAny` | *string* | :heavy_check_mark: | N/A | any | +| `ObjParamBigintStr` | *string* | :heavy_minus_sign: | N/A | 9223372036854775808 | +| `ObjParamBigint` | *string* | :heavy_minus_sign: | N/A | 8821239038968084 | +| `ObjParamBoolOpt` | *string* | :heavy_check_mark: | N/A | true | +| `ObjParamBool` | *string* | :heavy_check_mark: | N/A | true | +| `ObjParamDateTime` | *string* | :heavy_check_mark: | N/A | 2020-01-01T00:00:00.000000001Z | +| `ObjParamDate` | *string* | :heavy_check_mark: | N/A | 2020-01-01 | +| `ObjParamDecimalStr` | *string* | :heavy_minus_sign: | N/A | 3.14159265358979344719667586 | +| `ObjParamDecimal` | *string* | :heavy_minus_sign: | N/A | 3.141592653589793 | +| `ObjParamEnum` | *string* | :heavy_check_mark: | N/A | one | +| `ObjParamFloat32` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `ObjParamInt32Enum` | *string* | :heavy_check_mark: | N/A | 55 | +| `ObjParamInt32` | *string* | :heavy_check_mark: | N/A | 1 | +| `ObjParamIntEnum` | *string* | :heavy_check_mark: | N/A | 2 | +| `ObjParamInt` | *string* | :heavy_check_mark: | N/A | 1 | +| `ObjParamNum` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `ObjParamStrOpt` | *string* | :heavy_check_mark: | N/A | testOptional | +| `ObjParamStr` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectResponse.md b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectResponse.md new file mode 100755 index 000000000..4eb4176b5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeepObjectQueryParamsObjectResponse.md @@ -0,0 +1,11 @@ +# DeepObjectQueryParamsObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [DeepObjectQueryParamsObjectRes](../../models/operations/DeepObjectQueryParamsObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeleteResourceRequest.md b/csharp-client-sdk/docs/models/operations/DeleteResourceRequest.md new file mode 100755 index 000000000..6dcebb414 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeleteResourceRequest.md @@ -0,0 +1,8 @@ +# DeleteResourceRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ResourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeleteResourceResponse.md b/csharp-client-sdk/docs/models/operations/DeleteResourceResponse.md new file mode 100755 index 000000000..72943624a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeleteResourceResponse.md @@ -0,0 +1,10 @@ +# DeleteResourceResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedFieldInSchemaPostResponse.md b/csharp-client-sdk/docs/models/operations/DeprecatedFieldInSchemaPostResponse.md new file mode 100755 index 000000000..07432e468 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedFieldInSchemaPostResponse.md @@ -0,0 +1,10 @@ +# DeprecatedFieldInSchemaPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md new file mode 100755 index 000000000..e972916b4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md @@ -0,0 +1,10 @@ +# DeprecatedObjectInSchemaGet200ApplicationJSON + +A successful response that contains a deprecatedObject sent in the request body + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| ~~`Json`~~ | [DeprecatedObject](../../models/shared/DeprecatedObject.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This object is deprecated. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedObjectInSchemaGetResponse.md b/csharp-client-sdk/docs/models/operations/DeprecatedObjectInSchemaGetResponse.md new file mode 100755 index 000000000..7a03dc45a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedObjectInSchemaGetResponse.md @@ -0,0 +1,11 @@ +# DeprecatedObjectInSchemaGetResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `DeprecatedObjectInSchemaGet200ApplicationJSONObject` | [DeprecatedObjectInSchemaGet200ApplicationJSON](../../models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md) | :heavy_minus_sign: | A successful response that contains a deprecatedObject sent in the request body | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedOperationNoCommentsGetRequest.md b/csharp-client-sdk/docs/models/operations/DeprecatedOperationNoCommentsGetRequest.md new file mode 100755 index 000000000..3112b22a1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedOperationNoCommentsGetRequest.md @@ -0,0 +1,8 @@ +# DeprecatedOperationNoCommentsGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| ~~`DeprecatedParameter`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedOperationNoCommentsGetResponse.md b/csharp-client-sdk/docs/models/operations/DeprecatedOperationNoCommentsGetResponse.md new file mode 100755 index 000000000..bd57015df --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedOperationNoCommentsGetResponse.md @@ -0,0 +1,10 @@ +# DeprecatedOperationNoCommentsGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedOperationWithCommentsGetRequest.md b/csharp-client-sdk/docs/models/operations/DeprecatedOperationWithCommentsGetRequest.md new file mode 100755 index 000000000..d1f646000 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedOperationWithCommentsGetRequest.md @@ -0,0 +1,9 @@ +# DeprecatedOperationWithCommentsGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| ~~`DeprecatedParameter`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This parameter is deprecated. Use NewParameter instead.

This is a string parameter | +| `NewParameter` | *string* | :heavy_minus_sign: | This is a string parameter | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DeprecatedOperationWithCommentsGetResponse.md b/csharp-client-sdk/docs/models/operations/DeprecatedOperationWithCommentsGetResponse.md new file mode 100755 index 000000000..4699ba335 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DeprecatedOperationWithCommentsGetResponse.md @@ -0,0 +1,10 @@ +# DeprecatedOperationWithCommentsGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DuplicateParamDuplicateParamResponse.md b/csharp-client-sdk/docs/models/operations/DuplicateParamDuplicateParamResponse.md new file mode 100755 index 000000000..f64b6aea2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DuplicateParamDuplicateParamResponse.md @@ -0,0 +1,10 @@ +# DuplicateParamDuplicateParamResponse + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DuplicateParamRequest.md b/csharp-client-sdk/docs/models/operations/DuplicateParamRequest.md new file mode 100755 index 000000000..5f5b3a835 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DuplicateParamRequest.md @@ -0,0 +1,8 @@ +# DuplicateParamRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `DuplicateParamRequest` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/DuplicateParamResponse.md b/csharp-client-sdk/docs/models/operations/DuplicateParamResponse.md new file mode 100755 index 000000000..de2ac4443 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/DuplicateParamResponse.md @@ -0,0 +1,11 @@ +# DuplicateParamResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `DuplicateParamResponse` | [DuplicateParamDuplicateParamResponse](../../models/operations/DuplicateParamDuplicateParamResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/EmptyObjectGetRequest.md b/csharp-client-sdk/docs/models/operations/EmptyObjectGetRequest.md new file mode 100755 index 000000000..391d5e656 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/EmptyObjectGetRequest.md @@ -0,0 +1,8 @@ +# EmptyObjectGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `EmptyObject` | [EmptyObjectParam](../../models/shared/EmptyObjectParam.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/EmptyObjectGetResponse.md b/csharp-client-sdk/docs/models/operations/EmptyObjectGetResponse.md new file mode 100755 index 000000000..4e1d77eb2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/EmptyObjectGetResponse.md @@ -0,0 +1,10 @@ +# EmptyObjectGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.md b/csharp-client-sdk/docs/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.md new file mode 100755 index 000000000..bbddca47a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.md @@ -0,0 +1,9 @@ +# EmptyResponseObjectWithCommentGet200ApplicationOctetStream + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/EmptyResponseObjectWithCommentGetResponse.md b/csharp-client-sdk/docs/models/operations/EmptyResponseObjectWithCommentGetResponse.md new file mode 100755 index 000000000..d2eee0a6b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/EmptyResponseObjectWithCommentGetResponse.md @@ -0,0 +1,11 @@ +# EmptyResponseObjectWithCommentGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `Body` | *byte[]* | :heavy_minus_sign: | N/A | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FlattenedTypedObjectPostRes.md b/csharp-client-sdk/docs/models/operations/FlattenedTypedObjectPostRes.md new file mode 100755 index 000000000..0997a9f41 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FlattenedTypedObjectPostRes.md @@ -0,0 +1,10 @@ +# FlattenedTypedObjectPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FlattenedTypedObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/FlattenedTypedObjectPostResponse.md new file mode 100755 index 000000000..3d3ffed03 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FlattenedTypedObjectPostResponse.md @@ -0,0 +1,11 @@ +# FlattenedTypedObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FlattenedTypedObjectPostRes](../../models/operations/FlattenedTypedObjectPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayRequest.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayRequest.md new file mode 100755 index 000000000..b699d1b27 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsArrayRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ArrParam` | List<*string*> | :heavy_minus_sign: | N/A | +| `ArrParamExploded` | List<*long*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayRes.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayRes.md new file mode 100755 index 000000000..e405e5274 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsArrayRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `Args` | [FormQueryParamsArrayResArgs](../../models/operations/FormQueryParamsArrayResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayResArgs.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayResArgs.md new file mode 100755 index 000000000..812802107 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayResArgs.md @@ -0,0 +1,9 @@ +# FormQueryParamsArrayResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ArrParam` | *string* | :heavy_check_mark: | N/A | test,test2 | +| `ArrParamExploded` | List<*string*> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayResponse.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayResponse.md new file mode 100755 index 000000000..ccb16455c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsArrayResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FormQueryParamsArrayRes](../../models/operations/FormQueryParamsArrayRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md new file mode 100755 index 000000000..f0bc89376 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `EncodedCount` | *string* | :heavy_minus_sign: | N/A | 11 | +| `EncodedTerm` | *string* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md new file mode 100755 index 000000000..2280a31a8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ItemCount` | *string* | :heavy_minus_sign: | N/A | 10 | +| `SearchTerm` | *string* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md new file mode 100755 index 000000000..1f0cf04e2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `ObjParamExploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/FormQueryParamsCamelObjectObjParamExploded.md) | :heavy_check_mark: | N/A | +| `ObjParam` | [FormQueryParamsCamelObjectObjParam](../../models/operations/FormQueryParamsCamelObjectObjParam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md new file mode 100755 index 000000000..6871edeb5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | [FormQueryParamsCamelObjectResArgs](../../models/operations/FormQueryParamsCamelObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md new file mode 100755 index 000000000..533d43834 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ItemCount` | *string* | :heavy_check_mark: | N/A | 10 | +| `SearchTerm` | *string* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md new file mode 100755 index 000000000..7fee09178 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FormQueryParamsCamelObjectRes](../../models/operations/FormQueryParamsCamelObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md new file mode 100755 index 000000000..74a66cc5f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsMapRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `MapParam` | Dictionary | :heavy_minus_sign: | N/A | [object Object] | +| `MapParamExploded` | Dictionary | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsMapRes.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsMapRes.md new file mode 100755 index 000000000..d56a3eb87 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsMapRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsMapRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsMapResponse.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsMapResponse.md new file mode 100755 index 000000000..cf3a2a8f5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsMapResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsMapResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FormQueryParamsMapRes](../../models/operations/FormQueryParamsMapRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectRequest.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectRequest.md new file mode 100755 index 000000000..eb933cf3d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ObjParamExploded` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectRes.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectRes.md new file mode 100755 index 000000000..53052f7ec --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | [FormQueryParamsObjectResArgs](../../models/operations/FormQueryParamsObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/obj?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&objParam=any%2Cany%2Cbigint%2C8821239038968084%2CbigintStr%2C9223372036854775808%2Cbool%2Ctrue%2CboolOpt%2Ctrue%2Cdate%2C2020-01-01%2CdateTime%2C2020-01-01T00%3A00%3A00.000000001Z%2Cdecimal%2C3.141592653589793%2CdecimalStr%2C3.14159265358979344719667586%2Cenum%2Cone%2Cfloat32%2C1.1%2Cint%2C1%2Cint32%2C1%2Cint32Enum%2C55%2CintEnum%2C2%2Cnum%2C1.1%2Cstr%2Ctest%2CstrOpt%2CtestOptional&str=test&strOpt=testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectResArgs.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectResArgs.md new file mode 100755 index 000000000..9c3c5adad --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectResArgs.md @@ -0,0 +1,28 @@ +# FormQueryParamsObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Any` | *string* | :heavy_check_mark: | N/A | any | +| `Bigint` | *string* | :heavy_minus_sign: | N/A | 8821239038968084 | +| `BigintStr` | *string* | :heavy_minus_sign: | N/A | 9223372036854775808 | +| `Bool` | *string* | :heavy_check_mark: | N/A | true | +| `BoolOpt` | *string* | :heavy_minus_sign: | N/A | true | +| `Date` | *string* | :heavy_check_mark: | N/A | 2020-01-01 | +| `DateTime` | *string* | :heavy_check_mark: | N/A | 2020-01-01T00:00:00.000000001Z | +| `Decimal` | *string* | :heavy_minus_sign: | N/A | 3.141592653589793 | +| `DecimalStr` | *string* | :heavy_minus_sign: | N/A | 3.14159265358979344719667586 | +| `Enum` | *string* | :heavy_check_mark: | N/A | one | +| `Float32` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `Int` | *string* | :heavy_check_mark: | N/A | 1 | +| `Int32` | *string* | :heavy_check_mark: | N/A | 1 | +| `Int32Enum` | *string* | :heavy_check_mark: | N/A | 55 | +| `IntEnum` | *string* | :heavy_check_mark: | N/A | 2 | +| `IntOptNull` | *string* | :heavy_minus_sign: | N/A | | +| `Num` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `NumOptNull` | *string* | :heavy_minus_sign: | N/A | | +| `ObjParam` | *string* | :heavy_check_mark: | N/A | any,any,bigint,8821239038968084,bigintStr,9223372036854775808,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,decimal,3.141592653589793,decimalStr,3.14159265358979344719667586,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional | +| `Str` | *string* | :heavy_check_mark: | N/A | test | +| `StrOpt` | *string* | :heavy_minus_sign: | N/A | testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectResponse.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectResponse.md new file mode 100755 index 000000000..c8a2a5160 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsObjectResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FormQueryParamsObjectRes](../../models/operations/FormQueryParamsObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveRequest.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveRequest.md new file mode 100755 index 000000000..a77619e3b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveRequest.md @@ -0,0 +1,11 @@ +# FormQueryParamsPrimitiveRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `BoolParam` | *bool* | :heavy_check_mark: | N/A | true | +| `IntParam` | *long* | :heavy_check_mark: | N/A | 1 | +| `NumParam` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `StrParam` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveRes.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveRes.md new file mode 100755 index 000000000..3ddb5cb7b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsPrimitiveRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `Args` | [FormQueryParamsPrimitiveResArgs](../../models/operations/FormQueryParamsPrimitiveResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/primitive?boolParam=true&intParam=1&numParam=1.1&strParam=test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveResArgs.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveResArgs.md new file mode 100755 index 000000000..d12382fd6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveResArgs.md @@ -0,0 +1,11 @@ +# FormQueryParamsPrimitiveResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `BoolParam` | *string* | :heavy_check_mark: | N/A | true | +| `IntParam` | *string* | :heavy_check_mark: | N/A | 1 | +| `NumParam` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `StrParam` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveResponse.md new file mode 100755 index 000000000..b560bf837 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsPrimitiveResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FormQueryParamsPrimitiveRes](../../models/operations/FormQueryParamsPrimitiveRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectRequest.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectRequest.md new file mode 100755 index 000000000..0e69d7a2a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsRefParamObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `RefObjParam` | [RefQueryParamObj](../../models/shared/RefQueryParamObj.md) | :heavy_minus_sign: | N/A | +| `RefObjParamExploded` | [RefQueryParamObjExploded](../../models/shared/RefQueryParamObjExploded.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectRes.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectRes.md new file mode 100755 index 000000000..76ca7dc0e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsRefParamObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | [FormQueryParamsRefParamObjectResArgs](../../models/operations/FormQueryParamsRefParamObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/refParamObject?bool=true&int=1&num=1.1&refObjParam=bool%2Ctrue%2Cint%2C1%2Cnum%2C1.1%2Cstr%2Ctest&str=test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectResArgs.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectResArgs.md new file mode 100755 index 000000000..d88bb5ad8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectResArgs.md @@ -0,0 +1,12 @@ +# FormQueryParamsRefParamObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `Bool` | *string* | :heavy_check_mark: | N/A | true | +| `Int` | *string* | :heavy_check_mark: | N/A | 1 | +| `Num` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `RefObjParam` | *string* | :heavy_check_mark: | N/A | bool,true,int,1,num,1.1,str,test | +| `Str` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectResponse.md b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectResponse.md new file mode 100755 index 000000000..4188612e8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/FormQueryParamsRefParamObjectResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsRefParamObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [FormQueryParamsRefParamObjectRes](../../models/operations/FormQueryParamsRefParamObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GetDocumentationPerLanguageRequest.md b/csharp-client-sdk/docs/models/operations/GetDocumentationPerLanguageRequest.md new file mode 100755 index 000000000..0a8d022fe --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GetDocumentationPerLanguageRequest.md @@ -0,0 +1,8 @@ +# GetDocumentationPerLanguageRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `Language` | *string* | :heavy_check_mark: | The language parameter for this endpoint. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GetDocumentationPerLanguageResponse.md b/csharp-client-sdk/docs/models/operations/GetDocumentationPerLanguageResponse.md new file mode 100755 index 000000000..92883f2b5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GetDocumentationPerLanguageResponse.md @@ -0,0 +1,10 @@ +# GetDocumentationPerLanguageResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GetGlobalNameOverride200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/GetGlobalNameOverride200ApplicationJSON.md new file mode 100755 index 000000000..05379b48e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GetGlobalNameOverride200ApplicationJSON.md @@ -0,0 +1,10 @@ +# GetGlobalNameOverride200ApplicationJSON + +A successful response that contains the simpleObject sent in the request body + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GetGlobalNameOverrideResponse.md b/csharp-client-sdk/docs/models/operations/GetGlobalNameOverrideResponse.md new file mode 100755 index 000000000..4d3cdf1a7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GetGlobalNameOverrideResponse.md @@ -0,0 +1,11 @@ +# GetGlobalNameOverrideResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `GetGlobalNameOverride200ApplicationJSONObject` | [GetGlobalNameOverride200ApplicationJSON](../../models/operations/GetGlobalNameOverride200ApplicationJSON.md) | :heavy_minus_sign: | A successful response that contains the simpleObject sent in the request body | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GetResourceRequest.md b/csharp-client-sdk/docs/models/operations/GetResourceRequest.md new file mode 100755 index 000000000..74da5d354 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GetResourceRequest.md @@ -0,0 +1,8 @@ +# GetResourceRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ResourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GetResourceResponse.md b/csharp-client-sdk/docs/models/operations/GetResourceResponse.md new file mode 100755 index 000000000..1b4f2d930 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GetResourceResponse.md @@ -0,0 +1,11 @@ +# GetResourceResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `ExampleResource` | [ExampleResource](../../models/shared/ExampleResource.md) | :heavy_minus_sign: | OK | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalBearerAuthResponse.md b/csharp-client-sdk/docs/models/operations/GlobalBearerAuthResponse.md new file mode 100755 index 000000000..adb9a7e54 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalBearerAuthResponse.md @@ -0,0 +1,11 @@ +# GlobalBearerAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [GlobalBearerAuthToken](../../models/operations/GlobalBearerAuthToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalBearerAuthToken.md b/csharp-client-sdk/docs/models/operations/GlobalBearerAuthToken.md new file mode 100755 index 000000000..125c7ae2f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalBearerAuthToken.md @@ -0,0 +1,11 @@ +# GlobalBearerAuthToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetRequest.md b/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetRequest.md new file mode 100755 index 000000000..18b0baeda --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetRequest.md @@ -0,0 +1,8 @@ +# GlobalPathParameterGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `GlobalPathParam` | *long* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetRes.md b/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetRes.md new file mode 100755 index 000000000..0d128c511 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetRes.md @@ -0,0 +1,10 @@ +# GlobalPathParameterGetRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetResponse.md b/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetResponse.md new file mode 100755 index 000000000..51a7dedd9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalPathParameterGetResponse.md @@ -0,0 +1,11 @@ +# GlobalPathParameterGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [GlobalPathParameterGetRes](../../models/operations/GlobalPathParameterGetRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetRequest.md b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetRequest.md new file mode 100755 index 000000000..37e4338dd --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetRequest.md @@ -0,0 +1,8 @@ +# GlobalsQueryParameterGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `GlobalQueryParam` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetRes.md b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetRes.md new file mode 100755 index 000000000..6797b5ff3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetRes.md @@ -0,0 +1,10 @@ +# GlobalsQueryParameterGetRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `Args` | [GlobalsQueryParameterGetResArgs](../../models/operations/GlobalsQueryParameterGetResArgs.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetResArgs.md b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetResArgs.md new file mode 100755 index 000000000..b91513df0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetResArgs.md @@ -0,0 +1,8 @@ +# GlobalsQueryParameterGetResArgs + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `GlobalQueryParam` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetResponse.md b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetResponse.md new file mode 100755 index 000000000..230d2259c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GlobalsQueryParameterGetResponse.md @@ -0,0 +1,11 @@ +# GlobalsQueryParameterGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [GlobalsQueryParameterGetRes](../../models/operations/GlobalsQueryParameterGetRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GroupFirstGetResponse.md b/csharp-client-sdk/docs/models/operations/GroupFirstGetResponse.md new file mode 100755 index 000000000..78e8cfa03 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GroupFirstGetResponse.md @@ -0,0 +1,10 @@ +# GroupFirstGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/GroupSecondGetResponse.md b/csharp-client-sdk/docs/models/operations/GroupSecondGetResponse.md new file mode 100755 index 000000000..7a9ba4bf6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/GroupSecondGetResponse.md @@ -0,0 +1,10 @@ +# GroupSecondGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsArrayRequest.md b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayRequest.md new file mode 100755 index 000000000..0db11e523 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayRequest.md @@ -0,0 +1,8 @@ +# HeaderParamsArrayRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `XHeaderArray` | List<*string*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsArrayRes.md b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayRes.md new file mode 100755 index 000000000..dd3546343 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayRes.md @@ -0,0 +1,10 @@ +# HeaderParamsArrayRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Headers` | [HeaderParamsArrayResHeaders](../../models/operations/HeaderParamsArrayResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsArrayResHeaders.md b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayResHeaders.md new file mode 100755 index 000000000..fee659498 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayResHeaders.md @@ -0,0 +1,8 @@ +# HeaderParamsArrayResHeaders + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `XHeaderArray` | *string* | :heavy_check_mark: | N/A | test1,test2 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsArrayResponse.md b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayResponse.md new file mode 100755 index 000000000..a4db03b63 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsArrayResponse.md @@ -0,0 +1,11 @@ +# HeaderParamsArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [HeaderParamsArrayRes](../../models/operations/HeaderParamsArrayRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsMapRequest.md b/csharp-client-sdk/docs/models/operations/HeaderParamsMapRequest.md new file mode 100755 index 000000000..939fb2c29 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsMapRequest.md @@ -0,0 +1,9 @@ +# HeaderParamsMapRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `XHeaderMap` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `XHeaderMapExplode` | Dictionary | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsMapRes.md b/csharp-client-sdk/docs/models/operations/HeaderParamsMapRes.md new file mode 100755 index 000000000..90f846ab5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsMapRes.md @@ -0,0 +1,10 @@ +# HeaderParamsMapRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `Headers` | [HeaderParamsMapResHeaders](../../models/operations/HeaderParamsMapResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsMapResHeaders.md b/csharp-client-sdk/docs/models/operations/HeaderParamsMapResHeaders.md new file mode 100755 index 000000000..dcc67f174 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsMapResHeaders.md @@ -0,0 +1,9 @@ +# HeaderParamsMapResHeaders + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `XHeaderMap` | *string* | :heavy_check_mark: | N/A | key1,value1,key2,value2 | +| `XHeaderMapExplode` | *string* | :heavy_check_mark: | N/A | test1=val1,test2=val2 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsMapResponse.md b/csharp-client-sdk/docs/models/operations/HeaderParamsMapResponse.md new file mode 100755 index 000000000..8ac04bd21 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsMapResponse.md @@ -0,0 +1,11 @@ +# HeaderParamsMapResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [HeaderParamsMapRes](../../models/operations/HeaderParamsMapRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsObjectRequest.md b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectRequest.md new file mode 100755 index 000000000..111c64ef8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectRequest.md @@ -0,0 +1,9 @@ +# HeaderParamsObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `XHeaderObj` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `XHeaderObjExplode` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsObjectRes.md b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectRes.md new file mode 100755 index 000000000..5a8b4617d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectRes.md @@ -0,0 +1,10 @@ +# HeaderParamsObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `Headers` | [HeaderParamsObjectResHeaders](../../models/operations/HeaderParamsObjectResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsObjectResHeaders.md b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectResHeaders.md new file mode 100755 index 000000000..628a4a0c6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectResHeaders.md @@ -0,0 +1,9 @@ +# HeaderParamsObjectResHeaders + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XHeaderObj` | *string* | :heavy_check_mark: | N/A | any,any,bigint,8821239038968084,bigintStr,9223372036854775808,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,decimal,3.141592653589793,decimalStr,3.14159265358979344719667586,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional | +| `XHeaderObjExplode` | *string* | :heavy_check_mark: | N/A | any=any,bigint=8821239038968084,bigintStr=9223372036854775808,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000000001Z,decimal=3.141592653589793,decimalStr=3.14159265358979344719667586,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsObjectResponse.md b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectResponse.md new file mode 100755 index 000000000..3c219aed0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsObjectResponse.md @@ -0,0 +1,11 @@ +# HeaderParamsObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [HeaderParamsObjectRes](../../models/operations/HeaderParamsObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveRequest.md b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveRequest.md new file mode 100755 index 000000000..fda02d259 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveRequest.md @@ -0,0 +1,11 @@ +# HeaderParamsPrimitiveRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `XHeaderBoolean` | *bool* | :heavy_check_mark: | N/A | true | +| `XHeaderInteger` | *long* | :heavy_check_mark: | N/A | 1 | +| `XHeaderNumber` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `XHeaderString` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveRes.md b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveRes.md new file mode 100755 index 000000000..df873e275 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveRes.md @@ -0,0 +1,10 @@ +# HeaderParamsPrimitiveRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `Headers` | [HeaderParamsPrimitiveResHeaders](../../models/operations/HeaderParamsPrimitiveResHeaders.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveResHeaders.md b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveResHeaders.md new file mode 100755 index 000000000..30fbf6bf9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveResHeaders.md @@ -0,0 +1,11 @@ +# HeaderParamsPrimitiveResHeaders + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `XHeaderBoolean` | *string* | :heavy_check_mark: | N/A | true | +| `XHeaderInteger` | *string* | :heavy_check_mark: | N/A | 1 | +| `XHeaderNumber` | *string* | :heavy_check_mark: | N/A | 1.1 | +| `XHeaderString` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveResponse.md new file mode 100755 index 000000000..7c2f807b4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/HeaderParamsPrimitiveResponse.md @@ -0,0 +1,11 @@ +# HeaderParamsPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [HeaderParamsPrimitiveRes](../../models/operations/HeaderParamsPrimitiveRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/IgnoredGenerationGet200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/IgnoredGenerationGet200ApplicationJSON.md new file mode 100755 index 000000000..121ed7680 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/IgnoredGenerationGet200ApplicationJSON.md @@ -0,0 +1,10 @@ +# IgnoredGenerationGet200ApplicationJSON + +A successful response that contains the simpleObject sent in the request body + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/IgnoredGenerationGetResponse.md b/csharp-client-sdk/docs/models/operations/IgnoredGenerationGetResponse.md new file mode 100755 index 000000000..9ad821fcf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/IgnoredGenerationGetResponse.md @@ -0,0 +1,11 @@ +# IgnoredGenerationGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `IgnoredGenerationGet200ApplicationJSONObject` | [IgnoredGenerationGet200ApplicationJSON](../../models/operations/IgnoredGenerationGet200ApplicationJSON.md) | :heavy_minus_sign: | A successful response that contains the simpleObject sent in the request body | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/IgnoresPostApplicationJSON.md b/csharp-client-sdk/docs/models/operations/IgnoresPostApplicationJSON.md new file mode 100755 index 000000000..755667534 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/IgnoresPostApplicationJSON.md @@ -0,0 +1,9 @@ +# IgnoresPostApplicationJSON + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `CallbackUrl` | *string* | :heavy_minus_sign: | N/A | +| `TestProp` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/IgnoresPostRequest.md b/csharp-client-sdk/docs/models/operations/IgnoresPostRequest.md new file mode 100755 index 000000000..f2084dc5b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/IgnoresPostRequest.md @@ -0,0 +1,9 @@ +# IgnoresPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `RequestBody` | [IgnoresPostApplicationJSON](../../models/operations/IgnoresPostApplicationJSON.md) | :heavy_check_mark: | N/A | +| `TestParam` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/IgnoresPostResponse.md b/csharp-client-sdk/docs/models/operations/IgnoresPostResponse.md new file mode 100755 index 000000000..f58ea6214 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/IgnoresPostResponse.md @@ -0,0 +1,11 @@ +# IgnoresPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `HttpBinSimpleJsonObject` | [HttpBinSimpleJsonObject](../../models/shared/HttpBinSimpleJsonObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRequest.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRequest.md new file mode 100755 index 000000000..ce9823eea --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRequest.md @@ -0,0 +1,9 @@ +# InlineBodyAndParamConflictRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [InlineBodyAndParamConflictRequestBody](../../models/operations/InlineBodyAndParamConflictRequestBody.md) | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRequestBody.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRequestBody.md new file mode 100755 index 000000000..faa8ee993 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRequestBody.md @@ -0,0 +1,8 @@ +# InlineBodyAndParamConflictRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRes.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRes.md new file mode 100755 index 000000000..168aab405 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictRes.md @@ -0,0 +1,11 @@ +# InlineBodyAndParamConflictRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | +| `Json` | [InlineBodyAndParamConflictResJson](../../models/operations/InlineBodyAndParamConflictResJson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictResJson.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictResJson.md new file mode 100755 index 000000000..fa68dd2fc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictResJson.md @@ -0,0 +1,8 @@ +# InlineBodyAndParamConflictResJson + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictResponse.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictResponse.md new file mode 100755 index 000000000..4bf480366 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamConflictResponse.md @@ -0,0 +1,11 @@ +# InlineBodyAndParamConflictResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [InlineBodyAndParamConflictRes](../../models/operations/InlineBodyAndParamConflictRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRequest.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRequest.md new file mode 100755 index 000000000..b8e2a7507 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRequest.md @@ -0,0 +1,9 @@ +# InlineBodyAndParamNoConflictRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [InlineBodyAndParamNoConflictRequestBody](../../models/operations/InlineBodyAndParamNoConflictRequestBody.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRequestBody.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRequestBody.md new file mode 100755 index 000000000..cb8df3235 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRequestBody.md @@ -0,0 +1,8 @@ +# InlineBodyAndParamNoConflictRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `BodyStr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRes.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRes.md new file mode 100755 index 000000000..ab3e0b941 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictRes.md @@ -0,0 +1,11 @@ +# InlineBodyAndParamNoConflictRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | +| `Json` | [InlineBodyAndParamNoConflictResJson](../../models/operations/InlineBodyAndParamNoConflictResJson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictResJson.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictResJson.md new file mode 100755 index 000000000..e414e1828 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictResJson.md @@ -0,0 +1,8 @@ +# InlineBodyAndParamNoConflictResJson + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `BodyStr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictResponse.md b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictResponse.md new file mode 100755 index 000000000..0aa22ae16 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/InlineBodyAndParamNoConflictResponse.md @@ -0,0 +1,11 @@ +# InlineBodyAndParamNoConflictResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [InlineBodyAndParamNoConflictRes](../../models/operations/InlineBodyAndParamNoConflictRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectRequest.md b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectRequest.md new file mode 100755 index 000000000..3a1f15256 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectRequest.md @@ -0,0 +1,9 @@ +# JsonQueryParamsObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `DeepObjParam` | [DeepObject](../../models/shared/DeepObject.md) | :heavy_check_mark: | N/A | +| `SimpleObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectRes.md b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectRes.md new file mode 100755 index 000000000..50e5ef0a7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectRes.md @@ -0,0 +1,11 @@ +# JsonQueryParamsObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | [JsonQueryParamsObjectResArgs](../../models/operations/JsonQueryParamsObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/json/obj?deepObjParam={"any"%3A{"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"arr"%3A[{"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C{"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}]%2C"bool"%3Atrue%2C"int"%3A1%2C"map"%3A{"key"%3A{"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"key2"%3A{"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}}%2C"num"%3A1.1%2C"obj"%3A{"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"str"%3A"test"}&simpleObjParam={"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"} | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectResArgs.md b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectResArgs.md new file mode 100755 index 000000000..d8cc5aebf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectResArgs.md @@ -0,0 +1,9 @@ +# JsonQueryParamsObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `DeepObjParam` | *string* | :heavy_check_mark: | N/A | {"any":{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"},"arr":[{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"},{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"}],"bool":true,"int":1,"map":{"key":{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"},"key2":{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"}},"num":1.1,"obj":{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"},"str":"test"} | +| `SimpleObjParam` | *string* | :heavy_check_mark: | N/A | {"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"} | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectResponse.md b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectResponse.md new file mode 100755 index 000000000..16dd36df4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/JsonQueryParamsObjectResponse.md @@ -0,0 +1,11 @@ +# JsonQueryParamsObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [JsonQueryParamsObjectRes](../../models/operations/JsonQueryParamsObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseRequest.md b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseRequest.md new file mode 100755 index 000000000..69389b91f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseRequest.md @@ -0,0 +1,10 @@ +# MixedParametersCamelCaseRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `HeaderParam` | *string* | :heavy_check_mark: | N/A | headerValue | +| `PathParam` | *string* | :heavy_check_mark: | N/A | pathValue | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | queryValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseRes.md b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseRes.md new file mode 100755 index 000000000..61364860c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseRes.md @@ -0,0 +1,12 @@ +# MixedParametersCamelCaseRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `Args` | [MixedParametersCamelCaseResArgs](../../models/operations/MixedParametersCamelCaseResArgs.md) | :heavy_check_mark: | N/A | | +| `Headers` | [MixedParametersCamelCaseResHeaders](../../models/operations/MixedParametersCamelCaseResHeaders.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/mixedParams/path/pathValue/camelcase?query_string_param=queryValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResArgs.md b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResArgs.md new file mode 100755 index 000000000..da70c1038 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResArgs.md @@ -0,0 +1,8 @@ +# MixedParametersCamelCaseResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | queryValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResHeaders.md b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResHeaders.md new file mode 100755 index 000000000..1250cc6c3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResHeaders.md @@ -0,0 +1,8 @@ +# MixedParametersCamelCaseResHeaders + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `HeaderParam` | *string* | :heavy_check_mark: | N/A | headerValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResponse.md new file mode 100755 index 000000000..0182a4637 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersCamelCaseResponse.md @@ -0,0 +1,11 @@ +# MixedParametersCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [MixedParametersCamelCaseRes](../../models/operations/MixedParametersCamelCaseRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesRequest.md b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesRequest.md new file mode 100755 index 000000000..572090644 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesRequest.md @@ -0,0 +1,10 @@ +# MixedParametersPrimitivesRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `HeaderParam` | *string* | :heavy_check_mark: | N/A | headerValue | +| `PathParam` | *string* | :heavy_check_mark: | N/A | pathValue | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | queryValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesRes.md b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesRes.md new file mode 100755 index 000000000..f13f7380e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesRes.md @@ -0,0 +1,12 @@ +# MixedParametersPrimitivesRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `Args` | [MixedParametersPrimitivesResArgs](../../models/operations/MixedParametersPrimitivesResArgs.md) | :heavy_check_mark: | N/A | | +| `Headers` | [MixedParametersPrimitivesResHeaders](../../models/operations/MixedParametersPrimitivesResHeaders.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResArgs.md b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResArgs.md new file mode 100755 index 000000000..cca52b129 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResArgs.md @@ -0,0 +1,8 @@ +# MixedParametersPrimitivesResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | queryValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResHeaders.md b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResHeaders.md new file mode 100755 index 000000000..ebf450068 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResHeaders.md @@ -0,0 +1,8 @@ +# MixedParametersPrimitivesResHeaders + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Headerparam` | *string* | :heavy_check_mark: | N/A | headerValue | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResponse.md b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResponse.md new file mode 100755 index 000000000..0c8b56cc4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedParametersPrimitivesResponse.md @@ -0,0 +1,11 @@ +# MixedParametersPrimitivesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [MixedParametersPrimitivesRes](../../models/operations/MixedParametersPrimitivesRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedQueryParamsRequest.md b/csharp-client-sdk/docs/models/operations/MixedQueryParamsRequest.md new file mode 100755 index 000000000..ccec6b820 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedQueryParamsRequest.md @@ -0,0 +1,10 @@ +# MixedQueryParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `DeepObjectParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `FormParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `JsonParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedQueryParamsRes.md b/csharp-client-sdk/docs/models/operations/MixedQueryParamsRes.md new file mode 100755 index 000000000..8df318e86 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedQueryParamsRes.md @@ -0,0 +1,11 @@ +# MixedQueryParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}&num=1.1&str=test&strOpt=testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedQueryParamsResponse.md b/csharp-client-sdk/docs/models/operations/MixedQueryParamsResponse.md new file mode 100755 index 000000000..84b90e169 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedQueryParamsResponse.md @@ -0,0 +1,11 @@ +# MixedQueryParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [MixedQueryParamsRes](../../models/operations/MixedQueryParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedTypeOneOfPostRes.md b/csharp-client-sdk/docs/models/operations/MixedTypeOneOfPostRes.md new file mode 100755 index 000000000..501f5987d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedTypeOneOfPostRes.md @@ -0,0 +1,10 @@ +# MixedTypeOneOfPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MixedTypeOneOfPostResponse.md b/csharp-client-sdk/docs/models/operations/MixedTypeOneOfPostResponse.md new file mode 100755 index 000000000..96a9e5297 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MixedTypeOneOfPostResponse.md @@ -0,0 +1,11 @@ +# MixedTypeOneOfPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [MixedTypeOneOfPostRes](../../models/operations/MixedTypeOneOfPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleMixedOptionsAuthResponse.md b/csharp-client-sdk/docs/models/operations/MultipleMixedOptionsAuthResponse.md new file mode 100755 index 000000000..6fb30496e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleMixedOptionsAuthResponse.md @@ -0,0 +1,10 @@ +# MultipleMixedOptionsAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleMixedOptionsAuthSecurity.md b/csharp-client-sdk/docs/models/operations/MultipleMixedOptionsAuthSecurity.md new file mode 100755 index 000000000..4993b4abb --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleMixedOptionsAuthSecurity.md @@ -0,0 +1,9 @@ +# MultipleMixedOptionsAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ApiKeyAuthNew` | *string* | :heavy_minus_sign: | N/A | Token | +| `BasicAuth` | [SchemeBasicAuth](../../models/shared/SchemeBasicAuth.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleMixedSchemeAuthResponse.md b/csharp-client-sdk/docs/models/operations/MultipleMixedSchemeAuthResponse.md new file mode 100755 index 000000000..b48902f77 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleMixedSchemeAuthResponse.md @@ -0,0 +1,10 @@ +# MultipleMixedSchemeAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleMixedSchemeAuthSecurity.md b/csharp-client-sdk/docs/models/operations/MultipleMixedSchemeAuthSecurity.md new file mode 100755 index 000000000..ce97863a9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleMixedSchemeAuthSecurity.md @@ -0,0 +1,9 @@ +# MultipleMixedSchemeAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ApiKeyAuthNew` | *string* | :heavy_check_mark: | N/A | Token | +| `BasicAuth` | [SchemeBasicAuth](../../models/shared/SchemeBasicAuth.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.md new file mode 100755 index 000000000..751b097c8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.md @@ -0,0 +1,10 @@ +# MultipleOptionsWithMixedSchemesAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.md new file mode 100755 index 000000000..89d9b0031 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.md @@ -0,0 +1,9 @@ +# MultipleOptionsWithMixedSchemesAuthSecurity + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `Option1` | [MultipleOptionsWithMixedSchemesAuthSecurityOption1](../../models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.md) | :heavy_minus_sign: | N/A | +| `Option2` | [MultipleOptionsWithMixedSchemesAuthSecurityOption2](../../models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.md new file mode 100755 index 000000000..84f9732df --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.md @@ -0,0 +1,9 @@ +# MultipleOptionsWithMixedSchemesAuthSecurityOption1 + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `ApiKeyAuthNew` | *string* | :heavy_check_mark: | N/A | Token | +| `Oauth2` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.md new file mode 100755 index 000000000..7025185a8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.md @@ -0,0 +1,9 @@ +# MultipleOptionsWithMixedSchemesAuthSecurityOption2 + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `ApiKeyAuthNew` | *string* | :heavy_check_mark: | N/A | Token | +| `BasicAuth` | [SchemeBasicAuth](../../models/shared/SchemeBasicAuth.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.md new file mode 100755 index 000000000..9fbed177c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.md @@ -0,0 +1,10 @@ +# MultipleOptionsWithSimpleSchemesAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.md new file mode 100755 index 000000000..987f9ab7c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.md @@ -0,0 +1,9 @@ +# MultipleOptionsWithSimpleSchemesAuthSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `Option1` | [MultipleOptionsWithSimpleSchemesAuthSecurityOption1](../../models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.md) | :heavy_minus_sign: | N/A | +| `Option2` | [MultipleOptionsWithSimpleSchemesAuthSecurityOption2](../../models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.md new file mode 100755 index 000000000..7b18649c5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.md @@ -0,0 +1,9 @@ +# MultipleOptionsWithSimpleSchemesAuthSecurityOption1 + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `ApiKeyAuthNew` | *string* | :heavy_check_mark: | N/A | Token | +| `Oauth2` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.md b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.md new file mode 100755 index 000000000..0fdbbdc2b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.md @@ -0,0 +1,9 @@ +# MultipleOptionsWithSimpleSchemesAuthSecurityOption2 + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `ApiKeyAuthNew` | *string* | :heavy_check_mark: | N/A | Token | +| `OpenIdConnect` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OPENID_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleSimpleOptionsAuthResponse.md b/csharp-client-sdk/docs/models/operations/MultipleSimpleOptionsAuthResponse.md new file mode 100755 index 000000000..b1cb5dd38 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleSimpleOptionsAuthResponse.md @@ -0,0 +1,10 @@ +# MultipleSimpleOptionsAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleSimpleOptionsAuthSecurity.md b/csharp-client-sdk/docs/models/operations/MultipleSimpleOptionsAuthSecurity.md new file mode 100755 index 000000000..f076e32ee --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleSimpleOptionsAuthSecurity.md @@ -0,0 +1,9 @@ +# MultipleSimpleOptionsAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `ApiKeyAuthNew` | *string* | :heavy_minus_sign: | N/A | Token | +| `Oauth2` | *string* | :heavy_minus_sign: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleSimpleSchemeAuthResponse.md b/csharp-client-sdk/docs/models/operations/MultipleSimpleSchemeAuthResponse.md new file mode 100755 index 000000000..71a6531b5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleSimpleSchemeAuthResponse.md @@ -0,0 +1,10 @@ +# MultipleSimpleSchemeAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/MultipleSimpleSchemeAuthSecurity.md b/csharp-client-sdk/docs/models/operations/MultipleSimpleSchemeAuthSecurity.md new file mode 100755 index 000000000..ed39527af --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/MultipleSimpleSchemeAuthSecurity.md @@ -0,0 +1,9 @@ +# MultipleSimpleSchemeAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `ApiKeyAuthNew` | *string* | :heavy_check_mark: | N/A | Token | +| `Oauth2` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NameOverrideGetEnumNameOverride.md b/csharp-client-sdk/docs/models/operations/NameOverrideGetEnumNameOverride.md new file mode 100755 index 000000000..9056f5918 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NameOverrideGetEnumNameOverride.md @@ -0,0 +1,12 @@ +# NameOverrideGetEnumNameOverride + +An enum type + + +## Values + +| Name | Value | +| -------- | -------- | +| `Value1` | value1 | +| `Value2` | value2 | +| `Value3` | value3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NameOverrideGetRequest.md b/csharp-client-sdk/docs/models/operations/NameOverrideGetRequest.md new file mode 100755 index 000000000..dc515d9d9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NameOverrideGetRequest.md @@ -0,0 +1,9 @@ +# NameOverrideGetRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `TestEnumQueryParam` | [NameOverrideGetEnumNameOverride](../../models/operations/NameOverrideGetEnumNameOverride.md) | :heavy_check_mark: | An enum type | value3 | +| `TestQueryParam` | *string* | :heavy_check_mark: | N/A | example | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NameOverrideGetResponse.md b/csharp-client-sdk/docs/models/operations/NameOverrideGetResponse.md new file mode 100755 index 000000000..2b98cd7ca --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NameOverrideGetResponse.md @@ -0,0 +1,11 @@ +# NameOverrideGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `OverriddenResponse` | [OverriddenResponse](../../models/operations/OverriddenResponse.md) | :heavy_minus_sign: | A successful response that contains the simpleObject sent in the request body | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NestFirstGetResponse.md b/csharp-client-sdk/docs/models/operations/NestFirstGetResponse.md new file mode 100755 index 000000000..033807e9a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NestFirstGetResponse.md @@ -0,0 +1,10 @@ +# NestFirstGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NestedFirstGetResponse.md b/csharp-client-sdk/docs/models/operations/NestedFirstGetResponse.md new file mode 100755 index 000000000..607170b74 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NestedFirstGetResponse.md @@ -0,0 +1,10 @@ +# NestedFirstGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NestedGetResponse.md b/csharp-client-sdk/docs/models/operations/NestedGetResponse.md new file mode 100755 index 000000000..bdc4f968e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NestedGetResponse.md @@ -0,0 +1,10 @@ +# NestedGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NestedSecondGetResponse.md b/csharp-client-sdk/docs/models/operations/NestedSecondGetResponse.md new file mode 100755 index 000000000..c367f4645 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NestedSecondGetResponse.md @@ -0,0 +1,10 @@ +# NestedSecondGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableObjectPostRes.md b/csharp-client-sdk/docs/models/operations/NullableObjectPostRes.md new file mode 100755 index 000000000..09fb507cb --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableObjectPostRes.md @@ -0,0 +1,10 @@ +# NullableObjectPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `Json` | [NullableObject](../../models/shared/NullableObject.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableObjectPostResponse.md new file mode 100755 index 000000000..5daa6a82e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableObjectPostResponse.md @@ -0,0 +1,11 @@ +# NullableObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [NullableObjectPostRes](../../models/operations/NullableObjectPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableOneOfRefInObjectPostRes.md b/csharp-client-sdk/docs/models/operations/NullableOneOfRefInObjectPostRes.md new file mode 100755 index 000000000..8ab2eac9a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableOneOfRefInObjectPostRes.md @@ -0,0 +1,10 @@ +# NullableOneOfRefInObjectPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `Json` | [NullableOneOfRefInObject](../../models/shared/NullableOneOfRefInObject.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableOneOfRefInObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableOneOfRefInObjectPostResponse.md new file mode 100755 index 000000000..44de3aa9d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableOneOfRefInObjectPostResponse.md @@ -0,0 +1,11 @@ +# NullableOneOfRefInObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [NullableOneOfRefInObjectPostRes](../../models/operations/NullableOneOfRefInObjectPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableOneOfSchemaPostRes.md b/csharp-client-sdk/docs/models/operations/NullableOneOfSchemaPostRes.md new file mode 100755 index 000000000..6a9c3c122 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableOneOfSchemaPostRes.md @@ -0,0 +1,10 @@ +# NullableOneOfSchemaPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableOneOfSchemaPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableOneOfSchemaPostResponse.md new file mode 100755 index 000000000..8b319014b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableOneOfSchemaPostResponse.md @@ -0,0 +1,11 @@ +# NullableOneOfSchemaPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [NullableOneOfSchemaPostRes](../../models/operations/NullableOneOfSchemaPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableOneOfTypeInObjectPostRes.md b/csharp-client-sdk/docs/models/operations/NullableOneOfTypeInObjectPostRes.md new file mode 100755 index 000000000..dea262322 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableOneOfTypeInObjectPostRes.md @@ -0,0 +1,10 @@ +# NullableOneOfTypeInObjectPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `Json` | [NullableOneOfTypeInObject](../../models/shared/NullableOneOfTypeInObject.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableOneOfTypeInObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableOneOfTypeInObjectPostResponse.md new file mode 100755 index 000000000..0701764b5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableOneOfTypeInObjectPostResponse.md @@ -0,0 +1,11 @@ +# NullableOneOfTypeInObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [NullableOneOfTypeInObjectPostRes](../../models/operations/NullableOneOfTypeInObjectPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBody.md b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBody.md new file mode 100755 index 000000000..dce2fc511 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBody.md @@ -0,0 +1,10 @@ +# NullableRequiredEmptyObjectPostRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `NullableRequiredObj` | [NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj](../../models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.md) | :heavy_check_mark: | N/A | +| `RequiredObj` | [NullableRequiredEmptyObjectPostRequestBodyRequiredObj](../../models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.md) | :heavy_check_mark: | N/A | +| `NullableOptionalObj` | [NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj](../../models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.md b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.md new file mode 100755 index 000000000..4bd625eb3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.md @@ -0,0 +1,7 @@ +# NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.md b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.md new file mode 100755 index 000000000..f5a542eea --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.md @@ -0,0 +1,7 @@ +# NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.md b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.md new file mode 100755 index 000000000..20a807232 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.md @@ -0,0 +1,7 @@ +# NullableRequiredEmptyObjectPostRequestBodyRequiredObj + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostResponse.md new file mode 100755 index 000000000..3423dedc1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredEmptyObjectPostResponse.md @@ -0,0 +1,11 @@ +# NullableRequiredEmptyObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `NullableRequiredEmptyObjectPost200ApplicationJSONString` | *string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostRequestBody.md b/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostRequestBody.md new file mode 100755 index 000000000..0cecf4c32 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostRequestBody.md @@ -0,0 +1,11 @@ +# NullableRequiredPropertyPostRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `NullableRequiredArray` | List<*double*> | :heavy_check_mark: | N/A | +| `NullableRequiredEnum` | [NullableRequiredPropertyPostRequestBodyNullableRequiredEnum](../../models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.md) | :heavy_check_mark: | N/A | +| `NullableRequiredInt` | *long* | :heavy_check_mark: | N/A | +| `NullableOptionalInt` | *long* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.md b/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.md new file mode 100755 index 000000000..318a96e26 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.md @@ -0,0 +1,9 @@ +# NullableRequiredPropertyPostRequestBodyNullableRequiredEnum + + +## Values + +| Name | Value | +| -------- | -------- | +| `First` | first | +| `Second` | second | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostResponse.md new file mode 100755 index 000000000..f2c08b99d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredPropertyPostResponse.md @@ -0,0 +1,11 @@ +# NullableRequiredPropertyPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `NullableRequiredPropertyPost200ApplicationJSONString` | *string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredSharedObjectPostRequestBody.md b/csharp-client-sdk/docs/models/operations/NullableRequiredSharedObjectPostRequestBody.md new file mode 100755 index 000000000..2f5aa0b75 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredSharedObjectPostRequestBody.md @@ -0,0 +1,9 @@ +# NullableRequiredSharedObjectPostRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `NullableRequiredObj` | [NullableObject](../../models/shared/NullableObject.md) | :heavy_check_mark: | N/A | +| `NullableOptionalObj` | [NullableObject](../../models/shared/NullableObject.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableRequiredSharedObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableRequiredSharedObjectPostResponse.md new file mode 100755 index 000000000..e6c7489d6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableRequiredSharedObjectPostResponse.md @@ -0,0 +1,11 @@ +# NullableRequiredSharedObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `NullableRequiredSharedObjectPost200ApplicationJSONString` | *string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableTypedObjectPostRes.md b/csharp-client-sdk/docs/models/operations/NullableTypedObjectPostRes.md new file mode 100755 index 000000000..af7116640 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableTypedObjectPostRes.md @@ -0,0 +1,10 @@ +# NullableTypedObjectPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `Json` | [TypedObject1](../../models/shared/TypedObject1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/NullableTypedObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/NullableTypedObjectPostResponse.md new file mode 100755 index 000000000..4645c4849 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/NullableTypedObjectPostResponse.md @@ -0,0 +1,11 @@ +# NullableTypedObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [NullableTypedObjectPostRes](../../models/operations/NullableTypedObjectPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2AuthNewResponse.md b/csharp-client-sdk/docs/models/operations/Oauth2AuthNewResponse.md new file mode 100755 index 000000000..c3b65fe6b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2AuthNewResponse.md @@ -0,0 +1,10 @@ +# Oauth2AuthNewResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2AuthNewSecurity.md b/csharp-client-sdk/docs/models/operations/Oauth2AuthNewSecurity.md new file mode 100755 index 000000000..da9c6f91a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2AuthNewSecurity.md @@ -0,0 +1,8 @@ +# Oauth2AuthNewSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `Oauth2` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2AuthResponse.md b/csharp-client-sdk/docs/models/operations/Oauth2AuthResponse.md new file mode 100755 index 000000000..c70002962 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2AuthResponse.md @@ -0,0 +1,11 @@ +# Oauth2AuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [Oauth2AuthToken](../../models/operations/Oauth2AuthToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2AuthSecurity.md b/csharp-client-sdk/docs/models/operations/Oauth2AuthSecurity.md new file mode 100755 index 000000000..fb7574128 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2AuthSecurity.md @@ -0,0 +1,8 @@ +# Oauth2AuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `Oauth2` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2AuthToken.md b/csharp-client-sdk/docs/models/operations/Oauth2AuthToken.md new file mode 100755 index 000000000..230cecdf2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2AuthToken.md @@ -0,0 +1,11 @@ +# Oauth2AuthToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2OverrideRequest.md b/csharp-client-sdk/docs/models/operations/Oauth2OverrideRequest.md new file mode 100755 index 000000000..d78037296 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2OverrideRequest.md @@ -0,0 +1,7 @@ +# Oauth2OverrideRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2OverrideResponse.md b/csharp-client-sdk/docs/models/operations/Oauth2OverrideResponse.md new file mode 100755 index 000000000..f15b300e5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2OverrideResponse.md @@ -0,0 +1,11 @@ +# Oauth2OverrideResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [Oauth2OverrideToken](../../models/operations/Oauth2OverrideToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2OverrideSecurity.md b/csharp-client-sdk/docs/models/operations/Oauth2OverrideSecurity.md new file mode 100755 index 000000000..ba9a8bc16 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2OverrideSecurity.md @@ -0,0 +1,8 @@ +# Oauth2OverrideSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `Oauth2` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/Oauth2OverrideToken.md b/csharp-client-sdk/docs/models/operations/Oauth2OverrideToken.md new file mode 100755 index 000000000..a82609a85 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/Oauth2OverrideToken.md @@ -0,0 +1,11 @@ +# Oauth2OverrideToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ObjectCircularReferenceGetResponse.md b/csharp-client-sdk/docs/models/operations/ObjectCircularReferenceGetResponse.md new file mode 100755 index 000000000..cc657edaf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ObjectCircularReferenceGetResponse.md @@ -0,0 +1,11 @@ +# ObjectCircularReferenceGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ObjectCircularReferenceObject` | [ObjectCircularReferenceObject](../../models/shared/ObjectCircularReferenceObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OneOfCircularReferenceGetResponse.md b/csharp-client-sdk/docs/models/operations/OneOfCircularReferenceGetResponse.md new file mode 100755 index 000000000..ff1737098 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OneOfCircularReferenceGetResponse.md @@ -0,0 +1,11 @@ +# OneOfCircularReferenceGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `OneOfCircularReferenceObject` | [OneOfCircularReferenceObject](../../models/shared/OneOfCircularReferenceObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthNewResponse.md b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthNewResponse.md new file mode 100755 index 000000000..9a0c1783f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthNewResponse.md @@ -0,0 +1,10 @@ +# OpenIdConnectAuthNewResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthNewSecurity.md b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthNewSecurity.md new file mode 100755 index 000000000..39d908349 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthNewSecurity.md @@ -0,0 +1,8 @@ +# OpenIdConnectAuthNewSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `OpenIdConnect` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OPENID_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthResponse.md b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthResponse.md new file mode 100755 index 000000000..cdd78aa4e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthResponse.md @@ -0,0 +1,11 @@ +# OpenIdConnectAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Token` | [OpenIdConnectAuthToken](../../models/operations/OpenIdConnectAuthToken.md) | :heavy_minus_sign: | Successful authentication. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthSecurity.md b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthSecurity.md new file mode 100755 index 000000000..f06b059cb --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthSecurity.md @@ -0,0 +1,8 @@ +# OpenIdConnectAuthSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `OpenIdConnect` | *string* | :heavy_check_mark: | N/A | Bearer YOUR_OPENID_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthToken.md b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthToken.md new file mode 100755 index 000000000..0a8887822 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OpenIdConnectAuthToken.md @@ -0,0 +1,11 @@ +# OpenIdConnectAuthToken + +Successful authentication. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Authenticated` | *bool* | :heavy_check_mark: | N/A | +| `Token` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/OverriddenResponse.md b/csharp-client-sdk/docs/models/operations/OverriddenResponse.md new file mode 100755 index 000000000..c811d93a1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/OverriddenResponse.md @@ -0,0 +1,10 @@ +# OverriddenResponse + +A successful response that contains the simpleObject sent in the request body + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationCursorBodyRequestBody.md b/csharp-client-sdk/docs/models/operations/PaginationCursorBodyRequestBody.md new file mode 100755 index 000000000..d21875444 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationCursorBodyRequestBody.md @@ -0,0 +1,8 @@ +# PaginationCursorBodyRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Cursor` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationCursorBodyRes.md b/csharp-client-sdk/docs/models/operations/PaginationCursorBodyRes.md new file mode 100755 index 000000000..fedb5b83a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationCursorBodyRes.md @@ -0,0 +1,11 @@ +# PaginationCursorBodyRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NumPages` | *long* | :heavy_check_mark: | N/A | +| `ResultArray` | List<*long*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationCursorBodyResponse.md b/csharp-client-sdk/docs/models/operations/PaginationCursorBodyResponse.md new file mode 100755 index 000000000..14e0512c6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationCursorBodyResponse.md @@ -0,0 +1,11 @@ +# PaginationCursorBodyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PaginationCursorBodyRes](../../models/operations/PaginationCursorBodyRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationCursorParamsRequest.md b/csharp-client-sdk/docs/models/operations/PaginationCursorParamsRequest.md new file mode 100755 index 000000000..61fcf2061 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationCursorParamsRequest.md @@ -0,0 +1,8 @@ +# PaginationCursorParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Cursor` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationCursorParamsRes.md b/csharp-client-sdk/docs/models/operations/PaginationCursorParamsRes.md new file mode 100755 index 000000000..8cdf6b577 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationCursorParamsRes.md @@ -0,0 +1,11 @@ +# PaginationCursorParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NumPages` | *long* | :heavy_check_mark: | N/A | +| `ResultArray` | List<*long*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationCursorParamsResponse.md b/csharp-client-sdk/docs/models/operations/PaginationCursorParamsResponse.md new file mode 100755 index 000000000..3ad9da470 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationCursorParamsResponse.md @@ -0,0 +1,11 @@ +# PaginationCursorParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PaginationCursorParamsRes](../../models/operations/PaginationCursorParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetBodyRes.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetBodyRes.md new file mode 100755 index 000000000..2ce7992b0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetBodyRes.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetOffsetBodyRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NumPages` | *long* | :heavy_check_mark: | N/A | +| `ResultArray` | List<*long*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetBodyResponse.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetBodyResponse.md new file mode 100755 index 000000000..ebf161773 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetBodyResponse.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetOffsetBodyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PaginationLimitOffsetOffsetBodyRes](../../models/operations/PaginationLimitOffsetOffsetBodyRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsRequest.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsRequest.md new file mode 100755 index 000000000..d4cd6eada --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsRequest.md @@ -0,0 +1,9 @@ +# PaginationLimitOffsetOffsetParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Limit` | *long* | :heavy_minus_sign: | N/A | +| `Offset` | *long* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsRes.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsRes.md new file mode 100755 index 000000000..8f898da55 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsRes.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetOffsetParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NumPages` | *long* | :heavy_check_mark: | N/A | +| `ResultArray` | List<*long*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsResponse.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsResponse.md new file mode 100755 index 000000000..a1005dd3a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetOffsetParamsResponse.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetOffsetParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PaginationLimitOffsetOffsetParamsRes](../../models/operations/PaginationLimitOffsetOffsetParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageBodyRes.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageBodyRes.md new file mode 100755 index 000000000..cb07de373 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageBodyRes.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetPageBodyRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NumPages` | *long* | :heavy_check_mark: | N/A | +| `ResultArray` | List<*long*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageBodyResponse.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageBodyResponse.md new file mode 100755 index 000000000..9246c0319 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageBodyResponse.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetPageBodyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PaginationLimitOffsetPageBodyRes](../../models/operations/PaginationLimitOffsetPageBodyRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsRequest.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsRequest.md new file mode 100755 index 000000000..433be66bc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsRequest.md @@ -0,0 +1,8 @@ +# PaginationLimitOffsetPageParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Page` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsRes.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsRes.md new file mode 100755 index 000000000..eda1d51d6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsRes.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetPageParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NumPages` | *long* | :heavy_check_mark: | N/A | +| `ResultArray` | List<*long*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsResponse.md b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsResponse.md new file mode 100755 index 000000000..47987d9f0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PaginationLimitOffsetPageParamsResponse.md @@ -0,0 +1,11 @@ +# PaginationLimitOffsetPageParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PaginationLimitOffsetPageParamsRes](../../models/operations/PaginationLimitOffsetPageParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PathParameterJsonRequest.md b/csharp-client-sdk/docs/models/operations/PathParameterJsonRequest.md new file mode 100755 index 000000000..5259e162a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PathParameterJsonRequest.md @@ -0,0 +1,8 @@ +# PathParameterJsonRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `JsonObj` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PathParameterJsonRes.md b/csharp-client-sdk/docs/models/operations/PathParameterJsonRes.md new file mode 100755 index 000000000..686c22da9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PathParameterJsonRes.md @@ -0,0 +1,10 @@ +# PathParameterJsonRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/pathParams/json/{"any":"any","bigint":8821239038968084,"bigintStr":"9223372036854775808","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.000000001Z","decimal":3.141592653589793,"decimalStr":"3.14159265358979344719667586","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"} | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PathParameterJsonResponse.md b/csharp-client-sdk/docs/models/operations/PathParameterJsonResponse.md new file mode 100755 index 000000000..ff3107db3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PathParameterJsonResponse.md @@ -0,0 +1,11 @@ +# PathParameterJsonResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PathParameterJsonRes](../../models/operations/PathParameterJsonRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md new file mode 100755 index 000000000..13251a40a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md @@ -0,0 +1,11 @@ +# PipeDelimitedQueryParamsArrayRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ArrParam` | List<*string*> | :heavy_minus_sign: | N/A | | +| `ArrParamExploded` | List<*long*> | :heavy_minus_sign: | N/A | | +| `MapParam` | Dictionary | :heavy_minus_sign: | N/A | [object Object] | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRes.md b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRes.md new file mode 100755 index 000000000..a52a088e1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRes.md @@ -0,0 +1,11 @@ +# PipeDelimitedQueryParamsArrayRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `Args` | [PipeDelimitedQueryParamsArrayResArgs](../../models/operations/PipeDelimitedQueryParamsArrayResArgs.md) | :heavy_check_mark: | N/A | | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/pipe/array?arrParam=test\|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1\|val1\|key2\|val2&objParam=any\|any\|bigint\|8821239038968084\|bigintStr\|9223372036854775808\|bool\|true\|boolOpt\|true\|date\|2020-01-01\|dateTime\|2020-01-01T00%3A00%3A00.000000001Z\|decimal\|3.141592653589793\|decimalStr\|3.14159265358979344719667586\|enum\|one\|float32\|1.1\|int\|1\|int32\|1\|int32Enum\|55\|intEnum\|2\|num\|1.1\|str\|test\|strOpt\|testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayResArgs.md b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayResArgs.md new file mode 100755 index 000000000..0459d04ec --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayResArgs.md @@ -0,0 +1,9 @@ +# PipeDelimitedQueryParamsArrayResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ArrParam` | *string* | :heavy_check_mark: | N/A | test\|test2 | +| `ArrParamExploded` | List<*string*> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayResponse.md b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayResponse.md new file mode 100755 index 000000000..92b05ea43 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayResponse.md @@ -0,0 +1,11 @@ +# PipeDelimitedQueryParamsArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PipeDelimitedQueryParamsArrayRes](../../models/operations/PipeDelimitedQueryParamsArrayRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PrimitiveTypeOneOfPostRes.md b/csharp-client-sdk/docs/models/operations/PrimitiveTypeOneOfPostRes.md new file mode 100755 index 000000000..74f933ebc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PrimitiveTypeOneOfPostRes.md @@ -0,0 +1,10 @@ +# PrimitiveTypeOneOfPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PrimitiveTypeOneOfPostResponse.md b/csharp-client-sdk/docs/models/operations/PrimitiveTypeOneOfPostResponse.md new file mode 100755 index 000000000..1cd8fed75 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PrimitiveTypeOneOfPostResponse.md @@ -0,0 +1,11 @@ +# PrimitiveTypeOneOfPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [PrimitiveTypeOneOfPostRes](../../models/operations/PrimitiveTypeOneOfPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md new file mode 100755 index 000000000..54f12e33b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md @@ -0,0 +1,10 @@ +# PutAnythingIgnoredGeneration200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/PutAnythingIgnoredGenerationResponse.md b/csharp-client-sdk/docs/models/operations/PutAnythingIgnoredGenerationResponse.md new file mode 100755 index 000000000..ea73eb55d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/PutAnythingIgnoredGenerationResponse.md @@ -0,0 +1,11 @@ +# PutAnythingIgnoredGenerationResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `PutAnythingIgnoredGeneration200ApplicationJSONObject` | [PutAnythingIgnoredGeneration200ApplicationJSON](../../models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.md new file mode 100755 index 000000000..6cbd0140c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `SimpleObjectCamelCases` | List<[SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.md new file mode 100755 index 000000000..23f77ae77 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayObjCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ArrObjValueCamelCase` | [ArrObjValueCamelCase](../../models/shared/ArrObjValueCamelCase.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.md new file mode 100755 index 000000000..f86b46db6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayObjResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ArrObjValue` | [ArrObjValue](../../models/shared/ArrObjValue.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.md new file mode 100755 index 000000000..79d11fd9e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Arrs` | List> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.md new file mode 100755 index 000000000..9246c6879 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Arrs` | List> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.md new file mode 100755 index 000000000..157dccd35 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayOfArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Arrs` | List> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.md new file mode 100755 index 000000000..f6c4acf41 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Maps` | List> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.md new file mode 100755 index 000000000..7a10df4ed --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayOfMapResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Maps` | List> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.md new file mode 100755 index 000000000..c514237ed --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayOfPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Strings` | List<*string*> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayResponse.md new file mode 100755 index 000000000..11c8ba466 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonArrayResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `SimpleObjects` | List<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.md new file mode 100755 index 000000000..cf2852de3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostApplicationJsonDeepCamelCaseRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `Json` | [DeepObjectCamelCase](../../models/shared/DeepObjectCamelCase.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.md new file mode 100755 index 000000000..c6458de99 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonDeepCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostApplicationJsonDeepCamelCaseRes](../../models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepRes.md new file mode 100755 index 000000000..18f536875 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostApplicationJsonDeepRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `Json` | [DeepObject](../../models/shared/DeepObject.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepResponse.md new file mode 100755 index 000000000..8d83bbf04 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonDeepResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonDeepResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostApplicationJsonDeepRes](../../models/operations/RequestBodyPostApplicationJsonDeepRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.md new file mode 100755 index 000000000..1474ff6e7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.md new file mode 100755 index 000000000..1134dea91 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapObjCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `MapObjValueCamelCase` | [MapObjValueCamelCase](../../models/shared/MapObjValueCamelCase.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapObjResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapObjResponse.md new file mode 100755 index 000000000..fef81b41f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapObjResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapObjResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `MapObjValue` | [MapObjValue](../../models/shared/MapObjValue.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.md new file mode 100755 index 000000000..a3163507f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.md new file mode 100755 index 000000000..6c9fc2858 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapOfArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.md new file mode 100755 index 000000000..2de36b763 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.md new file mode 100755 index 000000000..cb367a888 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.md new file mode 100755 index 000000000..8ecec44f6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapOfMapResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary> | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.md new file mode 100755 index 000000000..dc6f18345 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapOfPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapResponse.md new file mode 100755 index 000000000..283c0972b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMapResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMapResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | Dictionary | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.md new file mode 100755 index 000000000..9238041d4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostApplicationJsonMultipleJsonFilteredRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.md new file mode 100755 index 000000000..8ef0379c5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonMultipleJsonFilteredResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostApplicationJsonMultipleJsonFilteredRes](../../models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.md new file mode 100755 index 000000000..992857fd1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostApplicationJsonSimpleCamelCaseRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.md new file mode 100755 index 000000000..9a7521180 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonSimpleCamelCaseResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostApplicationJsonSimpleCamelCaseRes](../../models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleRes.md new file mode 100755 index 000000000..9628b5e6c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostApplicationJsonSimpleRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleResponse.md new file mode 100755 index 000000000..b1af45d48 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostApplicationJsonSimpleResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostApplicationJsonSimpleResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostApplicationJsonSimpleRes](../../models/operations/RequestBodyPostApplicationJsonSimpleRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.md new file mode 100755 index 000000000..b38b58681 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostComplexNumberTypes200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `Json` | [ComplexNumberTypes](../../models/shared/ComplexNumberTypes.md) | :heavy_check_mark: | N/A | +| `Url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypesRequest.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypesRequest.md new file mode 100755 index 000000000..cb6c653bc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypesRequest.md @@ -0,0 +1,16 @@ +# RequestBodyPostComplexNumberTypesRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `ComplexNumberTypes` | [ComplexNumberTypes](../../models/shared/ComplexNumberTypes.md) | :heavy_check_mark: | N/A | +| `PathBigInt` | *BigInteger* | :heavy_check_mark: | N/A | +| `PathBigIntStr` | *BigInteger* | :heavy_check_mark: | N/A | +| `PathDecimal` | *decimal* | :heavy_check_mark: | N/A | +| `PathDecimalStr` | *decimal* | :heavy_check_mark: | N/A | +| `QueryBigInt` | *BigInteger* | :heavy_check_mark: | N/A | +| `QueryBigIntStr` | *BigInteger* | :heavy_check_mark: | N/A | +| `QueryDecimal` | *decimal* | :heavy_check_mark: | N/A | +| `QueryDecimalStr` | *decimal* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypesResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypesResponse.md new file mode 100755 index 000000000..088797e1c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostComplexNumberTypesResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostComplexNumberTypesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostComplexNumberTypes200ApplicationJSONObject` | [RequestBodyPostComplexNumberTypes200ApplicationJSON](../../models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.md new file mode 100755 index 000000000..805c4a38b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostDefaultsAndConsts200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `Json` | [DefaultsAndConstsOutput](../../models/shared/DefaultsAndConstsOutput.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostDefaultsAndConstsResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostDefaultsAndConstsResponse.md new file mode 100755 index 000000000..c7569bb52 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostDefaultsAndConstsResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostDefaultsAndConstsResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostDefaultsAndConsts200ApplicationJSONObject` | [RequestBodyPostDefaultsAndConsts200ApplicationJSON](../../models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.md new file mode 100755 index 000000000..202f43393 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostEmptyObject200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Empty` | [RequestBodyPostEmptyObject200ApplicationJSONEmpty](../../models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.md) | :heavy_minus_sign: | N/A | +| `EmptyRespWithEmptyProperies` | [RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies](../../models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.md new file mode 100755 index 000000000..6248bf538 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.md @@ -0,0 +1,7 @@ +# RequestBodyPostEmptyObject200ApplicationJSONEmpty + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.md new file mode 100755 index 000000000..27326d373 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.md @@ -0,0 +1,7 @@ +# RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBody.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBody.md new file mode 100755 index 000000000..bc0eb6342 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBody.md @@ -0,0 +1,9 @@ +# RequestBodyPostEmptyObjectRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Empty` | [RequestBodyPostEmptyObjectRequestBodyEmpty](../../models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.md) | :heavy_minus_sign: | N/A | +| `EmptyWithEmptyProperties` | [RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties](../../models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.md new file mode 100755 index 000000000..60e906506 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.md @@ -0,0 +1,7 @@ +# RequestBodyPostEmptyObjectRequestBodyEmpty + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.md new file mode 100755 index 000000000..66bb29b41 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.md @@ -0,0 +1,7 @@ +# RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectResponse.md new file mode 100755 index 000000000..47330796b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostEmptyObjectResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostEmptyObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostEmptyObject200ApplicationJSONObject` | [RequestBodyPostEmptyObject200ApplicationJSON](../../models/operations/RequestBodyPostEmptyObject200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepRes.md new file mode 100755 index 000000000..03b43783a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostFormDeepRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPostFormDeepResForm](../../models/operations/RequestBodyPostFormDeepResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepResForm.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepResForm.md new file mode 100755 index 000000000..21eb1ad96 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepResForm.md @@ -0,0 +1,14 @@ +# RequestBodyPostFormDeepResForm + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Arr` | *string* | :heavy_check_mark: | N/A | +| `Bool` | *string* | :heavy_check_mark: | N/A | +| `Int` | *string* | :heavy_check_mark: | N/A | +| `Map` | *string* | :heavy_check_mark: | N/A | +| `Num` | *string* | :heavy_check_mark: | N/A | +| `Obj` | *string* | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepResponse.md new file mode 100755 index 000000000..9e44f9bf4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormDeepResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostFormDeepResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostFormDeepRes](../../models/operations/RequestBodyPostFormDeepRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormMapPrimitiveRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormMapPrimitiveRes.md new file mode 100755 index 000000000..7f3df766f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormMapPrimitiveRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostFormMapPrimitiveRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Form` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormMapPrimitiveResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormMapPrimitiveResponse.md new file mode 100755 index 000000000..79b058c33 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormMapPrimitiveResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostFormMapPrimitiveResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostFormMapPrimitiveRes](../../models/operations/RequestBodyPostFormMapPrimitiveRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md new file mode 100755 index 000000000..db2d3c05b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostFormSimpleRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPostFormSimpleResForm](../../models/operations/RequestBodyPostFormSimpleResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResForm.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResForm.md new file mode 100755 index 000000000..666bb54f6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResForm.md @@ -0,0 +1,21 @@ +# RequestBodyPostFormSimpleResForm + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Any` | *string* | :heavy_check_mark: | N/A | +| `Bool` | *string* | :heavy_check_mark: | N/A | +| `BoolOpt` | *string* | :heavy_minus_sign: | N/A | +| `Date` | *string* | :heavy_check_mark: | N/A | +| `DateTime` | *string* | :heavy_check_mark: | N/A | +| `Enum` | *string* | :heavy_check_mark: | N/A | +| `Float32` | *string* | :heavy_check_mark: | N/A | +| `Int` | *string* | :heavy_check_mark: | N/A | +| `Int32` | *string* | :heavy_check_mark: | N/A | +| `IntOptNull` | *string* | :heavy_minus_sign: | N/A | +| `Num` | *string* | :heavy_check_mark: | N/A | +| `NumOptNull` | *string* | :heavy_minus_sign: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | +| `StrOpt` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResponse.md new file mode 100755 index 000000000..6eac3b6c4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostFormSimpleResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostFormSimpleResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostFormSimpleRes](../../models/operations/RequestBodyPostFormSimpleRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md new file mode 100755 index 000000000..79f1131d1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | List<*BigInteger*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.md new file mode 100755 index 000000000..0295b3d0a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | List<[LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.md new file mode 100755 index 000000000..e30f5e96f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | List<*decimal*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.md new file mode 100755 index 000000000..de698a8b9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesBigInt200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | *BigInteger* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.md new file mode 100755 index 000000000..cbebc92fa --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | *BigInteger* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.md new file mode 100755 index 000000000..9b2c0f1c4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostJSONDataTypesBoolean200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.md new file mode 100755 index 000000000..b73ccd3ce --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesDate200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.md new file mode 100755 index 000000000..41b3c0ae8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesDateTime200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.md new file mode 100755 index 000000000..de52e659d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesDecimal200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | *decimal* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.md new file mode 100755 index 000000000..fcd029bbc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | *decimal* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.md new file mode 100755 index 000000000..b74a323aa --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostJSONDataTypesFloat32200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.md new file mode 100755 index 000000000..92de69200 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostJSONDataTypesInt32200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.md new file mode 100755 index 000000000..fecfc0769 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostJSONDataTypesInteger200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.md new file mode 100755 index 000000000..b99450fd1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.md new file mode 100755 index 000000000..f3882d0fd --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.md new file mode 100755 index 000000000..60aa79aa2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.md @@ -0,0 +1,11 @@ +# RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `Data` | *string* | :heavy_check_mark: | N/A | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.md new file mode 100755 index 000000000..9e34456c7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostJSONDataTypesNumber200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.md new file mode 100755 index 000000000..9becf1a04 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostJSONDataTypesString200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.md new file mode 100755 index 000000000..be2eed9b2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesArrayBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.md new file mode 100755 index 000000000..7064e581a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesArrayDateResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.md new file mode 100755 index 000000000..f5b4aaf24 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesArrayDecimalStrResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.md new file mode 100755 index 000000000..09231ce0c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesBigIntResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesBigInt200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesBigInt200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.md new file mode 100755 index 000000000..69c6e1498 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesBigIntStrResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.md new file mode 100755 index 000000000..d9d2d06e1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesBooleanResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesBoolean200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesBoolean200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDateResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDateResponse.md new file mode 100755 index 000000000..9c39994c3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDateResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesDateResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesDate200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesDate200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.md new file mode 100755 index 000000000..a4615520b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesDateTimeResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesDateTime200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesDateTime200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.md new file mode 100755 index 000000000..374696c68 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesDecimal200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesDecimal200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.md new file mode 100755 index 000000000..1b30b5fc1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesDecimalStrResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesFloat32Response.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesFloat32Response.md new file mode 100755 index 000000000..3d92cccb7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesFloat32Response.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesFloat32Response + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesFloat32200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesFloat32200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesInt32Response.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesInt32Response.md new file mode 100755 index 000000000..b35fb0e3e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesInt32Response.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesInt32Response + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesInt32200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesInt32200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.md new file mode 100755 index 000000000..3eb750831 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesIntegerResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesInteger200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesInteger200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.md new file mode 100755 index 000000000..e8d2f3bcf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesMapBigIntStrResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.md new file mode 100755 index 000000000..da0e57149 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesMapDateTimeResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.md new file mode 100755 index 000000000..b84de1659 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesMapDecimalResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesNumberResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesNumberResponse.md new file mode 100755 index 000000000..69c4561b9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesNumberResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesNumberResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesNumber200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesNumber200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesStringResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesStringResponse.md new file mode 100755 index 000000000..949f4263f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostJsonDataTypesStringResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostJsonDataTypesStringResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostJSONDataTypesString200ApplicationJSONObject` | [RequestBodyPostJSONDataTypesString200ApplicationJSON](../../models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.md new file mode 100755 index 000000000..8c8c1ccb2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesComponentFilteredRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.md new file mode 100755 index 000000000..37c323360 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesComponentFilteredResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesComponentFilteredRes](../../models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.md new file mode 100755 index 000000000..1c56334cc --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | +| `Num` | *double* | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.md new file mode 100755 index 000000000..f064072d9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesInlineFilteredRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.md new file mode 100755 index 000000000..6936dcc9b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesInlineFilteredResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesInlineFilteredRes](../../models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.md new file mode 100755 index 000000000..25229465c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesSplitApplicationJSON + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | +| `Num` | *double* | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.md new file mode 100755 index 000000000..f4a57e7ef --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool3` | *bool* | :heavy_check_mark: | N/A | +| `Num3` | *double* | :heavy_check_mark: | N/A | +| `Str3` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.md new file mode 100755 index 000000000..bb5d784d4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitFormRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Form` | Dictionary | :heavy_minus_sign: | N/A | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.md new file mode 100755 index 000000000..163140353 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitFormResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesSplitFormRes](../../models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.md new file mode 100755 index 000000000..7e6db966c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitJsonRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Form` | Dictionary | :heavy_minus_sign: | N/A | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.md new file mode 100755 index 000000000..6921b4679 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitJsonResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesSplitJsonRes](../../models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.md new file mode 100755 index 000000000..99ab0403a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesSplitMultipartFormData + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool2` | *bool* | :heavy_check_mark: | N/A | +| `Num2` | *double* | :heavy_check_mark: | N/A | +| `Str2` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.md new file mode 100755 index 000000000..da5a3d8a1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitMultipartRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Form` | Dictionary | :heavy_minus_sign: | N/A | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.md new file mode 100755 index 000000000..3cb1b547b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitMultipartResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesSplitMultipartRes](../../models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.md new file mode 100755 index 000000000..a95ebd899 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesSplitParamApplicationJSON + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | +| `Num` | *double* | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.md new file mode 100755 index 000000000..625dabdc4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool3` | *bool* | :heavy_check_mark: | N/A | +| `Num3` | *double* | :heavy_check_mark: | N/A | +| `Str3` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.md new file mode 100755 index 000000000..949114549 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.md @@ -0,0 +1,9 @@ +# RequestBodyPostMultipleContentTypesSplitParamFormRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.md new file mode 100755 index 000000000..3fcd524af --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.md @@ -0,0 +1,12 @@ +# RequestBodyPostMultipleContentTypesSplitParamFormRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Args` | Dictionary | :heavy_minus_sign: | N/A | +| `Form` | Dictionary | :heavy_minus_sign: | N/A | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.md new file mode 100755 index 000000000..b324d29c3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitParamFormResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesSplitParamFormRes](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.md new file mode 100755 index 000000000..30cde6694 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.md @@ -0,0 +1,9 @@ +# RequestBodyPostMultipleContentTypesSplitParamJsonRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [RequestBodyPostMultipleContentTypesSplitParamApplicationJSON](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.md new file mode 100755 index 000000000..ff25a297d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.md @@ -0,0 +1,12 @@ +# RequestBodyPostMultipleContentTypesSplitParamJsonRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Args` | Dictionary | :heavy_minus_sign: | N/A | +| `Form` | Dictionary | :heavy_minus_sign: | N/A | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.md new file mode 100755 index 000000000..414ac0cb2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitParamJsonResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesSplitParamJsonRes](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.md new file mode 100755 index 000000000..f4ac373d3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.md @@ -0,0 +1,10 @@ +# RequestBodyPostMultipleContentTypesSplitParamMultipartFormData + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool2` | *bool* | :heavy_check_mark: | N/A | +| `Num2` | *double* | :heavy_check_mark: | N/A | +| `Str2` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.md new file mode 100755 index 000000000..cc55351ed --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.md @@ -0,0 +1,9 @@ +# RequestBodyPostMultipleContentTypesSplitParamMultipartRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [RequestBodyPostMultipleContentTypesSplitParamMultipartFormData](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.md new file mode 100755 index 000000000..497fc4256 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.md @@ -0,0 +1,12 @@ +# RequestBodyPostMultipleContentTypesSplitParamMultipartRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Args` | Dictionary | :heavy_minus_sign: | N/A | +| `Form` | Dictionary | :heavy_minus_sign: | N/A | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.md new file mode 100755 index 000000000..572a71a9d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostMultipleContentTypesSplitParamMultipartResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPostMultipleContentTypesSplitParamMultipartRes](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.md new file mode 100755 index 000000000..53076b762 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.md new file mode 100755 index 000000000..66406fe1e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostNotNullableNotRequiredStringBodyResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject` | [RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON](../../models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullArray200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullArray200ApplicationJSON.md new file mode 100755 index 000000000..395ccfb58 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullArray200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostNullArray200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullArrayResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullArrayResponse.md new file mode 100755 index 000000000..d3ebe3b74 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullArrayResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostNullArrayResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostNullArray200ApplicationJSONObject` | [RequestBodyPostNullArray200ApplicationJSON](../../models/operations/RequestBodyPostNullArray200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.md new file mode 100755 index 000000000..1f37b1060 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostNullDictionary200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullDictionaryResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullDictionaryResponse.md new file mode 100755 index 000000000..92a0edcfb --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullDictionaryResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostNullDictionaryResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostNullDictionary200ApplicationJSONObject` | [RequestBodyPostNullDictionary200ApplicationJSON](../../models/operations/RequestBodyPostNullDictionary200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.md new file mode 100755 index 000000000..f66defeb6 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.md new file mode 100755 index 000000000..0e850f8d3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostNullableNotRequiredStringBodyResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject` | [RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON](../../models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.md new file mode 100755 index 000000000..49c1f34fb --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.md @@ -0,0 +1,10 @@ +# RequestBodyPostNullableRequiredStringBody200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.md new file mode 100755 index 000000000..a9a007232 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPostNullableRequiredStringBodyResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `RequestBodyPostNullableRequiredStringBody200ApplicationJSONObject` | [RequestBodyPostNullableRequiredStringBody200ApplicationJSON](../../models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesRes.md new file mode 100755 index 000000000..9a4727024 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesRes.md @@ -0,0 +1,10 @@ +# RequestBodyPutBytesRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesResponse.md new file mode 100755 index 000000000..cd5c75d42 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutBytesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutBytesRes](../../models/operations/RequestBodyPutBytesRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsRequest.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsRequest.md new file mode 100755 index 000000000..accd16e67 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsRequest.md @@ -0,0 +1,9 @@ +# RequestBodyPutBytesWithParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `RequestBody` | *byte[]* | :heavy_check_mark: | N/A | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsRes.md new file mode 100755 index 000000000..06f8c63d0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsRes.md @@ -0,0 +1,11 @@ +# RequestBodyPutBytesWithParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `Args` | [RequestBodyPutBytesWithParamsResArgs](../../models/operations/RequestBodyPutBytesWithParamsResArgs.md) | :heavy_check_mark: | N/A | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsResArgs.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsResArgs.md new file mode 100755 index 000000000..20bbe00b9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsResArgs.md @@ -0,0 +1,8 @@ +# RequestBodyPutBytesWithParamsResArgs + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsResponse.md new file mode 100755 index 000000000..edd07a983 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutBytesWithParamsResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutBytesWithParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutBytesWithParamsRes](../../models/operations/RequestBodyPutBytesWithParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepRes.md new file mode 100755 index 000000000..992358d4e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepRes.md @@ -0,0 +1,10 @@ +# RequestBodyPutMultipartDeepRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPutMultipartDeepResForm](../../models/operations/RequestBodyPutMultipartDeepResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepResForm.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepResForm.md new file mode 100755 index 000000000..39ac66be2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepResForm.md @@ -0,0 +1,14 @@ +# RequestBodyPutMultipartDeepResForm + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Arr` | *string* | :heavy_check_mark: | N/A | +| `Bool` | *string* | :heavy_check_mark: | N/A | +| `Int` | *string* | :heavy_check_mark: | N/A | +| `Map` | *string* | :heavy_check_mark: | N/A | +| `Num` | *string* | :heavy_check_mark: | N/A | +| `Obj` | *string* | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepResponse.md new file mode 100755 index 000000000..8e0952ec1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDeepResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutMultipartDeepResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutMultipartDeepRes](../../models/operations/RequestBodyPutMultipartDeepRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.md new file mode 100755 index 000000000..0d556e77a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartDifferentFileNameRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `DifferentFileName` | [RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName](../../models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.md new file mode 100755 index 000000000..58ac59073 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.md @@ -0,0 +1,9 @@ +# RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `Content` | *byte[]* | :heavy_check_mark: | N/A | +| `DifferentFileName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRes.md new file mode 100755 index 000000000..c7fa063cb --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameRes.md @@ -0,0 +1,10 @@ +# RequestBodyPutMultipartDifferentFileNameRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Files` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.md new file mode 100755 index 000000000..5c4f96b2b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutMultipartDifferentFileNameResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutMultipartDifferentFileNameRes](../../models/operations/RequestBodyPutMultipartDifferentFileNameRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRequestBody.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRequestBody.md new file mode 100755 index 000000000..7d95c6f6b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRequestBody.md @@ -0,0 +1,8 @@ +# RequestBodyPutMultipartFileRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `File` | [RequestBodyPutMultipartFileRequestBodyFile](../../models/operations/RequestBodyPutMultipartFileRequestBodyFile.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRequestBodyFile.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRequestBodyFile.md new file mode 100755 index 000000000..a2d06c716 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRequestBodyFile.md @@ -0,0 +1,9 @@ +# RequestBodyPutMultipartFileRequestBodyFile + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Content` | *byte[]* | :heavy_check_mark: | N/A | +| `File` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRes.md new file mode 100755 index 000000000..9ce716709 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileRes.md @@ -0,0 +1,10 @@ +# RequestBodyPutMultipartFileRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Files` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileResponse.md new file mode 100755 index 000000000..677f03dd0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartFileResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutMultipartFileResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutMultipartFileRes](../../models/operations/RequestBodyPutMultipartFileRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md new file mode 100755 index 000000000..70a14f0d8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleRes.md @@ -0,0 +1,10 @@ +# RequestBodyPutMultipartSimpleRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `Form` | [RequestBodyPutMultipartSimpleResForm](../../models/operations/RequestBodyPutMultipartSimpleResForm.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResForm.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResForm.md new file mode 100755 index 000000000..9c80861ec --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResForm.md @@ -0,0 +1,21 @@ +# RequestBodyPutMultipartSimpleResForm + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Any` | *string* | :heavy_check_mark: | N/A | +| `Bool` | *string* | :heavy_check_mark: | N/A | +| `BoolOpt` | *string* | :heavy_minus_sign: | N/A | +| `Date` | *string* | :heavy_check_mark: | N/A | +| `DateTime` | *string* | :heavy_check_mark: | N/A | +| `Enum` | *string* | :heavy_check_mark: | N/A | +| `Float32` | *string* | :heavy_check_mark: | N/A | +| `Int` | *string* | :heavy_check_mark: | N/A | +| `Int32` | *string* | :heavy_check_mark: | N/A | +| `IntOptNull` | *string* | :heavy_minus_sign: | N/A | +| `Num` | *string* | :heavy_check_mark: | N/A | +| `NumOptNull` | *string* | :heavy_minus_sign: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | +| `StrOpt` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResponse.md new file mode 100755 index 000000000..5b0b97ed8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutMultipartSimpleResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutMultipartSimpleResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutMultipartSimpleRes](../../models/operations/RequestBodyPutMultipartSimpleRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutStringRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringRes.md new file mode 100755 index 000000000..6654a9b23 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringRes.md @@ -0,0 +1,10 @@ +# RequestBodyPutStringRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutStringResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringResponse.md new file mode 100755 index 000000000..577b19d45 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutStringResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutStringRes](../../models/operations/RequestBodyPutStringRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsRequest.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsRequest.md new file mode 100755 index 000000000..e19285ea9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsRequest.md @@ -0,0 +1,9 @@ +# RequestBodyPutStringWithParamsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `RequestBody` | *string* | :heavy_check_mark: | N/A | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsRes.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsRes.md new file mode 100755 index 000000000..213ace1e2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsRes.md @@ -0,0 +1,11 @@ +# RequestBodyPutStringWithParamsRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `Args` | [RequestBodyPutStringWithParamsResArgs](../../models/operations/RequestBodyPutStringWithParamsResArgs.md) | :heavy_check_mark: | N/A | +| `Data` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsResArgs.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsResArgs.md new file mode 100755 index 000000000..c43dc8aa8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsResArgs.md @@ -0,0 +1,8 @@ +# RequestBodyPutStringWithParamsResArgs + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsResponse.md new file mode 100755 index 000000000..280715114 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyPutStringWithParamsResponse.md @@ -0,0 +1,11 @@ +# RequestBodyPutStringWithParamsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [RequestBodyPutStringWithParamsRes](../../models/operations/RequestBodyPutStringWithParamsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyReadAndWriteResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyReadAndWriteResponse.md new file mode 100755 index 000000000..dcd9eb32c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyReadAndWriteResponse.md @@ -0,0 +1,11 @@ +# RequestBodyReadAndWriteResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ReadWriteObject` | [ReadWriteObjectOutput](../../models/shared/ReadWriteObjectOutput.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyReadOnlyInputResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyReadOnlyInputResponse.md new file mode 100755 index 000000000..1d9e7c5bf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyReadOnlyInputResponse.md @@ -0,0 +1,11 @@ +# RequestBodyReadOnlyInputResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ReadOnlyObject` | [ReadOnlyObject](../../models/shared/ReadOnlyObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyReadOnlyUnionResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyReadOnlyUnionResponse.md new file mode 100755 index 000000000..f06770cd7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyReadOnlyUnionResponse.md @@ -0,0 +1,11 @@ +# RequestBodyReadOnlyUnionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `WeaklyTypedOneOfReadOnlyObject` | *object* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyReadWriteOnlyUnionResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyReadWriteOnlyUnionResponse.md new file mode 100755 index 000000000..cb84e2881 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyReadWriteOnlyUnionResponse.md @@ -0,0 +1,11 @@ +# RequestBodyReadWriteOnlyUnionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `WeaklyTypedOneOfReadWriteObject` | *object* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyOutputResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyOutputResponse.md new file mode 100755 index 000000000..57e71131e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyOutputResponse.md @@ -0,0 +1,11 @@ +# RequestBodyWriteOnlyOutputResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `WriteOnlyObject` | [WriteOnlyObjectOutput](../../models/shared/WriteOnlyObjectOutput.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyResponse.md new file mode 100755 index 000000000..db39502c8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyResponse.md @@ -0,0 +1,11 @@ +# RequestBodyWriteOnlyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ReadOnlyObject` | [ReadOnlyObject](../../models/shared/ReadOnlyObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyUnionResponse.md b/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyUnionResponse.md new file mode 100755 index 000000000..569fd887e --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RequestBodyWriteOnlyUnionResponse.md @@ -0,0 +1,11 @@ +# RequestBodyWriteOnlyUnionResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `WeaklyTypedOneOfWriteOnlyObject` | *object* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.md new file mode 100755 index 000000000..a92b9476c --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md new file mode 100755 index 000000000..44822cad4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesComplexNumbersPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject` | [ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON](../../models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md new file mode 100755 index 000000000..2cb7c84e1 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md new file mode 100755 index 000000000..7aeea9821 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesDatePostResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyAdditionalPropertiesDatePost200ApplicationJSONObject` | [ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON](../../models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md new file mode 100755 index 000000000..3eb7fd557 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md new file mode 100755 index 000000000..094c553b2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject` | [ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON](../../models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md new file mode 100755 index 000000000..d8f2d2536 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Json` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesPostResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesPostResponse.md new file mode 100755 index 000000000..ee0919bbd --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesPostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyAdditionalPropertiesPost200ApplicationJSONObject` | [ResponseBodyAdditionalPropertiesPost200ApplicationJSON](../../models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyBytesGetResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyBytesGetResponse.md new file mode 100755 index 000000000..e9e17a53d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyBytesGetResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyBytesGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Bytes` | *byte[]* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyEmptyWithHeadersRequest.md b/csharp-client-sdk/docs/models/operations/ResponseBodyEmptyWithHeadersRequest.md new file mode 100755 index 000000000..347658dd2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyEmptyWithHeadersRequest.md @@ -0,0 +1,9 @@ +# ResponseBodyEmptyWithHeadersRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `XNumberHeader` | *double* | :heavy_check_mark: | N/A | +| `XStringHeader` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyEmptyWithHeadersResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyEmptyWithHeadersResponse.md new file mode 100755 index 000000000..cfa972d53 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyEmptyWithHeadersResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyEmptyWithHeadersResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `Headers` | Dictionary> | :heavy_minus_sign: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyJsonGetResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyJsonGetResponse.md new file mode 100755 index 000000000..3f8a08349 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyJsonGetResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyJsonGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `HttpBinSimpleJsonObject` | [HttpBinSimpleJsonObject](../../models/shared/HttpBinSimpleJsonObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyOptionalGetResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyOptionalGetResponse.md new file mode 100755 index 000000000..25bb5f4e5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyOptionalGetResponse.md @@ -0,0 +1,12 @@ +# ResponseBodyOptionalGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyOptionalGet200TextPlainString` | *string* | :heavy_minus_sign: | OK | +| `TypedObject1` | [TypedObject1](../../models/shared/TypedObject1.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyReadOnlyResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyReadOnlyResponse.md new file mode 100755 index 000000000..95a6446d2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyReadOnlyResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyReadOnlyResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ReadOnlyObject` | [ReadOnlyObject](../../models/shared/ReadOnlyObject.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyStringGetResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyStringGetResponse.md new file mode 100755 index 000000000..c49e5f94d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyStringGetResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyStringGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Html` | *string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyXmlGetResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyXmlGetResponse.md new file mode 100755 index 000000000..f31fd2df5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyXmlGetResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyXmlGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Xml` | *string* | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.md new file mode 100755 index 000000000..f7787f6e5 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Json` | [ObjWithZeroValueComplexTypePtrs](../../models/shared/ObjWithZeroValueComplexTypePtrs.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.md b/csharp-client-sdk/docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.md new file mode 100755 index 000000000..b6a98d754 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyZeroValueComplexTypePtrsPostResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject` | [ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON](../../models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RetriesGetRequest.md b/csharp-client-sdk/docs/models/operations/RetriesGetRequest.md new file mode 100755 index 000000000..351f59520 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RetriesGetRequest.md @@ -0,0 +1,9 @@ +# RetriesGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `RequestId` | *string* | :heavy_check_mark: | N/A | +| `NumRetries` | *long* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RetriesGetResponse.md b/csharp-client-sdk/docs/models/operations/RetriesGetResponse.md new file mode 100755 index 000000000..9adfaa76a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RetriesGetResponse.md @@ -0,0 +1,11 @@ +# RetriesGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Retries` | [RetriesGetRetries](../../models/operations/RetriesGetRetries.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/RetriesGetRetries.md b/csharp-client-sdk/docs/models/operations/RetriesGetRetries.md new file mode 100755 index 000000000..a92a644b3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/RetriesGetRetries.md @@ -0,0 +1,10 @@ +# RetriesGetRetries + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Retries` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SelectGlobalServerResponse.md b/csharp-client-sdk/docs/models/operations/SelectGlobalServerResponse.md new file mode 100755 index 000000000..1ebfc49ac --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SelectGlobalServerResponse.md @@ -0,0 +1,11 @@ +# SelectGlobalServerResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `Headers` | Dictionary> | :heavy_minus_sign: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SelectServerWithIDResponse.md b/csharp-client-sdk/docs/models/operations/SelectServerWithIDResponse.md new file mode 100755 index 000000000..ccb24aa68 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SelectServerWithIDResponse.md @@ -0,0 +1,10 @@ +# SelectServerWithIDResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ServerWithProtocolTemplateResponse.md b/csharp-client-sdk/docs/models/operations/ServerWithProtocolTemplateResponse.md new file mode 100755 index 000000000..47a878300 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ServerWithProtocolTemplateResponse.md @@ -0,0 +1,10 @@ +# ServerWithProtocolTemplateResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ServerWithTemplatesGlobalResponse.md b/csharp-client-sdk/docs/models/operations/ServerWithTemplatesGlobalResponse.md new file mode 100755 index 000000000..5b737c825 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ServerWithTemplatesGlobalResponse.md @@ -0,0 +1,10 @@ +# ServerWithTemplatesGlobalResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ServerWithTemplatesResponse.md b/csharp-client-sdk/docs/models/operations/ServerWithTemplatesResponse.md new file mode 100755 index 000000000..075e7e942 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ServerWithTemplatesResponse.md @@ -0,0 +1,10 @@ +# ServerWithTemplatesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/ServersByIDWithTemplatesResponse.md b/csharp-client-sdk/docs/models/operations/ServersByIDWithTemplatesResponse.md new file mode 100755 index 000000000..296d3a168 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/ServersByIDWithTemplatesResponse.md @@ -0,0 +1,10 @@ +# ServersByIDWithTemplatesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysRequest.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysRequest.md new file mode 100755 index 000000000..d0a382311 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysRequest.md @@ -0,0 +1,8 @@ +# SimplePathParameterArraysRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ArrParam` | List<*string*> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysRes.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysRes.md new file mode 100755 index 000000000..35ef8e574 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysRes.md @@ -0,0 +1,10 @@ +# SimplePathParameterArraysRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/pathParams/arr/test,test2 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysResponse.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysResponse.md new file mode 100755 index 000000000..95a161ced --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterArraysResponse.md @@ -0,0 +1,11 @@ +# SimplePathParameterArraysResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [SimplePathParameterArraysRes](../../models/operations/SimplePathParameterArraysRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md new file mode 100755 index 000000000..f45c81819 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md @@ -0,0 +1,9 @@ +# SimplePathParameterMapsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `MapParam` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `MapParamExploded` | Dictionary | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsRes.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsRes.md new file mode 100755 index 000000000..43bc1e7f9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsRes.md @@ -0,0 +1,10 @@ +# SimplePathParameterMapsRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsResponse.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsResponse.md new file mode 100755 index 000000000..47377e203 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterMapsResponse.md @@ -0,0 +1,11 @@ +# SimplePathParameterMapsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [SimplePathParameterMapsRes](../../models/operations/SimplePathParameterMapsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsRequest.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsRequest.md new file mode 100755 index 000000000..18323f246 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsRequest.md @@ -0,0 +1,9 @@ +# SimplePathParameterObjectsRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `ObjParamExploded` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsRes.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsRes.md new file mode 100755 index 000000000..6c976bea2 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsRes.md @@ -0,0 +1,10 @@ +# SimplePathParameterObjectsRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/pathParams/obj/any,any,bigint,8821239038968084,bigintStr,9223372036854775808,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,decimal,3.141592653589793,decimalStr,3.14159265358979344719667586,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional/objExploded/any=any,bigint=8821239038968084,bigintStr=9223372036854775808,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000000001Z,decimal=3.141592653589793,decimalStr=3.14159265358979344719667586,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsResponse.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsResponse.md new file mode 100755 index 000000000..9532f5d52 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterObjectsResponse.md @@ -0,0 +1,11 @@ +# SimplePathParameterObjectsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [SimplePathParameterObjectsRes](../../models/operations/SimplePathParameterObjectsRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesRequest.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesRequest.md new file mode 100755 index 000000000..fa2bc0746 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesRequest.md @@ -0,0 +1,11 @@ +# SimplePathParameterPrimitivesRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `BoolParam` | *bool* | :heavy_check_mark: | N/A | true | +| `IntParam` | *long* | :heavy_check_mark: | N/A | 1 | +| `NumParam` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `StrParam` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesRes.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesRes.md new file mode 100755 index 000000000..5de13fe69 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesRes.md @@ -0,0 +1,10 @@ +# SimplePathParameterPrimitivesRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `Url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesResponse.md b/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesResponse.md new file mode 100755 index 000000000..8c74fd114 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/SimplePathParameterPrimitivesResponse.md @@ -0,0 +1,11 @@ +# SimplePathParameterPrimitivesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [SimplePathParameterPrimitivesRes](../../models/operations/SimplePathParameterPrimitivesRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StatusGetErrorRequest.md b/csharp-client-sdk/docs/models/operations/StatusGetErrorRequest.md new file mode 100755 index 000000000..cca8ec324 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StatusGetErrorRequest.md @@ -0,0 +1,8 @@ +# StatusGetErrorRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `StatusCode` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StatusGetErrorResponse.md b/csharp-client-sdk/docs/models/operations/StatusGetErrorResponse.md new file mode 100755 index 000000000..0447dc7e4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StatusGetErrorResponse.md @@ -0,0 +1,10 @@ +# StatusGetErrorResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md new file mode 100755 index 000000000..eddd41068 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md @@ -0,0 +1,12 @@ +# StatusGetXSpeakeasyErrors501ApplicationJSON + +Not Implemented + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `Code` | *string* | :heavy_minus_sign: | N/A | +| `Message` | *string* | :heavy_minus_sign: | N/A | +| `Type` | [ErrorType](../../models/shared/ErrorType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrorsRequest.md b/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrorsRequest.md new file mode 100755 index 000000000..d517dae6f --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrorsRequest.md @@ -0,0 +1,8 @@ +# StatusGetXSpeakeasyErrorsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `StatusCode` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrorsResponse.md b/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrorsResponse.md new file mode 100755 index 000000000..b3f4f105a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrorsResponse.md @@ -0,0 +1,12 @@ +# StatusGetXSpeakeasyErrorsResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Error` | [Error](../../models/shared/Error.md) | :heavy_minus_sign: | Internal Server Error | +| `StatusGetXSpeakeasyErrors501ApplicationJSONObject` | [StatusGetXSpeakeasyErrors501ApplicationJSON](../../models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md) | :heavy_minus_sign: | Not Implemented | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StronglyTypedOneOfPostRes.md b/csharp-client-sdk/docs/models/operations/StronglyTypedOneOfPostRes.md new file mode 100755 index 000000000..5779f2138 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StronglyTypedOneOfPostRes.md @@ -0,0 +1,10 @@ +# StronglyTypedOneOfPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/StronglyTypedOneOfPostResponse.md b/csharp-client-sdk/docs/models/operations/StronglyTypedOneOfPostResponse.md new file mode 100755 index 000000000..3f6cdb2c3 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/StronglyTypedOneOfPostResponse.md @@ -0,0 +1,11 @@ +# StronglyTypedOneOfPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [StronglyTypedOneOfPostRes](../../models/operations/StronglyTypedOneOfPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetRequest.md b/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetRequest.md new file mode 100755 index 000000000..cb63f579a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetRequest.md @@ -0,0 +1,8 @@ +# TelemetrySpeakeasyUserAgentGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `UserAgent` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetRes.md b/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetRes.md new file mode 100755 index 000000000..6d1d530c7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetRes.md @@ -0,0 +1,10 @@ +# TelemetrySpeakeasyUserAgentGetRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Headers` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetResponse.md b/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetResponse.md new file mode 100755 index 000000000..2c77ff680 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TelemetrySpeakeasyUserAgentGetResponse.md @@ -0,0 +1,11 @@ +# TelemetrySpeakeasyUserAgentGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [TelemetrySpeakeasyUserAgentGetRes](../../models/operations/TelemetrySpeakeasyUserAgentGetRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TelemetryUserAgentGetRes.md b/csharp-client-sdk/docs/models/operations/TelemetryUserAgentGetRes.md new file mode 100755 index 000000000..6152c3d1a --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TelemetryUserAgentGetRes.md @@ -0,0 +1,10 @@ +# TelemetryUserAgentGetRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `Headers` | Dictionary | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TelemetryUserAgentGetResponse.md b/csharp-client-sdk/docs/models/operations/TelemetryUserAgentGetResponse.md new file mode 100755 index 000000000..edf86ee32 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TelemetryUserAgentGetResponse.md @@ -0,0 +1,11 @@ +# TelemetryUserAgentGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [TelemetryUserAgentGetRes](../../models/operations/TelemetryUserAgentGetRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypeFromAnchor.md b/csharp-client-sdk/docs/models/operations/TypeFromAnchor.md new file mode 100755 index 000000000..5690a3d42 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypeFromAnchor.md @@ -0,0 +1,10 @@ +# TypeFromAnchor + +A successful response that contains the simpleObject sent in the request body + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Json` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedObjectNullableOneOfPostRes.md b/csharp-client-sdk/docs/models/operations/TypedObjectNullableOneOfPostRes.md new file mode 100755 index 000000000..2476ee21d --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedObjectNullableOneOfPostRes.md @@ -0,0 +1,10 @@ +# TypedObjectNullableOneOfPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedObjectNullableOneOfPostResponse.md b/csharp-client-sdk/docs/models/operations/TypedObjectNullableOneOfPostResponse.md new file mode 100755 index 000000000..e7615d288 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedObjectNullableOneOfPostResponse.md @@ -0,0 +1,11 @@ +# TypedObjectNullableOneOfPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [TypedObjectNullableOneOfPostRes](../../models/operations/TypedObjectNullableOneOfPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedObjectOneOfPostRes.md b/csharp-client-sdk/docs/models/operations/TypedObjectOneOfPostRes.md new file mode 100755 index 000000000..1cf2247bf --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedObjectOneOfPostRes.md @@ -0,0 +1,10 @@ +# TypedObjectOneOfPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedObjectOneOfPostResponse.md b/csharp-client-sdk/docs/models/operations/TypedObjectOneOfPostResponse.md new file mode 100755 index 000000000..c4664abf8 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedObjectOneOfPostResponse.md @@ -0,0 +1,11 @@ +# TypedObjectOneOfPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [TypedObjectOneOfPostRes](../../models/operations/TypedObjectOneOfPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetObj.md b/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetObj.md new file mode 100755 index 000000000..63b9504e4 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetObj.md @@ -0,0 +1,10 @@ +# TypedParameterGenerationGetObj + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | +| `Num` | *double* | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetRequest.md b/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetRequest.md new file mode 100755 index 000000000..dcc8d5fb7 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetRequest.md @@ -0,0 +1,11 @@ +# TypedParameterGenerationGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `Bigint` | *BigInteger* | :heavy_minus_sign: | N/A | +| `Date` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_minus_sign: | N/A | +| `Decimal` | *decimal* | :heavy_minus_sign: | N/A | +| `Obj` | [TypedParameterGenerationGetObj](../../models/operations/TypedParameterGenerationGetObj.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetResponse.md b/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetResponse.md new file mode 100755 index 000000000..c14679f85 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/TypedParameterGenerationGetResponse.md @@ -0,0 +1,10 @@ +# TypedParameterGenerationGetResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionDateNullRes.md b/csharp-client-sdk/docs/models/operations/UnionDateNullRes.md new file mode 100755 index 000000000..ed1f26cfd --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionDateNullRes.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `Json` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionDateNullResponse.md b/csharp-client-sdk/docs/models/operations/UnionDateNullResponse.md new file mode 100755 index 000000000..df2781f0b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionDateNullResponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [UnionDateNullRes](../../models/operations/UnionDateNullRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionDateTimeNullRes.md b/csharp-client-sdk/docs/models/operations/UnionDateTimeNullRes.md new file mode 100755 index 000000000..ae580e7d9 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionDateTimeNullRes.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Json` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md b/csharp-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md new file mode 100755 index 000000000..e4a27493b --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [UnionDateTimeNullRes](../../models/operations/UnionDateTimeNullRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UpdateResourceRequest.md b/csharp-client-sdk/docs/models/operations/UpdateResourceRequest.md new file mode 100755 index 000000000..858089891 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UpdateResourceRequest.md @@ -0,0 +1,8 @@ +# UpdateResourceRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ResourceId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UpdateResourceResponse.md b/csharp-client-sdk/docs/models/operations/UpdateResourceResponse.md new file mode 100755 index 000000000..474bb6492 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UpdateResourceResponse.md @@ -0,0 +1,10 @@ +# UpdateResourceResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePost200ApplicationJSON.md b/csharp-client-sdk/docs/models/operations/UsageExamplePost200ApplicationJSON.md new file mode 100755 index 000000000..9afb96076 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# UsageExamplePost200ApplicationJSON + +A response body that contains the simpleObject sent in the request body + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `Json` | [UsageExamplePost200ApplicationJSONJSON](../../models/operations/UsageExamplePost200ApplicationJSONJSON.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePost200ApplicationJSONJSON.md b/csharp-client-sdk/docs/models/operations/UsageExamplePost200ApplicationJSONJSON.md new file mode 100755 index 000000000..bd622f493 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePost200ApplicationJSONJSON.md @@ -0,0 +1,10 @@ +# UsageExamplePost200ApplicationJSONJSON + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `FakerFormattedStrings` | [FakerFormattedStrings](../../models/shared/FakerFormattedStrings.md) | :heavy_minus_sign: | A set of strings with format values that lead to relevant examples being generated for them | +| `FakerStrings` | [FakerStrings](../../models/shared/FakerStrings.md) | :heavy_minus_sign: | A set of strings with fieldnames that lead to relevant examples being generated for them | +| `SimpleObject` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePostEnumParameter.md b/csharp-client-sdk/docs/models/operations/UsageExamplePostEnumParameter.md new file mode 100755 index 000000000..edee3e287 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePostEnumParameter.md @@ -0,0 +1,12 @@ +# UsageExamplePostEnumParameter + +An enum type + + +## Values + +| Name | Value | +| -------- | -------- | +| `Value1` | value1 | +| `Value2` | value2 | +| `Value3` | value3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePostOptEnumParameter.md b/csharp-client-sdk/docs/models/operations/UsageExamplePostOptEnumParameter.md new file mode 100755 index 000000000..f0d5899a0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePostOptEnumParameter.md @@ -0,0 +1,12 @@ +# UsageExamplePostOptEnumParameter + +An enum type + + +## Values + +| Name | Value | +| -------- | -------- | +| `Value1` | value1 | +| `Value2` | value2 | +| `Value3` | value3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePostRequest.md b/csharp-client-sdk/docs/models/operations/UsageExamplePostRequest.md new file mode 100755 index 000000000..a018c9eca --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePostRequest.md @@ -0,0 +1,29 @@ +# UsageExamplePostRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `BigintParameter` | *BigInteger* | :heavy_check_mark: | An bigint parameter | | +| `BigintStrParameter` | *BigInteger* | :heavy_check_mark: | An bigint parameter | | +| `BoolParameter` | *bool* | :heavy_check_mark: | A boolean parameter | | +| `DateParameter` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | A date parameter | | +| `DateTimeDefaultParameter` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | A date time parameter with a default value | | +| `DateTimeParameter` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | A date time parameter | | +| `DecimalParameter` | *decimal* | :heavy_check_mark: | A decimal parameter | | +| `DecimalStrParameter` | *decimal* | :heavy_check_mark: | A decimal parameter | | +| `DoubleParameter` | *double* | :heavy_check_mark: | A double parameter | | +| `EnumParameter` | [UsageExamplePostEnumParameter](../../models/operations/UsageExamplePostEnumParameter.md) | :heavy_check_mark: | An enum parameter | | +| `FalseyNumberParameter` | *double* | :heavy_check_mark: | A number parameter that contains a falsey example value | 0 | +| `Float32Parameter` | *float* | :heavy_check_mark: | A float32 parameter | | +| `FloatParameter` | *double* | :heavy_check_mark: | A float parameter | | +| `Int64Parameter` | *long* | :heavy_check_mark: | An int64 parameter | | +| `IntParameter` | *int* | :heavy_check_mark: | An integer parameter | | +| `StrParameter` | *string* | :heavy_check_mark: | A string parameter | example 1 | +| `RequestBody` | [UsageExamplePostRequestBody](../../models/operations/UsageExamplePostRequestBody.md) | :heavy_minus_sign: | A request body that contains fields with different formats for testing example generation | | +| `BigintParameterOptional` | *BigInteger* | :heavy_minus_sign: | An bigint parameter | | +| `BigintStrParameterOptional` | *BigInteger* | :heavy_minus_sign: | An bigint parameter | | +| `DecimalParameterOptional` | *decimal* | :heavy_minus_sign: | A decimal parameter | | +| `DecimalStrParameterOptional` | *decimal* | :heavy_minus_sign: | A decimal parameter | | +| `OptEnumParameter` | [UsageExamplePostOptEnumParameter](../../models/operations/UsageExamplePostOptEnumParameter.md) | :heavy_minus_sign: | An enum parameter | value3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePostRequestBody.md b/csharp-client-sdk/docs/models/operations/UsageExamplePostRequestBody.md new file mode 100755 index 000000000..2e6265948 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePostRequestBody.md @@ -0,0 +1,12 @@ +# UsageExamplePostRequestBody + +A request body that contains fields with different formats for testing example generation + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `FakerFormattedStrings` | [FakerFormattedStrings](../../models/shared/FakerFormattedStrings.md) | :heavy_minus_sign: | A set of strings with format values that lead to relevant examples being generated for them | +| `FakerStrings` | [FakerStrings](../../models/shared/FakerStrings.md) | :heavy_minus_sign: | A set of strings with fieldnames that lead to relevant examples being generated for them | +| `SimpleObject` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePostResponse.md b/csharp-client-sdk/docs/models/operations/UsageExamplePostResponse.md new file mode 100755 index 000000000..f16660751 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePostResponse.md @@ -0,0 +1,11 @@ +# UsageExamplePostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `UsageExamplePost200ApplicationJSONObject` | [UsageExamplePost200ApplicationJSON](../../models/operations/UsageExamplePost200ApplicationJSON.md) | :heavy_minus_sign: | A successful response that contains the simpleObject sent in the request body | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/UsageExamplePostSecurity.md b/csharp-client-sdk/docs/models/operations/UsageExamplePostSecurity.md new file mode 100755 index 000000000..039be02d0 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/UsageExamplePostSecurity.md @@ -0,0 +1,9 @@ +# UsageExamplePostSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Password` | *string* | :heavy_check_mark: | N/A | YOUR_PASSWORD | +| `Username` | *string* | :heavy_check_mark: | N/A | YOUR_USERNAME | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/WeaklyTypedOneOfPostRes.md b/csharp-client-sdk/docs/models/operations/WeaklyTypedOneOfPostRes.md new file mode 100755 index 000000000..21f116f62 --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/WeaklyTypedOneOfPostRes.md @@ -0,0 +1,10 @@ +# WeaklyTypedOneOfPostRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Json` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/operations/WeaklyTypedOneOfPostResponse.md b/csharp-client-sdk/docs/models/operations/WeaklyTypedOneOfPostResponse.md new file mode 100755 index 000000000..864c190fa --- /dev/null +++ b/csharp-client-sdk/docs/models/operations/WeaklyTypedOneOfPostResponse.md @@ -0,0 +1,11 @@ +# WeaklyTypedOneOfPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [WeaklyTypedOneOfPostRes](../../models/operations/WeaklyTypedOneOfPostRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/AllOfToAllOf.md b/csharp-client-sdk/docs/models/shared/AllOfToAllOf.md new file mode 100755 index 000000000..ae2f79f76 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/AllOfToAllOf.md @@ -0,0 +1,8 @@ +# AllOfToAllOf + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Id` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ArrObjValue.md b/csharp-client-sdk/docs/models/shared/ArrObjValue.md new file mode 100755 index 000000000..4a0a4b5e6 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ArrObjValue.md @@ -0,0 +1,9 @@ +# ArrObjValue + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Json` | List<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_minus_sign: | N/A | +| `Required` | *object* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ArrObjValueCamelCase.md b/csharp-client-sdk/docs/models/shared/ArrObjValueCamelCase.md new file mode 100755 index 000000000..a6c731359 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ArrObjValueCamelCase.md @@ -0,0 +1,9 @@ +# ArrObjValueCamelCase + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `Json` | List<[SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md)> | :heavy_minus_sign: | N/A | +| `Required` | *object* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ArrayCircularReferenceObject.md b/csharp-client-sdk/docs/models/shared/ArrayCircularReferenceObject.md new file mode 100755 index 000000000..67d274a74 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ArrayCircularReferenceObject.md @@ -0,0 +1,8 @@ +# ArrayCircularReferenceObject + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Circular` | List<[ArrayCircularReferenceObject](../../models/shared/ArrayCircularReferenceObject.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/AuthServiceRequestBody.md b/csharp-client-sdk/docs/models/shared/AuthServiceRequestBody.md new file mode 100755 index 000000000..140cfa5e9 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/AuthServiceRequestBody.md @@ -0,0 +1,9 @@ +# AuthServiceRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `BasicAuth` | [AuthServiceRequestBodyBasicAuth](../../models/shared/AuthServiceRequestBodyBasicAuth.md) | :heavy_minus_sign: | N/A | +| `HeaderAuth` | List<[AuthServiceRequestBodyHeaderAuth](../../models/shared/AuthServiceRequestBodyHeaderAuth.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/AuthServiceRequestBodyBasicAuth.md b/csharp-client-sdk/docs/models/shared/AuthServiceRequestBodyBasicAuth.md new file mode 100755 index 000000000..b0986e606 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/AuthServiceRequestBodyBasicAuth.md @@ -0,0 +1,9 @@ +# AuthServiceRequestBodyBasicAuth + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Password` | *string* | :heavy_check_mark: | N/A | +| `Username` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/AuthServiceRequestBodyHeaderAuth.md b/csharp-client-sdk/docs/models/shared/AuthServiceRequestBodyHeaderAuth.md new file mode 100755 index 000000000..1c89c798d --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/AuthServiceRequestBodyHeaderAuth.md @@ -0,0 +1,9 @@ +# AuthServiceRequestBodyHeaderAuth + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ExpectedValue` | *string* | :heavy_check_mark: | N/A | +| `HeaderName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ComplexNumberTypes.md b/csharp-client-sdk/docs/models/shared/ComplexNumberTypes.md new file mode 100755 index 000000000..8fa8d09dd --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ComplexNumberTypes.md @@ -0,0 +1,11 @@ +# ComplexNumberTypes + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bigint` | *BigInteger* | :heavy_check_mark: | N/A | +| `BigintStr` | *BigInteger* | :heavy_check_mark: | N/A | +| `Decimal` | *decimal* | :heavy_check_mark: | N/A | +| `DecimalStr` | *decimal* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DeepObject.md b/csharp-client-sdk/docs/models/shared/DeepObject.md new file mode 100755 index 000000000..16bac6f79 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DeepObject.md @@ -0,0 +1,16 @@ +# DeepObject + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Any` | *object* | :heavy_check_mark: | N/A | anyOf[0] | +| `Arr` | List<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_check_mark: | N/A | ...,... | +| `Bool` | *bool* | :heavy_check_mark: | N/A | true | +| `Int` | *long* | :heavy_check_mark: | N/A | 1 | +| `Map` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `Num` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `Obj` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | | +| `Str` | *string* | :heavy_check_mark: | N/A | test | +| `Type` | *string* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DeepObjectCamelCase.md b/csharp-client-sdk/docs/models/shared/DeepObjectCamelCase.md new file mode 100755 index 000000000..e571c2446 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DeepObjectCamelCase.md @@ -0,0 +1,16 @@ +# DeepObjectCamelCase + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AnyVal` | *object* | :heavy_check_mark: | N/A | +| `ArrVal` | List<[SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md)> | :heavy_check_mark: | N/A | +| `BoolVal` | *bool* | :heavy_check_mark: | N/A | +| `IntVal` | *long* | :heavy_check_mark: | N/A | +| `MapVal` | Dictionary | :heavy_check_mark: | N/A | +| `NumVal` | *double* | :heavy_check_mark: | N/A | +| `ObjVal` | [SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | +| `StrVal` | *string* | :heavy_check_mark: | N/A | +| `Type` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConsts.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConsts.md new file mode 100755 index 000000000..7e9d7d322 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConsts.md @@ -0,0 +1,35 @@ +# DefaultsAndConsts + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `ConstBigInt` | *BigInteger* | :heavy_check_mark: | N/A | +| `ConstBigIntStr` | *BigInteger* | :heavy_check_mark: | N/A | +| `ConstBool` | *bool* | :heavy_check_mark: | N/A | +| `ConstDate` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | N/A | +| `ConstDateTime` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | +| `ConstDecimal` | *decimal* | :heavy_check_mark: | N/A | +| `ConstDecimalStr` | *decimal* | :heavy_check_mark: | N/A | +| `ConstEnumInt` | [DefaultsAndConstsConstEnumInt](../../models/shared/DefaultsAndConstsConstEnumInt.md) | :heavy_check_mark: | N/A | +| `ConstEnumStr` | [DefaultsAndConstsConstEnumStr](../../models/shared/DefaultsAndConstsConstEnumStr.md) | :heavy_check_mark: | N/A | +| `ConstInt` | *long* | :heavy_check_mark: | N/A | +| `ConstNum` | *double* | :heavy_check_mark: | N/A | +| `ConstStr` | *string* | :heavy_check_mark: | N/A | +| `ConstStrNull` | *string* | :heavy_check_mark: | N/A | +| `NormalField` | *string* | :heavy_check_mark: | N/A | +| `DefaultBigInt` | *BigInteger* | :heavy_minus_sign: | N/A | +| `DefaultBigIntStr` | *BigInteger* | :heavy_minus_sign: | N/A | +| `DefaultBool` | *bool* | :heavy_minus_sign: | N/A | +| `DefaultDate` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_minus_sign: | N/A | +| `DefaultDateTime` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | +| `DefaultDecimal` | *decimal* | :heavy_minus_sign: | N/A | +| `DefaultDecimalStr` | *decimal* | :heavy_minus_sign: | N/A | +| `DefaultEnumInt` | [DefaultsAndConstsDefaultEnumInt](../../models/shared/DefaultsAndConstsDefaultEnumInt.md) | :heavy_minus_sign: | N/A | +| `DefaultEnumStr` | [DefaultsAndConstsDefaultEnumStr](../../models/shared/DefaultsAndConstsDefaultEnumStr.md) | :heavy_minus_sign: | N/A | +| `DefaultInt` | *long* | :heavy_minus_sign: | N/A | +| `DefaultNum` | *double* | :heavy_minus_sign: | N/A | +| `DefaultStr` | *string* | :heavy_minus_sign: | N/A | +| `DefaultStrNullable` | *string* | :heavy_minus_sign: | N/A | +| `DefaultStrOptional` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsConstEnumInt.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsConstEnumInt.md new file mode 100755 index 000000000..c417317c2 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsConstEnumInt.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsConstEnumInt + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsConstEnumStr.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsConstEnumStr.md new file mode 100755 index 000000000..fe2be67fb --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsConstEnumStr.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsConstEnumStr + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | one | +| `Two` | two | +| `Three` | three | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsDefaultEnumInt.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsDefaultEnumInt.md new file mode 100755 index 000000000..381ae51a2 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsDefaultEnumInt.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsDefaultEnumInt + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsDefaultEnumStr.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsDefaultEnumStr.md new file mode 100755 index 000000000..cc25b20a5 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsDefaultEnumStr.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsDefaultEnumStr + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | one | +| `Two` | two | +| `Three` | three | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutput.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutput.md new file mode 100755 index 000000000..f99b5fc42 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutput.md @@ -0,0 +1,35 @@ +# DefaultsAndConstsOutput + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `ConstBigInt` | *BigInteger* | :heavy_check_mark: | N/A | +| `ConstBigIntStr` | *BigInteger* | :heavy_check_mark: | N/A | +| `ConstBool` | *bool* | :heavy_check_mark: | N/A | +| `ConstDate` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | N/A | +| `ConstDateTime` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | +| `ConstDecimal` | *decimal* | :heavy_check_mark: | N/A | +| `ConstDecimalStr` | *decimal* | :heavy_check_mark: | N/A | +| `ConstEnumInt` | [DefaultsAndConstsOutputConstEnumInt](../../models/shared/DefaultsAndConstsOutputConstEnumInt.md) | :heavy_check_mark: | N/A | +| `ConstEnumStr` | [DefaultsAndConstsOutputConstEnumStr](../../models/shared/DefaultsAndConstsOutputConstEnumStr.md) | :heavy_check_mark: | N/A | +| `ConstInt` | *long* | :heavy_check_mark: | N/A | +| `ConstNum` | *double* | :heavy_check_mark: | N/A | +| `ConstStr` | *string* | :heavy_check_mark: | N/A | +| `ConstStrNull` | *string* | :heavy_check_mark: | N/A | +| `DefaultBigInt` | *BigInteger* | :heavy_check_mark: | N/A | +| `DefaultBigIntStr` | *BigInteger* | :heavy_check_mark: | N/A | +| `DefaultBool` | *bool* | :heavy_check_mark: | N/A | +| `DefaultDate` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | N/A | +| `DefaultDateTime` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | +| `DefaultDecimal` | *decimal* | :heavy_check_mark: | N/A | +| `DefaultDecimalStr` | *decimal* | :heavy_check_mark: | N/A | +| `DefaultEnumInt` | [DefaultsAndConstsOutputDefaultEnumInt](../../models/shared/DefaultsAndConstsOutputDefaultEnumInt.md) | :heavy_check_mark: | N/A | +| `DefaultEnumStr` | [DefaultsAndConstsOutputDefaultEnumStr](../../models/shared/DefaultsAndConstsOutputDefaultEnumStr.md) | :heavy_check_mark: | N/A | +| `DefaultInt` | *long* | :heavy_check_mark: | N/A | +| `DefaultNum` | *double* | :heavy_check_mark: | N/A | +| `DefaultStr` | *string* | :heavy_check_mark: | N/A | +| `DefaultStrNullable` | *string* | :heavy_check_mark: | N/A | +| `DefaultStrOptional` | *string* | :heavy_minus_sign: | N/A | +| `NormalField` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputConstEnumInt.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputConstEnumInt.md new file mode 100755 index 000000000..91eff077f --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputConstEnumInt.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsOutputConstEnumInt + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputConstEnumStr.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputConstEnumStr.md new file mode 100755 index 000000000..07150699b --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputConstEnumStr.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsOutputConstEnumStr + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | one | +| `Two` | two | +| `Three` | three | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputDefaultEnumInt.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputDefaultEnumInt.md new file mode 100755 index 000000000..7b3983816 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputDefaultEnumInt.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsOutputDefaultEnumInt + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputDefaultEnumStr.md b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputDefaultEnumStr.md new file mode 100755 index 000000000..c48c6e869 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DefaultsAndConstsOutputDefaultEnumStr.md @@ -0,0 +1,10 @@ +# DefaultsAndConstsOutputDefaultEnumStr + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | one | +| `Two` | two | +| `Three` | three | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DeprecatedFieldInObject.md b/csharp-client-sdk/docs/models/shared/DeprecatedFieldInObject.md new file mode 100755 index 000000000..418afb92d --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DeprecatedFieldInObject.md @@ -0,0 +1,10 @@ +# DeprecatedFieldInObject + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| ~~`DeprecatedEnum`~~ | [DeprecatedFieldInObjectDeprecatedEnum](../../models/shared/DeprecatedFieldInObjectDeprecatedEnum.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This enum is deprecated. | +| ~~`DeprecatedField`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. Use NewField instead. | +| `NewField` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DeprecatedFieldInObjectDeprecatedEnum.md b/csharp-client-sdk/docs/models/shared/DeprecatedFieldInObjectDeprecatedEnum.md new file mode 100755 index 000000000..14c3d71b4 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DeprecatedFieldInObjectDeprecatedEnum.md @@ -0,0 +1,12 @@ +# ~~DeprecatedFieldInObjectDeprecatedEnum~~ + +> :warning: **DEPRECATED**: This enum is deprecated. + + +## Values + +| Name | Value | +| ----- | ----- | +| `A` | a | +| `B` | b | +| `C` | c | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/DeprecatedObject.md b/csharp-client-sdk/docs/models/shared/DeprecatedObject.md new file mode 100755 index 000000000..a11cc47ce --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/DeprecatedObject.md @@ -0,0 +1,10 @@ +# ~~DeprecatedObject~~ + +> :warning: **DEPRECATED**: This object is deprecated. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Str` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/EmptyObjectParam.md b/csharp-client-sdk/docs/models/shared/EmptyObjectParam.md new file mode 100755 index 000000000..df04d604d --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/EmptyObjectParam.md @@ -0,0 +1,7 @@ +# EmptyObjectParam + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/Enum.md b/csharp-client-sdk/docs/models/shared/Enum.md new file mode 100755 index 000000000..b524e5fe8 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/Enum.md @@ -0,0 +1,13 @@ +# Enum + +A string based enum + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `One` | one | +| `Two` | two | +| `Three` | three | +| `FourAndMore` | four_and_more | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/Error.md b/csharp-client-sdk/docs/models/shared/Error.md new file mode 100755 index 000000000..363c97c9f --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/Error.md @@ -0,0 +1,10 @@ +# Error + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `Code` | *string* | :heavy_minus_sign: | N/A | +| `Message` | *string* | :heavy_minus_sign: | N/A | +| `Type` | [ErrorType](../../models/shared/ErrorType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ErrorType.md b/csharp-client-sdk/docs/models/shared/ErrorType.md new file mode 100755 index 000000000..6a9154969 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ErrorType.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `NotFound` | not_found | +| `Invalid` | invalid | +| `Internal` | internal | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ExampleResource.md b/csharp-client-sdk/docs/models/shared/ExampleResource.md new file mode 100755 index 000000000..48fba9a2c --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ExampleResource.md @@ -0,0 +1,19 @@ +# ExampleResource + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Chocolates` | List<[ExampleResourceChocolates](../../models/shared/ExampleResourceChocolates.md)> | :heavy_check_mark: | N/A | +| `Id` | *string* | :heavy_check_mark: | N/A | +| `Name` | *string* | :heavy_check_mark: | N/A | +| `Vehicle` | *object* | :heavy_check_mark: | N/A | +| `ArrayOfNumber` | List<*double*> | :heavy_minus_sign: | N/A | +| `ArrayOfString` | List<*string*> | :heavy_minus_sign: | N/A | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | +| `EnumNumber` | [ExampleResourceEnumNumber](../../models/shared/ExampleResourceEnumNumber.md) | :heavy_minus_sign: | N/A | +| `EnumStr` | [ExampleResourceEnumStr](../../models/shared/ExampleResourceEnumStr.md) | :heavy_minus_sign: | N/A | +| `MapOfInteger` | Dictionary | :heavy_minus_sign: | N/A | +| `MapOfString` | Dictionary | :heavy_minus_sign: | N/A | +| `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ExampleResourceChocolates.md b/csharp-client-sdk/docs/models/shared/ExampleResourceChocolates.md new file mode 100755 index 000000000..434b7a90f --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ExampleResourceChocolates.md @@ -0,0 +1,8 @@ +# ExampleResourceChocolates + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Description` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ExampleResourceEnumNumber.md b/csharp-client-sdk/docs/models/shared/ExampleResourceEnumNumber.md new file mode 100755 index 000000000..0a6d9bd00 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ExampleResourceEnumNumber.md @@ -0,0 +1,10 @@ +# ExampleResourceEnumNumber + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | 1 | +| `Two` | 2 | +| `Three` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ExampleResourceEnumStr.md b/csharp-client-sdk/docs/models/shared/ExampleResourceEnumStr.md new file mode 100755 index 000000000..fbd86b672 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ExampleResourceEnumStr.md @@ -0,0 +1,10 @@ +# ExampleResourceEnumStr + + +## Values + +| Name | Value | +| ------- | ------- | +| `One` | one | +| `Two` | two | +| `Three` | three | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/FakerFormattedStrings.md b/csharp-client-sdk/docs/models/shared/FakerFormattedStrings.md new file mode 100755 index 000000000..6fbe32972 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/FakerFormattedStrings.md @@ -0,0 +1,27 @@ +# FakerFormattedStrings + +A set of strings with format values that lead to relevant examples being generated for them + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `AddressFormat` | *string* | :heavy_minus_sign: | A field that will have an address generated as example | +| `DirectoryFormat` | *string* | :heavy_minus_sign: | A field that will have a directory path generated as example | +| `DomainFormat` | *string* | :heavy_minus_sign: | A field that will have a domain name generated as example | +| `EmailFormat` | *string* | :heavy_minus_sign: | A field that will have an email address generated as example | +| `FilenameFormat` | *string* | :heavy_minus_sign: | A field that will have a filename generated as example | +| `FilepathFormat` | *string* | :heavy_minus_sign: | A field that will have a file path generated as example | +| `ImageFormat` | *string* | :heavy_minus_sign: | A field that will have a image url generated as example | +| `Ipv4Format` | *string* | :heavy_minus_sign: | A field that will have an IPv4 address generated as example | +| `Ipv6Format` | *string* | :heavy_minus_sign: | A field that will have an IPv6 address generated as example | +| `JsonFormat` | *string* | :heavy_minus_sign: | A field that will have a JSON generated as example | +| `MacFormat` | *string* | :heavy_minus_sign: | A field that will have a MAC address generated as example | +| `PasswordFormat` | *string* | :heavy_minus_sign: | A field that will have a fake password generated as example | +| `PhoneFormat` | *string* | :heavy_minus_sign: | A field that will have a phone number generated as example | +| `TimezoneFormat` | *string* | :heavy_minus_sign: | A field that will have a timezone generated as example | +| `UnknownFormat` | *string* | :heavy_minus_sign: | A field that will have random words generated as example | +| `UrlFormat` | *string* | :heavy_minus_sign: | A field that will have a URL generated as example | +| `UuidFormat` | *string* | :heavy_minus_sign: | A field that will have a UUID generated as example | +| `ZipcodeFormat` | *string* | :heavy_minus_sign: | A field that will have a postal code generated as example | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/FakerStrings.md b/csharp-client-sdk/docs/models/shared/FakerStrings.md new file mode 100755 index 000000000..ab9083301 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/FakerStrings.md @@ -0,0 +1,62 @@ +# FakerStrings + +A set of strings with fieldnames that lead to relevant examples being generated for them + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `City` | *string* | :heavy_minus_sign: | N/A | +| `Iban` | *string* | :heavy_minus_sign: | N/A | +| `Id` | *string* | :heavy_minus_sign: | N/A | +| `IPv4` | *string* | :heavy_minus_sign: | N/A | +| `IPv6` | *string* | :heavy_minus_sign: | N/A | +| `Account` | *string* | :heavy_minus_sign: | N/A | +| `Address` | *string* | :heavy_minus_sign: | N/A | +| `Amount` | *string* | :heavy_minus_sign: | N/A | +| `Avatar` | *string* | :heavy_minus_sign: | N/A | +| `Color` | *string* | :heavy_minus_sign: | N/A | +| `Comment` | *string* | :heavy_minus_sign: | N/A | +| `Company` | *string* | :heavy_minus_sign: | N/A | +| `Country` | *string* | :heavy_minus_sign: | N/A | +| `CountryCode` | *string* | :heavy_minus_sign: | N/A | +| `Currency` | *string* | :heavy_minus_sign: | N/A | +| `Datatype` | *string* | :heavy_minus_sign: | N/A | +| `Default` | *string* | :heavy_minus_sign: | N/A | +| `Description` | *string* | :heavy_minus_sign: | N/A | +| `Directory` | *string* | :heavy_minus_sign: | N/A | +| `DomainName` | *string* | :heavy_minus_sign: | N/A | +| `EmailAddr` | *string* | :heavy_minus_sign: | N/A | +| `Extension` | *string* | :heavy_minus_sign: | N/A | +| `Filename` | *string* | :heavy_minus_sign: | N/A | +| `Filepath` | *string* | :heavy_minus_sign: | N/A | +| `Filetype` | *string* | :heavy_minus_sign: | N/A | +| `FirstName` | *string* | :heavy_minus_sign: | N/A | +| `FullName` | *string* | :heavy_minus_sign: | N/A | +| `Gender` | *string* | :heavy_minus_sign: | N/A | +| `Job` | *string* | :heavy_minus_sign: | N/A | +| `Json` | *string* | :heavy_minus_sign: | N/A | +| `Key` | *string* | :heavy_minus_sign: | N/A | +| `LastName` | *string* | :heavy_minus_sign: | N/A | +| `Latitude` | *string* | :heavy_minus_sign: | N/A | +| `Locale` | *string* | :heavy_minus_sign: | N/A | +| `Longitude` | *string* | :heavy_minus_sign: | N/A | +| `Mac` | *string* | :heavy_minus_sign: | N/A | +| `Manufacturer` | *string* | :heavy_minus_sign: | N/A | +| `Material` | *string* | :heavy_minus_sign: | N/A | +| `MiddleName` | *string* | :heavy_minus_sign: | N/A | +| `Model` | *string* | :heavy_minus_sign: | N/A | +| `Password` | *string* | :heavy_minus_sign: | N/A | +| `Phone` | *string* | :heavy_minus_sign: | N/A | +| `Pin` | *string* | :heavy_minus_sign: | N/A | +| `PostalCode` | *string* | :heavy_minus_sign: | N/A | +| `Price` | *string* | :heavy_minus_sign: | N/A | +| `Product` | *string* | :heavy_minus_sign: | N/A | +| `Sex` | *string* | :heavy_minus_sign: | N/A | +| `Street` | *string* | :heavy_minus_sign: | N/A | +| `Timezone` | *string* | :heavy_minus_sign: | N/A | +| `Unit` | *string* | :heavy_minus_sign: | N/A | +| `Url` | *string* | :heavy_minus_sign: | N/A | +| `Username` | *string* | :heavy_minus_sign: | N/A | +| `Uuid` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/FileResource.md b/csharp-client-sdk/docs/models/shared/FileResource.md new file mode 100755 index 000000000..7cc98cead --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/FileResource.md @@ -0,0 +1,8 @@ +# FileResource + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObject.md b/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObject.md new file mode 100755 index 000000000..9c386ee64 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObject.md @@ -0,0 +1,8 @@ +# HttpBinSimpleJsonObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `Slideshow` | [HttpBinSimpleJsonObjectSlideshow](../../models/shared/HttpBinSimpleJsonObjectSlideshow.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObjectSlideshow.md b/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObjectSlideshow.md new file mode 100755 index 000000000..7019c3464 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObjectSlideshow.md @@ -0,0 +1,11 @@ +# HttpBinSimpleJsonObjectSlideshow + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `Author` | *string* | :heavy_check_mark: | N/A | +| `Date` | *string* | :heavy_check_mark: | N/A | +| `Slides` | List<[HttpBinSimpleJsonObjectSlideshowSlides](../../models/shared/HttpBinSimpleJsonObjectSlideshowSlides.md)> | :heavy_check_mark: | N/A | +| `Title` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.md b/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.md new file mode 100755 index 000000000..cf64efeed --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.md @@ -0,0 +1,10 @@ +# HttpBinSimpleJsonObjectSlideshowSlides + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Items` | List<*string*> | :heavy_minus_sign: | N/A | +| `Title` | *string* | :heavy_check_mark: | N/A | +| `Type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/LimitOffsetConfig.md b/csharp-client-sdk/docs/models/shared/LimitOffsetConfig.md new file mode 100755 index 000000000..a8182474a --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/LimitOffsetConfig.md @@ -0,0 +1,10 @@ +# LimitOffsetConfig + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Limit` | *long* | :heavy_minus_sign: | N/A | +| `Offset` | *long* | :heavy_minus_sign: | N/A | +| `Page` | *long* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/MapObjValue.md b/csharp-client-sdk/docs/models/shared/MapObjValue.md new file mode 100755 index 000000000..f1bf9588f --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/MapObjValue.md @@ -0,0 +1,9 @@ +# MapObjValue + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | +| `Required` | *object* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/MapObjValueCamelCase.md b/csharp-client-sdk/docs/models/shared/MapObjValueCamelCase.md new file mode 100755 index 000000000..29e69428c --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/MapObjValueCamelCase.md @@ -0,0 +1,9 @@ +# MapObjValueCamelCase + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Json` | Dictionary | :heavy_minus_sign: | N/A | +| `Required` | *object* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/NullableObject.md b/csharp-client-sdk/docs/models/shared/NullableObject.md new file mode 100755 index 000000000..ca3fb2ec5 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/NullableObject.md @@ -0,0 +1,9 @@ +# NullableObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Required` | *long* | :heavy_check_mark: | N/A | +| `Optional` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/NullableOneOfRefInObject.md b/csharp-client-sdk/docs/models/shared/NullableOneOfRefInObject.md new file mode 100755 index 000000000..de260529b --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/NullableOneOfRefInObject.md @@ -0,0 +1,10 @@ +# NullableOneOfRefInObject + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `NullableOneOfOne` | [TypedObject1](../../models/shared/TypedObject1.md) | :heavy_check_mark: | N/A | +| `NullableOneOfTwo` | *object* | :heavy_check_mark: | N/A | +| `OneOfOne` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/NullableOneOfTypeInObject.md b/csharp-client-sdk/docs/models/shared/NullableOneOfTypeInObject.md new file mode 100755 index 000000000..12514d8d3 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/NullableOneOfTypeInObject.md @@ -0,0 +1,10 @@ +# NullableOneOfTypeInObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `NullableOneOfOne` | *bool* | :heavy_check_mark: | N/A | +| `NullableOneOfTwo` | *object* | :heavy_check_mark: | N/A | +| `OneOfOne` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ObjWithZeroValueComplexTypePtrs.md b/csharp-client-sdk/docs/models/shared/ObjWithZeroValueComplexTypePtrs.md new file mode 100755 index 000000000..3d2af3b53 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ObjWithZeroValueComplexTypePtrs.md @@ -0,0 +1,12 @@ +# ObjWithZeroValueComplexTypePtrs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Bigint` | *BigInteger* | :heavy_minus_sign: | N/A | | +| `BigintStr` | *BigInteger* | :heavy_minus_sign: | N/A | | +| `Date` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_minus_sign: | A date property. | 2020-01-01 | +| `DateTime` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | A date-time property. | 2020-01-01T00:00:00Z | +| `Decimal` | *decimal* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ObjectCircularReferenceObject.md b/csharp-client-sdk/docs/models/shared/ObjectCircularReferenceObject.md new file mode 100755 index 000000000..b3e485745 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ObjectCircularReferenceObject.md @@ -0,0 +1,8 @@ +# ObjectCircularReferenceObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Circular` | [ObjectCircularReferenceObject](../../models/shared/ObjectCircularReferenceObject.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/OneOfCircularReferenceObject.md b/csharp-client-sdk/docs/models/shared/OneOfCircularReferenceObject.md new file mode 100755 index 000000000..b8107f761 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/OneOfCircularReferenceObject.md @@ -0,0 +1,8 @@ +# OneOfCircularReferenceObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Child` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/OneOfGenerationStressTest.md b/csharp-client-sdk/docs/models/shared/OneOfGenerationStressTest.md new file mode 100755 index 000000000..a86601492 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/OneOfGenerationStressTest.md @@ -0,0 +1,11 @@ +# OneOfGenerationStressTest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `Any` | *object* | :heavy_check_mark: | N/A | +| `NullableAny` | *object* | :heavy_check_mark: | N/A | +| `OneOfFromArrayOfTypes` | *object* | :heavy_check_mark: | N/A | +| `OneOfSameType` | *object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ReadOnlyObject.md b/csharp-client-sdk/docs/models/shared/ReadOnlyObject.md new file mode 100755 index 000000000..2ca53b0bc --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ReadOnlyObject.md @@ -0,0 +1,10 @@ +# ReadOnlyObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | +| `Num` | *double* | :heavy_check_mark: | N/A | +| `String` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ReadOnlyObjectInput.md b/csharp-client-sdk/docs/models/shared/ReadOnlyObjectInput.md new file mode 100755 index 000000000..efbf14cbb --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ReadOnlyObjectInput.md @@ -0,0 +1,7 @@ +# ReadOnlyObjectInput + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ReadWriteObjectInput.md b/csharp-client-sdk/docs/models/shared/ReadWriteObjectInput.md new file mode 100755 index 000000000..5627830a0 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ReadWriteObjectInput.md @@ -0,0 +1,10 @@ +# ReadWriteObjectInput + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Num1` | *long* | :heavy_check_mark: | N/A | +| `Num2` | *long* | :heavy_check_mark: | N/A | +| `Num3` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ReadWriteObjectOutput.md b/csharp-client-sdk/docs/models/shared/ReadWriteObjectOutput.md new file mode 100755 index 000000000..3f6822b5b --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ReadWriteObjectOutput.md @@ -0,0 +1,9 @@ +# ReadWriteObjectOutput + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Num3` | *long* | :heavy_check_mark: | N/A | +| `Sum` | *long* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/RefQueryParamObj.md b/csharp-client-sdk/docs/models/shared/RefQueryParamObj.md new file mode 100755 index 000000000..27daf9b67 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/RefQueryParamObj.md @@ -0,0 +1,11 @@ +# RefQueryParamObj + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | true | +| `Int` | *long* | :heavy_check_mark: | N/A | 1 | +| `Num` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `Str` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/RefQueryParamObjExploded.md b/csharp-client-sdk/docs/models/shared/RefQueryParamObjExploded.md new file mode 100755 index 000000000..beed7d0ec --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/RefQueryParamObjExploded.md @@ -0,0 +1,11 @@ +# RefQueryParamObjExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | true | +| `Int` | *long* | :heavy_check_mark: | N/A | 1 | +| `Num` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `Str` | *string* | :heavy_check_mark: | N/A | test | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SchemeBasicAuth.md b/csharp-client-sdk/docs/models/shared/SchemeBasicAuth.md new file mode 100755 index 000000000..c9b0a4fed --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SchemeBasicAuth.md @@ -0,0 +1,9 @@ +# SchemeBasicAuth + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Password` | *string* | :heavy_check_mark: | N/A | YOUR_PASSWORD | +| `Username` | *string* | :heavy_check_mark: | N/A | YOUR_USERNAME | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/Security.md b/csharp-client-sdk/docs/models/shared/Security.md new file mode 100755 index 000000000..d193edd4e --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/Security.md @@ -0,0 +1,10 @@ +# Security + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `ApiKeyAuth` | *string* | :heavy_minus_sign: | N/A | Token YOUR_API_KEY | +| `ApiKeyAuthNew` | *string* | :heavy_minus_sign: | N/A | Token | +| `Oauth2` | *string* | :heavy_minus_sign: | N/A | Bearer YOUR_OAUTH2_TOKEN | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SimpleObject.md b/csharp-client-sdk/docs/models/shared/SimpleObject.md new file mode 100755 index 000000000..3c773e8c4 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SimpleObject.md @@ -0,0 +1,32 @@ +# SimpleObject + +A simple object that uses all our supported primitive types and enums and has optional properties. + +A link to the external docs. + + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Any` | *object* | :heavy_check_mark: | An any property. | any | +| `Bool` | *bool* | :heavy_check_mark: | A boolean property. | true | +| `Date` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | A date property. | 2020-01-01 | +| `DateTime` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | A date-time property. | 2020-01-01T00:00:00.000000001Z | +| `Enum` | [Enum](../../models/shared/Enum.md) | :heavy_check_mark: | A string based enum | one | +| `Float32` | *float* | :heavy_check_mark: | A float32 property. | 1.1 | +| `Int` | *long* | :heavy_check_mark: | An integer property. | 1 | +| `Int32` | *int* | :heavy_check_mark: | An int32 property. | 1 | +| `Int32Enum` | [SimpleObjectInt32Enum](../../models/shared/SimpleObjectInt32Enum.md) | :heavy_check_mark: | An int32 enum property. | 55 | +| `IntEnum` | [SimpleObjectIntEnum](../../models/shared/SimpleObjectIntEnum.md) | :heavy_check_mark: | An integer enum property. | 2 | +| `Num` | *double* | :heavy_check_mark: | A number property. | 1.1 | +| `Str` | *string* | :heavy_check_mark: | A string property. | test | +| `Bigint` | *BigInteger* | :heavy_minus_sign: | N/A | 8821239038968084 | +| `BigintStr` | *BigInteger* | :heavy_minus_sign: | N/A | 9223372036854775808 | +| `BoolOpt` | *bool* | :heavy_minus_sign: | An optional boolean property. | true | +| `Decimal` | *decimal* | :heavy_minus_sign: | N/A | 3.141592653589793 | +| `DecimalStr` | *decimal* | :heavy_minus_sign: | N/A | 3.14159265358979344719667586 | +| `IntOptNull` | *long* | :heavy_minus_sign: | An optional integer property will be null for tests. | | +| `NumOptNull` | *double* | :heavy_minus_sign: | An optional number property will be null for tests. | | +| `StrOpt` | *string* | :heavy_minus_sign: | An optional string property. | testOptional | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCase.md b/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCase.md new file mode 100755 index 000000000..6675d59a7 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCase.md @@ -0,0 +1,31 @@ +# SimpleObjectCamelCase + +A simple object that uses all our supported primitive types and enums and has optional properties. + +A link to the external docs. + + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `AnyVal` | *object* | :heavy_check_mark: | An any property. | any example | +| `BoolVal` | *bool* | :heavy_check_mark: | A boolean property. | true | +| `DateTimeVal` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | A date-time property. | 2020-01-01T00:00:00Z | +| `DateVal` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | A date property. | 2020-01-01 | +| `EnumVal` | [Enum](../../models/shared/Enum.md) | :heavy_check_mark: | A string based enum | one | +| `Float32Val` | *float* | :heavy_check_mark: | A float32 property. | 2.2222222 | +| `Int32EnumVal` | [SimpleObjectCamelCaseInt32EnumVal](../../models/shared/SimpleObjectCamelCaseInt32EnumVal.md) | :heavy_check_mark: | An int32 enum property. | 69 | +| `Int32Val` | *int* | :heavy_check_mark: | An int32 property. | 1 | +| `IntEnumVal` | [SimpleObjectCamelCaseIntEnumVal](../../models/shared/SimpleObjectCamelCaseIntEnumVal.md) | :heavy_check_mark: | An integer enum property. | 3 | +| `IntVal` | *long* | :heavy_check_mark: | An integer property. | 999999 | +| `NumVal` | *double* | :heavy_check_mark: | A number property. | 1.1 | +| `StrVal` | *string* | :heavy_check_mark: | A string property. | example | +| `BigintStrVal` | *BigInteger* | :heavy_minus_sign: | N/A | | +| `BigintVal` | *BigInteger* | :heavy_minus_sign: | N/A | | +| `BoolOptVal` | *bool* | :heavy_minus_sign: | An optional boolean property. | true | +| `DecimalVal` | *decimal* | :heavy_minus_sign: | N/A | | +| `IntOptNullVal` | *long* | :heavy_minus_sign: | An optional integer property will be null for tests. | 999999 | +| `NumOptNullVal` | *double* | :heavy_minus_sign: | An optional number property will be null for tests. | 1.1 | +| `StrOptVal` | *string* | :heavy_minus_sign: | An optional string property. | optional example | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCaseInt32EnumVal.md b/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCaseInt32EnumVal.md new file mode 100755 index 000000000..066a09cee --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCaseInt32EnumVal.md @@ -0,0 +1,12 @@ +# SimpleObjectCamelCaseInt32EnumVal + +An int32 enum property. + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `FiftyFive` | 55 | +| `SixtyNine` | 69 | +| `OneHundredAndEightyOne` | 181 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCaseIntEnumVal.md b/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCaseIntEnumVal.md new file mode 100755 index 000000000..13e4ff61c --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SimpleObjectCamelCaseIntEnumVal.md @@ -0,0 +1,12 @@ +# SimpleObjectCamelCaseIntEnumVal + +An integer enum property. + + +## Values + +| Name | Value | +| -------- | -------- | +| `First` | 1 | +| `Second` | 2 | +| `Third` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SimpleObjectInt32Enum.md b/csharp-client-sdk/docs/models/shared/SimpleObjectInt32Enum.md new file mode 100755 index 000000000..1671069bb --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SimpleObjectInt32Enum.md @@ -0,0 +1,12 @@ +# SimpleObjectInt32Enum + +An int32 enum property. + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `FiftyFive` | 55 | +| `SixtyNine` | 69 | +| `OneHundredAndEightyOne` | 181 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/SimpleObjectIntEnum.md b/csharp-client-sdk/docs/models/shared/SimpleObjectIntEnum.md new file mode 100755 index 000000000..90d7f4ecb --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/SimpleObjectIntEnum.md @@ -0,0 +1,12 @@ +# SimpleObjectIntEnum + +An integer enum property. + + +## Values + +| Name | Value | +| -------- | -------- | +| `First` | 1 | +| `Second` | 2 | +| `Third` | 3 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/TypedObject1.md b/csharp-client-sdk/docs/models/shared/TypedObject1.md new file mode 100755 index 000000000..41266632b --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/TypedObject1.md @@ -0,0 +1,9 @@ +# TypedObject1 + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `Type` | [TypedObject1Type](../../models/shared/TypedObject1Type.md) | :heavy_check_mark: | N/A | +| `Value` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/TypedObject1Type.md b/csharp-client-sdk/docs/models/shared/TypedObject1Type.md new file mode 100755 index 000000000..8df1ada70 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/TypedObject1Type.md @@ -0,0 +1,8 @@ +# TypedObject1Type + + +## Values + +| Name | Value | +| ------ | ------ | +| `Obj1` | obj1 | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/UnsupportedEnums.md b/csharp-client-sdk/docs/models/shared/UnsupportedEnums.md new file mode 100755 index 000000000..6c0889c3d --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/UnsupportedEnums.md @@ -0,0 +1,9 @@ +# UnsupportedEnums + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `BooleanEnum` | *bool* | :heavy_check_mark: | N/A | +| `NumberEnum` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/ValidCircularReferenceObject.md b/csharp-client-sdk/docs/models/shared/ValidCircularReferenceObject.md new file mode 100755 index 000000000..6c6571817 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/ValidCircularReferenceObject.md @@ -0,0 +1,8 @@ +# ValidCircularReferenceObject + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `Circular` | List<[ValidCircularReferenceObject](../../models/shared/ValidCircularReferenceObject.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/WriteOnlyObject.md b/csharp-client-sdk/docs/models/shared/WriteOnlyObject.md new file mode 100755 index 000000000..fc4447d43 --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/WriteOnlyObject.md @@ -0,0 +1,10 @@ +# WriteOnlyObject + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Bool` | *bool* | :heavy_check_mark: | N/A | +| `Num` | *double* | :heavy_check_mark: | N/A | +| `String` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/csharp-client-sdk/docs/models/shared/WriteOnlyObjectOutput.md b/csharp-client-sdk/docs/models/shared/WriteOnlyObjectOutput.md new file mode 100755 index 000000000..8d162ce7b --- /dev/null +++ b/csharp-client-sdk/docs/models/shared/WriteOnlyObjectOutput.md @@ -0,0 +1,7 @@ +# WriteOnlyObjectOutput + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/csharp-client-sdk/docs/sdks/auth/README.md b/csharp-client-sdk/docs/sdks/auth/README.md new file mode 100755 index 000000000..08a9ffb0e --- /dev/null +++ b/csharp-client-sdk/docs/sdks/auth/README.md @@ -0,0 +1,266 @@ +# AuthSDK +(*Auth*) + +## Overview + +Endpoints for testing authentication. + +### Available Operations + +* [ApiKeyAuth](#apikeyauth) +* [ApiKeyAuthGlobal](#apikeyauthglobal) +* [BasicAuth](#basicauth) +* [BearerAuth](#bearerauth) +* [GlobalBearerAuth](#globalbearerauth) +* [Oauth2Auth](#oauth2auth) +* [Oauth2Override](#oauth2override) +* [OpenIdConnectAuth](#openidconnectauth) + +## ApiKeyAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.ApiKeyAuthAsync(new ApiKeyAuthSecurity() { + ApiKeyAuth = "Token YOUR_API_KEY", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `security` | [ApiKeyAuthSecurity](../../models/operations/ApiKeyAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[ApiKeyAuthResponse](../../models/operations/ApiKeyAuthResponse.md)** + + +## ApiKeyAuthGlobal + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.ApiKeyAuthGlobalAsync(); + +// handle response +``` + + +### Response + +**[ApiKeyAuthGlobalResponse](../../models/operations/ApiKeyAuthGlobalResponse.md)** + + +## BasicAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.BasicAuthAsync(new BasicAuthSecurity() { + Password = "YOUR_PASSWORD", + Username = "YOUR_USERNAME", +}, "string", "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `security` | [BasicAuthSecurity](../../models/operations/BasicAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `Passwd` | *string* | :heavy_check_mark: | N/A | +| `User` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[BasicAuthResponse](../../models/operations/BasicAuthResponse.md)** + + +## BearerAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.BearerAuthAsync(new BearerAuthSecurity() { + BearerAuth = "YOUR_JWT", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `security` | [BearerAuthSecurity](../../models/operations/BearerAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[BearerAuthResponse](../../models/operations/BearerAuthResponse.md)** + + +## GlobalBearerAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.GlobalBearerAuthAsync(); + +// handle response +``` + + +### Response + +**[GlobalBearerAuthResponse](../../models/operations/GlobalBearerAuthResponse.md)** + + +## Oauth2Auth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.Oauth2AuthAsync(new Oauth2AuthSecurity() { + Oauth2 = "Bearer YOUR_OAUTH2_TOKEN", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `security` | [Oauth2AuthSecurity](../../models/operations/Oauth2AuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[Oauth2AuthResponse](../../models/operations/Oauth2AuthResponse.md)** + + +## Oauth2Override + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.Oauth2OverrideAsync(new Oauth2OverrideSecurity() { + Oauth2 = "Bearer YOUR_OAUTH2_TOKEN", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `security` | [Oauth2OverrideSecurity](../../models/operations/Oauth2OverrideSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[Oauth2OverrideResponse](../../models/operations/Oauth2OverrideResponse.md)** + + +## OpenIdConnectAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Auth.OpenIdConnectAuthAsync(new OpenIdConnectAuthSecurity() { + OpenIdConnect = "Bearer YOUR_OPENID_TOKEN", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `security` | [OpenIdConnectAuthSecurity](../../models/operations/OpenIdConnectAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[OpenIdConnectAuthResponse](../../models/operations/OpenIdConnectAuthResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/authnew/README.md b/csharp-client-sdk/docs/sdks/authnew/README.md new file mode 100755 index 000000000..d927fa2bf --- /dev/null +++ b/csharp-client-sdk/docs/sdks/authnew/README.md @@ -0,0 +1,536 @@ +# AuthNewSDK +(*AuthNew*) + +## Overview + +Endpoints for testing authentication. + +### Available Operations + +* [ApiKeyAuthGlobalNew](#apikeyauthglobalnew) +* [AuthGlobal](#authglobal) +* [BasicAuthNew](#basicauthnew) +* [MultipleMixedOptionsAuth](#multiplemixedoptionsauth) +* [MultipleMixedSchemeAuth](#multiplemixedschemeauth) +* [MultipleOptionsWithMixedSchemesAuth](#multipleoptionswithmixedschemesauth) +* [MultipleOptionsWithSimpleSchemesAuth](#multipleoptionswithsimpleschemesauth) +* [MultipleSimpleOptionsAuth](#multiplesimpleoptionsauth) +* [MultipleSimpleSchemeAuth](#multiplesimpleschemeauth) +* [Oauth2AuthNew](#oauth2authnew) +* [OpenIdConnectAuthNew](#openidconnectauthnew) + +## ApiKeyAuthGlobalNew + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.ApiKeyAuthGlobalNewAsync(new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "owsGgP4_AhRPMSJ", + Username = "Devonte_Bins", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ApiKeyAuthGlobalNewResponse](../../models/operations/ApiKeyAuthGlobalNewResponse.md)** + + +## AuthGlobal + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.AuthGlobalAsync(new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "xvJcf9GiJNr7T2x", + Username = "Cory33", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[AuthGlobalResponse](../../models/operations/AuthGlobalResponse.md)** + + +## BasicAuthNew + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.BasicAuthNewAsync(new BasicAuthNewSecurity() { + Password = "YOUR_PASSWORD", + Username = "YOUR_USERNAME", +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "Z2OStPksFyrcGeu", + Username = "Ashton.Steuber27", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [BasicAuthNewSecurity](../../models/operations/BasicAuthNewSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[BasicAuthNewResponse](../../models/operations/BasicAuthNewResponse.md)** + + +## MultipleMixedOptionsAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.MultipleMixedOptionsAuthAsync(new MultipleMixedOptionsAuthSecurity() { + ApiKeyAuthNew = "Token ", +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "Iq1JSzG1wqLDz4v", + Username = "Ismael.Emmerich", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [MultipleMixedOptionsAuthSecurity](../../models/operations/MultipleMixedOptionsAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[MultipleMixedOptionsAuthResponse](../../models/operations/MultipleMixedOptionsAuthResponse.md)** + + +## MultipleMixedSchemeAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.MultipleMixedSchemeAuthAsync(new MultipleMixedSchemeAuthSecurity() { + ApiKeyAuthNew = "Token ", + BasicAuth = new SchemeBasicAuth() { + Password = "YOUR_PASSWORD", + Username = "YOUR_USERNAME", + }, +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "OcWVV5608IiaWJQ", + Username = "Kameron42", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [MultipleMixedSchemeAuthSecurity](../../models/operations/MultipleMixedSchemeAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[MultipleMixedSchemeAuthResponse](../../models/operations/MultipleMixedSchemeAuthResponse.md)** + + +## MultipleOptionsWithMixedSchemesAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.MultipleOptionsWithMixedSchemesAuthAsync(new MultipleOptionsWithMixedSchemesAuthSecurity() { + Option1 = new MultipleOptionsWithMixedSchemesAuthSecurityOption1() { + ApiKeyAuthNew = "Token ", + Oauth2 = "Bearer YOUR_OAUTH2_TOKEN", + }, +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "fpwNE90MyqKIrXk", + Username = "Caroline_Walsh", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [MultipleOptionsWithMixedSchemesAuthSecurity](../../models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[MultipleOptionsWithMixedSchemesAuthResponse](../../models/operations/MultipleOptionsWithMixedSchemesAuthResponse.md)** + + +## MultipleOptionsWithSimpleSchemesAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.MultipleOptionsWithSimpleSchemesAuthAsync(new MultipleOptionsWithSimpleSchemesAuthSecurity() { + Option1 = new MultipleOptionsWithSimpleSchemesAuthSecurityOption1() { + ApiKeyAuthNew = "Token ", + Oauth2 = "Bearer YOUR_OAUTH2_TOKEN", + }, +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "pibxDTiJSijK04Y", + Username = "Selena76", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [MultipleOptionsWithSimpleSchemesAuthSecurity](../../models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[MultipleOptionsWithSimpleSchemesAuthResponse](../../models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.md)** + + +## MultipleSimpleOptionsAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.MultipleSimpleOptionsAuthAsync(new MultipleSimpleOptionsAuthSecurity() { + ApiKeyAuthNew = "Token ", +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "pzdKQgSGZSrUGNs", + Username = "Eryn51", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [MultipleSimpleOptionsAuthSecurity](../../models/operations/MultipleSimpleOptionsAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[MultipleSimpleOptionsAuthResponse](../../models/operations/MultipleSimpleOptionsAuthResponse.md)** + + +## MultipleSimpleSchemeAuth + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.MultipleSimpleSchemeAuthAsync(new MultipleSimpleSchemeAuthSecurity() { + ApiKeyAuthNew = "Token ", + Oauth2 = "Bearer YOUR_OAUTH2_TOKEN", +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "UrAsw466AAaYtr1", + Username = "Kenya.Baumbach", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [MultipleSimpleSchemeAuthSecurity](../../models/operations/MultipleSimpleSchemeAuthSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[MultipleSimpleSchemeAuthResponse](../../models/operations/MultipleSimpleSchemeAuthResponse.md)** + + +## Oauth2AuthNew + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.Oauth2AuthNewAsync(new Oauth2AuthNewSecurity() { + Oauth2 = "Bearer YOUR_OAUTH2_TOKEN", +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "V02sHy2onRTMRgS", + Username = "Polly.Aufderhar78", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [Oauth2AuthNewSecurity](../../models/operations/Oauth2AuthNewSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[Oauth2AuthNewResponse](../../models/operations/Oauth2AuthNewResponse.md)** + + +## OpenIdConnectAuthNew + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.AuthNew.OpenIdConnectAuthNewAsync(new OpenIdConnectAuthNewSecurity() { + OpenIdConnect = "Bearer YOUR_OPENID_TOKEN", +}, new AuthServiceRequestBody() { + BasicAuth = new AuthServiceRequestBodyBasicAuth() { + Password = "1_B3hNdr8HC3AeS", + Username = "Floy_Heller", + }, + HeaderAuth = new List() { + new AuthServiceRequestBodyHeaderAuth() { + ExpectedValue = "string", + HeaderName = "string", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `request` | [AuthServiceRequestBody](../../models/shared/AuthServiceRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [OpenIdConnectAuthNewSecurity](../../models/operations/OpenIdConnectAuthNewSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[OpenIdConnectAuthNewResponse](../../models/operations/OpenIdConnectAuthNewResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/documentation/README.md b/csharp-client-sdk/docs/sdks/documentation/README.md new file mode 100755 index 000000000..8c23637a0 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/documentation/README.md @@ -0,0 +1,46 @@ +# DocumentationSDK +(*Documentation*) + +## Overview + +Testing for documentation extensions and tooling. + +### Available Operations + +* [GetDocumentationPerLanguage](#getdocumentationperlanguage) - Gets documentation for some language, I guess. + +## GetDocumentationPerLanguage + +Gets documentation for some language, I guess. + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Documentation.GetDocumentationPerLanguageAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `Language` | *string* | :heavy_check_mark: | The language parameter for this endpoint. | + + +### Response + +**[GetDocumentationPerLanguageResponse](../../models/operations/GetDocumentationPerLanguageResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/errors/README.md b/csharp-client-sdk/docs/sdks/errors/README.md new file mode 100755 index 000000000..be99db5e4 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/errors/README.md @@ -0,0 +1,114 @@ +# ErrorsSDK +(*Errors*) + +## Overview + +Endpoints for testing error responses. + +### Available Operations + +* [ConnectionErrorGet](#connectionerrorget) +* [StatusGetError](#statusgeterror) +* [StatusGetXSpeakeasyErrors](#statusgetxspeakeasyerrors) + +## ConnectionErrorGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Errors.ConnectionErrorGetAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ConnectionErrorGetResponse](../../models/operations/ConnectionErrorGetResponse.md)** + + +## StatusGetError + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Errors.StatusGetErrorAsync(458364); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `StatusCode` | *long* | :heavy_check_mark: | N/A | + + +### Response + +**[StatusGetErrorResponse](../../models/operations/StatusGetErrorResponse.md)** + + +## StatusGetXSpeakeasyErrors + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Errors.StatusGetXSpeakeasyErrorsAsync(385913); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `StatusCode` | *long* | :heavy_check_mark: | N/A | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[StatusGetXSpeakeasyErrorsResponse](../../models/operations/StatusGetXSpeakeasyErrorsResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/first/README.md b/csharp-client-sdk/docs/sdks/first/README.md new file mode 100755 index 000000000..576325592 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/first/README.md @@ -0,0 +1,33 @@ +# FirstSDK +(*First*) + +### Available Operations + +* [Get](#get) + +## Get + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.First.GetAsync(); + +// handle response +``` + + +### Response + +**[GroupFirstGetResponse](../../models/operations/GroupFirstGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/flattening/README.md b/csharp-client-sdk/docs/sdks/flattening/README.md new file mode 100755 index 000000000..ca984eb6b --- /dev/null +++ b/csharp-client-sdk/docs/sdks/flattening/README.md @@ -0,0 +1,235 @@ +# FlatteningSDK +(*Flattening*) + +## Overview + +Endpoints for testing flattening through request body and parameter combinations. + +### Available Operations + +* [ComponentBodyAndParamConflict](#componentbodyandparamconflict) +* [ComponentBodyAndParamNoConflict](#componentbodyandparamnoconflict) +* [ConflictingParams](#conflictingparams) +* [InlineBodyAndParamConflict](#inlinebodyandparamconflict) +* [InlineBodyAndParamNoConflict](#inlinebodyandparamnoconflict) + +## ComponentBodyAndParamConflict + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Flattening.ComponentBodyAndParamConflictAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `SimpleObject` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[ComponentBodyAndParamConflictResponse](../../models/operations/ComponentBodyAndParamConflictResponse.md)** + + +## ComponentBodyAndParamNoConflict + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Flattening.ComponentBodyAndParamNoConflictAsync("string", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | +| `SimpleObject` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | N/A | + + +### Response + +**[ComponentBodyAndParamNoConflictResponse](../../models/operations/ComponentBodyAndParamNoConflictResponse.md)** + + +## ConflictingParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Flattening.ConflictingParamsAsync("string", "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `StrPathParameter` | *string* | :heavy_check_mark: | N/A | +| `StrQueryParameter` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[ConflictingParamsResponse](../../models/operations/ConflictingParamsResponse.md)** + + +## InlineBodyAndParamConflict + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Flattening.InlineBodyAndParamConflictAsync(new InlineBodyAndParamConflictRequestBody() { + Str = "string", +}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [InlineBodyAndParamConflictRequestBody](../../models/operations/InlineBodyAndParamConflictRequestBody.md) | :heavy_check_mark: | N/A | +| `Str` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[InlineBodyAndParamConflictResponse](../../models/operations/InlineBodyAndParamConflictResponse.md)** + + +## InlineBodyAndParamNoConflict + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Flattening.InlineBodyAndParamNoConflictAsync(new InlineBodyAndParamNoConflictRequestBody() { + BodyStr = "string", +}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [InlineBodyAndParamNoConflictRequestBody](../../models/operations/InlineBodyAndParamNoConflictRequestBody.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[InlineBodyAndParamNoConflictResponse](../../models/operations/InlineBodyAndParamNoConflictResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/generation/README.md b/csharp-client-sdk/docs/sdks/generation/README.md new file mode 100755 index 000000000..cdf52bd9b --- /dev/null +++ b/csharp-client-sdk/docs/sdks/generation/README.md @@ -0,0 +1,714 @@ +# GenerationSDK +(*Generation*) + +## Overview + +Endpoints for purely testing valid generation behavior. + +### Available Operations + +* [AnchorTypesGet](#anchortypesget) +* [ArrayCircularReferenceGet](#arraycircularreferenceget) +* [CircularReferenceGet](#circularreferenceget) +* [DateParamWithDefault](#dateparamwithdefault) +* [DateTimeParamWithDefault](#datetimeparamwithdefault) +* [DecimalParamWithDefault](#decimalparamwithdefault) +* [DeprecatedFieldInSchemaPost](#deprecatedfieldinschemapost) +* [DeprecatedObjectInSchemaGet](#deprecatedobjectinschemaget) +* [~~DeprecatedOperationNoCommentsGet~~](#deprecatedoperationnocommentsget) - :warning: **Deprecated** +* [~~DeprecatedOperationWithCommentsGet~~](#deprecatedoperationwithcommentsget) - This is an endpoint setup to test deprecation with comments :warning: **Deprecated** Use `SimplePathParameterObjects` instead. +* [EmptyObjectGet](#emptyobjectget) +* [EmptyResponseObjectWithCommentGet](#emptyresponseobjectwithcommentget) +* [GlobalNameOverridden](#globalnameoverridden) +* [IgnoredGenerationGet](#ignoredgenerationget) +* [IgnoresPost](#ignorespost) +* [NameOverride](#nameoverride) +* [ObjectCircularReferenceGet](#objectcircularreferenceget) +* [OneOfCircularReferenceGet](#oneofcircularreferenceget) +* [TypedParameterGenerationGet](#typedparametergenerationget) +* [UsageExamplePost](#usageexamplepost) - An operation used for testing usage examples + +## AnchorTypesGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.AnchorTypesGetAsync(); + +// handle response +``` + + +### Response + +**[AnchorTypesGetResponse](../../models/operations/AnchorTypesGetResponse.md)** + + +## ArrayCircularReferenceGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.ArrayCircularReferenceGetAsync(); + +// handle response +``` + + +### Response + +**[ArrayCircularReferenceGetResponse](../../models/operations/ArrayCircularReferenceGetResponse.md)** + + +## CircularReferenceGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.CircularReferenceGetAsync(); + +// handle response +``` + + +### Response + +**[CircularReferenceGetResponse](../../models/operations/CircularReferenceGetResponse.md)** + + +## DateParamWithDefault + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DateParamWithDefaultAsync(LocalDate.FromDateTime(DateTime.Parse("2021-11-30"))); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `DateInput` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | A date parameter with a default value | + + +### Response + +**[DateParamWithDefaultResponse](../../models/operations/DateParamWithDefaultResponse.md)** + + +## DateTimeParamWithDefault + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DateTimeParamWithDefaultAsync(DateTime.Parse("2023-02-09T21:53:21.077Z")); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `DateTimeInput` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | A date time parameter with a default value | + + +### Response + +**[DateTimeParamWithDefaultResponse](../../models/operations/DateTimeParamWithDefaultResponse.md)** + + +## DecimalParamWithDefault + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DecimalParamWithDefaultAsync(4060.06M); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `DecimalInput` | *decimal* | :heavy_check_mark: | A decimal parameter with a default value | + + +### Response + +**[DecimalParamWithDefaultResponse](../../models/operations/DecimalParamWithDefaultResponse.md)** + + +## DeprecatedFieldInSchemaPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DeprecatedFieldInSchemaPostAsync(new DeprecatedFieldInObject() {}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | [DeprecatedFieldInObject](../../models/shared/DeprecatedFieldInObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[DeprecatedFieldInSchemaPostResponse](../../models/operations/DeprecatedFieldInSchemaPostResponse.md)** + + +## DeprecatedObjectInSchemaGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DeprecatedObjectInSchemaGetAsync(); + +// handle response +``` + + +### Response + +**[DeprecatedObjectInSchemaGetResponse](../../models/operations/DeprecatedObjectInSchemaGetResponse.md)** + + +## ~~DeprecatedOperationNoCommentsGet~~ + +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DeprecatedOperationNoCommentsGetAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `DeprecatedParameter` | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | + + +### Response + +**[DeprecatedOperationNoCommentsGetResponse](../../models/operations/DeprecatedOperationNoCommentsGetResponse.md)** + + +## ~~DeprecatedOperationWithCommentsGet~~ + +This is an endpoint setup to test deprecation with comments + +> :warning: **DEPRECATED**: This operation is deprecated. Use `SimplePathParameterObjects` instead. + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.DeprecatedOperationWithCommentsGetAsync("string", "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `DeprecatedParameter` | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This parameter is deprecated. Use NewParameter instead.

This is a string parameter | +| `NewParameter` | *string* | :heavy_minus_sign: | This is a string parameter | + + +### Response + +**[DeprecatedOperationWithCommentsGetResponse](../../models/operations/DeprecatedOperationWithCommentsGetResponse.md)** + + +## EmptyObjectGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.EmptyObjectGetAsync(new EmptyObjectParam() {}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `EmptyObject` | [EmptyObjectParam](../../models/shared/EmptyObjectParam.md) | :heavy_check_mark: | N/A | + + +### Response + +**[EmptyObjectGetResponse](../../models/operations/EmptyObjectGetResponse.md)** + + +## EmptyResponseObjectWithCommentGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.EmptyResponseObjectWithCommentGetAsync(); + +// handle response +``` + + +### Response + +**[EmptyResponseObjectWithCommentGetResponse](../../models/operations/EmptyResponseObjectWithCommentGetResponse.md)** + + +## GlobalNameOverridden + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.GlobalNameOverriddenAsync(); + +// handle response +``` + + +### Response + +**[GetGlobalNameOverrideResponse](../../models/operations/GetGlobalNameOverrideResponse.md)** + + +## IgnoredGenerationGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.IgnoredGenerationGetAsync(); + +// handle response +``` + + +### Response + +**[IgnoredGenerationGetResponse](../../models/operations/IgnoredGenerationGetResponse.md)** + + +## IgnoresPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.IgnoresPostAsync(new IgnoresPostApplicationJSON() {}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `RequestBody` | [IgnoresPostApplicationJSON](../../models/operations/IgnoresPostApplicationJSON.md) | :heavy_check_mark: | N/A | +| `TestParam` | *string* | :heavy_minus_sign: | N/A | + + +### Response + +**[IgnoresPostResponse](../../models/operations/IgnoresPostResponse.md)** + + +## NameOverride + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.NameOverrideAsync(SDK.Models.Operations.NameOverrideGetEnumNameOverride.Value3, "example"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `TestEnumQueryParam` | [NameOverrideGetEnumNameOverride](../../models/operations/NameOverrideGetEnumNameOverride.md) | :heavy_check_mark: | An enum type | value3 | +| `TestQueryParam` | *string* | :heavy_check_mark: | N/A | example | + + +### Response + +**[NameOverrideGetResponse](../../models/operations/NameOverrideGetResponse.md)** + + +## ObjectCircularReferenceGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.ObjectCircularReferenceGetAsync(); + +// handle response +``` + + +### Response + +**[ObjectCircularReferenceGetResponse](../../models/operations/ObjectCircularReferenceGetResponse.md)** + + +## OneOfCircularReferenceGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.OneOfCircularReferenceGetAsync(); + +// handle response +``` + + +### Response + +**[OneOfCircularReferenceGetResponse](../../models/operations/OneOfCircularReferenceGetResponse.md)** + + +## TypedParameterGenerationGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.TypedParameterGenerationGetAsync(879275, LocalDate.FromDateTime(DateTime.Parse("2023-11-18")), 3346.96M, new TypedParameterGenerationGetObj() { + Bool = false, + Num = 4778.06D, + Str = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `Bigint` | *BigInteger* | :heavy_minus_sign: | N/A | +| `Date` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_minus_sign: | N/A | +| `Decimal` | *decimal* | :heavy_minus_sign: | N/A | +| `Obj` | [TypedParameterGenerationGetObj](../../models/operations/TypedParameterGenerationGetObj.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[TypedParameterGenerationGetResponse](../../models/operations/TypedParameterGenerationGetResponse.md)** + + +## UsageExamplePost + +An operation used for testing usage examples that includes a large array of parameters and input types to ensure that all are handled correctly + +Usage example docs + + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Operations; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Generation.UsageExamplePostAsync(new UsageExamplePostSecurity() { + Password = "YOUR_PASSWORD", + Username = "YOUR_USERNAME", +}, new UsageExamplePostRequest() { + BigintParameter = 168827, + BigintStrParameter = 446729, + BoolParameter = false, + DateParameter = LocalDate.FromDateTime(DateTime.Parse("2023-06-11")), + DateTimeDefaultParameter = DateTime.Parse("2022-07-22T13:16:48.221Z"), + DateTimeParameter = DateTime.Parse("2021-10-21T09:16:58.799Z"), + DecimalParameter = 5223.72M, + DecimalStrParameter = 2911.37M, + DoubleParameter = 6946.59D, + EnumParameter = SDK.Models.Operations.UsageExamplePostEnumParameter.Value1, + FalseyNumberParameter = 0D, + Float32Parameter = 1029.75F, + FloatParameter = 5669.99D, + Int64Parameter = 195232, + IntParameter = 569663, + StrParameter = "example 1", + RequestBody = new UsageExamplePostRequestBody() { + FakerFormattedStrings = new FakerFormattedStrings() {}, + FakerStrings = new FakerStrings() {}, + SimpleObject = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + OptEnumParameter = SDK.Models.Operations.UsageExamplePostOptEnumParameter.Value3, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `request` | [UsageExamplePostRequest](../../models/operations/UsageExamplePostRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [UsageExamplePostSecurity](../../models/operations/UsageExamplePostSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[UsageExamplePostResponse](../../models/operations/UsageExamplePostResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/globals/README.md b/csharp-client-sdk/docs/sdks/globals/README.md new file mode 100755 index 000000000..fee2c2f17 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/globals/README.md @@ -0,0 +1,79 @@ +# GlobalsSDK +(*Globals*) + +## Overview + +Endpoints for testing global parameters. + +### Available Operations + +* [GlobalPathParameterGet](#globalpathparameterget) +* [GlobalsQueryParameterGet](#globalsqueryparameterget) + +## GlobalPathParameterGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Globals.GlobalPathParameterGetAsync(719830); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `GlobalPathParam` | *long* | :heavy_minus_sign: | N/A | + + +### Response + +**[GlobalPathParameterGetResponse](../../models/operations/GlobalPathParameterGetResponse.md)** + + +## GlobalsQueryParameterGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Globals.GlobalsQueryParameterGetAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `GlobalQueryParam` | *string* | :heavy_minus_sign: | N/A | + + +### Response + +**[GlobalsQueryParameterGetResponse](../../models/operations/GlobalsQueryParameterGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/nest/README.md b/csharp-client-sdk/docs/sdks/nest/README.md new file mode 100755 index 000000000..c63515e84 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/nest/README.md @@ -0,0 +1,5 @@ +# NestSDK +(*Nest*) + +### Available Operations + diff --git a/csharp-client-sdk/docs/sdks/nested/README.md b/csharp-client-sdk/docs/sdks/nested/README.md new file mode 100755 index 000000000..a68264c12 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/nested/README.md @@ -0,0 +1,33 @@ +# NestedSDK +(*Nested*) + +### Available Operations + +* [Get](#get) + +## Get + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Nested.GetAsync(); + +// handle response +``` + + +### Response + +**[NestedGetResponse](../../models/operations/NestedGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/nestedfirst/README.md b/csharp-client-sdk/docs/sdks/nestedfirst/README.md new file mode 100755 index 000000000..ee9b9f14b --- /dev/null +++ b/csharp-client-sdk/docs/sdks/nestedfirst/README.md @@ -0,0 +1,33 @@ +# NestedFirstSDK +(*Nested.First*) + +### Available Operations + +* [Get](#get) + +## Get + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Nested.First.GetAsync(); + +// handle response +``` + + +### Response + +**[NestedFirstGetResponse](../../models/operations/NestedFirstGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/nestedsecond/README.md b/csharp-client-sdk/docs/sdks/nestedsecond/README.md new file mode 100755 index 000000000..545aca1bd --- /dev/null +++ b/csharp-client-sdk/docs/sdks/nestedsecond/README.md @@ -0,0 +1,33 @@ +# NestedSecondSDK +(*Nested.Second*) + +### Available Operations + +* [Get](#get) + +## Get + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Nested.Second.GetAsync(); + +// handle response +``` + + +### Response + +**[NestedSecondGetResponse](../../models/operations/NestedSecondGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/nestfirst/README.md b/csharp-client-sdk/docs/sdks/nestfirst/README.md new file mode 100755 index 000000000..189e17eaf --- /dev/null +++ b/csharp-client-sdk/docs/sdks/nestfirst/README.md @@ -0,0 +1,33 @@ +# NestFirstSDK +(*Nest.First*) + +### Available Operations + +* [Get](#get) + +## Get + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Nest.First.GetAsync(); + +// handle response +``` + + +### Response + +**[NestFirstGetResponse](../../models/operations/NestFirstGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/pagination/README.md b/csharp-client-sdk/docs/sdks/pagination/README.md new file mode 100755 index 000000000..cdc029f76 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/pagination/README.md @@ -0,0 +1,226 @@ +# PaginationSDK +(*Pagination*) + +## Overview + +Endpoints for testing the pagination extension + +### Available Operations + +* [PaginationCursorBody](#paginationcursorbody) +* [PaginationCursorParams](#paginationcursorparams) +* [PaginationLimitOffsetOffsetBody](#paginationlimitoffsetoffsetbody) +* [PaginationLimitOffsetOffsetParams](#paginationlimitoffsetoffsetparams) +* [PaginationLimitOffsetPageBody](#paginationlimitoffsetpagebody) +* [PaginationLimitOffsetPageParams](#paginationlimitoffsetpageparams) + +## PaginationCursorBody + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Pagination.PaginationCursorBodyAsync(new PaginationCursorBodyRequestBody() { + Cursor = 868337, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `request` | [PaginationCursorBodyRequestBody](../../models/operations/PaginationCursorBodyRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[PaginationCursorBodyResponse](../../models/operations/PaginationCursorBodyResponse.md)** + + +## PaginationCursorParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Pagination.PaginationCursorParamsAsync(24812); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `Cursor` | *long* | :heavy_check_mark: | N/A | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[PaginationCursorParamsResponse](../../models/operations/PaginationCursorParamsResponse.md)** + + +## PaginationLimitOffsetOffsetBody + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Pagination.PaginationLimitOffsetOffsetBodyAsync(new LimitOffsetConfig() {}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `request` | [LimitOffsetConfig](../../models/shared/LimitOffsetConfig.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[PaginationLimitOffsetOffsetBodyResponse](../../models/operations/PaginationLimitOffsetOffsetBodyResponse.md)** + + +## PaginationLimitOffsetOffsetParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Pagination.PaginationLimitOffsetOffsetParamsAsync(661976, 600173); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `Limit` | *long* | :heavy_minus_sign: | N/A | +| `Offset` | *long* | :heavy_minus_sign: | N/A | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[PaginationLimitOffsetOffsetParamsResponse](../../models/operations/PaginationLimitOffsetOffsetParamsResponse.md)** + + +## PaginationLimitOffsetPageBody + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Pagination.PaginationLimitOffsetPageBodyAsync(new LimitOffsetConfig() {}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `request` | [LimitOffsetConfig](../../models/shared/LimitOffsetConfig.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[PaginationLimitOffsetPageBodyResponse](../../models/operations/PaginationLimitOffsetPageBodyResponse.md)** + + +## PaginationLimitOffsetPageParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Pagination.PaginationLimitOffsetPageParamsAsync(1177); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `Page` | *long* | :heavy_check_mark: | N/A | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[PaginationLimitOffsetPageParamsResponse](../../models/operations/PaginationLimitOffsetPageParamsResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/parameters/README.md b/csharp-client-sdk/docs/sdks/parameters/README.md new file mode 100755 index 000000000..99cc5f160 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/parameters/README.md @@ -0,0 +1,1289 @@ +# ParametersSDK +(*Parameters*) + +## Overview + +Endpoints for testing parameters. + +### Available Operations + +* [DeepObjectQueryParamsMap](#deepobjectqueryparamsmap) +* [DeepObjectQueryParamsObject](#deepobjectqueryparamsobject) +* [DuplicateParam](#duplicateparam) +* [FormQueryParamsArray](#formqueryparamsarray) +* [FormQueryParamsCamelObject](#formqueryparamscamelobject) +* [FormQueryParamsMap](#formqueryparamsmap) +* [FormQueryParamsObject](#formqueryparamsobject) +* [FormQueryParamsPrimitive](#formqueryparamsprimitive) +* [FormQueryParamsRefParamObject](#formqueryparamsrefparamobject) +* [HeaderParamsArray](#headerparamsarray) +* [HeaderParamsMap](#headerparamsmap) +* [HeaderParamsObject](#headerparamsobject) +* [HeaderParamsPrimitive](#headerparamsprimitive) +* [JsonQueryParamsObject](#jsonqueryparamsobject) +* [MixedParametersCamelCase](#mixedparameterscamelcase) +* [MixedParametersPrimitives](#mixedparametersprimitives) +* [MixedQueryParams](#mixedqueryparams) +* [PathParameterJson](#pathparameterjson) +* [PipeDelimitedQueryParamsArray](#pipedelimitedqueryparamsarray) +* [SimplePathParameterArrays](#simplepathparameterarrays) +* [SimplePathParameterMaps](#simplepathparametermaps) +* [SimplePathParameterObjects](#simplepathparameterobjects) +* [SimplePathParameterPrimitives](#simplepathparameterprimitives) + +## DeepObjectQueryParamsMap + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.DeepObjectQueryParamsMapAsync(new Dictionary() { + { "test", "value" }, + { "test2", "value2" }, +}, new Dictionary>() { + { "test", new List() { + "test", + "test2", + } }, + { "test2", new List() { + "test3", + "test4", + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | +| `MapParam` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `MapArrParam` | Dictionary> | :heavy_minus_sign: | N/A | [object Object] | + + +### Response + +**[DeepObjectQueryParamsMapResponse](../../models/operations/DeepObjectQueryParamsMapResponse.md)** + + +## DeepObjectQueryParamsObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.DeepObjectQueryParamsObjectAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, new DeepObjectQueryParamsObjectObjArrParam() { + Arr = new List() { + "test", + "test2", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `ObjArrParam` | [DeepObjectQueryParamsObjectObjArrParam](../../models/operations/DeepObjectQueryParamsObjectObjArrParam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[DeepObjectQueryParamsObjectResponse](../../models/operations/DeepObjectQueryParamsObjectResponse.md)** + + +## DuplicateParam + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.DuplicateParamAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `DuplicateParamRequest` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[DuplicateParamResponse](../../models/operations/DuplicateParamResponse.md)** + + +## FormQueryParamsArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.FormQueryParamsArrayAsync(new List() { + "test", + "test2", +}, new List() { + 1, + 2, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ArrParam` | List<*string*> | :heavy_minus_sign: | N/A | +| `ArrParamExploded` | List<*long*> | :heavy_minus_sign: | N/A | + + +### Response + +**[FormQueryParamsArrayResponse](../../models/operations/FormQueryParamsArrayResponse.md)** + + +## FormQueryParamsCamelObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.FormQueryParamsCamelObjectAsync(new FormQueryParamsCamelObjectObjParamExploded() { + ItemCount = "10", + SearchTerm = "foo", +}, new FormQueryParamsCamelObjectObjParam() { + EncodedCount = "11", + EncodedTerm = "bar", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `ObjParamExploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/FormQueryParamsCamelObjectObjParamExploded.md) | :heavy_check_mark: | N/A | +| `ObjParam` | [FormQueryParamsCamelObjectObjParam](../../models/operations/FormQueryParamsCamelObjectObjParam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[FormQueryParamsCamelObjectResponse](../../models/operations/FormQueryParamsCamelObjectResponse.md)** + + +## FormQueryParamsMap + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.FormQueryParamsMapAsync(new Dictionary() { + { "test", "value" }, + { "test2", "value2" }, +}, new Dictionary() { + { "test", 1 }, + { "test2", 2 }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `MapParam` | Dictionary | :heavy_minus_sign: | N/A | [object Object] | +| `MapParamExploded` | Dictionary | :heavy_minus_sign: | N/A | [object Object] | + + +### Response + +**[FormQueryParamsMapResponse](../../models/operations/FormQueryParamsMapResponse.md)** + + +## FormQueryParamsObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.FormQueryParamsObjectAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ObjParamExploded` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | + + +### Response + +**[FormQueryParamsObjectResponse](../../models/operations/FormQueryParamsObjectResponse.md)** + + +## FormQueryParamsPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.FormQueryParamsPrimitiveAsync(true, 1, 1.1D, "test"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `BoolParam` | *bool* | :heavy_check_mark: | N/A | true | +| `IntParam` | *long* | :heavy_check_mark: | N/A | 1 | +| `NumParam` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `StrParam` | *string* | :heavy_check_mark: | N/A | test | + + +### Response + +**[FormQueryParamsPrimitiveResponse](../../models/operations/FormQueryParamsPrimitiveResponse.md)** + + +## FormQueryParamsRefParamObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.FormQueryParamsRefParamObjectAsync(new RefQueryParamObj() { + Bool = true, + Int = 1, + Num = 1.1D, + Str = "test", +}, new RefQueryParamObjExploded() { + Bool = true, + Int = 1, + Num = 1.1D, + Str = "test", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `RefObjParam` | [RefQueryParamObj](../../models/shared/RefQueryParamObj.md) | :heavy_minus_sign: | N/A | +| `RefObjParamExploded` | [RefQueryParamObjExploded](../../models/shared/RefQueryParamObjExploded.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[FormQueryParamsRefParamObjectResponse](../../models/operations/FormQueryParamsRefParamObjectResponse.md)** + + +## HeaderParamsArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.HeaderParamsArrayAsync(new List() { + "test1", + "test2", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `XHeaderArray` | List<*string*> | :heavy_check_mark: | N/A | + + +### Response + +**[HeaderParamsArrayResponse](../../models/operations/HeaderParamsArrayResponse.md)** + + +## HeaderParamsMap + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.HeaderParamsMapAsync(new Dictionary() { + { "key1", "value1" }, + { "key2", "value2" }, +}, new Dictionary() { + { "test1", "val1" }, + { "test2", "val2" }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `XHeaderMap` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `XHeaderMapExplode` | Dictionary | :heavy_check_mark: | N/A | [object Object] | + + +### Response + +**[HeaderParamsMapResponse](../../models/operations/HeaderParamsMapResponse.md)** + + +## HeaderParamsObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.HeaderParamsObjectAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `XHeaderObj` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `XHeaderObjExplode` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | + + +### Response + +**[HeaderParamsObjectResponse](../../models/operations/HeaderParamsObjectResponse.md)** + + +## HeaderParamsPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.HeaderParamsPrimitiveAsync(true, 1, 1.1D, "test"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `XHeaderBoolean` | *bool* | :heavy_check_mark: | N/A | true | +| `XHeaderInteger` | *long* | :heavy_check_mark: | N/A | 1 | +| `XHeaderNumber` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `XHeaderString` | *string* | :heavy_check_mark: | N/A | test | + + +### Response + +**[HeaderParamsPrimitiveResponse](../../models/operations/HeaderParamsPrimitiveResponse.md)** + + +## JsonQueryParamsObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.JsonQueryParamsObjectAsync(new DeepObject() { + Any = "anyOf[0]", + Arr = new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + Bool = true, + Int = 1, + Map = new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + { "key2", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + }, + Num = 1.1D, + Obj = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + Str = "test", +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `DeepObjParam` | [DeepObject](../../models/shared/DeepObject.md) | :heavy_check_mark: | N/A | +| `SimpleObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | + + +### Response + +**[JsonQueryParamsObjectResponse](../../models/operations/JsonQueryParamsObjectResponse.md)** + + +## MixedParametersCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.MixedParametersCamelCaseAsync("headerValue", "pathValue", "queryValue"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `HeaderParam` | *string* | :heavy_check_mark: | N/A | headerValue | +| `PathParam` | *string* | :heavy_check_mark: | N/A | pathValue | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | queryValue | + + +### Response + +**[MixedParametersCamelCaseResponse](../../models/operations/MixedParametersCamelCaseResponse.md)** + + +## MixedParametersPrimitives + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.MixedParametersPrimitivesAsync("headerValue", "pathValue", "queryValue"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `HeaderParam` | *string* | :heavy_check_mark: | N/A | headerValue | +| `PathParam` | *string* | :heavy_check_mark: | N/A | pathValue | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | queryValue | + + +### Response + +**[MixedParametersPrimitivesResponse](../../models/operations/MixedParametersPrimitivesResponse.md)** + + +## MixedQueryParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.MixedQueryParamsAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `DeepObjectParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `FormParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `JsonParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | + + +### Response + +**[MixedQueryParamsResponse](../../models/operations/MixedQueryParamsResponse.md)** + + +## PathParameterJson + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.PathParameterJsonAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `JsonObj` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | + + +### Response + +**[PathParameterJsonResponse](../../models/operations/PathParameterJsonResponse.md)** + + +## PipeDelimitedQueryParamsArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.PipeDelimitedQueryParamsArrayAsync(new List() { + "test", + "test2", +}, new List() { + 1, + 2, +}, new Dictionary() { + { "key1", "val1" }, + { "key2", "val2" }, +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ArrParam` | List<*string*> | :heavy_minus_sign: | N/A | | +| `ArrParamExploded` | List<*long*> | :heavy_minus_sign: | N/A | | +| `MapParam` | Dictionary | :heavy_minus_sign: | N/A | [object Object] | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | + + +### Response + +**[PipeDelimitedQueryParamsArrayResponse](../../models/operations/PipeDelimitedQueryParamsArrayResponse.md)** + + +## SimplePathParameterArrays + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.SimplePathParameterArraysAsync(new List() { + "test", + "test2", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ArrParam` | List<*string*> | :heavy_check_mark: | N/A | + + +### Response + +**[SimplePathParameterArraysResponse](../../models/operations/SimplePathParameterArraysResponse.md)** + + +## SimplePathParameterMaps + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.SimplePathParameterMapsAsync(new Dictionary() { + { "test", "value" }, + { "test2", "value2" }, +}, new Dictionary() { + { "test", 1 }, + { "test2", 2 }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `MapParam` | Dictionary | :heavy_check_mark: | N/A | [object Object] | +| `MapParamExploded` | Dictionary | :heavy_check_mark: | N/A | [object Object] | + + +### Response + +**[SimplePathParameterMapsResponse](../../models/operations/SimplePathParameterMapsResponse.md)** + + +## SimplePathParameterObjects + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.SimplePathParameterObjectsAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}, new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `ObjParam` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `ObjParamExploded` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | + + +### Response + +**[SimplePathParameterObjectsResponse](../../models/operations/SimplePathParameterObjectsResponse.md)** + + +## SimplePathParameterPrimitives + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Parameters.SimplePathParameterPrimitivesAsync(true, 1, 1.1D, "test"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `BoolParam` | *bool* | :heavy_check_mark: | N/A | true | +| `IntParam` | *long* | :heavy_check_mark: | N/A | 1 | +| `NumParam` | *double* | :heavy_check_mark: | N/A | 1.1 | +| `StrParam` | *string* | :heavy_check_mark: | N/A | test | + + +### Response + +**[SimplePathParameterPrimitivesResponse](../../models/operations/SimplePathParameterPrimitivesResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/requestbodies/README.md b/csharp-client-sdk/docs/sdks/requestbodies/README.md new file mode 100755 index 000000000..de3969caf --- /dev/null +++ b/csharp-client-sdk/docs/sdks/requestbodies/README.md @@ -0,0 +1,3835 @@ +# RequestBodiesSDK +(*RequestBodies*) + +## Overview + +Endpoints for testing request bodies. + +### Available Operations + +* [NullableObjectPost](#nullableobjectpost) +* [NullableRequiredEmptyObjectPost](#nullablerequiredemptyobjectpost) +* [NullableRequiredPropertyPost](#nullablerequiredpropertypost) +* [NullableRequiredSharedObjectPost](#nullablerequiredsharedobjectpost) +* [RequestBodyPostApplicationJsonArray](#requestbodypostapplicationjsonarray) +* [RequestBodyPostApplicationJsonArrayCamelCase](#requestbodypostapplicationjsonarraycamelcase) +* [RequestBodyPostApplicationJsonArrayObj](#requestbodypostapplicationjsonarrayobj) +* [RequestBodyPostApplicationJsonArrayObjCamelCase](#requestbodypostapplicationjsonarrayobjcamelcase) +* [RequestBodyPostApplicationJsonArrayOfArray](#requestbodypostapplicationjsonarrayofarray) +* [RequestBodyPostApplicationJsonArrayOfArrayCamelCase](#requestbodypostapplicationjsonarrayofarraycamelcase) +* [RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive](#requestbodypostapplicationjsonarrayofarrayofprimitive) +* [RequestBodyPostApplicationJsonArrayOfMap](#requestbodypostapplicationjsonarrayofmap) +* [RequestBodyPostApplicationJsonArrayOfMapCamelCase](#requestbodypostapplicationjsonarrayofmapcamelcase) +* [RequestBodyPostApplicationJsonArrayOfPrimitive](#requestbodypostapplicationjsonarrayofprimitive) +* [RequestBodyPostApplicationJsonDeep](#requestbodypostapplicationjsondeep) +* [RequestBodyPostApplicationJsonDeepCamelCase](#requestbodypostapplicationjsondeepcamelcase) +* [RequestBodyPostApplicationJsonMap](#requestbodypostapplicationjsonmap) +* [RequestBodyPostApplicationJsonMapCamelCase](#requestbodypostapplicationjsonmapcamelcase) +* [RequestBodyPostApplicationJsonMapObj](#requestbodypostapplicationjsonmapobj) +* [RequestBodyPostApplicationJsonMapObjCamelCase](#requestbodypostapplicationjsonmapobjcamelcase) +* [RequestBodyPostApplicationJsonMapOfArray](#requestbodypostapplicationjsonmapofarray) +* [RequestBodyPostApplicationJsonMapOfArrayCamelCase](#requestbodypostapplicationjsonmapofarraycamelcase) +* [RequestBodyPostApplicationJsonMapOfMap](#requestbodypostapplicationjsonmapofmap) +* [RequestBodyPostApplicationJsonMapOfMapCamelCase](#requestbodypostapplicationjsonmapofmapcamelcase) +* [RequestBodyPostApplicationJsonMapOfMapOfPrimitive](#requestbodypostapplicationjsonmapofmapofprimitive) +* [RequestBodyPostApplicationJsonMapOfPrimitive](#requestbodypostapplicationjsonmapofprimitive) +* [RequestBodyPostApplicationJsonMultipleJsonFiltered](#requestbodypostapplicationjsonmultiplejsonfiltered) +* [RequestBodyPostApplicationJsonSimple](#requestbodypostapplicationjsonsimple) +* [RequestBodyPostApplicationJsonSimpleCamelCase](#requestbodypostapplicationjsonsimplecamelcase) +* [RequestBodyPostComplexNumberTypes](#requestbodypostcomplexnumbertypes) +* [RequestBodyPostDefaultsAndConsts](#requestbodypostdefaultsandconsts) +* [RequestBodyPostEmptyObject](#requestbodypostemptyobject) +* [RequestBodyPostFormDeep](#requestbodypostformdeep) +* [RequestBodyPostFormMapPrimitive](#requestbodypostformmapprimitive) +* [RequestBodyPostFormSimple](#requestbodypostformsimple) +* [RequestBodyPostJsonDataTypesArrayBigInt](#requestbodypostjsondatatypesarraybigint) +* [RequestBodyPostJsonDataTypesArrayDate](#requestbodypostjsondatatypesarraydate) +* [RequestBodyPostJsonDataTypesArrayDecimalStr](#requestbodypostjsondatatypesarraydecimalstr) +* [RequestBodyPostJsonDataTypesBigInt](#requestbodypostjsondatatypesbigint) +* [RequestBodyPostJsonDataTypesBigIntStr](#requestbodypostjsondatatypesbigintstr) +* [RequestBodyPostJsonDataTypesBoolean](#requestbodypostjsondatatypesboolean) +* [RequestBodyPostJsonDataTypesDate](#requestbodypostjsondatatypesdate) +* [RequestBodyPostJsonDataTypesDateTime](#requestbodypostjsondatatypesdatetime) +* [RequestBodyPostJsonDataTypesDecimal](#requestbodypostjsondatatypesdecimal) +* [RequestBodyPostJsonDataTypesDecimalStr](#requestbodypostjsondatatypesdecimalstr) +* [RequestBodyPostJsonDataTypesFloat32](#requestbodypostjsondatatypesfloat32) +* [RequestBodyPostJsonDataTypesInt32](#requestbodypostjsondatatypesint32) +* [RequestBodyPostJsonDataTypesInteger](#requestbodypostjsondatatypesinteger) +* [RequestBodyPostJsonDataTypesMapBigIntStr](#requestbodypostjsondatatypesmapbigintstr) +* [RequestBodyPostJsonDataTypesMapDateTime](#requestbodypostjsondatatypesmapdatetime) +* [RequestBodyPostJsonDataTypesMapDecimal](#requestbodypostjsondatatypesmapdecimal) +* [RequestBodyPostJsonDataTypesNumber](#requestbodypostjsondatatypesnumber) +* [RequestBodyPostJsonDataTypesString](#requestbodypostjsondatatypesstring) +* [RequestBodyPostMultipleContentTypesComponentFiltered](#requestbodypostmultiplecontenttypescomponentfiltered) +* [RequestBodyPostMultipleContentTypesInlineFiltered](#requestbodypostmultiplecontenttypesinlinefiltered) +* [RequestBodyPostMultipleContentTypesSplitParamForm](#requestbodypostmultiplecontenttypessplitparamform) +* [RequestBodyPostMultipleContentTypesSplitParamJson](#requestbodypostmultiplecontenttypessplitparamjson) +* [RequestBodyPostMultipleContentTypesSplitParamMultipart](#requestbodypostmultiplecontenttypessplitparammultipart) +* [RequestBodyPostMultipleContentTypesSplitForm](#requestbodypostmultiplecontenttypessplitform) +* [RequestBodyPostMultipleContentTypesSplitJson](#requestbodypostmultiplecontenttypessplitjson) +* [RequestBodyPostMultipleContentTypesSplitMultipart](#requestbodypostmultiplecontenttypessplitmultipart) +* [RequestBodyPostNotNullableNotRequiredStringBody](#requestbodypostnotnullablenotrequiredstringbody) +* [RequestBodyPostNullArray](#requestbodypostnullarray) +* [RequestBodyPostNullDictionary](#requestbodypostnulldictionary) +* [RequestBodyPostNullableNotRequiredStringBody](#requestbodypostnullablenotrequiredstringbody) +* [RequestBodyPostNullableRequiredStringBody](#requestbodypostnullablerequiredstringbody) +* [RequestBodyPutBytes](#requestbodyputbytes) +* [RequestBodyPutBytesWithParams](#requestbodyputbyteswithparams) +* [RequestBodyPutMultipartDeep](#requestbodyputmultipartdeep) +* [RequestBodyPutMultipartDifferentFileName](#requestbodyputmultipartdifferentfilename) +* [RequestBodyPutMultipartFile](#requestbodyputmultipartfile) +* [RequestBodyPutMultipartSimple](#requestbodyputmultipartsimple) +* [RequestBodyPutString](#requestbodyputstring) +* [RequestBodyPutStringWithParams](#requestbodyputstringwithparams) +* [RequestBodyReadAndWrite](#requestbodyreadandwrite) +* [RequestBodyReadOnlyInput](#requestbodyreadonlyinput) +* [RequestBodyReadOnlyUnion](#requestbodyreadonlyunion) +* [RequestBodyReadWriteOnlyUnion](#requestbodyreadwriteonlyunion) +* [RequestBodyWriteOnly](#requestbodywriteonly) +* [RequestBodyWriteOnlyOutput](#requestbodywriteonlyoutput) +* [RequestBodyWriteOnlyUnion](#requestbodywriteonlyunion) + +## NullableObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.NullableObjectPostAsync(new NullableObject() { + Required = 302382, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `request` | [NullableObject](../../models/shared/NullableObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableObjectPostResponse](../../models/operations/NullableObjectPostResponse.md)** + + +## NullableRequiredEmptyObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.NullableRequiredEmptyObjectPostAsync(new NullableRequiredEmptyObjectPostRequestBody() { + NullableRequiredObj = new NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj() {}, + RequiredObj = new NullableRequiredEmptyObjectPostRequestBodyRequiredObj() {}, + NullableOptionalObj = new NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj() {}, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `request` | [NullableRequiredEmptyObjectPostRequestBody](../../models/operations/NullableRequiredEmptyObjectPostRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableRequiredEmptyObjectPostResponse](../../models/operations/NullableRequiredEmptyObjectPostResponse.md)** + + +## NullableRequiredPropertyPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.NullableRequiredPropertyPostAsync(new NullableRequiredPropertyPostRequestBody() { + NullableRequiredArray = new List() { + 2355.17D, + }, + NullableRequiredEnum = SDK.Models.Operations.NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.Second, + NullableRequiredInt = 50266, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `request` | [NullableRequiredPropertyPostRequestBody](../../models/operations/NullableRequiredPropertyPostRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableRequiredPropertyPostResponse](../../models/operations/NullableRequiredPropertyPostResponse.md)** + + +## NullableRequiredSharedObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.NullableRequiredSharedObjectPostAsync(new NullableRequiredSharedObjectPostRequestBody() { + NullableRequiredObj = new NullableObject() { + Required = 86533, + }, + NullableOptionalObj = new NullableObject() { + Required = 964394, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `request` | [NullableRequiredSharedObjectPostRequestBody](../../models/operations/NullableRequiredSharedObjectPostRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableRequiredSharedObjectPostResponse](../../models/operations/NullableRequiredSharedObjectPostResponse.md)** + + +## RequestBodyPostApplicationJsonArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayAsync(new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | List<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayResponse](../../models/operations/RequestBodyPostApplicationJsonArrayResponse.md)** + + +## RequestBodyPostApplicationJsonArrayCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayCamelCaseAsync(new List() { + new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | List<[SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md)> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonArrayObj + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayObjAsync(new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | List<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayObjResponse](../../models/operations/RequestBodyPostApplicationJsonArrayObjResponse.md)** + + +## RequestBodyPostApplicationJsonArrayObjCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayObjCamelCaseAsync(new List() { + new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | List<[SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md)> | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayObjCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonArrayOfArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfArrayAsync(new List>() { + new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `request` | List> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayOfArrayResponse](../../models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.md)** + + +## RequestBodyPostApplicationJsonArrayOfArrayCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfArrayCamelCaseAsync(new List>() { + new List() { + new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | List> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveAsync(new List>() { + new List() { + "string", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | List> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse](../../models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.md)** + + +## RequestBodyPostApplicationJsonArrayOfMap + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfMapAsync(new List>() { + new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `request` | List> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayOfMapResponse](../../models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.md)** + + +## RequestBodyPostApplicationJsonArrayOfMapCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfMapCamelCaseAsync(new List>() { + new Dictionary() { + { "key", new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + } }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `request` | List> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonArrayOfPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonArrayOfPrimitiveAsync(new List() { + "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | List<*string*> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonArrayOfPrimitiveResponse](../../models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.md)** + + +## RequestBodyPostApplicationJsonDeep + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonDeepAsync(new DeepObject() { + Any = "anyOf[0]", + Arr = new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + Bool = true, + Int = 1, + Map = new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + { "key2", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + }, + Num = 1.1D, + Obj = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + Str = "test", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `request` | [DeepObject](../../models/shared/DeepObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonDeepResponse](../../models/operations/RequestBodyPostApplicationJsonDeepResponse.md)** + + +## RequestBodyPostApplicationJsonDeepCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonDeepCamelCaseAsync(new DeepObjectCamelCase() { + AnyVal = "string", + ArrVal = new List() { + new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + }, + }, + BoolVal = false, + IntVal = 66469, + MapVal = new Dictionary() { + { "key", new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + } }, + }, + NumVal = 9629.09D, + ObjVal = new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + }, + StrVal = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `request` | [DeepObjectCamelCase](../../models/shared/DeepObjectCamelCase.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonDeepCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonMap + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapAsync(new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapResponse](../../models/operations/RequestBodyPostApplicationJsonMapResponse.md)** + + +## RequestBodyPostApplicationJsonMapCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapCamelCaseAsync(new Dictionary() { + { "key", new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonMapObj + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapObjAsync(new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonMapObjResponse](../../models/operations/RequestBodyPostApplicationJsonMapObjResponse.md)** + + +## RequestBodyPostApplicationJsonMapObjCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapObjCamelCaseAsync(new Dictionary() { + { "key", new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonMapObjCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonMapOfArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfArrayAsync(new Dictionary>() { + { "key", new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `request` | Dictionary> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapOfArrayResponse](../../models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.md)** + + +## RequestBodyPostApplicationJsonMapOfArrayCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfArrayCamelCaseAsync(new Dictionary>() { + { "key", new List() { + new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + }, + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `request` | Dictionary> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonMapOfMap + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfMapAsync(new Dictionary>() { + { "key", new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | Dictionary> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapOfMapResponse](../../models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.md)** + + +## RequestBodyPostApplicationJsonMapOfMapCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfMapCamelCaseAsync(new Dictionary>() { + { "key", new Dictionary() { + { "key", new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", + } }, + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `request` | Dictionary> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.md)** + + +## RequestBodyPostApplicationJsonMapOfMapOfPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfMapOfPrimitiveAsync(new Dictionary>() { + { "key", new Dictionary() { + { "key", "string" }, + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `request` | Dictionary> | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse](../../models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.md)** + + +## RequestBodyPostApplicationJsonMapOfPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMapOfPrimitiveAsync(new Dictionary() { + { "key", "string" }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyPostApplicationJsonMapOfPrimitiveResponse](../../models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.md)** + + +## RequestBodyPostApplicationJsonMultipleJsonFiltered + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonMultipleJsonFilteredAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonMultipleJsonFilteredResponse](../../models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.md)** + + +## RequestBodyPostApplicationJsonSimple + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonSimpleAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonSimpleResponse](../../models/operations/RequestBodyPostApplicationJsonSimpleResponse.md)** + + +## RequestBodyPostApplicationJsonSimpleCamelCase + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; +using NodaTime; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostApplicationJsonSimpleCamelCaseAsync(new SimpleObjectCamelCase() { + AnyVal = "any example", + BoolVal = true, + DateTimeVal = DateTime.Parse("2020-01-01T00:00:00Z"), + DateVal = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + EnumVal = SDK.Models.Shared.Enum.One, + Float32Val = 2.2222222F, + Int32EnumVal = SDK.Models.Shared.SimpleObjectCamelCaseInt32EnumVal.SixtyNine, + Int32Val = 1, + IntEnumVal = SDK.Models.Shared.SimpleObjectCamelCaseIntEnumVal.Three, + IntVal = 999999, + NumVal = 1.1D, + StrVal = "example", + BoolOptVal = true, + IntOptNullVal = 999999, + NumOptNullVal = 1.1D, + StrOptVal = "optional example", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `request` | [SimpleObjectCamelCase](../../models/shared/SimpleObjectCamelCase.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostApplicationJsonSimpleCamelCaseResponse](../../models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.md)** + + +## RequestBodyPostComplexNumberTypes + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostComplexNumberTypesAsync(new RequestBodyPostComplexNumberTypesRequest() { + ComplexNumberTypes = new ComplexNumberTypes() { + Bigint = 765757, + BigintStr = 934487, + Decimal = 2505.14M, + DecimalStr = 6831.11M, + }, + PathBigInt = 500580, + PathBigIntStr = 741903, + PathDecimal = 8228.52M, + PathDecimalStr = 5491.78M, + QueryBigInt = 937395, + QueryBigIntStr = 178906, + QueryDecimal = 8260.68M, + QueryDecimalStr = 8253.58M, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPostComplexNumberTypesRequest](../../models/operations/RequestBodyPostComplexNumberTypesRequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostComplexNumberTypesResponse](../../models/operations/RequestBodyPostComplexNumberTypesResponse.md)** + + +## RequestBodyPostDefaultsAndConsts + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostDefaultsAndConstsAsync(new DefaultsAndConsts() { + ConstBigInt = 559205, + ConstBigIntStr = 233601, + ConstBool = false, + ConstDate = LocalDate.FromDateTime(DateTime.Parse("2022-12-15")), + ConstDateTime = DateTime.Parse("2023-10-01T02:16:56.173Z"), + ConstDecimal = 1120.58M, + ConstDecimalStr = 8445.08M, + ConstEnumInt = SDK.Models.Shared.DefaultsAndConstsConstEnumInt.One, + ConstEnumStr = SDK.Models.Shared.DefaultsAndConstsConstEnumStr.Two, + ConstInt = 450379, + ConstNum = 7742.71D, + ConstStr = "string", + ConstStrNull = "string", + NormalField = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `request` | [DefaultsAndConsts](../../models/shared/DefaultsAndConsts.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostDefaultsAndConstsResponse](../../models/operations/RequestBodyPostDefaultsAndConstsResponse.md)** + + +## RequestBodyPostEmptyObject + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostEmptyObjectAsync(new RequestBodyPostEmptyObjectRequestBody() { + Empty = new RequestBodyPostEmptyObjectRequestBodyEmpty() {}, + EmptyWithEmptyProperties = new RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties() {}, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPostEmptyObjectRequestBody](../../models/operations/RequestBodyPostEmptyObjectRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostEmptyObjectResponse](../../models/operations/RequestBodyPostEmptyObjectResponse.md)** + + +## RequestBodyPostFormDeep + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostFormDeepAsync(new DeepObject() { + Any = "anyOf[0]", + Arr = new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + Bool = true, + Int = 1, + Map = new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + { "key2", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + }, + Num = 1.1D, + Obj = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + Str = "test", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `request` | [DeepObject](../../models/shared/DeepObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostFormDeepResponse](../../models/operations/RequestBodyPostFormDeepResponse.md)** + + +## RequestBodyPostFormMapPrimitive + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostFormMapPrimitiveAsync(new Dictionary() { + { "key", "string" }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostFormMapPrimitiveResponse](../../models/operations/RequestBodyPostFormMapPrimitiveResponse.md)** + + +## RequestBodyPostFormSimple + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostFormSimpleAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostFormSimpleResponse](../../models/operations/RequestBodyPostFormSimpleResponse.md)** + + +## RequestBodyPostJsonDataTypesArrayBigInt + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesArrayBigIntAsync(new List() { + 564849, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | List<*BigInteger*> | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesArrayBigIntResponse](../../models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.md)** + + +## RequestBodyPostJsonDataTypesArrayDate + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesArrayDateAsync(new List() { + LocalDate.FromDateTime(DateTime.Parse("2022-03-22")), +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | List<[LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html)> | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesArrayDateResponse](../../models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.md)** + + +## RequestBodyPostJsonDataTypesArrayDecimalStr + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesArrayDecimalStrAsync(new List() { + 8083.93M, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | List<*decimal*> | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesArrayDecimalStrResponse](../../models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.md)** + + +## RequestBodyPostJsonDataTypesBigInt + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesBigIntAsync(687617); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *BigInteger* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesBigIntResponse](../../models/operations/RequestBodyPostJsonDataTypesBigIntResponse.md)** + + +## RequestBodyPostJsonDataTypesBigIntStr + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesBigIntStrAsync(649473); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *BigInteger* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesBigIntStrResponse](../../models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.md)** + + +## RequestBodyPostJsonDataTypesBoolean + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesBooleanAsync(false); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *bool* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesBooleanResponse](../../models/operations/RequestBodyPostJsonDataTypesBooleanResponse.md)** + + +## RequestBodyPostJsonDataTypesDate + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesDateAsync(LocalDate.FromDateTime(DateTime.Parse("2022-03-04"))); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `request` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesDateResponse](../../models/operations/RequestBodyPostJsonDataTypesDateResponse.md)** + + +## RequestBodyPostJsonDataTypesDateTime + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesDateTimeAsync(DateTime.Parse("2023-03-04T01:33:15.031Z")); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `request` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesDateTimeResponse](../../models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.md)** + + +## RequestBodyPostJsonDataTypesDecimal + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesDecimalAsync(1107.81M); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *decimal* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesDecimalResponse](../../models/operations/RequestBodyPostJsonDataTypesDecimalResponse.md)** + + +## RequestBodyPostJsonDataTypesDecimalStr + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesDecimalStrAsync(5432.92M); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *decimal* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesDecimalStrResponse](../../models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.md)** + + +## RequestBodyPostJsonDataTypesFloat32 + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesFloat32Async(4464.34D); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *double* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesFloat32Response](../../models/operations/RequestBodyPostJsonDataTypesFloat32Response.md)** + + +## RequestBodyPostJsonDataTypesInt32 + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesInt32Async(22155); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *int* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesInt32Response](../../models/operations/RequestBodyPostJsonDataTypesInt32Response.md)** + + +## RequestBodyPostJsonDataTypesInteger + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesIntegerAsync(273673); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *long* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesIntegerResponse](../../models/operations/RequestBodyPostJsonDataTypesIntegerResponse.md)** + + +## RequestBodyPostJsonDataTypesMapBigIntStr + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesMapBigIntStrAsync(new Dictionary() { + { "key", 42384 }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesMapBigIntStrResponse](../../models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.md)** + + +## RequestBodyPostJsonDataTypesMapDateTime + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesMapDateTimeAsync(new Dictionary() { + { "key", DateTime.Parse("2022-09-03T18:52:14.477Z") }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesMapDateTimeResponse](../../models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.md)** + + +## RequestBodyPostJsonDataTypesMapDecimal + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesMapDecimalAsync(new Dictionary() { + { "key", 3472.82M }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesMapDecimalResponse](../../models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.md)** + + +## RequestBodyPostJsonDataTypesNumber + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesNumberAsync(2193.66D); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *double* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesNumberResponse](../../models/operations/RequestBodyPostJsonDataTypesNumberResponse.md)** + + +## RequestBodyPostJsonDataTypesString + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostJsonDataTypesStringAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *string* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostJsonDataTypesStringResponse](../../models/operations/RequestBodyPostJsonDataTypesStringResponse.md)** + + +## RequestBodyPostMultipleContentTypesComponentFiltered + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesComponentFilteredAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostMultipleContentTypesComponentFilteredResponse](../../models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.md)** + + +## RequestBodyPostMultipleContentTypesInlineFiltered + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesInlineFilteredAsync(new RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON() { + Bool = false, + Num = 3558.41D, + Str = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON](../../models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostMultipleContentTypesInlineFilteredResponse](../../models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.md)** + + +## RequestBodyPostMultipleContentTypesSplitParamForm + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamFormAsync(new RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded() { + Bool3 = false, + Num3 = 8693.24D, + Str3 = "string", +}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[RequestBodyPostMultipleContentTypesSplitParamFormResponse](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.md)** + + +## RequestBodyPostMultipleContentTypesSplitParamJson + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamJsonAsync(new RequestBodyPostMultipleContentTypesSplitParamApplicationJSON() { + Bool = false, + Num = 9771.91D, + Str = "string", +}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [RequestBodyPostMultipleContentTypesSplitParamApplicationJSON](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[RequestBodyPostMultipleContentTypesSplitParamJsonResponse](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.md)** + + +## RequestBodyPostMultipleContentTypesSplitParamMultipart + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamMultipartAsync(new RequestBodyPostMultipleContentTypesSplitParamMultipartFormData() { + Bool2 = false, + Num2 = 7000.76D, + Str2 = "string", +}, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `RequestBody` | [RequestBodyPostMultipleContentTypesSplitParamMultipartFormData](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.md) | :heavy_check_mark: | N/A | +| `ParamStr` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[RequestBodyPostMultipleContentTypesSplitParamMultipartResponse](../../models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.md)** + + +## RequestBodyPostMultipleContentTypesSplitForm + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitFormAsync(new RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded() { + Bool3 = false, + Num3 = 7842.07D, + Str3 = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded](../../models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostMultipleContentTypesSplitFormResponse](../../models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.md)** + + +## RequestBodyPostMultipleContentTypesSplitJson + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitJsonAsync(new RequestBodyPostMultipleContentTypesSplitApplicationJSON() { + Bool = false, + Num = 2445.56D, + Str = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPostMultipleContentTypesSplitApplicationJSON](../../models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostMultipleContentTypesSplitJsonResponse](../../models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.md)** + + +## RequestBodyPostMultipleContentTypesSplitMultipart + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostMultipleContentTypesSplitMultipartAsync(new RequestBodyPostMultipleContentTypesSplitMultipartFormData() { + Bool2 = false, + Num2 = 2079.2D, + Str2 = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPostMultipleContentTypesSplitMultipartFormData](../../models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostMultipleContentTypesSplitMultipartResponse](../../models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.md)** + + +## RequestBodyPostNotNullableNotRequiredStringBody + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostNotNullableNotRequiredStringBodyAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *string* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostNotNullableNotRequiredStringBodyResponse](../../models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.md)** + + +## RequestBodyPostNullArray + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostNullArrayAsync(new List() { + "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | List<*string*> | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostNullArrayResponse](../../models/operations/RequestBodyPostNullArrayResponse.md)** + + +## RequestBodyPostNullDictionary + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostNullDictionaryAsync(new Dictionary() { + { "key", "string" }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostNullDictionaryResponse](../../models/operations/RequestBodyPostNullDictionaryResponse.md)** + + +## RequestBodyPostNullableNotRequiredStringBody + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostNullableNotRequiredStringBodyAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *string* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostNullableNotRequiredStringBodyResponse](../../models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.md)** + + +## RequestBodyPostNullableRequiredStringBody + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPostNullableRequiredStringBodyAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *string* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPostNullableRequiredStringBodyResponse](../../models/operations/RequestBodyPostNullableRequiredStringBodyResponse.md)** + + +## RequestBodyPutBytes + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutBytesAsync("9sS}}O%}aJ as bytes <<<>>>"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *byte[]* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPutBytesResponse](../../models/operations/RequestBodyPutBytesResponse.md)** + + +## RequestBodyPutBytesWithParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutBytesWithParamsAsync("o%jIWe4_P6 as bytes <<<>>>", "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `RequestBody` | *byte[]* | :heavy_check_mark: | N/A | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[RequestBodyPutBytesWithParamsResponse](../../models/operations/RequestBodyPutBytesWithParamsResponse.md)** + + +## RequestBodyPutMultipartDeep + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutMultipartDeepAsync(new DeepObject() { + Any = "anyOf[0]", + Arr = new List() { + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + }, + Bool = true, + Int = 1, + Map = new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + { "key2", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, + }, + Num = 1.1D, + Obj = new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + }, + Str = "test", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `request` | [DeepObject](../../models/shared/DeepObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPutMultipartDeepResponse](../../models/operations/RequestBodyPutMultipartDeepResponse.md)** + + +## RequestBodyPutMultipartDifferentFileName + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutMultipartDifferentFileNameAsync(new RequestBodyPutMultipartDifferentFileNameRequestBody() { + DifferentFileName = new RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName() { + Content = "Y}'H[5/Z[, as bytes <<<>>>", + DifferentFileName = "string", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPutMultipartDifferentFileNameRequestBody](../../models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPutMultipartDifferentFileNameResponse](../../models/operations/RequestBodyPutMultipartDifferentFileNameResponse.md)** + + +## RequestBodyPutMultipartFile + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutMultipartFileAsync(new RequestBodyPutMultipartFileRequestBody() { + File = new RequestBodyPutMultipartFileRequestBodyFile() { + Content = "OJa,v`.FW- as bytes <<<>>>", + File = "string", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `request` | [RequestBodyPutMultipartFileRequestBody](../../models/operations/RequestBodyPutMultipartFileRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPutMultipartFileResponse](../../models/operations/RequestBodyPutMultipartFileResponse.md)** + + +## RequestBodyPutMultipartSimple + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutMultipartSimpleAsync(new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPutMultipartSimpleResponse](../../models/operations/RequestBodyPutMultipartSimpleResponse.md)** + + +## RequestBodyPutString + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutStringAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *string* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[RequestBodyPutStringResponse](../../models/operations/RequestBodyPutStringResponse.md)** + + +## RequestBodyPutStringWithParams + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyPutStringWithParamsAsync("string", "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `RequestBody` | *string* | :heavy_check_mark: | N/A | +| `QueryStringParam` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[RequestBodyPutStringWithParamsResponse](../../models/operations/RequestBodyPutStringWithParamsResponse.md)** + + +## RequestBodyReadAndWrite + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyReadAndWriteAsync(new ReadWriteObjectInput() { + Num1 = 797612, + Num2 = 89374, + Num3 = 459345, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `request` | [ReadWriteObjectInput](../../models/shared/ReadWriteObjectInput.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyReadAndWriteResponse](../../models/operations/RequestBodyReadAndWriteResponse.md)** + + +## RequestBodyReadOnlyInput + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyReadOnlyInputAsync(new ReadOnlyObjectInput() {}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `request` | [ReadOnlyObjectInput](../../models/shared/ReadOnlyObjectInput.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyReadOnlyInputResponse](../../models/operations/RequestBodyReadOnlyInputResponse.md)** + + +## RequestBodyReadOnlyUnion + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyReadOnlyUnionAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyReadOnlyUnionResponse](../../models/operations/RequestBodyReadOnlyUnionResponse.md)** + + +## RequestBodyReadWriteOnlyUnion + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyReadWriteOnlyUnionAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyReadWriteOnlyUnionResponse](../../models/operations/RequestBodyReadWriteOnlyUnionResponse.md)** + + +## RequestBodyWriteOnly + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyWriteOnlyAsync(new WriteOnlyObject() { + Bool = false, + Num = 3888.42D, + String = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | [WriteOnlyObject](../../models/shared/WriteOnlyObject.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyWriteOnlyResponse](../../models/operations/RequestBodyWriteOnlyResponse.md)** + + +## RequestBodyWriteOnlyOutput + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyWriteOnlyOutputAsync(new WriteOnlyObject() { + Bool = false, + Num = 3867.69D, + String = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | [WriteOnlyObject](../../models/shared/WriteOnlyObject.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyWriteOnlyOutputResponse](../../models/operations/RequestBodyWriteOnlyOutputResponse.md)** + + +## RequestBodyWriteOnlyUnion + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.RequestBodies.RequestBodyWriteOnlyUnionAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RequestBodyWriteOnlyUnionResponse](../../models/operations/RequestBodyWriteOnlyUnionResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/resource/README.md b/csharp-client-sdk/docs/sdks/resource/README.md new file mode 100755 index 000000000..408aec925 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/resource/README.md @@ -0,0 +1,206 @@ +# ResourceSDK +(*Resource*) + +### Available Operations + +* [CreateFile](#createfile) +* [CreateResource](#createresource) +* [DeleteResource](#deleteresource) +* [GetResource](#getresource) +* [UpdateResource](#updateresource) + +## CreateFile + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Resource.CreateFileAsync(new CreateFileRequestBody() { + File = new CreateFileRequestBodyFile() { + Content = "`'$Z`(L/RH as bytes <<<>>>", + File = "string", + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | [CreateFileRequestBody](../../models/operations/CreateFileRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[CreateFileResponse](../../models/operations/CreateFileResponse.md)** + + +## CreateResource + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Resource.CreateResourceAsync(new ExampleResource() { + Chocolates = new List() { + new ExampleResourceChocolates() { + Description = "Digitized optimal archive", + }, + }, + Id = "", + Name = "string", + Vehicle = "string", + ArrayOfNumber = new List() { + 1124.19D, + }, + ArrayOfString = new List() { + "string", + }, + MapOfInteger = new Dictionary() { + { "key", 271791 }, + }, + MapOfString = new Dictionary() { + { "key", "string" }, + }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | [ExampleResource](../../models/shared/ExampleResource.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[CreateResourceResponse](../../models/operations/CreateResourceResponse.md)** + + +## DeleteResource + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Resource.DeleteResourceAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ResourceId` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[DeleteResourceResponse](../../models/operations/DeleteResourceResponse.md)** + + +## GetResource + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Resource.GetResourceAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ResourceId` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[GetResourceResponse](../../models/operations/GetResourceResponse.md)** + + +## UpdateResource + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Resource.UpdateResourceAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `ResourceId` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[UpdateResourceResponse](../../models/operations/UpdateResourceResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/responsebodies/README.md b/csharp-client-sdk/docs/sdks/responsebodies/README.md new file mode 100755 index 000000000..1b9585fff --- /dev/null +++ b/csharp-client-sdk/docs/sdks/responsebodies/README.md @@ -0,0 +1,401 @@ +# ResponseBodiesSDK +(*ResponseBodies*) + +## Overview + +Endpoints for testing response bodies. + +### Available Operations + +* [ResponseBodyAdditionalPropertiesComplexNumbersPost](#responsebodyadditionalpropertiescomplexnumberspost) +* [ResponseBodyAdditionalPropertiesDatePost](#responsebodyadditionalpropertiesdatepost) +* [ResponseBodyAdditionalPropertiesObjectPost](#responsebodyadditionalpropertiesobjectpost) +* [ResponseBodyAdditionalPropertiesPost](#responsebodyadditionalpropertiespost) +* [ResponseBodyBytesGet](#responsebodybytesget) +* [ResponseBodyEmptyWithHeaders](#responsebodyemptywithheaders) +* [ResponseBodyOptionalGet](#responsebodyoptionalget) +* [ResponseBodyReadOnly](#responsebodyreadonly) +* [ResponseBodyStringGet](#responsebodystringget) +* [ResponseBodyXmlGet](#responsebodyxmlget) +* [ResponseBodyZeroValueComplexTypePtrsPost](#responsebodyzerovaluecomplextypeptrspost) + +## ResponseBodyAdditionalPropertiesComplexNumbersPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyAdditionalPropertiesComplexNumbersPostAsync(new Dictionary() { + { "key", 468801 }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[ResponseBodyAdditionalPropertiesComplexNumbersPostResponse](../../models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md)** + + +## ResponseBodyAdditionalPropertiesDatePost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyAdditionalPropertiesDatePostAsync(new Dictionary() { + { "key", LocalDate.FromDateTime(DateTime.Parse("2021-03-16")) }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md)** + + +## ResponseBodyAdditionalPropertiesObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyAdditionalPropertiesObjectPostAsync(new Dictionary() { + { "key", new SimpleObject() { + Any = "any", + Bool = true, + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00.000000001Z"), + Enum = SDK.Models.Shared.Enum.One, + Float32 = 1.1F, + Int = 1, + Int32 = 1, + Int32Enum = SDK.Models.Shared.SimpleObjectInt32Enum.FiftyFive, + IntEnum = SDK.Models.Shared.SimpleObjectIntEnum.Two, + Num = 1.1D, + Str = "test", + Bigint = 8821239038968084, + BigintStr = 9223372036854775808, + BoolOpt = true, + Decimal = 3.141592653589793M, + DecimalStr = 3.14159265358979344719667586M, + StrOpt = "testOptional", + } }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[ResponseBodyAdditionalPropertiesObjectPostResponse](../../models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md)** + + +## ResponseBodyAdditionalPropertiesPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyAdditionalPropertiesPostAsync(new Dictionary() { + { "key", "string" }, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | Dictionary | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[ResponseBodyAdditionalPropertiesPostResponse](../../models/operations/ResponseBodyAdditionalPropertiesPostResponse.md)** + + +## ResponseBodyBytesGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyBytesGetAsync(); + +// handle response +``` + + +### Response + +**[ResponseBodyBytesGetResponse](../../models/operations/ResponseBodyBytesGetResponse.md)** + + +## ResponseBodyEmptyWithHeaders + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyEmptyWithHeadersAsync(1751.8D, "string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `XNumberHeader` | *double* | :heavy_check_mark: | N/A | +| `XStringHeader` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[ResponseBodyEmptyWithHeadersResponse](../../models/operations/ResponseBodyEmptyWithHeadersResponse.md)** + + +## ResponseBodyOptionalGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyOptionalGetAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ResponseBodyOptionalGetResponse](../../models/operations/ResponseBodyOptionalGetResponse.md)** + + +## ResponseBodyReadOnly + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyReadOnlyAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ResponseBodyReadOnlyResponse](../../models/operations/ResponseBodyReadOnlyResponse.md)** + + +## ResponseBodyStringGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyStringGetAsync(); + +// handle response +``` + + +### Response + +**[ResponseBodyStringGetResponse](../../models/operations/ResponseBodyStringGetResponse.md)** + + +## ResponseBodyXmlGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyXmlGetAsync(); + +// handle response +``` + + +### Response + +**[ResponseBodyXmlGetResponse](../../models/operations/ResponseBodyXmlGetResponse.md)** + + +## ResponseBodyZeroValueComplexTypePtrsPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using NodaTime; +using System; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.ResponseBodies.ResponseBodyZeroValueComplexTypePtrsPostAsync(new ObjWithZeroValueComplexTypePtrs() { + Date = LocalDate.FromDateTime(DateTime.Parse("2020-01-01")), + DateTime = DateTime.Parse("2020-01-01T00:00:00Z"), +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `request` | [ObjWithZeroValueComplexTypePtrs](../../models/shared/ObjWithZeroValueComplexTypePtrs.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[ResponseBodyZeroValueComplexTypePtrsPostResponse](../../models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/retries/README.md b/csharp-client-sdk/docs/sdks/retries/README.md new file mode 100755 index 000000000..96d5673f9 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/retries/README.md @@ -0,0 +1,46 @@ +# RetriesSDK +(*Retries*) + +## Overview + +Endpoints for testing retries. + +### Available Operations + +* [RetriesGet](#retriesget) + +## RetriesGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Retries.RetriesGetAsync("string", 75342); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `RequestId` | *string* | :heavy_check_mark: | N/A | +| `NumRetries` | *long* | :heavy_minus_sign: | N/A | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[RetriesGetResponse](../../models/operations/RetriesGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/sdk/README.md b/csharp-client-sdk/docs/sdks/sdk/README.md new file mode 100755 index 000000000..87029f6a4 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/sdk/README.md @@ -0,0 +1,74 @@ +# SDK + + +## Overview + +Some test description. +About our test document. + +Speakeasy Docs + +### Available Operations + +* [PutAnythingIgnoredGeneration](#putanythingignoredgeneration) +* [ResponseBodyJsonGet](#responsebodyjsonget) + +## PutAnythingIgnoredGeneration + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.SDK.PutAnythingIgnoredGenerationAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *string* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[PutAnythingIgnoredGenerationResponse](../../models/operations/PutAnythingIgnoredGenerationResponse.md)** + + +## ResponseBodyJsonGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.SDK.ResponseBodyJsonGetAsync(); + +// handle response +``` + + +### Response + +**[ResponseBodyJsonGetResponse](../../models/operations/ResponseBodyJsonGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/second/README.md b/csharp-client-sdk/docs/sdks/second/README.md new file mode 100755 index 000000000..d4307920c --- /dev/null +++ b/csharp-client-sdk/docs/sdks/second/README.md @@ -0,0 +1,33 @@ +# SecondSDK +(*Second*) + +### Available Operations + +* [Get](#get) + +## Get + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Second.GetAsync(); + +// handle response +``` + + +### Response + +**[GroupSecondGetResponse](../../models/operations/GroupSecondGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/servers/README.md b/csharp-client-sdk/docs/sdks/servers/README.md new file mode 100755 index 000000000..b314ff595 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/servers/README.md @@ -0,0 +1,203 @@ +# ServersSDK +(*Servers*) + +## Overview + +Endpoints for testing servers. + +### Available Operations + +* [SelectGlobalServer](#selectglobalserver) +* [SelectServerWithID](#selectserverwithid) - Select a server by ID. +* [ServerWithProtocolTemplate](#serverwithprotocoltemplate) +* [ServerWithTemplates](#serverwithtemplates) +* [ServerWithTemplatesGlobal](#serverwithtemplatesglobal) +* [ServersByIDWithTemplates](#serversbyidwithtemplates) + +## SelectGlobalServer + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Servers.SelectGlobalServerAsync(); + +// handle response +``` + + +### Response + +**[SelectGlobalServerResponse](../../models/operations/SelectGlobalServerResponse.md)** + + +## SelectServerWithID + +Select a server by ID. + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Servers.SelectServerWithIDAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[SelectServerWithIDResponse](../../models/operations/SelectServerWithIDResponse.md)** + + +## ServerWithProtocolTemplate + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Servers.ServerWithProtocolTemplateAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ServerWithProtocolTemplateResponse](../../models/operations/ServerWithProtocolTemplateResponse.md)** + + +## ServerWithTemplates + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Servers.ServerWithTemplatesAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ServerWithTemplatesResponse](../../models/operations/ServerWithTemplatesResponse.md)** + + +## ServerWithTemplatesGlobal + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Servers.ServerWithTemplatesGlobalAsync(); + +// handle response +``` + + +### Response + +**[ServerWithTemplatesGlobalResponse](../../models/operations/ServerWithTemplatesGlobalResponse.md)** + + +## ServersByIDWithTemplates + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Servers.ServersByIDWithTemplatesAsync(); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + + +### Response + +**[ServersByIDWithTemplatesResponse](../../models/operations/ServersByIDWithTemplatesResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/telemetry/README.md b/csharp-client-sdk/docs/sdks/telemetry/README.md new file mode 100755 index 000000000..e794dce20 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/telemetry/README.md @@ -0,0 +1,72 @@ +# TelemetrySDK +(*Telemetry*) + +## Overview + +Endpoints for testing telemetry. + +### Available Operations + +* [TelemetrySpeakeasyUserAgentGet](#telemetryspeakeasyuseragentget) +* [TelemetryUserAgentGet](#telemetryuseragentget) + +## TelemetrySpeakeasyUserAgentGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; +using SDK.Models.Operations; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Telemetry.TelemetrySpeakeasyUserAgentGetAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `UserAgent` | *string* | :heavy_check_mark: | N/A | + + +### Response + +**[TelemetrySpeakeasyUserAgentGetResponse](../../models/operations/TelemetrySpeakeasyUserAgentGetResponse.md)** + + +## TelemetryUserAgentGet + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Telemetry.TelemetryUserAgentGetAsync(); + +// handle response +``` + + +### Response + +**[TelemetryUserAgentGetResponse](../../models/operations/TelemetryUserAgentGetResponse.md)** + diff --git a/csharp-client-sdk/docs/sdks/unions/README.md b/csharp-client-sdk/docs/sdks/unions/README.md new file mode 100755 index 000000000..f7e275581 --- /dev/null +++ b/csharp-client-sdk/docs/sdks/unions/README.md @@ -0,0 +1,465 @@ +# UnionsSDK +(*Unions*) + +## Overview + +Endpoints for testing union types. + +### Available Operations + +* [FlattenedTypedObjectPost](#flattenedtypedobjectpost) +* [MixedTypeOneOfPost](#mixedtypeoneofpost) +* [NullableOneOfRefInObjectPost](#nullableoneofrefinobjectpost) +* [NullableOneOfSchemaPost](#nullableoneofschemapost) +* [NullableOneOfTypeInObjectPost](#nullableoneoftypeinobjectpost) +* [NullableTypedObjectPost](#nullabletypedobjectpost) +* [PrimitiveTypeOneOfPost](#primitivetypeoneofpost) +* [StronglyTypedOneOfPost](#stronglytypedoneofpost) +* [TypedObjectNullableOneOfPost](#typedobjectnullableoneofpost) +* [TypedObjectOneOfPost](#typedobjectoneofpost) +* [UnionDateNull](#uniondatenull) +* [UnionDateTimeNull](#uniondatetimenull) +* [WeaklyTypedOneOfPost](#weaklytypedoneofpost) + +## FlattenedTypedObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.FlattenedTypedObjectPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[FlattenedTypedObjectPostResponse](../../models/operations/FlattenedTypedObjectPostResponse.md)** + + +## MixedTypeOneOfPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.MixedTypeOneOfPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[MixedTypeOneOfPostResponse](../../models/operations/MixedTypeOneOfPostResponse.md)** + + +## NullableOneOfRefInObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.NullableOneOfRefInObjectPostAsync(new NullableOneOfRefInObject() { + NullableOneOfOne = new TypedObject1() { + Type = SDK.Models.Shared.TypedObject1Type.Obj1, + Value = "string", + }, + NullableOneOfTwo = "string", + OneOfOne = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | [NullableOneOfRefInObject](../../models/shared/NullableOneOfRefInObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableOneOfRefInObjectPostResponse](../../models/operations/NullableOneOfRefInObjectPostResponse.md)** + + +## NullableOneOfSchemaPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.NullableOneOfSchemaPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableOneOfSchemaPostResponse](../../models/operations/NullableOneOfSchemaPostResponse.md)** + + +## NullableOneOfTypeInObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.NullableOneOfTypeInObjectPostAsync(new NullableOneOfTypeInObject() { + NullableOneOfOne = false, + NullableOneOfTwo = "string", + OneOfOne = false, +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `request` | [NullableOneOfTypeInObject](../../models/shared/NullableOneOfTypeInObject.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableOneOfTypeInObjectPostResponse](../../models/operations/NullableOneOfTypeInObjectPostResponse.md)** + + +## NullableTypedObjectPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.NullableTypedObjectPostAsync(new TypedObject1() { + Type = SDK.Models.Shared.TypedObject1Type.Obj1, + Value = "string", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [TypedObject1](../../models/shared/TypedObject1.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[NullableTypedObjectPostResponse](../../models/operations/NullableTypedObjectPostResponse.md)** + + +## PrimitiveTypeOneOfPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.PrimitiveTypeOneOfPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[PrimitiveTypeOneOfPostResponse](../../models/operations/PrimitiveTypeOneOfPostResponse.md)** + + +## StronglyTypedOneOfPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.StronglyTypedOneOfPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[StronglyTypedOneOfPostResponse](../../models/operations/StronglyTypedOneOfPostResponse.md)** + + +## TypedObjectNullableOneOfPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.TypedObjectNullableOneOfPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[TypedObjectNullableOneOfPostResponse](../../models/operations/TypedObjectNullableOneOfPostResponse.md)** + + +## TypedObjectOneOfPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.TypedObjectOneOfPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[TypedObjectOneOfPostResponse](../../models/operations/TypedObjectOneOfPostResponse.md)** + + +## UnionDateNull + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.UnionDateNullAsync(LocalDate.FromDateTime(DateTime.Parse("2022-11-25"))); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `request` | [LocalDate](https://nodatime.org/3.1.x/api/NodaTime.LocalDate.html) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[UnionDateNullResponse](../../models/operations/UnionDateNullResponse.md)** + + +## UnionDateTimeNull + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.UnionDateTimeNullAsync(DateTime.Parse("2022-04-12T19:39:53.907Z")); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `request` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[UnionDateTimeNullResponse](../../models/operations/UnionDateTimeNullResponse.md)** + + +## WeaklyTypedOneOfPost + +### Example Usage + +```csharp +using SDK; +using SDK.Models.Shared; + +var sdk = new SDKSDK( + security: new Security() { + ApiKeyAuth = "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param" +); + +var res = await sdk.Unions.WeaklyTypedOneOfPostAsync("string"); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | *object* | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[WeaklyTypedOneOfPostResponse](../../models/operations/WeaklyTypedOneOfPostResponse.md)** + diff --git a/csharp-client-sdk/files.gen b/csharp-client-sdk/files.gen new file mode 100755 index 000000000..eef0a7085 --- /dev/null +++ b/csharp-client-sdk/files.gen @@ -0,0 +1,1171 @@ +SDK/Auth.cs +SDK/AuthNew.cs +SDK/Documentation.cs +SDK/Errors.cs +SDK/First.cs +SDK/Flattening.cs +SDK/Generation.cs +SDK/Globals.cs +SDK/NestFirst.cs +SDK/Nest.cs +SDK/NestedFirst.cs +SDK/NestedSecond.cs +SDK/Nested.cs +SDK/Pagination.cs +SDK/Parameters.cs +SDK/RequestBodies.cs +SDK/Resource.cs +SDK/ResponseBodies.cs +SDK/Retries.cs +SDK/Second.cs +SDK/Servers.cs +SDK/Telemetry.cs +SDK/Unions.cs +SDK/SDKSDK.cs +SDK/Utils/BigIntSerializer.cs +SDK/Utils/DecimalSerializer.cs +SDK/Utils/EnumSerializer.cs +SDK/Utils/FlexibleObjectDeserializer.cs +SDK/Utils/HeaderSerializer.cs +SDK/Utils/IsoDateTimeSerializer.cs +SDK/Utils/RequestBodySerializer.cs +SDK/Utils/SecuritySerializer.cs +SDK/Utils/SpeakeasyHttpClient.cs +SDK/Utils/SpeakeasyMetadata.cs +SDK/Utils/URLBuilder.cs +SDK/Utils/Utilities.cs +SDK/SDK.csproj +SDK.sln +Tests/CommonHelpers.cs +Tests/Tests.csproj +TestsCommon/CommonHelpers.cs +TestsCommon/Tests.csproj +TestsPrimary/AuthShould.cs +TestsPrimary/FlatteningShould.cs +TestsPrimary/GlobalsShould.cs +TestsPrimary/Helpers.cs +TestsPrimary/MultiLevelShould.cs +TestsPrimary/PaginationShould.cs +TestsPrimary/ParametersShould.cs +TestsPrimary/RequestBodiesShould.cs +TestsPrimary/ResponseBodiesShould.cs +TestsPrimary/ServersShould.cs +TestsPrimary/TelemetryShould.cs +TestsSimpleSecurity/AuthShould.cs +../../testprojects/csharp/testproject.csproj +SDK/Models/Operations/PutAnythingIgnoredGeneration200ApplicationJSON.cs +SDK/Models/Operations/PutAnythingIgnoredGenerationResponse.cs +SDK/Models/Operations/ResponseBodyJsonGetResponse.cs +SDK/Models/Operations/ApiKeyAuthSecurity.cs +SDK/Models/Operations/ApiKeyAuthToken.cs +SDK/Models/Operations/ApiKeyAuthResponse.cs +SDK/Models/Operations/ApiKeyAuthGlobalToken.cs +SDK/Models/Operations/ApiKeyAuthGlobalResponse.cs +SDK/Models/Operations/BasicAuthSecurity.cs +SDK/Models/Operations/BasicAuthRequest.cs +SDK/Models/Operations/BasicAuthUser.cs +SDK/Models/Operations/BasicAuthResponse.cs +SDK/Models/Operations/BearerAuthSecurity.cs +SDK/Models/Operations/BearerAuthToken.cs +SDK/Models/Operations/BearerAuthResponse.cs +SDK/Models/Operations/GlobalBearerAuthToken.cs +SDK/Models/Operations/GlobalBearerAuthResponse.cs +SDK/Models/Operations/Oauth2AuthSecurity.cs +SDK/Models/Operations/Oauth2AuthToken.cs +SDK/Models/Operations/Oauth2AuthResponse.cs +SDK/Models/Operations/Oauth2OverrideSecurity.cs +SDK/Models/Operations/Oauth2OverrideRequest.cs +SDK/Models/Operations/Oauth2OverrideToken.cs +SDK/Models/Operations/Oauth2OverrideResponse.cs +SDK/Models/Operations/OpenIdConnectAuthSecurity.cs +SDK/Models/Operations/OpenIdConnectAuthToken.cs +SDK/Models/Operations/OpenIdConnectAuthResponse.cs +SDK/Models/Operations/ApiKeyAuthGlobalNewResponse.cs +SDK/Models/Operations/AuthGlobalResponse.cs +SDK/Models/Operations/BasicAuthNewSecurity.cs +SDK/Models/Operations/BasicAuthNewResponse.cs +SDK/Models/Operations/MultipleMixedOptionsAuthSecurity.cs +SDK/Models/Operations/MultipleMixedOptionsAuthResponse.cs +SDK/Models/Operations/MultipleMixedSchemeAuthSecurity.cs +SDK/Models/Operations/MultipleMixedSchemeAuthResponse.cs +SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.cs +SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.cs +SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthSecurity.cs +SDK/Models/Operations/MultipleOptionsWithMixedSchemesAuthResponse.cs +SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.cs +SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.cs +SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthSecurity.cs +SDK/Models/Operations/MultipleOptionsWithSimpleSchemesAuthResponse.cs +SDK/Models/Operations/MultipleSimpleOptionsAuthSecurity.cs +SDK/Models/Operations/MultipleSimpleOptionsAuthResponse.cs +SDK/Models/Operations/MultipleSimpleSchemeAuthSecurity.cs +SDK/Models/Operations/MultipleSimpleSchemeAuthResponse.cs +SDK/Models/Operations/Oauth2AuthNewSecurity.cs +SDK/Models/Operations/Oauth2AuthNewResponse.cs +SDK/Models/Operations/OpenIdConnectAuthNewSecurity.cs +SDK/Models/Operations/OpenIdConnectAuthNewResponse.cs +SDK/Models/Operations/GetDocumentationPerLanguageRequest.cs +SDK/Models/Operations/GetDocumentationPerLanguageResponse.cs +SDK/Models/Operations/ConnectionErrorGetResponse.cs +SDK/Models/Operations/StatusGetErrorRequest.cs +SDK/Models/Operations/StatusGetErrorResponse.cs +SDK/Models/Operations/StatusGetXSpeakeasyErrorsRequest.cs +SDK/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.cs +SDK/Models/Operations/StatusGetXSpeakeasyErrorsResponse.cs +SDK/Models/Operations/GroupFirstGetResponse.cs +SDK/Models/Operations/ComponentBodyAndParamConflictRequest.cs +SDK/Models/Operations/ComponentBodyAndParamConflictRes.cs +SDK/Models/Operations/ComponentBodyAndParamConflictResponse.cs +SDK/Models/Operations/ComponentBodyAndParamNoConflictRequest.cs +SDK/Models/Operations/ComponentBodyAndParamNoConflictRes.cs +SDK/Models/Operations/ComponentBodyAndParamNoConflictResponse.cs +SDK/Models/Operations/ConflictingParamsRequest.cs +SDK/Models/Operations/ConflictingParamsRes.cs +SDK/Models/Operations/ConflictingParamsResponse.cs +SDK/Models/Operations/InlineBodyAndParamConflictRequestBody.cs +SDK/Models/Operations/InlineBodyAndParamConflictRequest.cs +SDK/Models/Operations/InlineBodyAndParamConflictResJson.cs +SDK/Models/Operations/InlineBodyAndParamConflictRes.cs +SDK/Models/Operations/InlineBodyAndParamConflictResponse.cs +SDK/Models/Operations/InlineBodyAndParamNoConflictRequestBody.cs +SDK/Models/Operations/InlineBodyAndParamNoConflictRequest.cs +SDK/Models/Operations/InlineBodyAndParamNoConflictResJson.cs +SDK/Models/Operations/InlineBodyAndParamNoConflictRes.cs +SDK/Models/Operations/InlineBodyAndParamNoConflictResponse.cs +SDK/Models/Operations/TypeFromAnchor.cs +SDK/Models/Operations/AnchorTypesGetResponse.cs +SDK/Models/Operations/ArrayCircularReferenceGetResponse.cs +SDK/Models/Operations/CircularReferenceGetResponse.cs +SDK/Models/Operations/DateParamWithDefaultRequest.cs +SDK/Models/Operations/DateParamWithDefaultResponse.cs +SDK/Models/Operations/DateTimeParamWithDefaultRequest.cs +SDK/Models/Operations/DateTimeParamWithDefaultResponse.cs +SDK/Models/Operations/DecimalParamWithDefaultRequest.cs +SDK/Models/Operations/DecimalParamWithDefaultResponse.cs +SDK/Models/Operations/DeprecatedFieldInSchemaPostResponse.cs +SDK/Models/Operations/DeprecatedObjectInSchemaGet200ApplicationJSON.cs +SDK/Models/Operations/DeprecatedObjectInSchemaGetResponse.cs +SDK/Models/Operations/DeprecatedOperationNoCommentsGetRequest.cs +SDK/Models/Operations/DeprecatedOperationNoCommentsGetResponse.cs +SDK/Models/Operations/DeprecatedOperationWithCommentsGetRequest.cs +SDK/Models/Operations/DeprecatedOperationWithCommentsGetResponse.cs +SDK/Models/Operations/EmptyObjectGetRequest.cs +SDK/Models/Operations/EmptyObjectGetResponse.cs +SDK/Models/Operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.cs +SDK/Models/Operations/EmptyResponseObjectWithCommentGetResponse.cs +SDK/Models/Operations/GetGlobalNameOverride200ApplicationJSON.cs +SDK/Models/Operations/GetGlobalNameOverrideResponse.cs +SDK/Models/Operations/IgnoredGenerationGet200ApplicationJSON.cs +SDK/Models/Operations/IgnoredGenerationGetResponse.cs +SDK/Models/Operations/IgnoresPostApplicationJSON.cs +SDK/Models/Operations/IgnoresPostRequest.cs +SDK/Models/Operations/IgnoresPostResponse.cs +SDK/Models/Operations/NameOverrideGetEnumNameOverride.cs +SDK/Models/Operations/NameOverrideGetRequest.cs +SDK/Models/Operations/OverriddenResponse.cs +SDK/Models/Operations/NameOverrideGetResponse.cs +SDK/Models/Operations/ObjectCircularReferenceGetResponse.cs +SDK/Models/Operations/OneOfCircularReferenceGetResponse.cs +SDK/Models/Operations/TypedParameterGenerationGetObj.cs +SDK/Models/Operations/TypedParameterGenerationGetRequest.cs +SDK/Models/Operations/TypedParameterGenerationGetResponse.cs +SDK/Models/Operations/UsageExamplePostSecurity.cs +SDK/Models/Operations/UsageExamplePostRequestBody.cs +SDK/Models/Operations/UsageExamplePostEnumParameter.cs +SDK/Models/Operations/UsageExamplePostOptEnumParameter.cs +SDK/Models/Operations/UsageExamplePostRequest.cs +SDK/Models/Operations/UsageExamplePost200ApplicationJSONJSON.cs +SDK/Models/Operations/UsageExamplePost200ApplicationJSON.cs +SDK/Models/Operations/UsageExamplePostResponse.cs +SDK/Models/Operations/GlobalPathParameterGetRequest.cs +SDK/Models/Operations/GlobalPathParameterGetRes.cs +SDK/Models/Operations/GlobalPathParameterGetResponse.cs +SDK/Models/Operations/GlobalsQueryParameterGetRequest.cs +SDK/Models/Operations/GlobalsQueryParameterGetResArgs.cs +SDK/Models/Operations/GlobalsQueryParameterGetRes.cs +SDK/Models/Operations/GlobalsQueryParameterGetResponse.cs +SDK/Models/Operations/NestFirstGetResponse.cs +SDK/Models/Operations/NestedGetResponse.cs +SDK/Models/Operations/NestedFirstGetResponse.cs +SDK/Models/Operations/NestedSecondGetResponse.cs +SDK/Models/Operations/PaginationCursorBodyRequestBody.cs +SDK/Models/Operations/PaginationCursorBodyRes.cs +SDK/Models/Operations/PaginationCursorBodyResponse.cs +SDK/Models/Operations/PaginationCursorParamsRequest.cs +SDK/Models/Operations/PaginationCursorParamsRes.cs +SDK/Models/Operations/PaginationCursorParamsResponse.cs +SDK/Models/Operations/PaginationLimitOffsetOffsetBodyRes.cs +SDK/Models/Operations/PaginationLimitOffsetOffsetBodyResponse.cs +SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRequest.cs +SDK/Models/Operations/PaginationLimitOffsetOffsetParamsRes.cs +SDK/Models/Operations/PaginationLimitOffsetOffsetParamsResponse.cs +SDK/Models/Operations/PaginationLimitOffsetPageBodyRes.cs +SDK/Models/Operations/PaginationLimitOffsetPageBodyResponse.cs +SDK/Models/Operations/PaginationLimitOffsetPageParamsRequest.cs +SDK/Models/Operations/PaginationLimitOffsetPageParamsRes.cs +SDK/Models/Operations/PaginationLimitOffsetPageParamsResponse.cs +SDK/Models/Operations/DeepObjectQueryParamsMapRequest.cs +SDK/Models/Operations/DeepObjectQueryParamsMapRes.cs +SDK/Models/Operations/DeepObjectQueryParamsMapResponse.cs +SDK/Models/Operations/DeepObjectQueryParamsObjectObjArrParam.cs +SDK/Models/Operations/DeepObjectQueryParamsObjectRequest.cs +SDK/Models/Operations/DeepObjectQueryParamsObjectResArgs.cs +SDK/Models/Operations/DeepObjectQueryParamsObjectRes.cs +SDK/Models/Operations/DeepObjectQueryParamsObjectResponse.cs +SDK/Models/Operations/DuplicateParamRequest.cs +SDK/Models/Operations/DuplicateParamDuplicateParamResponse.cs +SDK/Models/Operations/DuplicateParamResponse.cs +SDK/Models/Operations/FormQueryParamsArrayRequest.cs +SDK/Models/Operations/FormQueryParamsArrayResArgs.cs +SDK/Models/Operations/FormQueryParamsArrayRes.cs +SDK/Models/Operations/FormQueryParamsArrayResponse.cs +SDK/Models/Operations/FormQueryParamsCamelObjectObjParam.cs +SDK/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.cs +SDK/Models/Operations/FormQueryParamsCamelObjectRequest.cs +SDK/Models/Operations/FormQueryParamsCamelObjectResArgs.cs +SDK/Models/Operations/FormQueryParamsCamelObjectRes.cs +SDK/Models/Operations/FormQueryParamsCamelObjectResponse.cs +SDK/Models/Operations/FormQueryParamsMapRequest.cs +SDK/Models/Operations/FormQueryParamsMapRes.cs +SDK/Models/Operations/FormQueryParamsMapResponse.cs +SDK/Models/Operations/FormQueryParamsObjectRequest.cs +SDK/Models/Operations/FormQueryParamsObjectResArgs.cs +SDK/Models/Operations/FormQueryParamsObjectRes.cs +SDK/Models/Operations/FormQueryParamsObjectResponse.cs +SDK/Models/Operations/FormQueryParamsPrimitiveRequest.cs +SDK/Models/Operations/FormQueryParamsPrimitiveResArgs.cs +SDK/Models/Operations/FormQueryParamsPrimitiveRes.cs +SDK/Models/Operations/FormQueryParamsPrimitiveResponse.cs +SDK/Models/Operations/FormQueryParamsRefParamObjectRequest.cs +SDK/Models/Operations/FormQueryParamsRefParamObjectResArgs.cs +SDK/Models/Operations/FormQueryParamsRefParamObjectRes.cs +SDK/Models/Operations/FormQueryParamsRefParamObjectResponse.cs +SDK/Models/Operations/HeaderParamsArrayRequest.cs +SDK/Models/Operations/HeaderParamsArrayResHeaders.cs +SDK/Models/Operations/HeaderParamsArrayRes.cs +SDK/Models/Operations/HeaderParamsArrayResponse.cs +SDK/Models/Operations/HeaderParamsMapRequest.cs +SDK/Models/Operations/HeaderParamsMapResHeaders.cs +SDK/Models/Operations/HeaderParamsMapRes.cs +SDK/Models/Operations/HeaderParamsMapResponse.cs +SDK/Models/Operations/HeaderParamsObjectRequest.cs +SDK/Models/Operations/HeaderParamsObjectResHeaders.cs +SDK/Models/Operations/HeaderParamsObjectRes.cs +SDK/Models/Operations/HeaderParamsObjectResponse.cs +SDK/Models/Operations/HeaderParamsPrimitiveRequest.cs +SDK/Models/Operations/HeaderParamsPrimitiveResHeaders.cs +SDK/Models/Operations/HeaderParamsPrimitiveRes.cs +SDK/Models/Operations/HeaderParamsPrimitiveResponse.cs +SDK/Models/Operations/JsonQueryParamsObjectRequest.cs +SDK/Models/Operations/JsonQueryParamsObjectResArgs.cs +SDK/Models/Operations/JsonQueryParamsObjectRes.cs +SDK/Models/Operations/JsonQueryParamsObjectResponse.cs +SDK/Models/Operations/MixedParametersCamelCaseRequest.cs +SDK/Models/Operations/MixedParametersCamelCaseResArgs.cs +SDK/Models/Operations/MixedParametersCamelCaseResHeaders.cs +SDK/Models/Operations/MixedParametersCamelCaseRes.cs +SDK/Models/Operations/MixedParametersCamelCaseResponse.cs +SDK/Models/Operations/MixedParametersPrimitivesRequest.cs +SDK/Models/Operations/MixedParametersPrimitivesResArgs.cs +SDK/Models/Operations/MixedParametersPrimitivesResHeaders.cs +SDK/Models/Operations/MixedParametersPrimitivesRes.cs +SDK/Models/Operations/MixedParametersPrimitivesResponse.cs +SDK/Models/Operations/MixedQueryParamsRequest.cs +SDK/Models/Operations/MixedQueryParamsRes.cs +SDK/Models/Operations/MixedQueryParamsResponse.cs +SDK/Models/Operations/PathParameterJsonRequest.cs +SDK/Models/Operations/PathParameterJsonRes.cs +SDK/Models/Operations/PathParameterJsonResponse.cs +SDK/Models/Operations/PipeDelimitedQueryParamsArrayRequest.cs +SDK/Models/Operations/PipeDelimitedQueryParamsArrayResArgs.cs +SDK/Models/Operations/PipeDelimitedQueryParamsArrayRes.cs +SDK/Models/Operations/PipeDelimitedQueryParamsArrayResponse.cs +SDK/Models/Operations/SimplePathParameterArraysRequest.cs +SDK/Models/Operations/SimplePathParameterArraysRes.cs +SDK/Models/Operations/SimplePathParameterArraysResponse.cs +SDK/Models/Operations/SimplePathParameterMapsRequest.cs +SDK/Models/Operations/SimplePathParameterMapsRes.cs +SDK/Models/Operations/SimplePathParameterMapsResponse.cs +SDK/Models/Operations/SimplePathParameterObjectsRequest.cs +SDK/Models/Operations/SimplePathParameterObjectsRes.cs +SDK/Models/Operations/SimplePathParameterObjectsResponse.cs +SDK/Models/Operations/SimplePathParameterPrimitivesRequest.cs +SDK/Models/Operations/SimplePathParameterPrimitivesRes.cs +SDK/Models/Operations/SimplePathParameterPrimitivesResponse.cs +SDK/Models/Operations/NullableObjectPostRes.cs +SDK/Models/Operations/NullableObjectPostResponse.cs +SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.cs +SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.cs +SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.cs +SDK/Models/Operations/NullableRequiredEmptyObjectPostRequestBody.cs +SDK/Models/Operations/NullableRequiredEmptyObjectPostResponse.cs +SDK/Models/Operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.cs +SDK/Models/Operations/NullableRequiredPropertyPostRequestBody.cs +SDK/Models/Operations/NullableRequiredPropertyPostResponse.cs +SDK/Models/Operations/NullableRequiredSharedObjectPostRequestBody.cs +SDK/Models/Operations/NullableRequiredSharedObjectPostResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonDeepRes.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonDeepResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleRes.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleResponse.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.cs +SDK/Models/Operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.cs +SDK/Models/Operations/RequestBodyPostComplexNumberTypesRequest.cs +SDK/Models/Operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostComplexNumberTypesResponse.cs +SDK/Models/Operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostDefaultsAndConstsResponse.cs +SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmpty.cs +SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.cs +SDK/Models/Operations/RequestBodyPostEmptyObjectRequestBody.cs +SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.cs +SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.cs +SDK/Models/Operations/RequestBodyPostEmptyObject200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostEmptyObjectResponse.cs +SDK/Models/Operations/RequestBodyPostFormDeepResForm.cs +SDK/Models/Operations/RequestBodyPostFormDeepRes.cs +SDK/Models/Operations/RequestBodyPostFormDeepResponse.cs +SDK/Models/Operations/RequestBodyPostFormMapPrimitiveRes.cs +SDK/Models/Operations/RequestBodyPostFormMapPrimitiveResponse.cs +SDK/Models/Operations/RequestBodyPostFormSimpleResForm.cs +SDK/Models/Operations/RequestBodyPostFormSimpleRes.cs +SDK/Models/Operations/RequestBodyPostFormSimpleResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDateResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesBigIntStrResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesBooleanResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesDateResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesDateTimeResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesDecimalStrResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesFloat32Response.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesInt32Response.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesIntegerResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesMapDecimalResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesNumberResponse.cs +SDK/Models/Operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostJsonDataTypesStringResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitFormResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.cs +SDK/Models/Operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.cs +SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.cs +SDK/Models/Operations/RequestBodyPostNullArray200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostNullArrayResponse.cs +SDK/Models/Operations/RequestBodyPostNullDictionary200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostNullDictionaryResponse.cs +SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostNullableNotRequiredStringBodyResponse.cs +SDK/Models/Operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.cs +SDK/Models/Operations/RequestBodyPostNullableRequiredStringBodyResponse.cs +SDK/Models/Operations/RequestBodyPutBytesRes.cs +SDK/Models/Operations/RequestBodyPutBytesResponse.cs +SDK/Models/Operations/RequestBodyPutBytesWithParamsRequest.cs +SDK/Models/Operations/RequestBodyPutBytesWithParamsResArgs.cs +SDK/Models/Operations/RequestBodyPutBytesWithParamsRes.cs +SDK/Models/Operations/RequestBodyPutBytesWithParamsResponse.cs +SDK/Models/Operations/RequestBodyPutMultipartDeepResForm.cs +SDK/Models/Operations/RequestBodyPutMultipartDeepRes.cs +SDK/Models/Operations/RequestBodyPutMultipartDeepResponse.cs +SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.cs +SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRequestBody.cs +SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameRes.cs +SDK/Models/Operations/RequestBodyPutMultipartDifferentFileNameResponse.cs +SDK/Models/Operations/RequestBodyPutMultipartFileRequestBodyFile.cs +SDK/Models/Operations/RequestBodyPutMultipartFileRequestBody.cs +SDK/Models/Operations/RequestBodyPutMultipartFileRes.cs +SDK/Models/Operations/RequestBodyPutMultipartFileResponse.cs +SDK/Models/Operations/RequestBodyPutMultipartSimpleResForm.cs +SDK/Models/Operations/RequestBodyPutMultipartSimpleRes.cs +SDK/Models/Operations/RequestBodyPutMultipartSimpleResponse.cs +SDK/Models/Operations/RequestBodyPutStringRes.cs +SDK/Models/Operations/RequestBodyPutStringResponse.cs +SDK/Models/Operations/RequestBodyPutStringWithParamsRequest.cs +SDK/Models/Operations/RequestBodyPutStringWithParamsResArgs.cs +SDK/Models/Operations/RequestBodyPutStringWithParamsRes.cs +SDK/Models/Operations/RequestBodyPutStringWithParamsResponse.cs +SDK/Models/Operations/RequestBodyReadAndWriteResponse.cs +SDK/Models/Operations/RequestBodyReadOnlyInputResponse.cs +SDK/Models/Operations/RequestBodyReadOnlyUnionResponse.cs +SDK/Models/Operations/RequestBodyReadWriteOnlyUnionResponse.cs +SDK/Models/Operations/RequestBodyWriteOnlyResponse.cs +SDK/Models/Operations/RequestBodyWriteOnlyOutputResponse.cs +SDK/Models/Operations/RequestBodyWriteOnlyUnionResponse.cs +SDK/Models/Operations/CreateFileRequestBodyFile.cs +SDK/Models/Operations/CreateFileRequestBody.cs +SDK/Models/Operations/CreateFileResponse.cs +SDK/Models/Operations/CreateResourceResponse.cs +SDK/Models/Operations/DeleteResourceRequest.cs +SDK/Models/Operations/DeleteResourceResponse.cs +SDK/Models/Operations/GetResourceRequest.cs +SDK/Models/Operations/GetResourceResponse.cs +SDK/Models/Operations/UpdateResourceRequest.cs +SDK/Models/Operations/UpdateResourceResponse.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesDatePostResponse.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.cs +SDK/Models/Operations/ResponseBodyAdditionalPropertiesPostResponse.cs +SDK/Models/Operations/ResponseBodyBytesGetResponse.cs +SDK/Models/Operations/ResponseBodyEmptyWithHeadersRequest.cs +SDK/Models/Operations/ResponseBodyEmptyWithHeadersResponse.cs +SDK/Models/Operations/ResponseBodyOptionalGetResponse.cs +SDK/Models/Operations/ResponseBodyReadOnlyResponse.cs +SDK/Models/Operations/ResponseBodyStringGetResponse.cs +SDK/Models/Operations/ResponseBodyXmlGetResponse.cs +SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.cs +SDK/Models/Operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.cs +SDK/Models/Operations/RetriesGetRequest.cs +SDK/Models/Operations/RetriesGetRetries.cs +SDK/Models/Operations/RetriesGetResponse.cs +SDK/Models/Operations/GroupSecondGetResponse.cs +SDK/Models/Operations/SelectGlobalServerResponse.cs +SDK/Models/Operations/SelectServerWithIDResponse.cs +SDK/Models/Operations/ServerWithProtocolTemplateResponse.cs +SDK/Models/Operations/ServerWithTemplatesResponse.cs +SDK/Models/Operations/ServerWithTemplatesGlobalResponse.cs +SDK/Models/Operations/ServersByIDWithTemplatesResponse.cs +SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRequest.cs +SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetRes.cs +SDK/Models/Operations/TelemetrySpeakeasyUserAgentGetResponse.cs +SDK/Models/Operations/TelemetryUserAgentGetRes.cs +SDK/Models/Operations/TelemetryUserAgentGetResponse.cs +SDK/Models/Operations/FlattenedTypedObjectPostRes.cs +SDK/Models/Operations/FlattenedTypedObjectPostResponse.cs +SDK/Models/Operations/MixedTypeOneOfPostRes.cs +SDK/Models/Operations/MixedTypeOneOfPostResponse.cs +SDK/Models/Operations/NullableOneOfRefInObjectPostRes.cs +SDK/Models/Operations/NullableOneOfRefInObjectPostResponse.cs +SDK/Models/Operations/NullableOneOfSchemaPostRes.cs +SDK/Models/Operations/NullableOneOfSchemaPostResponse.cs +SDK/Models/Operations/NullableOneOfTypeInObjectPostRes.cs +SDK/Models/Operations/NullableOneOfTypeInObjectPostResponse.cs +SDK/Models/Operations/NullableTypedObjectPostRes.cs +SDK/Models/Operations/NullableTypedObjectPostResponse.cs +SDK/Models/Operations/PrimitiveTypeOneOfPostRes.cs +SDK/Models/Operations/PrimitiveTypeOneOfPostResponse.cs +SDK/Models/Operations/StronglyTypedOneOfPostRes.cs +SDK/Models/Operations/StronglyTypedOneOfPostResponse.cs +SDK/Models/Operations/TypedObjectNullableOneOfPostRes.cs +SDK/Models/Operations/TypedObjectNullableOneOfPostResponse.cs +SDK/Models/Operations/TypedObjectOneOfPostRes.cs +SDK/Models/Operations/TypedObjectOneOfPostResponse.cs +SDK/Models/Operations/UnionDateNullRes.cs +SDK/Models/Operations/UnionDateNullResponse.cs +SDK/Models/Operations/UnionDateTimeNullRes.cs +SDK/Models/Operations/UnionDateTimeNullResponse.cs +SDK/Models/Operations/WeaklyTypedOneOfPostRes.cs +SDK/Models/Operations/WeaklyTypedOneOfPostResponse.cs +SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshowSlides.cs +SDK/Models/Shared/HttpBinSimpleJsonObjectSlideshow.cs +SDK/Models/Shared/HttpBinSimpleJsonObject.cs +SDK/Models/Shared/AuthServiceRequestBodyBasicAuth.cs +SDK/Models/Shared/AuthServiceRequestBodyHeaderAuth.cs +SDK/Models/Shared/AuthServiceRequestBody.cs +SDK/Models/Shared/SchemeBasicAuth.cs +SDK/Models/Shared/Security.cs +SDK/Models/Shared/ErrorType.cs +SDK/Models/Shared/Error.cs +SDK/Models/Shared/SimpleObjectInt32Enum.cs +SDK/Models/Shared/SimpleObjectIntEnum.cs +SDK/Models/Shared/SimpleObject.cs +SDK/Models/Shared/Enum.cs +SDK/Models/Shared/ArrayCircularReferenceObject.cs +SDK/Models/Shared/ValidCircularReferenceObject.cs +SDK/Models/Shared/DeprecatedFieldInObjectDeprecatedEnum.cs +SDK/Models/Shared/DeprecatedFieldInObject.cs +SDK/Models/Shared/DeprecatedObject.cs +SDK/Models/Shared/EmptyObjectParam.cs +SDK/Models/Shared/ObjectCircularReferenceObject.cs +SDK/Models/Shared/OneOfCircularReferenceObject.cs +SDK/Models/Shared/FakerStrings.cs +SDK/Models/Shared/FakerFormattedStrings.cs +SDK/Models/Shared/LimitOffsetConfig.cs +SDK/Models/Shared/RefQueryParamObjExploded.cs +SDK/Models/Shared/RefQueryParamObj.cs +SDK/Models/Shared/DeepObject.cs +SDK/Models/Shared/NullableObject.cs +SDK/Models/Shared/SimpleObjectCamelCaseInt32EnumVal.cs +SDK/Models/Shared/SimpleObjectCamelCaseIntEnumVal.cs +SDK/Models/Shared/SimpleObjectCamelCase.cs +SDK/Models/Shared/ArrObjValue.cs +SDK/Models/Shared/ArrObjValueCamelCase.cs +SDK/Models/Shared/DeepObjectCamelCase.cs +SDK/Models/Shared/MapObjValue.cs +SDK/Models/Shared/MapObjValueCamelCase.cs +SDK/Models/Shared/ComplexNumberTypes.cs +SDK/Models/Shared/DefaultsAndConstsOutputConstEnumInt.cs +SDK/Models/Shared/DefaultsAndConstsOutputConstEnumStr.cs +SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumInt.cs +SDK/Models/Shared/DefaultsAndConstsOutputDefaultEnumStr.cs +SDK/Models/Shared/DefaultsAndConstsOutput.cs +SDK/Models/Shared/DefaultsAndConstsConstEnumInt.cs +SDK/Models/Shared/DefaultsAndConstsConstEnumStr.cs +SDK/Models/Shared/DefaultsAndConstsDefaultEnumInt.cs +SDK/Models/Shared/DefaultsAndConstsDefaultEnumStr.cs +SDK/Models/Shared/DefaultsAndConsts.cs +SDK/Models/Shared/ReadWriteObjectInput.cs +SDK/Models/Shared/ReadWriteObjectOutput.cs +SDK/Models/Shared/ReadOnlyObject.cs +SDK/Models/Shared/ReadOnlyObjectInput.cs +SDK/Models/Shared/WriteOnlyObject.cs +SDK/Models/Shared/WriteOnlyObjectOutput.cs +SDK/Models/Shared/FileResource.cs +SDK/Models/Shared/ExampleResourceChocolates.cs +SDK/Models/Shared/ExampleResourceEnumNumber.cs +SDK/Models/Shared/ExampleResourceEnumStr.cs +SDK/Models/Shared/ExampleResource.cs +SDK/Models/Shared/TypedObject1Type.cs +SDK/Models/Shared/TypedObject1.cs +SDK/Models/Shared/ObjWithZeroValueComplexTypePtrs.cs +SDK/Models/Shared/NullableOneOfRefInObject.cs +SDK/Models/Shared/NullableOneOfTypeInObject.cs +SDK/Models/Shared/AllOfToAllOf.cs +SDK/Models/Shared/OneOfGenerationStressTest.cs +SDK/Models/Shared/UnsupportedEnums.cs +SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.cs +SDK/Models/Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.cs +SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.cs +SDK/Models/Callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.cs +USAGE.md +docs/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md +docs/models/operations/PutAnythingIgnoredGenerationResponse.md +docs/models/operations/ResponseBodyJsonGetResponse.md +docs/models/operations/ApiKeyAuthSecurity.md +docs/models/operations/ApiKeyAuthToken.md +docs/models/operations/ApiKeyAuthResponse.md +docs/models/operations/ApiKeyAuthGlobalToken.md +docs/models/operations/ApiKeyAuthGlobalResponse.md +docs/models/operations/BasicAuthSecurity.md +docs/models/operations/BasicAuthRequest.md +docs/models/operations/BasicAuthUser.md +docs/models/operations/BasicAuthResponse.md +docs/models/operations/BearerAuthSecurity.md +docs/models/operations/BearerAuthToken.md +docs/models/operations/BearerAuthResponse.md +docs/models/operations/GlobalBearerAuthToken.md +docs/models/operations/GlobalBearerAuthResponse.md +docs/models/operations/Oauth2AuthSecurity.md +docs/models/operations/Oauth2AuthToken.md +docs/models/operations/Oauth2AuthResponse.md +docs/models/operations/Oauth2OverrideSecurity.md +docs/models/operations/Oauth2OverrideRequest.md +docs/models/operations/Oauth2OverrideToken.md +docs/models/operations/Oauth2OverrideResponse.md +docs/models/operations/OpenIdConnectAuthSecurity.md +docs/models/operations/OpenIdConnectAuthToken.md +docs/models/operations/OpenIdConnectAuthResponse.md +docs/models/operations/ApiKeyAuthGlobalNewResponse.md +docs/models/operations/AuthGlobalResponse.md +docs/models/operations/BasicAuthNewSecurity.md +docs/models/operations/BasicAuthNewResponse.md +docs/models/operations/MultipleMixedOptionsAuthSecurity.md +docs/models/operations/MultipleMixedOptionsAuthResponse.md +docs/models/operations/MultipleMixedSchemeAuthSecurity.md +docs/models/operations/MultipleMixedSchemeAuthResponse.md +docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.md +docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.md +docs/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.md +docs/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.md +docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.md +docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.md +docs/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.md +docs/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.md +docs/models/operations/MultipleSimpleOptionsAuthSecurity.md +docs/models/operations/MultipleSimpleOptionsAuthResponse.md +docs/models/operations/MultipleSimpleSchemeAuthSecurity.md +docs/models/operations/MultipleSimpleSchemeAuthResponse.md +docs/models/operations/Oauth2AuthNewSecurity.md +docs/models/operations/Oauth2AuthNewResponse.md +docs/models/operations/OpenIdConnectAuthNewSecurity.md +docs/models/operations/OpenIdConnectAuthNewResponse.md +docs/models/operations/GetDocumentationPerLanguageRequest.md +docs/models/operations/GetDocumentationPerLanguageResponse.md +docs/models/operations/ConnectionErrorGetResponse.md +docs/models/operations/StatusGetErrorRequest.md +docs/models/operations/StatusGetErrorResponse.md +docs/models/operations/StatusGetXSpeakeasyErrorsRequest.md +docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md +docs/models/operations/StatusGetXSpeakeasyErrorsResponse.md +docs/models/operations/GroupFirstGetResponse.md +docs/models/operations/ComponentBodyAndParamConflictRequest.md +docs/models/operations/ComponentBodyAndParamConflictRes.md +docs/models/operations/ComponentBodyAndParamConflictResponse.md +docs/models/operations/ComponentBodyAndParamNoConflictRequest.md +docs/models/operations/ComponentBodyAndParamNoConflictRes.md +docs/models/operations/ComponentBodyAndParamNoConflictResponse.md +docs/models/operations/ConflictingParamsRequest.md +docs/models/operations/ConflictingParamsRes.md +docs/models/operations/ConflictingParamsResponse.md +docs/models/operations/InlineBodyAndParamConflictRequestBody.md +docs/models/operations/InlineBodyAndParamConflictRequest.md +docs/models/operations/InlineBodyAndParamConflictResJson.md +docs/models/operations/InlineBodyAndParamConflictRes.md +docs/models/operations/InlineBodyAndParamConflictResponse.md +docs/models/operations/InlineBodyAndParamNoConflictRequestBody.md +docs/models/operations/InlineBodyAndParamNoConflictRequest.md +docs/models/operations/InlineBodyAndParamNoConflictResJson.md +docs/models/operations/InlineBodyAndParamNoConflictRes.md +docs/models/operations/InlineBodyAndParamNoConflictResponse.md +docs/models/operations/TypeFromAnchor.md +docs/models/operations/AnchorTypesGetResponse.md +docs/models/operations/ArrayCircularReferenceGetResponse.md +docs/models/operations/CircularReferenceGetResponse.md +docs/models/operations/DateParamWithDefaultRequest.md +docs/models/operations/DateParamWithDefaultResponse.md +docs/models/operations/DateTimeParamWithDefaultRequest.md +docs/models/operations/DateTimeParamWithDefaultResponse.md +docs/models/operations/DecimalParamWithDefaultRequest.md +docs/models/operations/DecimalParamWithDefaultResponse.md +docs/models/operations/DeprecatedFieldInSchemaPostResponse.md +docs/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md +docs/models/operations/DeprecatedObjectInSchemaGetResponse.md +docs/models/operations/DeprecatedOperationNoCommentsGetRequest.md +docs/models/operations/DeprecatedOperationNoCommentsGetResponse.md +docs/models/operations/DeprecatedOperationWithCommentsGetRequest.md +docs/models/operations/DeprecatedOperationWithCommentsGetResponse.md +docs/models/operations/EmptyObjectGetRequest.md +docs/models/operations/EmptyObjectGetResponse.md +docs/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.md +docs/models/operations/EmptyResponseObjectWithCommentGetResponse.md +docs/models/operations/GetGlobalNameOverride200ApplicationJSON.md +docs/models/operations/GetGlobalNameOverrideResponse.md +docs/models/operations/IgnoredGenerationGet200ApplicationJSON.md +docs/models/operations/IgnoredGenerationGetResponse.md +docs/models/operations/IgnoresPostApplicationJSON.md +docs/models/operations/IgnoresPostRequest.md +docs/models/operations/IgnoresPostResponse.md +docs/models/operations/NameOverrideGetEnumNameOverride.md +docs/models/operations/NameOverrideGetRequest.md +docs/models/operations/OverriddenResponse.md +docs/models/operations/NameOverrideGetResponse.md +docs/models/operations/ObjectCircularReferenceGetResponse.md +docs/models/operations/OneOfCircularReferenceGetResponse.md +docs/models/operations/TypedParameterGenerationGetObj.md +docs/models/operations/TypedParameterGenerationGetRequest.md +docs/models/operations/TypedParameterGenerationGetResponse.md +docs/models/operations/UsageExamplePostSecurity.md +docs/models/operations/UsageExamplePostRequestBody.md +docs/models/operations/UsageExamplePostEnumParameter.md +docs/models/operations/UsageExamplePostOptEnumParameter.md +docs/models/operations/UsageExamplePostRequest.md +docs/models/operations/UsageExamplePost200ApplicationJSONJSON.md +docs/models/operations/UsageExamplePost200ApplicationJSON.md +docs/models/operations/UsageExamplePostResponse.md +docs/models/operations/GlobalPathParameterGetRequest.md +docs/models/operations/GlobalPathParameterGetRes.md +docs/models/operations/GlobalPathParameterGetResponse.md +docs/models/operations/GlobalsQueryParameterGetRequest.md +docs/models/operations/GlobalsQueryParameterGetResArgs.md +docs/models/operations/GlobalsQueryParameterGetRes.md +docs/models/operations/GlobalsQueryParameterGetResponse.md +docs/models/operations/NestFirstGetResponse.md +docs/models/operations/NestedGetResponse.md +docs/models/operations/NestedFirstGetResponse.md +docs/models/operations/NestedSecondGetResponse.md +docs/models/operations/PaginationCursorBodyRequestBody.md +docs/models/operations/PaginationCursorBodyRes.md +docs/models/operations/PaginationCursorBodyResponse.md +docs/models/operations/PaginationCursorParamsRequest.md +docs/models/operations/PaginationCursorParamsRes.md +docs/models/operations/PaginationCursorParamsResponse.md +docs/models/operations/PaginationLimitOffsetOffsetBodyRes.md +docs/models/operations/PaginationLimitOffsetOffsetBodyResponse.md +docs/models/operations/PaginationLimitOffsetOffsetParamsRequest.md +docs/models/operations/PaginationLimitOffsetOffsetParamsRes.md +docs/models/operations/PaginationLimitOffsetOffsetParamsResponse.md +docs/models/operations/PaginationLimitOffsetPageBodyRes.md +docs/models/operations/PaginationLimitOffsetPageBodyResponse.md +docs/models/operations/PaginationLimitOffsetPageParamsRequest.md +docs/models/operations/PaginationLimitOffsetPageParamsRes.md +docs/models/operations/PaginationLimitOffsetPageParamsResponse.md +docs/models/operations/DeepObjectQueryParamsMapRequest.md +docs/models/operations/DeepObjectQueryParamsMapRes.md +docs/models/operations/DeepObjectQueryParamsMapResponse.md +docs/models/operations/DeepObjectQueryParamsObjectObjArrParam.md +docs/models/operations/DeepObjectQueryParamsObjectRequest.md +docs/models/operations/DeepObjectQueryParamsObjectResArgs.md +docs/models/operations/DeepObjectQueryParamsObjectRes.md +docs/models/operations/DeepObjectQueryParamsObjectResponse.md +docs/models/operations/DuplicateParamRequest.md +docs/models/operations/DuplicateParamDuplicateParamResponse.md +docs/models/operations/DuplicateParamResponse.md +docs/models/operations/FormQueryParamsArrayRequest.md +docs/models/operations/FormQueryParamsArrayResArgs.md +docs/models/operations/FormQueryParamsArrayRes.md +docs/models/operations/FormQueryParamsArrayResponse.md +docs/models/operations/FormQueryParamsCamelObjectObjParam.md +docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md +docs/models/operations/FormQueryParamsCamelObjectRequest.md +docs/models/operations/FormQueryParamsCamelObjectResArgs.md +docs/models/operations/FormQueryParamsCamelObjectRes.md +docs/models/operations/FormQueryParamsCamelObjectResponse.md +docs/models/operations/FormQueryParamsMapRequest.md +docs/models/operations/FormQueryParamsMapRes.md +docs/models/operations/FormQueryParamsMapResponse.md +docs/models/operations/FormQueryParamsObjectRequest.md +docs/models/operations/FormQueryParamsObjectResArgs.md +docs/models/operations/FormQueryParamsObjectRes.md +docs/models/operations/FormQueryParamsObjectResponse.md +docs/models/operations/FormQueryParamsPrimitiveRequest.md +docs/models/operations/FormQueryParamsPrimitiveResArgs.md +docs/models/operations/FormQueryParamsPrimitiveRes.md +docs/models/operations/FormQueryParamsPrimitiveResponse.md +docs/models/operations/FormQueryParamsRefParamObjectRequest.md +docs/models/operations/FormQueryParamsRefParamObjectResArgs.md +docs/models/operations/FormQueryParamsRefParamObjectRes.md +docs/models/operations/FormQueryParamsRefParamObjectResponse.md +docs/models/operations/HeaderParamsArrayRequest.md +docs/models/operations/HeaderParamsArrayResHeaders.md +docs/models/operations/HeaderParamsArrayRes.md +docs/models/operations/HeaderParamsArrayResponse.md +docs/models/operations/HeaderParamsMapRequest.md +docs/models/operations/HeaderParamsMapResHeaders.md +docs/models/operations/HeaderParamsMapRes.md +docs/models/operations/HeaderParamsMapResponse.md +docs/models/operations/HeaderParamsObjectRequest.md +docs/models/operations/HeaderParamsObjectResHeaders.md +docs/models/operations/HeaderParamsObjectRes.md +docs/models/operations/HeaderParamsObjectResponse.md +docs/models/operations/HeaderParamsPrimitiveRequest.md +docs/models/operations/HeaderParamsPrimitiveResHeaders.md +docs/models/operations/HeaderParamsPrimitiveRes.md +docs/models/operations/HeaderParamsPrimitiveResponse.md +docs/models/operations/JsonQueryParamsObjectRequest.md +docs/models/operations/JsonQueryParamsObjectResArgs.md +docs/models/operations/JsonQueryParamsObjectRes.md +docs/models/operations/JsonQueryParamsObjectResponse.md +docs/models/operations/MixedParametersCamelCaseRequest.md +docs/models/operations/MixedParametersCamelCaseResArgs.md +docs/models/operations/MixedParametersCamelCaseResHeaders.md +docs/models/operations/MixedParametersCamelCaseRes.md +docs/models/operations/MixedParametersCamelCaseResponse.md +docs/models/operations/MixedParametersPrimitivesRequest.md +docs/models/operations/MixedParametersPrimitivesResArgs.md +docs/models/operations/MixedParametersPrimitivesResHeaders.md +docs/models/operations/MixedParametersPrimitivesRes.md +docs/models/operations/MixedParametersPrimitivesResponse.md +docs/models/operations/MixedQueryParamsRequest.md +docs/models/operations/MixedQueryParamsRes.md +docs/models/operations/MixedQueryParamsResponse.md +docs/models/operations/PathParameterJsonRequest.md +docs/models/operations/PathParameterJsonRes.md +docs/models/operations/PathParameterJsonResponse.md +docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md +docs/models/operations/PipeDelimitedQueryParamsArrayResArgs.md +docs/models/operations/PipeDelimitedQueryParamsArrayRes.md +docs/models/operations/PipeDelimitedQueryParamsArrayResponse.md +docs/models/operations/SimplePathParameterArraysRequest.md +docs/models/operations/SimplePathParameterArraysRes.md +docs/models/operations/SimplePathParameterArraysResponse.md +docs/models/operations/SimplePathParameterMapsRequest.md +docs/models/operations/SimplePathParameterMapsRes.md +docs/models/operations/SimplePathParameterMapsResponse.md +docs/models/operations/SimplePathParameterObjectsRequest.md +docs/models/operations/SimplePathParameterObjectsRes.md +docs/models/operations/SimplePathParameterObjectsResponse.md +docs/models/operations/SimplePathParameterPrimitivesRequest.md +docs/models/operations/SimplePathParameterPrimitivesRes.md +docs/models/operations/SimplePathParameterPrimitivesResponse.md +docs/models/operations/NullableObjectPostRes.md +docs/models/operations/NullableObjectPostResponse.md +docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.md +docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.md +docs/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.md +docs/models/operations/NullableRequiredEmptyObjectPostRequestBody.md +docs/models/operations/NullableRequiredEmptyObjectPostResponse.md +docs/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.md +docs/models/operations/NullableRequiredPropertyPostRequestBody.md +docs/models/operations/NullableRequiredPropertyPostResponse.md +docs/models/operations/NullableRequiredSharedObjectPostRequestBody.md +docs/models/operations/NullableRequiredSharedObjectPostResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.md +docs/models/operations/RequestBodyPostApplicationJsonDeepRes.md +docs/models/operations/RequestBodyPostApplicationJsonDeepResponse.md +docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.md +docs/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapObjResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.md +docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.md +docs/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.md +docs/models/operations/RequestBodyPostApplicationJsonSimpleRes.md +docs/models/operations/RequestBodyPostApplicationJsonSimpleResponse.md +docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.md +docs/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.md +docs/models/operations/RequestBodyPostComplexNumberTypesRequest.md +docs/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.md +docs/models/operations/RequestBodyPostComplexNumberTypesResponse.md +docs/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.md +docs/models/operations/RequestBodyPostDefaultsAndConstsResponse.md +docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.md +docs/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.md +docs/models/operations/RequestBodyPostEmptyObjectRequestBody.md +docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.md +docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.md +docs/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.md +docs/models/operations/RequestBodyPostEmptyObjectResponse.md +docs/models/operations/RequestBodyPostFormDeepResForm.md +docs/models/operations/RequestBodyPostFormDeepRes.md +docs/models/operations/RequestBodyPostFormDeepResponse.md +docs/models/operations/RequestBodyPostFormMapPrimitiveRes.md +docs/models/operations/RequestBodyPostFormMapPrimitiveResponse.md +docs/models/operations/RequestBodyPostFormSimpleResForm.md +docs/models/operations/RequestBodyPostFormSimpleRes.md +docs/models/operations/RequestBodyPostFormSimpleResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesDateResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesFloat32Response.md +docs/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesInt32Response.md +docs/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesNumberResponse.md +docs/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.md +docs/models/operations/RequestBodyPostJsonDataTypesStringResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.md +docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.md +docs/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.md +docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.md +docs/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.md +docs/models/operations/RequestBodyPostNullArray200ApplicationJSON.md +docs/models/operations/RequestBodyPostNullArrayResponse.md +docs/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.md +docs/models/operations/RequestBodyPostNullDictionaryResponse.md +docs/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.md +docs/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.md +docs/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.md +docs/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.md +docs/models/operations/RequestBodyPutBytesRes.md +docs/models/operations/RequestBodyPutBytesResponse.md +docs/models/operations/RequestBodyPutBytesWithParamsRequest.md +docs/models/operations/RequestBodyPutBytesWithParamsResArgs.md +docs/models/operations/RequestBodyPutBytesWithParamsRes.md +docs/models/operations/RequestBodyPutBytesWithParamsResponse.md +docs/models/operations/RequestBodyPutMultipartDeepResForm.md +docs/models/operations/RequestBodyPutMultipartDeepRes.md +docs/models/operations/RequestBodyPutMultipartDeepResponse.md +docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.md +docs/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.md +docs/models/operations/RequestBodyPutMultipartDifferentFileNameRes.md +docs/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.md +docs/models/operations/RequestBodyPutMultipartFileRequestBodyFile.md +docs/models/operations/RequestBodyPutMultipartFileRequestBody.md +docs/models/operations/RequestBodyPutMultipartFileRes.md +docs/models/operations/RequestBodyPutMultipartFileResponse.md +docs/models/operations/RequestBodyPutMultipartSimpleResForm.md +docs/models/operations/RequestBodyPutMultipartSimpleRes.md +docs/models/operations/RequestBodyPutMultipartSimpleResponse.md +docs/models/operations/RequestBodyPutStringRes.md +docs/models/operations/RequestBodyPutStringResponse.md +docs/models/operations/RequestBodyPutStringWithParamsRequest.md +docs/models/operations/RequestBodyPutStringWithParamsResArgs.md +docs/models/operations/RequestBodyPutStringWithParamsRes.md +docs/models/operations/RequestBodyPutStringWithParamsResponse.md +docs/models/operations/RequestBodyReadAndWriteResponse.md +docs/models/operations/RequestBodyReadOnlyInputResponse.md +docs/models/operations/RequestBodyReadOnlyUnionResponse.md +docs/models/operations/RequestBodyReadWriteOnlyUnionResponse.md +docs/models/operations/RequestBodyWriteOnlyResponse.md +docs/models/operations/RequestBodyWriteOnlyOutputResponse.md +docs/models/operations/RequestBodyWriteOnlyUnionResponse.md +docs/models/operations/CreateFileRequestBodyFile.md +docs/models/operations/CreateFileRequestBody.md +docs/models/operations/CreateFileResponse.md +docs/models/operations/CreateResourceResponse.md +docs/models/operations/DeleteResourceRequest.md +docs/models/operations/DeleteResourceResponse.md +docs/models/operations/GetResourceRequest.md +docs/models/operations/GetResourceResponse.md +docs/models/operations/UpdateResourceRequest.md +docs/models/operations/UpdateResourceResponse.md +docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.md +docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md +docs/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md +docs/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md +docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md +docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md +docs/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md +docs/models/operations/ResponseBodyAdditionalPropertiesPostResponse.md +docs/models/operations/ResponseBodyBytesGetResponse.md +docs/models/operations/ResponseBodyEmptyWithHeadersRequest.md +docs/models/operations/ResponseBodyEmptyWithHeadersResponse.md +docs/models/operations/ResponseBodyOptionalGetResponse.md +docs/models/operations/ResponseBodyReadOnlyResponse.md +docs/models/operations/ResponseBodyStringGetResponse.md +docs/models/operations/ResponseBodyXmlGetResponse.md +docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.md +docs/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.md +docs/models/operations/RetriesGetRequest.md +docs/models/operations/RetriesGetRetries.md +docs/models/operations/RetriesGetResponse.md +docs/models/operations/GroupSecondGetResponse.md +docs/models/operations/SelectGlobalServerResponse.md +docs/models/operations/SelectServerWithIDResponse.md +docs/models/operations/ServerWithProtocolTemplateResponse.md +docs/models/operations/ServerWithTemplatesResponse.md +docs/models/operations/ServerWithTemplatesGlobalResponse.md +docs/models/operations/ServersByIDWithTemplatesResponse.md +docs/models/operations/TelemetrySpeakeasyUserAgentGetRequest.md +docs/models/operations/TelemetrySpeakeasyUserAgentGetRes.md +docs/models/operations/TelemetrySpeakeasyUserAgentGetResponse.md +docs/models/operations/TelemetryUserAgentGetRes.md +docs/models/operations/TelemetryUserAgentGetResponse.md +docs/models/operations/FlattenedTypedObjectPostRes.md +docs/models/operations/FlattenedTypedObjectPostResponse.md +docs/models/operations/MixedTypeOneOfPostRes.md +docs/models/operations/MixedTypeOneOfPostResponse.md +docs/models/operations/NullableOneOfRefInObjectPostRes.md +docs/models/operations/NullableOneOfRefInObjectPostResponse.md +docs/models/operations/NullableOneOfSchemaPostRes.md +docs/models/operations/NullableOneOfSchemaPostResponse.md +docs/models/operations/NullableOneOfTypeInObjectPostRes.md +docs/models/operations/NullableOneOfTypeInObjectPostResponse.md +docs/models/operations/NullableTypedObjectPostRes.md +docs/models/operations/NullableTypedObjectPostResponse.md +docs/models/operations/PrimitiveTypeOneOfPostRes.md +docs/models/operations/PrimitiveTypeOneOfPostResponse.md +docs/models/operations/StronglyTypedOneOfPostRes.md +docs/models/operations/StronglyTypedOneOfPostResponse.md +docs/models/operations/TypedObjectNullableOneOfPostRes.md +docs/models/operations/TypedObjectNullableOneOfPostResponse.md +docs/models/operations/TypedObjectOneOfPostRes.md +docs/models/operations/TypedObjectOneOfPostResponse.md +docs/models/operations/UnionDateNullRes.md +docs/models/operations/UnionDateNullResponse.md +docs/models/operations/UnionDateTimeNullRes.md +docs/models/operations/UnionDateTimeNullResponse.md +docs/models/operations/WeaklyTypedOneOfPostRes.md +docs/models/operations/WeaklyTypedOneOfPostResponse.md +docs/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.md +docs/models/shared/HttpBinSimpleJsonObjectSlideshow.md +docs/models/shared/HttpBinSimpleJsonObject.md +docs/models/shared/AuthServiceRequestBodyBasicAuth.md +docs/models/shared/AuthServiceRequestBodyHeaderAuth.md +docs/models/shared/AuthServiceRequestBody.md +docs/models/shared/SchemeBasicAuth.md +docs/models/shared/Security.md +docs/models/shared/ErrorType.md +docs/models/shared/Error.md +docs/models/shared/SimpleObjectInt32Enum.md +docs/models/shared/SimpleObjectIntEnum.md +docs/models/shared/SimpleObject.md +docs/models/shared/Enum.md +docs/models/shared/ArrayCircularReferenceObject.md +docs/models/shared/ValidCircularReferenceObject.md +docs/models/shared/DeprecatedFieldInObjectDeprecatedEnum.md +docs/models/shared/DeprecatedFieldInObject.md +docs/models/shared/DeprecatedObject.md +docs/models/shared/EmptyObjectParam.md +docs/models/shared/ObjectCircularReferenceObject.md +docs/models/shared/OneOfCircularReferenceObject.md +docs/models/shared/FakerStrings.md +docs/models/shared/FakerFormattedStrings.md +docs/models/shared/LimitOffsetConfig.md +docs/models/shared/RefQueryParamObjExploded.md +docs/models/shared/RefQueryParamObj.md +docs/models/shared/DeepObject.md +docs/models/shared/NullableObject.md +docs/models/shared/SimpleObjectCamelCaseInt32EnumVal.md +docs/models/shared/SimpleObjectCamelCaseIntEnumVal.md +docs/models/shared/SimpleObjectCamelCase.md +docs/models/shared/ArrObjValue.md +docs/models/shared/ArrObjValueCamelCase.md +docs/models/shared/DeepObjectCamelCase.md +docs/models/shared/MapObjValue.md +docs/models/shared/MapObjValueCamelCase.md +docs/models/shared/ComplexNumberTypes.md +docs/models/shared/DefaultsAndConstsOutputConstEnumInt.md +docs/models/shared/DefaultsAndConstsOutputConstEnumStr.md +docs/models/shared/DefaultsAndConstsOutputDefaultEnumInt.md +docs/models/shared/DefaultsAndConstsOutputDefaultEnumStr.md +docs/models/shared/DefaultsAndConstsOutput.md +docs/models/shared/DefaultsAndConstsConstEnumInt.md +docs/models/shared/DefaultsAndConstsConstEnumStr.md +docs/models/shared/DefaultsAndConstsDefaultEnumInt.md +docs/models/shared/DefaultsAndConstsDefaultEnumStr.md +docs/models/shared/DefaultsAndConsts.md +docs/models/shared/ReadWriteObjectInput.md +docs/models/shared/ReadWriteObjectOutput.md +docs/models/shared/ReadOnlyObject.md +docs/models/shared/ReadOnlyObjectInput.md +docs/models/shared/WriteOnlyObject.md +docs/models/shared/WriteOnlyObjectOutput.md +docs/models/shared/FileResource.md +docs/models/shared/ExampleResourceChocolates.md +docs/models/shared/ExampleResourceEnumNumber.md +docs/models/shared/ExampleResourceEnumStr.md +docs/models/shared/ExampleResource.md +docs/models/shared/TypedObject1Type.md +docs/models/shared/TypedObject1.md +docs/models/shared/ObjWithZeroValueComplexTypePtrs.md +docs/models/shared/NullableOneOfRefInObject.md +docs/models/shared/NullableOneOfTypeInObject.md +docs/models/shared/AllOfToAllOf.md +docs/models/shared/OneOfGenerationStressTest.md +docs/models/shared/UnsupportedEnums.md +docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.md +docs/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.md +docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.md +docs/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.md +docs/sdks/sdk/README.md +docs/sdks/auth/README.md +docs/sdks/authnew/README.md +docs/sdks/documentation/README.md +docs/sdks/errors/README.md +docs/sdks/first/README.md +docs/sdks/flattening/README.md +docs/sdks/generation/README.md +docs/sdks/globals/README.md +docs/sdks/nest/README.md +docs/sdks/nestfirst/README.md +docs/sdks/nested/README.md +docs/sdks/nestedfirst/README.md +docs/sdks/nestedsecond/README.md +docs/sdks/pagination/README.md +docs/sdks/parameters/README.md +docs/sdks/requestbodies/README.md +docs/sdks/resource/README.md +docs/sdks/responsebodies/README.md +docs/sdks/retries/README.md +docs/sdks/second/README.md +docs/sdks/servers/README.md +docs/sdks/telemetry/README.md +docs/sdks/unions/README.md +.gitattributes \ No newline at end of file diff --git a/csharp-client-sdk/gen.yaml b/csharp-client-sdk/gen.yaml new file mode 100755 index 000000000..11cafa79d --- /dev/null +++ b/csharp-client-sdk/gen.yaml @@ -0,0 +1,38 @@ +configVersion: 1.0.0 +management: + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d + docVersion: 0.1.0 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 +generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git + sdkClassName: SDK + singleTagPerOp: false +features: + csharp: + core: 2.93.0 + deprecations: 2.81.1 + docs: 0.0.3 + enums: 2.81.1 + examples: 2.81.3 + flattening: 2.81.1 + globalSecurity: 2.81.1 + globalServerURLs: 2.82.0 + globals: 2.81.1 + groups: 2.81.2 + ignores: 2.81.1 + includes: 2.81.1 + inputOutputModels: 2.81.1 + methodSecurity: 2.82.0 + methodServerURLs: 2.82.0 + nameOverrides: 2.81.1 + pagination: 0.1.1 + serverIDs: 2.81.1 +csharp: + version: 0.1.0 + author: Speakeasy + dotnetVersion: net5.0 + maxMethodParams: 5 + packageName: openapi + published: true + repoSubDirectory: csharp-client-sdk diff --git a/go-client-sdk/README.md b/go-client-sdk/README.md index 33fc0b2e1..32d86d5ad 100755 --- a/go-client-sdk/README.md +++ b/go-client-sdk/README.md @@ -95,22 +95,23 @@ func main() { StrOpt: openapi.String("testOptional"), }, }, - BigintParameter: big.NewInt(168827), - BigintStrParameter: big.NewInt(446729), - BoolParameter: false, - DateParameter: types.MustDateFromString("2023-06-11"), - DateTimeParameter: types.MustTimeFromString("2022-07-22T13:16:48.221Z"), - DecimalParameter: types.MustNewDecimalFromString("2679.33"), - DecimalStrParameter: types.MustNewDecimalFromString("5223.72"), - DoubleParameter: 2911.37, - EnumParameter: operations.UsageExamplePostEnumParameterValue3, - FalseyNumberParameter: 0, - Float32Parameter: 2286.22, - FloatParameter: 1029.75, - Int64Parameter: 566999, - IntParameter: 195232, - OptEnumParameter: operations.UsageExamplePostOptEnumParameterValue3.ToPointer(), - StrParameter: "example 2", + BigintParameter: big.NewInt(168827), + BigintStrParameter: big.NewInt(446729), + BoolParameter: false, + DateParameter: types.MustDateFromString("2023-06-11"), + DateTimeDefaultParameter: types.MustTimeFromString("2022-07-22T13:16:48.221Z"), + DateTimeParameter: types.MustTimeFromString("2021-10-21T09:16:58.799Z"), + DecimalParameter: types.MustNewDecimalFromString("5223.72"), + DecimalStrParameter: types.MustNewDecimalFromString("2911.37"), + DoubleParameter: 6946.59, + EnumParameter: operations.UsageExamplePostEnumParameterValue1, + FalseyNumberParameter: 0, + Float32Parameter: 1029.75, + FloatParameter: 5669.99, + Int64Parameter: 195232, + IntParameter: 569663, + OptEnumParameter: operations.UsageExamplePostOptEnumParameterValue3.ToPointer(), + StrParameter: "example 1", }, operationSecurity) if err != nil { log.Fatal(err) @@ -184,6 +185,9 @@ func main() { * [AnchorTypesGet](docs/sdks/generation/README.md#anchortypesget) * [ArrayCircularReferenceGet](docs/sdks/generation/README.md#arraycircularreferenceget) * [CircularReferenceGet](docs/sdks/generation/README.md#circularreferenceget) +* [DateParamWithDefault](docs/sdks/generation/README.md#dateparamwithdefault) +* [DateTimeParamWithDefault](docs/sdks/generation/README.md#datetimeparamwithdefault) +* [DecimalParamWithDefault](docs/sdks/generation/README.md#decimalparamwithdefault) * [DeprecatedFieldInSchemaPost](docs/sdks/generation/README.md#deprecatedfieldinschemapost) * [DeprecatedObjectInSchemaGet](docs/sdks/generation/README.md#deprecatedobjectinschemaget) * [~~DeprecatedOperationNoCommentsGet~~](docs/sdks/generation/README.md#deprecatedoperationnocommentsget) - :warning: **Deprecated** @@ -236,6 +240,7 @@ func main() { * [DeepObjectQueryParamsObject](docs/sdks/parameters/README.md#deepobjectqueryparamsobject) * [DuplicateParam](docs/sdks/parameters/README.md#duplicateparam) * [FormQueryParamsArray](docs/sdks/parameters/README.md#formqueryparamsarray) +* [FormQueryParamsCamelObject](docs/sdks/parameters/README.md#formqueryparamscamelobject) * [FormQueryParamsMap](docs/sdks/parameters/README.md#formqueryparamsmap) * [FormQueryParamsObject](docs/sdks/parameters/README.md#formqueryparamsobject) * [FormQueryParamsPrimitive](docs/sdks/parameters/README.md#formqueryparamsprimitive) @@ -351,6 +356,7 @@ func main() { * [ResponseBodyAdditionalPropertiesComplexNumbersPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiescomplexnumberspost) * [ResponseBodyAdditionalPropertiesDatePost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesdatepost) +* [ResponseBodyAdditionalPropertiesObjectPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesobjectpost) * [ResponseBodyAdditionalPropertiesPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiespost) * [ResponseBodyBytesGet](docs/sdks/responsebodies/README.md#responsebodybytesget) * [ResponseBodyEmptyWithHeaders](docs/sdks/responsebodies/README.md#responsebodyemptywithheaders) @@ -394,6 +400,8 @@ func main() { * [StronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [TypedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [TypedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [UnionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [UnionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [WeaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) @@ -510,7 +518,7 @@ The following global parameters are available. The required parameters must be s -## Example +## Example #1 ```go package main @@ -544,6 +552,43 @@ func main() { } } +``` + + +## Example #2 + +```go +package main + +import ( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + var globalQueryParam *string = "string" + + ctx := context.Background() + res, err := s.Globals.GlobalsQueryParameterGet(ctx, globalQueryParam) + if err != nil { + log.Fatal(err) + } + + if res.Res != nil { + // handle response + } +} + ``` diff --git a/go-client-sdk/USAGE.md b/go-client-sdk/USAGE.md index 951fbf42a..4d35e665f 100755 --- a/go-client-sdk/USAGE.md +++ b/go-client-sdk/USAGE.md @@ -86,22 +86,23 @@ func main() { StrOpt: openapi.String("testOptional"), }, }, - BigintParameter: big.NewInt(168827), - BigintStrParameter: big.NewInt(446729), - BoolParameter: false, - DateParameter: types.MustDateFromString("2023-06-11"), - DateTimeParameter: types.MustTimeFromString("2022-07-22T13:16:48.221Z"), - DecimalParameter: types.MustNewDecimalFromString("2679.33"), - DecimalStrParameter: types.MustNewDecimalFromString("5223.72"), - DoubleParameter: 2911.37, - EnumParameter: operations.UsageExamplePostEnumParameterValue3, - FalseyNumberParameter: 0, - Float32Parameter: 2286.22, - FloatParameter: 1029.75, - Int64Parameter: 566999, - IntParameter: 195232, - OptEnumParameter: operations.UsageExamplePostOptEnumParameterValue3.ToPointer(), - StrParameter: "example 2", + BigintParameter: big.NewInt(168827), + BigintStrParameter: big.NewInt(446729), + BoolParameter: false, + DateParameter: types.MustDateFromString("2023-06-11"), + DateTimeDefaultParameter: types.MustTimeFromString("2022-07-22T13:16:48.221Z"), + DateTimeParameter: types.MustTimeFromString("2021-10-21T09:16:58.799Z"), + DecimalParameter: types.MustNewDecimalFromString("5223.72"), + DecimalStrParameter: types.MustNewDecimalFromString("2911.37"), + DoubleParameter: 6946.59, + EnumParameter: operations.UsageExamplePostEnumParameterValue1, + FalseyNumberParameter: 0, + Float32Parameter: 1029.75, + FloatParameter: 5669.99, + Int64Parameter: 195232, + IntParameter: 569663, + OptEnumParameter: operations.UsageExamplePostOptEnumParameterValue3.ToPointer(), + StrParameter: "example 1", }, operationSecurity) if err != nil { log.Fatal(err) diff --git a/go-client-sdk/docs/models/errors/error.md b/go-client-sdk/docs/models/errors/error.md index 8d72a15d5..97e6b75b1 100755 --- a/go-client-sdk/docs/models/errors/error.md +++ b/go-client-sdk/docs/models/errors/error.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `Code` | **string* | :heavy_minus_sign: | N/A | -| `Message` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `Code` | **string* | :heavy_minus_sign: | N/A | +| `Message` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [*ErrorType](../../models/errors/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/errors/errortype.md b/go-client-sdk/docs/models/errors/errortype.md new file mode 100755 index 000000000..95f5041e1 --- /dev/null +++ b/go-client-sdk/docs/models/errors/errortype.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `ErrorTypeNotFound` | not_found | +| `ErrorTypeInvalid` | invalid | +| `ErrorTypeInternal` | internal | \ No newline at end of file diff --git a/go-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md b/go-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md index 9944d714f..8a94b91c1 100755 --- a/go-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md +++ b/go-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md @@ -9,4 +9,5 @@ Not Implemented | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `Code` | **string* | :heavy_minus_sign: | N/A | -| `Message` | **string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `Message` | **string* | :heavy_minus_sign: | N/A | +| `Type` | [*ErrorType](../../models/errors/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md b/go-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md new file mode 100755 index 000000000..234bbec60 --- /dev/null +++ b/go-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `DateInput` | [types.Date](../../types/date.md) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md b/go-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md new file mode 100755 index 000000000..1393cb19c --- /dev/null +++ b/go-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md b/go-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md new file mode 100755 index 000000000..adb250c5c --- /dev/null +++ b/go-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `DateTimeInput` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md b/go-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md new file mode 100755 index 000000000..71502ec5d --- /dev/null +++ b/go-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md b/go-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md new file mode 100755 index 000000000..5b924d97f --- /dev/null +++ b/go-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `DecimalInput` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md b/go-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md new file mode 100755 index 000000000..8017c595b --- /dev/null +++ b/go-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md new file mode 100755 index 000000000..ac4f858c3 --- /dev/null +++ b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `EncodedCount` | **string* | :heavy_minus_sign: | N/A | 11 | +| `EncodedTerm` | **string* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md new file mode 100755 index 000000000..c2a61dbc9 --- /dev/null +++ b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ItemCount` | **string* | :heavy_minus_sign: | N/A | 10 | +| `SearchTerm` | **string* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md new file mode 100755 index 000000000..7208cb44d --- /dev/null +++ b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `ObjParamExploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `ObjParam` | [*FormQueryParamsCamelObjectObjParam](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md new file mode 100755 index 000000000..496148674 --- /dev/null +++ b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `Args` | [FormQueryParamsCamelObjectResArgs](../../models/operations/formqueryparamscamelobjectresargs.md) | :heavy_check_mark: | N/A | | +| `URL` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md new file mode 100755 index 000000000..533d43834 --- /dev/null +++ b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `ItemCount` | *string* | :heavy_check_mark: | N/A | 10 | +| `SearchTerm` | *string* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md new file mode 100755 index 000000000..853b5e864 --- /dev/null +++ b/go-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [*FormQueryParamsCamelObjectRes](../../models/operations/formqueryparamscamelobjectres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md index 618151f06..27aeb4865 100755 --- a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md +++ b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md @@ -5,6 +5,6 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `JSON` | [shared.ObjWithComplexNumbersAdditionlProperties](../../models/shared/objwithcomplexnumbersadditionlproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `JSON` | [shared.ObjWithComplexNumbersAdditionalProperties](../../models/shared/objwithcomplexnumbersadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md index c4cfb40bb..421e51d09 100755 --- a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md +++ b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md @@ -5,6 +5,6 @@ OK ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `JSON` | [shared.ObjWithDateAdditionlProperties](../../models/shared/objwithdateadditionlproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `JSON` | [shared.ObjWithDateAdditionalProperties](../../models/shared/objwithdateadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md new file mode 100755 index 000000000..066d6a5c2 --- /dev/null +++ b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `JSON` | [shared.ObjWithObjAdditionalProperties](../../models/shared/objwithobjadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md new file mode 100755 index 000000000..0c9da3cbd --- /dev/null +++ b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject` | [*ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON](../../models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md index ca35e5bd8..cd3d5602d 100755 --- a/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md +++ b/go-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md @@ -5,6 +5,6 @@ OK ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `JSON` | [shared.ObjWithStringAdditionlProperties](../../models/shared/objwithstringadditionlproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `JSON` | [shared.ObjWithStringAdditionalProperties](../../models/shared/objwithstringadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/uniondatenullres.md b/go-client-sdk/docs/models/operations/uniondatenullres.md new file mode 100755 index 000000000..b3fadf6c0 --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatenullres.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `JSON` | [types.Date](../../types/date.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/uniondatenullresponse.md b/go-client-sdk/docs/models/operations/uniondatenullresponse.md new file mode 100755 index 000000000..5feebcf97 --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [*UnionDateNullRes](../../models/operations/uniondatenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/uniondatetimenullres.md b/go-client-sdk/docs/models/operations/uniondatetimenullres.md new file mode 100755 index 000000000..a5adf2d35 --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatetimenullres.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `JSON` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/uniondatetimenullresponse.md b/go-client-sdk/docs/models/operations/uniondatetimenullresponse.md new file mode 100755 index 000000000..d4372e3eb --- /dev/null +++ b/go-client-sdk/docs/models/operations/uniondatetimenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `Res` | [*UnionDateTimeNullRes](../../models/operations/uniondatetimenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/go-client-sdk/docs/models/operations/usageexamplepostrequest.md b/go-client-sdk/docs/models/operations/usageexamplepostrequest.md index a8a9292fa..898fd8799 100755 --- a/go-client-sdk/docs/models/operations/usageexamplepostrequest.md +++ b/go-client-sdk/docs/models/operations/usageexamplepostrequest.md @@ -12,6 +12,7 @@ | `BigintStrParameterOptional` | [*big.Int](https://pkg.go.dev/math/big#Int) | :heavy_minus_sign: | An bigint parameter | | | `BoolParameter` | *bool* | :heavy_check_mark: | A boolean parameter | | | `DateParameter` | [types.Date](../../types/date.md) | :heavy_check_mark: | A date parameter | | +| `DateTimeDefaultParameter` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | A date time parameter with a default value | | | `DateTimeParameter` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | A date time parameter | | | `DecimalParameter` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | A decimal parameter | | | `DecimalParameterOptional` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_minus_sign: | A decimal parameter | | diff --git a/go-client-sdk/docs/models/shared/objwithcomplexnumbersadditionlproperties.md b/go-client-sdk/docs/models/shared/objwithcomplexnumbersadditionalproperties.md similarity index 95% rename from go-client-sdk/docs/models/shared/objwithcomplexnumbersadditionlproperties.md rename to go-client-sdk/docs/models/shared/objwithcomplexnumbersadditionalproperties.md index 1b334d191..4a71c246d 100755 --- a/go-client-sdk/docs/models/shared/objwithcomplexnumbersadditionlproperties.md +++ b/go-client-sdk/docs/models/shared/objwithcomplexnumbersadditionalproperties.md @@ -1,4 +1,4 @@ -# ObjWithComplexNumbersAdditionlProperties +# ObjWithComplexNumbersAdditionalProperties ## Fields diff --git a/go-client-sdk/docs/models/shared/objwithdateadditionlproperties.md b/go-client-sdk/docs/models/shared/objwithdateadditionalproperties.md similarity index 95% rename from go-client-sdk/docs/models/shared/objwithdateadditionlproperties.md rename to go-client-sdk/docs/models/shared/objwithdateadditionalproperties.md index 66c70596c..87f3dd5f5 100755 --- a/go-client-sdk/docs/models/shared/objwithdateadditionlproperties.md +++ b/go-client-sdk/docs/models/shared/objwithdateadditionalproperties.md @@ -1,4 +1,4 @@ -# ObjWithDateAdditionlProperties +# ObjWithDateAdditionalProperties ## Fields diff --git a/go-client-sdk/docs/models/shared/objwithobjadditionalproperties.md b/go-client-sdk/docs/models/shared/objwithobjadditionalproperties.md new file mode 100755 index 000000000..2b9dd5be1 --- /dev/null +++ b/go-client-sdk/docs/models/shared/objwithobjadditionalproperties.md @@ -0,0 +1,10 @@ +# ObjWithObjAdditionalProperties + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `AdditionalProperties` | []*int64* | :heavy_check_mark: | N/A | +| `AdditionalPropertiesT` | map[string][SimpleObject](../../models/shared/simpleobject.md) | :heavy_minus_sign: | N/A | +| `Datetime` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/go-client-sdk/docs/models/shared/objwithstringadditionlproperties.md b/go-client-sdk/docs/models/shared/objwithstringadditionalproperties.md similarity index 92% rename from go-client-sdk/docs/models/shared/objwithstringadditionlproperties.md rename to go-client-sdk/docs/models/shared/objwithstringadditionalproperties.md index c1c62f87a..592ce690c 100755 --- a/go-client-sdk/docs/models/shared/objwithstringadditionlproperties.md +++ b/go-client-sdk/docs/models/shared/objwithstringadditionalproperties.md @@ -1,4 +1,4 @@ -# ObjWithStringAdditionlProperties +# ObjWithStringAdditionalProperties ## Fields diff --git a/go-client-sdk/docs/sdks/auth/README.md b/go-client-sdk/docs/sdks/auth/README.md index f495808e4..65585448c 100755 --- a/go-client-sdk/docs/sdks/auth/README.md +++ b/go-client-sdk/docs/sdks/auth/README.md @@ -132,9 +132,9 @@ func main() { ) - var passwd string = "minus" + var passwd string = "string" - var user string = "Architect" + var user string = "string" operationSecurity := operations.BasicAuthSecurity{ Password: "YOUR_PASSWORD", diff --git a/go-client-sdk/docs/sdks/authnew/README.md b/go-client-sdk/docs/sdks/authnew/README.md index a11aa6d7e..af0121f96 100755 --- a/go-client-sdk/docs/sdks/authnew/README.md +++ b/go-client-sdk/docs/sdks/authnew/README.md @@ -50,8 +50,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "Highway", - HeaderName: "deliver payment", + ExpectedValue: "string", + HeaderName: "string", }, }, }) @@ -110,8 +110,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "idolized", - HeaderName: "female Virginia primary", + ExpectedValue: "string", + HeaderName: "string", }, }, }) @@ -174,8 +174,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "integrate", - HeaderName: "bandwidth uselessly", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -238,8 +238,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "thong Scandium worse", - HeaderName: "Durham Tesla", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -306,8 +306,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "services indigo", - HeaderName: "Wooden Jewelery", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -373,8 +373,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "Gourde", - HeaderName: "Van Granite East", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -440,8 +440,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "compressing", - HeaderName: "sievert Diesel", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -504,8 +504,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "payment Usability sievert", - HeaderName: "yum Northwest metrics", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -569,8 +569,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "microchip Southeast", - HeaderName: "Future Corners Electronic", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -631,8 +631,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "Sunrise", - HeaderName: "male", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) @@ -693,8 +693,8 @@ func main() { }, HeaderAuth: []shared.AuthServiceRequestBodyHeaderAuth{ shared.AuthServiceRequestBodyHeaderAuth{ - ExpectedValue: "bypassing furthermore", - HeaderName: "bypass brilliant tesla", + ExpectedValue: "string", + HeaderName: "string", }, }, }, operationSecurity) diff --git a/go-client-sdk/docs/sdks/documentation/README.md b/go-client-sdk/docs/sdks/documentation/README.md index cd412e409..7f58ecd93 100755 --- a/go-client-sdk/docs/sdks/documentation/README.md +++ b/go-client-sdk/docs/sdks/documentation/README.md @@ -35,7 +35,7 @@ func main() { ) - var language string = "hack" + var language string = "string" ctx := context.Background() res, err := s.Documentation.GetDocumentationPerLanguage(ctx, language) diff --git a/go-client-sdk/docs/sdks/flattening/README.md b/go-client-sdk/docs/sdks/flattening/README.md index 54c965061..2627658d5 100755 --- a/go-client-sdk/docs/sdks/flattening/README.md +++ b/go-client-sdk/docs/sdks/flattening/README.md @@ -60,7 +60,7 @@ func main() { StrOpt: openapi.String("testOptional"), } - var str string = "Minivan" + var str string = "string" ctx := context.Background() res, err := s.Flattening.ComponentBodyAndParamConflict(ctx, simpleObject, str) @@ -114,7 +114,7 @@ func main() { ) - var paramStr string = "ick" + var paramStr string = "string" simpleObject := shared.SimpleObject{ Any: "any", @@ -187,9 +187,9 @@ func main() { ) - var strPathParameter string = "kilogram" + var strPathParameter string = "string" - var strQueryParameter string = "Cloned" + var strQueryParameter string = "string" ctx := context.Background() res, err := s.Flattening.ConflictingParams(ctx, strPathParameter, strQueryParameter) @@ -243,10 +243,10 @@ func main() { requestBody := operations.InlineBodyAndParamConflictRequestBody{ - Str: "Progressive", + Str: "string", } - var str string = "until" + var str string = "string" ctx := context.Background() res, err := s.Flattening.InlineBodyAndParamConflict(ctx, requestBody, str) @@ -300,10 +300,10 @@ func main() { requestBody := operations.InlineBodyAndParamNoConflictRequestBody{ - BodyStr: "dynamic expedite", + BodyStr: "string", } - var paramStr string = "Forward" + var paramStr string = "string" ctx := context.Background() res, err := s.Flattening.InlineBodyAndParamNoConflict(ctx, requestBody, paramStr) diff --git a/go-client-sdk/docs/sdks/generation/README.md b/go-client-sdk/docs/sdks/generation/README.md index 842674c14..37232fff9 100755 --- a/go-client-sdk/docs/sdks/generation/README.md +++ b/go-client-sdk/docs/sdks/generation/README.md @@ -10,6 +10,9 @@ Endpoints for purely testing valid generation behavior. * [AnchorTypesGet](#anchortypesget) * [ArrayCircularReferenceGet](#arraycircularreferenceget) * [CircularReferenceGet](#circularreferenceget) +* [DateParamWithDefault](#dateparamwithdefault) +* [DateTimeParamWithDefault](#datetimeparamwithdefault) +* [DecimalParamWithDefault](#decimalparamwithdefault) * [DeprecatedFieldInSchemaPost](#deprecatedfieldinschemapost) * [DeprecatedObjectInSchemaGet](#deprecatedobjectinschemaget) * [~~DeprecatedOperationNoCommentsGet~~](#deprecatedoperationnocommentsget) - :warning: **Deprecated** @@ -166,6 +169,159 @@ func main() { **[*operations.CircularReferenceGetResponse](../../models/operations/circularreferencegetresponse.md), error** +## DateParamWithDefault + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + + var dateInput types.Date = types.MustDateFromString("2021-11-30") + + ctx := context.Background() + res, err := s.Generation.DateParamWithDefault(ctx, dateInput) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `dateInput` | [types.Date](../../types/date.md) | :heavy_check_mark: | A date parameter with a default value | + + +### Response + +**[*operations.DateParamWithDefaultResponse](../../models/operations/dateparamwithdefaultresponse.md), error** + + +## DateTimeParamWithDefault + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + + var dateTimeInput time.Time = types.MustTimeFromString("2023-02-09T21:53:21.077Z") + + ctx := context.Background() + res, err := s.Generation.DateTimeParamWithDefault(ctx, dateTimeInput) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `dateTimeInput` | [time.Time](https://pkg.go.dev/time#Time) | :heavy_check_mark: | A date time parameter with a default value | + + +### Response + +**[*operations.DateTimeParamWithDefaultResponse](../../models/operations/datetimeparamwithdefaultresponse.md), error** + + +## DecimalParamWithDefault + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + + var decimalInput *decimal.Big = types.MustNewDecimalFromString("4060.06") + + ctx := context.Background() + res, err := s.Generation.DecimalParamWithDefault(ctx, decimalInput) + if err != nil { + log.Fatal(err) + } + + if res.StatusCode == http.StatusOK { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `decimalInput` | [*decimal.Big](https://pkg.go.dev/github.com/ericlagergren/decimal#Big) | :heavy_check_mark: | A decimal parameter with a default value | + + +### Response + +**[*operations.DecimalParamWithDefaultResponse](../../models/operations/decimalparamwithdefaultresponse.md), error** + + ## DeprecatedFieldInSchemaPost ### Example Usage @@ -287,7 +443,7 @@ func main() { ) - var deprecatedParameter *string = "Account" + var deprecatedParameter *string = "string" ctx := context.Background() res, err := s.Generation.DeprecatedOperationNoCommentsGet(ctx, deprecatedParameter) @@ -342,9 +498,9 @@ func main() { ) - var deprecatedParameter *string = "Account" + var deprecatedParameter *string = "string" - var newParameter *string = "actuating" + var newParameter *string = "string" ctx := context.Background() res, err := s.Generation.DeprecatedOperationWithCommentsGet(ctx, deprecatedParameter, newParameter) @@ -592,7 +748,7 @@ func main() { requestBody := operations.IgnoresPostApplicationJSON{} - var testParam *string = "Bike" + var testParam *string = "string" ctx := context.Background() res, err := s.Generation.IgnoresPost(ctx, requestBody, testParam) @@ -803,7 +959,7 @@ func main() { obj := &operations.TypedParameterGenerationGetObj{ Bool: false, Num: 4778.06, - Str: "Progressive Riyal male", + Str: "string", } ctx := context.Background() @@ -898,18 +1054,19 @@ func main() { BigintStrParameter: big.NewInt(446729), BoolParameter: false, DateParameter: types.MustDateFromString("2023-06-11"), - DateTimeParameter: types.MustTimeFromString("2022-07-22T13:16:48.221Z"), - DecimalParameter: types.MustNewDecimalFromString("2679.33"), - DecimalStrParameter: types.MustNewDecimalFromString("5223.72"), - DoubleParameter: 2911.37, - EnumParameter: operations.UsageExamplePostEnumParameterValue3, + DateTimeDefaultParameter: types.MustTimeFromString("2022-07-22T13:16:48.221Z"), + DateTimeParameter: types.MustTimeFromString("2021-10-21T09:16:58.799Z"), + DecimalParameter: types.MustNewDecimalFromString("5223.72"), + DecimalStrParameter: types.MustNewDecimalFromString("2911.37"), + DoubleParameter: 6946.59, + EnumParameter: operations.UsageExamplePostEnumParameterValue1, FalseyNumberParameter: 0, - Float32Parameter: 2286.22, - FloatParameter: 1029.75, - Int64Parameter: 566999, - IntParameter: 195232, + Float32Parameter: 1029.75, + FloatParameter: 5669.99, + Int64Parameter: 195232, + IntParameter: 569663, OptEnumParameter: operations.UsageExamplePostOptEnumParameterValue3.ToPointer(), - StrParameter: "example 2", + StrParameter: "example 1", }, operationSecurity) if err != nil { log.Fatal(err) diff --git a/go-client-sdk/docs/sdks/globals/README.md b/go-client-sdk/docs/sdks/globals/README.md index 9c8656b46..ea3e3be9a 100755 --- a/go-client-sdk/docs/sdks/globals/README.md +++ b/go-client-sdk/docs/sdks/globals/README.md @@ -85,7 +85,7 @@ func main() { ) - var globalQueryParam *string = "Tricycle" + var globalQueryParam *string = "string" ctx := context.Background() res, err := s.Globals.GlobalsQueryParameterGet(ctx, globalQueryParam) diff --git a/go-client-sdk/docs/sdks/parameters/README.md b/go-client-sdk/docs/sdks/parameters/README.md index 583f7dd8f..9b8ce1a4a 100755 --- a/go-client-sdk/docs/sdks/parameters/README.md +++ b/go-client-sdk/docs/sdks/parameters/README.md @@ -11,6 +11,7 @@ Endpoints for testing parameters. * [DeepObjectQueryParamsObject](#deepobjectqueryparamsobject) * [DuplicateParam](#duplicateparam) * [FormQueryParamsArray](#formqueryparamsarray) +* [FormQueryParamsCamelObject](#formqueryparamscamelobject) * [FormQueryParamsMap](#formqueryparamsmap) * [FormQueryParamsObject](#formqueryparamsobject) * [FormQueryParamsPrimitive](#formqueryparamsprimitive) @@ -201,7 +202,7 @@ func main() { ) - var duplicateParamRequest string = "Parks" + var duplicateParamRequest string = "string" ctx := context.Background() res, err := s.Parameters.DuplicateParam(ctx, duplicateParamRequest) @@ -288,6 +289,67 @@ func main() { **[*operations.FormQueryParamsArrayResponse](../../models/operations/formqueryparamsarrayresponse.md), error** +## FormQueryParamsCamelObject + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" + "openapi/pkg/models/operations" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + + objParamExploded := operations.FormQueryParamsCamelObjectObjParamExploded{ + ItemCount: openapi.String("10"), + SearchTerm: openapi.String("foo"), + } + + objParam := &operations.FormQueryParamsCamelObjectObjParam{ + EncodedCount: openapi.String("11"), + EncodedTerm: openapi.String("bar"), + } + + ctx := context.Background() + res, err := s.Parameters.FormQueryParamsCamelObject(ctx, objParamExploded, objParam) + if err != nil { + log.Fatal(err) + } + + if res.Res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `objParamExploded` | [operations.FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [*operations.FormQueryParamsCamelObjectObjParam](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[*operations.FormQueryParamsCamelObjectResponse](../../models/operations/formqueryparamscamelobjectresponse.md), error** + + ## FormQueryParamsMap ### Example Usage @@ -645,13 +707,13 @@ func main() { xHeaderMap := map[string]string{ - "key2": "value2", "key1": "value1", + "key2": "value2", } xHeaderMapExplode := map[string]string{ - "test1": "val1", "test2": "val2", + "test1": "val1", } ctx := context.Background() diff --git a/go-client-sdk/docs/sdks/requestbodies/README.md b/go-client-sdk/docs/sdks/requestbodies/README.md index 76330dedc..888fc1624 100755 --- a/go-client-sdk/docs/sdks/requestbodies/README.md +++ b/go-client-sdk/docs/sdks/requestbodies/README.md @@ -754,7 +754,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONArrayOfArrayOfPrimitive(ctx, [][]string{ []string{ - "yellow", + "string", }, }) if err != nil { @@ -809,7 +809,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONArrayOfMap(ctx, []map[string]shared.SimpleObject{ map[string]shared.SimpleObject{ - "Southeast": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -882,7 +882,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONArrayOfMapCamelCase(ctx, []map[string]shared.SimpleObjectCamelCase{ map[string]shared.SimpleObjectCamelCase{ - "culpa": shared.SimpleObjectCamelCase{ + "key": shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), BoolVal: true, @@ -951,7 +951,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONArrayOfPrimitive(ctx, []string{ - "bit", + "string", }) if err != nil { log.Fatal(err) @@ -1227,7 +1227,7 @@ func main() { BoolVal: false, IntVal: 962909, MapVal: map[string]shared.SimpleObjectCamelCase{ - "Table": shared.SimpleObjectCamelCase{ + "key": shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), BoolVal: true, @@ -1246,7 +1246,7 @@ func main() { StrVal: "example", }, }, - NumVal: 9420.92, + NumVal: 2064.4, ObjVal: shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), @@ -1265,7 +1265,7 @@ func main() { StrOptVal: openapi.String("optional example"), StrVal: "example", }, - StrVal: "Diesel", + StrVal: "string", }) if err != nil { log.Fatal(err) @@ -1317,7 +1317,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMap(ctx, map[string]shared.SimpleObject{ - "Bentley": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -1388,7 +1388,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapCamelCase(ctx, map[string]shared.SimpleObjectCamelCase{ - "archive": shared.SimpleObjectCamelCase{ + "key": shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), BoolVal: true, @@ -1458,7 +1458,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapObj(ctx, map[string]shared.SimpleObject{ - "larder": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -1528,7 +1528,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapObjCamelCase(ctx, map[string]shared.SimpleObjectCamelCase{ - "female": shared.SimpleObjectCamelCase{ + "key": shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), BoolVal: true, @@ -1597,7 +1597,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapOfArray(ctx, map[string][]shared.SimpleObject{ - "Loan": []shared.SimpleObject{ + "key": []shared.SimpleObject{ shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), @@ -1670,7 +1670,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapOfArrayCamelCase(ctx, map[string][]shared.SimpleObjectCamelCase{ - "nonstop": []shared.SimpleObjectCamelCase{ + "key": []shared.SimpleObjectCamelCase{ shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), @@ -1742,8 +1742,8 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapOfMap(ctx, map[string]map[string]shared.SimpleObject{ - "Senior": map[string]shared.SimpleObject{ - "vice": shared.SimpleObject{ + "key": map[string]shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -1815,8 +1815,8 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapOfMapCamelCase(ctx, map[string]map[string]shared.SimpleObjectCamelCase{ - "Home": map[string]shared.SimpleObjectCamelCase{ - "plum": shared.SimpleObjectCamelCase{ + "key": map[string]shared.SimpleObjectCamelCase{ + "key": shared.SimpleObjectCamelCase{ AnyVal: "any example", BoolOptVal: openapi.Bool(true), BoolVal: true, @@ -1885,8 +1885,8 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapOfMapOfPrimitive(ctx, map[string]map[string]string{ - "turquoise": map[string]string{ - "collaboration": "Officer", + "key": map[string]string{ + "key": "string", }, }) if err != nil { @@ -1938,7 +1938,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostApplicationJSONMapOfPrimitive(ctx, map[string]string{ - "equally": "whereas", + "key": "string", }) if err != nil { log.Fatal(err) @@ -2272,9 +2272,9 @@ func main() { ConstEnumStr: shared.DefaultsAndConstsConstEnumStrTwo, ConstInt: 450379, ConstNum: 7742.71, - ConstStr: "payment", - ConstStrNull: "green", - NormalField: "Dong Dysprosium", + ConstStr: "string", + ConstStrNull: "string", + NormalField: "string", }) if err != nil { log.Fatal(err) @@ -2445,7 +2445,7 @@ func main() { Bool: true, Int: 1, Map: map[string]shared.SimpleObject{ - "key2": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -2465,7 +2465,7 @@ func main() { Str: "test", StrOpt: openapi.String("testOptional"), }, - "key": shared.SimpleObject{ + "key2": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -2557,7 +2557,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostFormMapPrimitive(ctx, map[string]string{ - "complexity": "SUV", + "key": "string", }) if err != nil { log.Fatal(err) @@ -3306,7 +3306,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostJSONDataTypesMapBigIntStr(ctx, map[string]*big.Int{ - "Nepal": big.NewInt(124728), + "key": big.NewInt(42384), }) if err != nil { log.Fatal(err) @@ -3356,7 +3356,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostJSONDataTypesMapDateTime(ctx, map[string]time.Time{ - "quantify": types.MustTimeFromString("2022-02-12T21:23:09.538Z"), + "key": types.MustTimeFromString("2022-09-03T18:52:14.477Z"), }) if err != nil { log.Fatal(err) @@ -3406,7 +3406,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostJSONDataTypesMapDecimal(ctx, map[string]*decimal.Big{ - "Inverse": types.MustNewDecimalFromString("9134.24"), + "key": types.MustNewDecimalFromString("3472.82"), }) if err != nil { log.Fatal(err) @@ -3503,7 +3503,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBodies.RequestBodyPostJSONDataTypesString(ctx, "Gasoline") + res, err := s.RequestBodies.RequestBodyPostJSONDataTypesString(ctx, "string") if err != nil { log.Fatal(err) } @@ -3624,7 +3624,7 @@ func main() { res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesInlineFiltered(ctx, operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON{ Bool: false, Num: 3558.41, - Str: "South expiate aha", + Str: "string", }) if err != nil { log.Fatal(err) @@ -3677,10 +3677,10 @@ func main() { requestBody := operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded{ Bool3: false, Num3: 8693.24, - Str3: "Compatible", + Str3: "string", } - var paramStr string = "Architect" + var paramStr string = "string" ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamForm(ctx, requestBody, paramStr) @@ -3736,10 +3736,10 @@ func main() { requestBody := operations.RequestBodyPostMultipleContentTypesSplitParamApplicationJSON{ Bool: false, Num: 9771.91, - Str: "South networks", + Str: "string", } - var paramStr string = "Brand" + var paramStr string = "string" ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamJSON(ctx, requestBody, paramStr) @@ -3795,10 +3795,10 @@ func main() { requestBody := operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData{ Bool2: false, Num2: 7000.76, - Str2: "Ball Southwest", + Str2: "string", } - var paramStr string = "Ergonomic" + var paramStr string = "string" ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesSplitParamMultipart(ctx, requestBody, paramStr) @@ -3854,7 +3854,7 @@ func main() { res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesSplitForm(ctx, operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded{ Bool3: false, Num3: 7842.07, - Str3: "Cab encryption SMTP", + Str3: "string", }) if err != nil { log.Fatal(err) @@ -3907,7 +3907,7 @@ func main() { res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesSplitJSON(ctx, operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON{ Bool: false, Num: 2445.56, - Str: "hew frictionless Hybrid", + Str: "string", }) if err != nil { log.Fatal(err) @@ -3960,7 +3960,7 @@ func main() { res, err := s.RequestBodies.RequestBodyPostMultipleContentTypesSplitMultipart(ctx, operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData{ Bool2: false, Num2: 2079.2, - Str2: "cyan", + Str2: "string", }) if err != nil { log.Fatal(err) @@ -4009,7 +4009,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBodies.RequestBodyPostNotNullableNotRequiredStringBody(ctx, &"Chicken") + res, err := s.RequestBodies.RequestBodyPostNotNullableNotRequiredStringBody(ctx, &"string") if err != nil { log.Fatal(err) } @@ -4058,7 +4058,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostNullArray(ctx, []string{ - "simple", + "string", }) if err != nil { log.Fatal(err) @@ -4108,7 +4108,7 @@ func main() { ctx := context.Background() res, err := s.RequestBodies.RequestBodyPostNullDictionary(ctx, map[string]string{ - "Intersex": "robust", + "key": "string", }) if err != nil { log.Fatal(err) @@ -4157,7 +4157,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBodies.RequestBodyPostNullableNotRequiredStringBody(ctx, &"Michigan") + res, err := s.RequestBodies.RequestBodyPostNullableNotRequiredStringBody(ctx, &"string") if err != nil { log.Fatal(err) } @@ -4205,7 +4205,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBodies.RequestBodyPostNullableRequiredStringBody(ctx, &"Mouse") + res, err := s.RequestBodies.RequestBodyPostNullableRequiredStringBody(ctx, &"string") if err != nil { log.Fatal(err) } @@ -4303,7 +4303,7 @@ func main() { var requestBody []byte = []byte("o%jIWe4_P6") - var queryStringParam string = "Huntington" + var queryStringParam string = "string" ctx := context.Background() res, err := s.RequestBodies.RequestBodyPutBytesWithParams(ctx, requestBody, queryStringParam) @@ -4540,7 +4540,7 @@ func main() { res, err := s.RequestBodies.RequestBodyPutMultipartDifferentFileName(ctx, operations.RequestBodyPutMultipartDifferentFileNameRequestBody{ DifferentFileName: &operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName{ Content: []byte("Y}'H[5/Z[,"), - DifferentFileName: "West Tunisian", + DifferentFileName: "string", }, }) if err != nil { @@ -4594,7 +4594,7 @@ func main() { res, err := s.RequestBodies.RequestBodyPutMultipartFile(ctx, operations.RequestBodyPutMultipartFileRequestBody{ File: &operations.RequestBodyPutMultipartFileRequestBodyFile{ Content: []byte("OJa,v`.FW-"), - File: "bandwidth Sedan", + File: "string", }, }) if err != nil { @@ -4713,7 +4713,7 @@ func main() { ) ctx := context.Background() - res, err := s.RequestBodies.RequestBodyPutString(ctx, "meh") + res, err := s.RequestBodies.RequestBodyPutString(ctx, "string") if err != nil { log.Fatal(err) } @@ -4761,9 +4761,9 @@ func main() { ) - var requestBody string = "SMTP" + var requestBody string = "string" - var queryStringParam string = "Unbranded" + var queryStringParam string = "string" ctx := context.Background() res, err := s.RequestBodies.RequestBodyPutStringWithParams(ctx, requestBody, queryStringParam) @@ -5049,7 +5049,7 @@ func main() { res, err := s.RequestBodies.RequestBodyWriteOnly(ctx, shared.WriteOnlyObject{ Bool: false, Num: 3888.42, - String: "Herminio", + String: "string", }) if err != nil { log.Fatal(err) @@ -5102,7 +5102,7 @@ func main() { res, err := s.RequestBodies.RequestBodyWriteOnlyOutput(ctx, shared.WriteOnlyObject{ Bool: false, Num: 3867.69, - String: "quas", + String: "string", }) if err != nil { log.Fatal(err) @@ -5158,7 +5158,7 @@ func main() { shared.WriteOnlyObject{ Bool: false, Num: 3823.36, - String: "Internal", + String: "string", }, )) if err != nil { diff --git a/go-client-sdk/docs/sdks/resource/README.md b/go-client-sdk/docs/sdks/resource/README.md index 0d0124bdb..f3d334455 100755 --- a/go-client-sdk/docs/sdks/resource/README.md +++ b/go-client-sdk/docs/sdks/resource/README.md @@ -37,7 +37,7 @@ func main() { res, err := s.Resource.CreateFile(ctx, operations.CreateFileRequestBody{ File: &operations.CreateFileRequestBodyFile{ Content: []byte("`'$Z`(L/RH"), - File: "Rap National", + File: "string", }, }) if err != nil { @@ -92,26 +92,28 @@ func main() { 1867.47, }, ArrayOfString: []string{ - "Sodium", + "string", }, Chocolates: []shared.ExampleResourceChocolates{ shared.ExampleResourceChocolates{ - Description: "Cross-group didactic system engine", + Description: "Re-engineered asynchronous array", }, }, ID: "", MapOfInteger: map[string]int64{ - "Pula": 173199, + "key": 271791, }, MapOfString: map[string]string{ - "an": "South", + "key": "string", }, - Name: "Cotton", - Vehicle: shared.CreateExampleVehicleExampleBoat( - shared.ExampleBoat{ - Length: 3287.82, - Name: "San South Quality", - Type: shared.ExampleBoatTypeBoat, + Name: "string", + Vehicle: shared.CreateExampleVehicleExampleCar( + shared.ExampleCar{ + Make: "string", + Model: "PT Cruiser", + Name: "string", + Type: shared.ExampleCarTypeCar, + Year: 1259.83, }, ), }) @@ -162,7 +164,7 @@ func main() { ) - var resourceID string = "Reggae" + var resourceID string = "string" ctx := context.Background() res, err := s.Resource.DeleteResource(ctx, resourceID) @@ -213,7 +215,7 @@ func main() { ) - var resourceID string = "Home" + var resourceID string = "string" ctx := context.Background() res, err := s.Resource.GetResource(ctx, resourceID) @@ -264,7 +266,7 @@ func main() { ) - var resourceID string = "International" + var resourceID string = "string" ctx := context.Background() res, err := s.Resource.UpdateResource(ctx, resourceID) diff --git a/go-client-sdk/docs/sdks/responsebodies/README.md b/go-client-sdk/docs/sdks/responsebodies/README.md index ba319e409..a12532334 100755 --- a/go-client-sdk/docs/sdks/responsebodies/README.md +++ b/go-client-sdk/docs/sdks/responsebodies/README.md @@ -9,6 +9,7 @@ Endpoints for testing response bodies. * [ResponseBodyAdditionalPropertiesComplexNumbersPost](#responsebodyadditionalpropertiescomplexnumberspost) * [ResponseBodyAdditionalPropertiesDatePost](#responsebodyadditionalpropertiesdatepost) +* [ResponseBodyAdditionalPropertiesObjectPost](#responsebodyadditionalpropertiesobjectpost) * [ResponseBodyAdditionalPropertiesPost](#responsebodyadditionalpropertiespost) * [ResponseBodyBytesGet](#responsebodybytesget) * [ResponseBodyEmptyWithHeaders](#responsebodyemptywithheaders) @@ -43,11 +44,11 @@ func main() { ) ctx := context.Background() - res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesComplexNumbersPost(ctx, shared.ObjWithComplexNumbersAdditionlProperties{ + res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesComplexNumbersPost(ctx, shared.ObjWithComplexNumbersAdditionalProperties{ AdditionalProperties: map[string]*big.Int{ - "ASCII": big.NewInt(984700), + "key": big.NewInt(468801), }, - NormalField: "drink commodi voluptatibus", + NormalField: "string", }) if err != nil { log.Fatal(err) @@ -61,10 +62,10 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [shared.ObjWithComplexNumbersAdditionlProperties](../../models/shared/objwithcomplexnumbersadditionlproperties.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.ObjWithComplexNumbersAdditionalProperties](../../models/shared/objwithcomplexnumbersadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -97,11 +98,11 @@ func main() { ) ctx := context.Background() - res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesDatePost(ctx, shared.ObjWithDateAdditionlProperties{ + res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesDatePost(ctx, shared.ObjWithDateAdditionalProperties{ AdditionalProperties: map[string]types.Date{ - "Bedfordshire": types.MustDateFromString("2021-04-22"), + "key": types.MustDateFromString("2021-03-16"), }, - NormalField: "possimus schemas capacitor", + NormalField: "string", }) if err != nil { log.Fatal(err) @@ -115,15 +116,92 @@ func main() { ### Parameters +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.ObjWithDateAdditionalProperties](../../models/shared/objwithdateadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/responsebodyadditionalpropertiesdatepostresponse.md), error** + + +## ResponseBodyAdditionalPropertiesObjectPost + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" + "math/big" + "openapi/pkg/types" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + ctx := context.Background() + res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesObjectPost(ctx, shared.ObjWithObjAdditionalProperties{ + AdditionalProperties: []int64{ + 617205, + }, + AdditionalPropertiesT: map[string]shared.SimpleObject{ + "key": shared.SimpleObject{ + Any: "any", + Bigint: big.NewInt(8821239038968084), + BigintStr: types.MustNewBigIntFromString("9223372036854775808"), + Bool: true, + BoolOpt: openapi.Bool(true), + Date: types.MustDateFromString("2020-01-01"), + DateTime: types.MustTimeFromString("2020-01-01T00:00:00.000000001Z"), + Decimal: types.MustNewDecimalFromString("3.141592653589793"), + DecimalStr: types.MustNewDecimalFromString("3.14159265358979344719667586"), + Enum: shared.EnumOne, + Float32: 1.1, + Int: 1, + Int32: 1, + Int32Enum: shared.SimpleObjectInt32EnumFiftyFive, + IntEnum: shared.SimpleObjectIntEnumSecond, + Num: 1.1, + Str: "test", + StrOpt: openapi.String("testOptional"), + }, + }, + Datetime: types.MustTimeFromString("2022-03-22T01:00:55.017Z"), + }) + if err != nil { + log.Fatal(err) + } + + if res.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject != nil { + // handle response + } +} +``` + +### Parameters + | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [shared.ObjWithDateAdditionlProperties](../../models/shared/objwithdateadditionlproperties.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [shared.ObjWithObjAdditionalProperties](../../models/shared/objwithobjadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[*operations.ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/responsebodyadditionalpropertiesdatepostresponse.md), error** +**[*operations.ResponseBodyAdditionalPropertiesObjectPostResponse](../../models/operations/responsebodyadditionalpropertiesobjectpostresponse.md), error** ## ResponseBodyAdditionalPropertiesPost @@ -150,11 +228,11 @@ func main() { ) ctx := context.Background() - res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesPost(ctx, shared.ObjWithStringAdditionlProperties{ + res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesPost(ctx, shared.ObjWithStringAdditionalProperties{ AdditionalProperties: map[string]string{ - "Ergonomic": "Carolina", + "key": "string", }, - NormalField: "male South Iraq", + NormalField: "string", }) if err != nil { log.Fatal(err) @@ -168,10 +246,10 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [shared.ObjWithStringAdditionlProperties](../../models/shared/objwithstringadditionlproperties.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [shared.ObjWithStringAdditionalProperties](../../models/shared/objwithstringadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -252,7 +330,7 @@ func main() { var xNumberHeader float64 = 1751.8 - var xStringHeader string = "Tigard" + var xStringHeader string = "string" ctx := context.Background() res, err := s.ResponseBodies.ResponseBodyEmptyWithHeaders(ctx, xNumberHeader, xStringHeader) diff --git a/go-client-sdk/docs/sdks/retries/README.md b/go-client-sdk/docs/sdks/retries/README.md index 9ea22f1a9..f00957199 100755 --- a/go-client-sdk/docs/sdks/retries/README.md +++ b/go-client-sdk/docs/sdks/retries/README.md @@ -33,9 +33,9 @@ func main() { ) - var requestID string = "Cambridgeshire" + var requestID string = "string" - var numRetries *int64 = 496130 + var numRetries *int64 = 75342 ctx := context.Background() res, err := s.Retries.RetriesGet(ctx, requestID, numRetries) diff --git a/go-client-sdk/docs/sdks/sdk/README.md b/go-client-sdk/docs/sdks/sdk/README.md index 7cb8faec8..b70dfa85d 100755 --- a/go-client-sdk/docs/sdks/sdk/README.md +++ b/go-client-sdk/docs/sdks/sdk/README.md @@ -37,7 +37,7 @@ func main() { ) ctx := context.Background() - res, err := s.SDK.PutAnythingIgnoredGeneration(ctx, "bus") + res, err := s.SDK.PutAnythingIgnoredGeneration(ctx, "string") if err != nil { log.Fatal(err) } diff --git a/go-client-sdk/docs/sdks/telemetry/README.md b/go-client-sdk/docs/sdks/telemetry/README.md index a0e143a5f..374f58523 100755 --- a/go-client-sdk/docs/sdks/telemetry/README.md +++ b/go-client-sdk/docs/sdks/telemetry/README.md @@ -34,7 +34,7 @@ func main() { ) - var userAgent string = "Bentley" + var userAgent string = "string" ctx := context.Background() res, err := s.Telemetry.TelemetrySpeakeasyUserAgentGet(ctx, userAgent) diff --git a/go-client-sdk/docs/sdks/unions/README.md b/go-client-sdk/docs/sdks/unions/README.md index 2b4d54d11..98b96a068 100755 --- a/go-client-sdk/docs/sdks/unions/README.md +++ b/go-client-sdk/docs/sdks/unions/README.md @@ -17,6 +17,8 @@ Endpoints for testing union types. * [StronglyTypedOneOfPost](#stronglytypedoneofpost) * [TypedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [TypedObjectOneOfPost](#typedobjectoneofpost) +* [UnionDateNull](#uniondatenull) +* [UnionDateTimeNull](#uniondatetimenull) * [WeaklyTypedOneOfPost](#weaklytypedoneofpost) ## FlattenedTypedObjectPost @@ -46,7 +48,7 @@ func main() { res, err := s.Unions.FlattenedTypedObjectPost(ctx, shared.CreateFlattenedTypedObject1TypedObject1( shared.TypedObject1{ Type: shared.TypedObject1TypeObj1, - Value: "farad Rustic", + Value: "string", }, )) if err != nil { @@ -152,18 +154,18 @@ func main() { res, err := s.Unions.NullableOneOfRefInObjectPost(ctx, shared.NullableOneOfRefInObject{ NullableOneOfOne: &shared.TypedObject1{ Type: shared.TypedObject1TypeObj1, - Value: "Global Alexandria administration", + Value: "string", }, - NullableOneOfTwo: shared.CreateNullableOneOfRefInObjectNullableOneOfTwoTypedObject1( - shared.TypedObject1{ - Type: shared.TypedObject1TypeObj1, - Value: "nor", + NullableOneOfTwo: shared.CreateNullableOneOfRefInObjectNullableOneOfTwoTypedObject2( + shared.TypedObject2{ + Type: shared.TypedObject2TypeObj2, + Value: "string", }, ), OneOfOne: shared.CreateNullableOneOfRefInObjectOneOfOneTypedObject1( shared.TypedObject1{ Type: shared.TypedObject1TypeObj1, - Value: "Berkshire after", + Value: "string", }, ), }) @@ -218,7 +220,7 @@ func main() { res, err := s.Unions.NullableOneOfSchemaPost(ctx, &operations.CreateNullableOneOfSchemaPostRequestBodyTypedObject2( shared.TypedObject2{ Type: shared.TypedObject2TypeObj2, - Value: "sob", + Value: "string", }, )) if err != nil { @@ -324,7 +326,7 @@ func main() { ctx := context.Background() res, err := s.Unions.NullableTypedObjectPost(ctx, &shared.TypedObject1{ Type: shared.TypedObject1TypeObj1, - Value: "Bike", + Value: "string", }) if err != nil { log.Fatal(err) @@ -375,7 +377,7 @@ func main() { ctx := context.Background() res, err := s.Unions.PrimitiveTypeOneOfPost(ctx, operations.CreatePrimitiveTypeOneOfPostRequestBodyStr( - "Account", + "string", )) if err != nil { log.Fatal(err) @@ -495,7 +497,7 @@ func main() { Bool: true, Int: 1, Map: map[string]shared.SimpleObject{ - "key": shared.SimpleObject{ + "key2": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -515,7 +517,7 @@ func main() { Str: "test", StrOpt: openapi.String("testOptional"), }, - "key2": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -610,7 +612,7 @@ func main() { res, err := s.Unions.TypedObjectNullableOneOfPost(ctx, &shared.CreateTypedObjectNullableOneOfTypedObject2( shared.TypedObject2{ Type: shared.TypedObject2TypeObj2, - Value: "DRAM", + Value: "string", }, )) if err != nil { @@ -663,7 +665,7 @@ func main() { res, err := s.Unions.TypedObjectOneOfPost(ctx, shared.CreateTypedObjectOneOfTypedObject3( shared.TypedObject3{ Type: shared.TypedObject3TypeObj3, - Value: "Buckinghamshire illo Automotive", + Value: "string", }, )) if err != nil { @@ -689,6 +691,102 @@ func main() { **[*operations.TypedObjectOneOfPostResponse](../../models/operations/typedobjectoneofpostresponse.md), error** +## UnionDateNull + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + ctx := context.Background() + res, err := s.Unions.UnionDateNull(ctx, &types.MustDateFromString("2022-11-25")) + if err != nil { + log.Fatal(err) + } + + if res.Res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [types.Date](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UnionDateNullResponse](../../models/operations/uniondatenullresponse.md), error** + + +## UnionDateTimeNull + +### Example Usage + +```go +package main + +import( + "context" + "log" + "openapi" + "openapi/pkg/models/shared" +) + +func main() { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + ctx := context.Background() + res, err := s.Unions.UnionDateTimeNull(ctx, &types.MustTimeFromString("2022-04-12T19:39:53.907Z")) + if err != nil { + log.Fatal(err) + } + + if res.Res != nil { + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [time.Time](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[*operations.UnionDateTimeNullResponse](../../models/operations/uniondatetimenullresponse.md), error** + + ## WeaklyTypedOneOfPost ### Example Usage diff --git a/go-client-sdk/files.gen b/go-client-sdk/files.gen index 0bec63f98..482ba65bc 100755 --- a/go-client-sdk/files.gen +++ b/go-client-sdk/files.gen @@ -93,6 +93,9 @@ pkg/models/operations/inlinebodyandparamnoconflict.go pkg/models/operations/anchortypesget.go pkg/models/operations/arraycircularreferenceget.go pkg/models/operations/circularreferenceget.go +pkg/models/operations/dateparamwithdefault.go +pkg/models/operations/datetimeparamwithdefault.go +pkg/models/operations/decimalparamwithdefault.go pkg/models/operations/deprecatedfieldinschemapost.go pkg/models/operations/deprecatedobjectinschemaget.go pkg/models/operations/deprecatedoperationnocommentsget.go @@ -123,6 +126,7 @@ pkg/models/operations/deepobjectqueryparamsmap.go pkg/models/operations/deepobjectqueryparamsobject.go pkg/models/operations/duplicateparam.go pkg/models/operations/formqueryparamsarray.go +pkg/models/operations/formqueryparamscamelobject.go pkg/models/operations/formqueryparamsmap.go pkg/models/operations/formqueryparamsobject.go pkg/models/operations/formqueryparamsprimitive.go @@ -229,6 +233,7 @@ pkg/models/operations/getresource.go pkg/models/operations/updateresource.go pkg/models/operations/responsebodyadditionalpropertiescomplexnumberspost.go pkg/models/operations/responsebodyadditionalpropertiesdatepost.go +pkg/models/operations/responsebodyadditionalpropertiesobjectpost.go pkg/models/operations/responsebodyadditionalpropertiespost.go pkg/models/operations/responsebodybytesget.go pkg/models/operations/responsebodyemptywithheaders.go @@ -257,6 +262,8 @@ pkg/models/operations/primitivetypeoneofpost.go pkg/models/operations/stronglytypedoneofpost.go pkg/models/operations/typedobjectnullableoneofpost.go pkg/models/operations/typedobjectoneofpost.go +pkg/models/operations/uniondatenull.go +pkg/models/operations/uniondatetimenull.go pkg/models/operations/weaklytypedoneofpost.go pkg/models/operations/putanythingignoredgeneration.go pkg/models/operations/responsebodyjsonget.go @@ -302,9 +309,10 @@ pkg/models/shared/exampleresource.go pkg/models/shared/examplevehicle.go pkg/models/shared/exampleboat.go pkg/models/shared/examplecar.go -pkg/models/shared/objwithcomplexnumbersadditionlproperties.go -pkg/models/shared/objwithdateadditionlproperties.go -pkg/models/shared/objwithstringadditionlproperties.go +pkg/models/shared/objwithcomplexnumbersadditionalproperties.go +pkg/models/shared/objwithdateadditionalproperties.go +pkg/models/shared/objwithobjadditionalproperties.go +pkg/models/shared/objwithstringadditionalproperties.go pkg/models/shared/typedobject1.go pkg/models/shared/objwithzerovaluecomplextypeptrs.go pkg/models/shared/flattenedtypedobject1.go @@ -323,6 +331,7 @@ pkg/models/shared/oneofgenerationstresstest.go pkg/models/shared/primitivetypeunion.go pkg/models/shared/unsupportedenums.go pkg/models/sdkerrors/error.go +pkg/models/sdkerrors/errortype.go pkg/models/sdkerrors/statusgetxspeakeasyerrors.go pkg/models/callbacks/ignoredgenerationget.go USAGE.md @@ -405,6 +414,13 @@ docs/models/operations/typefromanchor.md docs/models/operations/anchortypesgetresponse.md docs/models/operations/arraycircularreferencegetresponse.md docs/models/operations/circularreferencegetresponse.md +docs/types/date.md +docs/models/operations/dateparamwithdefaultrequest.md +docs/models/operations/dateparamwithdefaultresponse.md +docs/models/operations/datetimeparamwithdefaultrequest.md +docs/models/operations/datetimeparamwithdefaultresponse.md +docs/models/operations/decimalparamwithdefaultrequest.md +docs/models/operations/decimalparamwithdefaultresponse.md docs/models/operations/deprecatedfieldinschemapostresponse.md docs/models/operations/deprecatedobjectinschemaget200applicationjson.md docs/models/operations/deprecatedobjectinschemagetresponse.md @@ -430,7 +446,6 @@ docs/models/operations/nameoverridegetresponse.md docs/models/operations/objectcircularreferencegetresponse.md docs/models/operations/oneofcircularreferencegetresponse.md docs/models/operations/typedparametergenerationgetobj.md -docs/types/date.md docs/models/operations/typedparametergenerationgetrequest.md docs/models/operations/typedparametergenerationgetresponse.md docs/models/operations/usageexamplepostsecurity.md @@ -484,6 +499,12 @@ docs/models/operations/formqueryparamsarrayrequest.md docs/models/operations/formqueryparamsarrayresargs.md docs/models/operations/formqueryparamsarrayres.md docs/models/operations/formqueryparamsarrayresponse.md +docs/models/operations/formqueryparamscamelobjectobjparam.md +docs/models/operations/formqueryparamscamelobjectobjparamexploded.md +docs/models/operations/formqueryparamscamelobjectrequest.md +docs/models/operations/formqueryparamscamelobjectresargs.md +docs/models/operations/formqueryparamscamelobjectres.md +docs/models/operations/formqueryparamscamelobjectresponse.md docs/models/operations/formqueryparamsmaprequest.md docs/models/operations/formqueryparamsmapres.md docs/models/operations/formqueryparamsmapresponse.md @@ -732,6 +753,8 @@ docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200appl docs/models/operations/responsebodyadditionalpropertiescomplexnumberspostresponse.md docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiesdatepostresponse.md +docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md +docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiespostresponse.md docs/models/operations/responsebodybytesgetresponse.md @@ -784,6 +807,10 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/uniondatenullres.md +docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimenullres.md +docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md docs/models/operations/weaklytypedoneofpostresponse.md docs/models/operations/putanythingignoredgeneration200applicationjson.md @@ -860,9 +887,10 @@ docs/models/shared/exampleboattype.md docs/models/shared/exampleboat.md docs/models/shared/examplecartype.md docs/models/shared/examplecar.md -docs/models/shared/objwithcomplexnumbersadditionlproperties.md -docs/models/shared/objwithdateadditionlproperties.md -docs/models/shared/objwithstringadditionlproperties.md +docs/models/shared/objwithcomplexnumbersadditionalproperties.md +docs/models/shared/objwithdateadditionalproperties.md +docs/models/shared/objwithobjadditionalproperties.md +docs/models/shared/objwithstringadditionalproperties.md docs/models/shared/typedobject1type.md docs/models/shared/typedobject1.md docs/models/shared/objwithzerovaluecomplextypeptrs.md @@ -893,6 +921,7 @@ docs/models/shared/oneofgenerationstresstest.md docs/models/shared/primitivetypeunion.md docs/models/shared/unsupportedenums.md docs/models/errors/error.md +docs/models/errors/errortype.md docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md docs/models/callbacks/ignoredgenerationgetsingledignoredcallbackoperationresponse.md docs/models/callbacks/ignoredgenerationgetsingledignoredcallbackoperationrequestbody.md diff --git a/go-client-sdk/gen.yaml b/go-client-sdk/gen.yaml index 4474a5a27..8903d93c7 100755 --- a/go-client-sdk/gen.yaml +++ b/go-client-sdk/gen.yaml @@ -1,23 +1,24 @@ configVersion: 1.0.0 management: - docChecksum: d6c132f7bde6e79f0552a47119432f96 + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d docVersion: 0.1.0 - speakeasyVersion: 1.99.2 - generationVersion: 2.155.1 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git sdkClassName: SDK singleTagPerOp: false features: go: additionalProperties: 0.1.1 constsAndDefaults: 0.1.1 - core: 2.91.5 + core: 2.94.0 deprecations: 2.81.1 - docs: 0.3.3 - downloadStreams: 0.1.0 + docs: 0.3.4 + downloadStreams: 0.1.1 enums: 2.81.1 - errors: 2.81.5 - examples: 2.81.2 + errors: 2.81.7 + examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.82.2 globalServerURLs: 2.82.0 @@ -29,14 +30,17 @@ features: methodSecurity: 2.82.1 methodServerURLs: 2.82.0 nameOverrides: 2.81.1 - pagination: 2.81.1 + pagination: 2.81.2 retries: 2.82.1 serverIDs: 2.81.1 tests: 0.0.0 - unions: 2.83.1 + unions: 2.84.0 go: - version: 1.38.2 + version: 1.39.0 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true + installationURL: https://github.com/speakeasy-api/openapi-generation-tests/go-client-sdk maxMethodParams: 5 packageName: openapi + published: true + repoSubDirectory: go-client-sdk diff --git a/go-client-sdk/generation.go b/go-client-sdk/generation.go index 5889fcb1a..5fe73be56 100755 --- a/go-client-sdk/generation.go +++ b/go-client-sdk/generation.go @@ -16,6 +16,7 @@ import ( "openapi/pkg/types" "openapi/pkg/utils" "strings" + "time" ) // generation - Endpoints for purely testing valid generation behavior. @@ -200,6 +201,168 @@ func (s *generation) CircularReferenceGet(ctx context.Context) (*operations.Circ return res, nil } +func (s *generation) DateParamWithDefault(ctx context.Context, dateInput types.Date) (*operations.DateParamWithDefaultResponse, error) { + request := operations.DateParamWithDefaultRequest{ + DateInput: dateInput, + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/dateParamWithDefault" + + req, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, s.sdkConfiguration.Globals); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.DateParamWithDefaultResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 204: + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + +func (s *generation) DateTimeParamWithDefault(ctx context.Context, dateTimeInput time.Time) (*operations.DateTimeParamWithDefaultResponse, error) { + request := operations.DateTimeParamWithDefaultRequest{ + DateTimeInput: dateTimeInput, + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/dateTimeParamWithDefault" + + req, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, s.sdkConfiguration.Globals); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.DateTimeParamWithDefaultResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 204: + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + +func (s *generation) DecimalParamWithDefault(ctx context.Context, decimalInput *decimal.Big) (*operations.DecimalParamWithDefaultResponse, error) { + request := operations.DecimalParamWithDefaultRequest{ + DecimalInput: decimalInput, + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/decimalParamWithDefault" + + req, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "*/*") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, s.sdkConfiguration.Globals); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.DecimalParamWithDefaultResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 204: + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + func (s *generation) DeprecatedFieldInSchemaPost(ctx context.Context, request shared.DeprecatedFieldInObject) (*operations.DeprecatedFieldInSchemaPostResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/deprecatedFieldInSchema" diff --git a/go-client-sdk/parameters.go b/go-client-sdk/parameters.go index c9cd9c8be..d9974c45d 100755 --- a/go-client-sdk/parameters.go +++ b/go-client-sdk/parameters.go @@ -288,6 +288,72 @@ func (s *parameters) FormQueryParamsArray(ctx context.Context, arrParam []string return res, nil } +func (s *parameters) FormQueryParamsCamelObject(ctx context.Context, objParamExploded operations.FormQueryParamsCamelObjectObjParamExploded, objParam *operations.FormQueryParamsCamelObjectObjParam) (*operations.FormQueryParamsCamelObjectResponse, error) { + request := operations.FormQueryParamsCamelObjectRequest{ + ObjParamExploded: objParamExploded, + ObjParam: objParam, + } + + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/queryParams/form/camelObj" + + req, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + if err := utils.PopulateQueryParams(ctx, req, request, s.sdkConfiguration.Globals); err != nil { + return nil, fmt.Errorf("error populating query params: %w", err) + } + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.FormQueryParamsCamelObjectResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out operations.FormQueryParamsCamelObjectRes + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Res = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + func (s *parameters) FormQueryParamsMap(ctx context.Context, mapParam map[string]string, mapParamExploded map[string]int64) (*operations.FormQueryParamsMapResponse, error) { request := operations.FormQueryParamsMapRequest{ MapParam: mapParam, diff --git a/go-client-sdk/pkg/models/operations/dateparamwithdefault.go b/go-client-sdk/pkg/models/operations/dateparamwithdefault.go new file mode 100755 index 000000000..1e1c8cd7e --- /dev/null +++ b/go-client-sdk/pkg/models/operations/dateparamwithdefault.go @@ -0,0 +1,62 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" + "openapi/pkg/types" + "openapi/pkg/utils" +) + +type DateParamWithDefaultRequest struct { + // A date parameter with a default value + DateInput types.Date `default:"2023-10-13" queryParam:"style=form,explode=true,name=dateInput"` +} + +func (d DateParamWithDefaultRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DateParamWithDefaultRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DateParamWithDefaultRequest) GetDateInput() types.Date { + if o == nil { + return types.Date{} + } + return o.DateInput +} + +type DateParamWithDefaultResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *DateParamWithDefaultResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DateParamWithDefaultResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DateParamWithDefaultResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/go-client-sdk/pkg/models/operations/datetimeparamwithdefault.go b/go-client-sdk/pkg/models/operations/datetimeparamwithdefault.go new file mode 100755 index 000000000..bc4eb129d --- /dev/null +++ b/go-client-sdk/pkg/models/operations/datetimeparamwithdefault.go @@ -0,0 +1,62 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" + "openapi/pkg/utils" + "time" +) + +type DateTimeParamWithDefaultRequest struct { + // A date time parameter with a default value + DateTimeInput time.Time `default:"2023-10-13T12:42:42.999+00:00" queryParam:"style=form,explode=true,name=dateTimeInput"` +} + +func (d DateTimeParamWithDefaultRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DateTimeParamWithDefaultRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DateTimeParamWithDefaultRequest) GetDateTimeInput() time.Time { + if o == nil { + return time.Time{} + } + return o.DateTimeInput +} + +type DateTimeParamWithDefaultResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *DateTimeParamWithDefaultResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DateTimeParamWithDefaultResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DateTimeParamWithDefaultResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/go-client-sdk/pkg/models/operations/decimalparamwithdefault.go b/go-client-sdk/pkg/models/operations/decimalparamwithdefault.go new file mode 100755 index 000000000..aa0e99710 --- /dev/null +++ b/go-client-sdk/pkg/models/operations/decimalparamwithdefault.go @@ -0,0 +1,62 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "github.com/ericlagergren/decimal" + "net/http" + "openapi/pkg/utils" +) + +type DecimalParamWithDefaultRequest struct { + // A decimal parameter with a default value + DecimalInput *decimal.Big `default:"903275809834567386763" decimal:"number" queryParam:"style=form,explode=true,name=decimalInput"` +} + +func (d DecimalParamWithDefaultRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DecimalParamWithDefaultRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, false); err != nil { + return err + } + return nil +} + +func (o *DecimalParamWithDefaultRequest) GetDecimalInput() *decimal.Big { + if o == nil { + return new(decimal.Big).SetFloat64(0.0) + } + return o.DecimalInput +} + +type DecimalParamWithDefaultResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response +} + +func (o *DecimalParamWithDefaultResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *DecimalParamWithDefaultResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DecimalParamWithDefaultResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} diff --git a/go-client-sdk/pkg/models/operations/formqueryparamscamelobject.go b/go-client-sdk/pkg/models/operations/formqueryparamscamelobject.go new file mode 100755 index 000000000..01b639dc4 --- /dev/null +++ b/go-client-sdk/pkg/models/operations/formqueryparamscamelobject.go @@ -0,0 +1,142 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" +) + +type FormQueryParamsCamelObjectObjParam struct { + EncodedCount *string `queryParam:"name=encoded_count"` + EncodedTerm *string `queryParam:"name=encoded_term"` +} + +func (o *FormQueryParamsCamelObjectObjParam) GetEncodedCount() *string { + if o == nil { + return nil + } + return o.EncodedCount +} + +func (o *FormQueryParamsCamelObjectObjParam) GetEncodedTerm() *string { + if o == nil { + return nil + } + return o.EncodedTerm +} + +type FormQueryParamsCamelObjectObjParamExploded struct { + ItemCount *string `queryParam:"name=item_count"` + SearchTerm *string `queryParam:"name=search_term"` +} + +func (o *FormQueryParamsCamelObjectObjParamExploded) GetItemCount() *string { + if o == nil { + return nil + } + return o.ItemCount +} + +func (o *FormQueryParamsCamelObjectObjParamExploded) GetSearchTerm() *string { + if o == nil { + return nil + } + return o.SearchTerm +} + +type FormQueryParamsCamelObjectRequest struct { + ObjParamExploded FormQueryParamsCamelObjectObjParamExploded `queryParam:"style=form,explode=true,name=obj_param_exploded"` + ObjParam *FormQueryParamsCamelObjectObjParam `queryParam:"style=form,explode=false,name=obj_param"` +} + +func (o *FormQueryParamsCamelObjectRequest) GetObjParamExploded() FormQueryParamsCamelObjectObjParamExploded { + if o == nil { + return FormQueryParamsCamelObjectObjParamExploded{} + } + return o.ObjParamExploded +} + +func (o *FormQueryParamsCamelObjectRequest) GetObjParam() *FormQueryParamsCamelObjectObjParam { + if o == nil { + return nil + } + return o.ObjParam +} + +type FormQueryParamsCamelObjectResArgs struct { + ItemCount string `json:"item_count"` + SearchTerm string `json:"search_term"` +} + +func (o *FormQueryParamsCamelObjectResArgs) GetItemCount() string { + if o == nil { + return "" + } + return o.ItemCount +} + +func (o *FormQueryParamsCamelObjectResArgs) GetSearchTerm() string { + if o == nil { + return "" + } + return o.SearchTerm +} + +// FormQueryParamsCamelObjectRes - OK +type FormQueryParamsCamelObjectRes struct { + Args FormQueryParamsCamelObjectResArgs `json:"args"` + URL string `json:"url"` +} + +func (o *FormQueryParamsCamelObjectRes) GetArgs() FormQueryParamsCamelObjectResArgs { + if o == nil { + return FormQueryParamsCamelObjectResArgs{} + } + return o.Args +} + +func (o *FormQueryParamsCamelObjectRes) GetURL() string { + if o == nil { + return "" + } + return o.URL +} + +type FormQueryParamsCamelObjectResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // OK + Res *FormQueryParamsCamelObjectRes +} + +func (o *FormQueryParamsCamelObjectResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *FormQueryParamsCamelObjectResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *FormQueryParamsCamelObjectResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *FormQueryParamsCamelObjectResponse) GetRes() *FormQueryParamsCamelObjectRes { + if o == nil { + return nil + } + return o.Res +} diff --git a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiescomplexnumberspost.go b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiescomplexnumberspost.go index d7c090c13..0dec0fb78 100755 --- a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiescomplexnumberspost.go +++ b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiescomplexnumberspost.go @@ -9,12 +9,12 @@ import ( // ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON - OK type ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON struct { - JSON shared.ObjWithComplexNumbersAdditionlProperties `json:"json"` + JSON shared.ObjWithComplexNumbersAdditionalProperties `json:"json"` } -func (o *ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON) GetJSON() shared.ObjWithComplexNumbersAdditionlProperties { +func (o *ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON) GetJSON() shared.ObjWithComplexNumbersAdditionalProperties { if o == nil { - return shared.ObjWithComplexNumbersAdditionlProperties{} + return shared.ObjWithComplexNumbersAdditionalProperties{} } return o.JSON } diff --git a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesdatepost.go b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesdatepost.go index 93a60b3d1..dae9d91d9 100755 --- a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesdatepost.go +++ b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesdatepost.go @@ -9,12 +9,12 @@ import ( // ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON - OK type ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON struct { - JSON shared.ObjWithDateAdditionlProperties `json:"json"` + JSON shared.ObjWithDateAdditionalProperties `json:"json"` } -func (o *ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON) GetJSON() shared.ObjWithDateAdditionlProperties { +func (o *ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON) GetJSON() shared.ObjWithDateAdditionalProperties { if o == nil { - return shared.ObjWithDateAdditionlProperties{} + return shared.ObjWithDateAdditionalProperties{} } return o.JSON } diff --git a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesobjectpost.go b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesobjectpost.go new file mode 100755 index 000000000..45d0740a6 --- /dev/null +++ b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiesobjectpost.go @@ -0,0 +1,59 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" + "openapi/pkg/models/shared" +) + +// ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON - OK +type ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON struct { + JSON shared.ObjWithObjAdditionalProperties `json:"json"` +} + +func (o *ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON) GetJSON() shared.ObjWithObjAdditionalProperties { + if o == nil { + return shared.ObjWithObjAdditionalProperties{} + } + return o.JSON +} + +type ResponseBodyAdditionalPropertiesObjectPostResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // OK + ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject *ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON +} + +func (o *ResponseBodyAdditionalPropertiesObjectPostResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *ResponseBodyAdditionalPropertiesObjectPostResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *ResponseBodyAdditionalPropertiesObjectPostResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *ResponseBodyAdditionalPropertiesObjectPostResponse) GetResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject() *ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON { + if o == nil { + return nil + } + return o.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject +} diff --git a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiespost.go b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiespost.go index 594ed64de..236399b61 100755 --- a/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiespost.go +++ b/go-client-sdk/pkg/models/operations/responsebodyadditionalpropertiespost.go @@ -9,12 +9,12 @@ import ( // ResponseBodyAdditionalPropertiesPost200ApplicationJSON - OK type ResponseBodyAdditionalPropertiesPost200ApplicationJSON struct { - JSON shared.ObjWithStringAdditionlProperties `json:"json"` + JSON shared.ObjWithStringAdditionalProperties `json:"json"` } -func (o *ResponseBodyAdditionalPropertiesPost200ApplicationJSON) GetJSON() shared.ObjWithStringAdditionlProperties { +func (o *ResponseBodyAdditionalPropertiesPost200ApplicationJSON) GetJSON() shared.ObjWithStringAdditionalProperties { if o == nil { - return shared.ObjWithStringAdditionlProperties{} + return shared.ObjWithStringAdditionalProperties{} } return o.JSON } diff --git a/go-client-sdk/pkg/models/operations/uniondatenull.go b/go-client-sdk/pkg/models/operations/uniondatenull.go new file mode 100755 index 000000000..35f5b2638 --- /dev/null +++ b/go-client-sdk/pkg/models/operations/uniondatenull.go @@ -0,0 +1,71 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" + "openapi/pkg/types" + "openapi/pkg/utils" +) + +// UnionDateNullRes - OK +type UnionDateNullRes struct { + JSON *types.Date `json:"json"` +} + +func (u UnionDateNullRes) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UnionDateNullRes) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + return err + } + return nil +} + +func (o *UnionDateNullRes) GetJSON() *types.Date { + if o == nil { + return nil + } + return o.JSON +} + +type UnionDateNullResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // OK + Res *UnionDateNullRes +} + +func (o *UnionDateNullResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnionDateNullResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnionDateNullResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *UnionDateNullResponse) GetRes() *UnionDateNullRes { + if o == nil { + return nil + } + return o.Res +} diff --git a/go-client-sdk/pkg/models/operations/uniondatetimenull.go b/go-client-sdk/pkg/models/operations/uniondatetimenull.go new file mode 100755 index 000000000..8667f25dd --- /dev/null +++ b/go-client-sdk/pkg/models/operations/uniondatetimenull.go @@ -0,0 +1,71 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "net/http" + "openapi/pkg/utils" + "time" +) + +// UnionDateTimeNullRes - OK +type UnionDateTimeNullRes struct { + JSON *time.Time `json:"json"` +} + +func (u UnionDateTimeNullRes) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UnionDateTimeNullRes) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + return err + } + return nil +} + +func (o *UnionDateTimeNullRes) GetJSON() *time.Time { + if o == nil { + return nil + } + return o.JSON +} + +type UnionDateTimeNullResponse struct { + // HTTP response content type for this operation + ContentType string + // HTTP response status code for this operation + StatusCode int + // Raw HTTP response; suitable for custom response parsing + RawResponse *http.Response + // OK + Res *UnionDateTimeNullRes +} + +func (o *UnionDateTimeNullResponse) GetContentType() string { + if o == nil { + return "" + } + return o.ContentType +} + +func (o *UnionDateTimeNullResponse) GetStatusCode() int { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UnionDateTimeNullResponse) GetRawResponse() *http.Response { + if o == nil { + return nil + } + return o.RawResponse +} + +func (o *UnionDateTimeNullResponse) GetRes() *UnionDateTimeNullRes { + if o == nil { + return nil + } + return o.Res +} diff --git a/go-client-sdk/pkg/models/operations/usageexamplepost.go b/go-client-sdk/pkg/models/operations/usageexamplepost.go index 3380fc974..28ebbd5ea 100755 --- a/go-client-sdk/pkg/models/operations/usageexamplepost.go +++ b/go-client-sdk/pkg/models/operations/usageexamplepost.go @@ -141,6 +141,8 @@ type UsageExamplePostRequest struct { BoolParameter bool `queryParam:"style=form,explode=true,name=boolParameter"` // A date parameter DateParameter types.Date `queryParam:"style=form,explode=true,name=dateParameter"` + // A date time parameter with a default value + DateTimeDefaultParameter time.Time `queryParam:"style=form,explode=true,name=dateTimeDefaultParameter"` // A date time parameter DateTimeParameter time.Time `queryParam:"style=form,explode=true,name=dateTimeParameter"` // A decimal parameter @@ -231,6 +233,13 @@ func (o *UsageExamplePostRequest) GetDateParameter() types.Date { return o.DateParameter } +func (o *UsageExamplePostRequest) GetDateTimeDefaultParameter() time.Time { + if o == nil { + return time.Time{} + } + return o.DateTimeDefaultParameter +} + func (o *UsageExamplePostRequest) GetDateTimeParameter() time.Time { if o == nil { return time.Time{} diff --git a/go-client-sdk/pkg/models/sdkerrors/error.go b/go-client-sdk/pkg/models/sdkerrors/error.go index 558c9331f..25b2fdb43 100755 --- a/go-client-sdk/pkg/models/sdkerrors/error.go +++ b/go-client-sdk/pkg/models/sdkerrors/error.go @@ -3,8 +3,9 @@ package sdkerrors type Error struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` + Type *ErrorType `json:"type,omitempty"` } var _ error = &Error{} diff --git a/go-client-sdk/pkg/models/sdkerrors/errortype.go b/go-client-sdk/pkg/models/sdkerrors/errortype.go new file mode 100755 index 000000000..90c251c69 --- /dev/null +++ b/go-client-sdk/pkg/models/sdkerrors/errortype.go @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package sdkerrors + +import ( + "encoding/json" + "fmt" +) + +type ErrorType string + +const ( + ErrorTypeNotFound ErrorType = "not_found" + ErrorTypeInvalid ErrorType = "invalid" + ErrorTypeInternal ErrorType = "internal" +) + +func (e ErrorType) ToPointer() *ErrorType { + return &e +} + +func (e *ErrorType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "not_found": + fallthrough + case "invalid": + fallthrough + case "internal": + *e = ErrorType(v) + return nil + default: + return fmt.Errorf("invalid value for ErrorType: %v", v) + } +} diff --git a/go-client-sdk/pkg/models/sdkerrors/statusgetxspeakeasyerrors.go b/go-client-sdk/pkg/models/sdkerrors/statusgetxspeakeasyerrors.go index 3278b2376..6d1745600 100755 --- a/go-client-sdk/pkg/models/sdkerrors/statusgetxspeakeasyerrors.go +++ b/go-client-sdk/pkg/models/sdkerrors/statusgetxspeakeasyerrors.go @@ -13,6 +13,7 @@ type StatusGetXSpeakeasyErrors501ApplicationJSON struct { RawResponse *http.Response `json:"-"` Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` + Type *ErrorType `json:"type,omitempty"` } var _ error = &StatusGetXSpeakeasyErrors501ApplicationJSON{} diff --git a/go-client-sdk/pkg/models/shared/deepobject.go b/go-client-sdk/pkg/models/shared/deepobject.go index 2e0b6db57..c910e4e63 100755 --- a/go-client-sdk/pkg/models/shared/deepobject.go +++ b/go-client-sdk/pkg/models/shared/deepobject.go @@ -71,7 +71,7 @@ func (u DeepObjectAny) MarshalJSON() ([]byte, error) { } type DeepObject struct { - Any DeepObjectAny `json:"any" form:"name=any" multipartForm:"name=any"` + Any DeepObjectAny `json:"any" form:"name=any,json" multipartForm:"name=any,json"` Arr []SimpleObject `json:"arr" form:"name=arr,json" multipartForm:"name=arr,json"` Bool bool `json:"bool" form:"name=bool" multipartForm:"name=bool"` Int int64 `json:"int" form:"name=int" multipartForm:"name=int"` diff --git a/go-client-sdk/pkg/models/shared/objwithcomplexnumbersadditionlproperties.go b/go-client-sdk/pkg/models/shared/objwithcomplexnumbersadditionalproperties.go similarity index 58% rename from go-client-sdk/pkg/models/shared/objwithcomplexnumbersadditionlproperties.go rename to go-client-sdk/pkg/models/shared/objwithcomplexnumbersadditionalproperties.go index d56adef00..596d6c423 100755 --- a/go-client-sdk/pkg/models/shared/objwithcomplexnumbersadditionlproperties.go +++ b/go-client-sdk/pkg/models/shared/objwithcomplexnumbersadditionalproperties.go @@ -7,30 +7,30 @@ import ( "openapi/pkg/utils" ) -type ObjWithComplexNumbersAdditionlProperties struct { +type ObjWithComplexNumbersAdditionalProperties struct { AdditionalProperties map[string]*big.Int `additionalProperties:"true" bigint:"string" json:"-"` NormalField string `json:"normalField"` } -func (o ObjWithComplexNumbersAdditionlProperties) MarshalJSON() ([]byte, error) { +func (o ObjWithComplexNumbersAdditionalProperties) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(o, "", false) } -func (o *ObjWithComplexNumbersAdditionlProperties) UnmarshalJSON(data []byte) error { +func (o *ObjWithComplexNumbersAdditionalProperties) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { return err } return nil } -func (o *ObjWithComplexNumbersAdditionlProperties) GetAdditionalProperties() map[string]*big.Int { +func (o *ObjWithComplexNumbersAdditionalProperties) GetAdditionalProperties() map[string]*big.Int { if o == nil { return nil } return o.AdditionalProperties } -func (o *ObjWithComplexNumbersAdditionlProperties) GetNormalField() string { +func (o *ObjWithComplexNumbersAdditionalProperties) GetNormalField() string { if o == nil { return "" } diff --git a/go-client-sdk/pkg/models/shared/objwithdateadditionlproperties.go b/go-client-sdk/pkg/models/shared/objwithdateadditionalproperties.go similarity index 61% rename from go-client-sdk/pkg/models/shared/objwithdateadditionlproperties.go rename to go-client-sdk/pkg/models/shared/objwithdateadditionalproperties.go index f6675d4db..4e91e3edf 100755 --- a/go-client-sdk/pkg/models/shared/objwithdateadditionlproperties.go +++ b/go-client-sdk/pkg/models/shared/objwithdateadditionalproperties.go @@ -7,30 +7,30 @@ import ( "openapi/pkg/utils" ) -type ObjWithDateAdditionlProperties struct { +type ObjWithDateAdditionalProperties struct { AdditionalProperties map[string]types.Date `additionalProperties:"true" json:"-"` NormalField string `json:"normalField"` } -func (o ObjWithDateAdditionlProperties) MarshalJSON() ([]byte, error) { +func (o ObjWithDateAdditionalProperties) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(o, "", false) } -func (o *ObjWithDateAdditionlProperties) UnmarshalJSON(data []byte) error { +func (o *ObjWithDateAdditionalProperties) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { return err } return nil } -func (o *ObjWithDateAdditionlProperties) GetAdditionalProperties() map[string]types.Date { +func (o *ObjWithDateAdditionalProperties) GetAdditionalProperties() map[string]types.Date { if o == nil { return nil } return o.AdditionalProperties } -func (o *ObjWithDateAdditionlProperties) GetNormalField() string { +func (o *ObjWithDateAdditionalProperties) GetNormalField() string { if o == nil { return "" } diff --git a/go-client-sdk/pkg/models/shared/objwithobjadditionalproperties.go b/go-client-sdk/pkg/models/shared/objwithobjadditionalproperties.go new file mode 100755 index 000000000..c98e8588f --- /dev/null +++ b/go-client-sdk/pkg/models/shared/objwithobjadditionalproperties.go @@ -0,0 +1,46 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "openapi/pkg/utils" + "time" +) + +type ObjWithObjAdditionalProperties struct { + AdditionalProperties []int64 `json:"AdditionalProperties"` + AdditionalPropertiesT map[string]SimpleObject `additionalProperties:"true" json:"-"` + Datetime time.Time `json:"datetime"` +} + +func (o ObjWithObjAdditionalProperties) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *ObjWithObjAdditionalProperties) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { + return err + } + return nil +} + +func (o *ObjWithObjAdditionalProperties) GetAdditionalProperties() []int64 { + if o == nil { + return []int64{} + } + return o.AdditionalProperties +} + +func (o *ObjWithObjAdditionalProperties) GetAdditionalPropertiesT() map[string]SimpleObject { + if o == nil { + return nil + } + return o.AdditionalPropertiesT +} + +func (o *ObjWithObjAdditionalProperties) GetDatetime() time.Time { + if o == nil { + return time.Time{} + } + return o.Datetime +} diff --git a/go-client-sdk/pkg/models/shared/objwithstringadditionlproperties.go b/go-client-sdk/pkg/models/shared/objwithstringadditionalproperties.go similarity index 59% rename from go-client-sdk/pkg/models/shared/objwithstringadditionlproperties.go rename to go-client-sdk/pkg/models/shared/objwithstringadditionalproperties.go index e56eeeaec..2ecb198b5 100755 --- a/go-client-sdk/pkg/models/shared/objwithstringadditionlproperties.go +++ b/go-client-sdk/pkg/models/shared/objwithstringadditionalproperties.go @@ -6,30 +6,30 @@ import ( "openapi/pkg/utils" ) -type ObjWithStringAdditionlProperties struct { +type ObjWithStringAdditionalProperties struct { AdditionalProperties map[string]string `additionalProperties:"true" json:"-"` NormalField string `json:"normalField"` } -func (o ObjWithStringAdditionlProperties) MarshalJSON() ([]byte, error) { +func (o ObjWithStringAdditionalProperties) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(o, "", false) } -func (o *ObjWithStringAdditionlProperties) UnmarshalJSON(data []byte) error { +func (o *ObjWithStringAdditionalProperties) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { return err } return nil } -func (o *ObjWithStringAdditionlProperties) GetAdditionalProperties() map[string]string { +func (o *ObjWithStringAdditionalProperties) GetAdditionalProperties() map[string]string { if o == nil { return nil } return o.AdditionalProperties } -func (o *ObjWithStringAdditionlProperties) GetNormalField() string { +func (o *ObjWithStringAdditionalProperties) GetNormalField() string { if o == nil { return "" } diff --git a/go-client-sdk/responsebodies.go b/go-client-sdk/responsebodies.go index df6efc225..0711950c3 100755 --- a/go-client-sdk/responsebodies.go +++ b/go-client-sdk/responsebodies.go @@ -26,7 +26,7 @@ func newResponseBodies(sdkConfig sdkConfiguration) *responseBodies { } } -func (s *responseBodies) ResponseBodyAdditionalPropertiesComplexNumbersPost(ctx context.Context, request shared.ObjWithComplexNumbersAdditionlProperties) (*operations.ResponseBodyAdditionalPropertiesComplexNumbersPostResponse, error) { +func (s *responseBodies) ResponseBodyAdditionalPropertiesComplexNumbersPost(ctx context.Context, request shared.ObjWithComplexNumbersAdditionalProperties) (*operations.ResponseBodyAdditionalPropertiesComplexNumbersPostResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/responseBodies/additionalPropertiesComplexNumbers" @@ -93,7 +93,7 @@ func (s *responseBodies) ResponseBodyAdditionalPropertiesComplexNumbersPost(ctx return res, nil } -func (s *responseBodies) ResponseBodyAdditionalPropertiesDatePost(ctx context.Context, request shared.ObjWithDateAdditionlProperties) (*operations.ResponseBodyAdditionalPropertiesDatePostResponse, error) { +func (s *responseBodies) ResponseBodyAdditionalPropertiesDatePost(ctx context.Context, request shared.ObjWithDateAdditionalProperties) (*operations.ResponseBodyAdditionalPropertiesDatePostResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/responseBodies/additionalPropertiesDate" @@ -160,7 +160,74 @@ func (s *responseBodies) ResponseBodyAdditionalPropertiesDatePost(ctx context.Co return res, nil } -func (s *responseBodies) ResponseBodyAdditionalPropertiesPost(ctx context.Context, request shared.ObjWithStringAdditionlProperties) (*operations.ResponseBodyAdditionalPropertiesPostResponse, error) { +func (s *responseBodies) ResponseBodyAdditionalPropertiesObjectPost(ctx context.Context, request shared.ObjWithObjAdditionalProperties) (*operations.ResponseBodyAdditionalPropertiesObjectPostResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/responseBodies/additionalPropertiesObject" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + if bodyReader == nil { + return nil, fmt.Errorf("request body is required") + } + + req, err := http.NewRequestWithContext(ctx, "POST", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.ResponseBodyAdditionalPropertiesObjectPostResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + +func (s *responseBodies) ResponseBodyAdditionalPropertiesPost(ctx context.Context, request shared.ObjWithStringAdditionalProperties) (*operations.ResponseBodyAdditionalPropertiesPostResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/responseBodies/additionalProperties" diff --git a/go-client-sdk/sdk.go b/go-client-sdk/sdk.go index eca34554a..5d8e96d1e 100755 --- a/go-client-sdk/sdk.go +++ b/go-client-sdk/sdk.go @@ -301,9 +301,9 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.1.0", - SDKVersion: "1.38.2", - GenVersion: "2.155.1", - UserAgent: "speakeasy-sdk/go 1.38.2 2.155.1 0.1.0 openapi", + SDKVersion: "1.39.0", + GenVersion: "2.171.0", + UserAgent: "speakeasy-sdk/go 1.39.0 2.171.0 0.1.0 openapi", Globals: map[string]map[string]map[string]interface{}{ "parameters": {}, }, diff --git a/go-client-sdk/tests/parameters_test.go b/go-client-sdk/tests/parameters_test.go index 7998b1883..cd91f47a5 100755 --- a/go-client-sdk/tests/parameters_test.go +++ b/go-client-sdk/tests/parameters_test.go @@ -46,12 +46,6 @@ func TestParameters_DeepObjectQueryParamsMap(t *testing.T) { assert.Equal(t, 200, res.StatusCode) assert.Equal(t, map[string]operations.DeepObjectQueryParamsMapResArgs{ - "mapParam[test]": operations.CreateDeepObjectQueryParamsMapResArgsStr( - "value", - ), - "mapParam[test2]": operations.CreateDeepObjectQueryParamsMapResArgsStr( - "value2", - ), "mapArrParam[test]": operations.CreateDeepObjectQueryParamsMapResArgsArrayOfstr( []string{ "test", @@ -64,6 +58,12 @@ func TestParameters_DeepObjectQueryParamsMap(t *testing.T) { "test4", }, ), + "mapParam[test]": operations.CreateDeepObjectQueryParamsMapResArgsStr( + "value", + ), + "mapParam[test2]": operations.CreateDeepObjectQueryParamsMapResArgsStr( + "value2", + ), }, res.Res.Args) assert.Equal(t, "http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value", res.Res.URL) } @@ -169,6 +169,36 @@ func TestParameters_FormQueryParamsArray(t *testing.T) { assert.Equal(t, "http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2", res.Res.URL) } +func TestParameters_FormQueryParamsCamelObject(t *testing.T) { + s := openapi.New( + openapi.WithSecurity(shared.Security{ + APIKeyAuth: openapi.String("Token YOUR_API_KEY"), + }), + openapi.WithGlobalPathParam(100), + openapi.WithGlobalQueryParam("some example global query param"), + ) + + objParamExploded := operations.FormQueryParamsCamelObjectObjParamExploded{ + ItemCount: openapi.String("10"), + SearchTerm: openapi.String("foo"), + } + + objParam := &operations.FormQueryParamsCamelObjectObjParam{ + EncodedCount: openapi.String("11"), + EncodedTerm: openapi.String("bar"), + } + + ctx := context.Background() + res, err := s.Parameters.FormQueryParamsCamelObject(ctx, objParamExploded, objParam) + require.NoError(t, err) + require.NotNil(t, res) + + assert.Equal(t, 200, res.StatusCode) + assert.Equal(t, "10", res.Res.Args.ItemCount) + assert.Equal(t, "foo", res.Res.Args.SearchTerm) + assert.Equal(t, "http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo", res.Res.URL) +} + func TestParameters_FormQueryParamsMap(t *testing.T) { s := openapi.New( openapi.WithSecurity(shared.Security{ @@ -184,8 +214,8 @@ func TestParameters_FormQueryParamsMap(t *testing.T) { } mapParamExploded := map[string]int64{ - "test": 1, "test2": 2, + "test": 1, } ctx := context.Background() @@ -569,7 +599,7 @@ func TestParameters_JSONQueryParamsObject(t *testing.T) { Bool: true, Int: 1, Map: map[string]shared.SimpleObject{ - "key2": shared.SimpleObject{ + "key": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -589,7 +619,7 @@ func TestParameters_JSONQueryParamsObject(t *testing.T) { Str: "test", StrOpt: openapi.String("testOptional"), }, - "key": shared.SimpleObject{ + "key2": shared.SimpleObject{ Any: "any", Bigint: big.NewInt(8821239038968084), BigintStr: types.MustNewBigIntFromString("9223372036854775808"), @@ -797,43 +827,43 @@ func TestParameters_MixedQueryParams(t *testing.T) { assert.Equal(t, 200, res.StatusCode) assert.Equal(t, map[string]string{ - "deepObjectParam[any]": "any", - "deepObjectParam[date]": "2020-01-01", - "deepObjectParam[int32]": "1", + "deepObjectParam[boolOpt]": "true", "deepObjectParam[strOpt]": "testOptional", - "int32": "1", - "deepObjectParam[int]": "1", + "decimal": "3.141592653589793", + "enum": "one", + "num": "1.1", + "boolOpt": "true", + "deepObjectParam[bigintStr]": "9223372036854775808", + "deepObjectParam[float32]": "1.1", "deepObjectParam[decimalStr]": "3.14159265358979344719667586", - "int": "1", + "deepObjectParam[bool]": "true", + "deepObjectParam[int32]": "1", + "deepObjectParam[int]": "1", + "deepObjectParam[int32Enum]": "55", + "any": "any", "bigintStr": "9223372036854775808", "dateTime": "2020-01-01T00:00:00.000000001Z", - "deepObjectParam[bigintStr]": "9223372036854775808", - "decimalStr": "3.14159265358979344719667586", - "strOpt": "testOptional", - "date": "2020-01-01", - "enum": "one", - "jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", - "decimal": "3.141592653589793", - "deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z", - "deepObjectParam[enum]": "one", - "deepObjectParam[decimal]": "3.141592653589793", + "deepObjectParam[any]": "any", + "deepObjectParam[str]": "test", "float32": "1.1", - "any": "any", - "bigint": "8821239038968084", - "deepObjectParam[boolOpt]": "true", - "deepObjectParam[float32]": "1.1", - "num": "1.1", + "int32Enum": "55", "str": "test", - "boolOpt": "true", - "deepObjectParam[num]": "1.1", - "deepObjectParam[str]": "test", + "deepObjectParam[enum]": "one", + "deepObjectParam[decimal]": "3.141592653589793", "intEnum": "2", + "deepObjectParam[date]": "2020-01-01", + "strOpt": "testOptional", + "bigint": "8821239038968084", "bool": "true", "deepObjectParam[bigint]": "8821239038968084", - "deepObjectParam[bool]": "true", + "int": "1", + "date": "2020-01-01", "deepObjectParam[intEnum]": "2", - "deepObjectParam[int32Enum]": "55", - "int32Enum": "55", + "int32": "1", + "decimalStr": "3.14159265358979344719667586", + "deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z", + "deepObjectParam[num]": "1.1", + "jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", }, res.Res.Args) assert.Equal(t, "http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={\"any\"%3A\"any\"%2C\"bigint\"%3A8821239038968084%2C\"bigintStr\"%3A\"9223372036854775808\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"decimal\"%3A3.141592653589793%2C\"decimalStr\"%3A\"3.14159265358979344719667586\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}&num=1.1&str=test&strOpt=testOptional", res.Res.URL) } diff --git a/go-client-sdk/testsprimary/responsebodies_test.go b/go-client-sdk/testsprimary/responsebodies_test.go index ba0874435..8b53e2ae9 100755 --- a/go-client-sdk/testsprimary/responsebodies_test.go +++ b/go-client-sdk/testsprimary/responsebodies_test.go @@ -144,7 +144,7 @@ func TestResponseBodyAdditionalPropertiesPost(t *testing.T) { s := sdk.New() - req := shared.ObjWithStringAdditionlProperties{ + req := shared.ObjWithStringAdditionalProperties{ NormalField: "normal", AdditionalProperties: map[string]string{ "key1": "value1", @@ -163,7 +163,7 @@ func TestResponseBodyAdditionalPropertiesComplexNumbersPost(t *testing.T) { s := sdk.New() - req := shared.ObjWithComplexNumbersAdditionlProperties{ + req := shared.ObjWithComplexNumbersAdditionalProperties{ NormalField: "normal", AdditionalProperties: map[string]*big.Int{ "key1": big.NewInt(1), @@ -201,7 +201,7 @@ func TestResponseBodyAdditionalPropertiesDatePost(t *testing.T) { s := sdk.New() - req := shared.ObjWithDateAdditionlProperties{ + req := shared.ObjWithDateAdditionalProperties{ NormalField: "normal", AdditionalProperties: map[string]types.Date{ "key1": types.MustDateFromString("2020-01-01"), @@ -214,3 +214,23 @@ func TestResponseBodyAdditionalPropertiesDatePost(t *testing.T) { assert.Equal(t, http.StatusOK, res.StatusCode) assert.Equal(t, req, res.ResponseBodyAdditionalPropertiesDatePost200ApplicationJSONObject.JSON) } + +func TestResponseBodyAdditionalPropertiesObjectPost(t *testing.T) { + recordTest("response-bodies-additional-properties-object") + + s := sdk.New() + + req := shared.ObjWithObjAdditionalProperties{ + Datetime: time.Date(2020, 1, 1, 0, 0, 0, 1, time.UTC), + AdditionalProperties: []int64{1, 2, 3}, + AdditionalPropertiesT: map[string]shared.SimpleObject{ + "key1": createSimpleObject(), + }, + } + + res, err := s.ResponseBodies.ResponseBodyAdditionalPropertiesObjectPost(context.Background(), req) + require.NoError(t, err) + require.NotNil(t, res) + assert.Equal(t, http.StatusOK, res.StatusCode) + assert.Equal(t, req, res.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject.JSON) +} diff --git a/go-client-sdk/testsprimary/telemetry_test.go b/go-client-sdk/testsprimary/telemetry_test.go index af78ca2b2..42aa8aade 100755 --- a/go-client-sdk/testsprimary/telemetry_test.go +++ b/go-client-sdk/testsprimary/telemetry_test.go @@ -22,7 +22,7 @@ func TestTelemetryUserAgentGet(t *testing.T) { require.NoError(t, err) require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) - assert.Equal(t, "speakeasy-sdk/go 1.38.2 2.155.1 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.39.0 2.171.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) } func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { @@ -37,5 +37,5 @@ func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) assert.Equal(t, userAgent, res.Res.Headers["User-Agent"]) - assert.Equal(t, "speakeasy-sdk/go 1.38.2 2.155.1 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.39.0 2.171.0 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"]) } diff --git a/go-client-sdk/unions.go b/go-client-sdk/unions.go index c54f3f9c8..d8a192d89 100755 --- a/go-client-sdk/unions.go +++ b/go-client-sdk/unions.go @@ -11,8 +11,10 @@ import ( "openapi/pkg/models/operations" "openapi/pkg/models/sdkerrors" "openapi/pkg/models/shared" + "openapi/pkg/types" "openapi/pkg/utils" "strings" + "time" ) // unions - Endpoints for testing union types. @@ -696,6 +698,140 @@ func (s *unions) TypedObjectOneOfPost(ctx context.Context, request shared.TypedO return res, nil } +func (s *unions) UnionDateNull(ctx context.Context, request *types.Date) (*operations.UnionDateNullResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/unionDateNull" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + if bodyReader == nil { + return nil, fmt.Errorf("request body is required") + } + + req, err := http.NewRequestWithContext(ctx, "POST", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.UnionDateNullResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out operations.UnionDateNullRes + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Res = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + +func (s *unions) UnionDateTimeNull(ctx context.Context, request *time.Time) (*operations.UnionDateTimeNullResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/anything/unionDateTimeNull" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, true, false, "Request", "json", `request:"mediaType=application/json"`) + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + if bodyReader == nil { + return nil, fmt.Errorf("request body is required") + } + + req, err := http.NewRequestWithContext(ctx, "POST", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json") + req.Header.Set("x-speakeasy-user-agent", s.sdkConfiguration.UserAgent) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.UnionDateTimeNullResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out operations.UnionDateTimeNullRes + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { + return nil, err + } + + res.Res = &out + default: + return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes) + } + case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500: + fallthrough + case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600: + return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes) + } + + return res, nil +} + func (s *unions) WeaklyTypedOneOfPost(ctx context.Context, request shared.WeaklyTypedOneOfObject) (*operations.WeaklyTypedOneOfPostResponse, error) { baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) url := strings.TrimSuffix(baseURL, "/") + "/anything/weaklyTypedOneOf" diff --git a/java-client-sdk/README.md b/java-client-sdk/README.md index 8518f4aeb..7553997e6 100755 --- a/java-client-sdk/README.md +++ b/java-client-sdk/README.md @@ -6,7 +6,7 @@ ### Gradle ```groovy -implementation 'org.openapis.openapi:openapi:1.37.0' +implementation 'org.openapis.openapi:openapi:1.38.0' ``` @@ -73,82 +73,82 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - UsageExamplePostRequest req = new UsageExamplePostRequest(168827L, "Gasoline Sleek", false, LocalDate.parse("2021-04-23"), OffsetDateTime.parse("2022-09-13T20:44:04.193Z"), 1952.32d, "Shoes Brockton", 1062.86d, UsageExamplePostEnumParameter.VALUE1, 0d, 2346.82f, 5954.85d, 215216L, 834441, "example 2"){{ + UsageExamplePostRequest req = new UsageExamplePostRequest(168827L, "string", false, LocalDate.parse("2022-05-05"), OffsetDateTime.parse("2023-06-11T00:39:45.412Z"), OffsetDateTime.parse("2022-07-22T13:16:48.221Z"), 2679.33d, "string", 5223.72d, UsageExamplePostEnumParameter.VALUE1, 0d, 6946.59f, 2286.22d, 102975L, 566999, "example 1"){{ requestBody = new UsageExamplePostRequestBody(){{ fakerFormattedStrings = new FakerFormattedStrings(){{ - addressFormat = "279 Cassandra Club"; - directoryFormat = "/var/mail"; - domainFormat = "dizzy-geology.net"; - emailFormat = "Pierre49@yahoo.com"; - filenameFormat = "deposit_male_dram.mpg4"; - filepathFormat = "/srv/deeply_gloves_program.st"; + addressFormat = "2344 Aufderhar Corner"; + directoryFormat = "/etc/defaults"; + domainFormat = "fatal-cutting.name"; + emailFormat = "Roberta.Kemmer77@gmail.com"; + filenameFormat = "strategic_southwest_shirt.mp4v"; + filepathFormat = "/usr/local/bin/target.z4"; imageFormat = "https://loremflickr.com/640/480"; - ipv4Format = "101.207.63.27"; - ipv6Format = "64a2:58be:7e13:5866:7dac:95a0:1523:5912"; - jsonFormat = "{rate: 57509, underwire: null, cent: \"male Iodine\"}"; - macFormat = "02:f2:2d:15:6d:c5"; - passwordFormat = "9nF4NLa49gS71tG"; - phoneFormat = "1-891-918-2466"; - timezoneFormat = "Asia/Jakarta"; - unknownFormat = "Northeast Uzbekistan HDD"; - urlFormat = "http://sane-network.net"; - uuidFormat = "364b6b4a-48ad-4bb3-b96c-2e388ca7107f"; - zipcodeFormat = "87997-8268"; + ipv4Format = "116.31.181.178"; + ipv6Format = "73ac:9ee2:348d:76c3:164a:258b:e7e1:3586"; + jsonFormat = "{key: 42822, key1: null, key2: \"string\"}"; + macFormat = "7d:ac:95:a0:15:23"; + passwordFormat = "eWzdveK0sHokC9n"; + phoneFormat = "1-340-562-2122 x175"; + timezoneFormat = "Asia/Yekaterinburg"; + unknownFormat = "string"; + urlFormat = "https://wilted-cytoplasm.biz"; + uuidFormat = "e0f62de2-e2d4-47a9-bf10-0f753b9b364b"; + zipcodeFormat = "73625"; }}; fakerStrings = new FakerStrings(){{ - city = "Carolinafort"; - iban = "CY35007005052574022Q9F55000Q"; + city = "Schuppecester"; + iban = "NO0300631256004"; id = ""; - iPv4 = "128.213.29.233"; - iPv6 = "aa92:fb62:d7b0:075d:a754:8270:74e6:53f1"; - account = "10128020"; - address = "97181 Metz Trafficway"; - amount = "896.58"; + iPv4 = "251.251.208.201"; + iPv6 = "ffbd:3ad7:2b20:8b2c:8188:308b:b979:0237"; + account = "29659826"; + address = "2500 Ambrose Circles"; + amount = "89.73"; avatar = "https://loremflickr.com/640/480"; - color = "grey"; + color = "fuchsia"; comment = "Carbonite web goalkeeper gloves are ergonomically designed to give easy fit"; - company = "Gottlieb Inc"; - country = "Nicaragua"; - countryCode = "BO"; - currency = "Seychelles Rupee"; - datatype = "point"; - default_ = "as Rock"; - description = "Extended encompassing framework"; - directory = "/Users"; - domainName = "lumpy-sand.name"; - emailAddr = "Jayde_Stracke94@gmail.com"; + company = "Sipes - Buckridge"; + country = "Turkey"; + countryCode = "NF"; + currency = "Pakistan Rupee"; + datatype = "real"; + default_ = "string"; + description = "Customizable zero administration open system"; + directory = "/opt/sbin"; + domainName = "deep-stallion.info"; + emailAddr = "Alejandrin.Barrows@hotmail.com"; extension = "m1v"; - filename = "oof_plastic.gif"; - filepath = "/srv/yum.mrcx"; - filetype = "audio"; - firstName = "Lula"; - fullName = "Bonnie Nitzsche"; - gender = "Transmasculine"; - job = "Legacy Markets Orchestrator"; - json = "{housing: 65187, wine: null, planter: \"Lafayette array\"}"; + filename = "panel_deposit.png"; + filepath = "/media/executive_automotive_northeast.distz"; + filetype = "video"; + firstName = "Dejuan"; + fullName = "Mrs. Jose Franey"; + gender = "Trans female"; + job = "Direct Accountability Liaison"; + json = "{key: 88901, key1: null, key2: \"string\"}"; key = ""; - lastName = "Leannon"; - latitude = "-38.3898"; - locale = "ko"; - longitude = "179.7448"; - mac = "99:b2:4a:a3:1c:16"; - manufacturer = "Nissan"; - material = "Rubber"; - middleName = "Austin"; - model = "Model Y"; - password = "qIlrvZKw0C22gKb"; - phone = "1-646-984-1595 x907"; - pin = "4985"; - postalCode = "51983"; - price = "356.00"; - product = "Handcrafted Plastic Cheese"; + lastName = "Metz"; + latitude = "68.2232"; + locale = "uk"; + longitude = "-42.1384"; + mac = "a2:42:a1:bf:6e:19"; + manufacturer = "Aston Martin"; + material = "Concrete"; + middleName = "Finley"; + model = "Escalade"; + password = "_QiNrTzqbDz8AXY"; + phone = "469-402-6116"; + pin = "9497"; + postalCode = "64696"; + price = "25.00"; + product = "Recycled Granite Pants"; sex = "male"; - street = "Humberto Court"; - timezone = "Europe/Ljubljana"; - unit = "gray"; - url = "http://striped-cutlet.net"; - username = "Jeanette82"; - uuid = "004523e8-6559-4551-a938-6a9f8f4b14b9"; + street = "Lura Wells"; + timezone = "Africa/Nairobi"; + unit = "degree Celsius"; + url = "https://crooked-dulcimer.name"; + username = "Mable76"; + uuid = "16b919d6-51cd-4e97-81e2-5221b7b6969f"; }}; simpleObject = new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ bigint = 8821239038968084L; @@ -156,15 +156,15 @@ public class Application { boolOpt = true; decimal = 3.141592653589793d; decimalStr = "3.14159265358979344719667586"; - intOptNull = 843091L; - numOptNull = 3767.71d; + intOptNull = 809796L; + numOptNull = 4812.91d; strOpt = "testOptional"; }}; }}; - bigintParameterOptional = 733506L; - bigintStrParameterOptional = "laudantium online Alabama"; - decimalParameterOptional = 5072.07d; - decimalStrParameterOptional = "up"; + bigintParameterOptional = 165468L; + bigintStrParameterOptional = "string"; + decimalParameterOptional = 5944.32d; + decimalStrParameterOptional = "string"; optEnumParameter = UsageExamplePostOptEnumParameter.VALUE3; }}; @@ -244,6 +244,9 @@ public class Application { * [anchorTypesGet](docs/sdks/generation/README.md#anchortypesget) * [arrayCircularReferenceGet](docs/sdks/generation/README.md#arraycircularreferenceget) * [circularReferenceGet](docs/sdks/generation/README.md#circularreferenceget) +* [dateParamWithDefault](docs/sdks/generation/README.md#dateparamwithdefault) +* [dateTimeParamWithDefault](docs/sdks/generation/README.md#datetimeparamwithdefault) +* [decimalParamWithDefault](docs/sdks/generation/README.md#decimalparamwithdefault) * [deprecatedFieldInSchemaPost](docs/sdks/generation/README.md#deprecatedfieldinschemapost) * [deprecatedObjectInSchemaGet](docs/sdks/generation/README.md#deprecatedobjectinschemaget) * [~~deprecatedOperationNoCommentsGet~~](docs/sdks/generation/README.md#deprecatedoperationnocommentsget) - :warning: **Deprecated** @@ -296,6 +299,7 @@ public class Application { * [deepObjectQueryParamsObject](docs/sdks/parameters/README.md#deepobjectqueryparamsobject) * [duplicateParam](docs/sdks/parameters/README.md#duplicateparam) * [formQueryParamsArray](docs/sdks/parameters/README.md#formqueryparamsarray) +* [formQueryParamsCamelObject](docs/sdks/parameters/README.md#formqueryparamscamelobject) * [formQueryParamsMap](docs/sdks/parameters/README.md#formqueryparamsmap) * [formQueryParamsObject](docs/sdks/parameters/README.md#formqueryparamsobject) * [formQueryParamsPrimitive](docs/sdks/parameters/README.md#formqueryparamsprimitive) @@ -411,6 +415,7 @@ public class Application { * [responseBodyAdditionalPropertiesComplexNumbersPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiescomplexnumberspost) * [responseBodyAdditionalPropertiesDatePost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesdatepost) +* [responseBodyAdditionalPropertiesObjectPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesobjectpost) * [responseBodyAdditionalPropertiesPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiespost) * [responseBodyBytesGet](docs/sdks/responsebodies/README.md#responsebodybytesget) * [responseBodyEmptyWithHeaders](docs/sdks/responsebodies/README.md#responsebodyemptywithheaders) @@ -454,6 +459,8 @@ public class Application { * [stronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [typedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [unionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [unionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [weaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) @@ -484,7 +491,7 @@ The following global parameters are available. The required parameters must be s -## Example +## Example #1 ```java package hello.world; @@ -516,6 +523,40 @@ public class Application { } } ``` + + +## Example #2 + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.GlobalsQueryParameterGetRequest; +import org.openapis.openapi.models.operations.GlobalsQueryParameterGetResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + GlobalsQueryParameterGetResponse res = sdk.globals.globalsQueryParameterGet("string"); + + if (res.res != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` diff --git a/java-client-sdk/USAGE.md b/java-client-sdk/USAGE.md index b11a99019..b6ef6f0c8 100755 --- a/java-client-sdk/USAGE.md +++ b/java-client-sdk/USAGE.md @@ -62,82 +62,82 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - UsageExamplePostRequest req = new UsageExamplePostRequest(168827L, "Gasoline Sleek", false, LocalDate.parse("2021-04-23"), OffsetDateTime.parse("2022-09-13T20:44:04.193Z"), 1952.32d, "Shoes Brockton", 1062.86d, UsageExamplePostEnumParameter.VALUE1, 0d, 2346.82f, 5954.85d, 215216L, 834441, "example 2"){{ + UsageExamplePostRequest req = new UsageExamplePostRequest(168827L, "string", false, LocalDate.parse("2022-05-05"), OffsetDateTime.parse("2023-06-11T00:39:45.412Z"), OffsetDateTime.parse("2022-07-22T13:16:48.221Z"), 2679.33d, "string", 5223.72d, UsageExamplePostEnumParameter.VALUE1, 0d, 6946.59f, 2286.22d, 102975L, 566999, "example 1"){{ requestBody = new UsageExamplePostRequestBody(){{ fakerFormattedStrings = new FakerFormattedStrings(){{ - addressFormat = "279 Cassandra Club"; - directoryFormat = "/var/mail"; - domainFormat = "dizzy-geology.net"; - emailFormat = "Pierre49@yahoo.com"; - filenameFormat = "deposit_male_dram.mpg4"; - filepathFormat = "/srv/deeply_gloves_program.st"; + addressFormat = "2344 Aufderhar Corner"; + directoryFormat = "/etc/defaults"; + domainFormat = "fatal-cutting.name"; + emailFormat = "Roberta.Kemmer77@gmail.com"; + filenameFormat = "strategic_southwest_shirt.mp4v"; + filepathFormat = "/usr/local/bin/target.z4"; imageFormat = "https://loremflickr.com/640/480"; - ipv4Format = "101.207.63.27"; - ipv6Format = "64a2:58be:7e13:5866:7dac:95a0:1523:5912"; - jsonFormat = "{rate: 57509, underwire: null, cent: \"male Iodine\"}"; - macFormat = "02:f2:2d:15:6d:c5"; - passwordFormat = "9nF4NLa49gS71tG"; - phoneFormat = "1-891-918-2466"; - timezoneFormat = "Asia/Jakarta"; - unknownFormat = "Northeast Uzbekistan HDD"; - urlFormat = "http://sane-network.net"; - uuidFormat = "364b6b4a-48ad-4bb3-b96c-2e388ca7107f"; - zipcodeFormat = "87997-8268"; + ipv4Format = "116.31.181.178"; + ipv6Format = "73ac:9ee2:348d:76c3:164a:258b:e7e1:3586"; + jsonFormat = "{key: 42822, key1: null, key2: \"string\"}"; + macFormat = "7d:ac:95:a0:15:23"; + passwordFormat = "eWzdveK0sHokC9n"; + phoneFormat = "1-340-562-2122 x175"; + timezoneFormat = "Asia/Yekaterinburg"; + unknownFormat = "string"; + urlFormat = "https://wilted-cytoplasm.biz"; + uuidFormat = "e0f62de2-e2d4-47a9-bf10-0f753b9b364b"; + zipcodeFormat = "73625"; }}; fakerStrings = new FakerStrings(){{ - city = "Carolinafort"; - iban = "CY35007005052574022Q9F55000Q"; + city = "Schuppecester"; + iban = "NO0300631256004"; id = ""; - iPv4 = "128.213.29.233"; - iPv6 = "aa92:fb62:d7b0:075d:a754:8270:74e6:53f1"; - account = "10128020"; - address = "97181 Metz Trafficway"; - amount = "896.58"; + iPv4 = "251.251.208.201"; + iPv6 = "ffbd:3ad7:2b20:8b2c:8188:308b:b979:0237"; + account = "29659826"; + address = "2500 Ambrose Circles"; + amount = "89.73"; avatar = "https://loremflickr.com/640/480"; - color = "grey"; + color = "fuchsia"; comment = "Carbonite web goalkeeper gloves are ergonomically designed to give easy fit"; - company = "Gottlieb Inc"; - country = "Nicaragua"; - countryCode = "BO"; - currency = "Seychelles Rupee"; - datatype = "point"; - default_ = "as Rock"; - description = "Extended encompassing framework"; - directory = "/Users"; - domainName = "lumpy-sand.name"; - emailAddr = "Jayde_Stracke94@gmail.com"; + company = "Sipes - Buckridge"; + country = "Turkey"; + countryCode = "NF"; + currency = "Pakistan Rupee"; + datatype = "real"; + default_ = "string"; + description = "Customizable zero administration open system"; + directory = "/opt/sbin"; + domainName = "deep-stallion.info"; + emailAddr = "Alejandrin.Barrows@hotmail.com"; extension = "m1v"; - filename = "oof_plastic.gif"; - filepath = "/srv/yum.mrcx"; - filetype = "audio"; - firstName = "Lula"; - fullName = "Bonnie Nitzsche"; - gender = "Transmasculine"; - job = "Legacy Markets Orchestrator"; - json = "{housing: 65187, wine: null, planter: \"Lafayette array\"}"; + filename = "panel_deposit.png"; + filepath = "/media/executive_automotive_northeast.distz"; + filetype = "video"; + firstName = "Dejuan"; + fullName = "Mrs. Jose Franey"; + gender = "Trans female"; + job = "Direct Accountability Liaison"; + json = "{key: 88901, key1: null, key2: \"string\"}"; key = ""; - lastName = "Leannon"; - latitude = "-38.3898"; - locale = "ko"; - longitude = "179.7448"; - mac = "99:b2:4a:a3:1c:16"; - manufacturer = "Nissan"; - material = "Rubber"; - middleName = "Austin"; - model = "Model Y"; - password = "qIlrvZKw0C22gKb"; - phone = "1-646-984-1595 x907"; - pin = "4985"; - postalCode = "51983"; - price = "356.00"; - product = "Handcrafted Plastic Cheese"; + lastName = "Metz"; + latitude = "68.2232"; + locale = "uk"; + longitude = "-42.1384"; + mac = "a2:42:a1:bf:6e:19"; + manufacturer = "Aston Martin"; + material = "Concrete"; + middleName = "Finley"; + model = "Escalade"; + password = "_QiNrTzqbDz8AXY"; + phone = "469-402-6116"; + pin = "9497"; + postalCode = "64696"; + price = "25.00"; + product = "Recycled Granite Pants"; sex = "male"; - street = "Humberto Court"; - timezone = "Europe/Ljubljana"; - unit = "gray"; - url = "http://striped-cutlet.net"; - username = "Jeanette82"; - uuid = "004523e8-6559-4551-a938-6a9f8f4b14b9"; + street = "Lura Wells"; + timezone = "Africa/Nairobi"; + unit = "degree Celsius"; + url = "https://crooked-dulcimer.name"; + username = "Mable76"; + uuid = "16b919d6-51cd-4e97-81e2-5221b7b6969f"; }}; simpleObject = new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ bigint = 8821239038968084L; @@ -145,15 +145,15 @@ public class Application { boolOpt = true; decimal = 3.141592653589793d; decimalStr = "3.14159265358979344719667586"; - intOptNull = 843091L; - numOptNull = 3767.71d; + intOptNull = 809796L; + numOptNull = 4812.91d; strOpt = "testOptional"; }}; }}; - bigintParameterOptional = 733506L; - bigintStrParameterOptional = "laudantium online Alabama"; - decimalParameterOptional = 5072.07d; - decimalStrParameterOptional = "up"; + bigintParameterOptional = 165468L; + bigintStrParameterOptional = "string"; + decimalParameterOptional = 5944.32d; + decimalStrParameterOptional = "string"; optEnumParameter = UsageExamplePostOptEnumParameter.VALUE3; }}; diff --git a/java-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md b/java-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md new file mode 100755 index 000000000..f3615e2dc --- /dev/null +++ b/java-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `dateInput` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md b/java-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md new file mode 100755 index 000000000..18741f4a0 --- /dev/null +++ b/java-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md b/java-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md new file mode 100755 index 000000000..6d857be95 --- /dev/null +++ b/java-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `dateTimeInput` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md b/java-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md new file mode 100755 index 000000000..0282c735f --- /dev/null +++ b/java-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md b/java-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md new file mode 100755 index 000000000..3d4f976c8 --- /dev/null +++ b/java-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimalInput` | *Double* | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md b/java-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md new file mode 100755 index 000000000..9ad0f0797 --- /dev/null +++ b/java-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md new file mode 100755 index 000000000..682a98300 --- /dev/null +++ b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `encodedCount` | *String* | :heavy_minus_sign: | N/A | 11 | +| `encodedTerm` | *String* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md new file mode 100755 index 000000000..3129ad003 --- /dev/null +++ b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `itemCount` | *String* | :heavy_minus_sign: | N/A | 10 | +| `searchTerm` | *String* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md new file mode 100755 index 000000000..d19a9747b --- /dev/null +++ b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `objParamExploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/FormQueryParamsCamelObjectObjParamExploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [FormQueryParamsCamelObjectObjParam](../../models/operations/FormQueryParamsCamelObjectObjParam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md new file mode 100755 index 000000000..cbb31bb3c --- /dev/null +++ b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `args` | [FormQueryParamsCamelObjectResArgs](../../models/operations/FormQueryParamsCamelObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `url` | *String* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md new file mode 100755 index 000000000..a3996a8ca --- /dev/null +++ b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `itemCount` | *String* | :heavy_check_mark: | N/A | 10 | +| `searchTerm` | *String* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md new file mode 100755 index 000000000..4510bad1b --- /dev/null +++ b/java-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [FormQueryParamsCamelObjectRes](../../models/operations/FormQueryParamsCamelObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md b/java-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md new file mode 100755 index 000000000..44f770f63 --- /dev/null +++ b/java-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `json` | Map | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md b/java-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md new file mode 100755 index 000000000..a65e7cac7 --- /dev/null +++ b/java-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject` | [ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON](../../models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md b/java-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md index a38db7909..3557cc1b5 100755 --- a/java-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md +++ b/java-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md @@ -5,7 +5,8 @@ Not Implemented ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `code` | *String* | :heavy_minus_sign: | N/A | -| `message` | *String* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `code` | *String* | :heavy_minus_sign: | N/A | +| `message` | *String* | :heavy_minus_sign: | N/A | +| `type` | [org.openapis.openapi.models.shared.ErrorType](../../models/shared/ErrorType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionDateNullRes.md b/java-client-sdk/docs/models/operations/UnionDateNullRes.md new file mode 100755 index 000000000..9ba4c4932 --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionDateNullRes.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `json` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionDateNullResponse.md b/java-client-sdk/docs/models/operations/UnionDateNullResponse.md new file mode 100755 index 000000000..156183fb9 --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionDateNullResponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionDateNullRes](../../models/operations/UnionDateNullRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionDateTimeNullRes.md b/java-client-sdk/docs/models/operations/UnionDateTimeNullRes.md new file mode 100755 index 000000000..147a30e3f --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionDateTimeNullRes.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `json` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md b/java-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md new file mode 100755 index 000000000..924c7ef21 --- /dev/null +++ b/java-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionDateTimeNullRes](../../models/operations/UnionDateTimeNullRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/java-client-sdk/docs/models/operations/UsageExamplePostRequest.md b/java-client-sdk/docs/models/operations/UsageExamplePostRequest.md index a07206099..d41636a8b 100755 --- a/java-client-sdk/docs/models/operations/UsageExamplePostRequest.md +++ b/java-client-sdk/docs/models/operations/UsageExamplePostRequest.md @@ -12,6 +12,7 @@ | `bigintStrParameterOptional` | *String* | :heavy_minus_sign: | An bigint parameter | | | `boolParameter` | *Boolean* | :heavy_check_mark: | A boolean parameter | | | `dateParameter` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | A date parameter | | +| `dateTimeDefaultParameter` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | A date time parameter with a default value | | | `dateTimeParameter` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | A date time parameter | | | `decimalParameter` | *Double* | :heavy_check_mark: | A decimal parameter | | | `decimalParameterOptional` | *Double* | :heavy_minus_sign: | A decimal parameter | | diff --git a/java-client-sdk/docs/models/shared/Error.md b/java-client-sdk/docs/models/shared/Error.md index 203a75939..7189a0518 100755 --- a/java-client-sdk/docs/models/shared/Error.md +++ b/java-client-sdk/docs/models/shared/Error.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `code` | *String* | :heavy_minus_sign: | N/A | -| `message` | *String* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `code` | *String* | :heavy_minus_sign: | N/A | +| `message` | *String* | :heavy_minus_sign: | N/A | +| `type` | [ErrorType](../../models/shared/ErrorType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/java-client-sdk/docs/models/shared/ErrorType.md b/java-client-sdk/docs/models/shared/ErrorType.md new file mode 100755 index 000000000..0ccaa2526 --- /dev/null +++ b/java-client-sdk/docs/models/shared/ErrorType.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `NOT_FOUND` | not_found | +| `INVALID` | invalid | +| `INTERNAL` | internal | \ No newline at end of file diff --git a/java-client-sdk/docs/sdks/auth/README.md b/java-client-sdk/docs/sdks/auth/README.md index 0895a18bd..19ddc3242 100755 --- a/java-client-sdk/docs/sdks/auth/README.md +++ b/java-client-sdk/docs/sdks/auth/README.md @@ -126,7 +126,7 @@ public class Application { BasicAuthResponse res = sdk.auth.basicAuth(new BasicAuthSecurity("YOUR_PASSWORD", "YOUR_USERNAME"){{ password = "YOUR_PASSWORD"; username = "YOUR_USERNAME"; - }}, "minus", "Architect"); + }}, "string", "string"); if (res.user != null) { // handle response diff --git a/java-client-sdk/docs/sdks/authnew/README.md b/java-client-sdk/docs/sdks/authnew/README.md index 7a92333af..e14a2fa26 100755 --- a/java-client-sdk/docs/sdks/authnew/README.md +++ b/java-client-sdk/docs/sdks/authnew/README.md @@ -45,11 +45,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("Southwest", "which"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("indexing", "protocol"){{ - expectedValue = "hertz overriding"; - headerName = "deliverables card"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -105,11 +105,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("inasmuch", "meanwhile"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("Bespoke", "Automotive"){{ - expectedValue = "Lithium Frozen HDD"; - headerName = "Internal"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -163,11 +163,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("Androgynous", "utilize"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("humiliating", "phooey"){{ - expectedValue = "Northwest"; - headerName = "loose orange"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -226,11 +226,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("Berkshire", "Crew"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("within", "Frieda"){{ - expectedValue = "Sol Southwest Markets"; - headerName = "Tuna"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -288,11 +288,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("wireless", "molestias"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("Bicycle", "Rand"){{ - expectedValue = "Bike woman"; - headerName = "Michigan"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -356,11 +356,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("Fluorine", "Spain"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("gee", "Associate"){{ - expectedValue = "Bronze VGA Wagon"; - headerName = "Man Stage"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -422,11 +422,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("besides", "Dakota"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("Cisgender", "Blues"){{ - expectedValue = "innovative Agent background"; - headerName = "matrix Tandem"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -486,11 +486,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("Wagon", "Handcrafted"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("payment", "Usability"){{ - expectedValue = "interface woman index"; - headerName = "giving quantifying"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -547,11 +547,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("extensible", "astrologer"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("Convertible", "aperiam"){{ - expectedValue = "Borders Synergized"; - headerName = "Bike Fantastic Blues"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -609,11 +609,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("mesh", "Plaza"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("Gasoline", "connect"){{ - expectedValue = "Home"; - headerName = "Afghanistan reinvent Mazda"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; @@ -670,11 +670,11 @@ public class Application { .build(); org.openapis.openapi.models.shared.AuthServiceRequestBody req = new AuthServiceRequestBody(){{ - basicAuth = new AuthServiceRequestBodyBasicAuth("lavender", "National"); + basicAuth = new AuthServiceRequestBodyBasicAuth("string", "string"); headerAuth = new org.openapis.openapi.models.shared.AuthServiceRequestBodyHeaderAuth[]{{ - add(new AuthServiceRequestBodyHeaderAuth("Frozen", "Kansas"){{ - expectedValue = "coulomb"; - headerName = "male"; + add(new AuthServiceRequestBodyHeaderAuth("string", "string"){{ + expectedValue = "string"; + headerName = "string"; }}), }}; }}; diff --git a/java-client-sdk/docs/sdks/documentation/README.md b/java-client-sdk/docs/sdks/documentation/README.md index 1b18355e5..7befe3c36 100755 --- a/java-client-sdk/docs/sdks/documentation/README.md +++ b/java-client-sdk/docs/sdks/documentation/README.md @@ -34,7 +34,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - GetDocumentationPerLanguageResponse res = sdk.documentation.getDocumentationPerLanguage("hack"); + GetDocumentationPerLanguageResponse res = sdk.documentation.getDocumentationPerLanguage("string"); if (res.statusCode == 200) { // handle response diff --git a/java-client-sdk/docs/sdks/flattening/README.md b/java-client-sdk/docs/sdks/flattening/README.md index bbfeb2956..dcc12cec0 100755 --- a/java-client-sdk/docs/sdks/flattening/README.md +++ b/java-client-sdk/docs/sdks/flattening/README.md @@ -61,7 +61,7 @@ public class Application { num = 1.1d; str = "test"; strOpt = "testOptional"; - }}, "Minivan"); + }}, "string"); if (res.res != null) { // handle response @@ -115,7 +115,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - ComponentBodyAndParamNoConflictResponse res = sdk.flattening.componentBodyAndParamNoConflict("ick", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + ComponentBodyAndParamNoConflictResponse res = sdk.flattening.componentBodyAndParamNoConflict("string", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -182,7 +182,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - ConflictingParamsResponse res = sdk.flattening.conflictingParams("kilogram", "Cloned"); + ConflictingParamsResponse res = sdk.flattening.conflictingParams("string", "string"); if (res.res != null) { // handle response @@ -231,9 +231,9 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - InlineBodyAndParamConflictResponse res = sdk.flattening.inlineBodyAndParamConflict(new InlineBodyAndParamConflictRequestBody("until"){{ - str = "Progressive"; - }}, "array"); + InlineBodyAndParamConflictResponse res = sdk.flattening.inlineBodyAndParamConflict(new InlineBodyAndParamConflictRequestBody("string"){{ + str = "string"; + }}, "string"); if (res.res != null) { // handle response @@ -282,9 +282,9 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - InlineBodyAndParamNoConflictResponse res = sdk.flattening.inlineBodyAndParamNoConflict(new InlineBodyAndParamNoConflictRequestBody("Forward"){{ - bodyStr = "dynamic expedite"; - }}, "embrace"); + InlineBodyAndParamNoConflictResponse res = sdk.flattening.inlineBodyAndParamNoConflict(new InlineBodyAndParamNoConflictRequestBody("string"){{ + bodyStr = "string"; + }}, "string"); if (res.res != null) { // handle response diff --git a/java-client-sdk/docs/sdks/generation/README.md b/java-client-sdk/docs/sdks/generation/README.md index 7b3eaa261..8de87873f 100755 --- a/java-client-sdk/docs/sdks/generation/README.md +++ b/java-client-sdk/docs/sdks/generation/README.md @@ -10,6 +10,9 @@ Endpoints for purely testing valid generation behavior. * [anchorTypesGet](#anchortypesget) * [arrayCircularReferenceGet](#arraycircularreferenceget) * [circularReferenceGet](#circularreferenceget) +* [dateParamWithDefault](#dateparamwithdefault) +* [dateTimeParamWithDefault](#datetimeparamwithdefault) +* [decimalParamWithDefault](#decimalparamwithdefault) * [deprecatedFieldInSchemaPost](#deprecatedfieldinschemapost) * [deprecatedObjectInSchemaGet](#deprecatedobjectinschemaget) * [~~deprecatedOperationNoCommentsGet~~](#deprecatedoperationnocommentsget) - :warning: **Deprecated** @@ -145,6 +148,149 @@ public class Application { **[org.openapis.openapi.models.operations.CircularReferenceGetResponse](../../models/operations/CircularReferenceGetResponse.md)** +## dateParamWithDefault + +### Example Usage + +```java +package hello.world; + +import java.time.LocalDate; +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.DateParamWithDefaultRequest; +import org.openapis.openapi.models.operations.DateParamWithDefaultResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + DateParamWithDefaultResponse res = sdk.generation.dateParamWithDefault(LocalDate.parse("2021-11-30")); + + if (res.statusCode == 200) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `dateInput` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | A date parameter with a default value | + + +### Response + +**[org.openapis.openapi.models.operations.DateParamWithDefaultResponse](../../models/operations/DateParamWithDefaultResponse.md)** + + +## dateTimeParamWithDefault + +### Example Usage + +```java +package hello.world; + +import java.time.OffsetDateTime; +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.DateTimeParamWithDefaultRequest; +import org.openapis.openapi.models.operations.DateTimeParamWithDefaultResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + DateTimeParamWithDefaultResponse res = sdk.generation.dateTimeParamWithDefault(OffsetDateTime.parse("2023-02-09T21:53:21.077Z")); + + if (res.statusCode == 200) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `dateTimeInput` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | A date time parameter with a default value | + + +### Response + +**[org.openapis.openapi.models.operations.DateTimeParamWithDefaultResponse](../../models/operations/DateTimeParamWithDefaultResponse.md)** + + +## decimalParamWithDefault + +### Example Usage + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.DecimalParamWithDefaultRequest; +import org.openapis.openapi.models.operations.DecimalParamWithDefaultResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + DecimalParamWithDefaultResponse res = sdk.generation.decimalParamWithDefault(4060.06d); + + if (res.statusCode == 200) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimalInput` | *Double* | :heavy_check_mark: | A decimal parameter with a default value | + + +### Response + +**[org.openapis.openapi.models.operations.DecimalParamWithDefaultResponse](../../models/operations/DecimalParamWithDefaultResponse.md)** + + ## deprecatedFieldInSchemaPost ### Example Usage @@ -171,8 +317,8 @@ public class Application { org.openapis.openapi.models.shared.DeprecatedFieldInObject req = new DeprecatedFieldInObject(){{ deprecatedEnum = DeprecatedFieldInObjectDeprecatedEnum.B; - deprecatedField = "Car"; - newField = "compressing"; + deprecatedField = "string"; + newField = "string"; }}; DeprecatedFieldInSchemaPostResponse res = sdk.generation.deprecatedFieldInSchemaPost(req); @@ -264,7 +410,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - DeprecatedOperationNoCommentsGetResponse res = sdk.generation.deprecatedOperationNoCommentsGet("Account"); + DeprecatedOperationNoCommentsGetResponse res = sdk.generation.deprecatedOperationNoCommentsGet("string"); if (res.statusCode == 200) { // handle response @@ -315,7 +461,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - DeprecatedOperationWithCommentsGetResponse res = sdk.generation.deprecatedOperationWithCommentsGet("Account", "actuating"); + DeprecatedOperationWithCommentsGetResponse res = sdk.generation.deprecatedOperationWithCommentsGet("string", "string"); if (res.statusCode == 200) { // handle response @@ -536,7 +682,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - IgnoresPostResponse res = sdk.generation.ignoresPost(new IgnoresPostApplicationJSON(){{}}, "Bike"); + IgnoresPostResponse res = sdk.generation.ignoresPost(new IgnoresPostApplicationJSON(){{}}, "string"); if (res.httpBinSimpleJsonObject != null) { // handle response @@ -715,10 +861,10 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - TypedParameterGenerationGetResponse res = sdk.generation.typedParameterGenerationGet(879275L, LocalDate.parse("2023-11-18"), 3346.96d, new TypedParameterGenerationGetObj(false, 8887.47d, "morph"){{ + TypedParameterGenerationGetResponse res = sdk.generation.typedParameterGenerationGet(879275L, LocalDate.parse("2023-11-18"), 3346.96d, new TypedParameterGenerationGetObj(false, 8948.31d, "string"){{ bool = false; num = 4778.06d; - str = "Progressive Riyal male"; + str = "string"; }}); if (res.statusCode == 200) { @@ -783,82 +929,82 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - UsageExamplePostRequest req = new UsageExamplePostRequest(168827L, "Gasoline Sleek", false, LocalDate.parse("2021-04-23"), OffsetDateTime.parse("2022-09-13T20:44:04.193Z"), 1952.32d, "Shoes Brockton", 1062.86d, UsageExamplePostEnumParameter.VALUE1, 0d, 2346.82f, 5954.85d, 215216L, 834441, "example 2"){{ + UsageExamplePostRequest req = new UsageExamplePostRequest(168827L, "string", false, LocalDate.parse("2022-05-05"), OffsetDateTime.parse("2023-06-11T00:39:45.412Z"), OffsetDateTime.parse("2022-07-22T13:16:48.221Z"), 2679.33d, "string", 5223.72d, UsageExamplePostEnumParameter.VALUE1, 0d, 6946.59f, 2286.22d, 102975L, 566999, "example 1"){{ requestBody = new UsageExamplePostRequestBody(){{ fakerFormattedStrings = new FakerFormattedStrings(){{ - addressFormat = "279 Cassandra Club"; - directoryFormat = "/var/mail"; - domainFormat = "dizzy-geology.net"; - emailFormat = "Pierre49@yahoo.com"; - filenameFormat = "deposit_male_dram.mpg4"; - filepathFormat = "/srv/deeply_gloves_program.st"; + addressFormat = "2344 Aufderhar Corner"; + directoryFormat = "/etc/defaults"; + domainFormat = "fatal-cutting.name"; + emailFormat = "Roberta.Kemmer77@gmail.com"; + filenameFormat = "strategic_southwest_shirt.mp4v"; + filepathFormat = "/usr/local/bin/target.z4"; imageFormat = "https://loremflickr.com/640/480"; - ipv4Format = "101.207.63.27"; - ipv6Format = "64a2:58be:7e13:5866:7dac:95a0:1523:5912"; - jsonFormat = "{rate: 57509, underwire: null, cent: \"male Iodine\"}"; - macFormat = "02:f2:2d:15:6d:c5"; - passwordFormat = "9nF4NLa49gS71tG"; - phoneFormat = "1-891-918-2466"; - timezoneFormat = "Asia/Jakarta"; - unknownFormat = "Northeast Uzbekistan HDD"; - urlFormat = "http://sane-network.net"; - uuidFormat = "364b6b4a-48ad-4bb3-b96c-2e388ca7107f"; - zipcodeFormat = "87997-8268"; + ipv4Format = "116.31.181.178"; + ipv6Format = "73ac:9ee2:348d:76c3:164a:258b:e7e1:3586"; + jsonFormat = "{key: 42822, key1: null, key2: \"string\"}"; + macFormat = "7d:ac:95:a0:15:23"; + passwordFormat = "eWzdveK0sHokC9n"; + phoneFormat = "1-340-562-2122 x175"; + timezoneFormat = "Asia/Yekaterinburg"; + unknownFormat = "string"; + urlFormat = "https://wilted-cytoplasm.biz"; + uuidFormat = "e0f62de2-e2d4-47a9-bf10-0f753b9b364b"; + zipcodeFormat = "73625"; }}; fakerStrings = new FakerStrings(){{ - city = "Carolinafort"; - iban = "CY35007005052574022Q9F55000Q"; + city = "Schuppecester"; + iban = "NO0300631256004"; id = ""; - iPv4 = "128.213.29.233"; - iPv6 = "aa92:fb62:d7b0:075d:a754:8270:74e6:53f1"; - account = "10128020"; - address = "97181 Metz Trafficway"; - amount = "896.58"; + iPv4 = "251.251.208.201"; + iPv6 = "ffbd:3ad7:2b20:8b2c:8188:308b:b979:0237"; + account = "29659826"; + address = "2500 Ambrose Circles"; + amount = "89.73"; avatar = "https://loremflickr.com/640/480"; - color = "grey"; + color = "fuchsia"; comment = "Carbonite web goalkeeper gloves are ergonomically designed to give easy fit"; - company = "Gottlieb Inc"; - country = "Nicaragua"; - countryCode = "BO"; - currency = "Seychelles Rupee"; - datatype = "point"; - default_ = "as Rock"; - description = "Extended encompassing framework"; - directory = "/Users"; - domainName = "lumpy-sand.name"; - emailAddr = "Jayde_Stracke94@gmail.com"; + company = "Sipes - Buckridge"; + country = "Turkey"; + countryCode = "NF"; + currency = "Pakistan Rupee"; + datatype = "real"; + default_ = "string"; + description = "Customizable zero administration open system"; + directory = "/opt/sbin"; + domainName = "deep-stallion.info"; + emailAddr = "Alejandrin.Barrows@hotmail.com"; extension = "m1v"; - filename = "oof_plastic.gif"; - filepath = "/srv/yum.mrcx"; - filetype = "audio"; - firstName = "Lula"; - fullName = "Bonnie Nitzsche"; - gender = "Transmasculine"; - job = "Legacy Markets Orchestrator"; - json = "{housing: 65187, wine: null, planter: \"Lafayette array\"}"; + filename = "panel_deposit.png"; + filepath = "/media/executive_automotive_northeast.distz"; + filetype = "video"; + firstName = "Dejuan"; + fullName = "Mrs. Jose Franey"; + gender = "Trans female"; + job = "Direct Accountability Liaison"; + json = "{key: 88901, key1: null, key2: \"string\"}"; key = ""; - lastName = "Leannon"; - latitude = "-38.3898"; - locale = "ko"; - longitude = "179.7448"; - mac = "99:b2:4a:a3:1c:16"; - manufacturer = "Nissan"; - material = "Rubber"; - middleName = "Austin"; - model = "Model Y"; - password = "qIlrvZKw0C22gKb"; - phone = "1-646-984-1595 x907"; - pin = "4985"; - postalCode = "51983"; - price = "356.00"; - product = "Handcrafted Plastic Cheese"; + lastName = "Metz"; + latitude = "68.2232"; + locale = "uk"; + longitude = "-42.1384"; + mac = "a2:42:a1:bf:6e:19"; + manufacturer = "Aston Martin"; + material = "Concrete"; + middleName = "Finley"; + model = "Escalade"; + password = "_QiNrTzqbDz8AXY"; + phone = "469-402-6116"; + pin = "9497"; + postalCode = "64696"; + price = "25.00"; + product = "Recycled Granite Pants"; sex = "male"; - street = "Humberto Court"; - timezone = "Europe/Ljubljana"; - unit = "gray"; - url = "http://striped-cutlet.net"; - username = "Jeanette82"; - uuid = "004523e8-6559-4551-a938-6a9f8f4b14b9"; + street = "Lura Wells"; + timezone = "Africa/Nairobi"; + unit = "degree Celsius"; + url = "https://crooked-dulcimer.name"; + username = "Mable76"; + uuid = "16b919d6-51cd-4e97-81e2-5221b7b6969f"; }}; simpleObject = new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ bigint = 8821239038968084L; @@ -866,15 +1012,15 @@ public class Application { boolOpt = true; decimal = 3.141592653589793d; decimalStr = "3.14159265358979344719667586"; - intOptNull = 843091L; - numOptNull = 3767.71d; + intOptNull = 809796L; + numOptNull = 4812.91d; strOpt = "testOptional"; }}; }}; - bigintParameterOptional = 733506L; - bigintStrParameterOptional = "laudantium online Alabama"; - decimalParameterOptional = 5072.07d; - decimalStrParameterOptional = "up"; + bigintParameterOptional = 165468L; + bigintStrParameterOptional = "string"; + decimalParameterOptional = 5944.32d; + decimalStrParameterOptional = "string"; optEnumParameter = UsageExamplePostOptEnumParameter.VALUE3; }}; diff --git a/java-client-sdk/docs/sdks/globals/README.md b/java-client-sdk/docs/sdks/globals/README.md index 0f3a95e53..4d3e9fe2b 100755 --- a/java-client-sdk/docs/sdks/globals/README.md +++ b/java-client-sdk/docs/sdks/globals/README.md @@ -80,7 +80,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - GlobalsQueryParameterGetResponse res = sdk.globals.globalsQueryParameterGet("Tricycle"); + GlobalsQueryParameterGetResponse res = sdk.globals.globalsQueryParameterGet("string"); if (res.res != null) { // handle response diff --git a/java-client-sdk/docs/sdks/parameters/README.md b/java-client-sdk/docs/sdks/parameters/README.md index 61508961f..46a2450b4 100755 --- a/java-client-sdk/docs/sdks/parameters/README.md +++ b/java-client-sdk/docs/sdks/parameters/README.md @@ -11,6 +11,7 @@ Endpoints for testing parameters. * [deepObjectQueryParamsObject](#deepobjectqueryparamsobject) * [duplicateParam](#duplicateparam) * [formQueryParamsArray](#formqueryparamsarray) +* [formQueryParamsCamelObject](#formqueryparamscamelobject) * [formQueryParamsMap](#formqueryparamsmap) * [formQueryParamsObject](#formqueryparamsobject) * [formQueryParamsPrimitive](#formqueryparamsprimitive) @@ -192,7 +193,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - DuplicateParamResponse res = sdk.parameters.duplicateParam("Parks"); + DuplicateParamResponse res = sdk.parameters.duplicateParam("string"); if (res.duplicateParamResponse != null) { // handle response @@ -270,6 +271,62 @@ public class Application { **[org.openapis.openapi.models.operations.FormQueryParamsArrayResponse](../../models/operations/FormQueryParamsArrayResponse.md)** +## formQueryParamsCamelObject + +### Example Usage + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParam; +import org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParamExploded; +import org.openapis.openapi.models.operations.FormQueryParamsCamelObjectRequest; +import org.openapis.openapi.models.operations.FormQueryParamsCamelObjectResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + FormQueryParamsCamelObjectResponse res = sdk.parameters.formQueryParamsCamelObject(new FormQueryParamsCamelObjectObjParamExploded(){{ + itemCount = "10"; + searchTerm = "foo"; + }}, new FormQueryParamsCamelObjectObjParam(){{ + encodedCount = "11"; + encodedTerm = "bar"; + }}); + + if (res.res != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `objParamExploded` | [org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParamExploded](../../models/operations/FormQueryParamsCamelObjectObjParamExploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParam](../../models/operations/FormQueryParamsCamelObjectObjParam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[org.openapis.openapi.models.operations.FormQueryParamsCamelObjectResponse](../../models/operations/FormQueryParamsCamelObjectResponse.md)** + + ## formQueryParamsMap ### Example Usage diff --git a/java-client-sdk/docs/sdks/requestbodies/README.md b/java-client-sdk/docs/sdks/requestbodies/README.md index 4fde95441..453adc841 100755 --- a/java-client-sdk/docs/sdks/requestbodies/README.md +++ b/java-client-sdk/docs/sdks/requestbodies/README.md @@ -113,7 +113,7 @@ public class Application { .build(); org.openapis.openapi.models.shared.NullableObject req = new NullableObject(302382L){{ - optional = "Berkshire"; + optional = "string"; }}; NullableObjectPostResponse res = sdk.requestBodies.nullableObjectPost(req); @@ -273,10 +273,10 @@ public class Application { .build(); NullableRequiredSharedObjectPostRequestBody req = new NullableRequiredSharedObjectPostRequestBody(new NullableObject(86533L){{ -optional = "Einsteinium at North"; +optional = "string"; }}){{ - nullableOptionalObj = new NullableObject(692851L){{ - optional = "Rock"; + nullableOptionalObj = new NullableObject(964394L){{ + optional = "string"; }}; }}; @@ -780,7 +780,7 @@ public class Application { org.openapis.openapi.models.. req = new String[][]{{ add(new String[]{{ - add("yellow"), + add("string"), }}), }}; @@ -839,7 +839,7 @@ public class Application { org.openapis.openapi.models.. req = new java.util.HashMap[]{{ add(new java.util.HashMap(){{ - put("Southeast", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -917,7 +917,7 @@ public class Application { org.openapis.openapi.models.. req = new java.util.HashMap[]{{ add(new java.util.HashMap(){{ - put("culpa", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ + put("key", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; boolVal = true; @@ -986,7 +986,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new String[]{{ - add("bit"), + add("string"), }}; RequestBodyPostApplicationJsonArrayOfPrimitiveResponse res = sdk.requestBodies.requestBodyPostApplicationJsonArrayOfPrimitive(req); @@ -1135,7 +1135,7 @@ intOptNull = 949502L; numOptNull = 5521.28d; strOpt = "testOptional"; }}, "test"){{ - type = "Berkelium"; + type = "string"; }}; RequestBodyPostApplicationJsonDeepResponse res = sdk.requestBodies.requestBodyPostApplicationJsonDeep(req); @@ -1191,7 +1191,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.DeepObjectCamelCase req = new DeepObjectCamelCase("Cambridgeshire", new org.openapis.openapi.models.shared.SimpleObjectCamelCase[]{{ + org.openapis.openapi.models.shared.DeepObjectCamelCase req = new DeepObjectCamelCase("string", new org.openapis.openapi.models.shared.SimpleObjectCamelCase[]{{ add(new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; @@ -1210,8 +1210,8 @@ public class Application { strOptVal = "optional example"; strVal = "example"; }}), -}}, false, 206440L, new java.util.HashMap(){{ - put("Palladium", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ +}}, false, 66469L, new java.util.HashMap(){{ + put("key", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; boolVal = true; @@ -1229,16 +1229,16 @@ public class Application { strOptVal = "optional example"; strVal = "example"; }}); -}}, 1379.45d, new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ -bigintStrVal = "Music Djibouti solid"; -bigintVal = 40353L; +}}, 9629.09d, new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ +bigintStrVal = "string"; +bigintVal = 206440L; boolOptVal = true; -decimalVal = 3272.64d; +decimalVal = 4241.4d; intOptNullVal = 999999L; numOptNullVal = 1.1d; strOptVal = "optional example"; -}}, "analyzer"){{ - type = "heuristic Grocery Pizza"; +}}, "string"){{ + type = "string"; }}; RequestBodyPostApplicationJsonDeepCamelCaseResponse res = sdk.requestBodies.requestBodyPostApplicationJsonDeepCamelCase(req); @@ -1294,7 +1294,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Bentley", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -1370,7 +1370,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("archive", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ + put("key", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; boolVal = true; @@ -1444,7 +1444,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("larder", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -1519,7 +1519,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("female", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ + put("key", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; boolVal = true; @@ -1592,7 +1592,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Loan", new org.openapis.openapi.models.shared.SimpleObject[]{{ + put("key", new org.openapis.openapi.models.shared.SimpleObject[]{{ add(new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; @@ -1670,7 +1670,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("nonstop", new org.openapis.openapi.models.shared.SimpleObjectCamelCase[]{{ + put("key", new org.openapis.openapi.models.shared.SimpleObjectCamelCase[]{{ add(new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; @@ -1746,8 +1746,8 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap>(){{ - put("Senior", new java.util.HashMap(){{ - put("vice", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new java.util.HashMap(){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -1824,8 +1824,8 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap>(){{ - put("Home", new java.util.HashMap(){{ - put("plum", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ + put("key", new java.util.HashMap(){{ + put("key", new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ anyVal = "any example"; boolOptVal = true; boolVal = true; @@ -1894,8 +1894,8 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap>(){{ - put("turquoise", new java.util.HashMap(){{ - put("collaboration", "Officer"); + put("key", new java.util.HashMap(){{ + put("key", "string"); }}); }}; @@ -1947,7 +1947,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("equally", "whereas"); + put("key", "string"); }}; RequestBodyPostApplicationJsonMapOfPrimitiveResponse res = sdk.requestBodies.requestBodyPostApplicationJsonMapOfPrimitive(req); @@ -2130,10 +2130,10 @@ public class Application { .build(); org.openapis.openapi.models.shared.SimpleObjectCamelCase req = new SimpleObjectCamelCase("any example", true, OffsetDateTime.parse("2020-01-01T00:00:00Z"), LocalDate.parse("2020-01-01"), Enum.ONE, 2.2222222f, SimpleObjectCamelCaseInt32EnumVal.SIXTY_NINE, 1, SimpleObjectCamelCaseIntEnumVal.Third, 999999L, 1.1d, "example"){{ - bigintStrVal = "inhere"; - bigintVal = 643104L; + bigintStrVal = "string"; + bigintVal = 281697L; boolOptVal = true; - decimalVal = 1327.04d; + decimalVal = 9976.38d; intOptNullVal = 999999L; numOptNullVal = 1.1d; strOptVal = "optional example"; @@ -2187,7 +2187,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostComplexNumberTypesRequest req = new RequestBodyPostComplexNumberTypesRequest(new ComplexNumberTypes(765757L, "Metal calculating Lamborghini", 9373.95d, "Royce"), 958218L, "male ASCII", 1464.39d, "Lancaster hertz young", 338976L, "Northwest", 3970.19d, "Toyota"); + RequestBodyPostComplexNumberTypesRequest req = new RequestBodyPostComplexNumberTypesRequest(new ComplexNumberTypes(765757L, "string", 9344.87d, "string"), 250514L, "string", 6831.11d, "string", 500580L, "string", 7419.03d, "string"); RequestBodyPostComplexNumberTypesResponse res = sdk.requestBodies.requestBodyPostComplexNumberTypes(req); @@ -2242,21 +2242,21 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.DefaultsAndConsts req = new DefaultsAndConsts(559205L, "Chief", false, LocalDate.parse("2021-05-03"), OffsetDateTime.parse("2023-07-14T17:39:00.984Z"), 2995.45d, "invoice Cotton", DefaultsAndConstsConstEnumInt.TWO, DefaultsAndConstsConstEnumStr.ONE, 788517L, 639.73d, "Account", "Dysprosium", "qui"){{ - defaultBigInt = 615609L; - defaultBigIntStr = "Configuration Lane Music"; + org.openapis.openapi.models.shared.DefaultsAndConsts req = new DefaultsAndConsts(559205L, "string", false, LocalDate.parse("2021-09-13"), OffsetDateTime.parse("2022-12-15T04:16:08.794Z"), 9160.69d, "string", DefaultsAndConstsConstEnumInt.ONE, DefaultsAndConstsConstEnumStr.THREE, 299545L, 4612.63d, "string", "string", "string"){{ + defaultBigInt = 450379L; + defaultBigIntStr = "string"; defaultBool = false; - defaultDate = LocalDate.parse("2023-07-16"); - defaultDateTime = OffsetDateTime.parse("2021-06-28T10:07:28.276Z"); - defaultDecimal = 3014.85d; - defaultDecimalStr = "South Hafnium amid"; - defaultEnumInt = DefaultsAndConstsDefaultEnumInt.THREE; + defaultDate = LocalDate.parse("2023-04-28"); + defaultDateTime = OffsetDateTime.parse("2021-10-01T11:08:55.738Z"); + defaultDecimal = 4585.94d; + defaultDecimalStr = "string"; + defaultEnumInt = DefaultsAndConstsDefaultEnumInt.TWO; defaultEnumStr = DefaultsAndConstsDefaultEnumStr.ONE; - defaultInt = 77435L; - defaultNum = 6102.85d; - defaultStr = "Electric Diesel"; - defaultStrNullable = "silver Central"; - defaultStrOptional = "Gasoline Pines boo"; + defaultInt = 788517L; + defaultNum = 639.73d; + defaultStr = "string"; + defaultStrNullable = "string"; + defaultStrOptional = "string"; }}; RequestBodyPostDefaultsAndConstsResponse res = sdk.requestBodies.requestBodyPostDefaultsAndConsts(req); @@ -2408,7 +2408,7 @@ public class Application { strOpt = "testOptional"; }}), }}, true, 1L, new java.util.HashMap(){{ - put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -2428,7 +2428,7 @@ public class Application { str = "test"; strOpt = "testOptional"; }}); - put("key2", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ any = "any"; bigint = 8821239038968084L; bigintStr = "9223372036854775808"; @@ -2458,7 +2458,7 @@ intOptNull = 919389L; numOptNull = 467.92d; strOpt = "testOptional"; }}, "test"){{ - type = "Forward"; + type = "string"; }}; RequestBodyPostFormDeepResponse res = sdk.requestBodies.requestBodyPostFormDeep(req); @@ -2508,7 +2508,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("complexity", "SUV"); + put("key", "string"); }}; RequestBodyPostFormMapPrimitiveResponse res = sdk.requestBodies.requestBodyPostFormMapPrimitive(req); @@ -2721,7 +2721,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new String[]{{ - add("Group East incentivize"), + add("string"), }}; RequestBodyPostJsonDataTypesArrayDecimalStrResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesArrayDecimalStr(req); @@ -2818,7 +2818,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "pixel gray"; + org.openapis.openapi.models.. req = "string"; RequestBodyPostJsonDataTypesBigIntStrResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesBigIntStr(req); @@ -3058,7 +3058,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "gadzooks Luxurious"; + org.openapis.openapi.models.. req = "string"; RequestBodyPostJsonDataTypesDecimalStrResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesDecimalStr(req); @@ -3251,7 +3251,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Nepal", "Creative"); + put("key", "string"); }}; RequestBodyPostJsonDataTypesMapBigIntStrResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesMapBigIntStr(req); @@ -3301,7 +3301,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("quantify", OffsetDateTime.parse("2022-02-12T21:23:09.538Z")); + put("key", OffsetDateTime.parse("2022-09-03T18:52:14.477Z")); }}; RequestBodyPostJsonDataTypesMapDateTimeResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesMapDateTime(req); @@ -3351,7 +3351,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Inverse", 9134.24d); + put("key", 3472.82d); }}; RequestBodyPostJsonDataTypesMapDecimalResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesMapDecimal(req); @@ -3448,7 +3448,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Gasoline"; + org.openapis.openapi.models.. req = "string"; RequestBodyPostJsonDataTypesStringResponse res = sdk.requestBodies.requestBodyPostJsonDataTypesString(req); @@ -3560,7 +3560,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON req = new RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON(false, 3558.41d, "Van"); + RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON req = new RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON(false, 3558.41d, "string"); RequestBodyPostMultipleContentTypesInlineFilteredResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesInlineFiltered(req); @@ -3610,11 +3610,11 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesSplitParamFormResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamForm(new RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded(false, 6851.58d, "AI"){{ + RequestBodyPostMultipleContentTypesSplitParamFormResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamForm(new RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded(false, 1802.67d, "string"){{ bool3 = false; num3 = 8693.24d; - str3 = "Compatible"; - }}, "strategic"); + str3 = "string"; + }}, "string"); if (res.res != null) { // handle response @@ -3663,11 +3663,11 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesSplitParamJsonResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamJson(new RequestBodyPostMultipleContentTypesSplitParamApplicationJSON(false, 6750.87d, "Taka"){{ + RequestBodyPostMultipleContentTypesSplitParamJsonResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamJson(new RequestBodyPostMultipleContentTypesSplitParamApplicationJSON(false, 5784.1d, "string"){{ bool = false; num = 9771.91d; - str = "South networks"; - }}, "Gardens"); + str = "string"; + }}, "string"); if (res.res != null) { // handle response @@ -3716,11 +3716,11 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesSplitParamMultipartResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamMultipart(new RequestBodyPostMultipleContentTypesSplitParamMultipartFormData(false, 2347.27d, "East"){{ + RequestBodyPostMultipleContentTypesSplitParamMultipartResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamMultipart(new RequestBodyPostMultipleContentTypesSplitParamMultipartFormData(false, 6115.78d, "string"){{ bool2 = false; num2 = 7000.76d; - str2 = "Ball Southwest"; - }}, "JSON"); + str2 = "string"; + }}, "string"); if (res.res != null) { // handle response @@ -3768,7 +3768,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded req = new RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded(false, 7842.07d, "encryption"); + RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded req = new RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded(false, 7842.07d, "string"); RequestBodyPostMultipleContentTypesSplitFormResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitForm(req); @@ -3817,7 +3817,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesSplitApplicationJSON req = new RequestBodyPostMultipleContentTypesSplitApplicationJSON(false, 2445.56d, "Wagon"); + RequestBodyPostMultipleContentTypesSplitApplicationJSON req = new RequestBodyPostMultipleContentTypesSplitApplicationJSON(false, 2445.56d, "string"); RequestBodyPostMultipleContentTypesSplitJsonResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitJson(req); @@ -3866,7 +3866,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPostMultipleContentTypesSplitMultipartFormData req = new RequestBodyPostMultipleContentTypesSplitMultipartFormData(false, 2079.2d, "green"); + RequestBodyPostMultipleContentTypesSplitMultipartFormData req = new RequestBodyPostMultipleContentTypesSplitMultipartFormData(false, 2079.2d, "string"); RequestBodyPostMultipleContentTypesSplitMultipartResponse res = sdk.requestBodies.requestBodyPostMultipleContentTypesSplitMultipart(req); @@ -3914,7 +3914,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Chicken"; + org.openapis.openapi.models.. req = "string"; RequestBodyPostNotNullableNotRequiredStringBodyResponse res = sdk.requestBodies.requestBodyPostNotNullableNotRequiredStringBody(req); @@ -3963,7 +3963,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new String[]{{ - add("simple"), + add("string"), }}; RequestBodyPostNullArrayResponse res = sdk.requestBodies.requestBodyPostNullArray(req); @@ -4013,7 +4013,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Intersex", "robust"); + put("key", "string"); }}; RequestBodyPostNullDictionaryResponse res = sdk.requestBodies.requestBodyPostNullDictionary(req); @@ -4062,7 +4062,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Michigan"; + org.openapis.openapi.models.. req = "string"; RequestBodyPostNullableNotRequiredStringBodyResponse res = sdk.requestBodies.requestBodyPostNullableNotRequiredStringBody(req); @@ -4110,7 +4110,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Mouse"; + org.openapis.openapi.models.. req = "string"; RequestBodyPostNullableRequiredStringBodyResponse res = sdk.requestBodies.requestBodyPostNullableRequiredStringBody(req); @@ -4207,7 +4207,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPutBytesWithParamsResponse res = sdk.requestBodies.requestBodyPutBytesWithParams("o%jIWe4_P6".getBytes(), "Huntington"); + RequestBodyPutBytesWithParamsResponse res = sdk.requestBodies.requestBodyPutBytesWithParams("o%jIWe4_P6".getBytes(), "string"); if (res.res != null) { // handle response @@ -4353,7 +4353,7 @@ intOptNull = 827095L; numOptNull = 2043.79d; strOpt = "testOptional"; }}, "test"){{ - type = "Reggae lustrous Operative"; + type = "string"; }}; RequestBodyPutMultipartDeepResponse res = sdk.requestBodies.requestBodyPutMultipartDeep(req); @@ -4405,7 +4405,7 @@ public class Application { .build(); RequestBodyPutMultipartDifferentFileNameRequestBody req = new RequestBodyPutMultipartDifferentFileNameRequestBody(){{ - differentFileName = new RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName("Y}'H[5/Z[,".getBytes(), "Lek"); + differentFileName = new RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName("Y}'H[5/Z[,".getBytes(), "string"); }}; RequestBodyPutMultipartDifferentFileNameResponse res = sdk.requestBodies.requestBodyPutMultipartDifferentFileName(req); @@ -4457,7 +4457,7 @@ public class Application { .build(); RequestBodyPutMultipartFileRequestBody req = new RequestBodyPutMultipartFileRequestBody(){{ - file = new RequestBodyPutMultipartFileRequestBodyFile("OJa,v`.FW-".getBytes(), "veniam"); + file = new RequestBodyPutMultipartFileRequestBodyFile("OJa,v`.FW-".getBytes(), "string"); }}; RequestBodyPutMultipartFileResponse res = sdk.requestBodies.requestBodyPutMultipartFile(req); @@ -4569,7 +4569,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "meh"; + org.openapis.openapi.models.. req = "string"; RequestBodyPutStringResponse res = sdk.requestBodies.requestBodyPutString(req); @@ -4618,7 +4618,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RequestBodyPutStringWithParamsResponse res = sdk.requestBodies.requestBodyPutStringWithParams("SMTP", "Unbranded"); + RequestBodyPutStringWithParamsResponse res = sdk.requestBodies.requestBodyPutStringWithParams("string", "string"); if (res.res != null) { // handle response @@ -4765,7 +4765,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Kids"; + org.openapis.openapi.models.. req = "string"; RequestBodyReadOnlyUnionResponse res = sdk.requestBodies.requestBodyReadOnlyUnion(req); @@ -4814,7 +4814,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "thoughtfully"; + org.openapis.openapi.models.. req = "string"; RequestBodyReadWriteOnlyUnionResponse res = sdk.requestBodies.requestBodyReadWriteOnlyUnion(req); @@ -4864,7 +4864,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.WriteOnlyObject req = new WriteOnlyObject(false, 3888.42d, "intuitive"); + org.openapis.openapi.models.shared.WriteOnlyObject req = new WriteOnlyObject(false, 3888.42d, "string"); RequestBodyWriteOnlyResponse res = sdk.requestBodies.requestBodyWriteOnly(req); @@ -4914,7 +4914,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.WriteOnlyObject req = new WriteOnlyObject(false, 3867.69d, "copy"); + org.openapis.openapi.models.shared.WriteOnlyObject req = new WriteOnlyObject(false, 3867.69d, "string"); RequestBodyWriteOnlyOutputResponse res = sdk.requestBodies.requestBodyWriteOnlyOutput(req); @@ -4963,7 +4963,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Fitness"; + org.openapis.openapi.models.. req = "string"; RequestBodyWriteOnlyUnionResponse res = sdk.requestBodies.requestBodyWriteOnlyUnion(req); diff --git a/java-client-sdk/docs/sdks/resource/README.md b/java-client-sdk/docs/sdks/resource/README.md index e1ad0e0d9..000ddb5b1 100755 --- a/java-client-sdk/docs/sdks/resource/README.md +++ b/java-client-sdk/docs/sdks/resource/README.md @@ -34,7 +34,7 @@ public class Application { .build(); CreateFileRequestBody req = new CreateFileRequestBody(){{ - file = new CreateFileRequestBodyFile("`'$Z`(L/RH".getBytes(), "Persevering"); + file = new CreateFileRequestBodyFile("`'$Z`(L/RH".getBytes(), "string"); }}; CreateFileResponse res = sdk.resource.createFile(req); @@ -89,26 +89,26 @@ public class Application { .build(); org.openapis.openapi.models.shared.ExampleResource req = new ExampleResource(new org.openapis.openapi.models.shared.ExampleResourceChocolates[]{{ - add(new ExampleResourceChocolates("Northwest"){{ + add(new ExampleResourceChocolates("string"){{ description = "Digitized optimal archive"; }}), -}}, "woot", "Florida", "an"){{ +}}, "string", "string", "string"){{ arrayOfNumber = new Double[]{{ - add(951.5d), + add(1124.19d), }}; arrayOfString = new String[]{{ - add("utilize"), + add("string"), }}; - createdAt = OffsetDateTime.parse("2021-09-27T19:55:47.964Z"); - enumNumber = ExampleResourceEnumNumber.TWO; + createdAt = OffsetDateTime.parse("2021-10-25T14:40:21.269Z"); + enumNumber = ExampleResourceEnumNumber.THREE; enumStr = ExampleResourceEnumStr.TWO; mapOfInteger = new java.util.HashMap(){{ - put("experiences", 29672L); + put("key", 125983L); }}; mapOfString = new java.util.HashMap(){{ - put("purple", "South"); + put("key", "string"); }}; - updatedAt = OffsetDateTime.parse("2022-12-02T03:05:49.626Z"); + updatedAt = OffsetDateTime.parse("2021-07-09T15:40:32.497Z"); }}; CreateResourceResponse res = sdk.resource.createResource(req); @@ -158,7 +158,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - DeleteResourceResponse res = sdk.resource.deleteResource("Reggae"); + DeleteResourceResponse res = sdk.resource.deleteResource("string"); if (res.statusCode == 200) { // handle response @@ -205,7 +205,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - GetResourceResponse res = sdk.resource.getResource("Home"); + GetResourceResponse res = sdk.resource.getResource("string"); if (res.exampleResource != null) { // handle response @@ -252,7 +252,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - UpdateResourceResponse res = sdk.resource.updateResource("International"); + UpdateResourceResponse res = sdk.resource.updateResource("string"); if (res.statusCode == 200) { // handle response diff --git a/java-client-sdk/docs/sdks/responsebodies/README.md b/java-client-sdk/docs/sdks/responsebodies/README.md index 66f8f8f4e..0156dd2da 100755 --- a/java-client-sdk/docs/sdks/responsebodies/README.md +++ b/java-client-sdk/docs/sdks/responsebodies/README.md @@ -9,6 +9,7 @@ Endpoints for testing response bodies. * [responseBodyAdditionalPropertiesComplexNumbersPost](#responsebodyadditionalpropertiescomplexnumberspost) * [responseBodyAdditionalPropertiesDatePost](#responsebodyadditionalpropertiesdatepost) +* [responseBodyAdditionalPropertiesObjectPost](#responsebodyadditionalpropertiesobjectpost) * [responseBodyAdditionalPropertiesPost](#responsebodyadditionalpropertiespost) * [responseBodyBytesGet](#responsebodybytesget) * [responseBodyEmptyWithHeaders](#responsebodyemptywithheaders) @@ -41,7 +42,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("ASCII", "Wagon Account cultivate"); + put("key", "string"); }}; ResponseBodyAdditionalPropertiesComplexNumbersPostResponse res = sdk.responseBodies.responseBodyAdditionalPropertiesComplexNumbersPost(req); @@ -91,7 +92,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Bedfordshire", LocalDate.parse("2021-04-22")); + put("key", LocalDate.parse("2021-03-16")); }}; ResponseBodyAdditionalPropertiesDatePostResponse res = sdk.responseBodies.responseBodyAdditionalPropertiesDatePost(req); @@ -118,6 +119,81 @@ public class Application { **[org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md)** +## responseBodyAdditionalPropertiesObjectPost + +### Example Usage + +```java +package hello.world; + +import java.time.LocalDate; +import java.time.OffsetDateTime; +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPostResponse; +import org.openapis.openapi.models.shared.Enum; +import org.openapis.openapi.models.shared.Security; +import org.openapis.openapi.models.shared.SimpleObject; +import org.openapis.openapi.models.shared.SimpleObjectInt32Enum; +import org.openapis.openapi.models.shared.SimpleObjectIntEnum; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + org.openapis.openapi.models.. req = new java.util.HashMap(){{ + put("key", new SimpleObject("any", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"), Enum.ONE, 1.1f, 1L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1d, "test"){{ + any = "any"; + bigint = 8821239038968084L; + bigintStr = "9223372036854775808"; + bool = true; + boolOpt = true; + date = LocalDate.parse("2020-01-01"); + dateTime = OffsetDateTime.parse("2020-01-01T00:00:00.000000001Z"); + decimal = 3.141592653589793d; + decimalStr = "3.14159265358979344719667586"; + enum_ = Enum.ONE; + float32 = 1.1f; + int_ = 1L; + int32 = 1; + int32Enum = SimpleObjectInt32Enum.FIFTY_FIVE; + intEnum = SimpleObjectIntEnum.Second; + num = 1.1d; + str = "test"; + strOpt = "testOptional"; + }}); + }}; + + ResponseBodyAdditionalPropertiesObjectPostResponse res = sdk.responseBodies.responseBodyAdditionalPropertiesObjectPost(req); + + if (res.responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [java.util.Map](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPostResponse](../../models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md)** + + ## responseBodyAdditionalPropertiesPost ### Example Usage @@ -141,7 +217,7 @@ public class Application { .build(); org.openapis.openapi.models.. req = new java.util.HashMap(){{ - put("Ergonomic", "Carolina"); + put("key", "string"); }}; ResponseBodyAdditionalPropertiesPostResponse res = sdk.responseBodies.responseBodyAdditionalPropertiesPost(req); @@ -231,7 +307,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - ResponseBodyEmptyWithHeadersResponse res = sdk.responseBodies.responseBodyEmptyWithHeaders(1751.8d, "Tigard"); + ResponseBodyEmptyWithHeadersResponse res = sdk.responseBodies.responseBodyEmptyWithHeaders(1751.8d, "string"); if (res.statusCode == 200) { // handle response @@ -455,10 +531,10 @@ public class Application { org.openapis.openapi.models.shared.ObjWithZeroValueComplexTypePtrs req = new ObjWithZeroValueComplexTypePtrs(){{ bigint = 438531L; - bigintStr = "concrete input"; + bigintStr = "string"; date = LocalDate.parse("2020-01-01"); dateTime = OffsetDateTime.parse("2020-01-01T00:00:00Z"); - decimal = 6267.89d; + decimal = 4843.38d; }}; ResponseBodyZeroValueComplexTypePtrsPostResponse res = sdk.responseBodies.responseBodyZeroValueComplexTypePtrsPost(req); diff --git a/java-client-sdk/docs/sdks/retries/README.md b/java-client-sdk/docs/sdks/retries/README.md index 5e11ab6d5..9ceea9374 100755 --- a/java-client-sdk/docs/sdks/retries/README.md +++ b/java-client-sdk/docs/sdks/retries/README.md @@ -32,7 +32,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - RetriesGetResponse res = sdk.retries.retriesGet("Cambridgeshire", 496130L); + RetriesGetResponse res = sdk.retries.retriesGet("string", 75342L); if (res.retries != null) { // handle response diff --git a/java-client-sdk/docs/sdks/sdk/README.md b/java-client-sdk/docs/sdks/sdk/README.md index 1ccf740e0..0a9a49bc0 100755 --- a/java-client-sdk/docs/sdks/sdk/README.md +++ b/java-client-sdk/docs/sdks/sdk/README.md @@ -35,7 +35,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "bus"; + org.openapis.openapi.models.. req = "string"; PutAnythingIgnoredGenerationResponse res = sdk.sdk.putAnythingIgnoredGeneration(req); diff --git a/java-client-sdk/docs/sdks/telemetry/README.md b/java-client-sdk/docs/sdks/telemetry/README.md index e9c8084ee..2942bdedc 100755 --- a/java-client-sdk/docs/sdks/telemetry/README.md +++ b/java-client-sdk/docs/sdks/telemetry/README.md @@ -33,7 +33,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - TelemetrySpeakeasyUserAgentGetResponse res = sdk.telemetry.telemetrySpeakeasyUserAgentGet("Bentley"); + TelemetrySpeakeasyUserAgentGetResponse res = sdk.telemetry.telemetrySpeakeasyUserAgentGet("string"); if (res.res != null) { // handle response diff --git a/java-client-sdk/docs/sdks/unions/README.md b/java-client-sdk/docs/sdks/unions/README.md index 23d464ec2..884c22c1e 100755 --- a/java-client-sdk/docs/sdks/unions/README.md +++ b/java-client-sdk/docs/sdks/unions/README.md @@ -17,6 +17,8 @@ Endpoints for testing union types. * [stronglyTypedOneOfPost](#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [typedObjectOneOfPost](#typedobjectoneofpost) +* [unionDateNull](#uniondatenull) +* [unionDateTimeNull](#uniondatetimenull) * [weaklyTypedOneOfPost](#weaklytypedoneofpost) ## flattenedTypedObjectPost @@ -41,7 +43,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Legacy"; + org.openapis.openapi.models.. req = "string"; FlattenedTypedObjectPostResponse res = sdk.unions.flattenedTypedObjectPost(req); @@ -89,7 +91,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "SAS"; + org.openapis.openapi.models.. req = "string"; MixedTypeOneOfPostResponse res = sdk.unions.mixedTypeOneOfPost(req); @@ -140,7 +142,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.NullableOneOfRefInObject req = new NullableOneOfRefInObject(new TypedObject1(TypedObject1Type.OBJ1, "bah"), "back", "administration"); + org.openapis.openapi.models.shared.NullableOneOfRefInObject req = new NullableOneOfRefInObject(new TypedObject1(TypedObject1Type.OBJ1, "string"), "string", "string"); NullableOneOfRefInObjectPostResponse res = sdk.unions.nullableOneOfRefInObjectPost(req); @@ -188,7 +190,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "deliquesce"; + org.openapis.openapi.models.. req = "string"; NullableOneOfSchemaPostResponse res = sdk.unions.nullableOneOfSchemaPost(req); @@ -237,7 +239,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.NullableOneOfTypeInObject req = new NullableOneOfTypeInObject(false, "Smart", false); + org.openapis.openapi.models.shared.NullableOneOfTypeInObject req = new NullableOneOfTypeInObject(false, "string", false); NullableOneOfTypeInObjectPostResponse res = sdk.unions.nullableOneOfTypeInObjectPost(req); @@ -287,7 +289,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.shared.TypedObject1 req = new TypedObject1(TypedObject1Type.OBJ1, "Bedfordshire"); + org.openapis.openapi.models.shared.TypedObject1 req = new TypedObject1(TypedObject1Type.OBJ1, "string"); NullableTypedObjectPostResponse res = sdk.unions.nullableTypedObjectPost(req); @@ -335,7 +337,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Grocery"; + org.openapis.openapi.models.. req = "string"; PrimitiveTypeOneOfPostResponse res = sdk.unions.primitiveTypeOneOfPost(req); @@ -383,7 +385,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "spicy"; + org.openapis.openapi.models.. req = "string"; StronglyTypedOneOfPostResponse res = sdk.unions.stronglyTypedOneOfPost(req); @@ -431,7 +433,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Agender"; + org.openapis.openapi.models.. req = "string"; TypedObjectNullableOneOfPostResponse res = sdk.unions.typedObjectNullableOneOfPost(req); @@ -479,7 +481,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "shrivel"; + org.openapis.openapi.models.. req = "string"; TypedObjectOneOfPostResponse res = sdk.unions.typedObjectOneOfPost(req); @@ -505,6 +507,102 @@ public class Application { **[org.openapis.openapi.models.operations.TypedObjectOneOfPostResponse](../../models/operations/TypedObjectOneOfPostResponse.md)** +## unionDateNull + +### Example Usage + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.UnionDateNullResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + org.openapis.openapi.models.. req = LocalDate.parse("2022-11-25"); + + UnionDateNullResponse res = sdk.unions.unionDateNull(req); + + if (res.res != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [LocalDate](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[org.openapis.openapi.models.operations.UnionDateNullResponse](../../models/operations/UnionDateNullResponse.md)** + + +## unionDateTimeNull + +### Example Usage + +```java +package hello.world; + +import org.openapis.openapi.SDK; +import org.openapis.openapi.models.operations.UnionDateTimeNullResponse; +import org.openapis.openapi.models.shared.Security; + +public class Application { + public static void main(String[] args) { + try { + SDK sdk = SDK.builder() + .setSecurity(new Security(){{ + apiKeyAuth = "Token YOUR_API_KEY"; + }}) + .setGlobalPathParam(100L) + .setGlobalQueryParam("some example global query param") + .build(); + + org.openapis.openapi.models.. req = OffsetDateTime.parse("2022-04-12T19:39:53.907Z"); + + UnionDateTimeNullResponse res = sdk.unions.unionDateTimeNull(req); + + if (res.res != null) { + // handle response + } + } catch (Exception e) { + // handle exception + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [OffsetDateTime](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[org.openapis.openapi.models.operations.UnionDateTimeNullResponse](../../models/operations/UnionDateTimeNullResponse.md)** + + ## weaklyTypedOneOfPost ### Example Usage @@ -527,7 +625,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - org.openapis.openapi.models.. req = "Unbranded"; + org.openapis.openapi.models.. req = "string"; WeaklyTypedOneOfPostResponse res = sdk.unions.weaklyTypedOneOfPost(req); diff --git a/java-client-sdk/files.gen b/java-client-sdk/files.gen index b5096239d..e669de8eb 100755 --- a/java-client-sdk/files.gen +++ b/java-client-sdk/files.gen @@ -153,6 +153,12 @@ lib/src/main/java/org/openapis/openapi/models/operations/TypeFromAnchor.java lib/src/main/java/org/openapis/openapi/models/operations/AnchorTypesGetResponse.java lib/src/main/java/org/openapis/openapi/models/operations/ArrayCircularReferenceGetResponse.java lib/src/main/java/org/openapis/openapi/models/operations/CircularReferenceGetResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultResponse.java lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedFieldInSchemaPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.java lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedObjectInSchemaGetResponse.java @@ -230,6 +236,12 @@ lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsArrayReq lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsArrayResArgs.java lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsArrayRes.java lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsArrayResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParam.java +lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParamExploded.java +lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRequest.java +lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResArgs.java +lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRes.java +lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResponse.java lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsMapRequest.java lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsMapRes.java lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsMapResponse.java @@ -478,6 +490,8 @@ lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalP lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.java lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.java +lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.java lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyBytesGetResponse.java @@ -524,6 +538,10 @@ lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectNullableOneO lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectNullableOneOfPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectOneOfPostRes.java lib/src/main/java/org/openapis/openapi/models/operations/TypedObjectOneOfPostResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullRes.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullResponse.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullRes.java +lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullResponse.java lib/src/main/java/org/openapis/openapi/models/operations/WeaklyTypedOneOfPostRes.java lib/src/main/java/org/openapis/openapi/models/operations/WeaklyTypedOneOfPostResponse.java lib/src/main/java/org/openapis/openapi/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.java @@ -534,6 +552,7 @@ lib/src/main/java/org/openapis/openapi/models/shared/AuthServiceRequestBodyHeade lib/src/main/java/org/openapis/openapi/models/shared/AuthServiceRequestBody.java lib/src/main/java/org/openapis/openapi/models/shared/SchemeBasicAuth.java lib/src/main/java/org/openapis/openapi/models/shared/Security.java +lib/src/main/java/org/openapis/openapi/models/shared/ErrorType.java lib/src/main/java/org/openapis/openapi/models/shared/Error.java lib/src/main/java/org/openapis/openapi/models/shared/SimpleObjectInt32Enum.java lib/src/main/java/org/openapis/openapi/models/shared/SimpleObjectIntEnum.java @@ -680,6 +699,12 @@ docs/models/operations/TypeFromAnchor.md docs/models/operations/AnchorTypesGetResponse.md docs/models/operations/ArrayCircularReferenceGetResponse.md docs/models/operations/CircularReferenceGetResponse.md +docs/models/operations/DateParamWithDefaultRequest.md +docs/models/operations/DateParamWithDefaultResponse.md +docs/models/operations/DateTimeParamWithDefaultRequest.md +docs/models/operations/DateTimeParamWithDefaultResponse.md +docs/models/operations/DecimalParamWithDefaultRequest.md +docs/models/operations/DecimalParamWithDefaultResponse.md docs/models/operations/DeprecatedFieldInSchemaPostResponse.md docs/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md docs/models/operations/DeprecatedObjectInSchemaGetResponse.md @@ -757,6 +782,12 @@ docs/models/operations/FormQueryParamsArrayRequest.md docs/models/operations/FormQueryParamsArrayResArgs.md docs/models/operations/FormQueryParamsArrayRes.md docs/models/operations/FormQueryParamsArrayResponse.md +docs/models/operations/FormQueryParamsCamelObjectObjParam.md +docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md +docs/models/operations/FormQueryParamsCamelObjectRequest.md +docs/models/operations/FormQueryParamsCamelObjectResArgs.md +docs/models/operations/FormQueryParamsCamelObjectRes.md +docs/models/operations/FormQueryParamsCamelObjectResponse.md docs/models/operations/FormQueryParamsMapRequest.md docs/models/operations/FormQueryParamsMapRes.md docs/models/operations/FormQueryParamsMapResponse.md @@ -1005,6 +1036,8 @@ docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200Appl docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md docs/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md docs/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md +docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md +docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md docs/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md docs/models/operations/ResponseBodyAdditionalPropertiesPostResponse.md docs/models/operations/ResponseBodyBytesGetResponse.md @@ -1051,6 +1084,10 @@ docs/models/operations/TypedObjectNullableOneOfPostRes.md docs/models/operations/TypedObjectNullableOneOfPostResponse.md docs/models/operations/TypedObjectOneOfPostRes.md docs/models/operations/TypedObjectOneOfPostResponse.md +docs/models/operations/UnionDateNullRes.md +docs/models/operations/UnionDateNullResponse.md +docs/models/operations/UnionDateTimeNullRes.md +docs/models/operations/UnionDateTimeNullResponse.md docs/models/operations/WeaklyTypedOneOfPostRes.md docs/models/operations/WeaklyTypedOneOfPostResponse.md docs/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md @@ -1061,6 +1098,7 @@ docs/models/shared/AuthServiceRequestBodyHeaderAuth.md docs/models/shared/AuthServiceRequestBody.md docs/models/shared/SchemeBasicAuth.md docs/models/shared/Security.md +docs/models/shared/ErrorType.md docs/models/shared/Error.md docs/models/shared/SimpleObjectInt32Enum.md docs/models/shared/SimpleObjectIntEnum.md diff --git a/java-client-sdk/gen.yaml b/java-client-sdk/gen.yaml index 5623d9b08..f0e6e9d5d 100755 --- a/java-client-sdk/gen.yaml +++ b/java-client-sdk/gen.yaml @@ -1,19 +1,20 @@ configVersion: 1.0.0 management: - docChecksum: d6c132f7bde6e79f0552a47119432f96 + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d docVersion: 0.1.0 - speakeasyVersion: 1.99.0 - generationVersion: 2.154.1 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git sdkClassName: SDK singleTagPerOp: false features: java: - core: 2.90.0 + core: 2.94.0 deprecations: 2.81.1 - docs: 0.0.2 + docs: 0.0.3 enums: 2.81.1 - examples: 2.81.2 + examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 @@ -27,7 +28,7 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 java: - version: 1.37.0 + version: 1.38.0 artifactID: openapi companyEmail: info@mycompany.com companyName: My Company @@ -37,3 +38,5 @@ java: maxMethodParams: 5 ossrhURL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ projectName: openapi + published: true + repoSubDirectory: java-client-sdk diff --git a/java-client-sdk/gradlew.bat b/java-client-sdk/gradlew.bat index f127cfd49..53a6b238d 100755 --- a/java-client-sdk/gradlew.bat +++ b/java-client-sdk/gradlew.bat @@ -1,91 +1,91 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/java-client-sdk/lib/build.gradle b/java-client-sdk/lib/build.gradle index 6cdcd5ae7..13fbec2dd 100755 --- a/java-client-sdk/lib/build.gradle +++ b/java-client-sdk/lib/build.gradle @@ -29,6 +29,19 @@ java { withJavadocJar() } +model { + tasks.generatePomFileForMavenPublication { + destination = file("$buildDir/pom.xml") + } +} + +jar { + dependsOn(":$project.name:generatePomFileForMavenPublication") + into("META-INF/maven/org.openapis/openapi") { + from("$buildDir/pom.xml") + } +} + publishing { repositories { maven { @@ -44,7 +57,7 @@ publishing { maven(MavenPublication) { groupId = 'org.openapis' artifactId = 'openapi' - version = '1.37.0' + version = '1.38.0' from components.java @@ -78,11 +91,13 @@ publishing { } } -signing { - def signingKey = findProperty("signingKey") - def signingPassphrase = findProperty("signingPassphrase") - useInMemoryPgpKeys(signingKey, signingPassphrase) - sign publishing.publications.maven +if (!project.hasProperty('skip.signing')) { + signing { + def signingKey = findProperty("signingKey") + def signingPassphrase = findProperty("signingPassphrase") + useInMemoryPgpKeys(signingKey, signingPassphrase) + sign publishing.publications.maven + } } javadoc { diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java index d209fa98d..6432dd3cf 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java @@ -8,6 +8,7 @@ import java.net.http.HttpResponse; import java.nio.charset.StandardCharsets; import java.time.LocalDate; +import java.time.OffsetDateTime; import org.apache.http.NameValuePair; import org.openapis.openapi.utils.HTTPClient; import org.openapis.openapi.utils.HTTPRequest; @@ -124,6 +125,111 @@ public org.openapis.openapi.models.operations.CircularReferenceGetResponse circu return res; } + public org.openapis.openapi.models.operations.DateParamWithDefaultResponse dateParamWithDefault(LocalDate dateInput) throws Exception { + org.openapis.openapi.models.operations.DateParamWithDefaultRequest request = new org.openapis.openapi.models.operations.DateParamWithDefaultRequest(dateInput); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/dateParamWithDefault"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "*/*"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.DateParamWithDefaultRequest.class, request, this.sdkConfiguration.globals); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.DateParamWithDefaultResponse res = new org.openapis.openapi.models.operations.DateParamWithDefaultResponse(contentType, httpRes.statusCode()) {{ + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 204) { + } + + return res; + } + + public org.openapis.openapi.models.operations.DateTimeParamWithDefaultResponse dateTimeParamWithDefault(OffsetDateTime dateTimeInput) throws Exception { + org.openapis.openapi.models.operations.DateTimeParamWithDefaultRequest request = new org.openapis.openapi.models.operations.DateTimeParamWithDefaultRequest(dateTimeInput); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/dateTimeParamWithDefault"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "*/*"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.DateTimeParamWithDefaultRequest.class, request, this.sdkConfiguration.globals); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.DateTimeParamWithDefaultResponse res = new org.openapis.openapi.models.operations.DateTimeParamWithDefaultResponse(contentType, httpRes.statusCode()) {{ + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 204) { + } + + return res; + } + + public org.openapis.openapi.models.operations.DecimalParamWithDefaultResponse decimalParamWithDefault(Double decimalInput) throws Exception { + org.openapis.openapi.models.operations.DecimalParamWithDefaultRequest request = new org.openapis.openapi.models.operations.DecimalParamWithDefaultRequest(decimalInput); + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/decimalParamWithDefault"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "*/*"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.DecimalParamWithDefaultRequest.class, request, this.sdkConfiguration.globals); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.DecimalParamWithDefaultResponse res = new org.openapis.openapi.models.operations.DecimalParamWithDefaultResponse(contentType, httpRes.statusCode()) {{ + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 204) { + } + + return res; + } + public org.openapis.openapi.models.operations.DeprecatedFieldInSchemaPostResponse deprecatedFieldInSchemaPost(org.openapis.openapi.models.shared.DeprecatedFieldInObject request) throws Exception { String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/deprecatedFieldInSchema"); diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Parameters.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Parameters.java index a9bc7d261..312c79024 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Parameters.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Parameters.java @@ -203,6 +203,52 @@ public org.openapis.openapi.models.operations.FormQueryParamsArrayResponse formQ return res; } + public org.openapis.openapi.models.operations.FormQueryParamsCamelObjectResponse formQueryParamsCamelObject(org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParamExploded objParamExploded) throws Exception { + return this.formQueryParamsCamelObject(objParamExploded, null); + } + + public org.openapis.openapi.models.operations.FormQueryParamsCamelObjectResponse formQueryParamsCamelObject(org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParamExploded objParamExploded, org.openapis.openapi.models.operations.FormQueryParamsCamelObjectObjParam objParam) throws Exception { + org.openapis.openapi.models.operations.FormQueryParamsCamelObjectRequest request = new org.openapis.openapi.models.operations.FormQueryParamsCamelObjectRequest(objParamExploded); + request.objParam=objParam; + + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/queryParams/form/camelObj"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("GET"); + req.setURL(url); + + req.addHeader("Accept", "application/json"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + java.util.List queryParams = org.openapis.openapi.utils.Utils.getQueryParams(org.openapis.openapi.models.operations.FormQueryParamsCamelObjectRequest.class, request, this.sdkConfiguration.globals); + if (queryParams != null) { + for (NameValuePair queryParam : queryParams) { + req.addQueryParam(queryParam); + } + } + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.FormQueryParamsCamelObjectResponse res = new org.openapis.openapi.models.operations.FormQueryParamsCamelObjectResponse(contentType, httpRes.statusCode()) {{ + res = null; + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.FormQueryParamsCamelObjectRes out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.FormQueryParamsCamelObjectRes.class); + res.res = out; + } + } + + return res; + } + public org.openapis.openapi.models.operations.FormQueryParamsMapResponse formQueryParamsMap() throws Exception { return this.formQueryParamsMap(null, null); } diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/ResponseBodies.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/ResponseBodies.java index 4d6d943f9..01aa2bad3 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/ResponseBodies.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/ResponseBodies.java @@ -117,6 +117,44 @@ public org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesDa return res; } + public org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPostResponse responseBodyAdditionalPropertiesObjectPost(java.util.Map request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/responseBodies/additionalPropertiesObject"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + SerializedBody serializedRequestBody = org.openapis.openapi.utils.Utils.serializeRequestBody(request, "request", "json"); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(serializedRequestBody); + + req.addHeader("Accept", "application/json"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPostResponse res = new org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPostResponse(contentType, httpRes.statusCode()) {{ + responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = null; + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.class); + res.responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = out; + } + } + + return res; + } + public org.openapis.openapi.models.operations.ResponseBodyAdditionalPropertiesPostResponse responseBodyAdditionalPropertiesPost(java.util.Map request) throws Exception { String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/responseBodies/additionalProperties"); diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java index 505841e91..4f414e9e9 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDKConfiguration.java @@ -35,9 +35,9 @@ class SDKConfiguration { }}; public String language = "java"; public String openapiDocVersion = "0.1.0"; - public String sdkVersion = "1.37.0"; - public String genVersion = "2.154.1"; - public String userAgent = "speakeasy-sdk/java 1.37.0 2.154.1 0.1.0 "; + public String sdkVersion = "1.38.0"; + public String genVersion = "2.171.0"; + public String userAgent = "speakeasy-sdk/java 1.38.0 2.171.0 0.1.0 "; public Map>> globals = new HashMap>>(){{ put("parameters", new HashMap>()); }}; diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java index f0f5d7d69..81d636f83 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Unions.java @@ -7,6 +7,8 @@ import com.fasterxml.jackson.databind.ObjectMapper; import java.net.http.HttpResponse; import java.nio.charset.StandardCharsets; +import java.time.LocalDate; +import java.time.OffsetDateTime; import org.openapis.openapi.utils.HTTPClient; import org.openapis.openapi.utils.HTTPRequest; import org.openapis.openapi.utils.JSON; @@ -403,6 +405,82 @@ public org.openapis.openapi.models.operations.TypedObjectOneOfPostResponse typed return res; } + public org.openapis.openapi.models.operations.UnionDateNullResponse unionDateNull(LocalDate request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/unionDateNull"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + SerializedBody serializedRequestBody = org.openapis.openapi.utils.Utils.serializeRequestBody(request, "request", "json"); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(serializedRequestBody); + + req.addHeader("Accept", "application/json"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UnionDateNullResponse res = new org.openapis.openapi.models.operations.UnionDateNullResponse(contentType, httpRes.statusCode()) {{ + res = null; + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UnionDateNullRes out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UnionDateNullRes.class); + res.res = out; + } + } + + return res; + } + + public org.openapis.openapi.models.operations.UnionDateTimeNullResponse unionDateTimeNull(OffsetDateTime request) throws Exception { + String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); + String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/unionDateTimeNull"); + + HTTPRequest req = new HTTPRequest(); + req.setMethod("POST"); + req.setURL(url); + SerializedBody serializedRequestBody = org.openapis.openapi.utils.Utils.serializeRequestBody(request, "request", "json"); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(serializedRequestBody); + + req.addHeader("Accept", "application/json"); + req.addHeader("x-speakeasy-user-agent", this.sdkConfiguration.userAgent); + + HTTPClient client = this.sdkConfiguration.securityClient; + + HttpResponse httpRes = client.send(req); + + String contentType = httpRes.headers().firstValue("Content-Type").orElse("application/octet-stream"); + + org.openapis.openapi.models.operations.UnionDateTimeNullResponse res = new org.openapis.openapi.models.operations.UnionDateTimeNullResponse(contentType, httpRes.statusCode()) {{ + res = null; + }}; + res.rawResponse = httpRes; + + if (httpRes.statusCode() == 200) { + if (org.openapis.openapi.utils.Utils.matchContentType(contentType, "application/json")) { + ObjectMapper mapper = JSON.getMapper(); + org.openapis.openapi.models.operations.UnionDateTimeNullRes out = mapper.readValue(new String(httpRes.body(), StandardCharsets.UTF_8), org.openapis.openapi.models.operations.UnionDateTimeNullRes.class); + res.res = out; + } + } + + return res; + } + public org.openapis.openapi.models.operations.WeaklyTypedOneOfPostResponse weaklyTypedOneOfPost(Object request) throws Exception { String baseUrl = org.openapis.openapi.utils.Utils.templateUrl(this.sdkConfiguration.serverUrl, this.sdkConfiguration.getServerVariableDefaults()); String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/weaklyTypedOneOf"); diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultRequest.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultRequest.java new file mode 100755 index 000000000..bfdeba2ee --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultRequest.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.LocalDate; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class DateParamWithDefaultRequest { + /** + * A date parameter with a default value + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateInput") + public LocalDate dateInput; + + public DateParamWithDefaultRequest withDateInput(LocalDate dateInput) { + this.dateInput = dateInput; + return this; + } + + public DateParamWithDefaultRequest(@JsonProperty("dateInput") LocalDate dateInput) { + this.dateInput = dateInput; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultResponse.java new file mode 100755 index 000000000..cd82fca5f --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateParamWithDefaultResponse.java @@ -0,0 +1,49 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class DateParamWithDefaultResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public DateParamWithDefaultResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public DateParamWithDefaultResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public DateParamWithDefaultResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + public DateParamWithDefaultResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultRequest.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultRequest.java new file mode 100755 index 000000000..dca1ab332 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultRequest.java @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class DateTimeParamWithDefaultRequest { + /** + * A date time parameter with a default value + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateTimeInput") + public OffsetDateTime dateTimeInput; + + public DateTimeParamWithDefaultRequest withDateTimeInput(OffsetDateTime dateTimeInput) { + this.dateTimeInput = dateTimeInput; + return this; + } + + public DateTimeParamWithDefaultRequest(@JsonProperty("dateTimeInput") OffsetDateTime dateTimeInput) { + this.dateTimeInput = dateTimeInput; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultResponse.java new file mode 100755 index 000000000..74689b404 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DateTimeParamWithDefaultResponse.java @@ -0,0 +1,49 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class DateTimeParamWithDefaultResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public DateTimeParamWithDefaultResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public DateTimeParamWithDefaultResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public DateTimeParamWithDefaultResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + public DateTimeParamWithDefaultResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultRequest.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultRequest.java new file mode 100755 index 000000000..86dd86522 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultRequest.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class DecimalParamWithDefaultRequest { + /** + * A decimal parameter with a default value + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=decimalInput") + public Double decimalInput; + + public DecimalParamWithDefaultRequest withDecimalInput(Double decimalInput) { + this.decimalInput = decimalInput; + return this; + } + + public DecimalParamWithDefaultRequest(@JsonProperty("decimalInput") Double decimalInput) { + this.decimalInput = decimalInput; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultResponse.java new file mode 100755 index 000000000..60cb27246 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DecimalParamWithDefaultResponse.java @@ -0,0 +1,49 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class DecimalParamWithDefaultResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public DecimalParamWithDefaultResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public DecimalParamWithDefaultResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public DecimalParamWithDefaultResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + public DecimalParamWithDefaultResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParam.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParam.java new file mode 100755 index 000000000..62bf99238 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParam.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import org.openapis.openapi.utils.SpeakeasyMetadata; + +/** + * FormQueryParamsCamelObjectObjParam + */ + +public class FormQueryParamsCamelObjectObjParam { + @SpeakeasyMetadata("queryParam:name=encoded_count") + public String encodedCount; + + public FormQueryParamsCamelObjectObjParam withEncodedCount(String encodedCount) { + this.encodedCount = encodedCount; + return this; + } + + @SpeakeasyMetadata("queryParam:name=encoded_term") + public String encodedTerm; + + public FormQueryParamsCamelObjectObjParam withEncodedTerm(String encodedTerm) { + this.encodedTerm = encodedTerm; + return this; + } + + public FormQueryParamsCamelObjectObjParam(){} +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParamExploded.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParamExploded.java new file mode 100755 index 000000000..a2a92d83c --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectObjParamExploded.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import org.openapis.openapi.utils.SpeakeasyMetadata; + +/** + * FormQueryParamsCamelObjectObjParamExploded + */ + +public class FormQueryParamsCamelObjectObjParamExploded { + @SpeakeasyMetadata("queryParam:name=item_count") + public String itemCount; + + public FormQueryParamsCamelObjectObjParamExploded withItemCount(String itemCount) { + this.itemCount = itemCount; + return this; + } + + @SpeakeasyMetadata("queryParam:name=search_term") + public String searchTerm; + + public FormQueryParamsCamelObjectObjParamExploded withSearchTerm(String searchTerm) { + this.searchTerm = searchTerm; + return this; + } + + public FormQueryParamsCamelObjectObjParamExploded(){} +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRequest.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRequest.java new file mode 100755 index 000000000..219e7c67f --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRequest.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import org.openapis.openapi.utils.SpeakeasyMetadata; + + +public class FormQueryParamsCamelObjectRequest { + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=obj_param_exploded") + public FormQueryParamsCamelObjectObjParamExploded objParamExploded; + + public FormQueryParamsCamelObjectRequest withObjParamExploded(FormQueryParamsCamelObjectObjParamExploded objParamExploded) { + this.objParamExploded = objParamExploded; + return this; + } + + @SpeakeasyMetadata("queryParam:style=form,explode=false,name=obj_param") + public FormQueryParamsCamelObjectObjParam objParam; + + public FormQueryParamsCamelObjectRequest withObjParam(FormQueryParamsCamelObjectObjParam objParam) { + this.objParam = objParam; + return this; + } + + public FormQueryParamsCamelObjectRequest(@JsonProperty("obj_param_exploded") FormQueryParamsCamelObjectObjParamExploded objParamExploded) { + this.objParamExploded = objParamExploded; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRes.java new file mode 100755 index 000000000..5145e3fc8 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectRes.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * FormQueryParamsCamelObjectRes - OK + */ + +public class FormQueryParamsCamelObjectRes { + @JsonProperty("args") + public FormQueryParamsCamelObjectResArgs args; + + public FormQueryParamsCamelObjectRes withArgs(FormQueryParamsCamelObjectResArgs args) { + this.args = args; + return this; + } + + @JsonProperty("url") + public String url; + + public FormQueryParamsCamelObjectRes withUrl(String url) { + this.url = url; + return this; + } + + public FormQueryParamsCamelObjectRes(@JsonProperty("args") FormQueryParamsCamelObjectResArgs args, @JsonProperty("url") String url) { + this.args = args; + this.url = url; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResArgs.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResArgs.java new file mode 100755 index 000000000..99ed6fa01 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResArgs.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + + +public class FormQueryParamsCamelObjectResArgs { + @JsonProperty("item_count") + public String itemCount; + + public FormQueryParamsCamelObjectResArgs withItemCount(String itemCount) { + this.itemCount = itemCount; + return this; + } + + @JsonProperty("search_term") + public String searchTerm; + + public FormQueryParamsCamelObjectResArgs withSearchTerm(String searchTerm) { + this.searchTerm = searchTerm; + return this; + } + + public FormQueryParamsCamelObjectResArgs(@JsonProperty("item_count") String itemCount, @JsonProperty("search_term") String searchTerm) { + this.itemCount = itemCount; + this.searchTerm = searchTerm; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResponse.java new file mode 100755 index 000000000..b47d3fb67 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/FormQueryParamsCamelObjectResponse.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class FormQueryParamsCamelObjectResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public FormQueryParamsCamelObjectResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public FormQueryParamsCamelObjectResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public FormQueryParamsCamelObjectResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * OK + */ + + public FormQueryParamsCamelObjectRes res; + + public FormQueryParamsCamelObjectResponse withRes(FormQueryParamsCamelObjectRes res) { + this.res = res; + return this; + } + + public FormQueryParamsCamelObjectResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.java new file mode 100755 index 000000000..a4d8f5a27 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.java @@ -0,0 +1,25 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON - OK + */ + +public class ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON { + @JsonProperty("json") + public java.util.Map json; + + public ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON withJson(java.util.Map json) { + this.json = json; + return this; + } + + public ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON(@JsonProperty("json") java.util.Map json) { + this.json = json; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.java new file mode 100755 index 000000000..27f6af7d8 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class ResponseBodyAdditionalPropertiesObjectPostResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public ResponseBodyAdditionalPropertiesObjectPostResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public ResponseBodyAdditionalPropertiesObjectPostResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public ResponseBodyAdditionalPropertiesObjectPostResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * OK + */ + + public ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject; + + public ResponseBodyAdditionalPropertiesObjectPostResponse withResponseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject(ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject) { + this.responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject; + return this; + } + + public ResponseBodyAdditionalPropertiesObjectPostResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.java index dd8bad5b0..b112f36c6 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.java @@ -31,5 +31,14 @@ public StatusGetXSpeakeasyErrors501ApplicationJSON withMessage(String message) { return this; } + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public org.openapis.openapi.models.shared.ErrorType type; + + public StatusGetXSpeakeasyErrors501ApplicationJSON withType(org.openapis.openapi.models.shared.ErrorType type) { + this.type = type; + return this; + } + public StatusGetXSpeakeasyErrors501ApplicationJSON(){} } diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullRes.java new file mode 100755 index 000000000..0441607b8 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullRes.java @@ -0,0 +1,28 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.LocalDate; + +/** + * UnionDateNullRes - OK + */ + +public class UnionDateNullRes { + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") + @JsonProperty("json") + public LocalDate json; + + public UnionDateNullRes withJson(LocalDate json) { + this.json = json; + return this; + } + + public UnionDateNullRes(@JsonProperty("json") LocalDate json) { + this.json = json; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullResponse.java new file mode 100755 index 000000000..2acc8c659 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateNullResponse.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UnionDateNullResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UnionDateNullResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UnionDateNullResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UnionDateNullResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * OK + */ + + public UnionDateNullRes res; + + public UnionDateNullResponse withRes(UnionDateNullRes res) { + this.res = res; + return this; + } + + public UnionDateNullResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullRes.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullRes.java new file mode 100755 index 000000000..0b86be16b --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullRes.java @@ -0,0 +1,32 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.time.OffsetDateTime; +import org.openapis.openapi.utils.DateTimeDeserializer; +import org.openapis.openapi.utils.DateTimeSerializer; + +/** + * UnionDateTimeNullRes - OK + */ + +public class UnionDateTimeNullRes { + @JsonSerialize(using = DateTimeSerializer.class) + @JsonDeserialize(using = DateTimeDeserializer.class) + @JsonProperty("json") + public OffsetDateTime json; + + public UnionDateTimeNullRes withJson(OffsetDateTime json) { + this.json = json; + return this; + } + + public UnionDateTimeNullRes(@JsonProperty("json") OffsetDateTime json) { + this.json = json; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullResponse.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullResponse.java new file mode 100755 index 000000000..e1fe7bf81 --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UnionDateTimeNullResponse.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.operations; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.net.http.HttpResponse; + + +public class UnionDateTimeNullResponse { + /** + * HTTP response content type for this operation + */ + + public String contentType; + + public UnionDateTimeNullResponse withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + + public Integer statusCode; + + public UnionDateTimeNullResponse withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + + public HttpResponse rawResponse; + + public UnionDateTimeNullResponse withRawResponse(HttpResponse rawResponse) { + this.rawResponse = rawResponse; + return this; + } + + /** + * OK + */ + + public UnionDateTimeNullRes res; + + public UnionDateTimeNullResponse withRes(UnionDateTimeNullRes res) { + this.res = res; + return this; + } + + public UnionDateTimeNullResponse(@JsonProperty("ContentType") String contentType, @JsonProperty("StatusCode") Integer statusCode) { + this.contentType = contentType; + this.statusCode = statusCode; + } +} diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UsageExamplePostRequest.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UsageExamplePostRequest.java index 863396518..962efa837 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UsageExamplePostRequest.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/UsageExamplePostRequest.java @@ -88,6 +88,17 @@ public UsageExamplePostRequest withDateParameter(LocalDate dateParameter) { return this; } + /** + * A date time parameter with a default value + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=dateTimeDefaultParameter") + public OffsetDateTime dateTimeDefaultParameter; + + public UsageExamplePostRequest withDateTimeDefaultParameter(OffsetDateTime dateTimeDefaultParameter) { + this.dateTimeDefaultParameter = dateTimeDefaultParameter; + return this; + } + /** * A date time parameter */ @@ -242,11 +253,12 @@ public UsageExamplePostRequest withStrParameter(String strParameter) { return this; } - public UsageExamplePostRequest(@JsonProperty("bigintParameter") Long bigintParameter, @JsonProperty("bigintStrParameter") String bigintStrParameter, @JsonProperty("boolParameter") Boolean boolParameter, @JsonProperty("dateParameter") LocalDate dateParameter, @JsonProperty("dateTimeParameter") OffsetDateTime dateTimeParameter, @JsonProperty("decimalParameter") Double decimalParameter, @JsonProperty("decimalStrParameter") String decimalStrParameter, @JsonProperty("doubleParameter") Double doubleParameter, @JsonProperty("enumParameter") UsageExamplePostEnumParameter enumParameter, @JsonProperty("falseyNumberParameter") Double falseyNumberParameter, @JsonProperty("float32Parameter") Float float32Parameter, @JsonProperty("floatParameter") Double floatParameter, @JsonProperty("int64Parameter") Long int64Parameter, @JsonProperty("intParameter") Integer intParameter, @JsonProperty("strParameter") String strParameter) { + public UsageExamplePostRequest(@JsonProperty("bigintParameter") Long bigintParameter, @JsonProperty("bigintStrParameter") String bigintStrParameter, @JsonProperty("boolParameter") Boolean boolParameter, @JsonProperty("dateParameter") LocalDate dateParameter, @JsonProperty("dateTimeDefaultParameter") OffsetDateTime dateTimeDefaultParameter, @JsonProperty("dateTimeParameter") OffsetDateTime dateTimeParameter, @JsonProperty("decimalParameter") Double decimalParameter, @JsonProperty("decimalStrParameter") String decimalStrParameter, @JsonProperty("doubleParameter") Double doubleParameter, @JsonProperty("enumParameter") UsageExamplePostEnumParameter enumParameter, @JsonProperty("falseyNumberParameter") Double falseyNumberParameter, @JsonProperty("float32Parameter") Float float32Parameter, @JsonProperty("floatParameter") Double floatParameter, @JsonProperty("int64Parameter") Long int64Parameter, @JsonProperty("intParameter") Integer intParameter, @JsonProperty("strParameter") String strParameter) { this.bigintParameter = bigintParameter; this.bigintStrParameter = bigintStrParameter; this.boolParameter = boolParameter; this.dateParameter = dateParameter; + this.dateTimeDefaultParameter = dateTimeDefaultParameter; this.dateTimeParameter = dateTimeParameter; this.decimalParameter = decimalParameter; this.decimalStrParameter = decimalStrParameter; diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/Error.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/Error.java index 95aa44290..655fec919 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/Error.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/Error.java @@ -28,5 +28,14 @@ public Error withMessage(String message) { return this; } + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + public ErrorType type; + + public Error withType(ErrorType type) { + this.type = type; + return this; + } + public Error(){} } diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/ErrorType.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/ErrorType.java new file mode 100755 index 000000000..5abda53be --- /dev/null +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/shared/ErrorType.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +package org.openapis.openapi.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ErrorType { + NOT_FOUND("not_found"), + INVALID("invalid"), + INTERNAL("internal"); + + @JsonValue + public final String value; + + private ErrorType(String value) { + this.value = value; + } +} diff --git a/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java b/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java index 40298b94e..eda8b1f18 100755 --- a/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java +++ b/java-client-sdk/lib/src/test/java/org/openapis/openapiprimary/TelemetryTests.java @@ -23,7 +23,7 @@ void testTelemetryUserAgentGet() throws Exception { assertNotNull(res); assertEquals(200, res.statusCode); - assertEquals("speakeasy-sdk/java 1.37.0 2.154.1 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); + assertEquals("speakeasy-sdk/java 1.38.0 2.171.0 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); } @Test @@ -40,6 +40,6 @@ void testTelemetrySpeakeasyUserAgentGet() throws Exception { assertNotNull(res); assertEquals(200, res.statusCode); assertEquals(userAgent, res.res.headers.get("User-Agent")); - assertEquals("speakeasy-sdk/java 1.37.0 2.154.1 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); + assertEquals("speakeasy-sdk/java 1.38.0 2.171.0 0.1.0 ", res.res.headers.get("X-Speakeasy-User-Agent")); } } \ No newline at end of file diff --git a/php-client-sdk/README.md b/php-client-sdk/README.md index 2c52a00aa..c0f425bfe 100755 --- a/php-client-sdk/README.md +++ b/php-client-sdk/README.md @@ -18,10 +18,14 @@ composer require "openapi/openapi" declare(strict_types=1); require_once 'vendor/autoload.php'; -use \OpenAPI\OpenAPI\SDK; -use \OpenAPI\OpenAPI\Models\Shared\Security; +use OpenAPI\OpenAPI\SDK; +use OpenAPI\OpenAPI\Models\Shared\Security; + +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -33,6 +37,7 @@ try { } catch (Exception $e) { // handle exception } + ``` @@ -44,22 +49,21 @@ Do this second declare(strict_types=1); require_once 'vendor/autoload.php'; -use \OpenAPI\OpenAPI\SDK; -use \OpenAPI\OpenAPI\Models\Shared\Security; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequest; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequestBody; -use \OpenAPI\OpenAPI\Models\Shared\FakerFormattedStrings; -use \OpenAPI\OpenAPI\Models\Shared\FakerStrings; -use \OpenAPI\OpenAPI\Models\Shared\SimpleObject; -use \OpenAPI\OpenAPI\Models\Shared\Enum; -use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; -use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostEnumParameter; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostOptEnumParameter; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostSecurity; - -$sdk = SDK::builder() - ->build(); +use OpenAPI\OpenAPI\SDK; +use OpenAPI\OpenAPI\Models\Shared\Security; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequest; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequestBody; +use OpenAPI\OpenAPI\Models\Shared\FakerFormattedStrings; +use OpenAPI\OpenAPI\Models\Shared\FakerStrings; +use OpenAPI\OpenAPI\Models\Shared\SimpleObject; +use OpenAPI\OpenAPI\Models\Shared\Enum; +use OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; +use OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostEnumParameter; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostOptEnumParameter; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostSecurity; + +$sdk = SDK::builder()->build(); try { $request = new UsageExamplePostRequest(); @@ -73,111 +77,125 @@ try { $request->requestBody->fakerFormattedStrings->filepathFormat = '/lib/pizza_integrated.hbs'; $request->requestBody->fakerFormattedStrings->imageFormat = 'https://loremflickr.com/640/480'; $request->requestBody->fakerFormattedStrings->ipv4Format = '75.42.25.241'; - $request->requestBody->fakerFormattedStrings->ipv6Format = '36a9:c057:a71b:b73a:c9ee:2348:d76c:3164'; - $request->requestBody->fakerFormattedStrings->jsonFormat = '{plane: 14910, fringe: null, lightning: "Roentgenium UTF8"}'; - $request->requestBody->fakerFormattedStrings->macFormat = '13:58:66:7d:ac:95'; - $request->requestBody->fakerFormattedStrings->passwordFormat = 'b6eWzdveK0sHokC'; - $request->requestBody->fakerFormattedStrings->phoneFormat = '832-504-6221 x221'; - $request->requestBody->fakerFormattedStrings->timezoneFormat = 'Asia/Krasnoyarsk'; - $request->requestBody->fakerFormattedStrings->unknownFormat = 'Principal at'; - $request->requestBody->fakerFormattedStrings->urlFormat = 'http://understated-balcony.org'; - $request->requestBody->fakerFormattedStrings->uuidFormat = '62de2e2d-47a9-4bf1-80f7-53b9b364b6b4'; - $request->requestBody->fakerFormattedStrings->zipcodeFormat = '25687-7266'; + $request->requestBody->fakerFormattedStrings->ipv6Format = + '36a9:c057:a71b:b73a:c9ee:2348:d76c:3164'; + $request->requestBody->fakerFormattedStrings->jsonFormat = + '{key: 66681, key1: null, key2: "string"}'; + $request->requestBody->fakerFormattedStrings->macFormat = '25:8b:e7:e1:35:86'; + $request->requestBody->fakerFormattedStrings->passwordFormat = 'IKpiCb6eWzdveK0'; + $request->requestBody->fakerFormattedStrings->phoneFormat = '1-803-587-3283'; + $request->requestBody->fakerFormattedStrings->timezoneFormat = 'America/Argentina/Buenos_Aires'; + $request->requestBody->fakerFormattedStrings->unknownFormat = 'string'; + $request->requestBody->fakerFormattedStrings->urlFormat = 'http://beneficial-inconvenience.net'; + $request->requestBody->fakerFormattedStrings->uuidFormat = + '342442b8-aff3-42e0-b62d-e2e2d47a9bf1'; + $request->requestBody->fakerFormattedStrings->zipcodeFormat = '09432'; $request->requestBody->fakerStrings = new FakerStrings(); - $request->requestBody->fakerStrings->city = 'Port Carli'; - $request->requestBody->fakerStrings->iban = 'TN8700576009897281100717'; + $request->requestBody->fakerStrings->city = 'McLaughlinchester'; + $request->requestBody->fakerStrings->iban = 'TL232743267267003560099'; $request->requestBody->fakerStrings->id = ''; - $request->requestBody->fakerStrings->iPv4 = '141.21.132.133'; - $request->requestBody->fakerStrings->iPv6 = '308b:b979:0237:4ea8:ee39:8480:0301:1d98'; - $request->requestBody->fakerStrings->account = '81966519'; - $request->requestBody->fakerStrings->address = '418 Maybelle Brooks'; - $request->requestBody->fakerStrings->amount = '27.55'; + $request->requestBody->fakerStrings->iPv4 = '208.201.244.247'; + $request->requestBody->fakerStrings->iPv6 = 'bd3a:d72b:208b:2c81:8830:8bb9:7902:374e'; + $request->requestBody->fakerStrings->account = '65982652'; + $request->requestBody->fakerStrings->address = '0010 Assunta Throughway'; + $request->requestBody->fakerStrings->amount = '616.94'; $request->requestBody->fakerStrings->avatar = 'https://loremflickr.com/640/480'; - $request->requestBody->fakerStrings->color = 'turquoise'; - $request->requestBody->fakerStrings->comment = 'The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality'; - $request->requestBody->fakerStrings->company = 'Murazik, Kozey and Hirthe'; - $request->requestBody->fakerStrings->country = 'Equatorial Guinea'; - $request->requestBody->fakerStrings->countryCode = 'LU'; - $request->requestBody->fakerStrings->currency = 'Congolese Franc'; - $request->requestBody->fakerStrings->datatype = 'bigint'; - $request->requestBody->fakerStrings->default = 'Dalasi'; - $request->requestBody->fakerStrings->description = 'Up-sized explicit frame'; - $request->requestBody->fakerStrings->directory = '/home'; - $request->requestBody->fakerStrings->domainName = 'warmhearted-buying.biz'; - $request->requestBody->fakerStrings->emailAddr = 'Beulah.Franecki24@gmail.com'; - $request->requestBody->fakerStrings->extension = 'pdf'; - $request->requestBody->fakerStrings->filename = 'recovery.pdf'; - $request->requestBody->fakerStrings->filepath = '/usr/share/powerfully.less'; - $request->requestBody->fakerStrings->filetype = 'application'; - $request->requestBody->fakerStrings->firstName = 'Geovany'; - $request->requestBody->fakerStrings->fullName = 'Roy Gottlieb'; - $request->requestBody->fakerStrings->gender = 'Cis'; - $request->requestBody->fakerStrings->job = 'International Metrics Administrator'; - $request->requestBody->fakerStrings->json = '{trachoma: 6397, nick: null, android: "Plastic Recumbent"}'; + $request->requestBody->fakerStrings->color = 'tan'; + $request->requestBody->fakerStrings->comment = + 'New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart'; + $request->requestBody->fakerStrings->company = 'Volkman LLC'; + $request->requestBody->fakerStrings->country = 'Nicaragua'; + $request->requestBody->fakerStrings->countryCode = 'MO'; + $request->requestBody->fakerStrings->currency = 'Canadian Dollar'; + $request->requestBody->fakerStrings->datatype = 'point'; + $request->requestBody->fakerStrings->default = 'string'; + $request->requestBody->fakerStrings->description = 'Quality-focused full-range circuit'; + $request->requestBody->fakerStrings->directory = '/usr/ports'; + $request->requestBody->fakerStrings->domainName = 'klutzy-prostacyclin.com'; + $request->requestBody->fakerStrings->emailAddr = 'Jalyn_Haley47@gmail.com'; + $request->requestBody->fakerStrings->extension = 'png'; + $request->requestBody->fakerStrings->filename = 'panel.jpeg'; + $request->requestBody->fakerStrings->filepath = '/opt/share/yahoo.xul'; + $request->requestBody->fakerStrings->filetype = 'video'; + $request->requestBody->fakerStrings->firstName = 'Trystan'; + $request->requestBody->fakerStrings->fullName = 'Mrs. Lillian Bode'; + $request->requestBody->fakerStrings->gender = 'Cis female'; + $request->requestBody->fakerStrings->job = 'Future Solutions Specialist'; + $request->requestBody->fakerStrings->json = '{key: 95274, key1: null, key2: "string"}'; $request->requestBody->fakerStrings->key = ''; - $request->requestBody->fakerStrings->lastName = 'Kshlerin'; - $request->requestBody->fakerStrings->latitude = '65.3520'; - $request->requestBody->fakerStrings->locale = 'zh_CN'; - $request->requestBody->fakerStrings->longitude = '16.8742'; - $request->requestBody->fakerStrings->mac = 'fd:b6:ff:35:99:05'; - $request->requestBody->fakerStrings->manufacturer = 'Mazda'; - $request->requestBody->fakerStrings->material = 'Frozen'; - $request->requestBody->fakerStrings->middleName = 'Emerson'; + $request->requestBody->fakerStrings->lastName = 'Renner'; + $request->requestBody->fakerStrings->latitude = '-71.5944'; + $request->requestBody->fakerStrings->locale = 'sv'; + $request->requestBody->fakerStrings->longitude = '-131.8166'; + $request->requestBody->fakerStrings->mac = 'e9:ee:6a:24:2a:1b'; + $request->requestBody->fakerStrings->manufacturer = 'Volvo'; + $request->requestBody->fakerStrings->material = 'Plastic'; + $request->requestBody->fakerStrings->middleName = 'Sawyer'; $request->requestBody->fakerStrings->model = 'Mustang'; - $request->requestBody->fakerStrings->password = '71wIwgEZJMTCRYg'; - $request->requestBody->fakerStrings->phone = '1-466-307-0476'; - $request->requestBody->fakerStrings->pin = '0584'; - $request->requestBody->fakerStrings->postalCode = '07886'; - $request->requestBody->fakerStrings->price = '452.00'; - $request->requestBody->fakerStrings->product = 'Small Steel Salad'; - $request->requestBody->fakerStrings->sex = 'female'; - $request->requestBody->fakerStrings->street = 'Christy Dam'; - $request->requestBody->fakerStrings->timezone = 'America/Regina'; - $request->requestBody->fakerStrings->unit = 'sievert'; - $request->requestBody->fakerStrings->url = 'http://repentant-haunt.name'; - $request->requestBody->fakerStrings->username = 'Heather_Mills48'; - $request->requestBody->fakerStrings->uuid = '29e9f1c7-ed92-481f-955b-6ca1625b4c3a'; + $request->requestBody->fakerStrings->password = 'YAC_QiNrTzqbDz8'; + $request->requestBody->fakerStrings->phone = '(650) 469-3026 x116'; + $request->requestBody->fakerStrings->pin = '9497'; + $request->requestBody->fakerStrings->postalCode = '64696'; + $request->requestBody->fakerStrings->price = '25.00'; + $request->requestBody->fakerStrings->product = 'Recycled Granite Pants'; + $request->requestBody->fakerStrings->sex = 'male'; + $request->requestBody->fakerStrings->street = 'Lura Wells'; + $request->requestBody->fakerStrings->timezone = 'Africa/Nairobi'; + $request->requestBody->fakerStrings->unit = 'degree Celsius'; + $request->requestBody->fakerStrings->url = 'https://crooked-dulcimer.name'; + $request->requestBody->fakerStrings->username = 'Mable76'; + $request->requestBody->fakerStrings->uuid = '16b919d6-51cd-4e97-81e2-5221b7b6969f'; $request->requestBody->simpleObject = new SimpleObject(); - $request->requestBody->simpleObject->any = 'wireless'; + $request->requestBody->simpleObject->any = 'any'; $request->requestBody->simpleObject->bigint = 8821239038968084; $request->requestBody->simpleObject->bigintStr = '9223372036854775808'; $request->requestBody->simpleObject->bool = true; $request->requestBody->simpleObject->boolOpt = true; $request->requestBody->simpleObject->date = DateTime::createFromFormat('Y-m-d', '2020-01-01'); - $request->requestBody->simpleObject->dateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2020-01-01T00:00:00.000000001Z'); + $request->requestBody->simpleObject->dateTime = DateTime::createFromFormat( + 'Y-m-d\TH:i:s+', + '2020-01-01T00:00:00.000000001Z', + ); $request->requestBody->simpleObject->decimal = 3.141592653589793; $request->requestBody->simpleObject->decimalStr = '3.14159265358979344719667586'; $request->requestBody->simpleObject->enum = Enum::One; $request->requestBody->simpleObject->float32 = 1.1; $request->requestBody->simpleObject->int = 1; $request->requestBody->simpleObject->int32 = 1; - $request->requestBody->simpleObject->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $request->requestBody->simpleObject->intEnum = SimpleObjectIntEnum::Third; - $request->requestBody->simpleObject->intOptNull = 51222; + $request->requestBody->simpleObject->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; + $request->requestBody->simpleObject->intEnum = SimpleObjectIntEnum::Second; + $request->requestBody->simpleObject->intOptNull = 165468; $request->requestBody->simpleObject->num = 1.1; - $request->requestBody->simpleObject->numOptNull = 598.05; + $request->requestBody->simpleObject->numOptNull = 5944.32; $request->requestBody->simpleObject->str = 'test'; $request->requestBody->simpleObject->strOpt = 'testOptional'; - $request->bigintParameter = 284159; - $request->bigintParameterOptional = 322202; - $request->bigintStrParameter = 'Automotive'; - $request->bigintStrParameterOptional = 'focus Country'; + $request->bigintParameter = 924793; + $request->bigintParameterOptional = 583481; + $request->bigintStrParameter = 'string'; + $request->bigintStrParameterOptional = 'string'; $request->boolParameter = false; - $request->dateParameter = DateTime::createFromFormat('Y-m-d', '2022-01-13'); - $request->dateTimeParameter = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-04-10T10:50:46.754Z'); - $request->decimalParameter = 8924.18; - $request->decimalParameterOptional = 5705.14; - $request->decimalStrParameter = 'navigating'; - $request->decimalStrParameterOptional = 'Rap matrix South'; - $request->doubleParameter = 7223.13; + $request->dateParameter = DateTime::createFromFormat('Y-m-d', '2023-12-21'); + $request->dateTimeDefaultParameter = DateTime::createFromFormat( + 'Y-m-d\TH:i:s+', + '2021-03-16T01:25:42.471Z', + ); + $request->dateTimeParameter = DateTime::createFromFormat( + 'Y-m-d\TH:i:s+', + '2023-05-24T07:01:53.326Z', + ); + $request->decimalParameter = 4713.96; + $request->decimalParameterOptional = 9349.54; + $request->decimalStrParameter = 'string'; + $request->decimalStrParameterOptional = 'string'; + $request->doubleParameter = 8700.78; $request->enumParameter = UsageExamplePostEnumParameter::Value2; $request->falseyNumberParameter = 0; - $request->float32Parameter = 8430.91; - $request->floatParameter = 3767.71; - $request->int64Parameter = 733506; - $request->intParameter = 892942; + $request->float32Parameter = 1341.86; + $request->floatParameter = 5429.24; + $request->int64Parameter = 101970; + $request->intParameter = 938852; $request->optEnumParameter = UsageExamplePostOptEnumParameter::Value3; - $request->strParameter = 'example 2'; + $request->strParameter = 'example 3'; $requestSecurity = new UsageExamplePostSecurity(); $requestSecurity->password = 'YOUR_PASSWORD'; @@ -191,6 +209,7 @@ try { } catch (Exception $e) { // handle exception } + ``` @@ -254,6 +273,9 @@ try { * [anchorTypesGet](docs/sdks/generation/README.md#anchortypesget) * [arrayCircularReferenceGet](docs/sdks/generation/README.md#arraycircularreferenceget) * [circularReferenceGet](docs/sdks/generation/README.md#circularreferenceget) +* [dateParamWithDefault](docs/sdks/generation/README.md#dateparamwithdefault) +* [dateTimeParamWithDefault](docs/sdks/generation/README.md#datetimeparamwithdefault) +* [decimalParamWithDefault](docs/sdks/generation/README.md#decimalparamwithdefault) * [deprecatedFieldInSchemaPost](docs/sdks/generation/README.md#deprecatedfieldinschemapost) * [deprecatedObjectInSchemaGet](docs/sdks/generation/README.md#deprecatedobjectinschemaget) * [~~deprecatedOperationNoCommentsGet~~](docs/sdks/generation/README.md#deprecatedoperationnocommentsget) - deprecatedOperationNoCommentsGet :warning: **Deprecated** @@ -305,6 +327,7 @@ try { * [deepObjectQueryParamsObject](docs/sdks/parameters/README.md#deepobjectqueryparamsobject) * [duplicateParam](docs/sdks/parameters/README.md#duplicateparam) * [formQueryParamsArray](docs/sdks/parameters/README.md#formqueryparamsarray) +* [formQueryParamsCamelObject](docs/sdks/parameters/README.md#formqueryparamscamelobject) * [formQueryParamsMap](docs/sdks/parameters/README.md#formqueryparamsmap) * [formQueryParamsObject](docs/sdks/parameters/README.md#formqueryparamsobject) * [formQueryParamsPrimitive](docs/sdks/parameters/README.md#formqueryparamsprimitive) @@ -420,6 +443,7 @@ try { * [responseBodyAdditionalPropertiesComplexNumbersPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiescomplexnumberspost) * [responseBodyAdditionalPropertiesDatePost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesdatepost) +* [responseBodyAdditionalPropertiesObjectPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesobjectpost) * [responseBodyAdditionalPropertiesPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiespost) * [responseBodyBytesGet](docs/sdks/responsebodies/README.md#responsebodybytesget) * [responseBodyEmptyWithHeaders](docs/sdks/responsebodies/README.md#responsebodyemptywithheaders) @@ -463,6 +487,8 @@ try { * [stronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [typedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [unionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [unionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [weaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) @@ -472,6 +498,92 @@ try { + + + +# Global Parameters + +Certain parameters are configured globally. These parameters must be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. + +For example, you can set `globalPathParam` to `100` at SDK initialization and then you do not have to pass the same value on calls to operations like `globalPathParameterGet`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. + + +## Available Globals + +The following global parameters are available. The required parameters must be set when you initialize the SDK client. + +| Name | Type | Required | Description | +| ---- | ---- |:--------:| ----------- | +| globalPathParam | int | ✔️ | The globalPathParam parameter. | +| globalQueryParam | string | ✔️ | The globalQueryParam parameter. | + + + +## Example #1 + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + $response = $sdk->globals->globalPathParameterGet(719830); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} + +``` + + +## Example #2 + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + $response = $sdk->globals->globalsQueryParameterGet('string'); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} + +``` + + + diff --git a/php-client-sdk/USAGE.md b/php-client-sdk/USAGE.md index 7d054c594..c4aef818e 100755 --- a/php-client-sdk/USAGE.md +++ b/php-client-sdk/USAGE.md @@ -7,10 +7,14 @@ declare(strict_types=1); require_once 'vendor/autoload.php'; -use \OpenAPI\OpenAPI\SDK; -use \OpenAPI\OpenAPI\Models\Shared\Security; +use OpenAPI\OpenAPI\SDK; +use OpenAPI\OpenAPI\Models\Shared\Security; + +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -22,6 +26,7 @@ try { } catch (Exception $e) { // handle exception } + ``` @@ -33,22 +38,21 @@ Do this second declare(strict_types=1); require_once 'vendor/autoload.php'; -use \OpenAPI\OpenAPI\SDK; -use \OpenAPI\OpenAPI\Models\Shared\Security; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequest; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequestBody; -use \OpenAPI\OpenAPI\Models\Shared\FakerFormattedStrings; -use \OpenAPI\OpenAPI\Models\Shared\FakerStrings; -use \OpenAPI\OpenAPI\Models\Shared\SimpleObject; -use \OpenAPI\OpenAPI\Models\Shared\Enum; -use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; -use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostEnumParameter; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostOptEnumParameter; -use \OpenAPI\OpenAPI\Models\Operations\UsageExamplePostSecurity; - -$sdk = SDK::builder() - ->build(); +use OpenAPI\OpenAPI\SDK; +use OpenAPI\OpenAPI\Models\Shared\Security; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequest; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostRequestBody; +use OpenAPI\OpenAPI\Models\Shared\FakerFormattedStrings; +use OpenAPI\OpenAPI\Models\Shared\FakerStrings; +use OpenAPI\OpenAPI\Models\Shared\SimpleObject; +use OpenAPI\OpenAPI\Models\Shared\Enum; +use OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; +use OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostEnumParameter; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostOptEnumParameter; +use OpenAPI\OpenAPI\Models\Operations\UsageExamplePostSecurity; + +$sdk = SDK::builder()->build(); try { $request = new UsageExamplePostRequest(); @@ -62,111 +66,125 @@ try { $request->requestBody->fakerFormattedStrings->filepathFormat = '/lib/pizza_integrated.hbs'; $request->requestBody->fakerFormattedStrings->imageFormat = 'https://loremflickr.com/640/480'; $request->requestBody->fakerFormattedStrings->ipv4Format = '75.42.25.241'; - $request->requestBody->fakerFormattedStrings->ipv6Format = '36a9:c057:a71b:b73a:c9ee:2348:d76c:3164'; - $request->requestBody->fakerFormattedStrings->jsonFormat = '{plane: 14910, fringe: null, lightning: "Roentgenium UTF8"}'; - $request->requestBody->fakerFormattedStrings->macFormat = '13:58:66:7d:ac:95'; - $request->requestBody->fakerFormattedStrings->passwordFormat = 'b6eWzdveK0sHokC'; - $request->requestBody->fakerFormattedStrings->phoneFormat = '832-504-6221 x221'; - $request->requestBody->fakerFormattedStrings->timezoneFormat = 'Asia/Krasnoyarsk'; - $request->requestBody->fakerFormattedStrings->unknownFormat = 'Principal at'; - $request->requestBody->fakerFormattedStrings->urlFormat = 'http://understated-balcony.org'; - $request->requestBody->fakerFormattedStrings->uuidFormat = '62de2e2d-47a9-4bf1-80f7-53b9b364b6b4'; - $request->requestBody->fakerFormattedStrings->zipcodeFormat = '25687-7266'; + $request->requestBody->fakerFormattedStrings->ipv6Format = + '36a9:c057:a71b:b73a:c9ee:2348:d76c:3164'; + $request->requestBody->fakerFormattedStrings->jsonFormat = + '{key: 66681, key1: null, key2: "string"}'; + $request->requestBody->fakerFormattedStrings->macFormat = '25:8b:e7:e1:35:86'; + $request->requestBody->fakerFormattedStrings->passwordFormat = 'IKpiCb6eWzdveK0'; + $request->requestBody->fakerFormattedStrings->phoneFormat = '1-803-587-3283'; + $request->requestBody->fakerFormattedStrings->timezoneFormat = 'America/Argentina/Buenos_Aires'; + $request->requestBody->fakerFormattedStrings->unknownFormat = 'string'; + $request->requestBody->fakerFormattedStrings->urlFormat = 'http://beneficial-inconvenience.net'; + $request->requestBody->fakerFormattedStrings->uuidFormat = + '342442b8-aff3-42e0-b62d-e2e2d47a9bf1'; + $request->requestBody->fakerFormattedStrings->zipcodeFormat = '09432'; $request->requestBody->fakerStrings = new FakerStrings(); - $request->requestBody->fakerStrings->city = 'Port Carli'; - $request->requestBody->fakerStrings->iban = 'TN8700576009897281100717'; + $request->requestBody->fakerStrings->city = 'McLaughlinchester'; + $request->requestBody->fakerStrings->iban = 'TL232743267267003560099'; $request->requestBody->fakerStrings->id = ''; - $request->requestBody->fakerStrings->iPv4 = '141.21.132.133'; - $request->requestBody->fakerStrings->iPv6 = '308b:b979:0237:4ea8:ee39:8480:0301:1d98'; - $request->requestBody->fakerStrings->account = '81966519'; - $request->requestBody->fakerStrings->address = '418 Maybelle Brooks'; - $request->requestBody->fakerStrings->amount = '27.55'; + $request->requestBody->fakerStrings->iPv4 = '208.201.244.247'; + $request->requestBody->fakerStrings->iPv6 = 'bd3a:d72b:208b:2c81:8830:8bb9:7902:374e'; + $request->requestBody->fakerStrings->account = '65982652'; + $request->requestBody->fakerStrings->address = '0010 Assunta Throughway'; + $request->requestBody->fakerStrings->amount = '616.94'; $request->requestBody->fakerStrings->avatar = 'https://loremflickr.com/640/480'; - $request->requestBody->fakerStrings->color = 'turquoise'; - $request->requestBody->fakerStrings->comment = 'The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality'; - $request->requestBody->fakerStrings->company = 'Murazik, Kozey and Hirthe'; - $request->requestBody->fakerStrings->country = 'Equatorial Guinea'; - $request->requestBody->fakerStrings->countryCode = 'LU'; - $request->requestBody->fakerStrings->currency = 'Congolese Franc'; - $request->requestBody->fakerStrings->datatype = 'bigint'; - $request->requestBody->fakerStrings->default = 'Dalasi'; - $request->requestBody->fakerStrings->description = 'Up-sized explicit frame'; - $request->requestBody->fakerStrings->directory = '/home'; - $request->requestBody->fakerStrings->domainName = 'warmhearted-buying.biz'; - $request->requestBody->fakerStrings->emailAddr = 'Beulah.Franecki24@gmail.com'; - $request->requestBody->fakerStrings->extension = 'pdf'; - $request->requestBody->fakerStrings->filename = 'recovery.pdf'; - $request->requestBody->fakerStrings->filepath = '/usr/share/powerfully.less'; - $request->requestBody->fakerStrings->filetype = 'application'; - $request->requestBody->fakerStrings->firstName = 'Geovany'; - $request->requestBody->fakerStrings->fullName = 'Roy Gottlieb'; - $request->requestBody->fakerStrings->gender = 'Cis'; - $request->requestBody->fakerStrings->job = 'International Metrics Administrator'; - $request->requestBody->fakerStrings->json = '{trachoma: 6397, nick: null, android: "Plastic Recumbent"}'; + $request->requestBody->fakerStrings->color = 'tan'; + $request->requestBody->fakerStrings->comment = + 'New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart'; + $request->requestBody->fakerStrings->company = 'Volkman LLC'; + $request->requestBody->fakerStrings->country = 'Nicaragua'; + $request->requestBody->fakerStrings->countryCode = 'MO'; + $request->requestBody->fakerStrings->currency = 'Canadian Dollar'; + $request->requestBody->fakerStrings->datatype = 'point'; + $request->requestBody->fakerStrings->default = 'string'; + $request->requestBody->fakerStrings->description = 'Quality-focused full-range circuit'; + $request->requestBody->fakerStrings->directory = '/usr/ports'; + $request->requestBody->fakerStrings->domainName = 'klutzy-prostacyclin.com'; + $request->requestBody->fakerStrings->emailAddr = 'Jalyn_Haley47@gmail.com'; + $request->requestBody->fakerStrings->extension = 'png'; + $request->requestBody->fakerStrings->filename = 'panel.jpeg'; + $request->requestBody->fakerStrings->filepath = '/opt/share/yahoo.xul'; + $request->requestBody->fakerStrings->filetype = 'video'; + $request->requestBody->fakerStrings->firstName = 'Trystan'; + $request->requestBody->fakerStrings->fullName = 'Mrs. Lillian Bode'; + $request->requestBody->fakerStrings->gender = 'Cis female'; + $request->requestBody->fakerStrings->job = 'Future Solutions Specialist'; + $request->requestBody->fakerStrings->json = '{key: 95274, key1: null, key2: "string"}'; $request->requestBody->fakerStrings->key = ''; - $request->requestBody->fakerStrings->lastName = 'Kshlerin'; - $request->requestBody->fakerStrings->latitude = '65.3520'; - $request->requestBody->fakerStrings->locale = 'zh_CN'; - $request->requestBody->fakerStrings->longitude = '16.8742'; - $request->requestBody->fakerStrings->mac = 'fd:b6:ff:35:99:05'; - $request->requestBody->fakerStrings->manufacturer = 'Mazda'; - $request->requestBody->fakerStrings->material = 'Frozen'; - $request->requestBody->fakerStrings->middleName = 'Emerson'; + $request->requestBody->fakerStrings->lastName = 'Renner'; + $request->requestBody->fakerStrings->latitude = '-71.5944'; + $request->requestBody->fakerStrings->locale = 'sv'; + $request->requestBody->fakerStrings->longitude = '-131.8166'; + $request->requestBody->fakerStrings->mac = 'e9:ee:6a:24:2a:1b'; + $request->requestBody->fakerStrings->manufacturer = 'Volvo'; + $request->requestBody->fakerStrings->material = 'Plastic'; + $request->requestBody->fakerStrings->middleName = 'Sawyer'; $request->requestBody->fakerStrings->model = 'Mustang'; - $request->requestBody->fakerStrings->password = '71wIwgEZJMTCRYg'; - $request->requestBody->fakerStrings->phone = '1-466-307-0476'; - $request->requestBody->fakerStrings->pin = '0584'; - $request->requestBody->fakerStrings->postalCode = '07886'; - $request->requestBody->fakerStrings->price = '452.00'; - $request->requestBody->fakerStrings->product = 'Small Steel Salad'; - $request->requestBody->fakerStrings->sex = 'female'; - $request->requestBody->fakerStrings->street = 'Christy Dam'; - $request->requestBody->fakerStrings->timezone = 'America/Regina'; - $request->requestBody->fakerStrings->unit = 'sievert'; - $request->requestBody->fakerStrings->url = 'http://repentant-haunt.name'; - $request->requestBody->fakerStrings->username = 'Heather_Mills48'; - $request->requestBody->fakerStrings->uuid = '29e9f1c7-ed92-481f-955b-6ca1625b4c3a'; + $request->requestBody->fakerStrings->password = 'YAC_QiNrTzqbDz8'; + $request->requestBody->fakerStrings->phone = '(650) 469-3026 x116'; + $request->requestBody->fakerStrings->pin = '9497'; + $request->requestBody->fakerStrings->postalCode = '64696'; + $request->requestBody->fakerStrings->price = '25.00'; + $request->requestBody->fakerStrings->product = 'Recycled Granite Pants'; + $request->requestBody->fakerStrings->sex = 'male'; + $request->requestBody->fakerStrings->street = 'Lura Wells'; + $request->requestBody->fakerStrings->timezone = 'Africa/Nairobi'; + $request->requestBody->fakerStrings->unit = 'degree Celsius'; + $request->requestBody->fakerStrings->url = 'https://crooked-dulcimer.name'; + $request->requestBody->fakerStrings->username = 'Mable76'; + $request->requestBody->fakerStrings->uuid = '16b919d6-51cd-4e97-81e2-5221b7b6969f'; $request->requestBody->simpleObject = new SimpleObject(); - $request->requestBody->simpleObject->any = 'wireless'; + $request->requestBody->simpleObject->any = 'any'; $request->requestBody->simpleObject->bigint = 8821239038968084; $request->requestBody->simpleObject->bigintStr = '9223372036854775808'; $request->requestBody->simpleObject->bool = true; $request->requestBody->simpleObject->boolOpt = true; $request->requestBody->simpleObject->date = DateTime::createFromFormat('Y-m-d', '2020-01-01'); - $request->requestBody->simpleObject->dateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2020-01-01T00:00:00.000000001Z'); + $request->requestBody->simpleObject->dateTime = DateTime::createFromFormat( + 'Y-m-d\TH:i:s+', + '2020-01-01T00:00:00.000000001Z', + ); $request->requestBody->simpleObject->decimal = 3.141592653589793; $request->requestBody->simpleObject->decimalStr = '3.14159265358979344719667586'; $request->requestBody->simpleObject->enum = Enum::One; $request->requestBody->simpleObject->float32 = 1.1; $request->requestBody->simpleObject->int = 1; $request->requestBody->simpleObject->int32 = 1; - $request->requestBody->simpleObject->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $request->requestBody->simpleObject->intEnum = SimpleObjectIntEnum::Third; - $request->requestBody->simpleObject->intOptNull = 51222; + $request->requestBody->simpleObject->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; + $request->requestBody->simpleObject->intEnum = SimpleObjectIntEnum::Second; + $request->requestBody->simpleObject->intOptNull = 165468; $request->requestBody->simpleObject->num = 1.1; - $request->requestBody->simpleObject->numOptNull = 598.05; + $request->requestBody->simpleObject->numOptNull = 5944.32; $request->requestBody->simpleObject->str = 'test'; $request->requestBody->simpleObject->strOpt = 'testOptional'; - $request->bigintParameter = 284159; - $request->bigintParameterOptional = 322202; - $request->bigintStrParameter = 'Automotive'; - $request->bigintStrParameterOptional = 'focus Country'; + $request->bigintParameter = 924793; + $request->bigintParameterOptional = 583481; + $request->bigintStrParameter = 'string'; + $request->bigintStrParameterOptional = 'string'; $request->boolParameter = false; - $request->dateParameter = DateTime::createFromFormat('Y-m-d', '2022-01-13'); - $request->dateTimeParameter = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-04-10T10:50:46.754Z'); - $request->decimalParameter = 8924.18; - $request->decimalParameterOptional = 5705.14; - $request->decimalStrParameter = 'navigating'; - $request->decimalStrParameterOptional = 'Rap matrix South'; - $request->doubleParameter = 7223.13; + $request->dateParameter = DateTime::createFromFormat('Y-m-d', '2023-12-21'); + $request->dateTimeDefaultParameter = DateTime::createFromFormat( + 'Y-m-d\TH:i:s+', + '2021-03-16T01:25:42.471Z', + ); + $request->dateTimeParameter = DateTime::createFromFormat( + 'Y-m-d\TH:i:s+', + '2023-05-24T07:01:53.326Z', + ); + $request->decimalParameter = 4713.96; + $request->decimalParameterOptional = 9349.54; + $request->decimalStrParameter = 'string'; + $request->decimalStrParameterOptional = 'string'; + $request->doubleParameter = 8700.78; $request->enumParameter = UsageExamplePostEnumParameter::Value2; $request->falseyNumberParameter = 0; - $request->float32Parameter = 8430.91; - $request->floatParameter = 3767.71; - $request->int64Parameter = 733506; - $request->intParameter = 892942; + $request->float32Parameter = 1341.86; + $request->floatParameter = 5429.24; + $request->int64Parameter = 101970; + $request->intParameter = 938852; $request->optEnumParameter = UsageExamplePostOptEnumParameter::Value3; - $request->strParameter = 'example 2'; + $request->strParameter = 'example 3'; $requestSecurity = new UsageExamplePostSecurity(); $requestSecurity->password = 'YOUR_PASSWORD'; @@ -180,5 +198,6 @@ try { } catch (Exception $e) { // handle exception } + ``` \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md b/php-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md new file mode 100755 index 000000000..d6e8aa982 --- /dev/null +++ b/php-client-sdk/docs/models/operations/DateParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `dateInput` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md b/php-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md new file mode 100755 index 000000000..f1f0f3b1d --- /dev/null +++ b/php-client-sdk/docs/models/operations/DateParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md b/php-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md new file mode 100755 index 000000000..16f76eab0 --- /dev/null +++ b/php-client-sdk/docs/models/operations/DateTimeParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `dateTimeInput` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md b/php-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md new file mode 100755 index 000000000..e7e58ad9f --- /dev/null +++ b/php-client-sdk/docs/models/operations/DateTimeParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md b/php-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md new file mode 100755 index 000000000..9ddd49089 --- /dev/null +++ b/php-client-sdk/docs/models/operations/DecimalParamWithDefaultRequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimalInput` | *float* | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md b/php-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md new file mode 100755 index 000000000..86ad0e137 --- /dev/null +++ b/php-client-sdk/docs/models/operations/DecimalParamWithDefaultResponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md b/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md index 522a0af9c..cfa34c2ac 100755 --- a/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md +++ b/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `mapParam` | array | :heavy_check_mark: | N/A | -| `mapArrParam` | array> | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `mapParam` | array | :heavy_check_mark: | N/A | [object Object] | +| `mapArrParam` | array> | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md b/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md index 95c8b93ad..96c804170 100755 --- a/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md +++ b/php-client-sdk/docs/models/operations/DeepObjectQueryParamsMapRes.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | array | :heavy_check_mark: | N/A | | +| `args` | array | :heavy_check_mark: | N/A | [object Object] | | `url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md new file mode 100755 index 000000000..6151e2811 --- /dev/null +++ b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `encodedCount` | *?string* | :heavy_minus_sign: | N/A | 11 | +| `encodedTerm` | *?string* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md new file mode 100755 index 000000000..cff61c8bb --- /dev/null +++ b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `itemCount` | *?string* | :heavy_minus_sign: | N/A | 10 | +| `searchTerm` | *?string* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md new file mode 100755 index 000000000..b2ecda3b2 --- /dev/null +++ b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `objParamExploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/FormQueryParamsCamelObjectObjParamExploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [?FormQueryParamsCamelObjectObjParam](../../models/operations/FormQueryParamsCamelObjectObjParam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md new file mode 100755 index 000000000..de0cca66c --- /dev/null +++ b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectRes.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `args` | [FormQueryParamsCamelObjectResArgs](../../models/operations/FormQueryParamsCamelObjectResArgs.md) | :heavy_check_mark: | N/A | | +| `url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md new file mode 100755 index 000000000..4b29bf886 --- /dev/null +++ b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResArgs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `itemCount` | *string* | :heavy_check_mark: | N/A | 10 | +| `searchTerm` | *string* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md new file mode 100755 index 000000000..46a837a55 --- /dev/null +++ b/php-client-sdk/docs/models/operations/FormQueryParamsCamelObjectResponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [?FormQueryParamsCamelObjectRes](../../models/operations/FormQueryParamsCamelObjectRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md b/php-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md index d08dbe130..2e5441fa8 100755 --- a/php-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md +++ b/php-client-sdk/docs/models/operations/FormQueryParamsMapRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `mapParam` | array | :heavy_minus_sign: | N/A | -| `mapParamExploded` | array | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `mapParam` | array | :heavy_minus_sign: | N/A | [object Object] | +| `mapParamExploded` | array | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/FormQueryParamsMapRes.md b/php-client-sdk/docs/models/operations/FormQueryParamsMapRes.md index b5f12b489..edd49c456 100755 --- a/php-client-sdk/docs/models/operations/FormQueryParamsMapRes.md +++ b/php-client-sdk/docs/models/operations/FormQueryParamsMapRes.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `args` | array | :heavy_check_mark: | N/A | | +| `args` | array | :heavy_check_mark: | N/A | [object Object] | | `url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2 | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/HeaderParamsMapRequest.md b/php-client-sdk/docs/models/operations/HeaderParamsMapRequest.md index 9e9b14c82..bee115524 100755 --- a/php-client-sdk/docs/models/operations/HeaderParamsMapRequest.md +++ b/php-client-sdk/docs/models/operations/HeaderParamsMapRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `xHeaderMap` | array | :heavy_check_mark: | N/A | -| `xHeaderMapExplode` | array | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `xHeaderMap` | array | :heavy_check_mark: | N/A | [object Object] | +| `xHeaderMapExplode` | array | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/MixedQueryParamsRes.md b/php-client-sdk/docs/models/operations/MixedQueryParamsRes.md index 91b8fe749..e2e5bcbfa 100755 --- a/php-client-sdk/docs/models/operations/MixedQueryParamsRes.md +++ b/php-client-sdk/docs/models/operations/MixedQueryParamsRes.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | array | :heavy_check_mark: | N/A | | +| `args` | array | :heavy_check_mark: | N/A | [object Object] | | `url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}&num=1.1&str=test&strOpt=testOptional | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md b/php-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md index f275cadab..0126714af 100755 --- a/php-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md +++ b/php-client-sdk/docs/models/operations/PipeDelimitedQueryParamsArrayRequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `arrParam` | array<*string*> | :heavy_minus_sign: | N/A | -| `arrParamExploded` | array<*int*> | :heavy_minus_sign: | N/A | -| `mapParam` | array | :heavy_minus_sign: | N/A | -| `objParam` | [?\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `arrParam` | array<*string*> | :heavy_minus_sign: | N/A | | +| `arrParamExploded` | array<*int*> | :heavy_minus_sign: | N/A | | +| `mapParam` | array | :heavy_minus_sign: | N/A | [object Object] | +| `objParam` | [?\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md b/php-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md new file mode 100755 index 000000000..a99fe0eb8 --- /dev/null +++ b/php-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `json` | array | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md b/php-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md new file mode 100755 index 000000000..b9d3e4661 --- /dev/null +++ b/php-client-sdk/docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject` | [?ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON](../../models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md b/php-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md index 69c2bf38e..89bae1a9e 100755 --- a/php-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md +++ b/php-client-sdk/docs/models/operations/SimplePathParameterMapsRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `mapParam` | array | :heavy_check_mark: | N/A | -| `mapParamExploded` | array | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `mapParam` | array | :heavy_check_mark: | N/A | [object Object] | +| `mapParamExploded` | array | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md b/php-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md index b5f4b0748..78c36d29a 100755 --- a/php-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md +++ b/php-client-sdk/docs/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.md @@ -5,7 +5,8 @@ Not Implemented ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `code` | *?string* | :heavy_minus_sign: | N/A | -| `message` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `code` | *?string* | :heavy_minus_sign: | N/A | +| `message` | *?string* | :heavy_minus_sign: | N/A | +| `type` | [?\OpenAPI\OpenAPI\Models\Shared\ErrorType](../../models/shared/ErrorType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionDateNullRes.md b/php-client-sdk/docs/models/operations/UnionDateNullRes.md new file mode 100755 index 000000000..e14d1e850 --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionDateNullRes.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `json` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionDateNullResponse.md b/php-client-sdk/docs/models/operations/UnionDateNullResponse.md new file mode 100755 index 000000000..b6a5a3444 --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionDateNullResponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [?UnionDateNullRes](../../models/operations/UnionDateNullRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionDateTimeNullRes.md b/php-client-sdk/docs/models/operations/UnionDateTimeNullRes.md new file mode 100755 index 000000000..c2822129d --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionDateTimeNullRes.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `json` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md b/php-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md new file mode 100755 index 000000000..e58905bc9 --- /dev/null +++ b/php-client-sdk/docs/models/operations/UnionDateTimeNullResponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [?UnionDateTimeNullRes](../../models/operations/UnionDateTimeNullRes.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/php-client-sdk/docs/models/operations/UsageExamplePostRequest.md b/php-client-sdk/docs/models/operations/UsageExamplePostRequest.md index dde5f7660..ca3101fe8 100755 --- a/php-client-sdk/docs/models/operations/UsageExamplePostRequest.md +++ b/php-client-sdk/docs/models/operations/UsageExamplePostRequest.md @@ -12,6 +12,7 @@ | `bigintStrParameterOptional` | *?string* | :heavy_minus_sign: | An bigint parameter | | | `boolParameter` | *bool* | :heavy_check_mark: | A boolean parameter | | | `dateParameter` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date parameter | | +| `dateTimeDefaultParameter` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date time parameter with a default value | | | `dateTimeParameter` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date time parameter | | | `decimalParameter` | *float* | :heavy_check_mark: | A decimal parameter | | | `decimalParameterOptional` | *?float* | :heavy_minus_sign: | A decimal parameter | | diff --git a/php-client-sdk/docs/models/shared/DeepObject.md b/php-client-sdk/docs/models/shared/DeepObject.md index 7f07671d9..b77ed289d 100755 --- a/php-client-sdk/docs/models/shared/DeepObject.md +++ b/php-client-sdk/docs/models/shared/DeepObject.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `any` | *mixed* | :heavy_check_mark: | N/A | | -| `arr` | array<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_check_mark: | N/A | | +| `any` | *mixed* | :heavy_check_mark: | N/A | anyOf[0] | +| `arr` | array<[SimpleObject](../../models/shared/SimpleObject.md)> | :heavy_check_mark: | N/A | ...,... | | `bool` | *bool* | :heavy_check_mark: | N/A | true | | `int` | *int* | :heavy_check_mark: | N/A | 1 | -| `map` | array | :heavy_check_mark: | N/A | | +| `map` | array | :heavy_check_mark: | N/A | [object Object] | | `num` | *float* | :heavy_check_mark: | N/A | 1.1 | | `obj` | [SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | | | `str` | *string* | :heavy_check_mark: | N/A | test | diff --git a/php-client-sdk/docs/models/shared/Error.md b/php-client-sdk/docs/models/shared/Error.md index d56c6e4be..d81febc0b 100755 --- a/php-client-sdk/docs/models/shared/Error.md +++ b/php-client-sdk/docs/models/shared/Error.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `code` | *?string* | :heavy_minus_sign: | N/A | -| `message` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `code` | *?string* | :heavy_minus_sign: | N/A | +| `message` | *?string* | :heavy_minus_sign: | N/A | +| `type` | [?ErrorType](../../models/shared/ErrorType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/php-client-sdk/docs/models/shared/ErrorType.md b/php-client-sdk/docs/models/shared/ErrorType.md new file mode 100755 index 000000000..6a9154969 --- /dev/null +++ b/php-client-sdk/docs/models/shared/ErrorType.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `NotFound` | not_found | +| `Invalid` | invalid | +| `Internal` | internal | \ No newline at end of file diff --git a/php-client-sdk/docs/models/shared/SimpleObject.md b/php-client-sdk/docs/models/shared/SimpleObject.md index f28aff60d..37d1bd91e 100755 --- a/php-client-sdk/docs/models/shared/SimpleObject.md +++ b/php-client-sdk/docs/models/shared/SimpleObject.md @@ -10,7 +10,7 @@ A link to the external docs. | Field | Type | Required | Description | Example | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `any` | *mixed* | :heavy_check_mark: | An any property. | | +| `any` | *mixed* | :heavy_check_mark: | An any property. | any | | `bigint` | *?int* | :heavy_minus_sign: | N/A | 8821239038968084 | | `bigintStr` | *?string* | :heavy_minus_sign: | N/A | 9223372036854775808 | | `bool` | *bool* | :heavy_check_mark: | A boolean property. | true | diff --git a/php-client-sdk/docs/models/shared/SimpleObjectCamelCase.md b/php-client-sdk/docs/models/shared/SimpleObjectCamelCase.md index 5c04cd380..8d09c6835 100755 --- a/php-client-sdk/docs/models/shared/SimpleObjectCamelCase.md +++ b/php-client-sdk/docs/models/shared/SimpleObjectCamelCase.md @@ -10,7 +10,7 @@ A link to the external docs. | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `anyVal` | *mixed* | :heavy_check_mark: | An any property. | | +| `anyVal` | *mixed* | :heavy_check_mark: | An any property. | any example | | `bigintStrVal` | *?string* | :heavy_minus_sign: | N/A | | | `bigintVal` | *?int* | :heavy_minus_sign: | N/A | | | `boolOptVal` | *?bool* | :heavy_minus_sign: | An optional boolean property. | true | diff --git a/php-client-sdk/docs/sdks/auth/README.md b/php-client-sdk/docs/sdks/auth/README.md index b2608991d..9dc93603f 100755 --- a/php-client-sdk/docs/sdks/auth/README.md +++ b/php-client-sdk/docs/sdks/auth/README.md @@ -72,7 +72,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -117,7 +121,7 @@ try { $requestSecurity->password = 'YOUR_PASSWORD'; $requestSecurity->username = 'YOUR_USERNAME'; - $response = $sdk->auth->basicAuth($requestSecurity, 'minus', 'Architect'); + $response = $sdk->auth->basicAuth($requestSecurity, 'string', 'string'); if ($response->user !== null) { // handle response @@ -197,7 +201,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/authnew/README.md b/php-client-sdk/docs/sdks/authnew/README.md index 75f2fb8b9..c30e9e2c4 100755 --- a/php-client-sdk/docs/sdks/authnew/README.md +++ b/php-client-sdk/docs/sdks/authnew/README.md @@ -35,7 +35,11 @@ use \OpenAPI\OpenAPI\Models\Shared\AuthServiceRequestBody; use \OpenAPI\OpenAPI\Models\Shared\AuthServiceRequestBodyBasicAuth; use \OpenAPI\OpenAPI\Models\Shared\AuthServiceRequestBodyHeaderAuth; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -86,7 +90,11 @@ use \OpenAPI\OpenAPI\Models\Shared\AuthServiceRequestBody; use \OpenAPI\OpenAPI\Models\Shared\AuthServiceRequestBodyBasicAuth; use \OpenAPI\OpenAPI\Models\Shared\AuthServiceRequestBodyHeaderAuth; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/documentation/README.md b/php-client-sdk/docs/sdks/documentation/README.md index 18a8b3f7c..45a2c110a 100755 --- a/php-client-sdk/docs/sdks/documentation/README.md +++ b/php-client-sdk/docs/sdks/documentation/README.md @@ -25,13 +25,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\GetDocumentationPerLanguageRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->documentation->getDocumentationPerLanguage('hack'); + $response = $sdk->documentation->getDocumentationPerLanguage('string'); if ($response->statusCode === 200) { // handle response diff --git a/php-client-sdk/docs/sdks/errors/README.md b/php-client-sdk/docs/sdks/errors/README.md index 7e72ab785..4a137fa47 100755 --- a/php-client-sdk/docs/sdks/errors/README.md +++ b/php-client-sdk/docs/sdks/errors/README.md @@ -24,7 +24,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -64,7 +68,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\StatusGetErrorRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -106,7 +114,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\StatusGetXSpeakeasyErrorsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/first/README.md b/php-client-sdk/docs/sdks/first/README.md index 8e6b398cc..5412f1c75 100755 --- a/php-client-sdk/docs/sdks/first/README.md +++ b/php-client-sdk/docs/sdks/first/README.md @@ -18,7 +18,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/flattening/README.md b/php-client-sdk/docs/sdks/flattening/README.md index 613e76ee8..50c3a360b 100755 --- a/php-client-sdk/docs/sdks/flattening/README.md +++ b/php-client-sdk/docs/sdks/flattening/README.md @@ -31,12 +31,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $simpleObject = new SimpleObject(); - $simpleObject->any = 'Minivan'; + $simpleObject->any = 'any'; $simpleObject->bigint = 8821239038968084; $simpleObject->bigintStr = '9223372036854775808'; $simpleObject->bool = true; @@ -50,14 +54,14 @@ try { $simpleObject->int = 1; $simpleObject->int32 = 1; $simpleObject->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; - $simpleObject->intEnum = SimpleObjectIntEnum::Third; - $simpleObject->intOptNull = 780; + $simpleObject->intEnum = SimpleObjectIntEnum::Second; + $simpleObject->intOptNull = 843322; $simpleObject->num = 1.1; - $simpleObject->numOptNull = 5419.15; + $simpleObject->numOptNull = 7126.06; $simpleObject->str = 'test'; $simpleObject->strOpt = 'testOptional'; - $response = $sdk->flattening->componentBodyAndParamConflict($simpleObject, 'Coupe'); + $response = $sdk->flattening->componentBodyAndParamConflict($simpleObject, 'string'); if ($response->res !== null) { // handle response @@ -98,12 +102,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $simpleObject = new SimpleObject(); - $simpleObject->any = 'ick'; + $simpleObject->any = 'any'; $simpleObject->bigint = 8821239038968084; $simpleObject->bigintStr = '9223372036854775808'; $simpleObject->bool = true; @@ -117,14 +125,14 @@ try { $simpleObject->int = 1; $simpleObject->int32 = 1; $simpleObject->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; - $simpleObject->intEnum = SimpleObjectIntEnum::First; - $simpleObject->intOptNull = 575433; + $simpleObject->intEnum = SimpleObjectIntEnum::Third; + $simpleObject->intOptNull = 758827; $simpleObject->num = 1.1; - $simpleObject->numOptNull = 3895.81; + $simpleObject->numOptNull = 1702.8; $simpleObject->str = 'test'; $simpleObject->strOpt = 'testOptional'; - $response = $sdk->flattening->componentBodyAndParamNoConflict('Ferrari', $simpleObject); + $response = $sdk->flattening->componentBodyAndParamNoConflict('string', $simpleObject); if ($response->res !== null) { // handle response @@ -161,13 +169,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\ConflictingParamsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->flattening->conflictingParams('kilogram', 'Cloned'); + $response = $sdk->flattening->conflictingParams('string', 'string'); if ($response->res !== null) { // handle response @@ -205,14 +217,18 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\InlineBodyAndParamConflictRequest; use \OpenAPI\OpenAPI\Models\Operations\InlineBodyAndParamConflictRequestBody; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $requestBody = new InlineBodyAndParamConflictRequestBody(); - $requestBody->str = 'Progressive'; + $requestBody->str = 'string'; - $response = $sdk->flattening->inlineBodyAndParamConflict($requestBody, 'until'); + $response = $sdk->flattening->inlineBodyAndParamConflict($requestBody, 'string'); if ($response->res !== null) { // handle response @@ -250,14 +266,18 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\InlineBodyAndParamNoConflictRequest; use \OpenAPI\OpenAPI\Models\Operations\InlineBodyAndParamNoConflictRequestBody; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $requestBody = new InlineBodyAndParamNoConflictRequestBody(); - $requestBody->bodyStr = 'dynamic expedite'; + $requestBody->bodyStr = 'string'; - $response = $sdk->flattening->inlineBodyAndParamNoConflict($requestBody, 'Forward'); + $response = $sdk->flattening->inlineBodyAndParamNoConflict($requestBody, 'string'); if ($response->res !== null) { // handle response diff --git a/php-client-sdk/docs/sdks/generation/README.md b/php-client-sdk/docs/sdks/generation/README.md index 5af42f292..d33a3a3a5 100755 --- a/php-client-sdk/docs/sdks/generation/README.md +++ b/php-client-sdk/docs/sdks/generation/README.md @@ -10,6 +10,9 @@ Endpoints for purely testing valid generation behavior. * [anchorTypesGet](#anchortypesget) * [arrayCircularReferenceGet](#arraycircularreferenceget) * [circularReferenceGet](#circularreferenceget) +* [dateParamWithDefault](#dateparamwithdefault) +* [dateTimeParamWithDefault](#datetimeparamwithdefault) +* [decimalParamWithDefault](#decimalparamwithdefault) * [deprecatedFieldInSchemaPost](#deprecatedfieldinschemapost) * [deprecatedObjectInSchemaGet](#deprecatedobjectinschemaget) * [~~deprecatedOperationNoCommentsGet~~](#deprecatedoperationnocommentsget) - deprecatedOperationNoCommentsGet :warning: **Deprecated** @@ -38,7 +41,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -71,7 +78,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -104,7 +115,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -124,6 +139,144 @@ try { **[?\OpenAPI\OpenAPI\Models\Operations\CircularReferenceGetResponse](../../models/operations/CircularReferenceGetResponse.md)** +## dateParamWithDefault + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + + + $response = $sdk->generation->dateParamWithDefault(DateTime::createFromFormat('Y-m-d', '2021-11-30')); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `dateInput` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date parameter with a default value | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\DateParamWithDefaultResponse](../../models/operations/DateParamWithDefaultResponse.md)** + + +## dateTimeParamWithDefault + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + + + $response = $sdk->generation->dateTimeParamWithDefault(DateTime::createFromFormat('Y-m-d\TH:i:s+', '2023-02-09T21:53:21.077Z')); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `dateTimeInput` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | A date time parameter with a default value | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\DateTimeParamWithDefaultResponse](../../models/operations/DateTimeParamWithDefaultResponse.md)** + + +## decimalParamWithDefault + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + + + $response = $sdk->generation->decimalParamWithDefault(4060.06); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimalInput` | *float* | :heavy_check_mark: | A decimal parameter with a default value | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\DecimalParamWithDefaultResponse](../../models/operations/DecimalParamWithDefaultResponse.md)** + + ## deprecatedFieldInSchemaPost ### Example Usage @@ -139,13 +292,17 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\DeprecatedFieldInObject; use \OpenAPI\OpenAPI\Models\Shared\DeprecatedFieldInObjectDeprecatedEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new DeprecatedFieldInObject(); - $request->deprecatedField = 'Bike Avon'; - $request->newField = 'Rubber Santa'; + $request->deprecatedField = 'string'; + $request->newField = 'string'; $response = $sdk->generation->deprecatedFieldInSchemaPost($request); @@ -182,7 +339,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -220,13 +381,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\DeprecatedOperationNoCommentsGetRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->generation->deprecatedOperationNoCommentsGet('Account'); + $response = $sdk->generation->deprecatedOperationNoCommentsGet('string'); if ($response->statusCode === 200) { // handle response @@ -240,7 +405,7 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `deprecatedParameter` | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `deprecatedParameter` | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | ### Response @@ -266,13 +431,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\DeprecatedOperationWithCommentsGetRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->generation->deprecatedOperationWithCommentsGet('Account', 'actuating'); + $response = $sdk->generation->deprecatedOperationWithCommentsGet('string', 'string'); if ($response->statusCode === 200) { // handle response @@ -286,8 +455,8 @@ try { | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `deprecatedParameter` | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This parameter is deprecated. Use newParameter instead.

This is a string parameter | -| `newParameter` | *?string* | :heavy_minus_sign: | This is a string parameter | +| `deprecatedParameter` | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This parameter is deprecated. Use newParameter instead.

This is a string parameter | +| `newParameter` | *string* | :heavy_minus_sign: | This is a string parameter | ### Response @@ -310,7 +479,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\EmptyObjectGetRequest; use \OpenAPI\OpenAPI\Models\Shared\EmptyObjectParam; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -351,7 +524,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -384,7 +561,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -417,7 +598,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -452,15 +637,19 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\IgnoresPostRequest; use \OpenAPI\OpenAPI\Models\Operations\IgnoresPostApplicationJSON; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $requestBody = new IgnoresPostApplicationJSON(); $requestBody->callbackUrl = 'http://diligent-activist.biz'; - $requestBody->testProp = 'solid Branding Maserati'; + $requestBody->testProp = 'string'; - $response = $sdk->generation->ignoresPost($requestBody, 'Maserati'); + $response = $sdk->generation->ignoresPost($requestBody, 'string'); if ($response->httpBinSimpleJsonObject !== null) { // handle response @@ -475,7 +664,7 @@ try { | Parameter | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | `requestBody` | [\OpenAPI\OpenAPI\Models\Operations\IgnoresPostApplicationJSON](../../models/operations/IgnoresPostApplicationJSON.md) | :heavy_check_mark: | N/A | -| `testParam` | *?string* | :heavy_minus_sign: | N/A | +| `testParam` | *string* | :heavy_minus_sign: | N/A | ### Response @@ -498,7 +687,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\NameOverrideGetRequest; use \OpenAPI\OpenAPI\Models\Operations\NameOverrideGetEnumNameOverride; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -540,7 +733,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -573,7 +770,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -608,16 +809,20 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\TypedParameterGenerationGetRequest; use \OpenAPI\OpenAPI\Models\Operations\TypedParameterGenerationGetObj; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $obj = new TypedParameterGenerationGetObj(); $obj->bool = false; $obj->num = 8792.75; - $obj->str = 'innocently Orchestrator program'; + $obj->str = 'string'; - $response = $sdk->generation->typedParameterGenerationGet(302424, DateTime::createFromFormat('Y-m-d', '2021-10-23'), 1913.6, $obj); + $response = $sdk->generation->typedParameterGenerationGet(960186, DateTime::createFromFormat('Y-m-d', '2022-01-02'), 4778.06, $obj); if ($response->statusCode === 200) { // handle response @@ -629,12 +834,12 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -| `bigint` | *?int* | :heavy_minus_sign: | N/A | -| `date` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | -| `decimal` | *?float* | :heavy_minus_sign: | N/A | -| `obj` | [?\OpenAPI\OpenAPI\Models\Operations\TypedParameterGenerationGetObj](../../models/operations/TypedParameterGenerationGetObj.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `bigint` | *int* | :heavy_minus_sign: | N/A | +| `date` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | +| `decimal` | *float* | :heavy_minus_sign: | N/A | +| `obj` | [\OpenAPI\OpenAPI\Models\Operations\TypedParameterGenerationGetObj](../../models/operations/TypedParameterGenerationGetObj.md) | :heavy_minus_sign: | N/A | ### Response @@ -687,71 +892,71 @@ try { $request->requestBody->fakerFormattedStrings->imageFormat = 'https://loremflickr.com/640/480'; $request->requestBody->fakerFormattedStrings->ipv4Format = '75.42.25.241'; $request->requestBody->fakerFormattedStrings->ipv6Format = '36a9:c057:a71b:b73a:c9ee:2348:d76c:3164'; - $request->requestBody->fakerFormattedStrings->jsonFormat = '{plane: 14910, fringe: null, lightning: "Roentgenium UTF8"}'; - $request->requestBody->fakerFormattedStrings->macFormat = '13:58:66:7d:ac:95'; - $request->requestBody->fakerFormattedStrings->passwordFormat = 'b6eWzdveK0sHokC'; - $request->requestBody->fakerFormattedStrings->phoneFormat = '832-504-6221 x221'; - $request->requestBody->fakerFormattedStrings->timezoneFormat = 'Asia/Krasnoyarsk'; - $request->requestBody->fakerFormattedStrings->unknownFormat = 'Principal at'; - $request->requestBody->fakerFormattedStrings->urlFormat = 'http://understated-balcony.org'; - $request->requestBody->fakerFormattedStrings->uuidFormat = '62de2e2d-47a9-4bf1-80f7-53b9b364b6b4'; - $request->requestBody->fakerFormattedStrings->zipcodeFormat = '25687-7266'; + $request->requestBody->fakerFormattedStrings->jsonFormat = '{key: 66681, key1: null, key2: "string"}'; + $request->requestBody->fakerFormattedStrings->macFormat = '25:8b:e7:e1:35:86'; + $request->requestBody->fakerFormattedStrings->passwordFormat = 'IKpiCb6eWzdveK0'; + $request->requestBody->fakerFormattedStrings->phoneFormat = '1-803-587-3283'; + $request->requestBody->fakerFormattedStrings->timezoneFormat = 'America/Argentina/Buenos_Aires'; + $request->requestBody->fakerFormattedStrings->unknownFormat = 'string'; + $request->requestBody->fakerFormattedStrings->urlFormat = 'http://beneficial-inconvenience.net'; + $request->requestBody->fakerFormattedStrings->uuidFormat = '342442b8-aff3-42e0-b62d-e2e2d47a9bf1'; + $request->requestBody->fakerFormattedStrings->zipcodeFormat = '09432'; $request->requestBody->fakerStrings = new FakerStrings(); - $request->requestBody->fakerStrings->city = 'Port Carli'; - $request->requestBody->fakerStrings->iban = 'TN8700576009897281100717'; + $request->requestBody->fakerStrings->city = 'McLaughlinchester'; + $request->requestBody->fakerStrings->iban = 'TL232743267267003560099'; $request->requestBody->fakerStrings->id = ''; - $request->requestBody->fakerStrings->iPv4 = '141.21.132.133'; - $request->requestBody->fakerStrings->iPv6 = '308b:b979:0237:4ea8:ee39:8480:0301:1d98'; - $request->requestBody->fakerStrings->account = '81966519'; - $request->requestBody->fakerStrings->address = '418 Maybelle Brooks'; - $request->requestBody->fakerStrings->amount = '27.55'; + $request->requestBody->fakerStrings->iPv4 = '208.201.244.247'; + $request->requestBody->fakerStrings->iPv6 = 'bd3a:d72b:208b:2c81:8830:8bb9:7902:374e'; + $request->requestBody->fakerStrings->account = '65982652'; + $request->requestBody->fakerStrings->address = '0010 Assunta Throughway'; + $request->requestBody->fakerStrings->amount = '616.94'; $request->requestBody->fakerStrings->avatar = 'https://loremflickr.com/640/480'; - $request->requestBody->fakerStrings->color = 'turquoise'; - $request->requestBody->fakerStrings->comment = 'The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality'; - $request->requestBody->fakerStrings->company = 'Murazik, Kozey and Hirthe'; - $request->requestBody->fakerStrings->country = 'Equatorial Guinea'; - $request->requestBody->fakerStrings->countryCode = 'LU'; - $request->requestBody->fakerStrings->currency = 'Congolese Franc'; - $request->requestBody->fakerStrings->datatype = 'bigint'; - $request->requestBody->fakerStrings->default = 'Dalasi'; - $request->requestBody->fakerStrings->description = 'Up-sized explicit frame'; - $request->requestBody->fakerStrings->directory = '/home'; - $request->requestBody->fakerStrings->domainName = 'warmhearted-buying.biz'; - $request->requestBody->fakerStrings->emailAddr = 'Beulah.Franecki24@gmail.com'; - $request->requestBody->fakerStrings->extension = 'pdf'; - $request->requestBody->fakerStrings->filename = 'recovery.pdf'; - $request->requestBody->fakerStrings->filepath = '/usr/share/powerfully.less'; - $request->requestBody->fakerStrings->filetype = 'application'; - $request->requestBody->fakerStrings->firstName = 'Geovany'; - $request->requestBody->fakerStrings->fullName = 'Roy Gottlieb'; - $request->requestBody->fakerStrings->gender = 'Cis'; - $request->requestBody->fakerStrings->job = 'International Metrics Administrator'; - $request->requestBody->fakerStrings->json = '{trachoma: 6397, nick: null, android: "Plastic Recumbent"}'; + $request->requestBody->fakerStrings->color = 'tan'; + $request->requestBody->fakerStrings->comment = 'New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart'; + $request->requestBody->fakerStrings->company = 'Volkman LLC'; + $request->requestBody->fakerStrings->country = 'Nicaragua'; + $request->requestBody->fakerStrings->countryCode = 'MO'; + $request->requestBody->fakerStrings->currency = 'Canadian Dollar'; + $request->requestBody->fakerStrings->datatype = 'point'; + $request->requestBody->fakerStrings->default = 'string'; + $request->requestBody->fakerStrings->description = 'Quality-focused full-range circuit'; + $request->requestBody->fakerStrings->directory = '/usr/ports'; + $request->requestBody->fakerStrings->domainName = 'klutzy-prostacyclin.com'; + $request->requestBody->fakerStrings->emailAddr = 'Jalyn_Haley47@gmail.com'; + $request->requestBody->fakerStrings->extension = 'png'; + $request->requestBody->fakerStrings->filename = 'panel.jpeg'; + $request->requestBody->fakerStrings->filepath = '/opt/share/yahoo.xul'; + $request->requestBody->fakerStrings->filetype = 'video'; + $request->requestBody->fakerStrings->firstName = 'Trystan'; + $request->requestBody->fakerStrings->fullName = 'Mrs. Lillian Bode'; + $request->requestBody->fakerStrings->gender = 'Cis female'; + $request->requestBody->fakerStrings->job = 'Future Solutions Specialist'; + $request->requestBody->fakerStrings->json = '{key: 95274, key1: null, key2: "string"}'; $request->requestBody->fakerStrings->key = ''; - $request->requestBody->fakerStrings->lastName = 'Kshlerin'; - $request->requestBody->fakerStrings->latitude = '65.3520'; - $request->requestBody->fakerStrings->locale = 'zh_CN'; - $request->requestBody->fakerStrings->longitude = '16.8742'; - $request->requestBody->fakerStrings->mac = 'fd:b6:ff:35:99:05'; - $request->requestBody->fakerStrings->manufacturer = 'Mazda'; - $request->requestBody->fakerStrings->material = 'Frozen'; - $request->requestBody->fakerStrings->middleName = 'Emerson'; + $request->requestBody->fakerStrings->lastName = 'Renner'; + $request->requestBody->fakerStrings->latitude = '-71.5944'; + $request->requestBody->fakerStrings->locale = 'sv'; + $request->requestBody->fakerStrings->longitude = '-131.8166'; + $request->requestBody->fakerStrings->mac = 'e9:ee:6a:24:2a:1b'; + $request->requestBody->fakerStrings->manufacturer = 'Volvo'; + $request->requestBody->fakerStrings->material = 'Plastic'; + $request->requestBody->fakerStrings->middleName = 'Sawyer'; $request->requestBody->fakerStrings->model = 'Mustang'; - $request->requestBody->fakerStrings->password = '71wIwgEZJMTCRYg'; - $request->requestBody->fakerStrings->phone = '1-466-307-0476'; - $request->requestBody->fakerStrings->pin = '0584'; - $request->requestBody->fakerStrings->postalCode = '07886'; - $request->requestBody->fakerStrings->price = '452.00'; - $request->requestBody->fakerStrings->product = 'Small Steel Salad'; - $request->requestBody->fakerStrings->sex = 'female'; - $request->requestBody->fakerStrings->street = 'Christy Dam'; - $request->requestBody->fakerStrings->timezone = 'America/Regina'; - $request->requestBody->fakerStrings->unit = 'sievert'; - $request->requestBody->fakerStrings->url = 'http://repentant-haunt.name'; - $request->requestBody->fakerStrings->username = 'Heather_Mills48'; - $request->requestBody->fakerStrings->uuid = '29e9f1c7-ed92-481f-955b-6ca1625b4c3a'; + $request->requestBody->fakerStrings->password = 'YAC_QiNrTzqbDz8'; + $request->requestBody->fakerStrings->phone = '(650) 469-3026 x116'; + $request->requestBody->fakerStrings->pin = '9497'; + $request->requestBody->fakerStrings->postalCode = '64696'; + $request->requestBody->fakerStrings->price = '25.00'; + $request->requestBody->fakerStrings->product = 'Recycled Granite Pants'; + $request->requestBody->fakerStrings->sex = 'male'; + $request->requestBody->fakerStrings->street = 'Lura Wells'; + $request->requestBody->fakerStrings->timezone = 'Africa/Nairobi'; + $request->requestBody->fakerStrings->unit = 'degree Celsius'; + $request->requestBody->fakerStrings->url = 'https://crooked-dulcimer.name'; + $request->requestBody->fakerStrings->username = 'Mable76'; + $request->requestBody->fakerStrings->uuid = '16b919d6-51cd-4e97-81e2-5221b7b6969f'; $request->requestBody->simpleObject = new SimpleObject(); - $request->requestBody->simpleObject->any = 'wireless'; + $request->requestBody->simpleObject->any = 'any'; $request->requestBody->simpleObject->bigint = 8821239038968084; $request->requestBody->simpleObject->bigintStr = '9223372036854775808'; $request->requestBody->simpleObject->bool = true; @@ -764,33 +969,34 @@ try { $request->requestBody->simpleObject->float32 = 1.1; $request->requestBody->simpleObject->int = 1; $request->requestBody->simpleObject->int32 = 1; - $request->requestBody->simpleObject->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $request->requestBody->simpleObject->intEnum = SimpleObjectIntEnum::Third; - $request->requestBody->simpleObject->intOptNull = 51222; + $request->requestBody->simpleObject->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; + $request->requestBody->simpleObject->intEnum = SimpleObjectIntEnum::Second; + $request->requestBody->simpleObject->intOptNull = 165468; $request->requestBody->simpleObject->num = 1.1; - $request->requestBody->simpleObject->numOptNull = 598.05; + $request->requestBody->simpleObject->numOptNull = 5944.32; $request->requestBody->simpleObject->str = 'test'; $request->requestBody->simpleObject->strOpt = 'testOptional'; - $request->bigintParameter = 284159; - $request->bigintParameterOptional = 322202; - $request->bigintStrParameter = 'Automotive'; - $request->bigintStrParameterOptional = 'focus Country'; + $request->bigintParameter = 924793; + $request->bigintParameterOptional = 583481; + $request->bigintStrParameter = 'string'; + $request->bigintStrParameterOptional = 'string'; $request->boolParameter = false; - $request->dateParameter = DateTime::createFromFormat('Y-m-d', '2022-01-13'); - $request->dateTimeParameter = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-04-10T10:50:46.754Z'); - $request->decimalParameter = 8924.18; - $request->decimalParameterOptional = 5705.14; - $request->decimalStrParameter = 'navigating'; - $request->decimalStrParameterOptional = 'Rap matrix South'; - $request->doubleParameter = 7223.13; + $request->dateParameter = DateTime::createFromFormat('Y-m-d', '2023-12-21'); + $request->dateTimeDefaultParameter = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-03-16T01:25:42.471Z'); + $request->dateTimeParameter = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2023-05-24T07:01:53.326Z'); + $request->decimalParameter = 4713.96; + $request->decimalParameterOptional = 9349.54; + $request->decimalStrParameter = 'string'; + $request->decimalStrParameterOptional = 'string'; + $request->doubleParameter = 8700.78; $request->enumParameter = UsageExamplePostEnumParameter::Value2; $request->falseyNumberParameter = 0; - $request->float32Parameter = 8430.91; - $request->floatParameter = 3767.71; - $request->int64Parameter = 733506; - $request->intParameter = 892942; + $request->float32Parameter = 1341.86; + $request->floatParameter = 5429.24; + $request->int64Parameter = 101970; + $request->intParameter = 938852; $request->optEnumParameter = UsageExamplePostOptEnumParameter::Value3; - $request->strParameter = 'example 2'; + $request->strParameter = 'example 3'; $requestSecurity = new UsageExamplePostSecurity(); $requestSecurity->password = 'YOUR_PASSWORD'; diff --git a/php-client-sdk/docs/sdks/globals/README.md b/php-client-sdk/docs/sdks/globals/README.md index e67484e63..0251d7b12 100755 --- a/php-client-sdk/docs/sdks/globals/README.md +++ b/php-client-sdk/docs/sdks/globals/README.md @@ -24,7 +24,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\GlobalPathParameterGetRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -44,7 +48,7 @@ try { | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `globalPathParam` | *?int* | :heavy_minus_sign: | N/A | +| `globalPathParam` | *int* | :heavy_minus_sign: | N/A | ### Response @@ -66,13 +70,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\GlobalsQueryParameterGetRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->globals->globalsQueryParameterGet('Tricycle'); + $response = $sdk->globals->globalsQueryParameterGet('string'); if ($response->res !== null) { // handle response @@ -86,7 +94,7 @@ try { | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `globalQueryParam` | *?string* | :heavy_minus_sign: | N/A | +| `globalQueryParam` | *string* | :heavy_minus_sign: | N/A | ### Response diff --git a/php-client-sdk/docs/sdks/nested/README.md b/php-client-sdk/docs/sdks/nested/README.md index 7ad964ec0..543962255 100755 --- a/php-client-sdk/docs/sdks/nested/README.md +++ b/php-client-sdk/docs/sdks/nested/README.md @@ -18,7 +18,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/nestedfirst/README.md b/php-client-sdk/docs/sdks/nestedfirst/README.md index 65f72aeb0..3db6007ff 100755 --- a/php-client-sdk/docs/sdks/nestedfirst/README.md +++ b/php-client-sdk/docs/sdks/nestedfirst/README.md @@ -18,7 +18,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/nestedsecond/README.md b/php-client-sdk/docs/sdks/nestedsecond/README.md index b787e7d0c..0ad64f8da 100755 --- a/php-client-sdk/docs/sdks/nestedsecond/README.md +++ b/php-client-sdk/docs/sdks/nestedsecond/README.md @@ -18,7 +18,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/nestfirst/README.md b/php-client-sdk/docs/sdks/nestfirst/README.md index b99bd856a..addc560a2 100755 --- a/php-client-sdk/docs/sdks/nestfirst/README.md +++ b/php-client-sdk/docs/sdks/nestfirst/README.md @@ -18,7 +18,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/pagination/README.md b/php-client-sdk/docs/sdks/pagination/README.md index 2b28f86db..38b289160 100755 --- a/php-client-sdk/docs/sdks/pagination/README.md +++ b/php-client-sdk/docs/sdks/pagination/README.md @@ -28,7 +28,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\PaginationCursorBodyRequestBody; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -72,7 +76,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\PaginationCursorParamsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -115,7 +123,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\LimitOffsetConfig; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -161,7 +173,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\PaginationLimitOffsetOffsetParamsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -181,8 +197,8 @@ try { | Parameter | Type | Required | Description | | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `limit` | *?int* | :heavy_minus_sign: | N/A | -| `offset` | *?int* | :heavy_minus_sign: | N/A | +| `limit` | *int* | :heavy_minus_sign: | N/A | +| `offset` | *int* | :heavy_minus_sign: | N/A | | `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | @@ -205,7 +221,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\LimitOffsetConfig; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -251,7 +271,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\PaginationLimitOffsetPageParamsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/parameters/README.md b/php-client-sdk/docs/sdks/parameters/README.md index 1371fe0f6..692b19374 100755 --- a/php-client-sdk/docs/sdks/parameters/README.md +++ b/php-client-sdk/docs/sdks/parameters/README.md @@ -11,6 +11,7 @@ Endpoints for testing parameters. * [deepObjectQueryParamsObject](#deepobjectqueryparamsobject) * [duplicateParam](#duplicateparam) * [formQueryParamsArray](#formqueryparamsarray) +* [formQueryParamsCamelObject](#formqueryparamscamelobject) * [formQueryParamsMap](#formqueryparamsmap) * [formQueryParamsObject](#formqueryparamsobject) * [formQueryParamsPrimitive](#formqueryparamsprimitive) @@ -44,17 +45,21 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\DeepObjectQueryParamsMapRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $response = $sdk->parameters->deepObjectQueryParamsMap([ - 'quas' => 'Concrete', + 'compress' => 'string', ], [ - 'necessitatibus' => [ - 'of', + 'of' => [ + 'string', ], ]); @@ -68,10 +73,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `mapParam` | array | :heavy_check_mark: | N/A | -| `mapArrParam` | array> | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `mapParam` | array | :heavy_check_mark: | N/A | [object Object] | +| `mapArrParam` | array> | :heavy_minus_sign: | N/A | [object Object] | ### Response @@ -98,12 +103,16 @@ use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; use \OpenAPI\OpenAPI\Models\Operations\DeepObjectQueryParamsObjectObjArrParam; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $objParam = new SimpleObject(); - $objParam->any = 'Jazz'; + $objParam->any = 'any'; $objParam->bigint = 8821239038968084; $objParam->bigintStr = '9223372036854775808'; $objParam->bool = true; @@ -116,11 +125,11 @@ try { $objParam->float32 = 1.1; $objParam->int = 1; $objParam->int32 = 1; - $objParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; + $objParam->int32Enum = SimpleObjectInt32Enum::SixtyNine; $objParam->intEnum = SimpleObjectIntEnum::Second; - $objParam->intOptNull = 425315; + $objParam->intOptNull = 303001; $objParam->num = 1.1; - $objParam->numOptNull = 1324.77; + $objParam->numOptNull = 5571.55; $objParam->str = 'test'; $objParam->strOpt = 'testOptional'; @@ -141,10 +150,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `objParam` | [\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | -| `objArrParam` | [?\OpenAPI\OpenAPI\Models\Operations\DeepObjectQueryParamsObjectObjArrParam](../../models/operations/DeepObjectQueryParamsObjectObjArrParam.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `objParam` | [\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `objArrParam` | [\OpenAPI\OpenAPI\Models\Operations\DeepObjectQueryParamsObjectObjArrParam](../../models/operations/DeepObjectQueryParamsObjectObjArrParam.md) | :heavy_minus_sign: | N/A | ### Response @@ -166,13 +175,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\DuplicateParamRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->parameters->duplicateParam('Parks'); + $response = $sdk->parameters->duplicateParam('string'); if ($response->duplicateParamResponse !== null) { // handle response @@ -208,7 +221,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsArrayRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -241,6 +258,61 @@ try { **[?\OpenAPI\OpenAPI\Models\Operations\FormQueryParamsArrayResponse](../../models/operations/FormQueryParamsArrayResponse.md)** +## formQueryParamsCamelObject + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + $objParamExploded = new FormQueryParamsCamelObjectObjParamExploded(); + $objParamExploded->itemCount = '10'; + $objParamExploded->searchTerm = 'foo'; + + $objParam = new FormQueryParamsCamelObjectObjParam(); + $objParam->encodedCount = '11'; + $objParam->encodedTerm = 'bar'; + + $response = $sdk->parameters->formQueryParamsCamelObject($objParamExploded, $objParam); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `objParamExploded` | [\OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectObjParamExploded](../../models/operations/FormQueryParamsCamelObjectObjParamExploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [\OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectObjParam](../../models/operations/FormQueryParamsCamelObjectObjParam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectResponse](../../models/operations/FormQueryParamsCamelObjectResponse.md)** + + ## formQueryParamsMap ### Example Usage @@ -255,16 +327,20 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsMapRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $response = $sdk->parameters->formQueryParamsMap([ - 'rerum' => 'provident', + 'male' => 'string', ], [ - 'optio' => 355695, + 'Reggae' => 355695, ]); if ($response->res !== null) { @@ -277,10 +353,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `mapParam` | array | :heavy_minus_sign: | N/A | -| `mapParamExploded` | array | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `mapParam` | array | :heavy_minus_sign: | N/A | [object Object] | +| `mapParamExploded` | array | :heavy_minus_sign: | N/A | [object Object] | ### Response @@ -306,12 +382,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $objParamExploded = new SimpleObject(); - $objParamExploded->any = 'Web'; + $objParamExploded->any = 'any'; $objParamExploded->bigint = 8821239038968084; $objParamExploded->bigintStr = '9223372036854775808'; $objParamExploded->bool = true; @@ -324,16 +404,16 @@ try { $objParamExploded->float32 = 1.1; $objParamExploded->int = 1; $objParamExploded->int32 = 1; - $objParamExploded->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $objParamExploded->intEnum = SimpleObjectIntEnum::Third; - $objParamExploded->intOptNull = 87354; + $objParamExploded->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; + $objParamExploded->intEnum = SimpleObjectIntEnum::Second; + $objParamExploded->intOptNull = 645228; $objParamExploded->num = 1.1; - $objParamExploded->numOptNull = 883.91; + $objParamExploded->numOptNull = 7602.31; $objParamExploded->str = 'test'; $objParamExploded->strOpt = 'testOptional'; $objParam = new SimpleObject(); - $objParam->any = 'Associate'; + $objParam->any = 'any'; $objParam->bigint = 8821239038968084; $objParam->bigintStr = '9223372036854775808'; $objParam->bool = true; @@ -346,11 +426,11 @@ try { $objParam->float32 = 1.1; $objParam->int = 1; $objParam->int32 = 1; - $objParam->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; - $objParam->intEnum = SimpleObjectIntEnum::Third; - $objParam->intOptNull = 547098; + $objParam->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $objParam->intEnum = SimpleObjectIntEnum::First; + $objParam->intOptNull = 973554; $objParam->num = 1.1; - $objParam->numOptNull = 5763.58; + $objParam->numOptNull = 873.54; $objParam->str = 'test'; $objParam->strOpt = 'testOptional'; @@ -369,7 +449,7 @@ try { | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | `objParamExploded` | [\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | -| `objParam` | [?\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `objParam` | [\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | ### Response @@ -391,7 +471,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsPrimitiveRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -438,7 +522,11 @@ use \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsRefParamObjectRequest; use \OpenAPI\OpenAPI\Models\Shared\RefQueryParamObj; use \OpenAPI\OpenAPI\Models\Shared\RefQueryParamObjExploded; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -466,10 +554,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `refObjParam` | [?\OpenAPI\OpenAPI\Models\Shared\RefQueryParamObj](../../models/shared/RefQueryParamObj.md) | :heavy_minus_sign: | N/A | -| `refObjParamExploded` | [?\OpenAPI\OpenAPI\Models\Shared\RefQueryParamObjExploded](../../models/shared/RefQueryParamObjExploded.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `refObjParam` | [\OpenAPI\OpenAPI\Models\Shared\RefQueryParamObj](../../models/shared/RefQueryParamObj.md) | :heavy_minus_sign: | N/A | +| `refObjParamExploded` | [\OpenAPI\OpenAPI\Models\Shared\RefQueryParamObjExploded](../../models/shared/RefQueryParamObjExploded.md) | :heavy_minus_sign: | N/A | ### Response @@ -491,7 +579,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\HeaderParamsArrayRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -535,16 +627,20 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\HeaderParamsMapRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $response = $sdk->parameters->headerParamsMap([ - 'ipsum' => 'Kids', + 'Ball' => 'string', ], [ - 'omnis' => 'sky', + 'Account' => 'string', ]); if ($response->res !== null) { @@ -557,10 +653,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `xHeaderMap` | array | :heavy_check_mark: | N/A | -| `xHeaderMapExplode` | array | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `xHeaderMap` | array | :heavy_check_mark: | N/A | [object Object] | +| `xHeaderMapExplode` | array | :heavy_check_mark: | N/A | [object Object] | ### Response @@ -586,12 +682,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $xHeaderObj = new SimpleObject(); - $xHeaderObj->any = 'tolerance'; + $xHeaderObj->any = 'any'; $xHeaderObj->bigint = 8821239038968084; $xHeaderObj->bigintStr = '9223372036854775808'; $xHeaderObj->bool = true; @@ -604,16 +704,16 @@ try { $xHeaderObj->float32 = 1.1; $xHeaderObj->int = 1; $xHeaderObj->int32 = 1; - $xHeaderObj->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $xHeaderObj->intEnum = SimpleObjectIntEnum::First; - $xHeaderObj->intOptNull = 598385; + $xHeaderObj->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $xHeaderObj->intEnum = SimpleObjectIntEnum::Third; + $xHeaderObj->intOptNull = 590416; $xHeaderObj->num = 1.1; - $xHeaderObj->numOptNull = 543.44; + $xHeaderObj->numOptNull = 144.68; $xHeaderObj->str = 'test'; $xHeaderObj->strOpt = 'testOptional'; $xHeaderObjExplode = new SimpleObject(); - $xHeaderObjExplode->any = 'Representative'; + $xHeaderObjExplode->any = 'any'; $xHeaderObjExplode->bigint = 8821239038968084; $xHeaderObjExplode->bigintStr = '9223372036854775808'; $xHeaderObjExplode->bool = true; @@ -626,11 +726,11 @@ try { $xHeaderObjExplode->float32 = 1.1; $xHeaderObjExplode->int = 1; $xHeaderObjExplode->int32 = 1; - $xHeaderObjExplode->int32Enum = SimpleObjectInt32Enum::SixtyNine; - $xHeaderObjExplode->intEnum = SimpleObjectIntEnum::First; - $xHeaderObjExplode->intOptNull = 533235; + $xHeaderObjExplode->int32Enum = SimpleObjectInt32Enum::FiftyFive; + $xHeaderObjExplode->intEnum = SimpleObjectIntEnum::Second; + $xHeaderObjExplode->intOptNull = 54344; $xHeaderObjExplode->num = 1.1; - $xHeaderObjExplode->numOptNull = 2526.18; + $xHeaderObjExplode->numOptNull = 6940.18; $xHeaderObjExplode->str = 'test'; $xHeaderObjExplode->strOpt = 'testOptional'; @@ -671,7 +771,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\HeaderParamsPrimitiveRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -721,23 +825,27 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $deepObjParam = new DeepObject(); - $deepObjParam->any = 'Hybrid'; + $deepObjParam->any = 'anyOf[0]'; $deepObjParam->arr = [ new SimpleObject(), ]; $deepObjParam->bool = true; $deepObjParam->int = 1; $deepObjParam->map = [ - 'cum' => new SimpleObject(), + 'Hybrid' => new SimpleObject(), ]; $deepObjParam->num = 1.1; $deepObjParam->obj = new SimpleObject(); - $deepObjParam->obj->any = 'woozy'; + $deepObjParam->obj->any = 'any'; $deepObjParam->obj->bigint = 8821239038968084; $deepObjParam->obj->bigintStr = '9223372036854775808'; $deepObjParam->obj->bool = true; @@ -750,18 +858,18 @@ try { $deepObjParam->obj->float32 = 1.1; $deepObjParam->obj->int = 1; $deepObjParam->obj->int32 = 1; - $deepObjParam->obj->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $deepObjParam->obj->intEnum = SimpleObjectIntEnum::First; - $deepObjParam->obj->intOptNull = 330936; + $deepObjParam->obj->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; + $deepObjParam->obj->intEnum = SimpleObjectIntEnum::Third; + $deepObjParam->obj->intOptNull = 980270; $deepObjParam->obj->num = 1.1; - $deepObjParam->obj->numOptNull = 8351.22; + $deepObjParam->obj->numOptNull = 2047.13; $deepObjParam->obj->str = 'test'; $deepObjParam->obj->strOpt = 'testOptional'; $deepObjParam->str = 'test'; - $deepObjParam->type = 'Bohrium Account synthesize'; + $deepObjParam->type = 'string'; $simpleObjParam = new SimpleObject(); - $simpleObjParam->any = 'without'; + $simpleObjParam->any = 'any'; $simpleObjParam->bigint = 8821239038968084; $simpleObjParam->bigintStr = '9223372036854775808'; $simpleObjParam->bool = true; @@ -774,11 +882,11 @@ try { $simpleObjParam->float32 = 1.1; $simpleObjParam->int = 1; $simpleObjParam->int32 = 1; - $simpleObjParam->int32Enum = SimpleObjectInt32Enum::SixtyNine; - $simpleObjParam->intEnum = SimpleObjectIntEnum::Second; - $simpleObjParam->intOptNull = 686268; + $simpleObjParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; + $simpleObjParam->intEnum = SimpleObjectIntEnum::First; + $simpleObjParam->intOptNull = 835122; $simpleObjParam->num = 1.1; - $simpleObjParam->numOptNull = 9620.9; + $simpleObjParam->numOptNull = 9111.59; $simpleObjParam->str = 'test'; $simpleObjParam->strOpt = 'testOptional'; @@ -819,7 +927,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\MixedParametersCamelCaseRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -863,7 +975,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\MixedParametersPrimitivesRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -911,12 +1027,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $deepObjectParam = new SimpleObject(); - $deepObjectParam->any = 'female'; + $deepObjectParam->any = 'any'; $deepObjectParam->bigint = 8821239038968084; $deepObjectParam->bigintStr = '9223372036854775808'; $deepObjectParam->bool = true; @@ -929,16 +1049,16 @@ try { $deepObjectParam->float32 = 1.1; $deepObjectParam->int = 1; $deepObjectParam->int32 = 1; - $deepObjectParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $deepObjectParam->intEnum = SimpleObjectIntEnum::First; - $deepObjectParam->intOptNull = 108812; + $deepObjectParam->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; + $deepObjectParam->intEnum = SimpleObjectIntEnum::Second; + $deepObjectParam->intOptNull = 89281; $deepObjectParam->num = 1.1; - $deepObjectParam->numOptNull = 4161.9; + $deepObjectParam->numOptNull = 2132.48; $deepObjectParam->str = 'test'; $deepObjectParam->strOpt = 'testOptional'; $formParam = new SimpleObject(); - $formParam->any = 'Chair'; + $formParam->any = 'any'; $formParam->bigint = 8821239038968084; $formParam->bigintStr = '9223372036854775808'; $formParam->bool = true; @@ -952,15 +1072,15 @@ try { $formParam->int = 1; $formParam->int32 = 1; $formParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $formParam->intEnum = SimpleObjectIntEnum::Third; - $formParam->intOptNull = 387493; + $formParam->intEnum = SimpleObjectIntEnum::Second; + $formParam->intOptNull = 218100; $formParam->num = 1.1; - $formParam->numOptNull = 5641.93; + $formParam->numOptNull = 75.58; $formParam->str = 'test'; $formParam->strOpt = 'testOptional'; $jsonParam = new SimpleObject(); - $jsonParam->any = 'weber'; + $jsonParam->any = 'any'; $jsonParam->bigint = 8821239038968084; $jsonParam->bigintStr = '9223372036854775808'; $jsonParam->bool = true; @@ -974,10 +1094,10 @@ try { $jsonParam->int = 1; $jsonParam->int32 = 1; $jsonParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $jsonParam->intEnum = SimpleObjectIntEnum::First; - $jsonParam->intOptNull = 82918; + $jsonParam->intEnum = SimpleObjectIntEnum::Third; + $jsonParam->intOptNull = 387493; $jsonParam->num = 1.1; - $jsonParam->numOptNull = 8839.4; + $jsonParam->numOptNull = 5641.93; $jsonParam->str = 'test'; $jsonParam->strOpt = 'testOptional'; @@ -1023,12 +1143,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $jsonObj = new SimpleObject(); - $jsonObj->any = 'bluetooth'; + $jsonObj->any = 'any'; $jsonObj->bigint = 8821239038968084; $jsonObj->bigintStr = '9223372036854775808'; $jsonObj->bool = true; @@ -1043,9 +1167,9 @@ try { $jsonObj->int32 = 1; $jsonObj->int32Enum = SimpleObjectInt32Enum::SixtyNine; $jsonObj->intEnum = SimpleObjectIntEnum::Second; - $jsonObj->intOptNull = 121334; + $jsonObj->intOptNull = 355762; $jsonObj->num = 1.1; - $jsonObj->numOptNull = 2775.09; + $jsonObj->numOptNull = 5955.49; $jsonObj->str = 'test'; $jsonObj->strOpt = 'testOptional'; @@ -1089,12 +1213,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $objParam = new SimpleObject(); - $objParam->any = 'FTM'; + $objParam->any = 'any'; $objParam->bigint = 8821239038968084; $objParam->bigintStr = '9223372036854775808'; $objParam->bool = true; @@ -1107,20 +1235,20 @@ try { $objParam->float32 = 1.1; $objParam->int = 1; $objParam->int32 = 1; - $objParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; + $objParam->int32Enum = SimpleObjectInt32Enum::SixtyNine; $objParam->intEnum = SimpleObjectIntEnum::First; - $objParam->intOptNull = 813509; + $objParam->intOptNull = 110513; $objParam->num = 1.1; - $objParam->numOptNull = 6704.97; + $objParam->numOptNull = 1666.19; $objParam->str = 'test'; $objParam->strOpt = 'testOptional'; $response = $sdk->parameters->pipeDelimitedQueryParamsArray([ - 'test', + 'test2', ], [ - 1, + 2, ], [ - 'veritatis' => 'sticky', + 'blue' => 'string', ], $objParam); if ($response->res !== null) { @@ -1133,12 +1261,12 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `arrParam` | array<*string*> | :heavy_minus_sign: | N/A | -| `arrParamExploded` | array<*int*> | :heavy_minus_sign: | N/A | -| `mapParam` | array | :heavy_minus_sign: | N/A | -| `objParam` | [?\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| Parameter | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `arrParam` | array<*string*> | :heavy_minus_sign: | N/A | | +| `arrParamExploded` | array<*int*> | :heavy_minus_sign: | N/A | | +| `mapParam` | array | :heavy_minus_sign: | N/A | [object Object] | +| `objParam` | [\OpenAPI\OpenAPI\Models\Shared\SimpleObject](../../models/shared/SimpleObject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | ### Response @@ -1160,7 +1288,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\SimplePathParameterArraysRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -1204,16 +1336,20 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\SimplePathParameterMapsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $response = $sdk->parameters->simplePathParameterMaps([ - 'nobis' => 'even', + 'weber' => 'string', ], [ - 'repudiandae' => 157687, + 'Sausages' => 157687, ]); if ($response->res !== null) { @@ -1226,10 +1362,10 @@ try { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `mapParam` | array | :heavy_check_mark: | N/A | -| `mapParamExploded` | array | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `mapParam` | array | :heavy_check_mark: | N/A | [object Object] | +| `mapParamExploded` | array | :heavy_check_mark: | N/A | [object Object] | ### Response @@ -1255,12 +1391,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $objParam = new SimpleObject(); - $objParam->any = 'Ville'; + $objParam->any = 'any'; $objParam->bigint = 8821239038968084; $objParam->bigintStr = '9223372036854775808'; $objParam->bool = true; @@ -1273,16 +1413,16 @@ try { $objParam->float32 = 1.1; $objParam->int = 1; $objParam->int32 = 1; - $objParam->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $objParam->int32Enum = SimpleObjectInt32Enum::FiftyFive; $objParam->intEnum = SimpleObjectIntEnum::Third; - $objParam->intOptNull = 586554; + $objParam->intOptNull = 384918; $objParam->num = 1.1; - $objParam->numOptNull = 2558; + $objParam->numOptNull = 9559.93; $objParam->str = 'test'; $objParam->strOpt = 'testOptional'; $objParamExploded = new SimpleObject(); - $objParamExploded->any = 'Research'; + $objParamExploded->any = 'any'; $objParamExploded->bigint = 8821239038968084; $objParamExploded->bigintStr = '9223372036854775808'; $objParamExploded->bool = true; @@ -1295,11 +1435,11 @@ try { $objParamExploded->float32 = 1.1; $objParamExploded->int = 1; $objParamExploded->int32 = 1; - $objParamExploded->int32Enum = SimpleObjectInt32Enum::FiftyFive; + $objParamExploded->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; $objParamExploded->intEnum = SimpleObjectIntEnum::Second; - $objParamExploded->intOptNull = 878658; + $objParamExploded->intOptNull = 678638; $objParamExploded->num = 1.1; - $objParamExploded->numOptNull = 6926.2; + $objParamExploded->numOptNull = 5865.54; $objParamExploded->str = 'test'; $objParamExploded->strOpt = 'testOptional'; @@ -1340,7 +1480,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\SimplePathParameterPrimitivesRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/requestbodies/README.md b/php-client-sdk/docs/sdks/requestbodies/README.md index 91e9cd220..ac7d4189f 100755 --- a/php-client-sdk/docs/sdks/requestbodies/README.md +++ b/php-client-sdk/docs/sdks/requestbodies/README.md @@ -103,13 +103,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\NullableObject; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new NullableObject(); - $request->optional = 'Ergonomic'; - $request->required = 463086; + $request->optional = 'string'; + $request->required = 302382; $response = $sdk->requestBodies->nullableObjectPost($request); @@ -150,7 +154,11 @@ use \OpenAPI\OpenAPI\Models\Operations\NullableRequiredEmptyObjectPostRequestBod use \OpenAPI\OpenAPI\Models\Operations\NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj; use \OpenAPI\OpenAPI\Models\Operations\NullableRequiredEmptyObjectPostRequestBodyRequiredObj; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -196,7 +204,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\NullableRequiredPropertyPostRequestBody; use \OpenAPI\OpenAPI\Models\Operations\NullableRequiredPropertyPostRequestBodyNullableRequiredEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -245,17 +257,21 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\NullableRequiredSharedObjectPostRequestBody; use \OpenAPI\OpenAPI\Models\Shared\NullableObject; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new NullableRequiredSharedObjectPostRequestBody(); $request->nullableOptionalObj = new NullableObject(); - $request->nullableOptionalObj->optional = 'plus'; - $request->nullableOptionalObj->required = 831837; + $request->nullableOptionalObj->optional = 'string'; + $request->nullableOptionalObj->required = 86533; $request->nullableRequiredObj = new NullableObject(); - $request->nullableRequiredObj->optional = 'Electronic Northwest Northeast'; - $request->nullableRequiredObj->required = 5767; + $request->nullableRequiredObj->optional = 'string'; + $request->nullableRequiredObj->required = 964394; $response = $sdk->requestBodies->nullableRequiredSharedObjectPost($request); @@ -296,7 +312,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -344,7 +364,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -392,7 +416,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -439,7 +467,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -486,7 +518,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -536,7 +572,11 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -582,13 +622,17 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ [ - 'yellow', + 'string', ], ] @@ -632,13 +676,17 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ [ - 'quasi' => new SimpleObject(), + 'Southeast' => new SimpleObject(), ], ] @@ -682,13 +730,17 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ [ - 'occaecati' => new SimpleObjectCamelCase(), + 'culpa' => new SimpleObjectCamelCase(), ], ] @@ -728,12 +780,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'bit', + 'string', ] $response = $sdk->requestBodies->requestBodyPostApplicationJsonArrayOfPrimitive($request); @@ -777,23 +833,27 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new DeepObject(); - $request->any = 'medium'; + $request->any = 'anyOf[0]'; $request->arr = [ new SimpleObject(), ]; $request->bool = true; $request->int = 1; $request->map = [ - 'veniam' => new SimpleObject(), + 'medium' => new SimpleObject(), ]; $request->num = 1.1; $request->obj = new SimpleObject(); - $request->obj->any = 'Berkelium'; + $request->obj->any = 'any'; $request->obj->bigint = 8821239038968084; $request->obj->bigintStr = '9223372036854775808'; $request->obj->bool = true; @@ -807,14 +867,14 @@ try { $request->obj->int = 1; $request->obj->int32 = 1; $request->obj->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $request->obj->intEnum = SimpleObjectIntEnum::First; - $request->obj->intOptNull = 998971; + $request->obj->intEnum = SimpleObjectIntEnum::Third; + $request->obj->intOptNull = 817678; $request->obj->num = 1.1; - $request->obj->numOptNull = 9915.06; + $request->obj->numOptNull = 2099.66; $request->obj->str = 'test'; $request->obj->strOpt = 'testOptional'; $request->str = 'test'; - $request->type = 'gray Oganesson'; + $request->type = 'string'; $response = $sdk->requestBodies->requestBodyPostApplicationJsonDeep($request); @@ -856,33 +916,37 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new DeepObjectCamelCase(); - $request->anyVal = 'Cambridgeshire'; + $request->anyVal = 'string'; $request->arrVal = [ new SimpleObjectCamelCase(), ]; $request->boolVal = false; - $request->intVal = 206440; + $request->intVal = 66469; $request->mapVal = [ - 'vel' => new SimpleObjectCamelCase(), + 'as' => new SimpleObjectCamelCase(), ]; - $request->numVal = 9420.92; + $request->numVal = 4241.4; $request->objVal = new SimpleObjectCamelCase(); - $request->objVal->anyVal = 'South'; - $request->objVal->bigintStrVal = 'Djibouti'; - $request->objVal->bigintVal = 484195; + $request->objVal->anyVal = 'any example'; + $request->objVal->bigintStrVal = 'string'; + $request->objVal->bigintVal = 942092; $request->objVal->boolOptVal = true; $request->objVal->boolVal = true; $request->objVal->dateTimeVal = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2020-01-01T00:00:00Z'); $request->objVal->dateVal = DateTime::createFromFormat('Y-m-d', '2020-01-01'); - $request->objVal->decimalVal = 9223.07; + $request->objVal->decimalVal = 1379.45; $request->objVal->enumVal = Enum::One; $request->objVal->float32Val = 2.2222222; - $request->objVal->int32EnumVal = SimpleObjectCamelCaseInt32EnumVal::SixtyNine; + $request->objVal->int32EnumVal = SimpleObjectCamelCaseInt32EnumVal::OneHundredAndEightyOne; $request->objVal->int32Val = 1; $request->objVal->intEnumVal = SimpleObjectCamelCaseIntEnumVal::First; $request->objVal->intOptNullVal = 999999; @@ -891,8 +955,8 @@ try { $request->objVal->numVal = 1.1; $request->objVal->strOptVal = 'optional example'; $request->objVal->strVal = 'example'; - $request->strVal = 'analyzer'; - $request->type = 'heuristic Grocery Pizza'; + $request->strVal = 'string'; + $request->type = 'string'; $response = $sdk->requestBodies->requestBodyPostApplicationJsonDeepCamelCase($request); @@ -933,12 +997,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'nisi' => new SimpleObject(), + 'Bentley' => new SimpleObject(), ] $response = $sdk->requestBodies->requestBodyPostApplicationJsonMap($request); @@ -981,12 +1049,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'aliquid' => new SimpleObjectCamelCase(), + 'archive' => new SimpleObjectCamelCase(), ] $response = $sdk->requestBodies->requestBodyPostApplicationJsonMapCamelCase($request); @@ -1029,12 +1101,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'hic' => new SimpleObject(), + 'larder' => new SimpleObject(), ] $response = $sdk->requestBodies->requestBodyPostApplicationJsonMapObj($request); @@ -1076,12 +1152,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'distinctio' => new SimpleObjectCamelCase(), + 'female' => new SimpleObjectCamelCase(), ] $response = $sdk->requestBodies->requestBodyPostApplicationJsonMapObjCamelCase($request); @@ -1123,12 +1203,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'aliquid' => [ + 'Loan' => [ new SimpleObject(), ], ] @@ -1173,12 +1257,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'vero' => [ + 'nonstop' => [ new SimpleObjectCamelCase(), ], ] @@ -1223,13 +1311,17 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'animi' => [ - 'inventore' => new SimpleObject(), + 'Senior' => [ + 'vice' => new SimpleObject(), ], ] @@ -1273,13 +1365,17 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'eos' => [ - 'ut' => new SimpleObjectCamelCase(), + 'Home' => [ + 'plum' => new SimpleObjectCamelCase(), ], ] @@ -1319,13 +1415,17 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'quisquam' => [ - 'molestiae' => 'collaboration', + 'turquoise' => [ + 'collaboration' => 'string', ], ] @@ -1365,12 +1465,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'accusamus' => 'Salad', + 'equally' => 'string', ] $response = $sdk->requestBodies->requestBodyPostApplicationJsonMapOfPrimitive($request); @@ -1413,12 +1517,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new SimpleObject(); - $request->any = 'hack'; + $request->any = 'any'; $request->bigint = 8821239038968084; $request->bigintStr = '9223372036854775808'; $request->bool = true; @@ -1431,11 +1539,11 @@ try { $request->float32 = 1.1; $request->int = 1; $request->int32 = 1; - $request->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; - $request->intEnum = SimpleObjectIntEnum::Third; - $request->intOptNull = 279112; + $request->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $request->intEnum = SimpleObjectIntEnum::First; + $request->intOptNull = 680661; $request->num = 1.1; - $request->numOptNull = 7372.56; + $request->numOptNull = 8809.47; $request->str = 'test'; $request->strOpt = 'testOptional'; @@ -1478,12 +1586,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new SimpleObject(); - $request->any = 'Hampton'; + $request->any = 'any'; $request->bigint = 8821239038968084; $request->bigintStr = '9223372036854775808'; $request->bool = true; @@ -1496,11 +1608,11 @@ try { $request->float32 = 1.1; $request->int = 1; $request->int32 = 1; - $request->int32Enum = SimpleObjectInt32Enum::SixtyNine; - $request->intEnum = SimpleObjectIntEnum::Third; - $request->intOptNull = 708824; + $request->int32Enum = SimpleObjectInt32Enum::FiftyFive; + $request->intEnum = SimpleObjectIntEnum::Second; + $request->intOptNull = 387512; $request->num = 1.1; - $request->numOptNull = 2273.77; + $request->numOptNull = 7875.71; $request->str = 'test'; $request->strOpt = 'testOptional'; @@ -1543,19 +1655,23 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseInt32EnumVal; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectCamelCaseIntEnumVal; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new SimpleObjectCamelCase(); - $request->anyVal = 'rich'; - $request->bigintStrVal = 'Direct Pound'; - $request->bigintVal = 726659; + $request->anyVal = 'any example'; + $request->bigintStrVal = 'string'; + $request->bigintVal = 281697; $request->boolOptVal = true; $request->boolVal = true; $request->dateTimeVal = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2020-01-01T00:00:00Z'); $request->dateVal = DateTime::createFromFormat('Y-m-d', '2020-01-01'); - $request->decimalVal = 6907.97; + $request->decimalVal = 9976.38; $request->enumVal = Enum::One; $request->float32Val = 2.2222222; $request->int32EnumVal = SimpleObjectCamelCaseInt32EnumVal::SixtyNine; @@ -1605,24 +1721,28 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostComplexNumberTypesRequest; use \OpenAPI\OpenAPI\Models\Shared\ComplexNumberTypes; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPostComplexNumberTypesRequest(); $request->complexNumberTypes = new ComplexNumberTypes(); $request->complexNumberTypes->bigint = 765757; - $request->complexNumberTypes->bigintStr = 'Metal calculating Lamborghini'; - $request->complexNumberTypes->decimal = 9373.95; - $request->complexNumberTypes->decimalStr = 'Royce'; - $request->pathBigInt = 958218; - $request->pathBigIntStr = 'male ASCII'; - $request->pathDecimal = 1464.39; - $request->pathDecimalStr = 'Lancaster hertz young'; - $request->queryBigInt = 338976; - $request->queryBigIntStr = 'Northwest'; - $request->queryDecimal = 3970.19; - $request->queryDecimalStr = 'Toyota'; + $request->complexNumberTypes->bigintStr = 'string'; + $request->complexNumberTypes->decimal = 9344.87; + $request->complexNumberTypes->decimalStr = 'string'; + $request->pathBigInt = 250514; + $request->pathBigIntStr = 'string'; + $request->pathDecimal = 6831.11; + $request->pathDecimalStr = 'string'; + $request->queryBigInt = 500580; + $request->queryBigIntStr = 'string'; + $request->queryDecimal = 7419.03; + $request->queryDecimalStr = 'string'; $response = $sdk->requestBodies->requestBodyPostComplexNumberTypes($request); @@ -1664,39 +1784,43 @@ use \OpenAPI\OpenAPI\Models\Shared\DefaultsAndConstsConstEnumStr; use \OpenAPI\OpenAPI\Models\Shared\DefaultsAndConstsDefaultEnumInt; use \OpenAPI\OpenAPI\Models\Shared\DefaultsAndConstsDefaultEnumStr; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new DefaultsAndConsts(); $request->constBigInt = 559205; - $request->constBigIntStr = 'Chief'; + $request->constBigIntStr = 'string'; $request->constBool = false; - $request->constDate = DateTime::createFromFormat('Y-m-d', '2021-05-03'); - $request->constDateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2023-07-14T17:39:00.984Z'); - $request->constDecimal = 2995.45; - $request->constDecimalStr = 'invoice Cotton'; - $request->constEnumInt = DefaultsAndConstsConstEnumInt::Two; - $request->constEnumStr = DefaultsAndConstsConstEnumStr::One; - $request->constInt = 788517; - $request->constNum = 639.73; - $request->constStr = 'Dong Dysprosium'; - $request->constStrNull = 'Kids quarrelsome'; - $request->defaultBigInt = 374051; - $request->defaultBigIntStr = 'incubate Lane Music'; + $request->constDate = DateTime::createFromFormat('Y-m-d', '2021-09-13'); + $request->constDateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2022-12-15T04:16:08.794Z'); + $request->constDecimal = 9160.69; + $request->constDecimalStr = 'string'; + $request->constEnumInt = DefaultsAndConstsConstEnumInt::One; + $request->constEnumStr = DefaultsAndConstsConstEnumStr::Three; + $request->constInt = 299545; + $request->constNum = 4612.63; + $request->constStr = 'string'; + $request->constStrNull = 'string'; + $request->defaultBigInt = 450379; + $request->defaultBigIntStr = 'string'; $request->defaultBool = false; - $request->defaultDate = DateTime::createFromFormat('Y-m-d', '2023-07-16'); - $request->defaultDateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-06-28T10:07:28.276Z'); - $request->defaultDecimal = 3014.85; - $request->defaultDecimalStr = 'South Hafnium amid'; - $request->defaultEnumInt = DefaultsAndConstsDefaultEnumInt::Three; + $request->defaultDate = DateTime::createFromFormat('Y-m-d', '2023-04-28'); + $request->defaultDateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-10-01T11:08:55.738Z'); + $request->defaultDecimal = 4585.94; + $request->defaultDecimalStr = 'string'; + $request->defaultEnumInt = DefaultsAndConstsDefaultEnumInt::Two; $request->defaultEnumStr = DefaultsAndConstsDefaultEnumStr::One; - $request->defaultInt = 77435; - $request->defaultNum = 6102.85; - $request->defaultStr = 'Electric Diesel'; - $request->defaultStrNullable = 'silver Central'; - $request->defaultStrOptional = 'Gasoline Pines boo'; - $request->normalField = 'free'; + $request->defaultInt = 788517; + $request->defaultNum = 639.73; + $request->defaultStr = 'string'; + $request->defaultStrNullable = 'string'; + $request->defaultStrOptional = 'string'; + $request->normalField = 'string'; $response = $sdk->requestBodies->requestBodyPostDefaultsAndConsts($request); @@ -1736,7 +1860,11 @@ use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostEmptyObjectRequestBody; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostEmptyObjectRequestBodyEmpty; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -1784,23 +1912,27 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new DeepObject(); - $request->any = 'and'; + $request->any = 'anyOf[0]'; $request->arr = [ new SimpleObject(), ]; $request->bool = true; $request->int = 1; $request->map = [ - 'aut' => new SimpleObject(), + 'and' => new SimpleObject(), ]; $request->num = 1.1; $request->obj = new SimpleObject(); - $request->obj->any = 'Forward'; + $request->obj->any = 'any'; $request->obj->bigint = 8821239038968084; $request->obj->bigintStr = '9223372036854775808'; $request->obj->bool = true; @@ -1813,15 +1945,15 @@ try { $request->obj->float32 = 1.1; $request->obj->int = 1; $request->obj->int32 = 1; - $request->obj->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $request->obj->int32Enum = SimpleObjectInt32Enum::FiftyFive; $request->obj->intEnum = SimpleObjectIntEnum::Third; - $request->obj->intOptNull = 480884; + $request->obj->intOptNull = 769249; $request->obj->num = 1.1; - $request->obj->numOptNull = 5037.57; + $request->obj->numOptNull = 482.42; $request->obj->str = 'test'; $request->obj->strOpt = 'testOptional'; $request->str = 'test'; - $request->type = 'Ytterbium'; + $request->type = 'string'; $response = $sdk->requestBodies->requestBodyPostFormDeep($request); @@ -1858,12 +1990,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'nisi' => 'Sports', + 'complexity' => 'string', ] $response = $sdk->requestBodies->requestBodyPostFormMapPrimitive($request); @@ -1905,12 +2041,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new SimpleObject(); - $request->any = 'Product'; + $request->any = 'any'; $request->bigint = 8821239038968084; $request->bigintStr = '9223372036854775808'; $request->bool = true; @@ -1923,11 +2063,11 @@ try { $request->float32 = 1.1; $request->int = 1; $request->int32 = 1; - $request->int32Enum = SimpleObjectInt32Enum::FiftyFive; - $request->intEnum = SimpleObjectIntEnum::Third; - $request->intOptNull = 693294; + $request->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $request->intEnum = SimpleObjectIntEnum::First; + $request->intOptNull = 5565; $request->num = 1.1; - $request->numOptNull = 2022.98; + $request->numOptNull = 8893.53; $request->str = 'test'; $request->strOpt = 'testOptional'; @@ -1966,7 +2106,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2009,7 +2153,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2052,12 +2200,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'Group East incentivize', + 'string', ] $response = $sdk->requestBodies->requestBodyPostJsonDataTypesArrayDecimalStr($request); @@ -2095,7 +2247,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2136,11 +2292,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'pixel gray' +'string' $response = $sdk->requestBodies->requestBodyPostJsonDataTypesBigIntStr($request); @@ -2177,7 +2337,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2218,7 +2382,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2259,7 +2427,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2300,7 +2472,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2341,11 +2517,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'gadzooks Luxurious' +'string' $response = $sdk->requestBodies->requestBodyPostJsonDataTypesDecimalStr($request); @@ -2382,7 +2562,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2423,7 +2607,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2464,7 +2652,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2505,12 +2697,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'doloremque' => 'York firewall', + 'Nepal' => 'string', ] $response = $sdk->requestBodies->requestBodyPostJsonDataTypesMapBigIntStr($request); @@ -2548,12 +2744,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'quas' => DateTime::createFromFormat('Y-m-d\TH:i:s+', '2022-09-29T16:39:16.558Z'), + 'quantify' => DateTime::createFromFormat('Y-m-d\TH:i:s+', '2022-02-12T21:23:09.538Z'), ] $response = $sdk->requestBodies->requestBodyPostJsonDataTypesMapDateTime($request); @@ -2591,12 +2791,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'exercitationem' => 4182.45, + 'Inverse' => 9134.24, ] $response = $sdk->requestBodies->requestBodyPostJsonDataTypesMapDecimal($request); @@ -2634,7 +2838,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -2675,11 +2883,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Gasoline' +'string' $response = $sdk->requestBodies->requestBodyPostJsonDataTypesString($request); @@ -2720,12 +2932,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new SimpleObject(); - $request->any = 'Unbranded'; + $request->any = 'any'; $request->bigint = 8821239038968084; $request->bigintStr = '9223372036854775808'; $request->bool = true; @@ -2738,11 +2954,11 @@ try { $request->float32 = 1.1; $request->int = 1; $request->int32 = 1; - $request->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $request->int32Enum = SimpleObjectInt32Enum::FiftyFive; $request->intEnum = SimpleObjectIntEnum::Third; - $request->intOptNull = 414559; + $request->intOptNull = 587803; $request->num = 1.1; - $request->numOptNull = 462.04; + $request->numOptNull = 9724.14; $request->str = 'test'; $request->strOpt = 'testOptional'; @@ -2782,14 +2998,18 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON(); $request->bool = false; $request->num = 3558.41; - $request->str = 'South expiate aha'; + $request->str = 'string'; $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesInlineFiltered($request); @@ -2828,16 +3048,20 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitParamFormRequest; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $requestBody = new RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded(); $requestBody->bool3 = false; $requestBody->num3 = 8693.24; - $requestBody->str3 = 'Compatible'; + $requestBody->str3 = 'string'; - $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitParamForm($requestBody, 'Architect'); + $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitParamForm($requestBody, 'string'); if ($response->res !== null) { // handle response @@ -2875,16 +3099,20 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitParamJsonRequest; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitParamApplicationJSON; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $requestBody = new RequestBodyPostMultipleContentTypesSplitParamApplicationJSON(); $requestBody->bool = false; $requestBody->num = 9771.91; - $requestBody->str = 'South networks'; + $requestBody->str = 'string'; - $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitParamJson($requestBody, 'Brand'); + $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitParamJson($requestBody, 'string'); if ($response->res !== null) { // handle response @@ -2922,16 +3150,20 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitParamMultipartRequest; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitParamMultipartFormData; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $requestBody = new RequestBodyPostMultipleContentTypesSplitParamMultipartFormData(); $requestBody->bool2 = false; $requestBody->num2 = 7000.76; - $requestBody->str2 = 'Ball Southwest'; + $requestBody->str2 = 'string'; - $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitParamMultipart($requestBody, 'Ergonomic'); + $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitParamMultipart($requestBody, 'string'); if ($response->res !== null) { // handle response @@ -2968,14 +3200,18 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded(); $request->bool3 = false; $request->num3 = 7842.07; - $request->str3 = 'Cab encryption SMTP'; + $request->str3 = 'string'; $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitForm($request); @@ -3013,14 +3249,18 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitApplicationJSON; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPostMultipleContentTypesSplitApplicationJSON(); $request->bool = false; $request->num = 2445.56; - $request->str = 'hew frictionless Hybrid'; + $request->str = 'string'; $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitJson($request); @@ -3058,14 +3298,18 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPostMultipleContentTypesSplitMultipartFormData; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPostMultipleContentTypesSplitMultipartFormData(); $request->bool2 = false; $request->num2 = 2079.2; - $request->str2 = 'cyan'; + $request->str2 = 'string'; $response = $sdk->requestBodies->requestBodyPostMultipleContentTypesSplitMultipart($request); @@ -3102,11 +3346,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Chicken' +'string' $response = $sdk->requestBodies->requestBodyPostNotNullableNotRequiredStringBody($request); @@ -3143,12 +3391,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'simple', + 'string', ] $response = $sdk->requestBodies->requestBodyPostNullArray($request); @@ -3186,12 +3438,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'omnis' => 'virtual', + 'Intersex' => 'string', ] $response = $sdk->requestBodies->requestBodyPostNullDictionary($request); @@ -3229,11 +3485,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Michigan' +'string' $response = $sdk->requestBodies->requestBodyPostNullableNotRequiredStringBody($request); @@ -3270,11 +3530,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Mouse' +'string' $response = $sdk->requestBodies->requestBodyPostNullableRequiredStringBody($request); @@ -3311,7 +3575,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -3353,13 +3621,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPutBytesWithParamsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->requestBodies->requestBodyPutBytesWithParams('o%jIWe4_P6', 'Huntington'); + $response = $sdk->requestBodies->requestBodyPutBytesWithParams('o%jIWe4_P6', 'string'); if ($response->res !== null) { // handle response @@ -3400,23 +3672,27 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new DeepObject(); - $request->any = 'Chevrolet'; + $request->any = 'anyOf[0]'; $request->arr = [ new SimpleObject(), ]; $request->bool = true; $request->int = 1; $request->map = [ - 'a' => new SimpleObject(), + 'Chevrolet' => new SimpleObject(), ]; $request->num = 1.1; $request->obj = new SimpleObject(); - $request->obj->any = 'Reggae'; + $request->obj->any = 'any'; $request->obj->bigint = 8821239038968084; $request->obj->bigintStr = '9223372036854775808'; $request->obj->bool = true; @@ -3431,13 +3707,13 @@ try { $request->obj->int32 = 1; $request->obj->int32Enum = SimpleObjectInt32Enum::OneHundredAndEightyOne; $request->obj->intEnum = SimpleObjectIntEnum::Second; - $request->obj->intOptNull = 345956; + $request->obj->intOptNull = 731372; $request->obj->num = 1.1; - $request->obj->numOptNull = 5397.13; + $request->obj->numOptNull = 8739.03; $request->obj->str = 'test'; $request->obj->strOpt = 'testOptional'; $request->str = 'test'; - $request->type = 'Robust digital'; + $request->type = 'string'; $response = $sdk->requestBodies->requestBodyPutMultipartDeep($request); @@ -3476,14 +3752,18 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPutMultipartDifferentFileNameRequestBody; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPutMultipartDifferentFileNameRequestBody(); $request->differentFileName = new RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName(); $request->differentFileName->content = 'Y}\'H[5/Z[,'; - $request->differentFileName->differentFileName = 'West Tunisian'; + $request->differentFileName->differentFileName = 'string'; $response = $sdk->requestBodies->requestBodyPutMultipartDifferentFileName($request); @@ -3522,14 +3802,18 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPutMultipartFileRequestBody; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPutMultipartFileRequestBodyFile; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new RequestBodyPutMultipartFileRequestBody(); $request->file = new RequestBodyPutMultipartFileRequestBodyFile(); $request->file->content = 'OJa,v`.FW-'; - $request->file->file = 'bandwidth Sedan'; + $request->file->file = 'string'; $response = $sdk->requestBodies->requestBodyPutMultipartFile($request); @@ -3570,12 +3854,16 @@ use \OpenAPI\OpenAPI\Models\Shared\Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectInt32Enum; use \OpenAPI\OpenAPI\Models\Shared\SimpleObjectIntEnum; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new SimpleObject(); - $request->any = 'customized'; + $request->any = 'any'; $request->bigint = 8821239038968084; $request->bigintStr = '9223372036854775808'; $request->bool = true; @@ -3588,11 +3876,11 @@ try { $request->float32 = 1.1; $request->int = 1; $request->int32 = 1; - $request->int32Enum = SimpleObjectInt32Enum::SixtyNine; + $request->int32Enum = SimpleObjectInt32Enum::FiftyFive; $request->intEnum = SimpleObjectIntEnum::Third; - $request->intOptNull = 689661; + $request->intOptNull = 544005; $request->num = 1.1; - $request->numOptNull = 7932.12; + $request->numOptNull = 7648.28; $request->str = 'test'; $request->strOpt = 'testOptional'; @@ -3631,11 +3919,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'meh' +'string' $response = $sdk->requestBodies->requestBodyPutString($request); @@ -3673,13 +3965,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RequestBodyPutStringWithParamsRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->requestBodies->requestBodyPutStringWithParams('SMTP', 'Unbranded'); + $response = $sdk->requestBodies->requestBodyPutStringWithParams('string', 'string'); if ($response->res !== null) { // handle response @@ -3716,7 +4012,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\ReadWriteObjectInput; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -3762,7 +4062,11 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\ReadOnlyObjectInput; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -3804,11 +4108,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Kids' +'string' $response = $sdk->requestBodies->requestBodyReadOnlyUnion($request); @@ -3846,11 +4154,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'thoughtfully' +'string' $response = $sdk->requestBodies->requestBodyReadWriteOnlyUnion($request); @@ -3889,14 +4201,18 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\WriteOnlyObject; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new WriteOnlyObject(); $request->bool = false; $request->num = 3888.42; - $request->string = 'Herminio'; + $request->string = 'string'; $response = $sdk->requestBodies->requestBodyWriteOnly($request); @@ -3935,14 +4251,18 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\WriteOnlyObject; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new WriteOnlyObject(); $request->bool = false; $request->num = 3867.69; - $request->string = 'quas'; + $request->string = 'string'; $response = $sdk->requestBodies->requestBodyWriteOnlyOutput($request); @@ -3980,11 +4300,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Fitness' +'string' $response = $sdk->requestBodies->requestBodyWriteOnlyUnion($request); diff --git a/php-client-sdk/docs/sdks/resource/README.md b/php-client-sdk/docs/sdks/resource/README.md index 3b68d825c..907144d0b 100755 --- a/php-client-sdk/docs/sdks/resource/README.md +++ b/php-client-sdk/docs/sdks/resource/README.md @@ -24,14 +24,18 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\CreateFileRequestBody; use \OpenAPI\OpenAPI\Models\Operations\CreateFileRequestBodyFile; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new CreateFileRequestBody(); $request->file = new CreateFileRequestBodyFile(); $request->file->content = '`\'$Z`(L/RH'; - $request->file->file = 'Rap National'; + $request->file->file = 'string'; $response = $sdk->resource->createFile($request); @@ -72,7 +76,11 @@ use \OpenAPI\OpenAPI\Models\Shared\ExampleResourceChocolates; use \OpenAPI\OpenAPI\Models\Shared\ExampleResourceEnumNumber; use \OpenAPI\OpenAPI\Models\Shared\ExampleResourceEnumStr; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -81,24 +89,24 @@ try { 1867.47, ]; $request->arrayOfString = [ - 'Sodium', + 'string', ]; $request->chocolates = [ new ExampleResourceChocolates(), ]; - $request->createdAt = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-05-04T02:22:42.206Z'); + $request->createdAt = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2023-03-21T05:07:13.653Z'); $request->enumNumber = ExampleResourceEnumNumber::One; - $request->enumStr = ExampleResourceEnumStr::Three; + $request->enumStr = ExampleResourceEnumStr::One; $request->id = ''; $request->mapOfInteger = [ - 'eum' => 125983, + 'Unbranded' => 967142, ]; $request->mapOfString = [ - 'dolores' => 'an', + 'Elmo' => 'string', ]; - $request->name = 'utilize'; - $request->updatedAt = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2021-09-27T19:55:47.964Z'); - $request->vehicle = 'online'; + $request->name = 'string'; + $request->updatedAt = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2022-06-22T17:48:04.355Z'); + $request->vehicle = 'string'; $response = $sdk->resource->createResource($request); @@ -136,13 +144,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\DeleteResourceRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->resource->deleteResource('Reggae'); + $response = $sdk->resource->deleteResource('string'); if ($response->statusCode === 200) { // handle response @@ -178,13 +190,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\GetResourceRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->resource->getResource('Home'); + $response = $sdk->resource->getResource('string'); if ($response->exampleResource !== null) { // handle response @@ -220,13 +236,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\UpdateResourceRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->resource->updateResource('International'); + $response = $sdk->resource->updateResource('string'); if ($response->statusCode === 200) { // handle response diff --git a/php-client-sdk/docs/sdks/responsebodies/README.md b/php-client-sdk/docs/sdks/responsebodies/README.md index 91e6c443c..5250fef35 100755 --- a/php-client-sdk/docs/sdks/responsebodies/README.md +++ b/php-client-sdk/docs/sdks/responsebodies/README.md @@ -9,6 +9,7 @@ Endpoints for testing response bodies. * [responseBodyAdditionalPropertiesComplexNumbersPost](#responsebodyadditionalpropertiescomplexnumberspost) * [responseBodyAdditionalPropertiesDatePost](#responsebodyadditionalpropertiesdatepost) +* [responseBodyAdditionalPropertiesObjectPost](#responsebodyadditionalpropertiesobjectpost) * [responseBodyAdditionalPropertiesPost](#responsebodyadditionalpropertiespost) * [responseBodyBytesGet](#responsebodybytesget) * [responseBodyEmptyWithHeaders](#responsebodyemptywithheaders) @@ -31,12 +32,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'nihil' => 'stitch', + 'ASCII' => 'string', ] $response = $sdk->responseBodies->responseBodyAdditionalPropertiesComplexNumbersPost($request); @@ -74,12 +79,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'ab' => DateTime::createFromFormat('Y-m-d', '2021-08-06'), + 'Bedfordshire' => DateTime::createFromFormat('Y-m-d', '2021-04-22'), ] $response = $sdk->responseBodies->responseBodyAdditionalPropertiesDatePost($request); @@ -104,6 +113,57 @@ try { **[?\OpenAPI\OpenAPI\Models\Operations\ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md)** +## responseBodyAdditionalPropertiesObjectPost + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { + $request = [ + 'variant' => new SimpleObject(), + ] + + $response = $sdk->responseBodies->responseBodyAdditionalPropertiesObjectPost($request); + + if ($response->responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `$request` | [array](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\ResponseBodyAdditionalPropertiesObjectPostResponse](../../models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md)** + + ## responseBodyAdditionalPropertiesPost ### Example Usage @@ -117,12 +177,16 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = [ - 'exercitationem' => 'Bronze', + 'Ergonomic' => 'string', ] $response = $sdk->responseBodies->responseBodyAdditionalPropertiesPost($request); @@ -160,7 +224,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -194,13 +262,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\ResponseBodyEmptyWithHeadersRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->responseBodies->responseBodyEmptyWithHeaders(1751.8, 'Tigard'); + $response = $sdk->responseBodies->responseBodyEmptyWithHeaders(1751.8, 'string'); if ($response->statusCode === 200) { // handle response @@ -236,7 +308,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -275,7 +351,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -314,7 +394,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -347,7 +431,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -381,16 +469,20 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\ObjWithZeroValueComplexTypePtrs; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new ObjWithZeroValueComplexTypePtrs(); $request->bigint = 438531; - $request->bigintStr = 'concrete input'; + $request->bigintStr = 'string'; $request->date = DateTime::createFromFormat('Y-m-d', '2020-01-01'); $request->dateTime = DateTime::createFromFormat('Y-m-d\TH:i:s+', '2020-01-01T00:00:00Z'); - $request->decimal = 6267.89; + $request->decimal = 4843.38; $response = $sdk->responseBodies->responseBodyZeroValueComplexTypePtrsPost($request); diff --git a/php-client-sdk/docs/sdks/retries/README.md b/php-client-sdk/docs/sdks/retries/README.md index b7e5af657..422952e12 100755 --- a/php-client-sdk/docs/sdks/retries/README.md +++ b/php-client-sdk/docs/sdks/retries/README.md @@ -23,13 +23,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\RetriesGetRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->retries->retriesGet('Cambridgeshire', 496130); + $response = $sdk->retries->retriesGet('string', 75342); if ($response->retries !== null) { // handle response @@ -44,7 +48,7 @@ try { | Parameter | Type | Required | Description | | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | | `requestId` | *string* | :heavy_check_mark: | N/A | -| `numRetries` | *?int* | :heavy_minus_sign: | N/A | +| `numRetries` | *int* | :heavy_minus_sign: | N/A | | `$serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | diff --git a/php-client-sdk/docs/sdks/sdk/README.md b/php-client-sdk/docs/sdks/sdk/README.md index a665ff307..8b14c1436 100755 --- a/php-client-sdk/docs/sdks/sdk/README.md +++ b/php-client-sdk/docs/sdks/sdk/README.md @@ -26,11 +26,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'bus' +'string' $response = $sdk->sdk->putAnythingIgnoredGeneration($request); @@ -67,7 +71,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/second/README.md b/php-client-sdk/docs/sdks/second/README.md index f29bd8467..4f06049c9 100755 --- a/php-client-sdk/docs/sdks/second/README.md +++ b/php-client-sdk/docs/sdks/second/README.md @@ -18,7 +18,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/servers/README.md b/php-client-sdk/docs/sdks/servers/README.md index 59e9823aa..cca32a461 100755 --- a/php-client-sdk/docs/sdks/servers/README.md +++ b/php-client-sdk/docs/sdks/servers/README.md @@ -27,7 +27,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -62,7 +66,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -101,7 +109,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -140,7 +152,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -179,7 +195,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { @@ -212,7 +232,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/telemetry/README.md b/php-client-sdk/docs/sdks/telemetry/README.md index 7b6af6628..6bd2335fd 100755 --- a/php-client-sdk/docs/sdks/telemetry/README.md +++ b/php-client-sdk/docs/sdks/telemetry/README.md @@ -24,13 +24,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Operations\TelemetrySpeakeasyUserAgentGetRequest; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { - $response = $sdk->telemetry->telemetrySpeakeasyUserAgentGet('Bentley'); + $response = $sdk->telemetry->telemetrySpeakeasyUserAgentGet('string'); if ($response->res !== null) { // handle response @@ -65,7 +69,11 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { diff --git a/php-client-sdk/docs/sdks/unions/README.md b/php-client-sdk/docs/sdks/unions/README.md index ce8b18a24..aa25f6ecf 100755 --- a/php-client-sdk/docs/sdks/unions/README.md +++ b/php-client-sdk/docs/sdks/unions/README.md @@ -17,6 +17,8 @@ Endpoints for testing union types. * [stronglyTypedOneOfPost](#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [typedObjectOneOfPost](#typedobjectoneofpost) +* [unionDateNull](#uniondatenull) +* [unionDateTimeNull](#uniondatetimenull) * [weaklyTypedOneOfPost](#weaklytypedoneofpost) ## flattenedTypedObjectPost @@ -32,11 +34,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Legacy' +'string' $response = $sdk->unions->flattenedTypedObjectPost($request); @@ -73,11 +79,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'SAS' +'string' $response = $sdk->unions->mixedTypeOneOfPost($request); @@ -117,16 +127,20 @@ use \OpenAPI\OpenAPI\Models\Shared\NullableOneOfRefInObject; use \OpenAPI\OpenAPI\Models\Shared\TypedObject1; use \OpenAPI\OpenAPI\Models\Shared\TypedObject1Type; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new NullableOneOfRefInObject(); $request->nullableOneOfOne = new TypedObject1(); $request->nullableOneOfOne->type = TypedObject1Type::Obj1; - $request->nullableOneOfOne->value = 'Global Alexandria administration'; - $request->nullableOneOfTwo = 'Arbor'; - $request->oneOfOne = 'PCI'; + $request->nullableOneOfOne->value = 'string'; + $request->nullableOneOfTwo = 'string'; + $request->oneOfOne = 'string'; $response = $sdk->unions->nullableOneOfRefInObjectPost($request); @@ -163,11 +177,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'deliquesce' +'string' $response = $sdk->unions->nullableOneOfSchemaPost($request); @@ -205,13 +223,17 @@ use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\NullableOneOfTypeInObject; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new NullableOneOfTypeInObject(); $request->nullableOneOfOne = false; - $request->nullableOneOfTwo = 'Smart'; + $request->nullableOneOfTwo = 'string'; $request->oneOfOne = false; $response = $sdk->unions->nullableOneOfTypeInObjectPost($request); @@ -251,13 +273,17 @@ use \OpenAPI\OpenAPI\Models\Shared\Security; use \OpenAPI\OpenAPI\Models\Shared\TypedObject1; use \OpenAPI\OpenAPI\Models\Shared\TypedObject1Type; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { $request = new TypedObject1(); $request->type = TypedObject1Type::Obj1; - $request->value = 'Bike'; + $request->value = 'string'; $response = $sdk->unions->nullableTypedObjectPost($request); @@ -294,11 +320,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Grocery' +'string' $response = $sdk->unions->primitiveTypeOneOfPost($request); @@ -335,11 +365,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'spicy' +'string' $response = $sdk->unions->stronglyTypedOneOfPost($request); @@ -376,11 +410,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Agender' +'string' $response = $sdk->unions->typedObjectNullableOneOfPost($request); @@ -417,11 +455,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'shrivel' +'string' $response = $sdk->unions->typedObjectOneOfPost($request); @@ -445,6 +487,96 @@ try { **[?\OpenAPI\OpenAPI\Models\Operations\TypedObjectOneOfPostResponse](../../models/operations/TypedObjectOneOfPostResponse.md)** +## unionDateNull + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { +DateTime::createFromFormat('Y-m-d', '2022-11-25') + + $response = $sdk->unions->unionDateNull($request); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `$request` | [\DateTime](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\UnionDateNullResponse](../../models/operations/UnionDateNullResponse.md)** + + +## unionDateTimeNull + +### Example Usage + +```php +apiKeyAuth = 'Token YOUR_API_KEY'; + +$sdk = SDK::builder() + ->setSecurity($security) + ->build(); + +try { +DateTime::createFromFormat('Y-m-d\TH:i:s+', '2022-04-12T19:39:53.907Z') + + $response = $sdk->unions->unionDateTimeNull($request); + + if ($response->res !== null) { + // handle response + } +} catch (Exception $e) { + // handle exception +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `$request` | [\DateTime](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[?\OpenAPI\OpenAPI\Models\Operations\UnionDateTimeNullResponse](../../models/operations/UnionDateTimeNullResponse.md)** + + ## weaklyTypedOneOfPost ### Example Usage @@ -458,11 +590,15 @@ require_once 'vendor/autoload.php'; use \OpenAPI\OpenAPI\SDK; use \OpenAPI\OpenAPI\Models\Shared\Security; +$security = new Security(); +$security->apiKeyAuth = 'Token YOUR_API_KEY'; + $sdk = SDK::builder() + ->setSecurity($security) ->build(); try { -'Unbranded' +'string' $response = $sdk->unions->weaklyTypedOneOfPost($request); diff --git a/php-client-sdk/files.gen b/php-client-sdk/files.gen index b3c1b1a94..de091828a 100755 --- a/php-client-sdk/files.gen +++ b/php-client-sdk/files.gen @@ -42,16 +42,19 @@ src/Utils/SecurityClient.php src/Utils/SecurityMetadata.php src/Utils/SpeakeasyMetadata.php src/Utils/Utils.php -tests/AuthTest.php -tests/FlatteningTest.php -tests/GlobalsTest.php -tests/Helpers/Helpers.php -tests/ParameterTest.php -tests/RequestBodiesTest.php -tests/ResponseBodiesTest.php -tests/ServersTest.php -tests/TelemetryTest.php -tests/testUpload.json +tests/CommonHelpers.php +testsCommon/CommonHelpers.php +testsPrimary/AuthTest.php +testsPrimary/FlatteningTest.php +testsPrimary/GlobalsTest.php +testsPrimary/Helpers/Helpers.php +testsPrimary/ParameterTest.php +testsPrimary/RequestBodiesTest.php +testsPrimary/ResponseBodiesTest.php +testsPrimary/ServersTest.php +testsPrimary/TelemetryTest.php +testsPrimary/testUpload.json +testsSimpleSecurity/AuthTest.php ../../testprojects/php/composer.json ../../testprojects/php/phpstan.neon src/Models/Operations/ApiKeyAuthSecurity.php @@ -134,6 +137,12 @@ src/Models/Operations/TypeFromAnchor.php src/Models/Operations/AnchorTypesGetResponse.php src/Models/Operations/ArrayCircularReferenceGetResponse.php src/Models/Operations/CircularReferenceGetResponse.php +src/Models/Operations/DateParamWithDefaultRequest.php +src/Models/Operations/DateParamWithDefaultResponse.php +src/Models/Operations/DateTimeParamWithDefaultRequest.php +src/Models/Operations/DateTimeParamWithDefaultResponse.php +src/Models/Operations/DecimalParamWithDefaultRequest.php +src/Models/Operations/DecimalParamWithDefaultResponse.php src/Models/Operations/DeprecatedFieldInSchemaPostResponse.php src/Models/Operations/DeprecatedObjectInSchemaGet200ApplicationJSON.php src/Models/Operations/DeprecatedObjectInSchemaGetResponse.php @@ -211,6 +220,12 @@ src/Models/Operations/FormQueryParamsArrayRequest.php src/Models/Operations/FormQueryParamsArrayResArgs.php src/Models/Operations/FormQueryParamsArrayRes.php src/Models/Operations/FormQueryParamsArrayResponse.php +src/Models/Operations/FormQueryParamsCamelObjectObjParam.php +src/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.php +src/Models/Operations/FormQueryParamsCamelObjectRequest.php +src/Models/Operations/FormQueryParamsCamelObjectResArgs.php +src/Models/Operations/FormQueryParamsCamelObjectRes.php +src/Models/Operations/FormQueryParamsCamelObjectResponse.php src/Models/Operations/FormQueryParamsMapRequest.php src/Models/Operations/FormQueryParamsMapRes.php src/Models/Operations/FormQueryParamsMapResponse.php @@ -459,6 +474,8 @@ src/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200Appli src/Models/Operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.php src/Models/Operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.php src/Models/Operations/ResponseBodyAdditionalPropertiesDatePostResponse.php +src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.php +src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.php src/Models/Operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.php src/Models/Operations/ResponseBodyAdditionalPropertiesPostResponse.php src/Models/Operations/ResponseBodyBytesGetResponse.php @@ -505,6 +522,10 @@ src/Models/Operations/TypedObjectNullableOneOfPostRes.php src/Models/Operations/TypedObjectNullableOneOfPostResponse.php src/Models/Operations/TypedObjectOneOfPostRes.php src/Models/Operations/TypedObjectOneOfPostResponse.php +src/Models/Operations/UnionDateNullRes.php +src/Models/Operations/UnionDateNullResponse.php +src/Models/Operations/UnionDateTimeNullRes.php +src/Models/Operations/UnionDateTimeNullResponse.php src/Models/Operations/WeaklyTypedOneOfPostRes.php src/Models/Operations/WeaklyTypedOneOfPostResponse.php src/Models/Operations/PutAnythingIgnoredGeneration200ApplicationJSON.php @@ -515,6 +536,7 @@ src/Models/Shared/AuthServiceRequestBodyHeaderAuth.php src/Models/Shared/AuthServiceRequestBody.php src/Models/Shared/SchemeBasicAuth.php src/Models/Shared/Security.php +src/Models/Shared/ErrorType.php src/Models/Shared/Error.php src/Models/Shared/SimpleObjectInt32Enum.php src/Models/Shared/SimpleObjectIntEnum.php @@ -661,6 +683,12 @@ docs/models/operations/TypeFromAnchor.md docs/models/operations/AnchorTypesGetResponse.md docs/models/operations/ArrayCircularReferenceGetResponse.md docs/models/operations/CircularReferenceGetResponse.md +docs/models/operations/DateParamWithDefaultRequest.md +docs/models/operations/DateParamWithDefaultResponse.md +docs/models/operations/DateTimeParamWithDefaultRequest.md +docs/models/operations/DateTimeParamWithDefaultResponse.md +docs/models/operations/DecimalParamWithDefaultRequest.md +docs/models/operations/DecimalParamWithDefaultResponse.md docs/models/operations/DeprecatedFieldInSchemaPostResponse.md docs/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.md docs/models/operations/DeprecatedObjectInSchemaGetResponse.md @@ -738,6 +766,12 @@ docs/models/operations/FormQueryParamsArrayRequest.md docs/models/operations/FormQueryParamsArrayResArgs.md docs/models/operations/FormQueryParamsArrayRes.md docs/models/operations/FormQueryParamsArrayResponse.md +docs/models/operations/FormQueryParamsCamelObjectObjParam.md +docs/models/operations/FormQueryParamsCamelObjectObjParamExploded.md +docs/models/operations/FormQueryParamsCamelObjectRequest.md +docs/models/operations/FormQueryParamsCamelObjectResArgs.md +docs/models/operations/FormQueryParamsCamelObjectRes.md +docs/models/operations/FormQueryParamsCamelObjectResponse.md docs/models/operations/FormQueryParamsMapRequest.md docs/models/operations/FormQueryParamsMapRes.md docs/models/operations/FormQueryParamsMapResponse.md @@ -986,6 +1020,8 @@ docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200Appl docs/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.md docs/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.md docs/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.md +docs/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.md +docs/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.md docs/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.md docs/models/operations/ResponseBodyAdditionalPropertiesPostResponse.md docs/models/operations/ResponseBodyBytesGetResponse.md @@ -1032,6 +1068,10 @@ docs/models/operations/TypedObjectNullableOneOfPostRes.md docs/models/operations/TypedObjectNullableOneOfPostResponse.md docs/models/operations/TypedObjectOneOfPostRes.md docs/models/operations/TypedObjectOneOfPostResponse.md +docs/models/operations/UnionDateNullRes.md +docs/models/operations/UnionDateNullResponse.md +docs/models/operations/UnionDateTimeNullRes.md +docs/models/operations/UnionDateTimeNullResponse.md docs/models/operations/WeaklyTypedOneOfPostRes.md docs/models/operations/WeaklyTypedOneOfPostResponse.md docs/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.md @@ -1042,6 +1082,7 @@ docs/models/shared/AuthServiceRequestBodyHeaderAuth.md docs/models/shared/AuthServiceRequestBody.md docs/models/shared/SchemeBasicAuth.md docs/models/shared/Security.md +docs/models/shared/ErrorType.md docs/models/shared/Error.md docs/models/shared/SimpleObjectInt32Enum.md docs/models/shared/SimpleObjectIntEnum.md diff --git a/php-client-sdk/gen.yaml b/php-client-sdk/gen.yaml index 7aad0676d..baf0e9769 100755 --- a/php-client-sdk/gen.yaml +++ b/php-client-sdk/gen.yaml @@ -1,18 +1,20 @@ configVersion: 1.0.0 management: - docChecksum: d6c132f7bde6e79f0552a47119432f96 + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d docVersion: 0.1.0 - speakeasyVersion: 1.95.0 - generationVersion: 2.148.0 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git sdkClassName: SDK singleTagPerOp: false features: php: - core: 2.88.2 + core: 2.89.0 deprecations: 2.81.1 + docs: 0.0.3 enums: 2.81.1 - examples: 2.81.2 + examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 @@ -26,7 +28,9 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 php: - version: 1.35.3 + version: 1.36.0 maxMethodParams: 5 namespace: OpenAPI\OpenAPI packageName: openapi/openapi + published: true + repoSubDirectory: php-client-sdk diff --git a/php-client-sdk/src/Generation.php b/php-client-sdk/src/Generation.php index 4a390de6f..da2d551a7 100755 --- a/php-client-sdk/src/Generation.php +++ b/php-client-sdk/src/Generation.php @@ -123,6 +123,114 @@ public function circularReferenceGet( return $response; } + /** + * dateParamWithDefault + * + * @param \DateTime $dateInput + * @return \OpenAPI\OpenAPI\Models\Operations\DateParamWithDefaultResponse + */ + public function dateParamWithDefault( + \DateTime $dateInput, + ): \OpenAPI\OpenAPI\Models\Operations\DateParamWithDefaultResponse + { + $request = new \OpenAPI\OpenAPI\Models\Operations\DateParamWithDefaultRequest(); + $request->dateInput = $dateInput; + + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/dateParamWithDefault'); + + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\OpenAPI\OpenAPI\Models\Operations\DateParamWithDefaultRequest::class, $request, $this->sdkConfiguration->globals)); + $options['headers']['Accept'] = '*/*'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\DateParamWithDefaultResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 204) { + } + + return $response; + } + + /** + * dateTimeParamWithDefault + * + * @param \DateTime $dateTimeInput + * @return \OpenAPI\OpenAPI\Models\Operations\DateTimeParamWithDefaultResponse + */ + public function dateTimeParamWithDefault( + \DateTime $dateTimeInput, + ): \OpenAPI\OpenAPI\Models\Operations\DateTimeParamWithDefaultResponse + { + $request = new \OpenAPI\OpenAPI\Models\Operations\DateTimeParamWithDefaultRequest(); + $request->dateTimeInput = $dateTimeInput; + + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/dateTimeParamWithDefault'); + + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\OpenAPI\OpenAPI\Models\Operations\DateTimeParamWithDefaultRequest::class, $request, $this->sdkConfiguration->globals)); + $options['headers']['Accept'] = '*/*'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\DateTimeParamWithDefaultResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 204) { + } + + return $response; + } + + /** + * decimalParamWithDefault + * + * @param float $decimalInput + * @return \OpenAPI\OpenAPI\Models\Operations\DecimalParamWithDefaultResponse + */ + public function decimalParamWithDefault( + float $decimalInput, + ): \OpenAPI\OpenAPI\Models\Operations\DecimalParamWithDefaultResponse + { + $request = new \OpenAPI\OpenAPI\Models\Operations\DecimalParamWithDefaultRequest(); + $request->decimalInput = $decimalInput; + + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/decimalParamWithDefault'); + + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\OpenAPI\OpenAPI\Models\Operations\DecimalParamWithDefaultRequest::class, $request, $this->sdkConfiguration->globals)); + $options['headers']['Accept'] = '*/*'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\DecimalParamWithDefaultResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 204) { + } + + return $response; + } + /** * deprecatedFieldInSchemaPost * diff --git a/php-client-sdk/src/Models/Operations/DateParamWithDefaultRequest.php b/php-client-sdk/src/Models/Operations/DateParamWithDefaultRequest.php new file mode 100755 index 000000000..2faffa313 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/DateParamWithDefaultRequest.php @@ -0,0 +1,26 @@ +dateInput = new \DateTime(); + } +} diff --git a/php-client-sdk/src/Models/Operations/DateParamWithDefaultResponse.php b/php-client-sdk/src/Models/Operations/DateParamWithDefaultResponse.php new file mode 100755 index 000000000..3fe66eda9 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/DateParamWithDefaultResponse.php @@ -0,0 +1,44 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/DateTimeParamWithDefaultRequest.php b/php-client-sdk/src/Models/Operations/DateTimeParamWithDefaultRequest.php new file mode 100755 index 000000000..bf85aea20 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/DateTimeParamWithDefaultRequest.php @@ -0,0 +1,26 @@ +dateTimeInput = new \DateTime(); + } +} diff --git a/php-client-sdk/src/Models/Operations/DateTimeParamWithDefaultResponse.php b/php-client-sdk/src/Models/Operations/DateTimeParamWithDefaultResponse.php new file mode 100755 index 000000000..14e42348c --- /dev/null +++ b/php-client-sdk/src/Models/Operations/DateTimeParamWithDefaultResponse.php @@ -0,0 +1,44 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/DecimalParamWithDefaultRequest.php b/php-client-sdk/src/Models/Operations/DecimalParamWithDefaultRequest.php new file mode 100755 index 000000000..62d41b991 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/DecimalParamWithDefaultRequest.php @@ -0,0 +1,26 @@ +decimalInput = 0; + } +} diff --git a/php-client-sdk/src/Models/Operations/DecimalParamWithDefaultResponse.php b/php-client-sdk/src/Models/Operations/DecimalParamWithDefaultResponse.php new file mode 100755 index 000000000..26ffe6afa --- /dev/null +++ b/php-client-sdk/src/Models/Operations/DecimalParamWithDefaultResponse.php @@ -0,0 +1,44 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectObjParam.php b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectObjParam.php new file mode 100755 index 000000000..70974a61c --- /dev/null +++ b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectObjParam.php @@ -0,0 +1,31 @@ +encodedCount = null; + $this->encodedTerm = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.php b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.php new file mode 100755 index 000000000..923a70cfd --- /dev/null +++ b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectObjParamExploded.php @@ -0,0 +1,31 @@ +itemCount = null; + $this->searchTerm = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectRequest.php b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectRequest.php new file mode 100755 index 000000000..fff31b37d --- /dev/null +++ b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectRequest.php @@ -0,0 +1,25 @@ +objParamExploded = new \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectObjParamExploded(); + $this->objParam = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectRes.php b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectRes.php new file mode 100755 index 000000000..a838d1623 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectRes.php @@ -0,0 +1,33 @@ +args = new \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectResArgs(); + $this->url = ""; + } +} diff --git a/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectResArgs.php b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectResArgs.php new file mode 100755 index 000000000..56e03f9cf --- /dev/null +++ b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectResArgs.php @@ -0,0 +1,27 @@ +itemCount = ""; + $this->searchTerm = ""; + } +} diff --git a/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectResponse.php b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectResponse.php new file mode 100755 index 000000000..74382fde3 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/FormQueryParamsCamelObjectResponse.php @@ -0,0 +1,53 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + $this->res = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.php b/php-client-sdk/src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.php new file mode 100755 index 000000000..03c3c4d39 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.php @@ -0,0 +1,33 @@ + $json + */ + #[\JMS\Serializer\Annotation\SerializedName('json')] + #[\JMS\Serializer\Annotation\Type('array')] + public array $json; + + public function __construct() + { + $this->json = []; + } +} diff --git a/php-client-sdk/src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.php b/php-client-sdk/src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.php new file mode 100755 index 000000000..8502f7285 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/ResponseBodyAdditionalPropertiesObjectPostResponse.php @@ -0,0 +1,53 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + $this->responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.php b/php-client-sdk/src/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.php index af79c125d..ce2e0cdf1 100755 --- a/php-client-sdk/src/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.php +++ b/php-client-sdk/src/Models/Operations/StatusGetXSpeakeasyErrors501ApplicationJSON.php @@ -27,9 +27,15 @@ class StatusGetXSpeakeasyErrors501ApplicationJSON #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $message = null; + #[\JMS\Serializer\Annotation\SerializedName('type')] + #[\JMS\Serializer\Annotation\Type('enum')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?\OpenAPI\OpenAPI\Models\Shared\ErrorType $type = null; + public function __construct() { $this->code = null; $this->message = null; + $this->type = null; } } diff --git a/php-client-sdk/src/Models/Operations/UnionDateNullRes.php b/php-client-sdk/src/Models/Operations/UnionDateNullRes.php new file mode 100755 index 000000000..5378c8c73 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionDateNullRes.php @@ -0,0 +1,28 @@ +")] + public \DateTime $json; + + public function __construct() + { + $this->json = new \DateTime(); + } +} diff --git a/php-client-sdk/src/Models/Operations/UnionDateNullResponse.php b/php-client-sdk/src/Models/Operations/UnionDateNullResponse.php new file mode 100755 index 000000000..078d5ed77 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionDateNullResponse.php @@ -0,0 +1,53 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + $this->res = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/UnionDateTimeNullRes.php b/php-client-sdk/src/Models/Operations/UnionDateTimeNullRes.php new file mode 100755 index 000000000..5f7712b51 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionDateTimeNullRes.php @@ -0,0 +1,28 @@ +")] + public \DateTime $json; + + public function __construct() + { + $this->json = new \DateTime(); + } +} diff --git a/php-client-sdk/src/Models/Operations/UnionDateTimeNullResponse.php b/php-client-sdk/src/Models/Operations/UnionDateTimeNullResponse.php new file mode 100755 index 000000000..b5a9e2d19 --- /dev/null +++ b/php-client-sdk/src/Models/Operations/UnionDateTimeNullResponse.php @@ -0,0 +1,53 @@ +contentType = ""; + $this->statusCode = 0; + $this->rawResponse = null; + $this->res = null; + } +} diff --git a/php-client-sdk/src/Models/Operations/UsageExamplePostRequest.php b/php-client-sdk/src/Models/Operations/UsageExamplePostRequest.php index 263b7bbae..97f54b53b 100755 --- a/php-client-sdk/src/Models/Operations/UsageExamplePostRequest.php +++ b/php-client-sdk/src/Models/Operations/UsageExamplePostRequest.php @@ -67,6 +67,14 @@ class UsageExamplePostRequest #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=dateParameter,dateTimeFormat=Y-m-d')] public \DateTime $dateParameter; + /** + * A date time parameter with a default value + * + * @var \DateTime $dateTimeDefaultParameter + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=dateTimeDefaultParameter,dateTimeFormat=Y-m-d\TH:i:s.up')] + public \DateTime $dateTimeDefaultParameter; + /** * A date time parameter * @@ -188,6 +196,7 @@ public function __construct() $this->bigintStrParameterOptional = null; $this->boolParameter = false; $this->dateParameter = new \DateTime(); + $this->dateTimeDefaultParameter = new \DateTime(); $this->dateTimeParameter = new \DateTime(); $this->decimalParameter = 0; $this->decimalParameterOptional = null; diff --git a/php-client-sdk/src/Models/Shared/Error.php b/php-client-sdk/src/Models/Shared/Error.php index 80248dcff..ab478117c 100755 --- a/php-client-sdk/src/Models/Shared/Error.php +++ b/php-client-sdk/src/Models/Shared/Error.php @@ -21,9 +21,15 @@ class Error #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?string $message = null; + #[\JMS\Serializer\Annotation\SerializedName('type')] + #[\JMS\Serializer\Annotation\Type('enum')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?ErrorType $type = null; + public function __construct() { $this->code = null; $this->message = null; + $this->type = null; } } diff --git a/php-client-sdk/src/Models/Shared/ErrorType.php b/php-client-sdk/src/Models/Shared/ErrorType.php new file mode 100755 index 000000000..9624c1b27 --- /dev/null +++ b/php-client-sdk/src/Models/Shared/ErrorType.php @@ -0,0 +1,17 @@ +objParamExploded = $objParamExploded; + $request->objParam = $objParam; + + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/queryParams/form/camelObj'); + + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(\OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectRequest::class, $request, $this->sdkConfiguration->globals)); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $response->res = $serializer->deserialize((string)$httpResponse->getBody(), 'OpenAPI\OpenAPI\Models\Operations\FormQueryParamsCamelObjectRes', 'json'); + } + } + + return $response; + } + /** * formQueryParamsMap * diff --git a/php-client-sdk/src/ResponseBodies.php b/php-client-sdk/src/ResponseBodies.php index 2df67fa63..ec6e4b90d 100755 --- a/php-client-sdk/src/ResponseBodies.php +++ b/php-client-sdk/src/ResponseBodies.php @@ -111,6 +111,47 @@ public function responseBodyAdditionalPropertiesDatePost( return $response; } + /** + * responseBodyAdditionalPropertiesObjectPost + * + * @param array $request + * @return \OpenAPI\OpenAPI\Models\Operations\ResponseBodyAdditionalPropertiesObjectPostResponse + */ + public function responseBodyAdditionalPropertiesObjectPost( + array $request, + ): \OpenAPI\OpenAPI\Models\Operations\ResponseBodyAdditionalPropertiesObjectPostResponse + { + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/responseBodies/additionalPropertiesObject'); + + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, "request", "json"); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\ResponseBodyAdditionalPropertiesObjectPostResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $response->responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = $serializer->deserialize((string)$httpResponse->getBody(), 'OpenAPI\OpenAPI\Models\Operations\ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON', 'json'); + } + } + + return $response; + } + /** * responseBodyAdditionalPropertiesPost * diff --git a/php-client-sdk/src/SDKConfiguration.php b/php-client-sdk/src/SDKConfiguration.php index de428aefb..57d8fb1e4 100755 --- a/php-client-sdk/src/SDKConfiguration.php +++ b/php-client-sdk/src/SDKConfiguration.php @@ -36,9 +36,9 @@ class SDKConfiguration ]; public string $language = 'php'; public string $openapiDocVersion = '0.1.0'; - public string $sdkVersion = '1.35.3'; - public string $genVersion = '2.148.0'; - public string $userAgent = 'speakeasy-sdk/php 1.35.3 2.148.0 0.1.0 openapi/openapi'; + public string $sdkVersion = '1.36.0'; + public string $genVersion = '2.171.0'; + public string $userAgent = 'speakeasy-sdk/php 1.36.0 2.171.0 0.1.0 openapi/openapi'; /** @var array>> */ public ?array $globals = [ 'parameters' => [] diff --git a/php-client-sdk/src/Unions.php b/php-client-sdk/src/Unions.php index feac65aba..0dca41087 100755 --- a/php-client-sdk/src/Unions.php +++ b/php-client-sdk/src/Unions.php @@ -431,6 +431,88 @@ public function typedObjectOneOfPost( return $response; } + /** + * unionDateNull + * + * @param \DateTime $request + * @return \OpenAPI\OpenAPI\Models\Operations\UnionDateNullResponse + */ + public function unionDateNull( + \DateTime $request, + ): \OpenAPI\OpenAPI\Models\Operations\UnionDateNullResponse + { + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/unionDateNull'); + + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, "request", "json"); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\UnionDateNullResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $response->res = $serializer->deserialize((string)$httpResponse->getBody(), 'OpenAPI\OpenAPI\Models\Operations\UnionDateNullRes', 'json'); + } + } + + return $response; + } + + /** + * unionDateTimeNull + * + * @param \DateTime $request + * @return \OpenAPI\OpenAPI\Models\Operations\UnionDateTimeNullResponse + */ + public function unionDateTimeNull( + \DateTime $request, + ): \OpenAPI\OpenAPI\Models\Operations\UnionDateTimeNullResponse + { + $baseUrl = Utils\Utils::templateUrl($this->sdkConfiguration->getServerUrl(), $this->sdkConfiguration->getServerDefaults()); + $url = Utils\Utils::generateUrl($baseUrl, '/anything/unionDateTimeNull'); + + $options = ['http_errors' => false]; + $body = Utils\Utils::serializeRequestBody($request, "request", "json"); + if ($body === null) { + throw new \Exception('Request body is required'); + } + $options = array_merge_recursive($options, $body); + $options['headers']['Accept'] = 'application/json'; + $options['headers']['x-speakeasy-user-agent'] = $this->sdkConfiguration->userAgent; + + $httpResponse = $this->sdkConfiguration->securityClient->request('POST', $url, $options); + + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $response = new \OpenAPI\OpenAPI\Models\Operations\UnionDateTimeNullResponse(); + $response->statusCode = $httpResponse->getStatusCode(); + $response->contentType = $contentType; + $response->rawResponse = $httpResponse; + + if ($httpResponse->getStatusCode() === 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $response->res = $serializer->deserialize((string)$httpResponse->getBody(), 'OpenAPI\OpenAPI\Models\Operations\UnionDateTimeNullRes', 'json'); + } + } + + return $response; + } + /** * weaklyTypedOneOfPost * diff --git a/php-client-sdk/tests/CommonHelpers.php b/php-client-sdk/tests/CommonHelpers.php new file mode 100755 index 000000000..e1ebdcb24 --- /dev/null +++ b/php-client-sdk/tests/CommonHelpers.php @@ -0,0 +1,15 @@ +build(); @@ -33,7 +40,7 @@ public function testBasicAuth(): void public function testApiKeyAuthGlobal(): void { - Helpers::recordTest('auth-api-key-auth-global'); + CommonHelpers::recordTest('auth-api-key-auth-global'); $security = new \OpenAPI\OpenAPI\Models\Shared\Security(); $security->apiKeyAuthNew = 'test_api_key'; @@ -59,7 +66,7 @@ public function testApiKeyAuthGlobal(): void public function testApiKeyAuthOperation(): void { - Helpers::recordTest('auth-api-key-auth-operation'); + CommonHelpers::recordTest('auth-api-key-auth-operation'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -77,7 +84,7 @@ public function testApiKeyAuthOperation(): void public function testBearerAuthOperationWithPrefix(): void { - Helpers::recordTest('auth-bearer-auth-operation-with-prefix'); + CommonHelpers::recordTest('auth-bearer-auth-operation-with-prefix'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -95,7 +102,7 @@ public function testBearerAuthOperationWithPrefix(): void public function testBearerAuthOperationWithoutPrefix(): void { - Helpers::recordTest('auth-bearer-auth-operation-without-prefix'); + CommonHelpers::recordTest('auth-bearer-auth-operation-without-prefix'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -113,7 +120,7 @@ public function testBearerAuthOperationWithoutPrefix(): void public function testOauth2Auth(): void { - Helpers::recordTest('auth-oauth2-auth'); + CommonHelpers::recordTest('auth-oauth2-auth'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -139,7 +146,7 @@ public function testOauth2Auth(): void public function testOpenIdConnectAuth(): void { - Helpers::recordTest('auth-open-id-connect-auth'); + CommonHelpers::recordTest('auth-open-id-connect-auth'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -165,7 +172,7 @@ public function testOpenIdConnectAuth(): void public function testMultipleSimpleSchemeAuth(): void { - Helpers::recordTest('auth-multiple-simple-scheme-auth'); + CommonHelpers::recordTest('auth-multiple-simple-scheme-auth'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -198,7 +205,7 @@ public function testMultipleSimpleSchemeAuth(): void public function testMultipleMixedSchemeAuth(): void { - Helpers::recordTest('auth-multiple-mixed-scheme-auth'); + CommonHelpers::recordTest('auth-multiple-mixed-scheme-auth'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -231,7 +238,7 @@ public function testMultipleMixedSchemeAuth(): void public function testMultipleSimpleOptionsAuthFirstOption(): void { - Helpers::recordTest('auth-multiple-simple-options-auth-first-option'); + CommonHelpers::recordTest('auth-multiple-simple-options-auth-first-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -258,7 +265,7 @@ public function testMultipleSimpleOptionsAuthFirstOption(): void public function testMultipleSimpleOptionsAuthSecondOption(): void { - Helpers::recordTest('auth-multiple-simple-options-auth-second-option'); + CommonHelpers::recordTest('auth-multiple-simple-options-auth-second-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -285,7 +292,7 @@ public function testMultipleSimpleOptionsAuthSecondOption(): void public function testMultipleMixedOptionsAuthFirstOption(): void { - Helpers::recordTest('auth-multiple-mixed-options-auth-first-option'); + CommonHelpers::recordTest('auth-multiple-mixed-options-auth-first-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -312,7 +319,7 @@ public function testMultipleMixedOptionsAuthFirstOption(): void public function testMultipleMixedOptionsAuthSecondOption(): void { - Helpers::recordTest('auth-multiple-mixed-options-auth-second-option'); + CommonHelpers::recordTest('auth-multiple-mixed-options-auth-second-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -336,7 +343,7 @@ public function testMultipleMixedOptionsAuthSecondOption(): void public function testMultipleOptionsWithSimpleSchemesAuthFirstOption(): void { - Helpers::recordTest('auth-multiple-options-with-simple-schemes-auth-first-option'); + CommonHelpers::recordTest('auth-multiple-options-with-simple-schemes-auth-first-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -370,7 +377,7 @@ public function testMultipleOptionsWithSimpleSchemesAuthFirstOption(): void public function testMultipleOptionsWithSimpleSchemesAuthSecondOption(): void { - Helpers::recordTest('auth-multiple-options-with-simple-schemes-auth-second-option'); + CommonHelpers::recordTest('auth-multiple-options-with-simple-schemes-auth-second-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -404,7 +411,7 @@ public function testMultipleOptionsWithSimpleSchemesAuthSecondOption(): void public function testMultipleOptionsWithMixedSchemesAuthFirstOption(): void { - Helpers::recordTest('auth-multiple-options-with-mixed-schemes-auth-first-option'); + CommonHelpers::recordTest('auth-multiple-options-with-mixed-schemes-auth-first-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -438,7 +445,7 @@ public function testMultipleOptionsWithMixedSchemesAuthFirstOption(): void public function testMultipleOptionsWithMixedSchemesAuthSecondOption(): void { - Helpers::recordTest('auth-multiple-options-with-mixed-schemes-auth-second-option'); + CommonHelpers::recordTest('auth-multiple-options-with-mixed-schemes-auth-second-option'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); diff --git a/php-client-sdk/tests/FlatteningTest.php b/php-client-sdk/testsPrimary/FlatteningTest.php similarity index 85% rename from php-client-sdk/tests/FlatteningTest.php rename to php-client-sdk/testsPrimary/FlatteningTest.php index 425e609a3..0ce3f8b6e 100755 --- a/php-client-sdk/tests/FlatteningTest.php +++ b/php-client-sdk/testsPrimary/FlatteningTest.php @@ -1,8 +1,15 @@ build(); @@ -28,7 +35,7 @@ public function testComponentBodyAndParamNoConflict(): void public function testComponentBodyAndParamConflict(): void { - Helpers::recordTest('flattening-component-body-and-param-conflict'); + CommonHelpers::recordTest('flattening-component-body-and-param-conflict'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -46,7 +53,7 @@ public function testComponentBodyAndParamConflict(): void public function testInlineBodyAndParamConflict(): void { - Helpers::recordTest('flattening-inline-body-and-param-conflict'); + CommonHelpers::recordTest('flattening-inline-body-and-param-conflict'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -65,7 +72,7 @@ public function testInlineBodyAndParamConflict(): void public function testInlineBodyAndParamNoConflict(): void { - Helpers::recordTest('flattening-inline-body-and-param-no-conflict'); + CommonHelpers::recordTest('flattening-inline-body-and-param-no-conflict'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -84,7 +91,7 @@ public function testInlineBodyAndParamNoConflict(): void public function testConflictingParams(): void { - Helpers::recordTest('flattening-conflicting-params'); + CommonHelpers::recordTest('flattening-conflicting-params'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); diff --git a/php-client-sdk/tests/GlobalsTest.php b/php-client-sdk/testsPrimary/GlobalsTest.php similarity index 83% rename from php-client-sdk/tests/GlobalsTest.php rename to php-client-sdk/testsPrimary/GlobalsTest.php index 2212a3e98..912df066b 100755 --- a/php-client-sdk/tests/GlobalsTest.php +++ b/php-client-sdk/testsPrimary/GlobalsTest.php @@ -1,8 +1,15 @@ setGlobalQueryParam('test')->build(); @@ -25,7 +32,7 @@ public function testGlobalsQueryParameterGetUsesGlobal(): void public function testGlobalsQueryParameterGetUsesLocal(): void { - Helpers::recordTest('globals-query-parameter-get-uses-local'); + CommonHelpers::recordTest('globals-query-parameter-get-uses-local'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setGlobalQueryParam('test')->build(); @@ -40,7 +47,7 @@ public function testGlobalsQueryParameterGetUsesLocal(): void public function testGlobalPathParameterGetUsesGlobal(): void { - Helpers::recordTest('globals-path-parameter-get-uses-global'); + CommonHelpers::recordTest('globals-path-parameter-get-uses-global'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setGlobalPathParam(1)->build(); @@ -55,7 +62,7 @@ public function testGlobalPathParameterGetUsesGlobal(): void public function testGlobalPathParameterGetUsesLocal(): void { - Helpers::recordTest('globals-path-parameter-get-uses-local'); + CommonHelpers::recordTest('globals-path-parameter-get-uses-local'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setGlobalPathParam(1)->build(); diff --git a/php-client-sdk/tests/Helpers/Helpers.php b/php-client-sdk/testsPrimary/Helpers/Helpers.php similarity index 91% rename from php-client-sdk/tests/Helpers/Helpers.php rename to php-client-sdk/testsPrimary/Helpers/Helpers.php index d8420961a..4a974ee3b 100755 --- a/php-client-sdk/tests/Helpers/Helpers.php +++ b/php-client-sdk/testsPrimary/Helpers/Helpers.php @@ -1,5 +1,11 @@ build(); @@ -29,7 +36,7 @@ public function testMixedParametersPrimitives(): void public function testSimplePathParameterPrimitives(): void { - Helpers::recordTest('parameters-simple-path-parameter-primitives'); + CommonHelpers::recordTest('parameters-simple-path-parameter-primitives'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -45,7 +52,7 @@ public function testSimplePathParameterPrimitives(): void public function testSimplePathParameterObjects(): void { - Helpers::recordTest('parameters-simple-path-parameter-objects'); + CommonHelpers::recordTest('parameters-simple-path-parameter-objects'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -63,7 +70,7 @@ public function testSimplePathParameterObjects(): void public function testSimplePathParameterArrays(): void { - Helpers::recordTest('parameters-simple-path-parameter-arrays'); + CommonHelpers::recordTest('parameters-simple-path-parameter-arrays'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -79,7 +86,7 @@ public function testSimplePathParameterArrays(): void public function testSimplePathParameterMaps(): void { - Helpers::recordTest('parameters-simple-path-parameter-maps'); + CommonHelpers::recordTest('parameters-simple-path-parameter-maps'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -95,7 +102,7 @@ public function testSimplePathParameterMaps(): void public function testPathParameterJson(): void { - Helpers::recordTest('parameters-path-parameter-json'); + CommonHelpers::recordTest('parameters-path-parameter-json'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -111,7 +118,7 @@ public function testPathParameterJson(): void public function testFormQueryParamsPrimitive(): void { - Helpers::recordTest('parameters-form-query-params-primitive'); + CommonHelpers::recordTest('parameters-form-query-params-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -131,7 +138,7 @@ public function testFormQueryParamsPrimitive(): void public function testFormQueryParamsObject(): void { - Helpers::recordTest('parameters-form-query-params-object'); + CommonHelpers::recordTest('parameters-form-query-params-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -166,7 +173,7 @@ public function testFormQueryParamsObject(): void public function testFormQueryParamsRefParamObject(): void { - Helpers::recordTest('parameters-form-query-params-ref-param-object'); + CommonHelpers::recordTest('parameters-form-query-params-ref-param-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -199,7 +206,7 @@ public function testFormQueryParamsRefParamObject(): void public function testFormQueryParamsArray(): void { - Helpers::recordTest('parameters-form-query-params-array'); + CommonHelpers::recordTest('parameters-form-query-params-array'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -217,7 +224,7 @@ public function testFormQueryParamsArray(): void public function testPipeDelimitedQueryParamsArray(): void { - Helpers::recordTest('parameters-pipe-query-params-array'); + CommonHelpers::recordTest('parameters-pipe-query-params-array'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -237,7 +244,7 @@ public function testPipeDelimitedQueryParamsArray(): void public function testFormQueryParamsMap(): void { - Helpers::recordTest('parameters-form-query-params-map'); + CommonHelpers::recordTest('parameters-form-query-params-map'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -254,7 +261,7 @@ public function testFormQueryParamsMap(): void public function testDeepObjectQueryParamsObject(): void { - Helpers::recordTest('parameters-deep-object-query-params-object'); + CommonHelpers::recordTest('parameters-deep-object-query-params-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -290,7 +297,7 @@ public function testDeepObjectQueryParamsObject(): void public function testDeepObjectQueryParamsMap(): void { - Helpers::recordTest('parameters-deep-object-query-params-map'); + CommonHelpers::recordTest('parameters-deep-object-query-params-map'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -307,7 +314,7 @@ public function testDeepObjectQueryParamsMap(): void public function testJsonQueryParamsObject(): void { - Helpers::recordTest('parameters-json-query-params-object'); + CommonHelpers::recordTest('parameters-json-query-params-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -329,7 +336,7 @@ public function testJsonQueryParamsObject(): void public function testMixedQueryParams(): void { - Helpers::recordTest('parameters-mixed-query-params'); + CommonHelpers::recordTest('parameters-mixed-query-params'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -380,7 +387,7 @@ public function testMixedQueryParams(): void public function testHeaderParamsPrimitive(): void { - Helpers::recordTest('parameters-header-params-primitive'); + CommonHelpers::recordTest('parameters-header-params-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -399,7 +406,7 @@ public function testHeaderParamsPrimitive(): void public function testHeaderParamsObject(): void { - Helpers::recordTest('parameters-header-params-object'); + CommonHelpers::recordTest('parameters-header-params-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -418,7 +425,7 @@ public function testHeaderParamsObject(): void public function testHeaderParamsMap(): void { - Helpers::recordTest('parameters-header-params-map'); + CommonHelpers::recordTest('parameters-header-params-map'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -435,7 +442,7 @@ public function testHeaderParamsMap(): void public function testHeaderParamsArray(): void { - Helpers::recordTest('parameters-header-params-array'); + CommonHelpers::recordTest('parameters-header-params-array'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); diff --git a/php-client-sdk/tests/RequestBodiesTest.php b/php-client-sdk/testsPrimary/RequestBodiesTest.php similarity index 90% rename from php-client-sdk/tests/RequestBodiesTest.php rename to php-client-sdk/testsPrimary/RequestBodiesTest.php index 8f1006f19..49ec245e7 100755 --- a/php-client-sdk/tests/RequestBodiesTest.php +++ b/php-client-sdk/testsPrimary/RequestBodiesTest.php @@ -1,8 +1,16 @@ build(); @@ -29,7 +37,7 @@ public function testRequestBodyPostApplicationJsonSimple(): void public function testRequestBodyPostApplicationJsonArray(): void { - Helpers::recordTest('request-bodies-post-application-json-array'); + CommonHelpers::recordTest('request-bodies-post-application-json-array'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -49,7 +57,7 @@ public function testRequestBodyPostApplicationJsonArray(): void public function testRequestBodyPostApplicationJsonArrayOfArray(): void { - Helpers::recordTest('request-bodies-post-application-json-array-of-array'); + CommonHelpers::recordTest('request-bodies-post-application-json-array-of-array'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -69,7 +77,7 @@ public function testRequestBodyPostApplicationJsonArrayOfArray(): void public function testRequestBodyPostApplicationJsonMap(): void { - Helpers::recordTest('request-bodies-post-application-json-map'); + CommonHelpers::recordTest('request-bodies-post-application-json-map'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -92,7 +100,7 @@ public function testRequestBodyPostApplicationJsonMap(): void public function testRequestBodyPostApplicationJsonMapOfMap(): void { - Helpers::recordTest('request-bodies-post-application-json-map-of-map'); + CommonHelpers::recordTest('request-bodies-post-application-json-map-of-map'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -121,7 +129,7 @@ public function testRequestBodyPostApplicationJsonMapOfMap(): void public function testRequestBodyPostApplicationJsonMapOfArray(): void { - Helpers::recordTest('request-bodies-post-application-json-map-of-array'); + CommonHelpers::recordTest('request-bodies-post-application-json-map-of-array'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -144,7 +152,7 @@ public function testRequestBodyPostApplicationJsonMapOfArray(): void public function testRequestBodyPostApplicationJsonArrayOfMap(): void { - Helpers::recordTest('request-bodies-post-application-json-array-of-map'); + CommonHelpers::recordTest('request-bodies-post-application-json-array-of-map'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -173,7 +181,7 @@ public function testRequestBodyPostApplicationJsonArrayOfMap(): void public function testRequestBodyPostApplicationJsonMapOfPrimitive(): void { - Helpers::recordTest('request-bodies-post-application-json-map-of-primitive'); + CommonHelpers::recordTest('request-bodies-post-application-json-map-of-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -194,7 +202,7 @@ public function testRequestBodyPostApplicationJsonMapOfPrimitive(): void public function testRequestBodyPostApplicationJsonArrayOfPrimitive(): void { - Helpers::recordTest('request-bodies-post-application-json-array-of-primitive'); + CommonHelpers::recordTest('request-bodies-post-application-json-array-of-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -212,7 +220,7 @@ public function testRequestBodyPostApplicationJsonArrayOfPrimitive(): void public function testRequestBodyPostApplicationJsonMapOfMapOfPrimitive(): void { - Helpers::recordTest('request-bodies-post-application-json-map-of-map-of-primitive'); + CommonHelpers::recordTest('request-bodies-post-application-json-map-of-map-of-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -239,7 +247,7 @@ public function testRequestBodyPostApplicationJsonMapOfMapOfPrimitive(): void public function testRequestBodyPostApplicationJsonArrayOfArrayOfPrimitive(): void { - Helpers::recordTest('request-bodies-post-application-json-array-of-array-of-primitive'); + CommonHelpers::recordTest('request-bodies-post-application-json-array-of-array-of-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -260,7 +268,7 @@ public function testRequestBodyPostApplicationJsonArrayOfArrayOfPrimitive(): voi public function testRequestBodyPostApplicationJsonArrayObject(): void { - Helpers::recordTest('request-bodies-post-application-json-array-object'); + CommonHelpers::recordTest('request-bodies-post-application-json-array-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -280,7 +288,7 @@ public function testRequestBodyPostApplicationJsonArrayObject(): void public function testRequestBodyPostApplicationJsonMapObject(): void { - Helpers::recordTest('request-bodies-post-application-json-map-object'); + CommonHelpers::recordTest('request-bodies-post-application-json-map-object'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -303,7 +311,7 @@ public function testRequestBodyPostApplicationJsonMapObject(): void public function testRequestBodyPostApplicationJsonDeep(): void { - Helpers::recordTest('request-bodies-post-application-json-deep'); + CommonHelpers::recordTest('request-bodies-post-application-json-deep'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -339,7 +347,7 @@ public function testRequestBodyPostApplicationJsonDeep(): void public function testRequestBodyPostApplicationJsonMultipleJsonFiltered(): void { - Helpers::recordTest('request-bodies-post-application-json-multiple-json-filtered'); + CommonHelpers::recordTest('request-bodies-post-application-json-multiple-json-filtered'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -357,7 +365,7 @@ public function testRequestBodyPostApplicationJsonMultipleJsonFiltered(): void public function testRequestBodyPostMultipleContentTypesComponentFiltered(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-component-filtered'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-component-filtered'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -375,7 +383,7 @@ public function testRequestBodyPostMultipleContentTypesComponentFiltered(): void public function testRequestBodyPostMultipleContentTypesInlineFiltered(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-inline-filtered'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-inline-filtered'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -398,7 +406,7 @@ public function testRequestBodyPostMultipleContentTypesInlineFiltered(): void public function testRequestBodyPostMultipleContentTypesSplitJson(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-split-json'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-split-json'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -421,7 +429,7 @@ public function testRequestBodyPostMultipleContentTypesSplitJson(): void public function testRequestBodyPostMultipleContentTypesSplitMultipart(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-split-multipart'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-split-multipart'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -444,7 +452,7 @@ public function testRequestBodyPostMultipleContentTypesSplitMultipart(): void public function testRequestBodyPostMultipleContentTypesSplitForm(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-split-form'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-split-form'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -467,7 +475,7 @@ public function testRequestBodyPostMultipleContentTypesSplitForm(): void public function testRequestBodyPostMultipleContentTypesSplitJsonWithParam(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-split-json-with-param'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-split-json-with-param'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -491,7 +499,7 @@ public function testRequestBodyPostMultipleContentTypesSplitJsonWithParam(): voi public function testRequestBodyPostMultipleContentTypesSplitMultipartWithParam(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-split-multipart-with-param'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-split-multipart-with-param'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -515,7 +523,7 @@ public function testRequestBodyPostMultipleContentTypesSplitMultipartWithParam() public function testRequestBodyPostMultipleContentTypesSplitFormWithParam(): void { - Helpers::recordTest('request-bodies-post-multiple-content-types-split-form-with-param'); + CommonHelpers::recordTest('request-bodies-post-multiple-content-types-split-form-with-param'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -539,7 +547,7 @@ public function testRequestBodyPostMultipleContentTypesSplitFormWithParam(): voi public function testRequestBodyPutMultipartSimple(): void { - Helpers::recordTest('request-bodies-put-multipart-simple'); + CommonHelpers::recordTest('request-bodies-put-multipart-simple'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -570,7 +578,7 @@ public function testRequestBodyPutMultipartSimple(): void public function testRequestBodyPutMultipartDeep(): void { - Helpers::recordTest('request-bodies-put-multipart-deep'); + CommonHelpers::recordTest('request-bodies-put-multipart-deep'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -596,7 +604,7 @@ public function testRequestBodyPutMultipartDeep(): void public function testRequestBodyPutMultipartFile(): void { - Helpers::recordTest('request-bodies-put-multipart-file'); + CommonHelpers::recordTest('request-bodies-put-multipart-file'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -623,7 +631,7 @@ public function testRequestBodyPutMultipartFile(): void public function testRequestBodyPostFormSimple(): void { - Helpers::recordTest('request-bodies-post-form-simple'); + CommonHelpers::recordTest('request-bodies-post-form-simple'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -654,7 +662,7 @@ public function testRequestBodyPostFormSimple(): void public function testRequestBodyPostFormDeep(): void { - Helpers::recordTest('request-bodies-post-form-deep'); + CommonHelpers::recordTest('request-bodies-post-form-deep'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -679,7 +687,7 @@ public function testRequestBodyPostFormDeep(): void public function testRequestBodyPostFormMapPrimitive(): void { - Helpers::recordTest('request-bodies-post-form-map-primitive'); + CommonHelpers::recordTest('request-bodies-post-form-map-primitive'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -701,7 +709,7 @@ public function testRequestBodyPostFormMapPrimitive(): void public function testRequestBodyPutString(): void { - Helpers::recordTest('request-bodies-put-string'); + CommonHelpers::recordTest('request-bodies-put-string'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -719,7 +727,7 @@ public function testRequestBodyPutString(): void public function testRequestBodyPutBytes(): void { - Helpers::recordTest('request-bodies-put-bytes'); + CommonHelpers::recordTest('request-bodies-put-bytes'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -739,7 +747,7 @@ public function testRequestBodyPutBytes(): void public function testRequestBodyPutStringWithParams(): void { - Helpers::recordTest('request-bodies-put-string-with-params'); + CommonHelpers::recordTest('request-bodies-put-string-with-params'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -758,7 +766,7 @@ public function testRequestBodyPutStringWithParams(): void public function testRequestBodyPutBytesWithParams(): void { - Helpers::recordTest('request-bodies-put-bytes-with-params'); + CommonHelpers::recordTest('request-bodies-put-bytes-with-params'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -779,7 +787,7 @@ public function testRequestBodyPutBytesWithParams(): void public function testRequestBodyReadOnlyInput(): void { - Helpers::recordTest('request-bodies-read-only-input'); + CommonHelpers::recordTest('request-bodies-read-only-input'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -797,7 +805,7 @@ public function testRequestBodyReadOnlyInput(): void public function testRequestBodyWriteOnlyOutput(): void { - Helpers::recordTest('request-bodies-write-only-output'); + CommonHelpers::recordTest('request-bodies-write-only-output'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -817,7 +825,7 @@ public function testRequestBodyWriteOnlyOutput(): void public function testRequestBodyWriteOnly(): void { - Helpers::recordTest('request-bodies-write-only'); + CommonHelpers::recordTest('request-bodies-write-only'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -840,7 +848,7 @@ public function testRequestBodyWriteOnly(): void public function testRequestBodyReadAndWrite(): void { - Helpers::recordTest('request-bodies-read-and-write'); + CommonHelpers::recordTest('request-bodies-read-and-write'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); diff --git a/php-client-sdk/tests/ResponseBodiesTest.php b/php-client-sdk/testsPrimary/ResponseBodiesTest.php similarity index 93% rename from php-client-sdk/tests/ResponseBodiesTest.php rename to php-client-sdk/testsPrimary/ResponseBodiesTest.php index f6df08a1d..223686307 100755 --- a/php-client-sdk/tests/ResponseBodiesTest.php +++ b/php-client-sdk/testsPrimary/ResponseBodiesTest.php @@ -1,16 +1,27 @@ assertEquals(true, true); + } public function testResponseBodyJsonGet(): void { - Helpers::recordTest('response-bodies-json-get'); + CommonHelpers::recordTest('response-bodies-json-get'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -48,7 +59,7 @@ public function testResponseBodyJsonGet(): void public function testResponseBodyStringGet(): void { - Helpers::recordTest('response-bodies-string-get'); + CommonHelpers::recordTest('response-bodies-string-get'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -76,7 +87,7 @@ public function testResponseBodyStringGet(): void public function testResponseBodyXmlGet(): void { - Helpers::recordTest('response-bodies-xml-get'); + CommonHelpers::recordTest('response-bodies-xml-get'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -114,7 +125,7 @@ public function testResponseBodyXmlGet(): void public function testResponseBodyBytesGet(): void { - Helpers::recordTest('response-bodies-bytes-get'); + CommonHelpers::recordTest('response-bodies-bytes-get'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -130,7 +141,7 @@ public function testResponseBodyBytesGet(): void public function testResponseBodyReadOnly(): void { - Helpers::recordTest('response-bodies-read-only'); + CommonHelpers::recordTest('response-bodies-read-only'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); diff --git a/php-client-sdk/tests/ServersTest.php b/php-client-sdk/testsPrimary/ServersTest.php similarity index 83% rename from php-client-sdk/tests/ServersTest.php rename to php-client-sdk/testsPrimary/ServersTest.php index d170a6d11..4c6eb08d5 100755 --- a/php-client-sdk/tests/ServersTest.php +++ b/php-client-sdk/testsPrimary/ServersTest.php @@ -1,9 +1,16 @@ setServerUrl(\OpenAPI\OpenAPI\SDK::SERVERS[0])->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -24,7 +31,7 @@ public function testSelectGlobalServerValid(): void public function testSelectGlobalServerBroken(): void { - Helpers::recordTest('servers-select-global-server-broken'); + CommonHelpers::recordTest('servers-select-global-server-broken'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setServerIndex(1)->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -36,7 +43,7 @@ public function testSelectGlobalServerBroken(): void public function testSelectServerWithIDDefault(): void { - Helpers::recordTest('servers-select-server-with-id-default'); + CommonHelpers::recordTest('servers-select-server-with-id-default'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -49,7 +56,7 @@ public function testSelectServerWithIDDefault(): void public function testSelectServerWithIDValid(): void { - Helpers::recordTest('servers-select-server-with-id-valid'); + CommonHelpers::recordTest('servers-select-server-with-id-valid'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -62,7 +69,7 @@ public function testSelectServerWithIDValid(): void public function testSelectServerWithIDBroken(): void { - Helpers::recordTest('servers-select-server-with-id-broken'); + CommonHelpers::recordTest('servers-select-server-with-id-broken'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setServerUrl(\OpenAPI\OpenAPI\SDK::SERVERS[1])->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -74,7 +81,7 @@ public function testSelectServerWithIDBroken(): void public function testServerWithTemplatesGlobal(): void { - Helpers::recordTest('servers-server-with-templates-global'); + CommonHelpers::recordTest('servers-server-with-templates-global'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setServerIndex(2)->setHostname('localhost')->setPort('35123')->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -87,7 +94,7 @@ public function testServerWithTemplatesGlobal(): void public function testServerWithTemplatesGlobalDefaults(): void { - Helpers::recordTest('servers-server-with-templates-global-defaults'); + CommonHelpers::recordTest('servers-server-with-templates-global-defaults'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setServerIndex(2)->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -100,7 +107,7 @@ public function testServerWithTemplatesGlobalDefaults(): void public function testServerWithTemplatesGlobalEnum(): void { - Helpers::recordTest('servers-server-with-templates-global-enum'); + CommonHelpers::recordTest('servers-server-with-templates-global-enum'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->setServerIndex(3)->setSomething(ServerSomething::SomethingElseAgain)->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -113,7 +120,7 @@ public function testServerWithTemplatesGlobalEnum(): void public function testServerWithTemplates(): void { - Helpers::recordTest('servers-server-with-templates'); + CommonHelpers::recordTest('servers-server-with-templates'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -129,7 +136,7 @@ public function testServerWithTemplates(): void public function testServerWithTemplatesDefaults(): void { - Helpers::recordTest('servers-server-with-templates-defaults'); + CommonHelpers::recordTest('servers-server-with-templates-defaults'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); @@ -142,7 +149,7 @@ public function testServerWithTemplatesDefaults(): void public function testServerByIDWithTemplates(): void { - Helpers::recordTest('servers-server-by-id-with-templates'); + CommonHelpers::recordTest('servers-server-by-id-with-templates'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); $this->assertInstanceOf(\OpenAPI\OpenAPI\SDK::class, $sdk); diff --git a/php-client-sdk/tests/TelemetryTest.php b/php-client-sdk/testsPrimary/TelemetryTest.php similarity index 76% rename from php-client-sdk/tests/TelemetryTest.php rename to php-client-sdk/testsPrimary/TelemetryTest.php index cc4e14a74..c2a93ab51 100755 --- a/php-client-sdk/tests/TelemetryTest.php +++ b/php-client-sdk/testsPrimary/TelemetryTest.php @@ -1,8 +1,15 @@ build(); @@ -21,14 +28,14 @@ public function testTelemetryUserAgentGet(): void $this->assertNotNull($response); $this->assertEquals(200, $response->statusCode); $this->assertEquals( - 'speakeasy-sdk/php 1.35.3 2.148.0 0.1.0 openapi/openapi', + 'speakeasy-sdk/php 1.36.0 2.171.0 0.1.0 openapi/openapi', $response->res->headers['X-Speakeasy-User-Agent'], ); } public function testTelemetrySpeakeasyUserAgentGet(): void { - Helpers::recordTest('telemetry-speakeasy-user-agent-get'); + CommonHelpers::recordTest('telemetry-speakeasy-user-agent-get'); $sdk = \OpenAPI\OpenAPI\SDK::builder()->build(); @@ -42,7 +49,7 @@ public function testTelemetrySpeakeasyUserAgentGet(): void $this->assertEquals(200, $response->statusCode); $this->assertEquals($userAgent, $response->res->headers['User-Agent']); $this->assertEquals( - 'speakeasy-sdk/php 1.35.3 2.148.0 0.1.0 openapi/openapi', + 'speakeasy-sdk/php 1.36.0 2.171.0 0.1.0 openapi/openapi', $response->res->headers['X-Speakeasy-User-Agent'], ); } diff --git a/php-client-sdk/tests/testUpload.json b/php-client-sdk/testsPrimary/testUpload.json similarity index 100% rename from php-client-sdk/tests/testUpload.json rename to php-client-sdk/testsPrimary/testUpload.json diff --git a/php-client-sdk/testsSimpleSecurity/AuthTest.php b/php-client-sdk/testsSimpleSecurity/AuthTest.php new file mode 100755 index 000000000..57a1b6eaa --- /dev/null +++ b/php-client-sdk/testsSimpleSecurity/AuthTest.php @@ -0,0 +1,36 @@ +assertEquals(true, true); + } + // TODO: + // public function testGlobalSecurityFlattening(): void + // { + // recordTest("auth-global-security-flattening") + + // s := sdk.New(sdk.WithSecurity("Bearer testToken")) + + // res, err := s.Auth.APIKeyAuthGlobal(context.Background()) + // require.NoError(t, err) + // require.NotNil(t, res) + // assert.Equal(t, http.StatusOK, res.StatusCode) + // assert.True(t, res.Token.Authenticated) + // assert.Equal(t, "testToken", res.Token.Token) + // } +} \ No newline at end of file diff --git a/python-client-sdk/README.md b/python-client-sdk/README.md index 1f9f8441c..f6e976e2b 100755 --- a/python-client-sdk/README.md +++ b/python-client-sdk/README.md @@ -73,18 +73,19 @@ req = operations.UsageExamplePostRequest( bigint_str_parameter=446729, bool_parameter=False, date_parameter=dateutil.parser.parse('2023-06-11').date(), - date_time_parameter=dateutil.parser.isoparse('2022-07-22T13:16:48.221Z'), - decimal_parameter=Decimal('2679.33'), - decimal_str_parameter=Decimal('5223.72'), - double_parameter=2911.37, - enum_parameter=operations.UsageExamplePostEnumParameter.VALUE3, + date_time_default_parameter=dateutil.parser.isoparse('2022-07-22T13:16:48.221Z'), + date_time_parameter=dateutil.parser.isoparse('2021-10-21T09:16:58.799Z'), + decimal_parameter=Decimal('5223.72'), + decimal_str_parameter=Decimal('2911.37'), + double_parameter=6946.59, + enum_parameter=operations.UsageExamplePostEnumParameter.VALUE1, falsey_number_parameter=0, - float32_parameter=2286.22, - float_parameter=1029.75, - int64_parameter=566999, - int_parameter=195232, + float32_parameter=1029.75, + float_parameter=5669.99, + int64_parameter=195232, + int_parameter=569663, opt_enum_parameter=operations.UsageExamplePostOptEnumParameter.VALUE3, - str_parameter='example 2', + str_parameter='example 1', ) res = s.generation.usage_example_post(req, operations.UsageExamplePostSecurity( @@ -158,6 +159,9 @@ if res.usage_example_post_200_application_json_object is not None: * [anchor_types_get](docs/sdks/generation/README.md#anchor_types_get) * [array_circular_reference_get](docs/sdks/generation/README.md#array_circular_reference_get) * [circular_reference_get](docs/sdks/generation/README.md#circular_reference_get) +* [date_param_with_default](docs/sdks/generation/README.md#date_param_with_default) +* [date_time_param_with_default](docs/sdks/generation/README.md#date_time_param_with_default) +* [decimal_param_with_default](docs/sdks/generation/README.md#decimal_param_with_default) * [deprecated_field_in_schema_post](docs/sdks/generation/README.md#deprecated_field_in_schema_post) * [deprecated_object_in_schema_get](docs/sdks/generation/README.md#deprecated_object_in_schema_get) * [~~deprecated_operation_no_comments_get~~](docs/sdks/generation/README.md#deprecated_operation_no_comments_get) - :warning: **Deprecated** @@ -210,6 +214,7 @@ if res.usage_example_post_200_application_json_object is not None: * [deep_object_query_params_object](docs/sdks/parameters/README.md#deep_object_query_params_object) * [duplicate_param](docs/sdks/parameters/README.md#duplicate_param) * [form_query_params_array](docs/sdks/parameters/README.md#form_query_params_array) +* [form_query_params_camel_object](docs/sdks/parameters/README.md#form_query_params_camel_object) * [form_query_params_map](docs/sdks/parameters/README.md#form_query_params_map) * [form_query_params_object](docs/sdks/parameters/README.md#form_query_params_object) * [form_query_params_primitive](docs/sdks/parameters/README.md#form_query_params_primitive) @@ -325,6 +330,7 @@ if res.usage_example_post_200_application_json_object is not None: * [response_body_additional_properties_complex_numbers_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_complex_numbers_post) * [response_body_additional_properties_date_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_date_post) +* [response_body_additional_properties_object_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_object_post) * [response_body_additional_properties_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_post) * [response_body_bytes_get](docs/sdks/responsebodies/README.md#response_body_bytes_get) * [response_body_empty_with_headers](docs/sdks/responsebodies/README.md#response_body_empty_with_headers) @@ -368,6 +374,8 @@ if res.usage_example_post_200_application_json_object is not None: * [strongly_typed_one_of_post](docs/sdks/unions/README.md#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](docs/sdks/unions/README.md#typed_object_nullable_one_of_post) * [typed_object_one_of_post](docs/sdks/unions/README.md#typed_object_one_of_post) +* [union_date_null](docs/sdks/unions/README.md#union_date_null) +* [union_date_time_null](docs/sdks/unions/README.md#union_date_time_null) * [weakly_typed_one_of_post](docs/sdks/unions/README.md#weakly_typed_one_of_post) @@ -439,7 +447,7 @@ The following global parameters are available. The required parameters must be s -## Example +## Example #1 ```python import sdk @@ -456,6 +464,29 @@ s = sdk.SDK( res = s.globals.global_path_parameter_get(global_path_param=719830) +if res.res is not None: + # handle response + pass +``` + + +## Example #2 + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + + +res = s.globals.globals_query_parameter_get(global_query_param='string') + if res.res is not None: # handle response pass diff --git a/python-client-sdk/USAGE.md b/python-client-sdk/USAGE.md index 6b093e8f4..45fe3c06f 100755 --- a/python-client-sdk/USAGE.md +++ b/python-client-sdk/USAGE.md @@ -64,18 +64,19 @@ req = operations.UsageExamplePostRequest( bigint_str_parameter=446729, bool_parameter=False, date_parameter=dateutil.parser.parse('2023-06-11').date(), - date_time_parameter=dateutil.parser.isoparse('2022-07-22T13:16:48.221Z'), - decimal_parameter=Decimal('2679.33'), - decimal_str_parameter=Decimal('5223.72'), - double_parameter=2911.37, - enum_parameter=operations.UsageExamplePostEnumParameter.VALUE3, + date_time_default_parameter=dateutil.parser.isoparse('2022-07-22T13:16:48.221Z'), + date_time_parameter=dateutil.parser.isoparse('2021-10-21T09:16:58.799Z'), + decimal_parameter=Decimal('5223.72'), + decimal_str_parameter=Decimal('2911.37'), + double_parameter=6946.59, + enum_parameter=operations.UsageExamplePostEnumParameter.VALUE1, falsey_number_parameter=0, - float32_parameter=2286.22, - float_parameter=1029.75, - int64_parameter=566999, - int_parameter=195232, + float32_parameter=1029.75, + float_parameter=5669.99, + int64_parameter=195232, + int_parameter=569663, opt_enum_parameter=operations.UsageExamplePostOptEnumParameter.VALUE3, - str_parameter='example 2', + str_parameter='example 1', ) res = s.generation.usage_example_post(req, operations.UsageExamplePostSecurity( diff --git a/python-client-sdk/docs/models/errors/error.md b/python-client-sdk/docs/models/errors/error.md index 27361982a..887bc3c53 100755 --- a/python-client-sdk/docs/models/errors/error.md +++ b/python-client-sdk/docs/models/errors/error.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `code` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `code` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `type` | [Optional[ErrorType]](../../models/errors/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/errors/errortype.md b/python-client-sdk/docs/models/errors/errortype.md new file mode 100755 index 000000000..0ccaa2526 --- /dev/null +++ b/python-client-sdk/docs/models/errors/errortype.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `NOT_FOUND` | not_found | +| `INVALID` | invalid | +| `INTERNAL` | internal | \ No newline at end of file diff --git a/python-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md b/python-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md index 161dceb66..7f6dfa675 100755 --- a/python-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md +++ b/python-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md @@ -9,4 +9,5 @@ Not Implemented | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `code` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `type` | [Optional[ErrorType]](../../models/errors/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/arraycircularreferencegetresponse.md b/python-client-sdk/docs/models/operations/arraycircularreferencegetresponse.md index f5f80be5c..1d3fc7020 100755 --- a/python-client-sdk/docs/models/operations/arraycircularreferencegetresponse.md +++ b/python-client-sdk/docs/models/operations/arraycircularreferencegetresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `array_circular_reference_object` | list[[shared.ArrayCircularReferenceObject](../../models/shared/arraycircularreferenceobject.md)] | :heavy_minus_sign: | OK | \ No newline at end of file +| `array_circular_reference_object` | List[[shared.ArrayCircularReferenceObject](../../models/shared/arraycircularreferenceobject.md)] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/componentbodyandparamconflictres.md b/python-client-sdk/docs/models/operations/componentbodyandparamconflictres.md index 008c04959..31356bc41 100755 --- a/python-client-sdk/docs/models/operations/componentbodyandparamconflictres.md +++ b/python-client-sdk/docs/models/operations/componentbodyandparamconflictres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `json` | [shared.SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/componentbodyandparamnoconflictres.md b/python-client-sdk/docs/models/operations/componentbodyandparamnoconflictres.md index b0ed224e9..625abb6e8 100755 --- a/python-client-sdk/docs/models/operations/componentbodyandparamnoconflictres.md +++ b/python-client-sdk/docs/models/operations/componentbodyandparamnoconflictres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `json` | [shared.SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/conflictingparamsres.md b/python-client-sdk/docs/models/operations/conflictingparamsres.md index a705fd66f..53571b783 100755 --- a/python-client-sdk/docs/models/operations/conflictingparamsres.md +++ b/python-client-sdk/docs/models/operations/conflictingparamsres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `url` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md b/python-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md new file mode 100755 index 000000000..cd1d92378 --- /dev/null +++ b/python-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `date_input` | [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md b/python-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md new file mode 100755 index 000000000..4da9067b9 --- /dev/null +++ b/python-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md b/python-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md new file mode 100755 index 000000000..f9f0aae3e --- /dev/null +++ b/python-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `date_time_input` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md b/python-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md new file mode 100755 index 000000000..f087c0b43 --- /dev/null +++ b/python-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md b/python-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md new file mode 100755 index 000000000..5115cb0a0 --- /dev/null +++ b/python-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimal_input` | *Decimal* | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md b/python-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md new file mode 100755 index 000000000..09fecce1e --- /dev/null +++ b/python-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md b/python-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md index d5f3ad048..faa732c3a 100755 --- a/python-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md +++ b/python-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `map_param` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | -| `map_arr_param` | dict[str, list[*str*]] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file +| `map_param` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `map_arr_param` | Dict[str, List[*str*]] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md b/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md index 5a72a1b70..62f309c1a 100755 --- a/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md +++ b/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | dict[str, [Union[str, list[str]]](../../models/operations/deepobjectqueryparamsmapresargs.md)] | :heavy_check_mark: | N/A | [object Object] | +| `args` | Dict[str, [Union[str, List[str]]](../../models/operations/deepobjectqueryparamsmapresargs.md)] | :heavy_check_mark: | N/A | [object Object] | | `url` | *str* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapresargs.md b/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapresargs.md index 372c1c423..8e91a94ad 100755 --- a/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapresargs.md +++ b/python-client-sdk/docs/models/operations/deepobjectqueryparamsmapresargs.md @@ -12,6 +12,6 @@ deepObjectQueryParamsMapResArgs: str = /* values here */ ### ```python -deepObjectQueryParamsMapResArgs: list[str] = /* values here */ +deepObjectQueryParamsMapResArgs: List[str] = /* values here */ ``` diff --git a/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectobjarrparam.md b/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectobjarrparam.md index f247bb50c..c6ba95ffb 100755 --- a/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectobjarrparam.md +++ b/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectobjarrparam.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `arr` | list[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `arr` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectresargs.md b/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectresargs.md index ed238e767..5257eebc3 100755 --- a/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectresargs.md +++ b/python-client-sdk/docs/models/operations/deepobjectqueryparamsobjectresargs.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `obj_arr_param_arr` | list[*str*] | :heavy_check_mark: | N/A | | +| `obj_arr_param_arr` | List[*str*] | :heavy_check_mark: | N/A | | | `obj_param_any` | *str* | :heavy_check_mark: | N/A | any | | `obj_param_bigint_str` | *Optional[str]* | :heavy_minus_sign: | N/A | 9223372036854775808 | | `obj_param_bigint` | *Optional[str]* | :heavy_minus_sign: | N/A | 8821239038968084 | diff --git a/python-client-sdk/docs/models/operations/formqueryparamsarrayrequest.md b/python-client-sdk/docs/models/operations/formqueryparamsarrayrequest.md index eb91a615a..17e39317e 100755 --- a/python-client-sdk/docs/models/operations/formqueryparamsarrayrequest.md +++ b/python-client-sdk/docs/models/operations/formqueryparamsarrayrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `arr_param` | list[*str*] | :heavy_minus_sign: | N/A | -| `arr_param_exploded` | list[*int*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `arr_param` | List[*str*] | :heavy_minus_sign: | N/A | +| `arr_param_exploded` | List[*int*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamsarrayresargs.md b/python-client-sdk/docs/models/operations/formqueryparamsarrayresargs.md index 7d0f185ce..4e57897fb 100755 --- a/python-client-sdk/docs/models/operations/formqueryparamsarrayresargs.md +++ b/python-client-sdk/docs/models/operations/formqueryparamsarrayresargs.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | | `arr_param` | *str* | :heavy_check_mark: | N/A | test,test2 | -| `arr_param_exploded` | list[*str*] | :heavy_check_mark: | N/A | | \ No newline at end of file +| `arr_param_exploded` | List[*str*] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md new file mode 100755 index 000000000..6a46ec279 --- /dev/null +++ b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `encoded_count` | *Optional[str]* | :heavy_minus_sign: | N/A | 11 | +| `encoded_term` | *Optional[str]* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md new file mode 100755 index 000000000..7c7c54990 --- /dev/null +++ b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `item_count` | *Optional[str]* | :heavy_minus_sign: | N/A | 10 | +| `search_term` | *Optional[str]* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md new file mode 100755 index 000000000..62169342e --- /dev/null +++ b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `obj_param_exploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `obj_param` | [Optional[FormQueryParamsCamelObjectObjParam]](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md new file mode 100755 index 000000000..1f53976c7 --- /dev/null +++ b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `args` | [FormQueryParamsCamelObjectResArgs](../../models/operations/formqueryparamscamelobjectresargs.md) | :heavy_check_mark: | N/A | | +| `url` | *str* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md new file mode 100755 index 000000000..6c991e870 --- /dev/null +++ b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `item_count` | *str* | :heavy_check_mark: | N/A | 10 | +| `search_term` | *str* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md new file mode 100755 index 000000000..c4bc36b19 --- /dev/null +++ b/python-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [Optional[FormQueryParamsCamelObjectRes]](../../models/operations/formqueryparamscamelobjectres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamsmaprequest.md b/python-client-sdk/docs/models/operations/formqueryparamsmaprequest.md index ec8224569..31387bb74 100755 --- a/python-client-sdk/docs/models/operations/formqueryparamsmaprequest.md +++ b/python-client-sdk/docs/models/operations/formqueryparamsmaprequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -| `map_param` | dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | -| `map_param_exploded` | dict[str, *int*] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file +| `map_param` | Dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | +| `map_param_exploded` | Dict[str, *int*] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/formqueryparamsmapres.md b/python-client-sdk/docs/models/operations/formqueryparamsmapres.md index 71bd37645..72a2258e8 100755 --- a/python-client-sdk/docs/models/operations/formqueryparamsmapres.md +++ b/python-client-sdk/docs/models/operations/formqueryparamsmapres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | | `url` | *str* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2 | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/headerparamsarrayrequest.md b/python-client-sdk/docs/models/operations/headerparamsarrayrequest.md index 6edb5d6e7..69463cd6a 100755 --- a/python-client-sdk/docs/models/operations/headerparamsarrayrequest.md +++ b/python-client-sdk/docs/models/operations/headerparamsarrayrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `x_header_array` | list[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `x_header_array` | List[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/headerparamsmaprequest.md b/python-client-sdk/docs/models/operations/headerparamsmaprequest.md index b8f0b592b..c8cf97cd6 100755 --- a/python-client-sdk/docs/models/operations/headerparamsmaprequest.md +++ b/python-client-sdk/docs/models/operations/headerparamsmaprequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `x_header_map` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | -| `x_header_map_explode` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file +| `x_header_map` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `x_header_map_explode` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/inlinebodyandparamconflictres.md b/python-client-sdk/docs/models/operations/inlinebodyandparamconflictres.md index 009c64251..8b01e390a 100755 --- a/python-client-sdk/docs/models/operations/inlinebodyandparamconflictres.md +++ b/python-client-sdk/docs/models/operations/inlinebodyandparamconflictres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `json` | [InlineBodyAndParamConflictResJSON](../../models/operations/inlinebodyandparamconflictresjson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/inlinebodyandparamnoconflictres.md b/python-client-sdk/docs/models/operations/inlinebodyandparamnoconflictres.md index 979957567..87fd72412 100755 --- a/python-client-sdk/docs/models/operations/inlinebodyandparamnoconflictres.md +++ b/python-client-sdk/docs/models/operations/inlinebodyandparamnoconflictres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `json` | [InlineBodyAndParamNoConflictResJSON](../../models/operations/inlinebodyandparamnoconflictresjson.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/mixedqueryparamsres.md b/python-client-sdk/docs/models/operations/mixedqueryparamsres.md index 867bfa603..870076194 100755 --- a/python-client-sdk/docs/models/operations/mixedqueryparamsres.md +++ b/python-client-sdk/docs/models/operations/mixedqueryparamsres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `args` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | | `url` | *str* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}&num=1.1&str=test&strOpt=testOptional | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/nullablerequiredpropertypostrequestbody.md b/python-client-sdk/docs/models/operations/nullablerequiredpropertypostrequestbody.md index 9a637fca2..023097c98 100755 --- a/python-client-sdk/docs/models/operations/nullablerequiredpropertypostrequestbody.md +++ b/python-client-sdk/docs/models/operations/nullablerequiredpropertypostrequestbody.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `nullable_optional_int` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `nullable_required_array` | list[*float*] | :heavy_check_mark: | N/A | +| `nullable_required_array` | List[*float*] | :heavy_check_mark: | N/A | | `nullable_required_enum` | [Optional[NullableRequiredPropertyPostRequestBodyNullableRequiredEnum]](../../models/operations/nullablerequiredpropertypostrequestbodynullablerequiredenum.md) | :heavy_check_mark: | N/A | | `nullable_required_int` | *Optional[int]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/paginationcursorbodyres.md b/python-client-sdk/docs/models/operations/paginationcursorbodyres.md index 4d261e5b0..a0ce9251e 100755 --- a/python-client-sdk/docs/models/operations/paginationcursorbodyres.md +++ b/python-client-sdk/docs/models/operations/paginationcursorbodyres.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `num_pages` | *int* | :heavy_check_mark: | N/A | -| `result_array` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `result_array` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/paginationcursorparamsres.md b/python-client-sdk/docs/models/operations/paginationcursorparamsres.md index ba656bce9..86f1ce3b3 100755 --- a/python-client-sdk/docs/models/operations/paginationcursorparamsres.md +++ b/python-client-sdk/docs/models/operations/paginationcursorparamsres.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `num_pages` | *int* | :heavy_check_mark: | N/A | -| `result_array` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `result_array` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetbodyres.md b/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetbodyres.md index f2c928725..82dbce5c7 100755 --- a/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetbodyres.md +++ b/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetbodyres.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `num_pages` | *int* | :heavy_check_mark: | N/A | -| `result_array` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `result_array` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetparamsres.md b/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetparamsres.md index 3947bef56..06a364d87 100755 --- a/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetparamsres.md +++ b/python-client-sdk/docs/models/operations/paginationlimitoffsetoffsetparamsres.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `num_pages` | *int* | :heavy_check_mark: | N/A | -| `result_array` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `result_array` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/paginationlimitoffsetpagebodyres.md b/python-client-sdk/docs/models/operations/paginationlimitoffsetpagebodyres.md index df8176855..36dafad23 100755 --- a/python-client-sdk/docs/models/operations/paginationlimitoffsetpagebodyres.md +++ b/python-client-sdk/docs/models/operations/paginationlimitoffsetpagebodyres.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `num_pages` | *int* | :heavy_check_mark: | N/A | -| `result_array` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `result_array` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/paginationlimitoffsetpageparamsres.md b/python-client-sdk/docs/models/operations/paginationlimitoffsetpageparamsres.md index b1f9186d4..9bdb59c31 100755 --- a/python-client-sdk/docs/models/operations/paginationlimitoffsetpageparamsres.md +++ b/python-client-sdk/docs/models/operations/paginationlimitoffsetpageparamsres.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `num_pages` | *int* | :heavy_check_mark: | N/A | -| `result_array` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `result_array` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md b/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md index e947687ff..c3aed29fe 100755 --- a/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md +++ b/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `arr_param` | list[*str*] | :heavy_minus_sign: | N/A | | -| `arr_param_exploded` | list[*int*] | :heavy_minus_sign: | N/A | | -| `map_param` | dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | +| `arr_param` | List[*str*] | :heavy_minus_sign: | N/A | | +| `arr_param_exploded` | List[*int*] | :heavy_minus_sign: | N/A | | +| `map_param` | Dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | | `obj_param` | [Optional[shared.SimpleObject]](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayresargs.md b/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayresargs.md index f27a4222c..23ee0eb5d 100755 --- a/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayresargs.md +++ b/python-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayresargs.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | | `arr_param` | *str* | :heavy_check_mark: | N/A | test\|test2 | -| `arr_param_exploded` | list[*str*] | :heavy_check_mark: | N/A | | \ No newline at end of file +| `arr_param_exploded` | List[*str*] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarraycamelcaseresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarraycamelcaseresponse.md index 8d3469499..60a92a874 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarraycamelcaseresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarraycamelcaseresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `simple_object_camel_cases` | list[[shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | OK | \ No newline at end of file +| `simple_object_camel_cases` | List[[shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarraycamelcaseresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarraycamelcaseresponse.md index edbbe9931..87fb13bf7 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarraycamelcaseresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarraycamelcaseresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `arrs` | list[list[[shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `arrs` | List[List[[shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitiveresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitiveresponse.md index 439c12637..3b2fb2f17 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitiveresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitiveresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `arrs` | list[list[*str*]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `arrs` | List[List[*str*]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayresponse.md index ccfd917f4..29e0d9ba5 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofarrayresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `arrs` | list[list[[shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `arrs` | List[List[[shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapcamelcaseresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapcamelcaseresponse.md index 36e65f362..c0a9cbe62 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapcamelcaseresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapcamelcaseresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `maps` | list[dict[str, [shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `maps` | List[Dict[str, [shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapresponse.md index 1336cb064..a4e8eb522 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofmapresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `maps` | list[dict[str, [shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `maps` | List[Dict[str, [shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofprimitiveresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofprimitiveresponse.md index b134acf80..32cc7defc 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofprimitiveresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayofprimitiveresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `strings` | list[*str*] | :heavy_minus_sign: | OK | \ No newline at end of file +| `strings` | List[*str*] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayresponse.md index f32864b98..fac3354e3 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonarrayresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `simple_objects` | list[[shared.SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | OK | \ No newline at end of file +| `simple_objects` | List[[shared.SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapcamelcaseresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapcamelcaseresponse.md index df754cc6b..c2901056a 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapcamelcaseresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapcamelcaseresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, [shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, [shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarraycamelcaseresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarraycamelcaseresponse.md index 77bb9dcd1..93a3ec8b1 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarraycamelcaseresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarraycamelcaseresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, list[[shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, List[[shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarrayresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarrayresponse.md index 85bc1ae8b..38dff2bf5 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarrayresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofarrayresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, list[[shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, List[[shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapcamelcaseresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapcamelcaseresponse.md index eb09597fa..31724ca95 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapcamelcaseresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapcamelcaseresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, dict[str, [shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, Dict[str, [shared.SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapofprimitiveresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapofprimitiveresponse.md index 59d93d835..e1b064233 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapofprimitiveresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapofprimitiveresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, dict[str, *str*]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, Dict[str, *str*]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapresponse.md index e37e5cbca..4f15535c5 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofmapresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, dict[str, [shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, Dict[str, [shared.SimpleObject](../../models/shared/simpleobject.md)]] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofprimitiveresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofprimitiveresponse.md index dc490195f..e5642c8c0 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofprimitiveresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapofprimitiveresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, *str*] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, *str*] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapresponse.md b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapresponse.md index 32e49b113..291db008c 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapresponse.md +++ b/python-client-sdk/docs/models/operations/requestbodypostapplicationjsonmapresponse.md @@ -8,4 +8,4 @@ | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `res` | dict[str, [shared.SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | OK | \ No newline at end of file +| `res` | Dict[str, [shared.SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostformmapprimitiveres.md b/python-client-sdk/docs/models/operations/requestbodypostformmapprimitiveres.md index a274f28e3..91fb9d15f 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostformmapprimitiveres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostformmapprimitiveres.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `form` | dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `form` | Dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md index 92f478156..aa3a51274 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md +++ b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraybigint200applicationjson.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `data` | *str* | :heavy_check_mark: | N/A | -| `json` | list[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `json` | List[*int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydate200applicationjson.md b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydate200applicationjson.md index 06682d950..7aa197def 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydate200applicationjson.md +++ b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydate200applicationjson.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | `data` | *str* | :heavy_check_mark: | N/A | -| `json` | list[[datetime](https://docs.python.org/3/library/datetime.html#datetime-objects)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `json` | List[[datetime](https://docs.python.org/3/library/datetime.html#datetime-objects)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydecimalstr200applicationjson.md b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydecimalstr200applicationjson.md index 78308feb3..d995fa8d3 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydecimalstr200applicationjson.md +++ b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesarraydecimalstr200applicationjson.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `data` | *str* | :heavy_check_mark: | N/A | -| `json` | list[*Decimal*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `json` | List[*Decimal*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapbigintstr200applicationjson.md b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapbigintstr200applicationjson.md index 345c5b24b..9496bff78 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapbigintstr200applicationjson.md +++ b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapbigintstr200applicationjson.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `data` | *str* | :heavy_check_mark: | N/A | -| `json` | dict[str, *int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `json` | Dict[str, *int*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdatetime200applicationjson.md b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdatetime200applicationjson.md index a1d954825..bdc4f1556 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdatetime200applicationjson.md +++ b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdatetime200applicationjson.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `data` | *str* | :heavy_check_mark: | N/A | -| `json` | dict[str, [date](https://docs.python.org/3/library/datetime.html#date-objects)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `json` | Dict[str, [date](https://docs.python.org/3/library/datetime.html#date-objects)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdecimal200applicationjson.md b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdecimal200applicationjson.md index b99fb1f54..d7ffa1779 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdecimal200applicationjson.md +++ b/python-client-sdk/docs/models/operations/requestbodypostjsondatatypesmapdecimal200applicationjson.md @@ -8,4 +8,4 @@ OK | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | | `data` | *str* | :heavy_check_mark: | N/A | -| `json` | dict[str, *Decimal*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `json` | Dict[str, *Decimal*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypesinlinefilteredres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypesinlinefilteredres.md index 626cf6fa4..755598ec5 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypesinlinefilteredres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypesinlinefilteredres.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitformres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitformres.md index af25cd806..9ce210159 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitformres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitformres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `form` | dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `form` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitjsonres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitjsonres.md index 7d57ad957..75f76e486 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitjsonres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitjsonres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `form` | dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `form` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitmultipartres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitmultipartres.md index 23989c88e..e553d9a72 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitmultipartres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitmultipartres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `form` | dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `form` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamformres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamformres.md index c6c225f11..b85468a4c 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamformres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamformres.md @@ -7,6 +7,6 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `args` | dict[str, *str*] | :heavy_minus_sign: | N/A | -| `form` | dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `args` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `form` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamjsonres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamjsonres.md index 39f673d10..38ce5bb41 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamjsonres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparamjsonres.md @@ -7,6 +7,6 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `args` | dict[str, *str*] | :heavy_minus_sign: | N/A | -| `form` | dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `args` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `form` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparammultipartres.md b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparammultipartres.md index 078c3a282..f3f93ef61 100755 --- a/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparammultipartres.md +++ b/python-client-sdk/docs/models/operations/requestbodypostmultiplecontenttypessplitparammultipartres.md @@ -7,6 +7,6 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `args` | dict[str, *str*] | :heavy_minus_sign: | N/A | -| `form` | dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `json` | dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `args` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `form` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodyputmultipartdifferentfilenameres.md b/python-client-sdk/docs/models/operations/requestbodyputmultipartdifferentfilenameres.md index 2aca55bc5..78c87fcee 100755 --- a/python-client-sdk/docs/models/operations/requestbodyputmultipartdifferentfilenameres.md +++ b/python-client-sdk/docs/models/operations/requestbodyputmultipartdifferentfilenameres.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `files` | dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `files` | Dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/requestbodyputmultipartfileres.md b/python-client-sdk/docs/models/operations/requestbodyputmultipartfileres.md index a87aa46ec..679bfc6e7 100755 --- a/python-client-sdk/docs/models/operations/requestbodyputmultipartfileres.md +++ b/python-client-sdk/docs/models/operations/requestbodyputmultipartfileres.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `files` | dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `files` | Dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md index fed881c22..505455a97 100755 --- a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md +++ b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200applicationjson.md @@ -5,6 +5,6 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `json` | dict[str, *int*] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `json` | [shared.ObjWithComplexNumbersAdditionalProperties](../../models/shared/objwithcomplexnumbersadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md index 9d13f626d..0790fee35 100755 --- a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md +++ b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md @@ -5,6 +5,6 @@ OK ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `json` | dict[str, [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects)] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `json` | [shared.ObjWithDateAdditionalProperties](../../models/shared/objwithdateadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md new file mode 100755 index 000000000..7c220c8bb --- /dev/null +++ b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `json` | [shared.ObjWithObjAdditionalProperties](../../models/shared/objwithobjadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md new file mode 100755 index 000000000..564b25504 --- /dev/null +++ b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `response_body_additional_properties_object_post_200_application_json_object` | [Optional[ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON]](../../models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md index 6a46aced7..eb0b15cdb 100755 --- a/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md +++ b/python-client-sdk/docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md @@ -5,6 +5,6 @@ OK ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `json` | dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `json` | [shared.ObjWithStringAdditionalProperties](../../models/shared/objwithstringadditionalproperties.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/responsebodyemptywithheadersresponse.md b/python-client-sdk/docs/models/operations/responsebodyemptywithheadersresponse.md index 34885b5b7..086a0c3c4 100755 --- a/python-client-sdk/docs/models/operations/responsebodyemptywithheadersresponse.md +++ b/python-client-sdk/docs/models/operations/responsebodyemptywithheadersresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `headers` | dict[str, list[*str*]] | :heavy_minus_sign: | N/A | +| `headers` | Dict[str, List[*str*]] | :heavy_minus_sign: | N/A | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/selectglobalserverresponse.md b/python-client-sdk/docs/models/operations/selectglobalserverresponse.md index cd745c693..ff547a836 100755 --- a/python-client-sdk/docs/models/operations/selectglobalserverresponse.md +++ b/python-client-sdk/docs/models/operations/selectglobalserverresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `headers` | dict[str, list[*str*]] | :heavy_minus_sign: | N/A | +| `headers` | Dict[str, List[*str*]] | :heavy_minus_sign: | N/A | | `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/simplepathparameterarraysrequest.md b/python-client-sdk/docs/models/operations/simplepathparameterarraysrequest.md index 8ffaa0057..648692817 100755 --- a/python-client-sdk/docs/models/operations/simplepathparameterarraysrequest.md +++ b/python-client-sdk/docs/models/operations/simplepathparameterarraysrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `arr_param` | list[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `arr_param` | List[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/simplepathparametermapsrequest.md b/python-client-sdk/docs/models/operations/simplepathparametermapsrequest.md index 57922c58a..49f0f79d0 100755 --- a/python-client-sdk/docs/models/operations/simplepathparametermapsrequest.md +++ b/python-client-sdk/docs/models/operations/simplepathparametermapsrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -| `map_param` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | -| `map_param_exploded` | dict[str, *int*] | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file +| `map_param` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `map_param_exploded` | Dict[str, *int*] | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/telemetryspeakeasyuseragentgetres.md b/python-client-sdk/docs/models/operations/telemetryspeakeasyuseragentgetres.md index de99a2b95..619f29240 100755 --- a/python-client-sdk/docs/models/operations/telemetryspeakeasyuseragentgetres.md +++ b/python-client-sdk/docs/models/operations/telemetryspeakeasyuseragentgetres.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `headers` | dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `headers` | Dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/telemetryuseragentgetres.md b/python-client-sdk/docs/models/operations/telemetryuseragentgetres.md index e1cc76c75..aea0649fc 100755 --- a/python-client-sdk/docs/models/operations/telemetryuseragentgetres.md +++ b/python-client-sdk/docs/models/operations/telemetryuseragentgetres.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `headers` | dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file +| `headers` | Dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/uniondatenullres.md b/python-client-sdk/docs/models/operations/uniondatenullres.md new file mode 100755 index 000000000..2ca52f2dd --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatenullres.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `json` | [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/uniondatenullresponse.md b/python-client-sdk/docs/models/operations/uniondatenullresponse.md new file mode 100755 index 000000000..0defd5cd5 --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [Optional[UnionDateNullRes]](../../models/operations/uniondatenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/uniondatetimenullres.md b/python-client-sdk/docs/models/operations/uniondatetimenullres.md new file mode 100755 index 000000000..b3be16474 --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatetimenullres.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `json` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/uniondatetimenullresponse.md b/python-client-sdk/docs/models/operations/uniondatetimenullresponse.md new file mode 100755 index 000000000..09cebf32b --- /dev/null +++ b/python-client-sdk/docs/models/operations/uniondatetimenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [Optional[UnionDateTimeNullRes]](../../models/operations/uniondatetimenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/python-client-sdk/docs/models/operations/usageexamplepostrequest.md b/python-client-sdk/docs/models/operations/usageexamplepostrequest.md index 0ea312220..a2a903f36 100755 --- a/python-client-sdk/docs/models/operations/usageexamplepostrequest.md +++ b/python-client-sdk/docs/models/operations/usageexamplepostrequest.md @@ -12,6 +12,7 @@ | `bigint_str_parameter_optional` | *Optional[int]* | :heavy_minus_sign: | An bigint parameter | | | `bool_parameter` | *bool* | :heavy_check_mark: | A boolean parameter | | | `date_parameter` | [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects) | :heavy_check_mark: | A date parameter | | +| `date_time_default_parameter` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | A date time parameter with a default value | | | `date_time_parameter` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | A date time parameter | | | `decimal_parameter` | *Decimal* | :heavy_check_mark: | A decimal parameter | | | `decimal_parameter_optional` | *Optional[Decimal]* | :heavy_minus_sign: | A decimal parameter | | diff --git a/python-client-sdk/docs/models/shared/arraycircularreferenceobject.md b/python-client-sdk/docs/models/shared/arraycircularreferenceobject.md index fde1f1932..0aa6a29f2 100755 --- a/python-client-sdk/docs/models/shared/arraycircularreferenceobject.md +++ b/python-client-sdk/docs/models/shared/arraycircularreferenceobject.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `circular` | list[[ArrayCircularReferenceObject](../../models/shared/arraycircularreferenceobject.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `circular` | List[[ArrayCircularReferenceObject](../../models/shared/arraycircularreferenceobject.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/arrobjvalue.md b/python-client-sdk/docs/models/shared/arrobjvalue.md index b6338b264..a07a07971 100755 --- a/python-client-sdk/docs/models/shared/arrobjvalue.md +++ b/python-client-sdk/docs/models/shared/arrobjvalue.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `json` | list[[SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | N/A | +| `json` | List[[SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | N/A | | `required` | *Optional[Any]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/arrobjvaluecamelcase.md b/python-client-sdk/docs/models/shared/arrobjvaluecamelcase.md index 10828f886..d5ab4d0aa 100755 --- a/python-client-sdk/docs/models/shared/arrobjvaluecamelcase.md +++ b/python-client-sdk/docs/models/shared/arrobjvaluecamelcase.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `json` | list[[SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | N/A | +| `json` | List[[SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | N/A | | `required` | *Optional[Any]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/authservicerequestbody.md b/python-client-sdk/docs/models/shared/authservicerequestbody.md index 40576a978..4670b30a2 100755 --- a/python-client-sdk/docs/models/shared/authservicerequestbody.md +++ b/python-client-sdk/docs/models/shared/authservicerequestbody.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | `basic_auth` | [Optional[AuthServiceRequestBodyBasicAuth]](../../models/shared/authservicerequestbodybasicauth.md) | :heavy_minus_sign: | N/A | -| `header_auth` | list[[AuthServiceRequestBodyHeaderAuth](../../models/shared/authservicerequestbodyheaderauth.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `header_auth` | List[[AuthServiceRequestBodyHeaderAuth](../../models/shared/authservicerequestbodyheaderauth.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/deepobject.md b/python-client-sdk/docs/models/shared/deepobject.md index 457cd8e0e..28fb980a0 100755 --- a/python-client-sdk/docs/models/shared/deepobject.md +++ b/python-client-sdk/docs/models/shared/deepobject.md @@ -6,10 +6,10 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `any` | [Union[SimpleObject, str]](../../models/shared/deepobjectany.md) | :heavy_check_mark: | N/A | anyOf[0] | -| `arr` | list[[SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | ...,... | +| `arr` | List[[SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | ...,... | | `bool` | *bool* | :heavy_check_mark: | N/A | true | | `int` | *int* | :heavy_check_mark: | N/A | 1 | -| `map` | dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | [object Object] | +| `map` | Dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | [object Object] | | `num` | *float* | :heavy_check_mark: | N/A | 1.1 | | `obj` | [SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | | | `str_` | *str* | :heavy_check_mark: | N/A | test | diff --git a/python-client-sdk/docs/models/shared/deepobjectcamelcase.md b/python-client-sdk/docs/models/shared/deepobjectcamelcase.md index a2c56dfb4..70a796a94 100755 --- a/python-client-sdk/docs/models/shared/deepobjectcamelcase.md +++ b/python-client-sdk/docs/models/shared/deepobjectcamelcase.md @@ -6,10 +6,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `any_val` | [Union[SimpleObjectCamelCase, str]](../../models/shared/deepobjectcamelcaseanyval.md) | :heavy_check_mark: | N/A | -| `arr_val` | list[[SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_check_mark: | N/A | +| `arr_val` | List[[SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_check_mark: | N/A | | `bool_val` | *bool* | :heavy_check_mark: | N/A | | `int_val` | *int* | :heavy_check_mark: | N/A | -| `map_val` | dict[str, [SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_check_mark: | N/A | +| `map_val` | Dict[str, [SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_check_mark: | N/A | | `num_val` | *float* | :heavy_check_mark: | N/A | | `obj_val` | [SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | | `str_val` | *str* | :heavy_check_mark: | N/A | diff --git a/python-client-sdk/docs/models/shared/deepobjectwithtype.md b/python-client-sdk/docs/models/shared/deepobjectwithtype.md index 410fd34d8..d2f80061d 100755 --- a/python-client-sdk/docs/models/shared/deepobjectwithtype.md +++ b/python-client-sdk/docs/models/shared/deepobjectwithtype.md @@ -6,10 +6,10 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `any` | [Union[SimpleObject, str]](../../models/shared/deepobjectwithtypeany.md) | :heavy_check_mark: | N/A | anyOf[0] | -| `arr` | list[[SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | ...,... | +| `arr` | List[[SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | ...,... | | `bool` | *bool* | :heavy_check_mark: | N/A | true | | `int` | *int* | :heavy_check_mark: | N/A | 1 | -| `map` | dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | [object Object] | +| `map` | Dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | [object Object] | | `num` | *float* | :heavy_check_mark: | N/A | 1.1 | | `obj` | [SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | | | `str_` | *str* | :heavy_check_mark: | N/A | test | diff --git a/python-client-sdk/docs/models/shared/exampleresource.md b/python-client-sdk/docs/models/shared/exampleresource.md index 35e3b98f6..1261901c0 100755 --- a/python-client-sdk/docs/models/shared/exampleresource.md +++ b/python-client-sdk/docs/models/shared/exampleresource.md @@ -5,15 +5,15 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `array_of_number` | list[*float*] | :heavy_minus_sign: | N/A | -| `array_of_string` | list[*str*] | :heavy_minus_sign: | N/A | -| `chocolates` | list[[ExampleResourceChocolates](../../models/shared/exampleresourcechocolates.md)] | :heavy_check_mark: | N/A | +| `array_of_number` | List[*float*] | :heavy_minus_sign: | N/A | +| `array_of_string` | List[*str*] | :heavy_minus_sign: | N/A | +| `chocolates` | List[[ExampleResourceChocolates](../../models/shared/exampleresourcechocolates.md)] | :heavy_check_mark: | N/A | | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | | `enum_number` | [Optional[ExampleResourceEnumNumber]](../../models/shared/exampleresourceenumnumber.md) | :heavy_minus_sign: | N/A | | `enum_str` | [Optional[ExampleResourceEnumStr]](../../models/shared/exampleresourceenumstr.md) | :heavy_minus_sign: | N/A | | `id` | *str* | :heavy_check_mark: | N/A | -| `map_of_integer` | dict[str, *int*] | :heavy_minus_sign: | N/A | -| `map_of_string` | dict[str, *str*] | :heavy_minus_sign: | N/A | +| `map_of_integer` | Dict[str, *int*] | :heavy_minus_sign: | N/A | +| `map_of_string` | Dict[str, *str*] | :heavy_minus_sign: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | | `vehicle` | [Union[ExampleBoat, ExampleCar]](../../models/shared/examplevehicle.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshow.md b/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshow.md index 7f12e4904..0709f1fd7 100755 --- a/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshow.md +++ b/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshow.md @@ -7,5 +7,5 @@ | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `author` | *str* | :heavy_check_mark: | N/A | | `date_` | *str* | :heavy_check_mark: | N/A | -| `slides` | list[[HTTPBinSimpleJSONObjectSlideshowSlides](../../models/shared/httpbinsimplejsonobjectslideshowslides.md)] | :heavy_check_mark: | N/A | +| `slides` | List[[HTTPBinSimpleJSONObjectSlideshowSlides](../../models/shared/httpbinsimplejsonobjectslideshowslides.md)] | :heavy_check_mark: | N/A | | `title` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshowslides.md b/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshowslides.md index 21d7390d3..b7996f6ca 100755 --- a/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshowslides.md +++ b/python-client-sdk/docs/models/shared/httpbinsimplejsonobjectslideshowslides.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `items` | list[*str*] | :heavy_minus_sign: | N/A | +| `items` | List[*str*] | :heavy_minus_sign: | N/A | | `title` | *str* | :heavy_check_mark: | N/A | | `type` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/mapobjvalue.md b/python-client-sdk/docs/models/shared/mapobjvalue.md index ec3d68f95..a0bab8bf1 100755 --- a/python-client-sdk/docs/models/shared/mapobjvalue.md +++ b/python-client-sdk/docs/models/shared/mapobjvalue.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `json` | dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | N/A | | `required` | *Optional[Any]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/mapobjvaluecamelcase.md b/python-client-sdk/docs/models/shared/mapobjvaluecamelcase.md index f6471286f..5cce4a6ca 100755 --- a/python-client-sdk/docs/models/shared/mapobjvaluecamelcase.md +++ b/python-client-sdk/docs/models/shared/mapobjvaluecamelcase.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `json` | dict[str, [SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | N/A | +| `json` | Dict[str, [SimpleObjectCamelCase](../../models/shared/simpleobjectcamelcase.md)] | :heavy_minus_sign: | N/A | | `required` | *Optional[Any]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/objwithcomplexnumbersadditionalproperties.md b/python-client-sdk/docs/models/shared/objwithcomplexnumbersadditionalproperties.md new file mode 100755 index 000000000..7eea653e1 --- /dev/null +++ b/python-client-sdk/docs/models/shared/objwithcomplexnumbersadditionalproperties.md @@ -0,0 +1,9 @@ +# ObjWithComplexNumbersAdditionalProperties + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `additional_properties` | Dict[str, *int*] | :heavy_minus_sign: | N/A | +| `normal_field` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/objwithdateadditionalproperties.md b/python-client-sdk/docs/models/shared/objwithdateadditionalproperties.md new file mode 100755 index 000000000..2854db706 --- /dev/null +++ b/python-client-sdk/docs/models/shared/objwithdateadditionalproperties.md @@ -0,0 +1,9 @@ +# ObjWithDateAdditionalProperties + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `additional_properties` | Dict[str, [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects)] | :heavy_minus_sign: | N/A | +| `normal_field` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/objwithobjadditionalproperties.md b/python-client-sdk/docs/models/shared/objwithobjadditionalproperties.md new file mode 100755 index 000000000..a35d85854 --- /dev/null +++ b/python-client-sdk/docs/models/shared/objwithobjadditionalproperties.md @@ -0,0 +1,10 @@ +# ObjWithObjAdditionalProperties + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `additional_properties` | List[*int*] | :heavy_check_mark: | N/A | +| `additional_properties_t` | Dict[str, [SimpleObject](../../models/shared/simpleobject.md)] | :heavy_minus_sign: | N/A | +| `datetime_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/objwithstringadditionalproperties.md b/python-client-sdk/docs/models/shared/objwithstringadditionalproperties.md new file mode 100755 index 000000000..24aec6a67 --- /dev/null +++ b/python-client-sdk/docs/models/shared/objwithstringadditionalproperties.md @@ -0,0 +1,9 @@ +# ObjWithStringAdditionalProperties + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `additional_properties` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `normal_field` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/models/shared/validcircularreferenceobject.md b/python-client-sdk/docs/models/shared/validcircularreferenceobject.md index 0748ed0c5..36b692b69 100755 --- a/python-client-sdk/docs/models/shared/validcircularreferenceobject.md +++ b/python-client-sdk/docs/models/shared/validcircularreferenceobject.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `circular` | list[[ValidCircularReferenceObject](../../models/shared/validcircularreferenceobject.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `circular` | List[[ValidCircularReferenceObject](../../models/shared/validcircularreferenceobject.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/python-client-sdk/docs/sdks/auth/README.md b/python-client-sdk/docs/sdks/auth/README.md index ab238bba4..6630f4dc0 100755 --- a/python-client-sdk/docs/sdks/auth/README.md +++ b/python-client-sdk/docs/sdks/auth/README.md @@ -98,7 +98,7 @@ s = sdk.SDK( res = s.auth.basic_auth(operations.BasicAuthSecurity( password="YOUR_PASSWORD", username="YOUR_USERNAME", -), passwd='minus', user='Architect') +), passwd='string', user='string') if res.user is not None: # handle response diff --git a/python-client-sdk/docs/sdks/authnew/README.md b/python-client-sdk/docs/sdks/authnew/README.md index 6f0900737..4ec7aee93 100755 --- a/python-client-sdk/docs/sdks/authnew/README.md +++ b/python-client-sdk/docs/sdks/authnew/README.md @@ -42,8 +42,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='Highway', - header_name='deliver payment', + expected_value='string', + header_name='string', ), ], ) @@ -91,8 +91,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='idolized', - header_name='female Virginia primary', + expected_value='string', + header_name='string', ), ], ) @@ -137,8 +137,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='integrate', - header_name='bandwidth uselessly', + expected_value='string', + header_name='string', ), ], ) @@ -187,8 +187,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='thong Scandium worse', - header_name='Durham Tesla', + expected_value='string', + header_name='string', ), ], ) @@ -236,8 +236,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='services indigo', - header_name='Wooden Jewelery', + expected_value='string', + header_name='string', ), ], ) @@ -289,8 +289,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='Gourde', - header_name='Van Granite East', + expected_value='string', + header_name='string', ), ], ) @@ -341,8 +341,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='compressing', - header_name='sievert Diesel', + expected_value='string', + header_name='string', ), ], ) @@ -393,8 +393,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='payment Usability sievert', - header_name='yum Northwest metrics', + expected_value='string', + header_name='string', ), ], ) @@ -442,8 +442,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='microchip Southeast', - header_name='Future Corners Electronic', + expected_value='string', + header_name='string', ), ], ) @@ -492,8 +492,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='Sunrise', - header_name='male', + expected_value='string', + header_name='string', ), ], ) @@ -541,8 +541,8 @@ req = shared.AuthServiceRequestBody( ), header_auth=[ shared.AuthServiceRequestBodyHeaderAuth( - expected_value='bypassing furthermore', - header_name='bypass brilliant tesla', + expected_value='string', + header_name='string', ), ], ) diff --git a/python-client-sdk/docs/sdks/documentation/README.md b/python-client-sdk/docs/sdks/documentation/README.md index 48caf7412..691b85539 100755 --- a/python-client-sdk/docs/sdks/documentation/README.md +++ b/python-client-sdk/docs/sdks/documentation/README.md @@ -28,7 +28,7 @@ s = sdk.SDK( ) -res = s.documentation.get_documentation_per_language(language='hack') +res = s.documentation.get_documentation_per_language(language='string') if res.status_code == 200: # handle response diff --git a/python-client-sdk/docs/sdks/flattening/README.md b/python-client-sdk/docs/sdks/flattening/README.md index 35b92e2a0..a7b9cee8a 100755 --- a/python-client-sdk/docs/sdks/flattening/README.md +++ b/python-client-sdk/docs/sdks/flattening/README.md @@ -51,7 +51,7 @@ res = s.flattening.component_body_and_param_conflict(simple_object=shared.Simple num=1.1, str_='test', str_opt='testOptional', -), str_='Minivan') +), str_='string') if res.res is not None: # handle response @@ -90,7 +90,7 @@ s = sdk.SDK( ) -res = s.flattening.component_body_and_param_no_conflict(param_str='ick', simple_object=shared.SimpleObject( +res = s.flattening.component_body_and_param_no_conflict(param_str='string', simple_object=shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -146,7 +146,7 @@ s = sdk.SDK( ) -res = s.flattening.conflicting_params(str_path_parameter='kilogram', str_query_parameter='Cloned') +res = s.flattening.conflicting_params(str_path_parameter='string', str_query_parameter='string') if res.res is not None: # handle response @@ -184,8 +184,8 @@ s = sdk.SDK( res = s.flattening.inline_body_and_param_conflict(request_body=operations.InlineBodyAndParamConflictRequestBody( - str_='Progressive', -), str_='until') + str_='string', +), str_='string') if res.res is not None: # handle response @@ -223,8 +223,8 @@ s = sdk.SDK( res = s.flattening.inline_body_and_param_no_conflict(request_body=operations.InlineBodyAndParamNoConflictRequestBody( - body_str='dynamic expedite', -), param_str='Forward') + body_str='string', +), param_str='string') if res.res is not None: # handle response diff --git a/python-client-sdk/docs/sdks/generation/README.md b/python-client-sdk/docs/sdks/generation/README.md index d5f2fdf41..612accab7 100755 --- a/python-client-sdk/docs/sdks/generation/README.md +++ b/python-client-sdk/docs/sdks/generation/README.md @@ -10,6 +10,9 @@ Endpoints for purely testing valid generation behavior. * [anchor_types_get](#anchor_types_get) * [array_circular_reference_get](#array_circular_reference_get) * [circular_reference_get](#circular_reference_get) +* [date_param_with_default](#date_param_with_default) +* [date_time_param_with_default](#date_time_param_with_default) +* [decimal_param_with_default](#decimal_param_with_default) * [deprecated_field_in_schema_post](#deprecated_field_in_schema_post) * [deprecated_object_in_schema_get](#deprecated_object_in_schema_get) * [~~deprecated_operation_no_comments_get~~](#deprecated_operation_no_comments_get) - :warning: **Deprecated** @@ -115,6 +118,117 @@ if res.valid_circular_reference_object is not None: **[operations.CircularReferenceGetResponse](../../models/operations/circularreferencegetresponse.md)** +## date_param_with_default + +### Example Usage + +```python +import sdk +import dateutil.parser +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + + +res = s.generation.date_param_with_default(date_input=dateutil.parser.parse('2021-11-30').date()) + +if res.status_code == 200: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `date_input` | [datetime](https://docs.python.org/3/library/datetime.html#datetime-objects) | :heavy_check_mark: | A date parameter with a default value | + + +### Response + +**[operations.DateParamWithDefaultResponse](../../models/operations/dateparamwithdefaultresponse.md)** + + +## date_time_param_with_default + +### Example Usage + +```python +import sdk +import dateutil.parser +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + + +res = s.generation.date_time_param_with_default(date_time_input=dateutil.parser.isoparse('2023-02-09T21:53:21.077Z')) + +if res.status_code == 200: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `date_time_input` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | A date time parameter with a default value | + + +### Response + +**[operations.DateTimeParamWithDefaultResponse](../../models/operations/datetimeparamwithdefaultresponse.md)** + + +## decimal_param_with_default + +### Example Usage + +```python +import sdk +from decimal import Decimal +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + + +res = s.generation.decimal_param_with_default(decimal_input=Decimal('4060.06')) + +if res.status_code == 200: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimal_input` | *Decimal* | :heavy_check_mark: | A decimal parameter with a default value | + + +### Response + +**[operations.DecimalParamWithDefaultResponse](../../models/operations/decimalparamwithdefaultresponse.md)** + + ## deprecated_field_in_schema_post ### Example Usage @@ -201,7 +315,7 @@ s = sdk.SDK( ) -res = s.generation.deprecated_operation_no_comments_get(deprecated_parameter='Account') +res = s.generation.deprecated_operation_no_comments_get(deprecated_parameter='string') if res.status_code == 200: # handle response @@ -241,7 +355,7 @@ s = sdk.SDK( ) -res = s.generation.deprecated_operation_with_comments_get(deprecated_parameter='Account', new_parameter='actuating') +res = s.generation.deprecated_operation_with_comments_get(deprecated_parameter='string', new_parameter='string') if res.status_code == 200: # handle response @@ -404,7 +518,7 @@ s = sdk.SDK( ) -res = s.generation.ignores_post(request_body=operations.IgnoresPostApplicationJSON(), test_param='Bike') +res = s.generation.ignores_post(request_body=operations.IgnoresPostApplicationJSON(), test_param='string') if res.http_bin_simple_json_object is not None: # handle response @@ -543,7 +657,7 @@ s = sdk.SDK( res = s.generation.typed_parameter_generation_get(bigint=879275, date_=dateutil.parser.parse('2023-11-18').date(), decimal=Decimal('3346.96'), obj=operations.TypedParameterGenerationGetObj( bool=False, num=4778.06, - str_='Progressive Riyal male', + str_='string', )) if res.status_code == 200: @@ -615,18 +729,19 @@ req = operations.UsageExamplePostRequest( bigint_str_parameter=446729, bool_parameter=False, date_parameter=dateutil.parser.parse('2023-06-11').date(), - date_time_parameter=dateutil.parser.isoparse('2022-07-22T13:16:48.221Z'), - decimal_parameter=Decimal('2679.33'), - decimal_str_parameter=Decimal('5223.72'), - double_parameter=2911.37, - enum_parameter=operations.UsageExamplePostEnumParameter.VALUE3, + date_time_default_parameter=dateutil.parser.isoparse('2022-07-22T13:16:48.221Z'), + date_time_parameter=dateutil.parser.isoparse('2021-10-21T09:16:58.799Z'), + decimal_parameter=Decimal('5223.72'), + decimal_str_parameter=Decimal('2911.37'), + double_parameter=6946.59, + enum_parameter=operations.UsageExamplePostEnumParameter.VALUE1, falsey_number_parameter=0, - float32_parameter=2286.22, - float_parameter=1029.75, - int64_parameter=566999, - int_parameter=195232, + float32_parameter=1029.75, + float_parameter=5669.99, + int64_parameter=195232, + int_parameter=569663, opt_enum_parameter=operations.UsageExamplePostOptEnumParameter.VALUE3, - str_parameter='example 2', + str_parameter='example 1', ) res = s.generation.usage_example_post(req, operations.UsageExamplePostSecurity( diff --git a/python-client-sdk/docs/sdks/globals/README.md b/python-client-sdk/docs/sdks/globals/README.md index c91d88926..f711dc065 100755 --- a/python-client-sdk/docs/sdks/globals/README.md +++ b/python-client-sdk/docs/sdks/globals/README.md @@ -63,7 +63,7 @@ s = sdk.SDK( ) -res = s.globals.globals_query_parameter_get(global_query_param='Tricycle') +res = s.globals.globals_query_parameter_get(global_query_param='string') if res.res is not None: # handle response diff --git a/python-client-sdk/docs/sdks/parameters/README.md b/python-client-sdk/docs/sdks/parameters/README.md index e31592a84..bb4f0aba0 100755 --- a/python-client-sdk/docs/sdks/parameters/README.md +++ b/python-client-sdk/docs/sdks/parameters/README.md @@ -11,6 +11,7 @@ Endpoints for testing parameters. * [deep_object_query_params_object](#deep_object_query_params_object) * [duplicate_param](#duplicate_param) * [form_query_params_array](#form_query_params_array) +* [form_query_params_camel_object](#form_query_params_camel_object) * [form_query_params_map](#form_query_params_map) * [form_query_params_object](#form_query_params_object) * [form_query_params_primitive](#form_query_params_primitive) @@ -48,8 +49,8 @@ s = sdk.SDK( res = s.parameters.deep_object_query_params_map(map_param={ - "test2": 'value2', "test": 'value', + "test2": 'value2', }, map_arr_param={ "test": [ 'test', @@ -70,8 +71,8 @@ if res.res is not None: | Parameter | Type | Required | Description | Example | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `map_param` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | -| `map_arr_param` | dict[str, list[*str*]] | :heavy_minus_sign: | N/A | [object Object] | +| `map_param` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `map_arr_param` | Dict[str, List[*str*]] | :heavy_minus_sign: | N/A | [object Object] | ### Response @@ -159,7 +160,7 @@ s = sdk.SDK( ) -res = s.parameters.duplicate_param(duplicate_param_request='Parks') +res = s.parameters.duplicate_param(duplicate_param_request='string') if res.duplicate_param_response is not None: # handle response @@ -212,8 +213,8 @@ if res.res is not None: | Parameter | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `arr_param` | list[*str*] | :heavy_minus_sign: | N/A | -| `arr_param_exploded` | list[*int*] | :heavy_minus_sign: | N/A | +| `arr_param` | List[*str*] | :heavy_minus_sign: | N/A | +| `arr_param_exploded` | List[*int*] | :heavy_minus_sign: | N/A | ### Response @@ -221,6 +222,49 @@ if res.res is not None: **[operations.FormQueryParamsArrayResponse](../../models/operations/formqueryparamsarrayresponse.md)** +## form_query_params_camel_object + +### Example Usage + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + + +res = s.parameters.form_query_params_camel_object(obj_param_exploded=operations.FormQueryParamsCamelObjectObjParamExploded( + item_count='10', + search_term='foo', +), obj_param=operations.FormQueryParamsCamelObjectObjParam( + encoded_count='11', + encoded_term='bar', +)) + +if res.res is not None: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `obj_param_exploded` | [operations.FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `obj_param` | [Optional[operations.FormQueryParamsCamelObjectObjParam]](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[operations.FormQueryParamsCamelObjectResponse](../../models/operations/formqueryparamscamelobjectresponse.md)** + + ## form_query_params_map ### Example Usage @@ -239,8 +283,8 @@ s = sdk.SDK( res = s.parameters.form_query_params_map(map_param={ - "test": 'value', "test2": 'value2', + "test": 'value', }, map_param_exploded={ "test": 1, "test2": 2, @@ -255,8 +299,8 @@ if res.res is not None: | Parameter | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -| `map_param` | dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | -| `map_param_exploded` | dict[str, *int*] | :heavy_minus_sign: | N/A | [object Object] | +| `map_param` | Dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | +| `map_param_exploded` | Dict[str, *int*] | :heavy_minus_sign: | N/A | [object Object] | ### Response @@ -458,7 +502,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `x_header_array` | list[*str*] | :heavy_check_mark: | N/A | +| `x_header_array` | List[*str*] | :heavy_check_mark: | N/A | ### Response @@ -487,8 +531,8 @@ res = s.parameters.header_params_map(x_header_map={ "key1": 'value1', "key2": 'value2', }, x_header_map_explode={ - "test1": 'val1', "test2": 'val2', + "test1": 'val1', }) if res.res is not None: @@ -500,8 +544,8 @@ if res.res is not None: | Parameter | Type | Required | Description | Example | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `x_header_map` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | -| `x_header_map_explode` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `x_header_map` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `x_header_map_explode` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | ### Response @@ -1100,9 +1144,9 @@ if res.res is not None: | Parameter | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `arr_param` | list[*str*] | :heavy_minus_sign: | N/A | | -| `arr_param_exploded` | list[*int*] | :heavy_minus_sign: | N/A | | -| `map_param` | dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | +| `arr_param` | List[*str*] | :heavy_minus_sign: | N/A | | +| `arr_param_exploded` | List[*int*] | :heavy_minus_sign: | N/A | | +| `map_param` | Dict[str, *str*] | :heavy_minus_sign: | N/A | [object Object] | | `obj_param` | [Optional[shared.SimpleObject]](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | @@ -1142,7 +1186,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `arr_param` | list[*str*] | :heavy_check_mark: | N/A | +| `arr_param` | List[*str*] | :heavy_check_mark: | N/A | ### Response @@ -1184,8 +1228,8 @@ if res.res is not None: | Parameter | Type | Required | Description | Example | | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -| `map_param` | dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | -| `map_param_exploded` | dict[str, *int*] | :heavy_check_mark: | N/A | [object Object] | +| `map_param` | Dict[str, *str*] | :heavy_check_mark: | N/A | [object Object] | +| `map_param_exploded` | Dict[str, *int*] | :heavy_check_mark: | N/A | [object Object] | ### Response diff --git a/python-client-sdk/docs/sdks/requestbodies/README.md b/python-client-sdk/docs/sdks/requestbodies/README.md index 307781d77..c84af127f 100755 --- a/python-client-sdk/docs/sdks/requestbodies/README.md +++ b/python-client-sdk/docs/sdks/requestbodies/README.md @@ -308,7 +308,7 @@ if res.simple_objects is not None: | Parameter | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `request` | [list[shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -367,7 +367,7 @@ if res.simple_object_camel_cases is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `request` | [list[shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -428,7 +428,7 @@ if res.arr_obj_value is not None: | Parameter | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `request` | [list[shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -486,7 +486,7 @@ if res.arr_obj_value_camel_case is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `request` | [list[shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -548,7 +548,7 @@ if res.arrs is not None: | Parameter | Type | Required | Description | | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `request` | [list[list[shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[List[shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -609,7 +609,7 @@ if res.arrs is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `request` | [list[list[shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[List[shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -636,7 +636,7 @@ s = sdk.SDK( req = [ [ - 'yellow', + 'string', ], ] @@ -651,7 +651,7 @@ if res.arrs is not None: | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [list[list[str]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[List[str]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -680,7 +680,7 @@ s = sdk.SDK( req = [ { - "Southeast": shared.SimpleObject( + "key": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -714,7 +714,7 @@ if res.maps is not None: | Parameter | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `request` | [list[dict[str, shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[Dict[str, shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -743,7 +743,7 @@ s = sdk.SDK( req = [ { - "culpa": shared.SimpleObjectCamelCase( + "key": shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, bool_val=True, @@ -775,7 +775,7 @@ if res.maps is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `request` | [list[dict[str, shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[Dict[str, shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -801,7 +801,7 @@ s = sdk.SDK( ) req = [ - 'bit', + 'string', ] res = s.request_bodies.request_body_post_application_json_array_of_primitive(req) @@ -815,7 +815,7 @@ if res.strings is not None: | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [list[str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1052,7 +1052,7 @@ req = shared.DeepObjectCamelCase( bool_val=False, int_val=962909, map_val={ - "Table": shared.SimpleObjectCamelCase( + "key": shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, bool_val=True, @@ -1071,7 +1071,7 @@ req = shared.DeepObjectCamelCase( str_val='example', ), }, - num_val=9420.92, + num_val=2064.4, obj_val=shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, @@ -1090,7 +1090,7 @@ req = shared.DeepObjectCamelCase( str_opt_val='optional example', str_val='example', ), - str_val='Diesel', + str_val='string', ) res = s.request_bodies.request_body_post_application_json_deep_camel_case(req) @@ -1131,7 +1131,7 @@ s = sdk.SDK( ) req = { - "Bentley": shared.SimpleObject( + "key": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -1164,7 +1164,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `request` | [dict[str, shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1192,7 +1192,7 @@ s = sdk.SDK( ) req = { - "archive": shared.SimpleObjectCamelCase( + "key": shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, bool_val=True, @@ -1223,7 +1223,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `request` | [dict[str, shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1251,7 +1251,7 @@ s = sdk.SDK( ) req = { - "larder": shared.SimpleObject( + "key": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -1284,7 +1284,7 @@ if res.map_obj_value is not None: | Parameter | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `request` | [dict[str, shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, shared.SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -1311,7 +1311,7 @@ s = sdk.SDK( ) req = { - "female": shared.SimpleObjectCamelCase( + "key": shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, bool_val=True, @@ -1342,7 +1342,7 @@ if res.map_obj_value_camel_case is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `request` | [dict[str, shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, shared.SimpleObjectCamelCase]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -1369,7 +1369,7 @@ s = sdk.SDK( ) req = { - "Loan": [ + "key": [ shared.SimpleObject( any='any', bigint=8821239038968084, @@ -1404,7 +1404,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `request` | [dict[str, list[shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, List[shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1432,7 +1432,7 @@ s = sdk.SDK( ) req = { - "nonstop": [ + "key": [ shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, @@ -1465,7 +1465,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `request` | [dict[str, list[shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, List[shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1493,8 +1493,8 @@ s = sdk.SDK( ) req = { - "Senior": { - "vice": shared.SimpleObject( + "key": { + "key": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -1528,7 +1528,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `request` | [dict[str, dict[str, shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, Dict[str, shared.SimpleObject]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1556,8 +1556,8 @@ s = sdk.SDK( ) req = { - "Home": { - "plum": shared.SimpleObjectCamelCase( + "key": { + "key": shared.SimpleObjectCamelCase( any_val='any example', bool_opt_val=True, bool_val=True, @@ -1589,7 +1589,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [dict[str, dict[str, shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, Dict[str, shared.SimpleObjectCamelCase]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1615,8 +1615,8 @@ s = sdk.SDK( ) req = { - "turquoise": { - "collaboration": 'Officer', + "key": { + "key": 'string', }, } @@ -1631,7 +1631,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `request` | [dict[str, dict[str, str]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, Dict[str, str]]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1657,7 +1657,7 @@ s = sdk.SDK( ) req = { - "equally": 'whereas', + "key": 'string', } res = s.request_bodies.request_body_post_application_json_map_of_primitive(req) @@ -1671,7 +1671,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | | `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | @@ -1935,9 +1935,9 @@ req = shared.DefaultsAndConsts( const_enum_str=shared.DefaultsAndConstsConstEnumStr.TWO, const_int=450379, const_num=7742.71, - const_str='payment', - const_str_null='green', - normal_field='Dong Dysprosium', + const_str='string', + const_str_null='string', + normal_field='string', ) res = s.request_bodies.request_body_post_defaults_and_consts(req) @@ -2184,7 +2184,7 @@ s = sdk.SDK( ) req = { - "complexity": 'SUV', + "key": 'string', } res = s.request_bodies.request_body_post_form_map_primitive(req) @@ -2198,7 +2198,7 @@ if res.res is not None: | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2295,7 +2295,7 @@ if res.request_body_post_json_data_types_array_big_int_200_application_json_obje | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [list[int]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[int]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2334,7 +2334,7 @@ if res.request_body_post_json_data_types_array_date_200_application_json_object | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [list[date]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[date]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2373,7 +2373,7 @@ if res.request_body_post_json_data_types_array_decimal_str_200_application_json_ | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [list[Decimal]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[Decimal]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2768,7 +2768,7 @@ s = sdk.SDK( ) req = { - "Nepal": 124728, + "key": 42384, } res = s.request_bodies.request_body_post_json_data_types_map_big_int_str(req) @@ -2782,7 +2782,7 @@ if res.request_body_post_json_data_types_map_big_int_str_200_application_json_ob | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, int]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, int]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2807,7 +2807,7 @@ s = sdk.SDK( ) req = { - "quantify": dateutil.parser.isoparse('2022-02-12T21:23:09.538Z'), + "key": dateutil.parser.isoparse('2022-09-03T18:52:14.477Z'), } res = s.request_bodies.request_body_post_json_data_types_map_date_time(req) @@ -2821,7 +2821,7 @@ if res.request_body_post_json_data_types_map_date_time_200_application_json_obje | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, datetime]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, datetime]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2846,7 +2846,7 @@ s = sdk.SDK( ) req = { - "Inverse": Decimal('9134.24'), + "key": Decimal('3472.82'), } res = s.request_bodies.request_body_post_json_data_types_map_decimal(req) @@ -2860,7 +2860,7 @@ if res.request_body_post_json_data_types_map_decimal_200_application_json_object | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, Decimal]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, Decimal]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -2921,7 +2921,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'Gasoline' +req = 'string' res = s.request_bodies.request_body_post_json_data_types_string(req) @@ -3019,7 +3019,7 @@ s = sdk.SDK( req = operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON( bool=False, num=3558.41, - str_='South expiate aha', + str_='string', ) res = s.request_bodies.request_body_post_multiple_content_types_inline_filtered(req) @@ -3061,8 +3061,8 @@ s = sdk.SDK( res = s.request_bodies.request_body_post_multiple_content_types_split_param_form(request_body=operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded( bool3=False, num3=8693.24, - str3='Compatible', -), param_str='Architect') + str3='string', +), param_str='string') if res.res is not None: # handle response @@ -3102,8 +3102,8 @@ s = sdk.SDK( res = s.request_bodies.request_body_post_multiple_content_types_split_param_json(request_body=operations.RequestBodyPostMultipleContentTypesSplitParamApplicationJSON( bool=False, num=9771.91, - str_='South networks', -), param_str='Brand') + str_='string', +), param_str='string') if res.res is not None: # handle response @@ -3143,8 +3143,8 @@ s = sdk.SDK( res = s.request_bodies.request_body_post_multiple_content_types_split_param_multipart(request_body=operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData( bool2=False, num2=7000.76, - str2='Ball Southwest', -), param_str='Ergonomic') + str2='string', +), param_str='string') if res.res is not None: # handle response @@ -3183,7 +3183,7 @@ s = sdk.SDK( req = operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded( bool3=False, num3=7842.07, - str3='Cab encryption SMTP', + str3='string', ) res = s.request_bodies.request_body_post_multiple_content_types_split_form(req) @@ -3224,7 +3224,7 @@ s = sdk.SDK( req = operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON( bool=False, num=2445.56, - str_='hew frictionless Hybrid', + str_='string', ) res = s.request_bodies.request_body_post_multiple_content_types_split_json(req) @@ -3265,7 +3265,7 @@ s = sdk.SDK( req = operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData( bool2=False, num2=2079.2, - str2='cyan', + str2='string', ) res = s.request_bodies.request_body_post_multiple_content_types_split_multipart(req) @@ -3303,7 +3303,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'Chicken' +req = 'string' res = s.request_bodies.request_body_post_not_nullable_not_required_string_body(req) @@ -3341,7 +3341,7 @@ s = sdk.SDK( ) req = [ - 'simple', + 'string', ] res = s.request_bodies.request_body_post_null_array(req) @@ -3355,7 +3355,7 @@ if res.request_body_post_null_array_200_application_json_object is not None: | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [list[str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [List[str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -3380,7 +3380,7 @@ s = sdk.SDK( ) req = { - "Intersex": 'robust', + "key": 'string', } res = s.request_bodies.request_body_post_null_dictionary(req) @@ -3394,7 +3394,7 @@ if res.request_body_post_null_dictionary_200_application_json_object is not None | Parameter | Type | Required | Description | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [Dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -3418,7 +3418,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'Michigan' +req = 'string' res = s.request_bodies.request_body_post_nullable_not_required_string_body(req) @@ -3455,7 +3455,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'Mouse' +req = 'string' res = s.request_bodies.request_body_post_nullable_required_string_body(req) @@ -3530,7 +3530,7 @@ s = sdk.SDK( ) -res = s.request_bodies.request_body_put_bytes_with_params(request_body='o%jIWe4_P6'.encode(), query_string_param='Huntington') +res = s.request_bodies.request_body_put_bytes_with_params(request_body='o%jIWe4_P6'.encode(), query_string_param='string') if res.res is not None: # handle response @@ -3737,7 +3737,7 @@ s = sdk.SDK( req = operations.RequestBodyPutMultipartDifferentFileNameRequestBody( different_file_name=operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName( content='Y}\'H[5/Z[,'.encode(), - different_file_name='West Tunisian', + different_file_name='string', ), ) @@ -3779,7 +3779,7 @@ s = sdk.SDK( req = operations.RequestBodyPutMultipartFileRequestBody( file=operations.RequestBodyPutMultipartFileRequestBodyFile( content='OJa,v`.FW-'.encode(), - file='bandwidth Sedan', + file='string', ), ) @@ -3876,7 +3876,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'meh' +req = 'string' res = s.request_bodies.request_body_put_string(req) @@ -3914,7 +3914,7 @@ s = sdk.SDK( ) -res = s.request_bodies.request_body_put_string_with_params(request_body='SMTP', query_string_param='Unbranded') +res = s.request_bodies.request_body_put_string_with_params(request_body='string', query_string_param='string') if res.res is not None: # handle response @@ -4136,7 +4136,7 @@ s = sdk.SDK( req = shared.WriteOnlyObject( bool=False, num=3888.42, - string='Herminio', + string='string', ) res = s.request_bodies.request_body_write_only(req) @@ -4178,7 +4178,7 @@ s = sdk.SDK( req = shared.WriteOnlyObject( bool=False, num=3867.69, - string='quas', + string='string', ) res = s.request_bodies.request_body_write_only_output(req) @@ -4222,7 +4222,7 @@ s = sdk.SDK( req = shared.WriteOnlyObject( bool=False, num=3823.36, - string='Internal', + string='string', ) res = s.request_bodies.request_body_write_only_union(req) diff --git a/python-client-sdk/docs/sdks/resource/README.md b/python-client-sdk/docs/sdks/resource/README.md index e16f164e6..bc87e2ff5 100755 --- a/python-client-sdk/docs/sdks/resource/README.md +++ b/python-client-sdk/docs/sdks/resource/README.md @@ -28,7 +28,7 @@ s = sdk.SDK( req = operations.CreateFileRequestBody( file=operations.CreateFileRequestBodyFile( content='`\'$Z`(L/RH'.encode(), - file='Rap National', + file='string', ), ) @@ -73,25 +73,27 @@ req = shared.ExampleResource( 1867.47, ], array_of_string=[ - 'Sodium', + 'string', ], chocolates=[ shared.ExampleResourceChocolates( - description='Cross-group didactic system engine', + description='Re-engineered asynchronous array', ), ], id='', map_of_integer={ - "Pula": 173199, + "key": 271791, }, map_of_string={ - "an": 'South', + "key": 'string', }, - name='Cotton', - shared.ExampleBoat( - length=3287.82, - name='San South Quality', - type=shared.ExampleBoatType.BOAT, + name='string', + shared.ExampleCar( + make='string', + model='PT Cruiser', + name='string', + type=shared.ExampleCarType.CAR, + year=1259.83, ), ) @@ -131,7 +133,7 @@ s = sdk.SDK( ) -res = s.resource.delete_resource(resource_id='Reggae') +res = s.resource.delete_resource(resource_id='string') if res.status_code == 200: # handle response @@ -167,7 +169,7 @@ s = sdk.SDK( ) -res = s.resource.get_resource(resource_id='Home') +res = s.resource.get_resource(resource_id='string') if res.example_resource is not None: # handle response @@ -203,7 +205,7 @@ s = sdk.SDK( ) -res = s.resource.update_resource(resource_id='International') +res = s.resource.update_resource(resource_id='string') if res.status_code == 200: # handle response diff --git a/python-client-sdk/docs/sdks/responsebodies/README.md b/python-client-sdk/docs/sdks/responsebodies/README.md index 3c8dbcacb..718e8cb96 100755 --- a/python-client-sdk/docs/sdks/responsebodies/README.md +++ b/python-client-sdk/docs/sdks/responsebodies/README.md @@ -9,6 +9,7 @@ Endpoints for testing response bodies. * [response_body_additional_properties_complex_numbers_post](#response_body_additional_properties_complex_numbers_post) * [response_body_additional_properties_date_post](#response_body_additional_properties_date_post) +* [response_body_additional_properties_object_post](#response_body_additional_properties_object_post) * [response_body_additional_properties_post](#response_body_additional_properties_post) * [response_body_bytes_get](#response_body_bytes_get) * [response_body_empty_with_headers](#response_body_empty_with_headers) @@ -34,9 +35,12 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = { - "ASCII": 984700, -} +req = shared.ObjWithComplexNumbersAdditionalProperties( + additional_properties={ + "key": 468801, + }, + normal_field='string', +) res = s.response_bodies.response_body_additional_properties_complex_numbers_post(req) @@ -47,9 +51,9 @@ if res.response_body_additional_properties_complex_numbers_post_200_application_ ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, int]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `request` | [shared.ObjWithComplexNumbersAdditionalProperties](../../models/shared/objwithcomplexnumbersadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -63,6 +67,7 @@ if res.response_body_additional_properties_complex_numbers_post_200_application_ ```python import sdk +import dateutil.parser from sdk.models import shared s = sdk.SDK( @@ -73,9 +78,12 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = { - "Bedfordshire": dateutil.parser.parse('2021-04-22').date(), -} +req = shared.ObjWithDateAdditionalProperties( + additional_properties={ + "key": dateutil.parser.parse('2021-03-16').date(), + }, + normal_field='string', +) res = s.response_bodies.response_body_additional_properties_date_post(req) @@ -86,9 +94,9 @@ if res.response_body_additional_properties_date_post_200_application_json_object ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, date]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [shared.ObjWithDateAdditionalProperties](../../models/shared/objwithdateadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -96,6 +104,72 @@ if res.response_body_additional_properties_date_post_200_application_json_object **[operations.ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/responsebodyadditionalpropertiesdatepostresponse.md)** +## response_body_additional_properties_object_post + +### Example Usage + +```python +import sdk +import dateutil.parser +from decimal import Decimal +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + +req = shared.ObjWithObjAdditionalProperties( + additional_properties=[ + 617205, + ], + additional_properties_t={ + "key": shared.SimpleObject( + any='any', + bigint=8821239038968084, + bigint_str=9223372036854775808, + bool=True, + bool_opt=True, + date_=dateutil.parser.parse('2020-01-01').date(), + date_time=dateutil.parser.isoparse('2020-01-01T00:00:00.000000001Z'), + decimal=Decimal('3.141592653589793'), + decimal_str=Decimal('3.14159265358979344719667586'), + enum=shared.EnumT.ONE, + float32=1.1, + int=1, + int32=1, + int32_enum=shared.SimpleObjectInt32Enum.FIFTY_FIVE, + int_enum=shared.SimpleObjectIntEnum.SECOND, + num=1.1, + str_='test', + str_opt='testOptional', + ), + }, + datetime_=dateutil.parser.isoparse('2022-03-22T01:00:55.017Z'), +) + +res = s.response_bodies.response_body_additional_properties_object_post(req) + +if res.response_body_additional_properties_object_post_200_application_json_object is not None: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `request` | [shared.ObjWithObjAdditionalProperties](../../models/shared/objwithobjadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.ResponseBodyAdditionalPropertiesObjectPostResponse](../../models/operations/responsebodyadditionalpropertiesobjectpostresponse.md)** + + ## response_body_additional_properties_post ### Example Usage @@ -112,9 +186,12 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = { - "Ergonomic": 'Carolina', -} +req = shared.ObjWithStringAdditionalProperties( + additional_properties={ + "key": 'string', + }, + normal_field='string', +) res = s.response_bodies.response_body_additional_properties_post(req) @@ -125,9 +202,9 @@ if res.response_body_additional_properties_post_200_application_json_object is n ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, str]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `request` | [shared.ObjWithStringAdditionalProperties](../../models/shared/objwithstringadditionalproperties.md) | :heavy_check_mark: | The request object to use for the request. | ### Response @@ -182,7 +259,7 @@ s = sdk.SDK( ) -res = s.response_bodies.response_body_empty_with_headers(x_number_header=1751.8, x_string_header='Tigard') +res = s.response_bodies.response_body_empty_with_headers(x_number_header=1751.8, x_string_header='string') if res.status_code == 200: # handle response diff --git a/python-client-sdk/docs/sdks/retries/README.md b/python-client-sdk/docs/sdks/retries/README.md index 0bfc7b2f8..f331ae0b0 100755 --- a/python-client-sdk/docs/sdks/retries/README.md +++ b/python-client-sdk/docs/sdks/retries/README.md @@ -26,7 +26,7 @@ s = sdk.SDK( ) -res = s.retries.retries_get(request_id='Cambridgeshire', num_retries=496130) +res = s.retries.retries_get(request_id='string', num_retries=75342) if res.retries is not None: # handle response diff --git a/python-client-sdk/docs/sdks/sdk/README.md b/python-client-sdk/docs/sdks/sdk/README.md index a199f8750..79c88e835 100755 --- a/python-client-sdk/docs/sdks/sdk/README.md +++ b/python-client-sdk/docs/sdks/sdk/README.md @@ -29,7 +29,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'bus' +req = 'string' res = s.sdk.put_anything_ignored_generation(req) diff --git a/python-client-sdk/docs/sdks/telemetry/README.md b/python-client-sdk/docs/sdks/telemetry/README.md index 8314062ef..04e3dc5a4 100755 --- a/python-client-sdk/docs/sdks/telemetry/README.md +++ b/python-client-sdk/docs/sdks/telemetry/README.md @@ -27,7 +27,7 @@ s = sdk.SDK( ) -res = s.telemetry.telemetry_speakeasy_user_agent_get(user_agent='Bentley') +res = s.telemetry.telemetry_speakeasy_user_agent_get(user_agent='string') if res.res is not None: # handle response diff --git a/python-client-sdk/docs/sdks/unions/README.md b/python-client-sdk/docs/sdks/unions/README.md index 90ce0dab9..99c79d12a 100755 --- a/python-client-sdk/docs/sdks/unions/README.md +++ b/python-client-sdk/docs/sdks/unions/README.md @@ -17,6 +17,8 @@ Endpoints for testing union types. * [strongly_typed_one_of_post](#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](#typed_object_nullable_one_of_post) * [typed_object_one_of_post](#typed_object_one_of_post) +* [union_date_null](#union_date_null) +* [union_date_time_null](#union_date_time_null) * [weakly_typed_one_of_post](#weakly_typed_one_of_post) ## flattened_typed_object_post @@ -37,7 +39,7 @@ s = sdk.SDK( req = shared.TypedObject1( type=shared.TypedObject1Type.OBJ1, - value='farad Rustic', + value='string', ) res = s.unions.flattened_typed_object_post(req) @@ -117,15 +119,15 @@ s = sdk.SDK( req = shared.NullableOneOfRefInObject( nullable_one_of_one=shared.TypedObject1( type=shared.TypedObject1Type.OBJ1, - value='Global Alexandria administration', + value='string', ), - shared.TypedObject1( - type=shared.TypedObject1Type.OBJ1, - value='nor', + shared.TypedObject2( + type=shared.TypedObject2Type.OBJ2, + value='string', ), shared.TypedObject1( type=shared.TypedObject1Type.OBJ1, - value='Berkshire after', + value='string', ), ) @@ -166,7 +168,7 @@ s = sdk.SDK( req = shared.TypedObject2( type=shared.TypedObject2Type.OBJ2, - value='sob', + value='string', ) res = s.unions.nullable_one_of_schema_post(req) @@ -247,7 +249,7 @@ s = sdk.SDK( req = shared.TypedObject1( type=shared.TypedObject1Type.OBJ1, - value='Bike', + value='string', ) res = s.unions.nullable_typed_object_post(req) @@ -285,7 +287,7 @@ s = sdk.SDK( global_query_param='some example global query param', ) -req = 'Account' +req = 'string' res = s.unions.primitive_type_one_of_post(req) @@ -390,7 +392,7 @@ req = shared.DeepObjectWithType( bool=True, int=1, map={ - "key2": shared.SimpleObject( + "key": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -410,7 +412,7 @@ req = shared.DeepObjectWithType( str_='test', str_opt='testOptional', ), - "key": shared.SimpleObject( + "key2": shared.SimpleObject( any='any', bigint=8821239038968084, bigint_str=9223372036854775808, @@ -492,7 +494,7 @@ s = sdk.SDK( req = shared.TypedObject2( type=shared.TypedObject2Type.OBJ2, - value='DRAM', + value='string', ) res = s.unions.typed_object_nullable_one_of_post(req) @@ -532,7 +534,7 @@ s = sdk.SDK( req = shared.TypedObject3( type=shared.TypedObject3Type.OBJ3, - value='Buckinghamshire illo Automotive', + value='string', ) res = s.unions.typed_object_one_of_post(req) @@ -554,6 +556,80 @@ if res.res is not None: **[operations.TypedObjectOneOfPostResponse](../../models/operations/typedobjectoneofpostresponse.md)** +## union_date_null + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + +req = dateutil.parser.parse('2022-11-25').date() + +res = s.unions.union_date_null(req) + +if res.res is not None: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [date](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.UnionDateNullResponse](../../models/operations/uniondatenullresponse.md)** + + +## union_date_time_null + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + api_key_auth="Token YOUR_API_KEY", + ), + global_path_param=100, + global_query_param='some example global query param', +) + +req = dateutil.parser.isoparse('2022-04-12T19:39:53.907Z') + +res = s.unions.union_date_time_null(req) + +if res.res is not None: + # handle response + pass +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [datetime](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.UnionDateTimeNullResponse](../../models/operations/uniondatetimenullresponse.md)** + + ## weakly_typed_one_of_post ### Example Usage diff --git a/python-client-sdk/files.gen b/python-client-sdk/files.gen index 1d0e40766..4aefb61e3 100755 --- a/python-client-sdk/files.gen +++ b/python-client-sdk/files.gen @@ -85,6 +85,9 @@ src/sdk/models/operations/inlinebodyandparamnoconflict.py src/sdk/models/operations/anchortypesget.py src/sdk/models/operations/arraycircularreferenceget.py src/sdk/models/operations/circularreferenceget.py +src/sdk/models/operations/dateparamwithdefault.py +src/sdk/models/operations/datetimeparamwithdefault.py +src/sdk/models/operations/decimalparamwithdefault.py src/sdk/models/operations/deprecatedfieldinschemapost.py src/sdk/models/operations/deprecatedobjectinschemaget.py src/sdk/models/operations/deprecatedoperationnocommentsget.py @@ -115,6 +118,7 @@ src/sdk/models/operations/deepobjectqueryparamsmap.py src/sdk/models/operations/deepobjectqueryparamsobject.py src/sdk/models/operations/duplicateparam.py src/sdk/models/operations/formqueryparamsarray.py +src/sdk/models/operations/formqueryparamscamelobject.py src/sdk/models/operations/formqueryparamsmap.py src/sdk/models/operations/formqueryparamsobject.py src/sdk/models/operations/formqueryparamsprimitive.py @@ -221,6 +225,7 @@ src/sdk/models/operations/getresource.py src/sdk/models/operations/updateresource.py src/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.py src/sdk/models/operations/responsebodyadditionalpropertiesdatepost.py +src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.py src/sdk/models/operations/responsebodyadditionalpropertiespost.py src/sdk/models/operations/responsebodybytesget.py src/sdk/models/operations/responsebodyemptywithheaders.py @@ -249,6 +254,8 @@ src/sdk/models/operations/primitivetypeoneofpost.py src/sdk/models/operations/stronglytypedoneofpost.py src/sdk/models/operations/typedobjectnullableoneofpost.py src/sdk/models/operations/typedobjectoneofpost.py +src/sdk/models/operations/uniondatenull.py +src/sdk/models/operations/uniondatetimenull.py src/sdk/models/operations/weaklytypedoneofpost.py src/sdk/models/operations/put_anything_ignoredgeneration.py src/sdk/models/operations/responsebodyjsonget.py @@ -288,6 +295,10 @@ src/sdk/models/shared/fileresource.py src/sdk/models/shared/exampleresource.py src/sdk/models/shared/exampleboat.py src/sdk/models/shared/examplecar.py +src/sdk/models/shared/objwithcomplexnumbersadditionalproperties.py +src/sdk/models/shared/objwithdateadditionalproperties.py +src/sdk/models/shared/objwithobjadditionalproperties.py +src/sdk/models/shared/objwithstringadditionalproperties.py src/sdk/models/shared/typedobject1.py src/sdk/models/shared/objwithzerovaluecomplextypeptrs.py src/sdk/models/shared/nullableoneofrefinobject.py @@ -301,6 +312,7 @@ src/sdk/models/shared/oneofgenerationstresstest.py src/sdk/models/shared/unsupportedenums.py src/sdk/models/shared/__init__.py src/sdk/models/errors/error.py +src/sdk/models/errors/errortype.py src/sdk/models/errors/statusgetxspeakeasyerrors.py src/sdk/models/errors/__init__.py src/sdk/models/callbacks/ignoredgenerationget.py @@ -385,6 +397,12 @@ docs/models/operations/typefromanchor.md docs/models/operations/anchortypesgetresponse.md docs/models/operations/arraycircularreferencegetresponse.md docs/models/operations/circularreferencegetresponse.md +docs/models/operations/dateparamwithdefaultrequest.md +docs/models/operations/dateparamwithdefaultresponse.md +docs/models/operations/datetimeparamwithdefaultrequest.md +docs/models/operations/datetimeparamwithdefaultresponse.md +docs/models/operations/decimalparamwithdefaultrequest.md +docs/models/operations/decimalparamwithdefaultresponse.md docs/models/operations/deprecatedfieldinschemapostresponse.md docs/models/operations/deprecatedobjectinschemaget200applicationjson.md docs/models/operations/deprecatedobjectinschemagetresponse.md @@ -463,6 +481,12 @@ docs/models/operations/formqueryparamsarrayrequest.md docs/models/operations/formqueryparamsarrayresargs.md docs/models/operations/formqueryparamsarrayres.md docs/models/operations/formqueryparamsarrayresponse.md +docs/models/operations/formqueryparamscamelobjectobjparam.md +docs/models/operations/formqueryparamscamelobjectobjparamexploded.md +docs/models/operations/formqueryparamscamelobjectrequest.md +docs/models/operations/formqueryparamscamelobjectresargs.md +docs/models/operations/formqueryparamscamelobjectres.md +docs/models/operations/formqueryparamscamelobjectresponse.md docs/models/operations/formqueryparamsmaprequest.md docs/models/operations/formqueryparamsmapres.md docs/models/operations/formqueryparamsmapresponse.md @@ -711,6 +735,8 @@ docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200appl docs/models/operations/responsebodyadditionalpropertiescomplexnumberspostresponse.md docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiesdatepostresponse.md +docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md +docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiespostresponse.md docs/models/operations/responsebodybytesgetresponse.md @@ -763,6 +789,10 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/uniondatenullres.md +docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimenullres.md +docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md docs/models/operations/weaklytypedoneofpostresponse.md docs/models/operations/putanythingignoredgeneration200applicationjson.md @@ -839,6 +869,10 @@ docs/models/shared/exampleboattype.md docs/models/shared/exampleboat.md docs/models/shared/examplecartype.md docs/models/shared/examplecar.md +docs/models/shared/objwithcomplexnumbersadditionalproperties.md +docs/models/shared/objwithdateadditionalproperties.md +docs/models/shared/objwithobjadditionalproperties.md +docs/models/shared/objwithstringadditionalproperties.md docs/models/shared/typedobject1type.md docs/models/shared/typedobject1.md docs/models/shared/objwithzerovaluecomplextypeptrs.md @@ -869,6 +903,7 @@ docs/models/shared/oneofgenerationstresstest.md docs/models/shared/primitivetypeunion.md docs/models/shared/unsupportedenums.md docs/models/errors/error.md +docs/models/errors/errortype.md docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md docs/models/callbacks/ignoredgenerationgetsingledignoredcallbackoperationresponse.md docs/models/callbacks/ignoredgenerationgetsingledignoredcallbackoperationrequestbody.md diff --git a/python-client-sdk/gen.yaml b/python-client-sdk/gen.yaml index 9bed1929b..41ed635d9 100755 --- a/python-client-sdk/gen.yaml +++ b/python-client-sdk/gen.yaml @@ -1,21 +1,23 @@ configVersion: 1.0.0 management: - docChecksum: d6c132f7bde6e79f0552a47119432f96 + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d docVersion: 0.1.0 - speakeasyVersion: 1.99.0 - generationVersion: 2.154.1 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git sdkClassName: SDK singleTagPerOp: false features: python: - core: 2.88.6 + additionalProperties: 0.1.0 + core: 3.3.0 deprecations: 2.81.1 - docs: 0.3.3 - downloadStreams: 0.0.1 + docs: 0.3.4 + downloadStreams: 0.0.2 enums: 2.81.1 - errors: 2.81.5 - examples: 2.81.2 + errors: 2.81.7 + examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 @@ -27,14 +29,16 @@ features: methodSecurity: 2.82.0 methodServerURLs: 2.82.0 nameOverrides: 2.81.1 - pagination: 2.81.3 + pagination: 2.81.4 retries: 2.82.0 serverIDs: 2.81.1 python: - version: 1.38.1 + version: 2.0.0 author: Speakeasy clientServerStatusCodesAsErrors: true description: Python Client SDK Generated by Speakeasy flattenGlobalSecurity: false + installationURL: https://github.com/speakeasy-api/openapi-generation-tests.git#subdirectory=python-client-sdk maxMethodParams: 5 packageName: openapi + repoSubDirectory: python-client-sdk diff --git a/python-client-sdk/pylintrc b/python-client-sdk/pylintrc index 2a6cf6912..1ed32214e 100755 --- a/python-client-sdk/pylintrc +++ b/python-client-sdk/pylintrc @@ -88,7 +88,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.9 +py-version=3.8 # Discover python modules and packages in the file system subtree. recursive=no diff --git a/python-client-sdk/setup.py b/python-client-sdk/setup.py index c5a1c40aa..abd78323a 100755 --- a/python-client-sdk/setup.py +++ b/python-client-sdk/setup.py @@ -10,34 +10,32 @@ setuptools.setup( name="openapi", - version="1.38.1", + version="2.0.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, long_description_content_type="text/markdown", packages=setuptools.find_packages(where="src"), install_requires=[ - "certifi>=2022.12.7", - "charset-normalizer>=2.1.1", + "certifi>=2023.7.22", + "charset-normalizer>=3.2.0", "dataclasses-json>=0.6.1", - "idna>=3.3", + "idna>=3.4", "jsonpath-python>=1.0.6 ", - "marshmallow>=3.17.1", - "marshmallow-enum>=1.5.1", - "mypy-extensions>=0.4.3", - "packaging>=21.3", - "pyparsing>=3.0.9", + "marshmallow>=3.19.0", + "mypy-extensions>=1.0.0", + "packaging>=23.1", "python-dateutil>=2.8.2", - "requests>=2.28.1", + "requests>=2.31.0", "six>=1.16.0", - "typing-inspect>=0.8.0", - "typing_extensions>=4.3.0", - "urllib3>=1.26.12", + "typing-inspect>=0.9.0", + "typing_extensions>=4.7.1", + "urllib3>=2.0.4", "pytest==7.2.1", ], extras_require={ "dev":["pylint==2.16.2"] }, package_dir={'': 'src'}, - python_requires='>=3.9' + python_requires='>=3.8' ) diff --git a/python-client-sdk/src/sdk/generation.py b/python-client-sdk/src/sdk/generation.py index 86b2a43d8..151b12a83 100755 --- a/python-client-sdk/src/sdk/generation.py +++ b/python-client-sdk/src/sdk/generation.py @@ -1,11 +1,11 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" from .sdkconfiguration import SDKConfiguration -from datetime import date +from datetime import date, datetime from decimal import Decimal from sdk import utils from sdk.models import errors, operations, shared -from typing import Optional +from typing import List, Optional class Generation: r"""Endpoints for purely testing valid generation behavior.""" @@ -59,7 +59,7 @@ def array_circular_reference_get(self) -> operations.ArrayCircularReferenceGetRe if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.ArrayCircularReferenceObject]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.ArrayCircularReferenceObject]]) res.array_circular_reference_object = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -96,6 +96,90 @@ def circular_reference_get(self) -> operations.CircularReferenceGetResponse: return res + def date_param_with_default(self, date_input: date) -> operations.DateParamWithDefaultResponse: + request = operations.DateParamWithDefaultRequest( + date_input=date_input, + ) + + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/dateParamWithDefault' + headers = {} + query_params = utils.get_query_params(operations.DateParamWithDefaultRequest, request, self.sdk_configuration.globals) + headers['Accept'] = '*/*' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('GET', url, params=query_params, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.DateParamWithDefaultResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 204: + pass + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + + def date_time_param_with_default(self, date_time_input: datetime) -> operations.DateTimeParamWithDefaultResponse: + request = operations.DateTimeParamWithDefaultRequest( + date_time_input=date_time_input, + ) + + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/dateTimeParamWithDefault' + headers = {} + query_params = utils.get_query_params(operations.DateTimeParamWithDefaultRequest, request, self.sdk_configuration.globals) + headers['Accept'] = '*/*' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('GET', url, params=query_params, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.DateTimeParamWithDefaultResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 204: + pass + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + + def decimal_param_with_default(self, decimal_input: Decimal) -> operations.DecimalParamWithDefaultResponse: + request = operations.DecimalParamWithDefaultRequest( + decimal_input=decimal_input, + ) + + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/decimalParamWithDefault' + headers = {} + query_params = utils.get_query_params(operations.DecimalParamWithDefaultRequest, request, self.sdk_configuration.globals) + headers['Accept'] = '*/*' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('GET', url, params=query_params, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.DecimalParamWithDefaultResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 204: + pass + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + def deprecated_field_in_schema_post(self, request: shared.DeprecatedFieldInObject) -> operations.DeprecatedFieldInSchemaPostResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) diff --git a/python-client-sdk/src/sdk/models/callbacks/ignoredgenerationget.py b/python-client-sdk/src/sdk/models/callbacks/ignoredgenerationget.py index d2df7b70e..160cd57c3 100755 --- a/python-client-sdk/src/sdk/models/callbacks/ignoredgenerationget.py +++ b/python-client-sdk/src/sdk/models/callbacks/ignoredgenerationget.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class IgnoredGenerationGetSingledIgnoredCallbackOperationResponse: content_type: str = dataclasses.field() @@ -22,7 +21,6 @@ class IgnoredGenerationGetSingledIgnoredCallbackOperationResponse: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody: some_prop: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('someProp'), 'exclude': lambda f: f is None }}) @@ -30,7 +28,6 @@ class IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody: - @dataclasses.dataclass class IgnoredGenerationGetNotIgnoredCallbackResponse: content_type: str = dataclasses.field() @@ -44,7 +41,6 @@ class IgnoredGenerationGetNotIgnoredCallbackResponse: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class IgnoredGenerationGetNotIgnoredCallbackRequestBody: some_prop: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('someProp'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/errors/__init__.py b/python-client-sdk/src/sdk/models/errors/__init__.py index 05b4102e4..f9929ed98 100755 --- a/python-client-sdk/src/sdk/models/errors/__init__.py +++ b/python-client-sdk/src/sdk/models/errors/__init__.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" from .error import * +from .errortype import * from .statusgetxspeakeasyerrors import * from .sdkerror import SDKError -__all__ = ["Error","StatusGetXSpeakeasyErrors501ApplicationJSON","SDKError"] +__all__ = ["Error","ErrorType","StatusGetXSpeakeasyErrors501ApplicationJSON","SDKError"] diff --git a/python-client-sdk/src/sdk/models/errors/error.py b/python-client-sdk/src/sdk/models/errors/error.py index a96007752..c4d3b9b48 100755 --- a/python-client-sdk/src/sdk/models/errors/error.py +++ b/python-client-sdk/src/sdk/models/errors/error.py @@ -2,6 +2,7 @@ from __future__ import annotations import dataclasses +from ..errors import errortype as errors_errortype from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @@ -13,6 +14,7 @@ class Error(Exception): code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('code'), 'exclude': lambda f: f is None }}) message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + type: Optional[errors_errortype.ErrorType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) def __str__(self) -> str: diff --git a/python-client-sdk/src/sdk/models/errors/errortype.py b/python-client-sdk/src/sdk/models/errors/errortype.py new file mode 100755 index 000000000..e10112314 --- /dev/null +++ b/python-client-sdk/src/sdk/models/errors/errortype.py @@ -0,0 +1,9 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +from enum import Enum + +class ErrorType(str, Enum): + NOT_FOUND = 'not_found' + INVALID = 'invalid' + INTERNAL = 'internal' diff --git a/python-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.py b/python-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.py index cedaf0574..ce312c49b 100755 --- a/python-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.py +++ b/python-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.py @@ -3,6 +3,7 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..errors import errortype as errors_errortype from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @@ -17,6 +18,7 @@ class StatusGetXSpeakeasyErrors501ApplicationJSON(Exception): message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) raw_response: Optional[requests_http.Response] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: True }}) r"""Raw HTTP response; suitable for custom response parsing""" + type: Optional[errors_errortype.ErrorType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) def __str__(self) -> str: diff --git a/python-client-sdk/src/sdk/models/operations/__init__.py b/python-client-sdk/src/sdk/models/operations/__init__.py index bc8fd9bc8..fc46e6968 100755 --- a/python-client-sdk/src/sdk/models/operations/__init__.py +++ b/python-client-sdk/src/sdk/models/operations/__init__.py @@ -16,6 +16,9 @@ from .connectionerrorget import * from .createfile import * from .createresource import * +from .dateparamwithdefault import * +from .datetimeparamwithdefault import * +from .decimalparamwithdefault import * from .deepobjectqueryparamsmap import * from .deepobjectqueryparamsobject import * from .deleteresource import * @@ -28,6 +31,7 @@ from .emptyresponseobjectwithcommentget import * from .flattenedtypedobjectpost import * from .formqueryparamsarray import * +from .formqueryparamscamelobject import * from .formqueryparamsmap import * from .formqueryparamsobject import * from .formqueryparamsprimitive import * @@ -168,6 +172,7 @@ from .requestbodywriteonlyunion import * from .responsebodyadditionalpropertiescomplexnumberspost import * from .responsebodyadditionalpropertiesdatepost import * +from .responsebodyadditionalpropertiesobjectpost import * from .responsebodyadditionalpropertiespost import * from .responsebodybytesget import * from .responsebodyemptywithheaders import * @@ -196,8 +201,10 @@ from .typedobjectnullableoneofpost import * from .typedobjectoneofpost import * from .typedparametergenerationget import * +from .uniondatenull import * +from .uniondatetimenull import * from .updateresource import * from .usageexamplepost import * from .weaklytypedoneofpost import * -__all__ = ["APIKeyAuthGlobalNewResponse","APIKeyAuthGlobalResponse","APIKeyAuthGlobalToken","APIKeyAuthResponse","APIKeyAuthSecurity","APIKeyAuthToken","AnchorTypesGetResponse","ArrayCircularReferenceGetResponse","AuthGlobalResponse","BasicAuthNewResponse","BasicAuthNewSecurity","BasicAuthRequest","BasicAuthResponse","BasicAuthSecurity","BasicAuthUser","BearerAuthResponse","BearerAuthSecurity","BearerAuthToken","CircularReferenceGetResponse","ComponentBodyAndParamConflictRequest","ComponentBodyAndParamConflictRes","ComponentBodyAndParamConflictResponse","ComponentBodyAndParamNoConflictRequest","ComponentBodyAndParamNoConflictRes","ComponentBodyAndParamNoConflictResponse","ConflictingParamsRequest","ConflictingParamsRes","ConflictingParamsResponse","ConnectionErrorGetResponse","CreateFileRequestBody","CreateFileRequestBodyFile","CreateFileResponse","CreateResourceResponse","DeepObjectQueryParamsMapRequest","DeepObjectQueryParamsMapRes","DeepObjectQueryParamsMapResArgs","DeepObjectQueryParamsMapResponse","DeepObjectQueryParamsObjectObjArrParam","DeepObjectQueryParamsObjectRequest","DeepObjectQueryParamsObjectRes","DeepObjectQueryParamsObjectResArgs","DeepObjectQueryParamsObjectResponse","DeleteResourceRequest","DeleteResourceResponse","DeprecatedFieldInSchemaPostResponse","DeprecatedObjectInSchemaGet200ApplicationJSON","DeprecatedObjectInSchemaGetResponse","DeprecatedOperationNoCommentsGetRequest","DeprecatedOperationNoCommentsGetResponse","DeprecatedOperationWithCommentsGetRequest","DeprecatedOperationWithCommentsGetResponse","DuplicateParamDuplicateParamResponse","DuplicateParamRequest","DuplicateParamResponse","EmptyObjectGetRequest","EmptyObjectGetResponse","EmptyResponseObjectWithCommentGet200ApplicationOctetStream","EmptyResponseObjectWithCommentGetResponse","FlattenedTypedObjectPostRes","FlattenedTypedObjectPostResponse","FormQueryParamsArrayRequest","FormQueryParamsArrayRes","FormQueryParamsArrayResArgs","FormQueryParamsArrayResponse","FormQueryParamsMapRequest","FormQueryParamsMapRes","FormQueryParamsMapResponse","FormQueryParamsObjectRequest","FormQueryParamsObjectRes","FormQueryParamsObjectResArgs","FormQueryParamsObjectResponse","FormQueryParamsPrimitiveRequest","FormQueryParamsPrimitiveRes","FormQueryParamsPrimitiveResArgs","FormQueryParamsPrimitiveResponse","FormQueryParamsRefParamObjectRequest","FormQueryParamsRefParamObjectRes","FormQueryParamsRefParamObjectResArgs","FormQueryParamsRefParamObjectResponse","GetDocumentationPerLanguageRequest","GetDocumentationPerLanguageResponse","GetGlobalNameOverride200ApplicationJSON","GetGlobalNameOverrideResponse","GetResourceRequest","GetResourceResponse","GlobalBearerAuthResponse","GlobalBearerAuthToken","GlobalPathParameterGetRequest","GlobalPathParameterGetRes","GlobalPathParameterGetResponse","GlobalsQueryParameterGetRequest","GlobalsQueryParameterGetRes","GlobalsQueryParameterGetResArgs","GlobalsQueryParameterGetResponse","GroupFirstGetResponse","GroupSecondGetResponse","HeaderParamsArrayRequest","HeaderParamsArrayRes","HeaderParamsArrayResHeaders","HeaderParamsArrayResponse","HeaderParamsMapRequest","HeaderParamsMapRes","HeaderParamsMapResHeaders","HeaderParamsMapResponse","HeaderParamsObjectRequest","HeaderParamsObjectRes","HeaderParamsObjectResHeaders","HeaderParamsObjectResponse","HeaderParamsPrimitiveRequest","HeaderParamsPrimitiveRes","HeaderParamsPrimitiveResHeaders","HeaderParamsPrimitiveResponse","IgnoredGenerationGet200ApplicationJSON","IgnoredGenerationGetResponse","IgnoresPostApplicationJSON","IgnoresPostRequest","IgnoresPostResponse","InlineBodyAndParamConflictRequest","InlineBodyAndParamConflictRequestBody","InlineBodyAndParamConflictRes","InlineBodyAndParamConflictResJSON","InlineBodyAndParamConflictResponse","InlineBodyAndParamNoConflictRequest","InlineBodyAndParamNoConflictRequestBody","InlineBodyAndParamNoConflictRes","InlineBodyAndParamNoConflictResJSON","InlineBodyAndParamNoConflictResponse","JSONQueryParamsObjectRequest","JSONQueryParamsObjectRes","JSONQueryParamsObjectResArgs","JSONQueryParamsObjectResponse","MixedParametersCamelCaseRequest","MixedParametersCamelCaseRes","MixedParametersCamelCaseResArgs","MixedParametersCamelCaseResHeaders","MixedParametersCamelCaseResponse","MixedParametersPrimitivesRequest","MixedParametersPrimitivesRes","MixedParametersPrimitivesResArgs","MixedParametersPrimitivesResHeaders","MixedParametersPrimitivesResponse","MixedQueryParamsRequest","MixedQueryParamsRes","MixedQueryParamsResponse","MixedTypeOneOfPostRequestBody","MixedTypeOneOfPostRes","MixedTypeOneOfPostResJSON","MixedTypeOneOfPostResponse","MultipleMixedOptionsAuthResponse","MultipleMixedOptionsAuthSecurity","MultipleMixedSchemeAuthResponse","MultipleMixedSchemeAuthSecurity","MultipleOptionsWithMixedSchemesAuthResponse","MultipleOptionsWithMixedSchemesAuthSecurity","MultipleOptionsWithMixedSchemesAuthSecurityOption1","MultipleOptionsWithMixedSchemesAuthSecurityOption2","MultipleOptionsWithSimpleSchemesAuthResponse","MultipleOptionsWithSimpleSchemesAuthSecurity","MultipleOptionsWithSimpleSchemesAuthSecurityOption1","MultipleOptionsWithSimpleSchemesAuthSecurityOption2","MultipleSimpleOptionsAuthResponse","MultipleSimpleOptionsAuthSecurity","MultipleSimpleSchemeAuthResponse","MultipleSimpleSchemeAuthSecurity","NameOverrideGetEnumNameOverride","NameOverrideGetRequest","NameOverrideGetResponse","NestFirstGetResponse","NestedFirstGetResponse","NestedGetResponse","NestedSecondGetResponse","NullableObjectPostRes","NullableObjectPostResponse","NullableOneOfRefInObjectPostRes","NullableOneOfRefInObjectPostResponse","NullableOneOfSchemaPostRequestBody","NullableOneOfSchemaPostRes","NullableOneOfSchemaPostResJSON","NullableOneOfSchemaPostResponse","NullableOneOfTypeInObjectPostRes","NullableOneOfTypeInObjectPostResponse","NullableRequiredEmptyObjectPostRequestBody","NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj","NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj","NullableRequiredEmptyObjectPostRequestBodyRequiredObj","NullableRequiredEmptyObjectPostResponse","NullableRequiredPropertyPostRequestBody","NullableRequiredPropertyPostRequestBodyNullableRequiredEnum","NullableRequiredPropertyPostResponse","NullableRequiredSharedObjectPostRequestBody","NullableRequiredSharedObjectPostResponse","NullableTypedObjectPostRes","NullableTypedObjectPostResponse","Oauth2AuthNewResponse","Oauth2AuthNewSecurity","Oauth2AuthResponse","Oauth2AuthSecurity","Oauth2AuthToken","Oauth2OverrideRequest","Oauth2OverrideResponse","Oauth2OverrideSecurity","Oauth2OverrideToken","ObjectCircularReferenceGetResponse","OneOfCircularReferenceGetResponse","OpenIDConnectAuthNewResponse","OpenIDConnectAuthNewSecurity","OpenIDConnectAuthResponse","OpenIDConnectAuthSecurity","OpenIDConnectAuthToken","OverriddenResponse","PaginationCursorBodyRequestBody","PaginationCursorBodyRes","PaginationCursorBodyResponse","PaginationCursorParamsRequest","PaginationCursorParamsRes","PaginationCursorParamsResponse","PaginationLimitOffsetOffsetBodyRes","PaginationLimitOffsetOffsetBodyResponse","PaginationLimitOffsetOffsetParamsRequest","PaginationLimitOffsetOffsetParamsRes","PaginationLimitOffsetOffsetParamsResponse","PaginationLimitOffsetPageBodyRes","PaginationLimitOffsetPageBodyResponse","PaginationLimitOffsetPageParamsRequest","PaginationLimitOffsetPageParamsRes","PaginationLimitOffsetPageParamsResponse","PathParameterJSONRequest","PathParameterJSONRes","PathParameterJSONResponse","PipeDelimitedQueryParamsArrayRequest","PipeDelimitedQueryParamsArrayRes","PipeDelimitedQueryParamsArrayResArgs","PipeDelimitedQueryParamsArrayResponse","PrimitiveTypeOneOfPostRequestBody","PrimitiveTypeOneOfPostRes","PrimitiveTypeOneOfPostResJSON","PrimitiveTypeOneOfPostResponse","PutAnythingIgnoredGeneration200ApplicationJSON","PutAnythingIgnoredGenerationResponse","RequestBodyPostApplicationJSONArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjResponse","RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayOfArrayResponse","RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfMapResponse","RequestBodyPostApplicationJSONArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayResponse","RequestBodyPostApplicationJSONDeepCamelCaseRes","RequestBodyPostApplicationJSONDeepCamelCaseResponse","RequestBodyPostApplicationJSONDeepRes","RequestBodyPostApplicationJSONDeepResponse","RequestBodyPostApplicationJSONMapCamelCaseResponse","RequestBodyPostApplicationJSONMapObjCamelCaseResponse","RequestBodyPostApplicationJSONMapObjResponse","RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONMapOfArrayResponse","RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse","RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapOfMapResponse","RequestBodyPostApplicationJSONMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapResponse","RequestBodyPostApplicationJSONMultipleJSONFilteredRes","RequestBodyPostApplicationJSONMultipleJSONFilteredResponse","RequestBodyPostApplicationJSONSimpleCamelCaseRes","RequestBodyPostApplicationJSONSimpleCamelCaseResponse","RequestBodyPostApplicationJSONSimpleRes","RequestBodyPostApplicationJSONSimpleResponse","RequestBodyPostComplexNumberTypes200ApplicationJSON","RequestBodyPostComplexNumberTypesRequest","RequestBodyPostComplexNumberTypesResponse","RequestBodyPostDefaultsAndConsts200ApplicationJSON","RequestBodyPostDefaultsAndConstsResponse","RequestBodyPostEmptyObject200ApplicationJSON","RequestBodyPostEmptyObject200ApplicationJSONEmpty","RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies","RequestBodyPostEmptyObjectRequestBody","RequestBodyPostEmptyObjectRequestBodyEmpty","RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties","RequestBodyPostEmptyObjectResponse","RequestBodyPostFormDeepRes","RequestBodyPostFormDeepResForm","RequestBodyPostFormDeepResponse","RequestBodyPostFormMapPrimitiveRes","RequestBodyPostFormMapPrimitiveResponse","RequestBodyPostFormSimpleRes","RequestBodyPostFormSimpleResForm","RequestBodyPostFormSimpleResponse","RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesArrayBigIntResponse","RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDateResponse","RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDecimalStrResponse","RequestBodyPostJSONDataTypesBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntResponse","RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntStrResponse","RequestBodyPostJSONDataTypesBoolean200ApplicationJSON","RequestBodyPostJSONDataTypesBooleanResponse","RequestBodyPostJSONDataTypesDate200ApplicationJSON","RequestBodyPostJSONDataTypesDateResponse","RequestBodyPostJSONDataTypesDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesDateTimeResponse","RequestBodyPostJSONDataTypesDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalResponse","RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalStrResponse","RequestBodyPostJSONDataTypesFloat32200ApplicationJSON","RequestBodyPostJSONDataTypesFloat32Response","RequestBodyPostJSONDataTypesInt32200ApplicationJSON","RequestBodyPostJSONDataTypesInt32Response","RequestBodyPostJSONDataTypesInteger200ApplicationJSON","RequestBodyPostJSONDataTypesIntegerResponse","RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesMapBigIntStrResponse","RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesMapDateTimeResponse","RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesMapDecimalResponse","RequestBodyPostJSONDataTypesNumber200ApplicationJSON","RequestBodyPostJSONDataTypesNumberResponse","RequestBodyPostJSONDataTypesString200ApplicationJSON","RequestBodyPostJSONDataTypesStringResponse","RequestBodyPostMultipleContentTypesComponentFilteredRes","RequestBodyPostMultipleContentTypesComponentFilteredResponse","RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON","RequestBodyPostMultipleContentTypesInlineFilteredRes","RequestBodyPostMultipleContentTypesInlineFilteredResponse","RequestBodyPostMultipleContentTypesSplitApplicationJSON","RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitFormRes","RequestBodyPostMultipleContentTypesSplitFormResponse","RequestBodyPostMultipleContentTypesSplitJSONRes","RequestBodyPostMultipleContentTypesSplitJSONResponse","RequestBodyPostMultipleContentTypesSplitMultipartFormData","RequestBodyPostMultipleContentTypesSplitMultipartRes","RequestBodyPostMultipleContentTypesSplitMultipartResponse","RequestBodyPostMultipleContentTypesSplitParamApplicationJSON","RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitParamFormRequest","RequestBodyPostMultipleContentTypesSplitParamFormRes","RequestBodyPostMultipleContentTypesSplitParamFormResponse","RequestBodyPostMultipleContentTypesSplitParamJSONRequest","RequestBodyPostMultipleContentTypesSplitParamJSONRes","RequestBodyPostMultipleContentTypesSplitParamJSONResponse","RequestBodyPostMultipleContentTypesSplitParamMultipartFormData","RequestBodyPostMultipleContentTypesSplitParamMultipartRequest","RequestBodyPostMultipleContentTypesSplitParamMultipartRes","RequestBodyPostMultipleContentTypesSplitParamMultipartResponse","RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNotNullableNotRequiredStringBodyResponse","RequestBodyPostNullArray200ApplicationJSON","RequestBodyPostNullArrayResponse","RequestBodyPostNullDictionary200ApplicationJSON","RequestBodyPostNullDictionaryResponse","RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNullableNotRequiredStringBodyResponse","RequestBodyPostNullableRequiredStringBody200ApplicationJSON","RequestBodyPostNullableRequiredStringBodyResponse","RequestBodyPutBytesRes","RequestBodyPutBytesResponse","RequestBodyPutBytesWithParamsRequest","RequestBodyPutBytesWithParamsRes","RequestBodyPutBytesWithParamsResArgs","RequestBodyPutBytesWithParamsResponse","RequestBodyPutMultipartDeepRes","RequestBodyPutMultipartDeepResForm","RequestBodyPutMultipartDeepResponse","RequestBodyPutMultipartDifferentFileNameRequestBody","RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName","RequestBodyPutMultipartDifferentFileNameRes","RequestBodyPutMultipartDifferentFileNameResponse","RequestBodyPutMultipartFileRequestBody","RequestBodyPutMultipartFileRequestBodyFile","RequestBodyPutMultipartFileRes","RequestBodyPutMultipartFileResponse","RequestBodyPutMultipartSimpleRes","RequestBodyPutMultipartSimpleResForm","RequestBodyPutMultipartSimpleResponse","RequestBodyPutStringRes","RequestBodyPutStringResponse","RequestBodyPutStringWithParamsRequest","RequestBodyPutStringWithParamsRes","RequestBodyPutStringWithParamsResArgs","RequestBodyPutStringWithParamsResponse","RequestBodyReadAndWriteResponse","RequestBodyReadOnlyInputResponse","RequestBodyReadOnlyUnionResponse","RequestBodyReadWriteOnlyUnionResponse","RequestBodyWriteOnlyOutputResponse","RequestBodyWriteOnlyResponse","RequestBodyWriteOnlyUnionResponse","ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON","ResponseBodyAdditionalPropertiesComplexNumbersPostResponse","ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON","ResponseBodyAdditionalPropertiesDatePostResponse","ResponseBodyAdditionalPropertiesPost200ApplicationJSON","ResponseBodyAdditionalPropertiesPostResponse","ResponseBodyBytesGetResponse","ResponseBodyEmptyWithHeadersRequest","ResponseBodyEmptyWithHeadersResponse","ResponseBodyJSONGetResponse","ResponseBodyOptionalGetResponse","ResponseBodyReadOnlyResponse","ResponseBodyStringGetResponse","ResponseBodyXMLGetResponse","ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON","ResponseBodyZeroValueComplexTypePtrsPostResponse","RetriesGetRequest","RetriesGetResponse","RetriesGetRetries","SelectGlobalServerResponse","SelectServerWithIDResponse","ServerWithProtocolTemplateResponse","ServerWithTemplatesGlobalResponse","ServerWithTemplatesResponse","ServersByIDWithTemplatesResponse","SimplePathParameterArraysRequest","SimplePathParameterArraysRes","SimplePathParameterArraysResponse","SimplePathParameterMapsRequest","SimplePathParameterMapsRes","SimplePathParameterMapsResponse","SimplePathParameterObjectsRequest","SimplePathParameterObjectsRes","SimplePathParameterObjectsResponse","SimplePathParameterPrimitivesRequest","SimplePathParameterPrimitivesRes","SimplePathParameterPrimitivesResponse","StatusGetErrorRequest","StatusGetErrorResponse","StatusGetXSpeakeasyErrorsRequest","StatusGetXSpeakeasyErrorsResponse","StronglyTypedOneOfPostRes","StronglyTypedOneOfPostResponse","TelemetrySpeakeasyUserAgentGetRequest","TelemetrySpeakeasyUserAgentGetRes","TelemetrySpeakeasyUserAgentGetResponse","TelemetryUserAgentGetRes","TelemetryUserAgentGetResponse","TypeFromAnchor","TypedObjectNullableOneOfPostRes","TypedObjectNullableOneOfPostResponse","TypedObjectOneOfPostRes","TypedObjectOneOfPostResponse","TypedParameterGenerationGetObj","TypedParameterGenerationGetRequest","TypedParameterGenerationGetResponse","UpdateResourceRequest","UpdateResourceResponse","UsageExamplePost200ApplicationJSON","UsageExamplePost200ApplicationJSONJSON","UsageExamplePostEnumParameter","UsageExamplePostOptEnumParameter","UsageExamplePostRequest","UsageExamplePostRequestBody","UsageExamplePostResponse","UsageExamplePostSecurity","WeaklyTypedOneOfPostRes","WeaklyTypedOneOfPostResponse","API_KEY_AUTH_GLOBAL_NEW_SERVERS","AUTH_GLOBAL_SERVERS","BASIC_AUTH_NEW_SERVERS","CONNECTION_ERROR_GET_SERVERS","MULTIPLE_MIXED_OPTIONS_AUTH_SERVERS","MULTIPLE_MIXED_SCHEME_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_MIXED_SCHEMES_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_SIMPLE_SCHEMES_AUTH_SERVERS","MULTIPLE_SIMPLE_OPTIONS_AUTH_SERVERS","MULTIPLE_SIMPLE_SCHEME_AUTH_SERVERS","OAUTH2_AUTH_NEW_SERVERS","OPEN_ID_CONNECT_AUTH_NEW_SERVERS","PAGINATION_CURSOR_BODY_SERVERS","PAGINATION_CURSOR_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_PARAMS_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_SERVERS","REQUEST_BODY_READ_AND_WRITE_SERVERS","REQUEST_BODY_READ_ONLY_INPUT_SERVERS","REQUEST_BODY_READ_ONLY_UNION_SERVERS","REQUEST_BODY_READ_WRITE_ONLY_UNION_SERVERS","REQUEST_BODY_WRITE_ONLY_OUTPUT_SERVERS","REQUEST_BODY_WRITE_ONLY_SERVERS","REQUEST_BODY_WRITE_ONLY_UNION_SERVERS","RESPONSE_BODY_OPTIONAL_GET_SERVERS","RESPONSE_BODY_READ_ONLY_SERVERS","RETRIES_GET_SERVERS","SELECT_SERVER_WITH_ID_SERVERS","SELECT_SERVER_WITH_ID_SERVER_BROKEN","SELECT_SERVER_WITH_ID_SERVER_VALID","SERVERS_BY_ID_WITH_TEMPLATES_SERVERS","SERVERS_BY_ID_WITH_TEMPLATES_SERVER_MAIN","SERVER_WITH_PROTOCOL_TEMPLATE_SERVERS","SERVER_WITH_PROTOCOL_TEMPLATE_SERVER_MAIN","SERVER_WITH_TEMPLATES_SERVERS","STATUS_GET_X_SPEAKEASY_ERRORS_SERVERS"] +__all__ = ["APIKeyAuthGlobalNewResponse","APIKeyAuthGlobalResponse","APIKeyAuthGlobalToken","APIKeyAuthResponse","APIKeyAuthSecurity","APIKeyAuthToken","AnchorTypesGetResponse","ArrayCircularReferenceGetResponse","AuthGlobalResponse","BasicAuthNewResponse","BasicAuthNewSecurity","BasicAuthRequest","BasicAuthResponse","BasicAuthSecurity","BasicAuthUser","BearerAuthResponse","BearerAuthSecurity","BearerAuthToken","CircularReferenceGetResponse","ComponentBodyAndParamConflictRequest","ComponentBodyAndParamConflictRes","ComponentBodyAndParamConflictResponse","ComponentBodyAndParamNoConflictRequest","ComponentBodyAndParamNoConflictRes","ComponentBodyAndParamNoConflictResponse","ConflictingParamsRequest","ConflictingParamsRes","ConflictingParamsResponse","ConnectionErrorGetResponse","CreateFileRequestBody","CreateFileRequestBodyFile","CreateFileResponse","CreateResourceResponse","DateParamWithDefaultRequest","DateParamWithDefaultResponse","DateTimeParamWithDefaultRequest","DateTimeParamWithDefaultResponse","DecimalParamWithDefaultRequest","DecimalParamWithDefaultResponse","DeepObjectQueryParamsMapRequest","DeepObjectQueryParamsMapRes","DeepObjectQueryParamsMapResArgs","DeepObjectQueryParamsMapResponse","DeepObjectQueryParamsObjectObjArrParam","DeepObjectQueryParamsObjectRequest","DeepObjectQueryParamsObjectRes","DeepObjectQueryParamsObjectResArgs","DeepObjectQueryParamsObjectResponse","DeleteResourceRequest","DeleteResourceResponse","DeprecatedFieldInSchemaPostResponse","DeprecatedObjectInSchemaGet200ApplicationJSON","DeprecatedObjectInSchemaGetResponse","DeprecatedOperationNoCommentsGetRequest","DeprecatedOperationNoCommentsGetResponse","DeprecatedOperationWithCommentsGetRequest","DeprecatedOperationWithCommentsGetResponse","DuplicateParamDuplicateParamResponse","DuplicateParamRequest","DuplicateParamResponse","EmptyObjectGetRequest","EmptyObjectGetResponse","EmptyResponseObjectWithCommentGet200ApplicationOctetStream","EmptyResponseObjectWithCommentGetResponse","FlattenedTypedObjectPostRes","FlattenedTypedObjectPostResponse","FormQueryParamsArrayRequest","FormQueryParamsArrayRes","FormQueryParamsArrayResArgs","FormQueryParamsArrayResponse","FormQueryParamsCamelObjectObjParam","FormQueryParamsCamelObjectObjParamExploded","FormQueryParamsCamelObjectRequest","FormQueryParamsCamelObjectRes","FormQueryParamsCamelObjectResArgs","FormQueryParamsCamelObjectResponse","FormQueryParamsMapRequest","FormQueryParamsMapRes","FormQueryParamsMapResponse","FormQueryParamsObjectRequest","FormQueryParamsObjectRes","FormQueryParamsObjectResArgs","FormQueryParamsObjectResponse","FormQueryParamsPrimitiveRequest","FormQueryParamsPrimitiveRes","FormQueryParamsPrimitiveResArgs","FormQueryParamsPrimitiveResponse","FormQueryParamsRefParamObjectRequest","FormQueryParamsRefParamObjectRes","FormQueryParamsRefParamObjectResArgs","FormQueryParamsRefParamObjectResponse","GetDocumentationPerLanguageRequest","GetDocumentationPerLanguageResponse","GetGlobalNameOverride200ApplicationJSON","GetGlobalNameOverrideResponse","GetResourceRequest","GetResourceResponse","GlobalBearerAuthResponse","GlobalBearerAuthToken","GlobalPathParameterGetRequest","GlobalPathParameterGetRes","GlobalPathParameterGetResponse","GlobalsQueryParameterGetRequest","GlobalsQueryParameterGetRes","GlobalsQueryParameterGetResArgs","GlobalsQueryParameterGetResponse","GroupFirstGetResponse","GroupSecondGetResponse","HeaderParamsArrayRequest","HeaderParamsArrayRes","HeaderParamsArrayResHeaders","HeaderParamsArrayResponse","HeaderParamsMapRequest","HeaderParamsMapRes","HeaderParamsMapResHeaders","HeaderParamsMapResponse","HeaderParamsObjectRequest","HeaderParamsObjectRes","HeaderParamsObjectResHeaders","HeaderParamsObjectResponse","HeaderParamsPrimitiveRequest","HeaderParamsPrimitiveRes","HeaderParamsPrimitiveResHeaders","HeaderParamsPrimitiveResponse","IgnoredGenerationGet200ApplicationJSON","IgnoredGenerationGetResponse","IgnoresPostApplicationJSON","IgnoresPostRequest","IgnoresPostResponse","InlineBodyAndParamConflictRequest","InlineBodyAndParamConflictRequestBody","InlineBodyAndParamConflictRes","InlineBodyAndParamConflictResJSON","InlineBodyAndParamConflictResponse","InlineBodyAndParamNoConflictRequest","InlineBodyAndParamNoConflictRequestBody","InlineBodyAndParamNoConflictRes","InlineBodyAndParamNoConflictResJSON","InlineBodyAndParamNoConflictResponse","JSONQueryParamsObjectRequest","JSONQueryParamsObjectRes","JSONQueryParamsObjectResArgs","JSONQueryParamsObjectResponse","MixedParametersCamelCaseRequest","MixedParametersCamelCaseRes","MixedParametersCamelCaseResArgs","MixedParametersCamelCaseResHeaders","MixedParametersCamelCaseResponse","MixedParametersPrimitivesRequest","MixedParametersPrimitivesRes","MixedParametersPrimitivesResArgs","MixedParametersPrimitivesResHeaders","MixedParametersPrimitivesResponse","MixedQueryParamsRequest","MixedQueryParamsRes","MixedQueryParamsResponse","MixedTypeOneOfPostRequestBody","MixedTypeOneOfPostRes","MixedTypeOneOfPostResJSON","MixedTypeOneOfPostResponse","MultipleMixedOptionsAuthResponse","MultipleMixedOptionsAuthSecurity","MultipleMixedSchemeAuthResponse","MultipleMixedSchemeAuthSecurity","MultipleOptionsWithMixedSchemesAuthResponse","MultipleOptionsWithMixedSchemesAuthSecurity","MultipleOptionsWithMixedSchemesAuthSecurityOption1","MultipleOptionsWithMixedSchemesAuthSecurityOption2","MultipleOptionsWithSimpleSchemesAuthResponse","MultipleOptionsWithSimpleSchemesAuthSecurity","MultipleOptionsWithSimpleSchemesAuthSecurityOption1","MultipleOptionsWithSimpleSchemesAuthSecurityOption2","MultipleSimpleOptionsAuthResponse","MultipleSimpleOptionsAuthSecurity","MultipleSimpleSchemeAuthResponse","MultipleSimpleSchemeAuthSecurity","NameOverrideGetEnumNameOverride","NameOverrideGetRequest","NameOverrideGetResponse","NestFirstGetResponse","NestedFirstGetResponse","NestedGetResponse","NestedSecondGetResponse","NullableObjectPostRes","NullableObjectPostResponse","NullableOneOfRefInObjectPostRes","NullableOneOfRefInObjectPostResponse","NullableOneOfSchemaPostRequestBody","NullableOneOfSchemaPostRes","NullableOneOfSchemaPostResJSON","NullableOneOfSchemaPostResponse","NullableOneOfTypeInObjectPostRes","NullableOneOfTypeInObjectPostResponse","NullableRequiredEmptyObjectPostRequestBody","NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj","NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj","NullableRequiredEmptyObjectPostRequestBodyRequiredObj","NullableRequiredEmptyObjectPostResponse","NullableRequiredPropertyPostRequestBody","NullableRequiredPropertyPostRequestBodyNullableRequiredEnum","NullableRequiredPropertyPostResponse","NullableRequiredSharedObjectPostRequestBody","NullableRequiredSharedObjectPostResponse","NullableTypedObjectPostRes","NullableTypedObjectPostResponse","Oauth2AuthNewResponse","Oauth2AuthNewSecurity","Oauth2AuthResponse","Oauth2AuthSecurity","Oauth2AuthToken","Oauth2OverrideRequest","Oauth2OverrideResponse","Oauth2OverrideSecurity","Oauth2OverrideToken","ObjectCircularReferenceGetResponse","OneOfCircularReferenceGetResponse","OpenIDConnectAuthNewResponse","OpenIDConnectAuthNewSecurity","OpenIDConnectAuthResponse","OpenIDConnectAuthSecurity","OpenIDConnectAuthToken","OverriddenResponse","PaginationCursorBodyRequestBody","PaginationCursorBodyRes","PaginationCursorBodyResponse","PaginationCursorParamsRequest","PaginationCursorParamsRes","PaginationCursorParamsResponse","PaginationLimitOffsetOffsetBodyRes","PaginationLimitOffsetOffsetBodyResponse","PaginationLimitOffsetOffsetParamsRequest","PaginationLimitOffsetOffsetParamsRes","PaginationLimitOffsetOffsetParamsResponse","PaginationLimitOffsetPageBodyRes","PaginationLimitOffsetPageBodyResponse","PaginationLimitOffsetPageParamsRequest","PaginationLimitOffsetPageParamsRes","PaginationLimitOffsetPageParamsResponse","PathParameterJSONRequest","PathParameterJSONRes","PathParameterJSONResponse","PipeDelimitedQueryParamsArrayRequest","PipeDelimitedQueryParamsArrayRes","PipeDelimitedQueryParamsArrayResArgs","PipeDelimitedQueryParamsArrayResponse","PrimitiveTypeOneOfPostRequestBody","PrimitiveTypeOneOfPostRes","PrimitiveTypeOneOfPostResJSON","PrimitiveTypeOneOfPostResponse","PutAnythingIgnoredGeneration200ApplicationJSON","PutAnythingIgnoredGenerationResponse","RequestBodyPostApplicationJSONArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjCamelCaseResponse","RequestBodyPostApplicationJSONArrayObjResponse","RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayOfArrayResponse","RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse","RequestBodyPostApplicationJSONArrayOfMapResponse","RequestBodyPostApplicationJSONArrayOfPrimitiveResponse","RequestBodyPostApplicationJSONArrayResponse","RequestBodyPostApplicationJSONDeepCamelCaseRes","RequestBodyPostApplicationJSONDeepCamelCaseResponse","RequestBodyPostApplicationJSONDeepRes","RequestBodyPostApplicationJSONDeepResponse","RequestBodyPostApplicationJSONMapCamelCaseResponse","RequestBodyPostApplicationJSONMapObjCamelCaseResponse","RequestBodyPostApplicationJSONMapObjResponse","RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse","RequestBodyPostApplicationJSONMapOfArrayResponse","RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse","RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapOfMapResponse","RequestBodyPostApplicationJSONMapOfPrimitiveResponse","RequestBodyPostApplicationJSONMapResponse","RequestBodyPostApplicationJSONMultipleJSONFilteredRes","RequestBodyPostApplicationJSONMultipleJSONFilteredResponse","RequestBodyPostApplicationJSONSimpleCamelCaseRes","RequestBodyPostApplicationJSONSimpleCamelCaseResponse","RequestBodyPostApplicationJSONSimpleRes","RequestBodyPostApplicationJSONSimpleResponse","RequestBodyPostComplexNumberTypes200ApplicationJSON","RequestBodyPostComplexNumberTypesRequest","RequestBodyPostComplexNumberTypesResponse","RequestBodyPostDefaultsAndConsts200ApplicationJSON","RequestBodyPostDefaultsAndConstsResponse","RequestBodyPostEmptyObject200ApplicationJSON","RequestBodyPostEmptyObject200ApplicationJSONEmpty","RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies","RequestBodyPostEmptyObjectRequestBody","RequestBodyPostEmptyObjectRequestBodyEmpty","RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties","RequestBodyPostEmptyObjectResponse","RequestBodyPostFormDeepRes","RequestBodyPostFormDeepResForm","RequestBodyPostFormDeepResponse","RequestBodyPostFormMapPrimitiveRes","RequestBodyPostFormMapPrimitiveResponse","RequestBodyPostFormSimpleRes","RequestBodyPostFormSimpleResForm","RequestBodyPostFormSimpleResponse","RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesArrayBigIntResponse","RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDateResponse","RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesArrayDecimalStrResponse","RequestBodyPostJSONDataTypesBigInt200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntResponse","RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesBigIntStrResponse","RequestBodyPostJSONDataTypesBoolean200ApplicationJSON","RequestBodyPostJSONDataTypesBooleanResponse","RequestBodyPostJSONDataTypesDate200ApplicationJSON","RequestBodyPostJSONDataTypesDateResponse","RequestBodyPostJSONDataTypesDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesDateTimeResponse","RequestBodyPostJSONDataTypesDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalResponse","RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON","RequestBodyPostJSONDataTypesDecimalStrResponse","RequestBodyPostJSONDataTypesFloat32200ApplicationJSON","RequestBodyPostJSONDataTypesFloat32Response","RequestBodyPostJSONDataTypesInt32200ApplicationJSON","RequestBodyPostJSONDataTypesInt32Response","RequestBodyPostJSONDataTypesInteger200ApplicationJSON","RequestBodyPostJSONDataTypesIntegerResponse","RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON","RequestBodyPostJSONDataTypesMapBigIntStrResponse","RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON","RequestBodyPostJSONDataTypesMapDateTimeResponse","RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON","RequestBodyPostJSONDataTypesMapDecimalResponse","RequestBodyPostJSONDataTypesNumber200ApplicationJSON","RequestBodyPostJSONDataTypesNumberResponse","RequestBodyPostJSONDataTypesString200ApplicationJSON","RequestBodyPostJSONDataTypesStringResponse","RequestBodyPostMultipleContentTypesComponentFilteredRes","RequestBodyPostMultipleContentTypesComponentFilteredResponse","RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON","RequestBodyPostMultipleContentTypesInlineFilteredRes","RequestBodyPostMultipleContentTypesInlineFilteredResponse","RequestBodyPostMultipleContentTypesSplitApplicationJSON","RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitFormRes","RequestBodyPostMultipleContentTypesSplitFormResponse","RequestBodyPostMultipleContentTypesSplitJSONRes","RequestBodyPostMultipleContentTypesSplitJSONResponse","RequestBodyPostMultipleContentTypesSplitMultipartFormData","RequestBodyPostMultipleContentTypesSplitMultipartRes","RequestBodyPostMultipleContentTypesSplitMultipartResponse","RequestBodyPostMultipleContentTypesSplitParamApplicationJSON","RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded","RequestBodyPostMultipleContentTypesSplitParamFormRequest","RequestBodyPostMultipleContentTypesSplitParamFormRes","RequestBodyPostMultipleContentTypesSplitParamFormResponse","RequestBodyPostMultipleContentTypesSplitParamJSONRequest","RequestBodyPostMultipleContentTypesSplitParamJSONRes","RequestBodyPostMultipleContentTypesSplitParamJSONResponse","RequestBodyPostMultipleContentTypesSplitParamMultipartFormData","RequestBodyPostMultipleContentTypesSplitParamMultipartRequest","RequestBodyPostMultipleContentTypesSplitParamMultipartRes","RequestBodyPostMultipleContentTypesSplitParamMultipartResponse","RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNotNullableNotRequiredStringBodyResponse","RequestBodyPostNullArray200ApplicationJSON","RequestBodyPostNullArrayResponse","RequestBodyPostNullDictionary200ApplicationJSON","RequestBodyPostNullDictionaryResponse","RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON","RequestBodyPostNullableNotRequiredStringBodyResponse","RequestBodyPostNullableRequiredStringBody200ApplicationJSON","RequestBodyPostNullableRequiredStringBodyResponse","RequestBodyPutBytesRes","RequestBodyPutBytesResponse","RequestBodyPutBytesWithParamsRequest","RequestBodyPutBytesWithParamsRes","RequestBodyPutBytesWithParamsResArgs","RequestBodyPutBytesWithParamsResponse","RequestBodyPutMultipartDeepRes","RequestBodyPutMultipartDeepResForm","RequestBodyPutMultipartDeepResponse","RequestBodyPutMultipartDifferentFileNameRequestBody","RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName","RequestBodyPutMultipartDifferentFileNameRes","RequestBodyPutMultipartDifferentFileNameResponse","RequestBodyPutMultipartFileRequestBody","RequestBodyPutMultipartFileRequestBodyFile","RequestBodyPutMultipartFileRes","RequestBodyPutMultipartFileResponse","RequestBodyPutMultipartSimpleRes","RequestBodyPutMultipartSimpleResForm","RequestBodyPutMultipartSimpleResponse","RequestBodyPutStringRes","RequestBodyPutStringResponse","RequestBodyPutStringWithParamsRequest","RequestBodyPutStringWithParamsRes","RequestBodyPutStringWithParamsResArgs","RequestBodyPutStringWithParamsResponse","RequestBodyReadAndWriteResponse","RequestBodyReadOnlyInputResponse","RequestBodyReadOnlyUnionResponse","RequestBodyReadWriteOnlyUnionResponse","RequestBodyWriteOnlyOutputResponse","RequestBodyWriteOnlyResponse","RequestBodyWriteOnlyUnionResponse","ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON","ResponseBodyAdditionalPropertiesComplexNumbersPostResponse","ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON","ResponseBodyAdditionalPropertiesDatePostResponse","ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON","ResponseBodyAdditionalPropertiesObjectPostResponse","ResponseBodyAdditionalPropertiesPost200ApplicationJSON","ResponseBodyAdditionalPropertiesPostResponse","ResponseBodyBytesGetResponse","ResponseBodyEmptyWithHeadersRequest","ResponseBodyEmptyWithHeadersResponse","ResponseBodyJSONGetResponse","ResponseBodyOptionalGetResponse","ResponseBodyReadOnlyResponse","ResponseBodyStringGetResponse","ResponseBodyXMLGetResponse","ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON","ResponseBodyZeroValueComplexTypePtrsPostResponse","RetriesGetRequest","RetriesGetResponse","RetriesGetRetries","SelectGlobalServerResponse","SelectServerWithIDResponse","ServerWithProtocolTemplateResponse","ServerWithTemplatesGlobalResponse","ServerWithTemplatesResponse","ServersByIDWithTemplatesResponse","SimplePathParameterArraysRequest","SimplePathParameterArraysRes","SimplePathParameterArraysResponse","SimplePathParameterMapsRequest","SimplePathParameterMapsRes","SimplePathParameterMapsResponse","SimplePathParameterObjectsRequest","SimplePathParameterObjectsRes","SimplePathParameterObjectsResponse","SimplePathParameterPrimitivesRequest","SimplePathParameterPrimitivesRes","SimplePathParameterPrimitivesResponse","StatusGetErrorRequest","StatusGetErrorResponse","StatusGetXSpeakeasyErrorsRequest","StatusGetXSpeakeasyErrorsResponse","StronglyTypedOneOfPostRes","StronglyTypedOneOfPostResponse","TelemetrySpeakeasyUserAgentGetRequest","TelemetrySpeakeasyUserAgentGetRes","TelemetrySpeakeasyUserAgentGetResponse","TelemetryUserAgentGetRes","TelemetryUserAgentGetResponse","TypeFromAnchor","TypedObjectNullableOneOfPostRes","TypedObjectNullableOneOfPostResponse","TypedObjectOneOfPostRes","TypedObjectOneOfPostResponse","TypedParameterGenerationGetObj","TypedParameterGenerationGetRequest","TypedParameterGenerationGetResponse","UnionDateNullRes","UnionDateNullResponse","UnionDateTimeNullRes","UnionDateTimeNullResponse","UpdateResourceRequest","UpdateResourceResponse","UsageExamplePost200ApplicationJSON","UsageExamplePost200ApplicationJSONJSON","UsageExamplePostEnumParameter","UsageExamplePostOptEnumParameter","UsageExamplePostRequest","UsageExamplePostRequestBody","UsageExamplePostResponse","UsageExamplePostSecurity","WeaklyTypedOneOfPostRes","WeaklyTypedOneOfPostResponse","API_KEY_AUTH_GLOBAL_NEW_SERVERS","AUTH_GLOBAL_SERVERS","BASIC_AUTH_NEW_SERVERS","CONNECTION_ERROR_GET_SERVERS","MULTIPLE_MIXED_OPTIONS_AUTH_SERVERS","MULTIPLE_MIXED_SCHEME_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_MIXED_SCHEMES_AUTH_SERVERS","MULTIPLE_OPTIONS_WITH_SIMPLE_SCHEMES_AUTH_SERVERS","MULTIPLE_SIMPLE_OPTIONS_AUTH_SERVERS","MULTIPLE_SIMPLE_SCHEME_AUTH_SERVERS","OAUTH2_AUTH_NEW_SERVERS","OPEN_ID_CONNECT_AUTH_NEW_SERVERS","PAGINATION_CURSOR_BODY_SERVERS","PAGINATION_CURSOR_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_OFFSET_PARAMS_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_BODY_SERVERS","PAGINATION_LIMIT_OFFSET_PAGE_PARAMS_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_CAMEL_CASE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_PRIMITIVE_SERVERS","REQUEST_BODY_POST_APPLICATION_JSON_MAP_SERVERS","REQUEST_BODY_READ_AND_WRITE_SERVERS","REQUEST_BODY_READ_ONLY_INPUT_SERVERS","REQUEST_BODY_READ_ONLY_UNION_SERVERS","REQUEST_BODY_READ_WRITE_ONLY_UNION_SERVERS","REQUEST_BODY_WRITE_ONLY_OUTPUT_SERVERS","REQUEST_BODY_WRITE_ONLY_SERVERS","REQUEST_BODY_WRITE_ONLY_UNION_SERVERS","RESPONSE_BODY_OPTIONAL_GET_SERVERS","RESPONSE_BODY_READ_ONLY_SERVERS","RETRIES_GET_SERVERS","SELECT_SERVER_WITH_ID_SERVERS","SELECT_SERVER_WITH_ID_SERVER_BROKEN","SELECT_SERVER_WITH_ID_SERVER_VALID","SERVERS_BY_ID_WITH_TEMPLATES_SERVERS","SERVERS_BY_ID_WITH_TEMPLATES_SERVER_MAIN","SERVER_WITH_PROTOCOL_TEMPLATE_SERVERS","SERVER_WITH_PROTOCOL_TEMPLATE_SERVER_MAIN","SERVER_WITH_TEMPLATES_SERVERS","STATUS_GET_X_SPEAKEASY_ERRORS_SERVERS"] diff --git a/python-client-sdk/src/sdk/models/operations/anchortypesget.py b/python-client-sdk/src/sdk/models/operations/anchortypesget.py index 61dd844df..40049eecb 100755 --- a/python-client-sdk/src/sdk/models/operations/anchortypesget.py +++ b/python-client-sdk/src/sdk/models/operations/anchortypesget.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TypeFromAnchor: r"""A successful response that contains the simpleObject sent in the request body""" @@ -22,7 +21,6 @@ class TypeFromAnchor: - @dataclasses.dataclass class AnchorTypesGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/apikeyauth.py b/python-client-sdk/src/sdk/models/operations/apikeyauth.py index 588b41eac..c55875675 100755 --- a/python-client-sdk/src/sdk/models/operations/apikeyauth.py +++ b/python-client-sdk/src/sdk/models/operations/apikeyauth.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class APIKeyAuthSecurity: api_key_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) @@ -17,7 +16,6 @@ class APIKeyAuthSecurity: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class APIKeyAuthToken: r"""Successful authentication.""" @@ -27,7 +25,6 @@ class APIKeyAuthToken: - @dataclasses.dataclass class APIKeyAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/apikeyauthglobal.py b/python-client-sdk/src/sdk/models/operations/apikeyauthglobal.py index c831aea4f..42d689d11 100755 --- a/python-client-sdk/src/sdk/models/operations/apikeyauthglobal.py +++ b/python-client-sdk/src/sdk/models/operations/apikeyauthglobal.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class APIKeyAuthGlobalToken: r"""Successful authentication.""" @@ -19,7 +18,6 @@ class APIKeyAuthGlobalToken: - @dataclasses.dataclass class APIKeyAuthGlobalResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/apikeyauthglobalnew.py b/python-client-sdk/src/sdk/models/operations/apikeyauthglobalnew.py index 508e0e70c..9e38d3671 100755 --- a/python-client-sdk/src/sdk/models/operations/apikeyauthglobalnew.py +++ b/python-client-sdk/src/sdk/models/operations/apikeyauthglobalnew.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class APIKeyAuthGlobalNewResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/arraycircularreferenceget.py b/python-client-sdk/src/sdk/models/operations/arraycircularreferenceget.py index 6c581167b..09cebbba8 100755 --- a/python-client-sdk/src/sdk/models/operations/arraycircularreferenceget.py +++ b/python-client-sdk/src/sdk/models/operations/arraycircularreferenceget.py @@ -4,8 +4,7 @@ import dataclasses import requests as requests_http from ..shared import arraycircularreferenceobject as shared_arraycircularreferenceobject -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass @@ -14,7 +13,7 @@ class ArrayCircularReferenceGetResponse: r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - array_circular_reference_object: Optional[list[shared_arraycircularreferenceobject.ArrayCircularReferenceObject]] = dataclasses.field(default=None) + array_circular_reference_object: Optional[List[shared_arraycircularreferenceobject.ArrayCircularReferenceObject]] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/authglobal.py b/python-client-sdk/src/sdk/models/operations/authglobal.py index 9c4e25cef..168113014 100755 --- a/python-client-sdk/src/sdk/models/operations/authglobal.py +++ b/python-client-sdk/src/sdk/models/operations/authglobal.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class AuthGlobalResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/basicauth.py b/python-client-sdk/src/sdk/models/operations/basicauth.py index 4f1d305c3..26fe53f6b 100755 --- a/python-client-sdk/src/sdk/models/operations/basicauth.py +++ b/python-client-sdk/src/sdk/models/operations/basicauth.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class BasicAuthSecurity: password: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'basic', 'field_name': 'password' }}) @@ -17,7 +16,6 @@ class BasicAuthSecurity: - @dataclasses.dataclass class BasicAuthRequest: passwd: str = dataclasses.field(metadata={'path_param': { 'field_name': 'passwd', 'style': 'simple', 'explode': False }}) @@ -27,7 +25,6 @@ class BasicAuthRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class BasicAuthUser: r"""Successful authentication.""" @@ -37,7 +34,6 @@ class BasicAuthUser: - @dataclasses.dataclass class BasicAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/basicauthnew.py b/python-client-sdk/src/sdk/models/operations/basicauthnew.py index 34e92d7cb..717e8bd50 100755 --- a/python-client-sdk/src/sdk/models/operations/basicauthnew.py +++ b/python-client-sdk/src/sdk/models/operations/basicauthnew.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class BasicAuthNewSecurity: password: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'basic', 'field_name': 'password' }}) @@ -19,7 +18,6 @@ class BasicAuthNewSecurity: - @dataclasses.dataclass class BasicAuthNewResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/bearerauth.py b/python-client-sdk/src/sdk/models/operations/bearerauth.py index 1fa4d8090..c887b4297 100755 --- a/python-client-sdk/src/sdk/models/operations/bearerauth.py +++ b/python-client-sdk/src/sdk/models/operations/bearerauth.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class BearerAuthSecurity: bearer_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) @@ -17,7 +16,6 @@ class BearerAuthSecurity: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class BearerAuthToken: r"""Successful authentication.""" @@ -27,7 +25,6 @@ class BearerAuthToken: - @dataclasses.dataclass class BearerAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/circularreferenceget.py b/python-client-sdk/src/sdk/models/operations/circularreferenceget.py index 019d34772..cf0449386 100755 --- a/python-client-sdk/src/sdk/models/operations/circularreferenceget.py +++ b/python-client-sdk/src/sdk/models/operations/circularreferenceget.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class CircularReferenceGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/componentbodyandparamconflict.py b/python-client-sdk/src/sdk/models/operations/componentbodyandparamconflict.py index e80ef399e..659dfba18 100755 --- a/python-client-sdk/src/sdk/models/operations/componentbodyandparamconflict.py +++ b/python-client-sdk/src/sdk/models/operations/componentbodyandparamconflict.py @@ -6,8 +6,7 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -19,11 +18,10 @@ class ComponentBodyAndParamConflictRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ComponentBodyAndParamConflictRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) json: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) r"""A simple object that uses all our supported primitive types and enums and has optional properties. https://docs.speakeasyapi.dev - A link to the external docs. @@ -32,7 +30,6 @@ class ComponentBodyAndParamConflictRes: - @dataclasses.dataclass class ComponentBodyAndParamConflictResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/componentbodyandparamnoconflict.py b/python-client-sdk/src/sdk/models/operations/componentbodyandparamnoconflict.py index e29dd5fff..f803e98bd 100755 --- a/python-client-sdk/src/sdk/models/operations/componentbodyandparamnoconflict.py +++ b/python-client-sdk/src/sdk/models/operations/componentbodyandparamnoconflict.py @@ -6,8 +6,7 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -19,11 +18,10 @@ class ComponentBodyAndParamNoConflictRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ComponentBodyAndParamNoConflictRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) json: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) r"""A simple object that uses all our supported primitive types and enums and has optional properties. https://docs.speakeasyapi.dev - A link to the external docs. @@ -32,7 +30,6 @@ class ComponentBodyAndParamNoConflictRes: - @dataclasses.dataclass class ComponentBodyAndParamNoConflictResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/conflictingparams.py b/python-client-sdk/src/sdk/models/operations/conflictingparams.py index 68be0b7e0..180f523ff 100755 --- a/python-client-sdk/src/sdk/models/operations/conflictingparams.py +++ b/python-client-sdk/src/sdk/models/operations/conflictingparams.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -18,17 +17,15 @@ class ConflictingParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ConflictingParamsRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) url: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url') }}) - @dataclasses.dataclass class ConflictingParamsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/connectionerrorget.py b/python-client-sdk/src/sdk/models/operations/connectionerrorget.py index f938161dd..1de4eedc1 100755 --- a/python-client-sdk/src/sdk/models/operations/connectionerrorget.py +++ b/python-client-sdk/src/sdk/models/operations/connectionerrorget.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class ConnectionErrorGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/createfile.py b/python-client-sdk/src/sdk/models/operations/createfile.py index 699769c07..570e9272f 100755 --- a/python-client-sdk/src/sdk/models/operations/createfile.py +++ b/python-client-sdk/src/sdk/models/operations/createfile.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class CreateFileRequestBodyFile: content: bytes = dataclasses.field(metadata={'multipart_form': { 'content': True }}) @@ -16,7 +15,6 @@ class CreateFileRequestBodyFile: - @dataclasses.dataclass class CreateFileRequestBody: file: Optional[CreateFileRequestBodyFile] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }}) @@ -24,7 +22,6 @@ class CreateFileRequestBody: - @dataclasses.dataclass class CreateFileResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/createresource.py b/python-client-sdk/src/sdk/models/operations/createresource.py index a1fc71205..ff4a9529c 100755 --- a/python-client-sdk/src/sdk/models/operations/createresource.py +++ b/python-client-sdk/src/sdk/models/operations/createresource.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class CreateResourceResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/dateparamwithdefault.py b/python-client-sdk/src/sdk/models/operations/dateparamwithdefault.py new file mode 100755 index 000000000..73bba7682 --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/dateparamwithdefault.py @@ -0,0 +1,28 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import dateutil.parser +import requests as requests_http +from datetime import date +from typing import Optional + + +@dataclasses.dataclass +class DateParamWithDefaultRequest: + date_input: date = dataclasses.field(default=dateutil.parser.parse('2023-10-13').date(), metadata={'query_param': { 'field_name': 'dateInput', 'style': 'form', 'explode': True }}) + r"""A date parameter with a default value""" + + + + +@dataclasses.dataclass +class DateParamWithDefaultResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + + diff --git a/python-client-sdk/src/sdk/models/operations/datetimeparamwithdefault.py b/python-client-sdk/src/sdk/models/operations/datetimeparamwithdefault.py new file mode 100755 index 000000000..d78cddd4b --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/datetimeparamwithdefault.py @@ -0,0 +1,28 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import dateutil.parser +import requests as requests_http +from datetime import datetime +from typing import Optional + + +@dataclasses.dataclass +class DateTimeParamWithDefaultRequest: + date_time_input: datetime = dataclasses.field(default=dateutil.parser.isoparse('2023-10-13T12:42:42.999+00:00'), metadata={'query_param': { 'field_name': 'dateTimeInput', 'style': 'form', 'explode': True }}) + r"""A date time parameter with a default value""" + + + + +@dataclasses.dataclass +class DateTimeParamWithDefaultResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + + diff --git a/python-client-sdk/src/sdk/models/operations/decimalparamwithdefault.py b/python-client-sdk/src/sdk/models/operations/decimalparamwithdefault.py new file mode 100755 index 000000000..e18a7db31 --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/decimalparamwithdefault.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from decimal import Decimal +from typing import Optional + + +@dataclasses.dataclass +class DecimalParamWithDefaultRequest: + decimal_input: Decimal = dataclasses.field(default=Decimal('903275809834567386763'), metadata={'query_param': { 'field_name': 'decimalInput', 'style': 'form', 'explode': True }}) + r"""A decimal parameter with a default value""" + + + + +@dataclasses.dataclass +class DecimalParamWithDefaultResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + + diff --git a/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsmap.py b/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsmap.py index 0df2adfd9..d615a77f0 100755 --- a/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsmap.py +++ b/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsmap.py @@ -5,36 +5,32 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional, Union - +from typing import Dict, List, Optional, Union @dataclasses.dataclass class DeepObjectQueryParamsMapRequest: - map_param: dict[str, str] = dataclasses.field(metadata={'query_param': { 'field_name': 'mapParam', 'style': 'deepObject', 'explode': True }}) - map_arr_param: Optional[dict[str, list[str]]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapArrParam', 'style': 'deepObject', 'explode': True }}) + map_param: Dict[str, str] = dataclasses.field(metadata={'query_param': { 'field_name': 'mapParam', 'style': 'deepObject', 'explode': True }}) + map_arr_param: Optional[Dict[str, List[str]]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapArrParam', 'style': 'deepObject', 'explode': True }}) - @dataclasses.dataclass class DeepObjectQueryParamsMapResArgs: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeepObjectQueryParamsMapRes: r"""OK""" - args: dict[str, Union[str, list[str]]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, Union[str, List[str]]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) url: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url') }}) - @dataclasses.dataclass class DeepObjectQueryParamsMapResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsobject.py b/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsobject.py index 77886a0b3..79d0895e9 100755 --- a/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsobject.py +++ b/python-client-sdk/src/sdk/models/operations/deepobjectqueryparamsobject.py @@ -6,18 +6,16 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass class DeepObjectQueryParamsObjectObjArrParam: - arr: Optional[list[str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arr' }}) + arr: Optional[List[str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arr' }}) - @dataclasses.dataclass class DeepObjectQueryParamsObjectRequest: obj_param: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'query_param': { 'field_name': 'objParam', 'style': 'deepObject', 'explode': True }}) @@ -28,10 +26,9 @@ class DeepObjectQueryParamsObjectRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeepObjectQueryParamsObjectResArgs: - obj_arr_param_arr: list[str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('objArrParam[arr]') }}) + obj_arr_param_arr: List[str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('objArrParam[arr]') }}) obj_param_any: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('objParam[any]') }}) obj_param_bool: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('objParam[bool]') }}) obj_param_bool_opt: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('objParam[boolOpt]') }}) @@ -55,7 +52,6 @@ class DeepObjectQueryParamsObjectResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeepObjectQueryParamsObjectRes: r"""OK""" @@ -65,7 +61,6 @@ class DeepObjectQueryParamsObjectRes: - @dataclasses.dataclass class DeepObjectQueryParamsObjectResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/deleteresource.py b/python-client-sdk/src/sdk/models/operations/deleteresource.py index 62858d8d1..25feedde6 100755 --- a/python-client-sdk/src/sdk/models/operations/deleteresource.py +++ b/python-client-sdk/src/sdk/models/operations/deleteresource.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class DeleteResourceRequest: resource_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'resourceId', 'style': 'simple', 'explode': False }}) @@ -14,7 +13,6 @@ class DeleteResourceRequest: - @dataclasses.dataclass class DeleteResourceResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/deprecatedfieldinschemapost.py b/python-client-sdk/src/sdk/models/operations/deprecatedfieldinschemapost.py index 768bdd8d1..4c640aad7 100755 --- a/python-client-sdk/src/sdk/models/operations/deprecatedfieldinschemapost.py +++ b/python-client-sdk/src/sdk/models/operations/deprecatedfieldinschemapost.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class DeprecatedFieldInSchemaPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/deprecatedobjectinschemaget.py b/python-client-sdk/src/sdk/models/operations/deprecatedobjectinschemaget.py index dab8e7f22..4ded8ae42 100755 --- a/python-client-sdk/src/sdk/models/operations/deprecatedobjectinschemaget.py +++ b/python-client-sdk/src/sdk/models/operations/deprecatedobjectinschemaget.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeprecatedObjectInSchemaGet200ApplicationJSON: r"""A successful response that contains a deprecatedObject sent in the request body""" @@ -20,7 +19,6 @@ class DeprecatedObjectInSchemaGet200ApplicationJSON: - @dataclasses.dataclass class DeprecatedObjectInSchemaGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/deprecatedoperationnocommentsget.py b/python-client-sdk/src/sdk/models/operations/deprecatedoperationnocommentsget.py index 000fde373..657d2703e 100755 --- a/python-client-sdk/src/sdk/models/operations/deprecatedoperationnocommentsget.py +++ b/python-client-sdk/src/sdk/models/operations/deprecatedoperationnocommentsget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class DeprecatedOperationNoCommentsGetRequest: deprecated_parameter: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'deprecatedParameter', 'style': 'form', 'explode': True }}) @@ -15,7 +14,6 @@ class DeprecatedOperationNoCommentsGetRequest: - @dataclasses.dataclass class DeprecatedOperationNoCommentsGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/deprecatedoperationwithcommentsget.py b/python-client-sdk/src/sdk/models/operations/deprecatedoperationwithcommentsget.py index e36ee34e2..c120d0067 100755 --- a/python-client-sdk/src/sdk/models/operations/deprecatedoperationwithcommentsget.py +++ b/python-client-sdk/src/sdk/models/operations/deprecatedoperationwithcommentsget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class DeprecatedOperationWithCommentsGetRequest: deprecated_parameter: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'deprecatedParameter', 'style': 'form', 'explode': True }}) @@ -20,7 +19,6 @@ class DeprecatedOperationWithCommentsGetRequest: - @dataclasses.dataclass class DeprecatedOperationWithCommentsGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/duplicateparam.py b/python-client-sdk/src/sdk/models/operations/duplicateparam.py index 19af589ac..7394d9686 100755 --- a/python-client-sdk/src/sdk/models/operations/duplicateparam.py +++ b/python-client-sdk/src/sdk/models/operations/duplicateparam.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class DuplicateParamRequest: duplicate_param_request: str = dataclasses.field(metadata={'path_param': { 'field_name': 'duplicateParamRequest', 'style': 'simple', 'explode': False }}) @@ -17,7 +16,6 @@ class DuplicateParamRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DuplicateParamDuplicateParamResponse: r"""OK""" @@ -26,7 +24,6 @@ class DuplicateParamDuplicateParamResponse: - @dataclasses.dataclass class DuplicateParamResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/emptyobjectget.py b/python-client-sdk/src/sdk/models/operations/emptyobjectget.py index b3931e2a0..0701c0383 100755 --- a/python-client-sdk/src/sdk/models/operations/emptyobjectget.py +++ b/python-client-sdk/src/sdk/models/operations/emptyobjectget.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class EmptyObjectGetRequest: empty_object: shared_emptyobjectparam.EmptyObjectParam = dataclasses.field(metadata={'path_param': { 'field_name': 'emptyObject', 'style': 'simple', 'explode': False }}) @@ -15,7 +14,6 @@ class EmptyObjectGetRequest: - @dataclasses.dataclass class EmptyObjectGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/emptyresponseobjectwithcommentget.py b/python-client-sdk/src/sdk/models/operations/emptyresponseobjectwithcommentget.py index bcdc37d3e..05f12316d 100755 --- a/python-client-sdk/src/sdk/models/operations/emptyresponseobjectwithcommentget.py +++ b/python-client-sdk/src/sdk/models/operations/emptyresponseobjectwithcommentget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class EmptyResponseObjectWithCommentGet200ApplicationOctetStream: r"""OK""" @@ -14,7 +13,6 @@ class EmptyResponseObjectWithCommentGet200ApplicationOctetStream: - @dataclasses.dataclass class EmptyResponseObjectWithCommentGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/flattenedtypedobjectpost.py b/python-client-sdk/src/sdk/models/operations/flattenedtypedobjectpost.py index e332e57f6..e15013b4b 100755 --- a/python-client-sdk/src/sdk/models/operations/flattenedtypedobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/flattenedtypedobjectpost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FlattenedTypedObjectPostRes: r"""OK""" @@ -19,7 +18,6 @@ class FlattenedTypedObjectPostRes: - @dataclasses.dataclass class FlattenedTypedObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/formqueryparamsarray.py b/python-client-sdk/src/sdk/models/operations/formqueryparamsarray.py index c9775cfb2..266caabcf 100755 --- a/python-client-sdk/src/sdk/models/operations/formqueryparamsarray.py +++ b/python-client-sdk/src/sdk/models/operations/formqueryparamsarray.py @@ -5,30 +5,27 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass class FormQueryParamsArrayRequest: - arr_param: Optional[list[str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParam', 'style': 'form', 'explode': False }}) - arr_param_exploded: Optional[list[int]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParamExploded', 'style': 'form', 'explode': True }}) + arr_param: Optional[List[str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParam', 'style': 'form', 'explode': False }}) + arr_param_exploded: Optional[List[int]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParamExploded', 'style': 'form', 'explode': True }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsArrayResArgs: arr_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrParam') }}) - arr_param_exploded: list[str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrParamExploded') }}) + arr_param_exploded: List[str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrParamExploded') }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsArrayRes: r"""OK""" @@ -38,7 +35,6 @@ class FormQueryParamsArrayRes: - @dataclasses.dataclass class FormQueryParamsArrayResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/formqueryparamscamelobject.py b/python-client-sdk/src/sdk/models/operations/formqueryparamscamelobject.py new file mode 100755 index 000000000..e5b9c8273 --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/formqueryparamscamelobject.py @@ -0,0 +1,65 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from dataclasses_json import Undefined, dataclass_json +from sdk import utils +from typing import Optional + + +@dataclasses.dataclass +class FormQueryParamsCamelObjectObjParam: + encoded_count: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'encoded_count' }}) + encoded_term: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'encoded_term' }}) + + + + +@dataclasses.dataclass +class FormQueryParamsCamelObjectObjParamExploded: + item_count: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'item_count' }}) + search_term: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'search_term' }}) + + + + +@dataclasses.dataclass +class FormQueryParamsCamelObjectRequest: + obj_param_exploded: FormQueryParamsCamelObjectObjParamExploded = dataclasses.field(metadata={'query_param': { 'field_name': 'obj_param_exploded', 'style': 'form', 'explode': True }}) + obj_param: Optional[FormQueryParamsCamelObjectObjParam] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'obj_param', 'style': 'form', 'explode': False }}) + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class FormQueryParamsCamelObjectResArgs: + item_count: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('item_count') }}) + search_term: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('search_term') }}) + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class FormQueryParamsCamelObjectRes: + r"""OK""" + args: FormQueryParamsCamelObjectResArgs = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + url: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url') }}) + + + + +@dataclasses.dataclass +class FormQueryParamsCamelObjectResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + res: Optional[FormQueryParamsCamelObjectRes] = dataclasses.field(default=None) + r"""OK""" + + diff --git a/python-client-sdk/src/sdk/models/operations/formqueryparamsmap.py b/python-client-sdk/src/sdk/models/operations/formqueryparamsmap.py index 3e3897058..b8061e725 100755 --- a/python-client-sdk/src/sdk/models/operations/formqueryparamsmap.py +++ b/python-client-sdk/src/sdk/models/operations/formqueryparamsmap.py @@ -5,30 +5,27 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass class FormQueryParamsMapRequest: - map_param: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapParam', 'style': 'form', 'explode': False }}) - map_param_exploded: Optional[dict[str, int]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapParamExploded', 'style': 'form', 'explode': True }}) + map_param: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapParam', 'style': 'form', 'explode': False }}) + map_param_exploded: Optional[Dict[str, int]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapParamExploded', 'style': 'form', 'explode': True }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsMapRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) url: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url') }}) - @dataclasses.dataclass class FormQueryParamsMapResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/formqueryparamsobject.py b/python-client-sdk/src/sdk/models/operations/formqueryparamsobject.py index ed614b0e4..c0b6cc81f 100755 --- a/python-client-sdk/src/sdk/models/operations/formqueryparamsobject.py +++ b/python-client-sdk/src/sdk/models/operations/formqueryparamsobject.py @@ -9,7 +9,6 @@ from typing import Optional - @dataclasses.dataclass class FormQueryParamsObjectRequest: obj_param_exploded: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'query_param': { 'field_name': 'objParamExploded', 'style': 'form', 'explode': True }}) @@ -21,7 +20,6 @@ class FormQueryParamsObjectRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsObjectResArgs: any: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }}) @@ -50,7 +48,6 @@ class FormQueryParamsObjectResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsObjectRes: r"""OK""" @@ -60,7 +57,6 @@ class FormQueryParamsObjectRes: - @dataclasses.dataclass class FormQueryParamsObjectResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/formqueryparamsprimitive.py b/python-client-sdk/src/sdk/models/operations/formqueryparamsprimitive.py index 045717006..b6e22dc08 100755 --- a/python-client-sdk/src/sdk/models/operations/formqueryparamsprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/formqueryparamsprimitive.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class FormQueryParamsPrimitiveRequest: bool_param: bool = dataclasses.field(metadata={'query_param': { 'field_name': 'boolParam', 'style': 'form', 'explode': True }}) @@ -20,7 +19,6 @@ class FormQueryParamsPrimitiveRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsPrimitiveResArgs: bool_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('boolParam') }}) @@ -32,7 +30,6 @@ class FormQueryParamsPrimitiveResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsPrimitiveRes: r"""OK""" @@ -42,7 +39,6 @@ class FormQueryParamsPrimitiveRes: - @dataclasses.dataclass class FormQueryParamsPrimitiveResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/formqueryparamsrefparamobject.py b/python-client-sdk/src/sdk/models/operations/formqueryparamsrefparamobject.py index 78f2681c5..31d5fa496 100755 --- a/python-client-sdk/src/sdk/models/operations/formqueryparamsrefparamobject.py +++ b/python-client-sdk/src/sdk/models/operations/formqueryparamsrefparamobject.py @@ -10,7 +10,6 @@ from typing import Optional - @dataclasses.dataclass class FormQueryParamsRefParamObjectRequest: ref_obj_param: Optional[shared_refqueryparamobj.RefQueryParamObj] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'refObjParam', 'style': 'form', 'explode': False }}) @@ -20,7 +19,6 @@ class FormQueryParamsRefParamObjectRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsRefParamObjectResArgs: bool: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) @@ -33,7 +31,6 @@ class FormQueryParamsRefParamObjectResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FormQueryParamsRefParamObjectRes: r"""OK""" @@ -43,7 +40,6 @@ class FormQueryParamsRefParamObjectRes: - @dataclasses.dataclass class FormQueryParamsRefParamObjectResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/getdocumentationperlanguage.py b/python-client-sdk/src/sdk/models/operations/getdocumentationperlanguage.py index 330e6d50a..f7e8c46dd 100755 --- a/python-client-sdk/src/sdk/models/operations/getdocumentationperlanguage.py +++ b/python-client-sdk/src/sdk/models/operations/getdocumentationperlanguage.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class GetDocumentationPerLanguageRequest: language: str = dataclasses.field(metadata={'query_param': { 'field_name': 'language', 'style': 'form', 'explode': True }}) @@ -15,7 +14,6 @@ class GetDocumentationPerLanguageRequest: - @dataclasses.dataclass class GetDocumentationPerLanguageResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/getglobalnameoverride.py b/python-client-sdk/src/sdk/models/operations/getglobalnameoverride.py index 7f69d6faf..6c11f9c19 100755 --- a/python-client-sdk/src/sdk/models/operations/getglobalnameoverride.py +++ b/python-client-sdk/src/sdk/models/operations/getglobalnameoverride.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetGlobalNameOverride200ApplicationJSON: r"""A successful response that contains the simpleObject sent in the request body""" @@ -22,7 +21,6 @@ class GetGlobalNameOverride200ApplicationJSON: - @dataclasses.dataclass class GetGlobalNameOverrideResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/getresource.py b/python-client-sdk/src/sdk/models/operations/getresource.py index 6c6c4a51f..270ee43a3 100755 --- a/python-client-sdk/src/sdk/models/operations/getresource.py +++ b/python-client-sdk/src/sdk/models/operations/getresource.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class GetResourceRequest: resource_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'resourceId', 'style': 'simple', 'explode': False }}) @@ -15,7 +14,6 @@ class GetResourceRequest: - @dataclasses.dataclass class GetResourceResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/globalbearerauth.py b/python-client-sdk/src/sdk/models/operations/globalbearerauth.py index 864b40636..66e942309 100755 --- a/python-client-sdk/src/sdk/models/operations/globalbearerauth.py +++ b/python-client-sdk/src/sdk/models/operations/globalbearerauth.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GlobalBearerAuthToken: r"""Successful authentication.""" @@ -19,7 +18,6 @@ class GlobalBearerAuthToken: - @dataclasses.dataclass class GlobalBearerAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/globalpathparameterget.py b/python-client-sdk/src/sdk/models/operations/globalpathparameterget.py index 0556ee005..710eb0448 100755 --- a/python-client-sdk/src/sdk/models/operations/globalpathparameterget.py +++ b/python-client-sdk/src/sdk/models/operations/globalpathparameterget.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class GlobalPathParameterGetRequest: global_path_param: Optional[int] = dataclasses.field(default=None, metadata={'path_param': { 'field_name': 'globalPathParam', 'style': 'simple', 'explode': False }}) @@ -17,7 +16,6 @@ class GlobalPathParameterGetRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GlobalPathParameterGetRes: r"""OK""" @@ -26,7 +24,6 @@ class GlobalPathParameterGetRes: - @dataclasses.dataclass class GlobalPathParameterGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/globalsqueryparameterget.py b/python-client-sdk/src/sdk/models/operations/globalsqueryparameterget.py index fec7a141d..b5b4478e8 100755 --- a/python-client-sdk/src/sdk/models/operations/globalsqueryparameterget.py +++ b/python-client-sdk/src/sdk/models/operations/globalsqueryparameterget.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class GlobalsQueryParameterGetRequest: global_query_param: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'globalQueryParam', 'style': 'form', 'explode': True }}) @@ -17,7 +16,6 @@ class GlobalsQueryParameterGetRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GlobalsQueryParameterGetResArgs: global_query_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('globalQueryParam') }}) @@ -26,7 +24,6 @@ class GlobalsQueryParameterGetResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GlobalsQueryParameterGetRes: r"""OK""" @@ -35,7 +32,6 @@ class GlobalsQueryParameterGetRes: - @dataclasses.dataclass class GlobalsQueryParameterGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/groupfirstget.py b/python-client-sdk/src/sdk/models/operations/groupfirstget.py index 9912badc5..5004e37e8 100755 --- a/python-client-sdk/src/sdk/models/operations/groupfirstget.py +++ b/python-client-sdk/src/sdk/models/operations/groupfirstget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class GroupFirstGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/groupsecondget.py b/python-client-sdk/src/sdk/models/operations/groupsecondget.py index 0fc11b7e7..bf60e67b3 100755 --- a/python-client-sdk/src/sdk/models/operations/groupsecondget.py +++ b/python-client-sdk/src/sdk/models/operations/groupsecondget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class GroupSecondGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/headerparamsarray.py b/python-client-sdk/src/sdk/models/operations/headerparamsarray.py index 67ff7cad2..bcb53e9f0 100755 --- a/python-client-sdk/src/sdk/models/operations/headerparamsarray.py +++ b/python-client-sdk/src/sdk/models/operations/headerparamsarray.py @@ -5,19 +5,17 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass class HeaderParamsArrayRequest: - x_header_array: list[str] = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Array', 'style': 'simple', 'explode': False }}) + x_header_array: List[str] = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Array', 'style': 'simple', 'explode': False }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsArrayResHeaders: x_header_array: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('X-Header-Array') }}) @@ -26,7 +24,6 @@ class HeaderParamsArrayResHeaders: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsArrayRes: r"""OK""" @@ -35,7 +32,6 @@ class HeaderParamsArrayRes: - @dataclasses.dataclass class HeaderParamsArrayResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/headerparamsmap.py b/python-client-sdk/src/sdk/models/operations/headerparamsmap.py index c5559772f..b01cdf356 100755 --- a/python-client-sdk/src/sdk/models/operations/headerparamsmap.py +++ b/python-client-sdk/src/sdk/models/operations/headerparamsmap.py @@ -5,20 +5,18 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass class HeaderParamsMapRequest: - x_header_map: dict[str, str] = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Map', 'style': 'simple', 'explode': False }}) - x_header_map_explode: dict[str, str] = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Map-Explode', 'style': 'simple', 'explode': True }}) + x_header_map: Dict[str, str] = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Map', 'style': 'simple', 'explode': False }}) + x_header_map_explode: Dict[str, str] = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Map-Explode', 'style': 'simple', 'explode': True }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsMapResHeaders: x_header_map: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('X-Header-Map') }}) @@ -28,7 +26,6 @@ class HeaderParamsMapResHeaders: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsMapRes: r"""OK""" @@ -37,7 +34,6 @@ class HeaderParamsMapRes: - @dataclasses.dataclass class HeaderParamsMapResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/headerparamsobject.py b/python-client-sdk/src/sdk/models/operations/headerparamsobject.py index c9eac80c1..7a0465e7f 100755 --- a/python-client-sdk/src/sdk/models/operations/headerparamsobject.py +++ b/python-client-sdk/src/sdk/models/operations/headerparamsobject.py @@ -9,7 +9,6 @@ from typing import Optional - @dataclasses.dataclass class HeaderParamsObjectRequest: x_header_obj: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Obj', 'style': 'simple', 'explode': False }}) @@ -21,7 +20,6 @@ class HeaderParamsObjectRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsObjectResHeaders: x_header_obj: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('X-Header-Obj') }}) @@ -31,7 +29,6 @@ class HeaderParamsObjectResHeaders: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsObjectRes: r"""OK""" @@ -40,7 +37,6 @@ class HeaderParamsObjectRes: - @dataclasses.dataclass class HeaderParamsObjectResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/headerparamsprimitive.py b/python-client-sdk/src/sdk/models/operations/headerparamsprimitive.py index 16c9108da..6e9bfd804 100755 --- a/python-client-sdk/src/sdk/models/operations/headerparamsprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/headerparamsprimitive.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class HeaderParamsPrimitiveRequest: x_header_boolean: bool = dataclasses.field(metadata={'header': { 'field_name': 'X-Header-Boolean', 'style': 'simple', 'explode': False }}) @@ -20,7 +19,6 @@ class HeaderParamsPrimitiveRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsPrimitiveResHeaders: x_header_boolean: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('X-Header-Boolean') }}) @@ -32,7 +30,6 @@ class HeaderParamsPrimitiveResHeaders: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HeaderParamsPrimitiveRes: r"""OK""" @@ -41,7 +38,6 @@ class HeaderParamsPrimitiveRes: - @dataclasses.dataclass class HeaderParamsPrimitiveResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/ignoredgenerationget.py b/python-client-sdk/src/sdk/models/operations/ignoredgenerationget.py index 68cd31f8e..372295953 100755 --- a/python-client-sdk/src/sdk/models/operations/ignoredgenerationget.py +++ b/python-client-sdk/src/sdk/models/operations/ignoredgenerationget.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class IgnoredGenerationGet200ApplicationJSON: r"""A successful response that contains the simpleObject sent in the request body""" @@ -22,7 +21,6 @@ class IgnoredGenerationGet200ApplicationJSON: - @dataclasses.dataclass class IgnoredGenerationGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/ignorespost.py b/python-client-sdk/src/sdk/models/operations/ignorespost.py index 89e4fcf08..e8a519a33 100755 --- a/python-client-sdk/src/sdk/models/operations/ignorespost.py +++ b/python-client-sdk/src/sdk/models/operations/ignorespost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class IgnoresPostApplicationJSON: callback_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('callbackUrl'), 'exclude': lambda f: f is None }}) @@ -19,7 +18,6 @@ class IgnoresPostApplicationJSON: - @dataclasses.dataclass class IgnoresPostRequest: request_body: IgnoresPostApplicationJSON = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) @@ -28,7 +26,6 @@ class IgnoresPostRequest: - @dataclasses.dataclass class IgnoresPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/inlinebodyandparamconflict.py b/python-client-sdk/src/sdk/models/operations/inlinebodyandparamconflict.py index 0b3dd410a..296d5fcca 100755 --- a/python-client-sdk/src/sdk/models/operations/inlinebodyandparamconflict.py +++ b/python-client-sdk/src/sdk/models/operations/inlinebodyandparamconflict.py @@ -5,11 +5,10 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class InlineBodyAndParamConflictRequestBody: str_: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('str') }}) @@ -17,7 +16,6 @@ class InlineBodyAndParamConflictRequestBody: - @dataclasses.dataclass class InlineBodyAndParamConflictRequest: request_body: InlineBodyAndParamConflictRequestBody = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) @@ -27,7 +25,6 @@ class InlineBodyAndParamConflictRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class InlineBodyAndParamConflictResJSON: str_: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('str') }}) @@ -36,17 +33,15 @@ class InlineBodyAndParamConflictResJSON: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class InlineBodyAndParamConflictRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) json: InlineBodyAndParamConflictResJSON = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class InlineBodyAndParamConflictResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/inlinebodyandparamnoconflict.py b/python-client-sdk/src/sdk/models/operations/inlinebodyandparamnoconflict.py index 8d0776ce6..854054b0e 100755 --- a/python-client-sdk/src/sdk/models/operations/inlinebodyandparamnoconflict.py +++ b/python-client-sdk/src/sdk/models/operations/inlinebodyandparamnoconflict.py @@ -5,11 +5,10 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class InlineBodyAndParamNoConflictRequestBody: body_str: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bodyStr') }}) @@ -17,7 +16,6 @@ class InlineBodyAndParamNoConflictRequestBody: - @dataclasses.dataclass class InlineBodyAndParamNoConflictRequest: param_str: str = dataclasses.field(metadata={'query_param': { 'field_name': 'paramStr', 'style': 'form', 'explode': True }}) @@ -27,7 +25,6 @@ class InlineBodyAndParamNoConflictRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class InlineBodyAndParamNoConflictResJSON: body_str: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bodyStr') }}) @@ -36,17 +33,15 @@ class InlineBodyAndParamNoConflictResJSON: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class InlineBodyAndParamNoConflictRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) json: InlineBodyAndParamNoConflictResJSON = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class InlineBodyAndParamNoConflictResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/jsonqueryparamsobject.py b/python-client-sdk/src/sdk/models/operations/jsonqueryparamsobject.py index f3efc3bcb..87b9652e3 100755 --- a/python-client-sdk/src/sdk/models/operations/jsonqueryparamsobject.py +++ b/python-client-sdk/src/sdk/models/operations/jsonqueryparamsobject.py @@ -10,7 +10,6 @@ from typing import Optional - @dataclasses.dataclass class JSONQueryParamsObjectRequest: deep_obj_param: shared_deepobject.DeepObject = dataclasses.field(metadata={'query_param': { 'field_name': 'deepObjParam', 'serialization': 'json' }}) @@ -21,7 +20,6 @@ class JSONQueryParamsObjectRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class JSONQueryParamsObjectResArgs: deep_obj_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('deepObjParam') }}) @@ -31,7 +29,6 @@ class JSONQueryParamsObjectResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class JSONQueryParamsObjectRes: r"""OK""" @@ -41,7 +38,6 @@ class JSONQueryParamsObjectRes: - @dataclasses.dataclass class JSONQueryParamsObjectResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/mixedparameterscamelcase.py b/python-client-sdk/src/sdk/models/operations/mixedparameterscamelcase.py index ca9f726d4..6f9cc424e 100755 --- a/python-client-sdk/src/sdk/models/operations/mixedparameterscamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/mixedparameterscamelcase.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class MixedParametersCamelCaseRequest: header_param: str = dataclasses.field(metadata={'header': { 'field_name': 'header_param', 'style': 'simple', 'explode': False }}) @@ -19,7 +18,6 @@ class MixedParametersCamelCaseRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedParametersCamelCaseResArgs: query_string_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('query_string_param') }}) @@ -28,7 +26,6 @@ class MixedParametersCamelCaseResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedParametersCamelCaseResHeaders: header_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Header-Param') }}) @@ -37,7 +34,6 @@ class MixedParametersCamelCaseResHeaders: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedParametersCamelCaseRes: r"""OK""" @@ -48,7 +44,6 @@ class MixedParametersCamelCaseRes: - @dataclasses.dataclass class MixedParametersCamelCaseResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/mixedparametersprimitives.py b/python-client-sdk/src/sdk/models/operations/mixedparametersprimitives.py index 0f5901567..ea0ed5fa6 100755 --- a/python-client-sdk/src/sdk/models/operations/mixedparametersprimitives.py +++ b/python-client-sdk/src/sdk/models/operations/mixedparametersprimitives.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class MixedParametersPrimitivesRequest: header_param: str = dataclasses.field(metadata={'header': { 'field_name': 'headerParam', 'style': 'simple', 'explode': False }}) @@ -19,7 +18,6 @@ class MixedParametersPrimitivesRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedParametersPrimitivesResArgs: query_string_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('queryStringParam') }}) @@ -28,7 +26,6 @@ class MixedParametersPrimitivesResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedParametersPrimitivesResHeaders: headerparam: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Headerparam') }}) @@ -37,7 +34,6 @@ class MixedParametersPrimitivesResHeaders: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedParametersPrimitivesRes: r"""OK""" @@ -48,7 +44,6 @@ class MixedParametersPrimitivesRes: - @dataclasses.dataclass class MixedParametersPrimitivesResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/mixedqueryparams.py b/python-client-sdk/src/sdk/models/operations/mixedqueryparams.py index 4b6b9a83b..c0bc98df0 100755 --- a/python-client-sdk/src/sdk/models/operations/mixedqueryparams.py +++ b/python-client-sdk/src/sdk/models/operations/mixedqueryparams.py @@ -6,8 +6,7 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -23,17 +22,15 @@ class MixedQueryParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedQueryParamsRes: r"""OK""" - args: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) + args: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args') }}) url: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url') }}) - @dataclasses.dataclass class MixedQueryParamsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/mixedtypeoneofpost.py b/python-client-sdk/src/sdk/models/operations/mixedtypeoneofpost.py index f903c1af9..0fec04dc1 100755 --- a/python-client-sdk/src/sdk/models/operations/mixedtypeoneofpost.py +++ b/python-client-sdk/src/sdk/models/operations/mixedtypeoneofpost.py @@ -9,20 +9,17 @@ from typing import Optional, Union - @dataclasses.dataclass class MixedTypeOneOfPostRequestBody: pass - @dataclasses.dataclass class MixedTypeOneOfPostResJSON: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MixedTypeOneOfPostRes: r"""OK""" @@ -31,7 +28,6 @@ class MixedTypeOneOfPostRes: - @dataclasses.dataclass class MixedTypeOneOfPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/multiplemixedoptionsauth.py b/python-client-sdk/src/sdk/models/operations/multiplemixedoptionsauth.py index dfda9563d..ff37738df 100755 --- a/python-client-sdk/src/sdk/models/operations/multiplemixedoptionsauth.py +++ b/python-client-sdk/src/sdk/models/operations/multiplemixedoptionsauth.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class MultipleMixedOptionsAuthSecurity: api_key_auth_new: Optional[str] = dataclasses.field(default=None, metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -20,7 +19,6 @@ class MultipleMixedOptionsAuthSecurity: - @dataclasses.dataclass class MultipleMixedOptionsAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/multiplemixedschemeauth.py b/python-client-sdk/src/sdk/models/operations/multiplemixedschemeauth.py index 15d036327..dca4da358 100755 --- a/python-client-sdk/src/sdk/models/operations/multiplemixedschemeauth.py +++ b/python-client-sdk/src/sdk/models/operations/multiplemixedschemeauth.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class MultipleMixedSchemeAuthSecurity: api_key_auth_new: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -20,7 +19,6 @@ class MultipleMixedSchemeAuthSecurity: - @dataclasses.dataclass class MultipleMixedSchemeAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/multipleoptionswithmixedschemesauth.py b/python-client-sdk/src/sdk/models/operations/multipleoptionswithmixedschemesauth.py index 674f3b1db..746b47b25 100755 --- a/python-client-sdk/src/sdk/models/operations/multipleoptionswithmixedschemesauth.py +++ b/python-client-sdk/src/sdk/models/operations/multipleoptionswithmixedschemesauth.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class MultipleOptionsWithMixedSchemesAuthSecurityOption1: api_key_auth_new: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -20,7 +19,6 @@ class MultipleOptionsWithMixedSchemesAuthSecurityOption1: - @dataclasses.dataclass class MultipleOptionsWithMixedSchemesAuthSecurityOption2: api_key_auth_new: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -29,7 +27,6 @@ class MultipleOptionsWithMixedSchemesAuthSecurityOption2: - @dataclasses.dataclass class MultipleOptionsWithMixedSchemesAuthSecurity: option1: Optional[MultipleOptionsWithMixedSchemesAuthSecurityOption1] = dataclasses.field(default=None, metadata={'security': { 'option': True }}) @@ -38,7 +35,6 @@ class MultipleOptionsWithMixedSchemesAuthSecurity: - @dataclasses.dataclass class MultipleOptionsWithMixedSchemesAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/multipleoptionswithsimpleschemesauth.py b/python-client-sdk/src/sdk/models/operations/multipleoptionswithsimpleschemesauth.py index d3af76e58..7b035c804 100755 --- a/python-client-sdk/src/sdk/models/operations/multipleoptionswithsimpleschemesauth.py +++ b/python-client-sdk/src/sdk/models/operations/multipleoptionswithsimpleschemesauth.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class MultipleOptionsWithSimpleSchemesAuthSecurityOption1: api_key_auth_new: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -19,7 +18,6 @@ class MultipleOptionsWithSimpleSchemesAuthSecurityOption1: - @dataclasses.dataclass class MultipleOptionsWithSimpleSchemesAuthSecurityOption2: api_key_auth_new: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -28,7 +26,6 @@ class MultipleOptionsWithSimpleSchemesAuthSecurityOption2: - @dataclasses.dataclass class MultipleOptionsWithSimpleSchemesAuthSecurity: option1: Optional[MultipleOptionsWithSimpleSchemesAuthSecurityOption1] = dataclasses.field(default=None, metadata={'security': { 'option': True }}) @@ -37,7 +34,6 @@ class MultipleOptionsWithSimpleSchemesAuthSecurity: - @dataclasses.dataclass class MultipleOptionsWithSimpleSchemesAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/multiplesimpleoptionsauth.py b/python-client-sdk/src/sdk/models/operations/multiplesimpleoptionsauth.py index 464164a4b..662a5d68a 100755 --- a/python-client-sdk/src/sdk/models/operations/multiplesimpleoptionsauth.py +++ b/python-client-sdk/src/sdk/models/operations/multiplesimpleoptionsauth.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class MultipleSimpleOptionsAuthSecurity: api_key_auth_new: Optional[str] = dataclasses.field(default=None, metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -19,7 +18,6 @@ class MultipleSimpleOptionsAuthSecurity: - @dataclasses.dataclass class MultipleSimpleOptionsAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/multiplesimpleschemeauth.py b/python-client-sdk/src/sdk/models/operations/multiplesimpleschemeauth.py index 54de1ba51..8209f36f5 100755 --- a/python-client-sdk/src/sdk/models/operations/multiplesimpleschemeauth.py +++ b/python-client-sdk/src/sdk/models/operations/multiplesimpleschemeauth.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class MultipleSimpleSchemeAuthSecurity: api_key_auth_new: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'x-api-key' }}) @@ -19,7 +18,6 @@ class MultipleSimpleSchemeAuthSecurity: - @dataclasses.dataclass class MultipleSimpleSchemeAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nameoverrideget.py b/python-client-sdk/src/sdk/models/operations/nameoverrideget.py index 227a0268e..e9f8eb3b9 100755 --- a/python-client-sdk/src/sdk/models/operations/nameoverrideget.py +++ b/python-client-sdk/src/sdk/models/operations/nameoverrideget.py @@ -16,7 +16,6 @@ class NameOverrideGetEnumNameOverride(str, Enum): VALUE3 = 'value3' - @dataclasses.dataclass class NameOverrideGetRequest: test_enum_query_param: NameOverrideGetEnumNameOverride = dataclasses.field(metadata={'query_param': { 'field_name': 'enumNameOverride', 'style': 'form', 'explode': True }}) @@ -27,7 +26,6 @@ class NameOverrideGetRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class OverriddenResponse: r"""A successful response that contains the simpleObject sent in the request body""" @@ -39,7 +37,6 @@ class OverriddenResponse: - @dataclasses.dataclass class NameOverrideGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nestedfirstget.py b/python-client-sdk/src/sdk/models/operations/nestedfirstget.py index 6ee4c90c3..0d457de8b 100755 --- a/python-client-sdk/src/sdk/models/operations/nestedfirstget.py +++ b/python-client-sdk/src/sdk/models/operations/nestedfirstget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class NestedFirstGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nestedget.py b/python-client-sdk/src/sdk/models/operations/nestedget.py index 2706d9165..24f507a0c 100755 --- a/python-client-sdk/src/sdk/models/operations/nestedget.py +++ b/python-client-sdk/src/sdk/models/operations/nestedget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class NestedGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nestedsecondget.py b/python-client-sdk/src/sdk/models/operations/nestedsecondget.py index 7aca87a39..69a2d8a4c 100755 --- a/python-client-sdk/src/sdk/models/operations/nestedsecondget.py +++ b/python-client-sdk/src/sdk/models/operations/nestedsecondget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class NestedSecondGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nestfirstget.py b/python-client-sdk/src/sdk/models/operations/nestfirstget.py index ccc60df42..f2c2f15b9 100755 --- a/python-client-sdk/src/sdk/models/operations/nestfirstget.py +++ b/python-client-sdk/src/sdk/models/operations/nestfirstget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class NestFirstGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullableobjectpost.py b/python-client-sdk/src/sdk/models/operations/nullableobjectpost.py index b392db7d4..2651d759b 100755 --- a/python-client-sdk/src/sdk/models/operations/nullableobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/nullableobjectpost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableObjectPostRes: r"""OK""" @@ -19,7 +18,6 @@ class NullableObjectPostRes: - @dataclasses.dataclass class NullableObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullableoneofrefinobjectpost.py b/python-client-sdk/src/sdk/models/operations/nullableoneofrefinobjectpost.py index b33fd2b90..2352b678f 100755 --- a/python-client-sdk/src/sdk/models/operations/nullableoneofrefinobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/nullableoneofrefinobjectpost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableOneOfRefInObjectPostRes: r"""OK""" @@ -19,7 +18,6 @@ class NullableOneOfRefInObjectPostRes: - @dataclasses.dataclass class NullableOneOfRefInObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullableoneofschemapost.py b/python-client-sdk/src/sdk/models/operations/nullableoneofschemapost.py index f641121df..88d387bc5 100755 --- a/python-client-sdk/src/sdk/models/operations/nullableoneofschemapost.py +++ b/python-client-sdk/src/sdk/models/operations/nullableoneofschemapost.py @@ -10,20 +10,17 @@ from typing import Optional, Union - @dataclasses.dataclass class NullableOneOfSchemaPostRequestBody: pass - @dataclasses.dataclass class NullableOneOfSchemaPostResJSON: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableOneOfSchemaPostRes: r"""OK""" @@ -32,7 +29,6 @@ class NullableOneOfSchemaPostRes: - @dataclasses.dataclass class NullableOneOfSchemaPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullableoneoftypeinobjectpost.py b/python-client-sdk/src/sdk/models/operations/nullableoneoftypeinobjectpost.py index 2f55a7ade..498168c20 100755 --- a/python-client-sdk/src/sdk/models/operations/nullableoneoftypeinobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/nullableoneoftypeinobjectpost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableOneOfTypeInObjectPostRes: r"""OK""" @@ -19,7 +18,6 @@ class NullableOneOfTypeInObjectPostRes: - @dataclasses.dataclass class NullableOneOfTypeInObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullablerequiredemptyobjectpost.py b/python-client-sdk/src/sdk/models/operations/nullablerequiredemptyobjectpost.py index 4c3f170a2..d40462ea0 100755 --- a/python-client-sdk/src/sdk/models/operations/nullablerequiredemptyobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/nullablerequiredemptyobjectpost.py @@ -8,26 +8,22 @@ from typing import Optional - @dataclasses.dataclass class NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj: pass - @dataclasses.dataclass class NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj: pass - @dataclasses.dataclass class NullableRequiredEmptyObjectPostRequestBodyRequiredObj: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableRequiredEmptyObjectPostRequestBody: nullable_required_obj: Optional[NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableRequiredObj') }}) @@ -37,7 +33,6 @@ class NullableRequiredEmptyObjectPostRequestBody: - @dataclasses.dataclass class NullableRequiredEmptyObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullablerequiredpropertypost.py b/python-client-sdk/src/sdk/models/operations/nullablerequiredpropertypost.py index 799757bcb..7733db8a5 100755 --- a/python-client-sdk/src/sdk/models/operations/nullablerequiredpropertypost.py +++ b/python-client-sdk/src/sdk/models/operations/nullablerequiredpropertypost.py @@ -6,7 +6,7 @@ from dataclasses_json import Undefined, dataclass_json from enum import Enum from sdk import utils -from typing import Optional +from typing import List, Optional class NullableRequiredPropertyPostRequestBodyNullableRequiredEnum(str, Enum): FIRST = 'first' @@ -14,10 +14,9 @@ class NullableRequiredPropertyPostRequestBodyNullableRequiredEnum(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableRequiredPropertyPostRequestBody: - nullable_required_array: Optional[list[float]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableRequiredArray') }}) + nullable_required_array: Optional[List[float]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableRequiredArray') }}) nullable_required_enum: Optional[NullableRequiredPropertyPostRequestBodyNullableRequiredEnum] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableRequiredEnum') }}) nullable_required_int: Optional[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableRequiredInt') }}) nullable_optional_int: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableOptionalInt') }}) @@ -25,7 +24,6 @@ class NullableRequiredPropertyPostRequestBody: - @dataclasses.dataclass class NullableRequiredPropertyPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullablerequiredsharedobjectpost.py b/python-client-sdk/src/sdk/models/operations/nullablerequiredsharedobjectpost.py index 839a304d2..f238c05e8 100755 --- a/python-client-sdk/src/sdk/models/operations/nullablerequiredsharedobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/nullablerequiredsharedobjectpost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableRequiredSharedObjectPostRequestBody: nullable_required_obj: Optional[shared_nullableobject.NullableObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableRequiredObj') }}) @@ -19,7 +18,6 @@ class NullableRequiredSharedObjectPostRequestBody: - @dataclasses.dataclass class NullableRequiredSharedObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/nullabletypedobjectpost.py b/python-client-sdk/src/sdk/models/operations/nullabletypedobjectpost.py index 6ef2c0061..da1b2714e 100755 --- a/python-client-sdk/src/sdk/models/operations/nullabletypedobjectpost.py +++ b/python-client-sdk/src/sdk/models/operations/nullabletypedobjectpost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableTypedObjectPostRes: r"""OK""" @@ -19,7 +18,6 @@ class NullableTypedObjectPostRes: - @dataclasses.dataclass class NullableTypedObjectPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/oauth2auth.py b/python-client-sdk/src/sdk/models/operations/oauth2auth.py index 64c9f265d..265acf2ac 100755 --- a/python-client-sdk/src/sdk/models/operations/oauth2auth.py +++ b/python-client-sdk/src/sdk/models/operations/oauth2auth.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class Oauth2AuthSecurity: oauth2: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'oauth2', 'field_name': 'Authorization' }}) @@ -17,7 +16,6 @@ class Oauth2AuthSecurity: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class Oauth2AuthToken: r"""Successful authentication.""" @@ -27,7 +25,6 @@ class Oauth2AuthToken: - @dataclasses.dataclass class Oauth2AuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/oauth2authnew.py b/python-client-sdk/src/sdk/models/operations/oauth2authnew.py index 3584ff126..1cc7415e8 100755 --- a/python-client-sdk/src/sdk/models/operations/oauth2authnew.py +++ b/python-client-sdk/src/sdk/models/operations/oauth2authnew.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class Oauth2AuthNewSecurity: oauth2: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'oauth2', 'field_name': 'Authorization' }}) @@ -18,7 +17,6 @@ class Oauth2AuthNewSecurity: - @dataclasses.dataclass class Oauth2AuthNewResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/oauth2override.py b/python-client-sdk/src/sdk/models/operations/oauth2override.py index e6efad316..d178e17c3 100755 --- a/python-client-sdk/src/sdk/models/operations/oauth2override.py +++ b/python-client-sdk/src/sdk/models/operations/oauth2override.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class Oauth2OverrideSecurity: oauth2: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'oauth2', 'field_name': 'Authorization' }}) @@ -16,14 +15,12 @@ class Oauth2OverrideSecurity: - @dataclasses.dataclass class Oauth2OverrideRequest: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class Oauth2OverrideToken: r"""Successful authentication.""" @@ -33,7 +30,6 @@ class Oauth2OverrideToken: - @dataclasses.dataclass class Oauth2OverrideResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/objectcircularreferenceget.py b/python-client-sdk/src/sdk/models/operations/objectcircularreferenceget.py index 3255032d2..f83d1116b 100755 --- a/python-client-sdk/src/sdk/models/operations/objectcircularreferenceget.py +++ b/python-client-sdk/src/sdk/models/operations/objectcircularreferenceget.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class ObjectCircularReferenceGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/oneofcircularreferenceget.py b/python-client-sdk/src/sdk/models/operations/oneofcircularreferenceget.py index d782d4386..e21228d2b 100755 --- a/python-client-sdk/src/sdk/models/operations/oneofcircularreferenceget.py +++ b/python-client-sdk/src/sdk/models/operations/oneofcircularreferenceget.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class OneOfCircularReferenceGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/openidconnectauth.py b/python-client-sdk/src/sdk/models/operations/openidconnectauth.py index 7b3ee1bdc..a766a64b2 100755 --- a/python-client-sdk/src/sdk/models/operations/openidconnectauth.py +++ b/python-client-sdk/src/sdk/models/operations/openidconnectauth.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class OpenIDConnectAuthSecurity: open_id_connect: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'openIdConnect', 'field_name': 'Authorization' }}) @@ -17,7 +16,6 @@ class OpenIDConnectAuthSecurity: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class OpenIDConnectAuthToken: r"""Successful authentication.""" @@ -27,7 +25,6 @@ class OpenIDConnectAuthToken: - @dataclasses.dataclass class OpenIDConnectAuthResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/openidconnectauthnew.py b/python-client-sdk/src/sdk/models/operations/openidconnectauthnew.py index b2210ff2a..101e38031 100755 --- a/python-client-sdk/src/sdk/models/operations/openidconnectauthnew.py +++ b/python-client-sdk/src/sdk/models/operations/openidconnectauthnew.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class OpenIDConnectAuthNewSecurity: open_id_connect: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'openIdConnect', 'field_name': 'Authorization' }}) @@ -18,7 +17,6 @@ class OpenIDConnectAuthNewSecurity: - @dataclasses.dataclass class OpenIDConnectAuthNewResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/paginationcursorbody.py b/python-client-sdk/src/sdk/models/operations/paginationcursorbody.py index 57c4b06ff..bac418e8c 100755 --- a/python-client-sdk/src/sdk/models/operations/paginationcursorbody.py +++ b/python-client-sdk/src/sdk/models/operations/paginationcursorbody.py @@ -5,7 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Callable, Optional +from typing import Callable, List, Optional PAGINATION_CURSOR_BODY_SERVERS = [ "http://localhost:35456", @@ -13,7 +13,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationCursorBodyRequestBody: cursor: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('cursor') }}) @@ -22,17 +21,15 @@ class PaginationCursorBodyRequestBody: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationCursorBodyRes: r"""OK""" num_pages: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numPages') }}) - result_array: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) + result_array: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) - @dataclasses.dataclass class PaginationCursorBodyResponse: next: Callable[[], Optional[PaginationCursorBodyResponse]] = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/paginationcursorparams.py b/python-client-sdk/src/sdk/models/operations/paginationcursorparams.py index 50b62704d..a414dc1f1 100755 --- a/python-client-sdk/src/sdk/models/operations/paginationcursorparams.py +++ b/python-client-sdk/src/sdk/models/operations/paginationcursorparams.py @@ -5,14 +5,13 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Callable, Optional +from typing import Callable, List, Optional PAGINATION_CURSOR_PARAMS_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class PaginationCursorParamsRequest: cursor: int = dataclasses.field(metadata={'query_param': { 'field_name': 'cursor', 'style': 'form', 'explode': True }}) @@ -21,17 +20,15 @@ class PaginationCursorParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationCursorParamsRes: r"""OK""" num_pages: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numPages') }}) - result_array: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) + result_array: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) - @dataclasses.dataclass class PaginationCursorParamsResponse: next: Callable[[], Optional[PaginationCursorParamsResponse]] = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetbody.py b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetbody.py index ec5f86c65..0a3905a5e 100755 --- a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetbody.py +++ b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetbody.py @@ -5,7 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Callable, Optional +from typing import Callable, List, Optional PAGINATION_LIMIT_OFFSET_OFFSET_BODY_SERVERS = [ "http://localhost:35456", @@ -13,17 +13,15 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationLimitOffsetOffsetBodyRes: r"""OK""" num_pages: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numPages') }}) - result_array: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) + result_array: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) - @dataclasses.dataclass class PaginationLimitOffsetOffsetBodyResponse: next: Callable[[], Optional[PaginationLimitOffsetOffsetBodyResponse]] = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetparams.py b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetparams.py index 57e2d0b84..5e976a3df 100755 --- a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetparams.py +++ b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetoffsetparams.py @@ -5,14 +5,13 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Callable, Optional +from typing import Callable, List, Optional PAGINATION_LIMIT_OFFSET_OFFSET_PARAMS_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class PaginationLimitOffsetOffsetParamsRequest: limit: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': True }}) @@ -22,17 +21,15 @@ class PaginationLimitOffsetOffsetParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationLimitOffsetOffsetParamsRes: r"""OK""" num_pages: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numPages') }}) - result_array: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) + result_array: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) - @dataclasses.dataclass class PaginationLimitOffsetOffsetParamsResponse: next: Callable[[], Optional[PaginationLimitOffsetOffsetParamsResponse]] = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpagebody.py b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpagebody.py index 2dff5f72c..133953a17 100755 --- a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpagebody.py +++ b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpagebody.py @@ -5,7 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Callable, Optional +from typing import Callable, List, Optional PAGINATION_LIMIT_OFFSET_PAGE_BODY_SERVERS = [ "http://localhost:35456", @@ -13,17 +13,15 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationLimitOffsetPageBodyRes: r"""OK""" num_pages: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numPages') }}) - result_array: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) + result_array: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) - @dataclasses.dataclass class PaginationLimitOffsetPageBodyResponse: next: Callable[[], Optional[PaginationLimitOffsetPageBodyResponse]] = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpageparams.py b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpageparams.py index da38adf2b..23c583758 100755 --- a/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpageparams.py +++ b/python-client-sdk/src/sdk/models/operations/paginationlimitoffsetpageparams.py @@ -5,14 +5,13 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Callable, Optional +from typing import Callable, List, Optional PAGINATION_LIMIT_OFFSET_PAGE_PARAMS_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class PaginationLimitOffsetPageParamsRequest: page: int = dataclasses.field(metadata={'query_param': { 'field_name': 'page', 'style': 'form', 'explode': True }}) @@ -21,17 +20,15 @@ class PaginationLimitOffsetPageParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PaginationLimitOffsetPageParamsRes: r"""OK""" num_pages: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numPages') }}) - result_array: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) + result_array: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('resultArray') }}) - @dataclasses.dataclass class PaginationLimitOffsetPageParamsResponse: next: Callable[[], Optional[PaginationLimitOffsetPageParamsResponse]] = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/pathparameterjson.py b/python-client-sdk/src/sdk/models/operations/pathparameterjson.py index 4144cc060..6a37502f3 100755 --- a/python-client-sdk/src/sdk/models/operations/pathparameterjson.py +++ b/python-client-sdk/src/sdk/models/operations/pathparameterjson.py @@ -9,7 +9,6 @@ from typing import Optional - @dataclasses.dataclass class PathParameterJSONRequest: json_obj: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'path_param': { 'field_name': 'jsonObj', 'serialization': 'json' }}) @@ -19,7 +18,6 @@ class PathParameterJSONRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PathParameterJSONRes: r"""OK""" @@ -28,7 +26,6 @@ class PathParameterJSONRes: - @dataclasses.dataclass class PathParameterJSONResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/pipedelimitedqueryparamsarray.py b/python-client-sdk/src/sdk/models/operations/pipedelimitedqueryparamsarray.py index b5209132c..e65f46272 100755 --- a/python-client-sdk/src/sdk/models/operations/pipedelimitedqueryparamsarray.py +++ b/python-client-sdk/src/sdk/models/operations/pipedelimitedqueryparamsarray.py @@ -6,15 +6,14 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, List, Optional @dataclasses.dataclass class PipeDelimitedQueryParamsArrayRequest: - arr_param: Optional[list[str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParam', 'style': 'pipeDelimited', 'explode': False }}) - arr_param_exploded: Optional[list[int]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParamExploded', 'style': 'pipeDelimited', 'explode': True }}) - map_param: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapParam', 'style': 'pipeDelimited', 'explode': False }}) + arr_param: Optional[List[str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParam', 'style': 'pipeDelimited', 'explode': False }}) + arr_param_exploded: Optional[List[int]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'arrParamExploded', 'style': 'pipeDelimited', 'explode': True }}) + map_param: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mapParam', 'style': 'pipeDelimited', 'explode': False }}) obj_param: Optional[shared_simpleobject.SimpleObject] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'objParam', 'style': 'pipeDelimited', 'explode': False }}) r"""A simple object that uses all our supported primitive types and enums and has optional properties.""" @@ -22,17 +21,15 @@ class PipeDelimitedQueryParamsArrayRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PipeDelimitedQueryParamsArrayResArgs: arr_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrParam') }}) - arr_param_exploded: list[str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrParamExploded') }}) + arr_param_exploded: List[str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrParamExploded') }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PipeDelimitedQueryParamsArrayRes: r"""OK""" @@ -42,7 +39,6 @@ class PipeDelimitedQueryParamsArrayRes: - @dataclasses.dataclass class PipeDelimitedQueryParamsArrayResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/primitivetypeoneofpost.py b/python-client-sdk/src/sdk/models/operations/primitivetypeoneofpost.py index f5139047b..f1c2af9ed 100755 --- a/python-client-sdk/src/sdk/models/operations/primitivetypeoneofpost.py +++ b/python-client-sdk/src/sdk/models/operations/primitivetypeoneofpost.py @@ -8,20 +8,17 @@ from typing import Optional, Union - @dataclasses.dataclass class PrimitiveTypeOneOfPostRequestBody: pass - @dataclasses.dataclass class PrimitiveTypeOneOfPostResJSON: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PrimitiveTypeOneOfPostRes: r"""OK""" @@ -30,7 +27,6 @@ class PrimitiveTypeOneOfPostRes: - @dataclasses.dataclass class PrimitiveTypeOneOfPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/put_anything_ignoredgeneration.py b/python-client-sdk/src/sdk/models/operations/put_anything_ignoredgeneration.py index 05b4bbc2c..ae16e1fbd 100755 --- a/python-client-sdk/src/sdk/models/operations/put_anything_ignoredgeneration.py +++ b/python-client-sdk/src/sdk/models/operations/put_anything_ignoredgeneration.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class PutAnythingIgnoredGeneration200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class PutAnythingIgnoredGeneration200ApplicationJSON: - @dataclasses.dataclass class PutAnythingIgnoredGenerationResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarray.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarray.py index 0ef3dbe02..191cb6f7d 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarray.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarray.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobject as shared_simpleobject -from typing import Optional +from typing import List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONArrayResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - simple_objects: Optional[list[shared_simpleobject.SimpleObject]] = dataclasses.field(default=None) + simple_objects: Optional[List[shared_simpleobject.SimpleObject]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarraycamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarraycamelcase.py index 4396f999f..51ed7038b 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarraycamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarraycamelcase.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase -from typing import Optional +from typing import List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_CAMEL_CASE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayCamelCaseResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONArrayCamelCaseResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - simple_object_camel_cases: Optional[list[shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None) + simple_object_camel_cases: Optional[List[shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobj.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobj.py index d17f20ab1..a7c1a673e 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobj.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobj.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayObjResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobjcamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobjcamelcase.py index 5c28d29d5..129bed2ab 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobjcamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayobjcamelcase.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayObjCamelCaseResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarray.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarray.py index 4b3ecf9d6..fde453495 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarray.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarray.py @@ -4,21 +4,20 @@ import dataclasses import requests as requests_http from ..shared import simpleobject as shared_simpleobject -from typing import Optional +from typing import List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayOfArrayResponse: content_type: str = dataclasses.field() r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - arrs: Optional[list[list[shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) + arrs: Optional[List[List[shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarraycamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarraycamelcase.py index 94a7f9461..3a45a40bf 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarraycamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarraycamelcase.py @@ -4,21 +4,20 @@ import dataclasses import requests as requests_http from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase -from typing import Optional +from typing import List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_CAMEL_CASE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse: content_type: str = dataclasses.field() r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - arrs: Optional[list[list[shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) + arrs: Optional[List[List[shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitive.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitive.py index c4748418d..14fd83b02 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofarrayofprimitive.py @@ -3,21 +3,20 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Optional +from typing import List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_OF_PRIMITIVE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse: content_type: str = dataclasses.field() r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - arrs: Optional[list[list[str]]] = dataclasses.field(default=None) + arrs: Optional[List[List[str]]] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmap.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmap.py index eb7a1c29c..201935548 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmap.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmap.py @@ -4,21 +4,20 @@ import dataclasses import requests as requests_http from ..shared import simpleobject as shared_simpleobject -from typing import Optional +from typing import Dict, List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayOfMapResponse: content_type: str = dataclasses.field() r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - maps: Optional[list[dict[str, shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) + maps: Optional[List[Dict[str, shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmapcamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmapcamelcase.py index 537bd9ae3..136c9fb71 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmapcamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofmapcamelcase.py @@ -4,21 +4,20 @@ import dataclasses import requests as requests_http from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase -from typing import Optional +from typing import Dict, List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_CAMEL_CASE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse: content_type: str = dataclasses.field() r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - maps: Optional[list[dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) + maps: Optional[List[Dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) r"""OK""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofprimitive.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofprimitive.py index a6fba3aa6..8611114b8 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonarrayofprimitive.py @@ -3,14 +3,13 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Optional +from typing import List, Optional REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_PRIMITIVE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONArrayOfPrimitiveResponse: content_type: str = dataclasses.field() @@ -19,7 +18,7 @@ class RequestBodyPostApplicationJSONArrayOfPrimitiveResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - strings: Optional[list[str]] = dataclasses.field(default=None) + strings: Optional[List[str]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeep.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeep.py index d58cbfd4c..e1bf3036b 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeep.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeep.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostApplicationJSONDeepRes: r"""OK""" @@ -19,7 +18,6 @@ class RequestBodyPostApplicationJSONDeepRes: - @dataclasses.dataclass class RequestBodyPostApplicationJSONDeepResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeepcamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeepcamelcase.py index 92ae04c88..603d6a0fc 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeepcamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsondeepcamelcase.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostApplicationJSONDeepCamelCaseRes: r"""OK""" @@ -19,7 +18,6 @@ class RequestBodyPostApplicationJSONDeepCamelCaseRes: - @dataclasses.dataclass class RequestBodyPostApplicationJSONDeepCamelCaseResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmap.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmap.py index 76a7eae2a..0febb493b 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmap.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmap.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobject as shared_simpleobject -from typing import Optional +from typing import Dict, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONMapResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, shared_simpleobject.SimpleObject]] = dataclasses.field(default=None) + res: Optional[Dict[str, shared_simpleobject.SimpleObject]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapcamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapcamelcase.py index 07bc57c80..925a3947d 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapcamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapcamelcase.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase -from typing import Optional +from typing import Dict, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_CAMEL_CASE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapCamelCaseResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONMapCamelCaseResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None) + res: Optional[Dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobj.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobj.py index 2e41ddcfb..5af2ba83b 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobj.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobj.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapObjResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobjcamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobjcamelcase.py index a216d8b12..17b7295a4 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobjcamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapobjcamelcase.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapObjCamelCaseResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarray.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarray.py index 0cefac56b..939ca7b5e 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarray.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarray.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobject as shared_simpleobject -from typing import Optional +from typing import Dict, List, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapOfArrayResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONMapOfArrayResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, list[shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) + res: Optional[Dict[str, List[shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarraycamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarraycamelcase.py index 3757388bb..0ef675a8a 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarraycamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofarraycamelcase.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase -from typing import Optional +from typing import Dict, List, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_CAMEL_CASE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, list[shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) + res: Optional[Dict[str, List[shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmap.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmap.py index c23477065..588028eeb 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmap.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmap.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobject as shared_simpleobject -from typing import Optional +from typing import Dict, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapOfMapResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONMapOfMapResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, dict[str, shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) + res: Optional[Dict[str, Dict[str, shared_simpleobject.SimpleObject]]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapcamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapcamelcase.py index 3910c900f..4a0412bc7 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapcamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapcamelcase.py @@ -4,14 +4,13 @@ import dataclasses import requests as requests_http from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase -from typing import Optional +from typing import Dict, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_CAMEL_CASE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse: content_type: str = dataclasses.field() @@ -20,7 +19,7 @@ class RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) + res: Optional[Dict[str, Dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapofprimitive.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapofprimitive.py index fea0c3175..b72d4a7c5 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapofprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofmapofprimitive.py @@ -3,14 +3,13 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Optional +from typing import Dict, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_OF_PRIMITIVE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse: content_type: str = dataclasses.field() @@ -19,7 +18,7 @@ class RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, dict[str, str]]] = dataclasses.field(default=None) + res: Optional[Dict[str, Dict[str, str]]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofprimitive.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofprimitive.py index 188b06725..cd1cd77aa 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmapofprimitive.py @@ -3,14 +3,13 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Optional +from typing import Dict, Optional REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_PRIMITIVE_SERVERS = [ "http://localhost:35456", ] - @dataclasses.dataclass class RequestBodyPostApplicationJSONMapOfPrimitiveResponse: content_type: str = dataclasses.field() @@ -19,7 +18,7 @@ class RequestBodyPostApplicationJSONMapOfPrimitiveResponse: r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - res: Optional[dict[str, str]] = dataclasses.field(default=None) + res: Optional[Dict[str, str]] = dataclasses.field(default=None) r"""OK""" diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmultiplejsonfiltered.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmultiplejsonfiltered.py index eb590f4fd..3803bd9b9 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmultiplejsonfiltered.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonmultiplejsonfiltered.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostApplicationJSONMultipleJSONFilteredRes: r"""OK""" @@ -22,7 +21,6 @@ class RequestBodyPostApplicationJSONMultipleJSONFilteredRes: - @dataclasses.dataclass class RequestBodyPostApplicationJSONMultipleJSONFilteredResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimple.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimple.py index b8abe6b2e..87009fd69 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimple.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimple.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostApplicationJSONSimpleRes: r"""OK""" @@ -22,7 +21,6 @@ class RequestBodyPostApplicationJSONSimpleRes: - @dataclasses.dataclass class RequestBodyPostApplicationJSONSimpleResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimplecamelcase.py b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimplecamelcase.py index 6e4556c6d..c88f3f42c 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimplecamelcase.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostapplicationjsonsimplecamelcase.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostApplicationJSONSimpleCamelCaseRes: r"""OK""" @@ -22,7 +21,6 @@ class RequestBodyPostApplicationJSONSimpleCamelCaseRes: - @dataclasses.dataclass class RequestBodyPostApplicationJSONSimpleCamelCaseResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostcomplexnumbertypes.py b/python-client-sdk/src/sdk/models/operations/requestbodypostcomplexnumbertypes.py index eb7c06d9c..09763adb0 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostcomplexnumbertypes.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostcomplexnumbertypes.py @@ -10,7 +10,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPostComplexNumberTypesRequest: complex_number_types: shared_complexnumbertypes.ComplexNumberTypes = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) @@ -27,7 +26,6 @@ class RequestBodyPostComplexNumberTypesRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostComplexNumberTypes200ApplicationJSON: r"""OK""" @@ -37,7 +35,6 @@ class RequestBodyPostComplexNumberTypes200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostComplexNumberTypesResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostdefaultsandconsts.py b/python-client-sdk/src/sdk/models/operations/requestbodypostdefaultsandconsts.py index e6cf71c0c..5e9322346 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostdefaultsandconsts.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostdefaultsandconsts.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostDefaultsAndConsts200ApplicationJSON: r"""OK""" @@ -19,7 +18,6 @@ class RequestBodyPostDefaultsAndConsts200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostDefaultsAndConstsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostemptyobject.py b/python-client-sdk/src/sdk/models/operations/requestbodypostemptyobject.py index 1865d88d0..99317ed64 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostemptyobject.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostemptyobject.py @@ -8,20 +8,17 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPostEmptyObjectRequestBodyEmpty: pass - @dataclasses.dataclass class RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostEmptyObjectRequestBody: empty: Optional[RequestBodyPostEmptyObjectRequestBodyEmpty] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('empty'), 'exclude': lambda f: f is None }}) @@ -30,20 +27,17 @@ class RequestBodyPostEmptyObjectRequestBody: - @dataclasses.dataclass class RequestBodyPostEmptyObject200ApplicationJSONEmpty: pass - @dataclasses.dataclass class RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostEmptyObject200ApplicationJSON: r"""OK""" @@ -53,7 +47,6 @@ class RequestBodyPostEmptyObject200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostEmptyObjectResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostformdeep.py b/python-client-sdk/src/sdk/models/operations/requestbodypostformdeep.py index ffa4e6950..ffe419a2f 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostformdeep.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostformdeep.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostFormDeepResForm: arr: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr') }}) @@ -24,7 +23,6 @@ class RequestBodyPostFormDeepResForm: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostFormDeepRes: r"""OK""" @@ -33,7 +31,6 @@ class RequestBodyPostFormDeepRes: - @dataclasses.dataclass class RequestBodyPostFormDeepResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostformmapprimitive.py b/python-client-sdk/src/sdk/models/operations/requestbodypostformmapprimitive.py index 1eadabc14..4b278ef99 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostformmapprimitive.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostformmapprimitive.py @@ -5,20 +5,18 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostFormMapPrimitiveRes: r"""OK""" - form: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form') }}) + form: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form') }}) - @dataclasses.dataclass class RequestBodyPostFormMapPrimitiveResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py b/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py index dd6360cf1..df27727af 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostformsimple.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostFormSimpleResForm: any: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }}) @@ -31,7 +30,6 @@ class RequestBodyPostFormSimpleResForm: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostFormSimpleRes: r"""OK""" @@ -40,7 +38,6 @@ class RequestBodyPostFormSimpleRes: - @dataclasses.dataclass class RequestBodyPostFormSimpleResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraybigint.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraybigint.py index eb9bc2dd2..11063e581 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraybigint.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraybigint.py @@ -5,21 +5,19 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON: r"""OK""" data: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }}) - json: list[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) + json: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesArrayBigIntResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydate.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydate.py index 765ceceda..c88b2e834 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydate.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydate.py @@ -6,21 +6,19 @@ from dataclasses_json import Undefined, dataclass_json from datetime import date from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON: r"""OK""" data: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }}) - json: list[date] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.list_encoder(False, utils.dateisoformat(False)), 'decoder': utils.list_decoder(utils.datefromisoformat) }}) + json: List[date] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.list_encoder(False, utils.dateisoformat(False)), 'decoder': utils.list_decoder(utils.datefromisoformat) }}) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesArrayDateResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydecimalstr.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydecimalstr.py index a5359ec87..15f5d8d4c 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydecimalstr.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesarraydecimalstr.py @@ -6,21 +6,19 @@ from dataclasses_json import Undefined, dataclass_json from decimal import Decimal from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON: r"""OK""" data: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }}) - json: list[Decimal] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.list_encoder(False, utils.decimalencoder(False, True)), 'decoder': utils.list_decoder(utils.decimaldecoder) }}) + json: List[Decimal] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.list_encoder(False, utils.decimalencoder(False, True)), 'decoder': utils.list_decoder(utils.decimaldecoder) }}) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesArrayDecimalStrResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigint.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigint.py index f8e3d1616..15f04a796 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigint.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigint.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesBigInt200ApplicationJSON: r"""OK""" @@ -19,7 +18,6 @@ class RequestBodyPostJSONDataTypesBigInt200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesBigIntResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigintstr.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigintstr.py index 21b3f00c0..2397ffaa8 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigintstr.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesbigintstr.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON: r"""OK""" @@ -19,7 +18,6 @@ class RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesBigIntStrResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesboolean.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesboolean.py index cad6b31d8..94f9ff08d 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesboolean.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesboolean.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesBoolean200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostJSONDataTypesBoolean200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesBooleanResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdate.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdate.py index 1495eb4b8..de34901d8 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdate.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdate.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDate200ApplicationJSON: r"""OK""" @@ -20,7 +19,6 @@ class RequestBodyPostJSONDataTypesDate200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDateResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdatetime.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdatetime.py index d202da4ee..932100fe3 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdatetime.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdatetime.py @@ -11,7 +11,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDateTime200ApplicationJSON: r"""OK""" @@ -21,7 +20,6 @@ class RequestBodyPostJSONDataTypesDateTime200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDateTimeResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimal.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimal.py index 3efe77f54..c7a73777d 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimal.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimal.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDecimal200ApplicationJSON: r"""OK""" @@ -20,7 +19,6 @@ class RequestBodyPostJSONDataTypesDecimal200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDecimalResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimalstr.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimalstr.py index d2f515407..8f61bedc4 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimalstr.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesdecimalstr.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON: r"""OK""" @@ -20,7 +19,6 @@ class RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesDecimalStrResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesfloat32.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesfloat32.py index 61d3e78e1..2c85376d5 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesfloat32.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesfloat32.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesFloat32200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostJSONDataTypesFloat32200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesFloat32Response: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesint32.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesint32.py index 9aad7de1e..334d9f558 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesint32.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesint32.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesInt32200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostJSONDataTypesInt32200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesInt32Response: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesinteger.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesinteger.py index 670f990a1..8f1f6c80c 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesinteger.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesinteger.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesInteger200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostJSONDataTypesInteger200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesIntegerResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapbigintstr.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapbigintstr.py index 93cc23f9a..001790f75 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapbigintstr.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapbigintstr.py @@ -5,21 +5,19 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON: r"""OK""" data: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }}) - json: dict[str, int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.bigintencoder(False)), 'decoder': utils.map_decoder(utils.bigintdecoder) }}) + json: Dict[str, int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.bigintencoder(False)), 'decoder': utils.map_decoder(utils.bigintdecoder) }}) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesMapBigIntStrResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdatetime.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdatetime.py index cbaf5bc1c..343372ed2 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdatetime.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdatetime.py @@ -7,21 +7,19 @@ from dataclasses_json import Undefined, dataclass_json from datetime import datetime from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON: r"""OK""" data: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }}) - json: dict[str, datetime] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.datetimeisoformat(False)), 'decoder': utils.map_decoder(dateutil.parser.isoparse) }}) + json: Dict[str, datetime] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.datetimeisoformat(False)), 'decoder': utils.map_decoder(dateutil.parser.isoparse) }}) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesMapDateTimeResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdecimal.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdecimal.py index 8b8307281..ef9aaabdb 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdecimal.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesmapdecimal.py @@ -6,21 +6,19 @@ from dataclasses_json import Undefined, dataclass_json from decimal import Decimal from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON: r"""OK""" data: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('data') }}) - json: dict[str, Decimal] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.decimalencoder(False, False)), 'decoder': utils.map_decoder(utils.decimaldecoder) }}) + json: Dict[str, Decimal] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.decimalencoder(False, False)), 'decoder': utils.map_decoder(utils.decimaldecoder) }}) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesMapDecimalResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesnumber.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesnumber.py index a1a3dfe61..19e31fe3d 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesnumber.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesnumber.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesNumber200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostJSONDataTypesNumber200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesNumberResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesstring.py b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesstring.py index 4faeb582e..f4afe2211 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesstring.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostjsondatatypesstring.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostJSONDataTypesString200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostJSONDataTypesString200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostJSONDataTypesStringResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypescomponentfiltered.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypescomponentfiltered.py index 40b1ccea6..8b4128641 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypescomponentfiltered.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypescomponentfiltered.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesComponentFilteredRes: r"""OK""" @@ -22,7 +21,6 @@ class RequestBodyPostMultipleContentTypesComponentFilteredRes: - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesComponentFilteredResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypesinlinefiltered.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypesinlinefiltered.py index b6288e86f..1a250bbd9 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypesinlinefiltered.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypesinlinefiltered.py @@ -5,11 +5,10 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON: bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) @@ -20,16 +19,14 @@ class RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesInlineFilteredRes: r"""OK""" - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesInlineFilteredResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_form.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_form.py index 46ad83a2b..07d6d75ce 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_form.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_form.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional - +from typing import Any, Dict, Optional @dataclasses.dataclass @@ -19,17 +18,15 @@ class RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitFormRes: r"""OK""" - form: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + form: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitFormResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_json.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_json.py index e22145831..00a3ba30f 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_json.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_json.py @@ -5,11 +5,10 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitApplicationJSON: bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) @@ -20,17 +19,15 @@ class RequestBodyPostMultipleContentTypesSplitApplicationJSON: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitJSONRes: r"""OK""" - form: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + form: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitJSONResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_multipart.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_multipart.py index 1b4d21d37..26b4ed262 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_multipart.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplit_multipart.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional - +from typing import Any, Dict, Optional @dataclasses.dataclass @@ -19,17 +18,15 @@ class RequestBodyPostMultipleContentTypesSplitMultipartFormData: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitMultipartRes: r"""OK""" - form: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + form: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitMultipartResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_form.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_form.py index d95ad02fc..5db9502d3 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_form.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_form.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional - +from typing import Any, Dict, Optional @dataclasses.dataclass @@ -18,7 +17,6 @@ class RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamFormRequest: param_str: str = dataclasses.field(metadata={'query_param': { 'field_name': 'paramStr', 'style': 'form', 'explode': True }}) @@ -28,18 +26,16 @@ class RequestBodyPostMultipleContentTypesSplitParamFormRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamFormRes: r"""OK""" - args: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args'), 'exclude': lambda f: f is None }}) - form: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + args: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args'), 'exclude': lambda f: f is None }}) + form: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamFormResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_json.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_json.py index 09fc15d28..ef384d4f0 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_json.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_json.py @@ -5,11 +5,10 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamApplicationJSON: bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) @@ -19,7 +18,6 @@ class RequestBodyPostMultipleContentTypesSplitParamApplicationJSON: - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamJSONRequest: param_str: str = dataclasses.field(metadata={'query_param': { 'field_name': 'paramStr', 'style': 'form', 'explode': True }}) @@ -29,18 +27,16 @@ class RequestBodyPostMultipleContentTypesSplitParamJSONRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamJSONRes: r"""OK""" - args: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args'), 'exclude': lambda f: f is None }}) - form: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + args: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args'), 'exclude': lambda f: f is None }}) + form: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamJSONResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_multipart.py b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_multipart.py index 1d456f90d..dd6154106 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_multipart.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostmultiplecontenttypessplitparam_multipart.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional - +from typing import Any, Dict, Optional @dataclasses.dataclass @@ -18,7 +17,6 @@ class RequestBodyPostMultipleContentTypesSplitParamMultipartFormData: - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamMultipartRequest: param_str: str = dataclasses.field(metadata={'query_param': { 'field_name': 'paramStr', 'style': 'form', 'explode': True }}) @@ -28,18 +26,16 @@ class RequestBodyPostMultipleContentTypesSplitParamMultipartRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamMultipartRes: r"""OK""" - args: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args'), 'exclude': lambda f: f is None }}) - form: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) - json: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + args: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('args'), 'exclude': lambda f: f is None }}) + form: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('form'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class RequestBodyPostMultipleContentTypesSplitParamMultipartResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostnotnullablenotrequiredstringbody.py b/python-client-sdk/src/sdk/models/operations/requestbodypostnotnullablenotrequiredstringbody.py index b1a39410b..85555dc4a 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostnotnullablenotrequiredstringbody.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostnotnullablenotrequiredstringbody.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostNotNullableNotRequiredStringBodyResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostnullablenotrequiredstringbody.py b/python-client-sdk/src/sdk/models/operations/requestbodypostnullablenotrequiredstringbody.py index 827a46162..1bf6af498 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostnullablenotrequiredstringbody.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostnullablenotrequiredstringbody.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostNullableNotRequiredStringBodyResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostnullablerequiredstringbody.py b/python-client-sdk/src/sdk/models/operations/requestbodypostnullablerequiredstringbody.py index 93f3cc934..cf622e591 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostnullablerequiredstringbody.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostnullablerequiredstringbody.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostNullableRequiredStringBody200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostNullableRequiredStringBody200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostNullableRequiredStringBodyResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostnullarray.py b/python-client-sdk/src/sdk/models/operations/requestbodypostnullarray.py index 7eb54c671..bd7f26943 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostnullarray.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostnullarray.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostNullArray200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostNullArray200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostNullArrayResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodypostnulldictionary.py b/python-client-sdk/src/sdk/models/operations/requestbodypostnulldictionary.py index bb7604322..aa65eccba 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodypostnulldictionary.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodypostnulldictionary.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPostNullDictionary200ApplicationJSON: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPostNullDictionary200ApplicationJSON: - @dataclasses.dataclass class RequestBodyPostNullDictionaryResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputbytes.py b/python-client-sdk/src/sdk/models/operations/requestbodyputbytes.py index b7778e3c4..328666cdd 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputbytes.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputbytes.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutBytesRes: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPutBytesRes: - @dataclasses.dataclass class RequestBodyPutBytesResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputbyteswithparams.py b/python-client-sdk/src/sdk/models/operations/requestbodyputbyteswithparams.py index f959440bb..7dd87f3ba 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputbyteswithparams.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputbyteswithparams.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPutBytesWithParamsRequest: query_string_param: str = dataclasses.field(metadata={'query_param': { 'field_name': 'queryStringParam', 'style': 'form', 'explode': True }}) @@ -18,7 +17,6 @@ class RequestBodyPutBytesWithParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutBytesWithParamsResArgs: query_string_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('queryStringParam') }}) @@ -27,7 +25,6 @@ class RequestBodyPutBytesWithParamsResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutBytesWithParamsRes: r"""OK""" @@ -37,7 +34,6 @@ class RequestBodyPutBytesWithParamsRes: - @dataclasses.dataclass class RequestBodyPutBytesWithParamsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdeep.py b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdeep.py index 3c2622809..57a057fea 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdeep.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdeep.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutMultipartDeepResForm: arr: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr') }}) @@ -24,7 +23,6 @@ class RequestBodyPutMultipartDeepResForm: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutMultipartDeepRes: r"""OK""" @@ -33,7 +31,6 @@ class RequestBodyPutMultipartDeepRes: - @dataclasses.dataclass class RequestBodyPutMultipartDeepResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdifferentfilename.py b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdifferentfilename.py index ed82a2d0e..eab753e22 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdifferentfilename.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartdifferentfilename.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -17,7 +16,6 @@ class RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName: - @dataclasses.dataclass class RequestBodyPutMultipartDifferentFileNameRequestBody: different_file_name: Optional[RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }}) @@ -26,16 +24,14 @@ class RequestBodyPutMultipartDifferentFileNameRequestBody: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutMultipartDifferentFileNameRes: r"""OK""" - files: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('files') }}) + files: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('files') }}) - @dataclasses.dataclass class RequestBodyPutMultipartDifferentFileNameResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartfile.py b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartfile.py index cabfbb512..2567b752f 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartfile.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartfile.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -17,7 +16,6 @@ class RequestBodyPutMultipartFileRequestBodyFile: - @dataclasses.dataclass class RequestBodyPutMultipartFileRequestBody: file: Optional[RequestBodyPutMultipartFileRequestBodyFile] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }}) @@ -26,16 +24,14 @@ class RequestBodyPutMultipartFileRequestBody: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutMultipartFileRes: r"""OK""" - files: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('files') }}) + files: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('files') }}) - @dataclasses.dataclass class RequestBodyPutMultipartFileResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py index 78362f8cc..fb8a34d82 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputmultipartsimple.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutMultipartSimpleResForm: any: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }}) @@ -31,7 +30,6 @@ class RequestBodyPutMultipartSimpleResForm: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutMultipartSimpleRes: r"""OK""" @@ -40,7 +38,6 @@ class RequestBodyPutMultipartSimpleRes: - @dataclasses.dataclass class RequestBodyPutMultipartSimpleResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputstring.py b/python-client-sdk/src/sdk/models/operations/requestbodyputstring.py index 06f854e6c..d42f6542d 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputstring.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputstring.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutStringRes: r"""OK""" @@ -18,7 +17,6 @@ class RequestBodyPutStringRes: - @dataclasses.dataclass class RequestBodyPutStringResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyputstringwithparams.py b/python-client-sdk/src/sdk/models/operations/requestbodyputstringwithparams.py index a1a9c1677..3c6b06f79 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyputstringwithparams.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyputstringwithparams.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class RequestBodyPutStringWithParamsRequest: query_string_param: str = dataclasses.field(metadata={'query_param': { 'field_name': 'queryStringParam', 'style': 'form', 'explode': True }}) @@ -18,7 +17,6 @@ class RequestBodyPutStringWithParamsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutStringWithParamsResArgs: query_string_param: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('queryStringParam') }}) @@ -27,7 +25,6 @@ class RequestBodyPutStringWithParamsResArgs: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RequestBodyPutStringWithParamsRes: r"""OK""" @@ -37,7 +34,6 @@ class RequestBodyPutStringWithParamsRes: - @dataclasses.dataclass class RequestBodyPutStringWithParamsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyreadandwrite.py b/python-client-sdk/src/sdk/models/operations/requestbodyreadandwrite.py index 2c7868e04..dffbcc17e 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyreadandwrite.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyreadandwrite.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class RequestBodyReadAndWriteResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyinput.py b/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyinput.py index 36f4ff02e..bfaab4ead 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyinput.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyinput.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class RequestBodyReadOnlyInputResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyunion.py b/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyunion.py index 1fb368f5e..ebc693e9e 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyunion.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyreadonlyunion.py @@ -12,7 +12,6 @@ ] - @dataclasses.dataclass class RequestBodyReadOnlyUnionResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodyreadwriteonlyunion.py b/python-client-sdk/src/sdk/models/operations/requestbodyreadwriteonlyunion.py index 83620efa0..7c3cd14b6 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodyreadwriteonlyunion.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodyreadwriteonlyunion.py @@ -12,7 +12,6 @@ ] - @dataclasses.dataclass class RequestBodyReadWriteOnlyUnionResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodywriteonly.py b/python-client-sdk/src/sdk/models/operations/requestbodywriteonly.py index e83b8b0fc..649c0b24e 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodywriteonly.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodywriteonly.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class RequestBodyWriteOnlyResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyoutput.py b/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyoutput.py index c1d2fea67..41f079aae 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyoutput.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyoutput.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class RequestBodyWriteOnlyOutputResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyunion.py b/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyunion.py index c5658a332..bdb3f9d34 100755 --- a/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyunion.py +++ b/python-client-sdk/src/sdk/models/operations/requestbodywriteonlyunion.py @@ -12,7 +12,6 @@ ] - @dataclasses.dataclass class RequestBodyWriteOnlyUnionResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.py b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.py index 8f97d7bc1..ebd1f998d 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.py @@ -3,22 +3,21 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import objwithcomplexnumbersadditionalproperties as shared_objwithcomplexnumbersadditionalproperties from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON: r"""OK""" - json: dict[str, int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.bigintencoder(False)), 'decoder': utils.map_decoder(utils.bigintdecoder) }}) + json: shared_objwithcomplexnumbersadditionalproperties.ObjWithComplexNumbersAdditionalProperties = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class ResponseBodyAdditionalPropertiesComplexNumbersPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesdatepost.py b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesdatepost.py index fd6035448..1f4217ed1 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesdatepost.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesdatepost.py @@ -3,23 +3,21 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import objwithdateadditionalproperties as shared_objwithdateadditionalproperties from dataclasses_json import Undefined, dataclass_json -from datetime import date from sdk import utils from typing import Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON: r"""OK""" - json: dict[str, date] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.map_encoder(False, utils.dateisoformat(False)), 'decoder': utils.map_decoder(utils.datefromisoformat) }}) + json: shared_objwithdateadditionalproperties.ObjWithDateAdditionalProperties = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class ResponseBodyAdditionalPropertiesDatePostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.py b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.py new file mode 100755 index 000000000..b72601002 --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.py @@ -0,0 +1,32 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from ..shared import objwithobjadditionalproperties as shared_objwithobjadditionalproperties +from dataclasses_json import Undefined, dataclass_json +from sdk import utils +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON: + r"""OK""" + json: shared_objwithobjadditionalproperties.ObjWithObjAdditionalProperties = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) + + + + +@dataclasses.dataclass +class ResponseBodyAdditionalPropertiesObjectPostResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + response_body_additional_properties_object_post_200_application_json_object: Optional[ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON] = dataclasses.field(default=None) + r"""OK""" + + diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiespost.py b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiespost.py index dbdcff6a1..f3d980ee4 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiespost.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiespost.py @@ -3,22 +3,21 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import objwithstringadditionalproperties as shared_objwithstringadditionalproperties from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ResponseBodyAdditionalPropertiesPost200ApplicationJSON: r"""OK""" - json: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) + json: shared_objwithstringadditionalproperties.ObjWithStringAdditionalProperties = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class ResponseBodyAdditionalPropertiesPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodybytesget.py b/python-client-sdk/src/sdk/models/operations/responsebodybytesget.py index 877d0bd4f..ec8b8cdb7 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodybytesget.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodybytesget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class ResponseBodyBytesGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyemptywithheaders.py b/python-client-sdk/src/sdk/models/operations/responsebodyemptywithheaders.py index 57adbeb9f..d9a400203 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyemptywithheaders.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyemptywithheaders.py @@ -3,8 +3,7 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Optional - +from typing import Dict, List, Optional @dataclasses.dataclass @@ -15,14 +14,13 @@ class ResponseBodyEmptyWithHeadersRequest: - @dataclasses.dataclass class ResponseBodyEmptyWithHeadersResponse: content_type: str = dataclasses.field() r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - headers: Optional[dict[str, list[str]]] = dataclasses.field(default=None) + headers: Optional[Dict[str, List[str]]] = dataclasses.field(default=None) raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyjsonget.py b/python-client-sdk/src/sdk/models/operations/responsebodyjsonget.py index e8c8145cf..04aa86e0c 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyjsonget.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyjsonget.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class ResponseBodyJSONGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyoptionalget.py b/python-client-sdk/src/sdk/models/operations/responsebodyoptionalget.py index bafa78c45..f5db35fff 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyoptionalget.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyoptionalget.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class ResponseBodyOptionalGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyreadonly.py b/python-client-sdk/src/sdk/models/operations/responsebodyreadonly.py index 46a21bcf0..7d00fbbf0 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyreadonly.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyreadonly.py @@ -11,7 +11,6 @@ ] - @dataclasses.dataclass class ResponseBodyReadOnlyResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodystringget.py b/python-client-sdk/src/sdk/models/operations/responsebodystringget.py index 7d449cf3c..787b6d1b1 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodystringget.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodystringget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class ResponseBodyStringGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyxmlget.py b/python-client-sdk/src/sdk/models/operations/responsebodyxmlget.py index 11d789f57..66c596cc5 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyxmlget.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyxmlget.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class ResponseBodyXMLGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/responsebodyzerovaluecomplextypeptrspost.py b/python-client-sdk/src/sdk/models/operations/responsebodyzerovaluecomplextypeptrspost.py index d824b836c..235d941c2 100755 --- a/python-client-sdk/src/sdk/models/operations/responsebodyzerovaluecomplextypeptrspost.py +++ b/python-client-sdk/src/sdk/models/operations/responsebodyzerovaluecomplextypeptrspost.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON: r"""OK""" @@ -19,7 +18,6 @@ class ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON: - @dataclasses.dataclass class ResponseBodyZeroValueComplexTypePtrsPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/retriesget.py b/python-client-sdk/src/sdk/models/operations/retriesget.py index 21585f25b..5034ea3e3 100755 --- a/python-client-sdk/src/sdk/models/operations/retriesget.py +++ b/python-client-sdk/src/sdk/models/operations/retriesget.py @@ -12,7 +12,6 @@ ] - @dataclasses.dataclass class RetriesGetRequest: request_id: str = dataclasses.field(metadata={'query_param': { 'field_name': 'request-id', 'style': 'form', 'explode': True }}) @@ -22,7 +21,6 @@ class RetriesGetRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class RetriesGetRetries: r"""OK""" @@ -31,7 +29,6 @@ class RetriesGetRetries: - @dataclasses.dataclass class RetriesGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/selectglobalserver.py b/python-client-sdk/src/sdk/models/operations/selectglobalserver.py index 9a1e2b765..e771a4f98 100755 --- a/python-client-sdk/src/sdk/models/operations/selectglobalserver.py +++ b/python-client-sdk/src/sdk/models/operations/selectglobalserver.py @@ -3,8 +3,7 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Optional - +from typing import Dict, List, Optional @dataclasses.dataclass @@ -13,7 +12,7 @@ class SelectGlobalServerResponse: r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - headers: Optional[dict[str, list[str]]] = dataclasses.field(default=None) + headers: Optional[Dict[str, List[str]]] = dataclasses.field(default=None) raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/python-client-sdk/src/sdk/models/operations/selectserverwithid.py b/python-client-sdk/src/sdk/models/operations/selectserverwithid.py index 9e61977ff..111376fd8 100755 --- a/python-client-sdk/src/sdk/models/operations/selectserverwithid.py +++ b/python-client-sdk/src/sdk/models/operations/selectserverwithid.py @@ -17,7 +17,6 @@ } - @dataclasses.dataclass class SelectServerWithIDResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/serversbyidwithtemplates.py b/python-client-sdk/src/sdk/models/operations/serversbyidwithtemplates.py index 080bf2985..4b2a0359c 100755 --- a/python-client-sdk/src/sdk/models/operations/serversbyidwithtemplates.py +++ b/python-client-sdk/src/sdk/models/operations/serversbyidwithtemplates.py @@ -12,7 +12,6 @@ } - @dataclasses.dataclass class ServersByIDWithTemplatesResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/serverwithprotocoltemplate.py b/python-client-sdk/src/sdk/models/operations/serverwithprotocoltemplate.py index 16e0dac0f..901d5fcaf 100755 --- a/python-client-sdk/src/sdk/models/operations/serverwithprotocoltemplate.py +++ b/python-client-sdk/src/sdk/models/operations/serverwithprotocoltemplate.py @@ -12,7 +12,6 @@ } - @dataclasses.dataclass class ServerWithProtocolTemplateResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/serverwithtemplates.py b/python-client-sdk/src/sdk/models/operations/serverwithtemplates.py index a2bbdd052..434fc0233 100755 --- a/python-client-sdk/src/sdk/models/operations/serverwithtemplates.py +++ b/python-client-sdk/src/sdk/models/operations/serverwithtemplates.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class ServerWithTemplatesResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/serverwithtemplatesglobal.py b/python-client-sdk/src/sdk/models/operations/serverwithtemplatesglobal.py index bceb8d3c3..84c36e3c0 100755 --- a/python-client-sdk/src/sdk/models/operations/serverwithtemplatesglobal.py +++ b/python-client-sdk/src/sdk/models/operations/serverwithtemplatesglobal.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class ServerWithTemplatesGlobalResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/simplepathparameterarrays.py b/python-client-sdk/src/sdk/models/operations/simplepathparameterarrays.py index a2704fbb7..e9ecd269d 100755 --- a/python-client-sdk/src/sdk/models/operations/simplepathparameterarrays.py +++ b/python-client-sdk/src/sdk/models/operations/simplepathparameterarrays.py @@ -5,19 +5,17 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass class SimplePathParameterArraysRequest: - arr_param: list[str] = dataclasses.field(metadata={'path_param': { 'field_name': 'arrParam', 'style': 'simple', 'explode': False }}) + arr_param: List[str] = dataclasses.field(metadata={'path_param': { 'field_name': 'arrParam', 'style': 'simple', 'explode': False }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimplePathParameterArraysRes: r"""OK""" @@ -26,7 +24,6 @@ class SimplePathParameterArraysRes: - @dataclasses.dataclass class SimplePathParameterArraysResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/simplepathparametermaps.py b/python-client-sdk/src/sdk/models/operations/simplepathparametermaps.py index d788582d9..c2cbde7f6 100755 --- a/python-client-sdk/src/sdk/models/operations/simplepathparametermaps.py +++ b/python-client-sdk/src/sdk/models/operations/simplepathparametermaps.py @@ -5,20 +5,18 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass class SimplePathParameterMapsRequest: - map_param: dict[str, str] = dataclasses.field(metadata={'path_param': { 'field_name': 'mapParam', 'style': 'simple', 'explode': False }}) - map_param_exploded: dict[str, int] = dataclasses.field(metadata={'path_param': { 'field_name': 'mapParamExploded', 'style': 'simple', 'explode': True }}) + map_param: Dict[str, str] = dataclasses.field(metadata={'path_param': { 'field_name': 'mapParam', 'style': 'simple', 'explode': False }}) + map_param_exploded: Dict[str, int] = dataclasses.field(metadata={'path_param': { 'field_name': 'mapParamExploded', 'style': 'simple', 'explode': True }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimplePathParameterMapsRes: r"""OK""" @@ -27,7 +25,6 @@ class SimplePathParameterMapsRes: - @dataclasses.dataclass class SimplePathParameterMapsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/simplepathparameterobjects.py b/python-client-sdk/src/sdk/models/operations/simplepathparameterobjects.py index 0b7ea9d86..18590d876 100755 --- a/python-client-sdk/src/sdk/models/operations/simplepathparameterobjects.py +++ b/python-client-sdk/src/sdk/models/operations/simplepathparameterobjects.py @@ -9,7 +9,6 @@ from typing import Optional - @dataclasses.dataclass class SimplePathParameterObjectsRequest: obj_param: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'path_param': { 'field_name': 'objParam', 'style': 'simple', 'explode': False }}) @@ -21,7 +20,6 @@ class SimplePathParameterObjectsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimplePathParameterObjectsRes: r"""OK""" @@ -30,7 +28,6 @@ class SimplePathParameterObjectsRes: - @dataclasses.dataclass class SimplePathParameterObjectsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/simplepathparameterprimitives.py b/python-client-sdk/src/sdk/models/operations/simplepathparameterprimitives.py index 37196dbf5..bc61e05cf 100755 --- a/python-client-sdk/src/sdk/models/operations/simplepathparameterprimitives.py +++ b/python-client-sdk/src/sdk/models/operations/simplepathparameterprimitives.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class SimplePathParameterPrimitivesRequest: bool_param: bool = dataclasses.field(metadata={'path_param': { 'field_name': 'boolParam', 'style': 'simple', 'explode': False }}) @@ -20,7 +19,6 @@ class SimplePathParameterPrimitivesRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimplePathParameterPrimitivesRes: r"""OK""" @@ -29,7 +27,6 @@ class SimplePathParameterPrimitivesRes: - @dataclasses.dataclass class SimplePathParameterPrimitivesResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/statusgeterror.py b/python-client-sdk/src/sdk/models/operations/statusgeterror.py index 499124669..e8025069d 100755 --- a/python-client-sdk/src/sdk/models/operations/statusgeterror.py +++ b/python-client-sdk/src/sdk/models/operations/statusgeterror.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class StatusGetErrorRequest: status_code: int = dataclasses.field(metadata={'path_param': { 'field_name': 'statusCode', 'style': 'simple', 'explode': False }}) @@ -14,7 +13,6 @@ class StatusGetErrorRequest: - @dataclasses.dataclass class StatusGetErrorResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/statusgetxspeakeasyerrors.py b/python-client-sdk/src/sdk/models/operations/statusgetxspeakeasyerrors.py index 7041bdf7b..aafc926e2 100755 --- a/python-client-sdk/src/sdk/models/operations/statusgetxspeakeasyerrors.py +++ b/python-client-sdk/src/sdk/models/operations/statusgetxspeakeasyerrors.py @@ -10,7 +10,6 @@ ] - @dataclasses.dataclass class StatusGetXSpeakeasyErrorsRequest: status_code: int = dataclasses.field(metadata={'path_param': { 'field_name': 'statusCode', 'style': 'simple', 'explode': False }}) @@ -18,7 +17,6 @@ class StatusGetXSpeakeasyErrorsRequest: - @dataclasses.dataclass class StatusGetXSpeakeasyErrorsResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/stronglytypedoneofpost.py b/python-client-sdk/src/sdk/models/operations/stronglytypedoneofpost.py index 8eeec6b29..f3edfc1b6 100755 --- a/python-client-sdk/src/sdk/models/operations/stronglytypedoneofpost.py +++ b/python-client-sdk/src/sdk/models/operations/stronglytypedoneofpost.py @@ -11,16 +11,14 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class StronglyTypedOneOfPostRes: r"""OK""" - json: Union[shared_simpleobjectwithtype.SimpleObjectWithType, shared_deepobjectwithtype.DeepObjectWithType] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'decoder': utils.decoder_with_discriminator('type') }}) + json: Union[shared_simpleobjectwithtype.SimpleObjectWithType, shared_deepobjectwithtype.DeepObjectWithType] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json') }}) - @dataclasses.dataclass class StronglyTypedOneOfPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/telemetryspeakeasyuseragentget.py b/python-client-sdk/src/sdk/models/operations/telemetryspeakeasyuseragentget.py index dea2fb9c3..e41e5809e 100755 --- a/python-client-sdk/src/sdk/models/operations/telemetryspeakeasyuseragentget.py +++ b/python-client-sdk/src/sdk/models/operations/telemetryspeakeasyuseragentget.py @@ -5,8 +5,7 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional - +from typing import Dict, Optional @dataclasses.dataclass @@ -17,16 +16,14 @@ class TelemetrySpeakeasyUserAgentGetRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TelemetrySpeakeasyUserAgentGetRes: r"""OK""" - headers: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headers') }}) + headers: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headers') }}) - @dataclasses.dataclass class TelemetrySpeakeasyUserAgentGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/telemetryuseragentget.py b/python-client-sdk/src/sdk/models/operations/telemetryuseragentget.py index 65db398ff..0dbe583b6 100755 --- a/python-client-sdk/src/sdk/models/operations/telemetryuseragentget.py +++ b/python-client-sdk/src/sdk/models/operations/telemetryuseragentget.py @@ -5,20 +5,18 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TelemetryUserAgentGetRes: r"""OK""" - headers: dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headers') }}) + headers: Dict[str, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headers') }}) - @dataclasses.dataclass class TelemetryUserAgentGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/typedobjectnullableoneofpost.py b/python-client-sdk/src/sdk/models/operations/typedobjectnullableoneofpost.py index 808ffb82d..702fc0467 100755 --- a/python-client-sdk/src/sdk/models/operations/typedobjectnullableoneofpost.py +++ b/python-client-sdk/src/sdk/models/operations/typedobjectnullableoneofpost.py @@ -11,7 +11,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TypedObjectNullableOneOfPostRes: r"""OK""" @@ -20,7 +19,6 @@ class TypedObjectNullableOneOfPostRes: - @dataclasses.dataclass class TypedObjectNullableOneOfPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/typedobjectoneofpost.py b/python-client-sdk/src/sdk/models/operations/typedobjectoneofpost.py index 7375d6272..c77a769e4 100755 --- a/python-client-sdk/src/sdk/models/operations/typedobjectoneofpost.py +++ b/python-client-sdk/src/sdk/models/operations/typedobjectoneofpost.py @@ -12,7 +12,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TypedObjectOneOfPostRes: r"""OK""" @@ -21,7 +20,6 @@ class TypedObjectOneOfPostRes: - @dataclasses.dataclass class TypedObjectOneOfPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/typedparametergenerationget.py b/python-client-sdk/src/sdk/models/operations/typedparametergenerationget.py index d11128b1d..60dc088d8 100755 --- a/python-client-sdk/src/sdk/models/operations/typedparametergenerationget.py +++ b/python-client-sdk/src/sdk/models/operations/typedparametergenerationget.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class TypedParameterGenerationGetObj: bool: bool = dataclasses.field(metadata={'query_param': { 'field_name': 'bool' }}) @@ -18,7 +17,6 @@ class TypedParameterGenerationGetObj: - @dataclasses.dataclass class TypedParameterGenerationGetRequest: bigint: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'bigint', 'style': 'form', 'explode': True }}) @@ -29,7 +27,6 @@ class TypedParameterGenerationGetRequest: - @dataclasses.dataclass class TypedParameterGenerationGetResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/uniondatenull.py b/python-client-sdk/src/sdk/models/operations/uniondatenull.py new file mode 100755 index 000000000..391e3939a --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/uniondatenull.py @@ -0,0 +1,32 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from dataclasses_json import Undefined, dataclass_json +from datetime import date +from sdk import utils +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class UnionDateNullRes: + r"""OK""" + json: Optional[date] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.dateisoformat(False), 'decoder': utils.datefromisoformat }}) + + + + +@dataclasses.dataclass +class UnionDateNullResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + res: Optional[UnionDateNullRes] = dataclasses.field(default=None) + r"""OK""" + + diff --git a/python-client-sdk/src/sdk/models/operations/uniondatetimenull.py b/python-client-sdk/src/sdk/models/operations/uniondatetimenull.py new file mode 100755 index 000000000..96a70a476 --- /dev/null +++ b/python-client-sdk/src/sdk/models/operations/uniondatetimenull.py @@ -0,0 +1,33 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import dateutil.parser +import requests as requests_http +from dataclasses_json import Undefined, dataclass_json +from datetime import datetime +from sdk import utils +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class UnionDateTimeNullRes: + r"""OK""" + json: Optional[datetime] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'encoder': utils.datetimeisoformat(False), 'decoder': dateutil.parser.isoparse }}) + + + + +@dataclasses.dataclass +class UnionDateTimeNullResponse: + content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" + status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" + res: Optional[UnionDateTimeNullRes] = dataclasses.field(default=None) + r"""OK""" + + diff --git a/python-client-sdk/src/sdk/models/operations/updateresource.py b/python-client-sdk/src/sdk/models/operations/updateresource.py index adff5ed3a..9fa4b6344 100755 --- a/python-client-sdk/src/sdk/models/operations/updateresource.py +++ b/python-client-sdk/src/sdk/models/operations/updateresource.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class UpdateResourceRequest: resource_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'resourceId', 'style': 'simple', 'explode': False }}) @@ -14,7 +13,6 @@ class UpdateResourceRequest: - @dataclasses.dataclass class UpdateResourceResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/usageexamplepost.py b/python-client-sdk/src/sdk/models/operations/usageexamplepost.py index f6b83c030..1b1c17124 100755 --- a/python-client-sdk/src/sdk/models/operations/usageexamplepost.py +++ b/python-client-sdk/src/sdk/models/operations/usageexamplepost.py @@ -14,7 +14,6 @@ from typing import Optional - @dataclasses.dataclass class UsageExamplePostSecurity: password: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'basic', 'field_name': 'password' }}) @@ -24,7 +23,6 @@ class UsageExamplePostSecurity: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class UsageExamplePostRequestBody: r"""A request body that contains fields with different formats for testing example generation""" @@ -52,7 +50,6 @@ class UsageExamplePostOptEnumParameter(str, Enum): VALUE3 = 'value3' - @dataclasses.dataclass class UsageExamplePostRequest: bigint_parameter: int = dataclasses.field(metadata={'query_param': { 'field_name': 'bigintParameter', 'style': 'form', 'explode': True }}) @@ -63,6 +60,8 @@ class UsageExamplePostRequest: r"""A boolean parameter""" date_parameter: date = dataclasses.field(metadata={'query_param': { 'field_name': 'dateParameter', 'style': 'form', 'explode': True }}) r"""A date parameter""" + date_time_default_parameter: datetime = dataclasses.field(metadata={'query_param': { 'field_name': 'dateTimeDefaultParameter', 'style': 'form', 'explode': True }}) + r"""A date time parameter with a default value""" date_time_parameter: datetime = dataclasses.field(metadata={'query_param': { 'field_name': 'dateTimeParameter', 'style': 'form', 'explode': True }}) r"""A date time parameter""" decimal_parameter: Decimal = dataclasses.field(metadata={'query_param': { 'field_name': 'decimalParameter', 'style': 'form', 'explode': True }}) @@ -102,7 +101,6 @@ class UsageExamplePostRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class UsageExamplePost200ApplicationJSONJSON: faker_formatted_strings: Optional[shared_fakerformattedstrings.FakerFormattedStrings] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('fakerFormattedStrings'), 'exclude': lambda f: f is None }}) @@ -118,7 +116,6 @@ class UsageExamplePost200ApplicationJSONJSON: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class UsageExamplePost200ApplicationJSON: r"""A response body that contains the simpleObject sent in the request body""" @@ -127,7 +124,6 @@ class UsageExamplePost200ApplicationJSON: - @dataclasses.dataclass class UsageExamplePostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/operations/weaklytypedoneofpost.py b/python-client-sdk/src/sdk/models/operations/weaklytypedoneofpost.py index ad55eca9d..1ed5f4d26 100755 --- a/python-client-sdk/src/sdk/models/operations/weaklytypedoneofpost.py +++ b/python-client-sdk/src/sdk/models/operations/weaklytypedoneofpost.py @@ -11,7 +11,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class WeaklyTypedOneOfPostRes: r"""OK""" @@ -20,7 +19,6 @@ class WeaklyTypedOneOfPostRes: - @dataclasses.dataclass class WeaklyTypedOneOfPostResponse: content_type: str = dataclasses.field() diff --git a/python-client-sdk/src/sdk/models/shared/__init__.py b/python-client-sdk/src/sdk/models/shared/__init__.py index 6fa0aa5da..b9bb624bc 100755 --- a/python-client-sdk/src/sdk/models/shared/__init__.py +++ b/python-client-sdk/src/sdk/models/shared/__init__.py @@ -29,6 +29,10 @@ from .nullableoneofrefinobject import * from .nullableoneoftypeinobject import * from .objectcircularreferenceobject import * +from .objwithcomplexnumbersadditionalproperties import * +from .objwithdateadditionalproperties import * +from .objwithobjadditionalproperties import * +from .objwithstringadditionalproperties import * from .objwithzerovaluecomplextypeptrs import * from .oneofcircularreferenceobject import * from .oneofgenerationstresstest import * @@ -47,4 +51,4 @@ from .validcircularreferenceobject import * from .writeonlyobject import * -__all__ = ["AllOfToAllOf","ArrObjValue","ArrObjValueCamelCase","ArrayCircularReferenceObject","AuthServiceRequestBody","AuthServiceRequestBodyBasicAuth","AuthServiceRequestBodyHeaderAuth","ComplexNumberTypes","DeepObject","DeepObjectAny","DeepObjectCamelCase","DeepObjectCamelCaseAnyVal","DeepObjectWithType","DeepObjectWithTypeAny","DefaultsAndConsts","DefaultsAndConstsConstEnumInt","DefaultsAndConstsConstEnumStr","DefaultsAndConstsDefaultEnumInt","DefaultsAndConstsDefaultEnumStr","DefaultsAndConstsOutput","DefaultsAndConstsOutputConstEnumInt","DefaultsAndConstsOutputConstEnumStr","DefaultsAndConstsOutputDefaultEnumInt","DefaultsAndConstsOutputDefaultEnumStr","DeprecatedFieldInObject","DeprecatedFieldInObjectDeprecatedEnum","DeprecatedObject","EmptyObjectParam","EnumT","ExampleBoat","ExampleBoatType","ExampleCar","ExampleCarType","ExampleResource","ExampleResourceChocolates","ExampleResourceEnumNumber","ExampleResourceEnumStr","FakerFormattedStrings","FakerStrings","FileResource","HTTPBinSimpleJSONObject","HTTPBinSimpleJSONObjectSlideshow","HTTPBinSimpleJSONObjectSlideshowSlides","LimitOffsetConfig","MapObjValue","MapObjValueCamelCase","NullableObject","NullableOneOfRefInObject","NullableOneOfRefInObjectNullableOneOfTwo","NullableOneOfRefInObjectOneOfOne","NullableOneOfTypeInObject","NullableOneOfTypeInObjectNullableOneOfTwo","ObjWithZeroValueComplexTypePtrs","ObjectCircularReferenceObject","OneOfCircularReferenceObject","OneOfCircularReferenceObjectChild","OneOfGenerationStressTest","OneOfGenerationStressTestOneOfFromArrayOfTypes","OneOfGenerationStressTestOneOfSameType","OneOfGenerationStressTestOneOfSameType2","ReadOnlyObject","ReadOnlyObjectInput","ReadWriteObjectInput","ReadWriteObjectOutput","RefQueryParamObj","RefQueryParamObjExploded","SchemeBasicAuth","Security","SimpleObject","SimpleObjectCamelCase","SimpleObjectCamelCaseInt32EnumVal","SimpleObjectCamelCaseIntEnumVal","SimpleObjectInt32Enum","SimpleObjectIntEnum","SimpleObjectWithType","SimpleObjectWithTypeInt32Enum","SimpleObjectWithTypeIntEnum","TypedObject1","TypedObject1Type","TypedObject2","TypedObject2Type","TypedObject3","TypedObject3Type","UnsupportedEnums","ValidCircularReferenceObject","WriteOnlyObject","WriteOnlyObjectOutput"] +__all__ = ["AllOfToAllOf","ArrObjValue","ArrObjValueCamelCase","ArrayCircularReferenceObject","AuthServiceRequestBody","AuthServiceRequestBodyBasicAuth","AuthServiceRequestBodyHeaderAuth","ComplexNumberTypes","DeepObject","DeepObjectAny","DeepObjectCamelCase","DeepObjectCamelCaseAnyVal","DeepObjectWithType","DeepObjectWithTypeAny","DefaultsAndConsts","DefaultsAndConstsConstEnumInt","DefaultsAndConstsConstEnumStr","DefaultsAndConstsDefaultEnumInt","DefaultsAndConstsDefaultEnumStr","DefaultsAndConstsOutput","DefaultsAndConstsOutputConstEnumInt","DefaultsAndConstsOutputConstEnumStr","DefaultsAndConstsOutputDefaultEnumInt","DefaultsAndConstsOutputDefaultEnumStr","DeprecatedFieldInObject","DeprecatedFieldInObjectDeprecatedEnum","DeprecatedObject","EmptyObjectParam","EnumT","ExampleBoat","ExampleBoatType","ExampleCar","ExampleCarType","ExampleResource","ExampleResourceChocolates","ExampleResourceEnumNumber","ExampleResourceEnumStr","FakerFormattedStrings","FakerStrings","FileResource","HTTPBinSimpleJSONObject","HTTPBinSimpleJSONObjectSlideshow","HTTPBinSimpleJSONObjectSlideshowSlides","LimitOffsetConfig","MapObjValue","MapObjValueCamelCase","NullableObject","NullableOneOfRefInObject","NullableOneOfRefInObjectNullableOneOfTwo","NullableOneOfRefInObjectOneOfOne","NullableOneOfTypeInObject","NullableOneOfTypeInObjectNullableOneOfTwo","ObjWithComplexNumbersAdditionalProperties","ObjWithDateAdditionalProperties","ObjWithObjAdditionalProperties","ObjWithStringAdditionalProperties","ObjWithZeroValueComplexTypePtrs","ObjectCircularReferenceObject","OneOfCircularReferenceObject","OneOfCircularReferenceObjectChild","OneOfGenerationStressTest","OneOfGenerationStressTestOneOfFromArrayOfTypes","OneOfGenerationStressTestOneOfSameType","OneOfGenerationStressTestOneOfSameType2","ReadOnlyObject","ReadOnlyObjectInput","ReadWriteObjectInput","ReadWriteObjectOutput","RefQueryParamObj","RefQueryParamObjExploded","SchemeBasicAuth","Security","SimpleObject","SimpleObjectCamelCase","SimpleObjectCamelCaseInt32EnumVal","SimpleObjectCamelCaseIntEnumVal","SimpleObjectInt32Enum","SimpleObjectIntEnum","SimpleObjectWithType","SimpleObjectWithTypeInt32Enum","SimpleObjectWithTypeIntEnum","TypedObject1","TypedObject1Type","TypedObject2","TypedObject2Type","TypedObject3","TypedObject3Type","UnsupportedEnums","ValidCircularReferenceObject","WriteOnlyObject","WriteOnlyObjectOutput"] diff --git a/python-client-sdk/src/sdk/models/shared/alloftoallof.py b/python-client-sdk/src/sdk/models/shared/alloftoallof.py index 374208372..372537e79 100755 --- a/python-client-sdk/src/sdk/models/shared/alloftoallof.py +++ b/python-client-sdk/src/sdk/models/shared/alloftoallof.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class AllOfToAllOf: id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/arraycircularreferenceobject.py b/python-client-sdk/src/sdk/models/shared/arraycircularreferenceobject.py index 5c1a15eb9..5a302f8c1 100755 --- a/python-client-sdk/src/sdk/models/shared/arraycircularreferenceobject.py +++ b/python-client-sdk/src/sdk/models/shared/arraycircularreferenceobject.py @@ -4,12 +4,12 @@ import dataclasses from dataclasses_json import Undefined, dataclass_json from sdk import utils +from typing import List @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ArrayCircularReferenceObject: - circular: list[ArrayCircularReferenceObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('circular') }}) + circular: List[ArrayCircularReferenceObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('circular') }}) diff --git a/python-client-sdk/src/sdk/models/shared/arrobjvalue.py b/python-client-sdk/src/sdk/models/shared/arrobjvalue.py index e91cbe9f3..c9e534217 100755 --- a/python-client-sdk/src/sdk/models/shared/arrobjvalue.py +++ b/python-client-sdk/src/sdk/models/shared/arrobjvalue.py @@ -5,14 +5,13 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ArrObjValue: - json: Optional[list[shared_simpleobject.SimpleObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + json: Optional[List[shared_simpleobject.SimpleObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) required: Optional[Any] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('required'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/arrobjvaluecamelcase.py b/python-client-sdk/src/sdk/models/shared/arrobjvaluecamelcase.py index feebb230a..13606720e 100755 --- a/python-client-sdk/src/sdk/models/shared/arrobjvaluecamelcase.py +++ b/python-client-sdk/src/sdk/models/shared/arrobjvaluecamelcase.py @@ -5,14 +5,13 @@ from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ArrObjValueCamelCase: - json: Optional[list[shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + json: Optional[List[shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) required: Optional[Any] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('required'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/authservicerequestbody.py b/python-client-sdk/src/sdk/models/shared/authservicerequestbody.py index 7c294ae56..895f5e09e 100755 --- a/python-client-sdk/src/sdk/models/shared/authservicerequestbody.py +++ b/python-client-sdk/src/sdk/models/shared/authservicerequestbody.py @@ -4,11 +4,10 @@ import dataclasses from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class AuthServiceRequestBodyBasicAuth: password: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('password') }}) @@ -18,7 +17,6 @@ class AuthServiceRequestBodyBasicAuth: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class AuthServiceRequestBodyHeaderAuth: expected_value: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('expectedValue') }}) @@ -28,10 +26,9 @@ class AuthServiceRequestBodyHeaderAuth: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class AuthServiceRequestBody: basic_auth: Optional[AuthServiceRequestBodyBasicAuth] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('basicAuth'), 'exclude': lambda f: f is None }}) - header_auth: Optional[list[AuthServiceRequestBodyHeaderAuth]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headerAuth'), 'exclude': lambda f: f is None }}) + header_auth: Optional[List[AuthServiceRequestBodyHeaderAuth]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('headerAuth'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/complexnumbertypes.py b/python-client-sdk/src/sdk/models/shared/complexnumbertypes.py index 31825fbd1..ac26a7f3d 100755 --- a/python-client-sdk/src/sdk/models/shared/complexnumbertypes.py +++ b/python-client-sdk/src/sdk/models/shared/complexnumbertypes.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ComplexNumberTypes: bigint: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bigint') }}) diff --git a/python-client-sdk/src/sdk/models/shared/deepobject.py b/python-client-sdk/src/sdk/models/shared/deepobject.py index d4438a883..bc3504d38 100755 --- a/python-client-sdk/src/sdk/models/shared/deepobject.py +++ b/python-client-sdk/src/sdk/models/shared/deepobject.py @@ -5,8 +5,7 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional, Union - +from typing import Dict, List, Optional, Union @dataclasses.dataclass @@ -15,14 +14,13 @@ class DeepObjectAny: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeepObject: - any: Union[shared_simpleobject.SimpleObject, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }, 'form': { 'field_name': 'any' }, 'multipart_form': { 'field_name': 'any' }}) - arr: list[shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr') }, 'form': { 'field_name': 'arr', 'json': True }, 'multipart_form': { 'field_name': 'arr', 'json': True }}) + any: Union[shared_simpleobject.SimpleObject, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }, 'form': { 'field_name': 'any', 'json': True }, 'multipart_form': { 'field_name': 'any', 'json': True }}) + arr: List[shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr') }, 'form': { 'field_name': 'arr', 'json': True }, 'multipart_form': { 'field_name': 'arr', 'json': True }}) bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }, 'form': { 'field_name': 'bool' }, 'multipart_form': { 'field_name': 'bool' }}) int: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('int') }, 'form': { 'field_name': 'int' }, 'multipart_form': { 'field_name': 'int' }}) - map: dict[str, shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('map') }, 'form': { 'field_name': 'map', 'json': True }, 'multipart_form': { 'field_name': 'map', 'json': True }}) + map: Dict[str, shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('map') }, 'form': { 'field_name': 'map', 'json': True }, 'multipart_form': { 'field_name': 'map', 'json': True }}) num: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('num') }, 'form': { 'field_name': 'num' }, 'multipart_form': { 'field_name': 'num' }}) obj: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('obj') }, 'form': { 'field_name': 'obj', 'json': True }, 'multipart_form': { 'field_name': 'obj', 'json': True }}) r"""A simple object that uses all our supported primitive types and enums and has optional properties. diff --git a/python-client-sdk/src/sdk/models/shared/deepobjectcamelcase.py b/python-client-sdk/src/sdk/models/shared/deepobjectcamelcase.py index b9a7ed318..d63040031 100755 --- a/python-client-sdk/src/sdk/models/shared/deepobjectcamelcase.py +++ b/python-client-sdk/src/sdk/models/shared/deepobjectcamelcase.py @@ -5,8 +5,7 @@ from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional, Union - +from typing import Dict, List, Optional, Union @dataclasses.dataclass @@ -15,14 +14,13 @@ class DeepObjectCamelCaseAnyVal: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeepObjectCamelCase: any_val: Union[shared_simpleobjectcamelcase.SimpleObjectCamelCase, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any_val') }}) - arr_val: list[shared_simpleobjectcamelcase.SimpleObjectCamelCase] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr_val') }}) + arr_val: List[shared_simpleobjectcamelcase.SimpleObjectCamelCase] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr_val') }}) bool_val: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool_val') }}) int_val: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('int_val') }}) - map_val: dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('map_val') }}) + map_val: Dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('map_val') }}) num_val: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('num_val') }}) obj_val: shared_simpleobjectcamelcase.SimpleObjectCamelCase = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('obj_val') }}) r"""A simple object that uses all our supported primitive types and enums and has optional properties. diff --git a/python-client-sdk/src/sdk/models/shared/deepobjectwithtype.py b/python-client-sdk/src/sdk/models/shared/deepobjectwithtype.py index 1b8e81cb6..32491047d 100755 --- a/python-client-sdk/src/sdk/models/shared/deepobjectwithtype.py +++ b/python-client-sdk/src/sdk/models/shared/deepobjectwithtype.py @@ -5,8 +5,7 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional, Union - +from typing import Dict, List, Optional, Union @dataclasses.dataclass @@ -15,14 +14,13 @@ class DeepObjectWithTypeAny: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeepObjectWithType: any: Union[shared_simpleobject.SimpleObject, str] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }}) - arr: list[shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr') }}) + arr: List[shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arr') }}) bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) int: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('int') }}) - map: dict[str, shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('map') }}) + map: Dict[str, shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('map') }}) num: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('num') }}) obj: shared_simpleobject.SimpleObject = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('obj') }}) r"""A simple object that uses all our supported primitive types and enums and has optional properties. diff --git a/python-client-sdk/src/sdk/models/shared/defaultsandconsts.py b/python-client-sdk/src/sdk/models/shared/defaultsandconsts.py index 7be2e1658..f1e611520 100755 --- a/python-client-sdk/src/sdk/models/shared/defaultsandconsts.py +++ b/python-client-sdk/src/sdk/models/shared/defaultsandconsts.py @@ -32,7 +32,6 @@ class DefaultsAndConstsDefaultEnumStr(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DefaultsAndConsts: normal_field: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('normalField') }}) diff --git a/python-client-sdk/src/sdk/models/shared/defaultsandconstsoutput.py b/python-client-sdk/src/sdk/models/shared/defaultsandconstsoutput.py index 0b5396e64..0e94c6186 100755 --- a/python-client-sdk/src/sdk/models/shared/defaultsandconstsoutput.py +++ b/python-client-sdk/src/sdk/models/shared/defaultsandconstsoutput.py @@ -32,7 +32,6 @@ class DefaultsAndConstsOutputDefaultEnumStr(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DefaultsAndConstsOutput: const_big_int: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('constBigInt') }}) diff --git a/python-client-sdk/src/sdk/models/shared/deprecatedfieldinobject.py b/python-client-sdk/src/sdk/models/shared/deprecatedfieldinobject.py index 7fe77ebfb..ae92971e7 100755 --- a/python-client-sdk/src/sdk/models/shared/deprecatedfieldinobject.py +++ b/python-client-sdk/src/sdk/models/shared/deprecatedfieldinobject.py @@ -15,7 +15,6 @@ class DeprecatedFieldInObjectDeprecatedEnum(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeprecatedFieldInObject: deprecated_enum: Optional[DeprecatedFieldInObjectDeprecatedEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('deprecatedEnum'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/deprecatedobject.py b/python-client-sdk/src/sdk/models/shared/deprecatedobject.py index 398cc96f6..b00ed06f9 100755 --- a/python-client-sdk/src/sdk/models/shared/deprecatedobject.py +++ b/python-client-sdk/src/sdk/models/shared/deprecatedobject.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DeprecatedObject: r"""Deprecated class: This object is deprecated.""" diff --git a/python-client-sdk/src/sdk/models/shared/emptyobjectparam.py b/python-client-sdk/src/sdk/models/shared/emptyobjectparam.py index cc37b606f..bfccd1f69 100755 --- a/python-client-sdk/src/sdk/models/shared/emptyobjectparam.py +++ b/python-client-sdk/src/sdk/models/shared/emptyobjectparam.py @@ -4,7 +4,6 @@ import dataclasses - @dataclasses.dataclass class EmptyObjectParam: pass diff --git a/python-client-sdk/src/sdk/models/shared/exampleboat.py b/python-client-sdk/src/sdk/models/shared/exampleboat.py index 77ad4150d..305899cdf 100755 --- a/python-client-sdk/src/sdk/models/shared/exampleboat.py +++ b/python-client-sdk/src/sdk/models/shared/exampleboat.py @@ -14,7 +14,6 @@ class ExampleBoatType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ExampleBoat: length: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('length') }}) diff --git a/python-client-sdk/src/sdk/models/shared/examplecar.py b/python-client-sdk/src/sdk/models/shared/examplecar.py index c3b37f5af..81d9f0c0c 100755 --- a/python-client-sdk/src/sdk/models/shared/examplecar.py +++ b/python-client-sdk/src/sdk/models/shared/examplecar.py @@ -14,7 +14,6 @@ class ExampleCarType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ExampleCar: make: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('make') }}) diff --git a/python-client-sdk/src/sdk/models/shared/exampleresource.py b/python-client-sdk/src/sdk/models/shared/exampleresource.py index 56e85eb8c..965be9d10 100755 --- a/python-client-sdk/src/sdk/models/shared/exampleresource.py +++ b/python-client-sdk/src/sdk/models/shared/exampleresource.py @@ -9,11 +9,10 @@ from datetime import datetime from enum import Enum from sdk import utils -from typing import Optional, Union +from typing import Dict, List, Optional, Union @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ExampleResourceChocolates: description: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description') }}) @@ -32,20 +31,19 @@ class ExampleResourceEnumStr(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ExampleResource: - chocolates: list[ExampleResourceChocolates] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('chocolates') }}) + chocolates: List[ExampleResourceChocolates] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('chocolates') }}) id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) vehicle: Union[shared_exampleboat.ExampleBoat, shared_examplecar.ExampleCar] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('vehicle') }}) - array_of_number: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrayOfNumber'), 'exclude': lambda f: f is None }}) - array_of_string: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrayOfString'), 'exclude': lambda f: f is None }}) + array_of_number: Optional[List[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrayOfNumber'), 'exclude': lambda f: f is None }}) + array_of_string: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('arrayOfString'), 'exclude': lambda f: f is None }}) created_at: Optional[datetime] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdAt'), 'encoder': utils.datetimeisoformat(True), 'decoder': dateutil.parser.isoparse, 'exclude': lambda f: f is None }}) enum_number: Optional[ExampleResourceEnumNumber] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('enumNumber'), 'exclude': lambda f: f is None }}) enum_str: Optional[ExampleResourceEnumStr] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('enumStr'), 'exclude': lambda f: f is None }}) - map_of_integer: Optional[dict[str, int]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mapOfInteger'), 'exclude': lambda f: f is None }}) - map_of_string: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mapOfString'), 'exclude': lambda f: f is None }}) + map_of_integer: Optional[Dict[str, int]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mapOfInteger'), 'exclude': lambda f: f is None }}) + map_of_string: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('mapOfString'), 'exclude': lambda f: f is None }}) updated_at: Optional[datetime] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updatedAt'), 'encoder': utils.datetimeisoformat(True), 'decoder': dateutil.parser.isoparse, 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/fakerformattedstrings.py b/python-client-sdk/src/sdk/models/shared/fakerformattedstrings.py index 85e422c71..372a08a5d 100755 --- a/python-client-sdk/src/sdk/models/shared/fakerformattedstrings.py +++ b/python-client-sdk/src/sdk/models/shared/fakerformattedstrings.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FakerFormattedStrings: r"""A set of strings with format values that lead to relevant examples being generated for them""" diff --git a/python-client-sdk/src/sdk/models/shared/fakerstrings.py b/python-client-sdk/src/sdk/models/shared/fakerstrings.py index eba6fbbd8..6d47e0e77 100755 --- a/python-client-sdk/src/sdk/models/shared/fakerstrings.py +++ b/python-client-sdk/src/sdk/models/shared/fakerstrings.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FakerStrings: r"""A set of strings with fieldnames that lead to relevant examples being generated for them""" diff --git a/python-client-sdk/src/sdk/models/shared/fileresource.py b/python-client-sdk/src/sdk/models/shared/fileresource.py index 88a9b6631..ae43fb5d0 100755 --- a/python-client-sdk/src/sdk/models/shared/fileresource.py +++ b/python-client-sdk/src/sdk/models/shared/fileresource.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class FileResource: id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) diff --git a/python-client-sdk/src/sdk/models/shared/httpbinsimplejsonobject.py b/python-client-sdk/src/sdk/models/shared/httpbinsimplejsonobject.py index 8f54c1a13..03600f38f 100755 --- a/python-client-sdk/src/sdk/models/shared/httpbinsimplejsonobject.py +++ b/python-client-sdk/src/sdk/models/shared/httpbinsimplejsonobject.py @@ -4,34 +4,31 @@ import dataclasses from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HTTPBinSimpleJSONObjectSlideshowSlides: title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) type: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - items: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('items'), 'exclude': lambda f: f is None }}) + items: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('items'), 'exclude': lambda f: f is None }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HTTPBinSimpleJSONObjectSlideshow: author: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('author') }}) date_: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('date') }}) - slides: list[HTTPBinSimpleJSONObjectSlideshowSlides] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('slides') }}) + slides: List[HTTPBinSimpleJSONObjectSlideshowSlides] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('slides') }}) title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class HTTPBinSimpleJSONObject: slideshow: HTTPBinSimpleJSONObjectSlideshow = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('slideshow') }}) diff --git a/python-client-sdk/src/sdk/models/shared/limitoffsetconfig.py b/python-client-sdk/src/sdk/models/shared/limitoffsetconfig.py index adc4a82ed..2bdab9d45 100755 --- a/python-client-sdk/src/sdk/models/shared/limitoffsetconfig.py +++ b/python-client-sdk/src/sdk/models/shared/limitoffsetconfig.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class LimitOffsetConfig: limit: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('limit'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/mapobjvalue.py b/python-client-sdk/src/sdk/models/shared/mapobjvalue.py index bf9c4fcb2..ba7dd38f1 100755 --- a/python-client-sdk/src/sdk/models/shared/mapobjvalue.py +++ b/python-client-sdk/src/sdk/models/shared/mapobjvalue.py @@ -5,14 +5,13 @@ from ..shared import simpleobject as shared_simpleobject from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MapObjValue: - json: Optional[dict[str, shared_simpleobject.SimpleObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, shared_simpleobject.SimpleObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) required: Optional[Any] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('required'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/mapobjvaluecamelcase.py b/python-client-sdk/src/sdk/models/shared/mapobjvaluecamelcase.py index a3a39759f..f2014223a 100755 --- a/python-client-sdk/src/sdk/models/shared/mapobjvaluecamelcase.py +++ b/python-client-sdk/src/sdk/models/shared/mapobjvaluecamelcase.py @@ -5,14 +5,13 @@ from ..shared import simpleobjectcamelcase as shared_simpleobjectcamelcase from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Any, Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MapObjValueCamelCase: - json: Optional[dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) + json: Optional[Dict[str, shared_simpleobjectcamelcase.SimpleObjectCamelCase]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('json'), 'exclude': lambda f: f is None }}) required: Optional[Any] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('required'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/nullableobject.py b/python-client-sdk/src/sdk/models/shared/nullableobject.py index 4085c13df..2672d07da 100755 --- a/python-client-sdk/src/sdk/models/shared/nullableobject.py +++ b/python-client-sdk/src/sdk/models/shared/nullableobject.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableObject: required: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('required') }}) diff --git a/python-client-sdk/src/sdk/models/shared/nullableoneofrefinobject.py b/python-client-sdk/src/sdk/models/shared/nullableoneofrefinobject.py index 8d56a823d..0aa984c5b 100755 --- a/python-client-sdk/src/sdk/models/shared/nullableoneofrefinobject.py +++ b/python-client-sdk/src/sdk/models/shared/nullableoneofrefinobject.py @@ -9,20 +9,17 @@ from typing import Optional, Union - @dataclasses.dataclass class NullableOneOfRefInObjectNullableOneOfTwo: pass - @dataclasses.dataclass class NullableOneOfRefInObjectOneOfOne: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableOneOfRefInObject: nullable_one_of_one: Optional[shared_typedobject1.TypedObject1] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableOneOfOne') }}) diff --git a/python-client-sdk/src/sdk/models/shared/nullableoneoftypeinobject.py b/python-client-sdk/src/sdk/models/shared/nullableoneoftypeinobject.py index 3e45326c6..c06f3b5a5 100755 --- a/python-client-sdk/src/sdk/models/shared/nullableoneoftypeinobject.py +++ b/python-client-sdk/src/sdk/models/shared/nullableoneoftypeinobject.py @@ -7,14 +7,12 @@ from typing import Optional, Union - @dataclasses.dataclass class NullableOneOfTypeInObjectNullableOneOfTwo: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class NullableOneOfTypeInObject: nullable_one_of_one: Optional[bool] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('NullableOneOfOne') }}) diff --git a/python-client-sdk/src/sdk/models/shared/objectcircularreferenceobject.py b/python-client-sdk/src/sdk/models/shared/objectcircularreferenceobject.py index 70dbd977b..07180cb9c 100755 --- a/python-client-sdk/src/sdk/models/shared/objectcircularreferenceobject.py +++ b/python-client-sdk/src/sdk/models/shared/objectcircularreferenceobject.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ObjectCircularReferenceObject: circular: Optional[ObjectCircularReferenceObject] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('circular'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/objwithcomplexnumbersadditionalproperties.py b/python-client-sdk/src/sdk/models/shared/objwithcomplexnumbersadditionalproperties.py new file mode 100755 index 000000000..bed2e9dd9 --- /dev/null +++ b/python-client-sdk/src/sdk/models/shared/objwithcomplexnumbersadditionalproperties.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from dataclasses_json import Undefined, dataclass_json +from sdk import utils +from typing import Dict, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class ObjWithComplexNumbersAdditionalProperties: + normal_field: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('normalField') }}) + additional_properties: Optional[Dict[str, int]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'encoder': utils.map_encoder(True, utils.bigintencoder(False)), 'decoder': utils.map_decoder(utils.bigintdecoder), 'exclude': lambda f: f is None }}) + + diff --git a/python-client-sdk/src/sdk/models/shared/objwithdateadditionalproperties.py b/python-client-sdk/src/sdk/models/shared/objwithdateadditionalproperties.py new file mode 100755 index 000000000..d1707769f --- /dev/null +++ b/python-client-sdk/src/sdk/models/shared/objwithdateadditionalproperties.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from dataclasses_json import Undefined, dataclass_json +from datetime import date +from sdk import utils +from typing import Dict, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class ObjWithDateAdditionalProperties: + normal_field: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('normalField') }}) + additional_properties: Optional[Dict[str, date]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'encoder': utils.map_encoder(True, utils.dateisoformat(False)), 'decoder': utils.map_decoder(utils.datefromisoformat), 'exclude': lambda f: f is None }}) + + diff --git a/python-client-sdk/src/sdk/models/shared/objwithobjadditionalproperties.py b/python-client-sdk/src/sdk/models/shared/objwithobjadditionalproperties.py new file mode 100755 index 000000000..c534a1622 --- /dev/null +++ b/python-client-sdk/src/sdk/models/shared/objwithobjadditionalproperties.py @@ -0,0 +1,20 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import dateutil.parser +from ..shared import simpleobject as shared_simpleobject +from dataclasses_json import Undefined, dataclass_json +from datetime import datetime +from sdk import utils +from typing import Dict, List, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class ObjWithObjAdditionalProperties: + additional_properties: List[int] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('AdditionalProperties') }}) + datetime_: datetime = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('datetime'), 'encoder': utils.datetimeisoformat(False), 'decoder': dateutil.parser.isoparse }}) + additional_properties_t: Optional[Dict[str, shared_simpleobject.SimpleObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) + + diff --git a/python-client-sdk/src/sdk/models/shared/objwithstringadditionalproperties.py b/python-client-sdk/src/sdk/models/shared/objwithstringadditionalproperties.py new file mode 100755 index 000000000..6baf4b8f8 --- /dev/null +++ b/python-client-sdk/src/sdk/models/shared/objwithstringadditionalproperties.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from dataclasses_json import Undefined, dataclass_json +from sdk import utils +from typing import Dict, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class ObjWithStringAdditionalProperties: + normal_field: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('normalField') }}) + additional_properties: Optional[Dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) + + diff --git a/python-client-sdk/src/sdk/models/shared/objwithzerovaluecomplextypeptrs.py b/python-client-sdk/src/sdk/models/shared/objwithzerovaluecomplextypeptrs.py index 42416e80f..52ea4f281 100755 --- a/python-client-sdk/src/sdk/models/shared/objwithzerovaluecomplextypeptrs.py +++ b/python-client-sdk/src/sdk/models/shared/objwithzerovaluecomplextypeptrs.py @@ -11,7 +11,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ObjWithZeroValueComplexTypePtrs: bigint: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bigint'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/oneofcircularreferenceobject.py b/python-client-sdk/src/sdk/models/shared/oneofcircularreferenceobject.py index 20a0e47b4..08c62af35 100755 --- a/python-client-sdk/src/sdk/models/shared/oneofcircularreferenceobject.py +++ b/python-client-sdk/src/sdk/models/shared/oneofcircularreferenceobject.py @@ -8,14 +8,12 @@ from typing import Union - @dataclasses.dataclass class OneOfCircularReferenceObjectChild: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class OneOfCircularReferenceObject: child: Union[OneOfCircularReferenceObject, shared_simpleobject.SimpleObject] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('child') }}) diff --git a/python-client-sdk/src/sdk/models/shared/oneofgenerationstresstest.py b/python-client-sdk/src/sdk/models/shared/oneofgenerationstresstest.py index 480f79efd..f6f88d845 100755 --- a/python-client-sdk/src/sdk/models/shared/oneofgenerationstresstest.py +++ b/python-client-sdk/src/sdk/models/shared/oneofgenerationstresstest.py @@ -8,7 +8,6 @@ from typing import Any, Optional, Union - @dataclasses.dataclass class OneOfGenerationStressTestOneOfFromArrayOfTypes: pass @@ -17,14 +16,12 @@ class OneOfGenerationStressTestOneOfSameType2(str, Enum): LATEST = 'latest' - @dataclasses.dataclass class OneOfGenerationStressTestOneOfSameType: pass @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class OneOfGenerationStressTest: any: Any = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('any') }}) diff --git a/python-client-sdk/src/sdk/models/shared/readonlyobject.py b/python-client-sdk/src/sdk/models/shared/readonlyobject.py index 54a34202e..7efc814c9 100755 --- a/python-client-sdk/src/sdk/models/shared/readonlyobject.py +++ b/python-client-sdk/src/sdk/models/shared/readonlyobject.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ReadOnlyObject: bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) @@ -17,7 +16,6 @@ class ReadOnlyObject: - @dataclasses.dataclass class ReadOnlyObjectInput: pass diff --git a/python-client-sdk/src/sdk/models/shared/readwriteobject.py b/python-client-sdk/src/sdk/models/shared/readwriteobject.py index bb71df323..683ff9515 100755 --- a/python-client-sdk/src/sdk/models/shared/readwriteobject.py +++ b/python-client-sdk/src/sdk/models/shared/readwriteobject.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ReadWriteObjectInput: num1: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('num1') }}) @@ -18,7 +17,6 @@ class ReadWriteObjectInput: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ReadWriteObjectOutput: num3: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('num3') }}) diff --git a/python-client-sdk/src/sdk/models/shared/refqueryparamobj.py b/python-client-sdk/src/sdk/models/shared/refqueryparamobj.py index c309053cd..59669b78a 100755 --- a/python-client-sdk/src/sdk/models/shared/refqueryparamobj.py +++ b/python-client-sdk/src/sdk/models/shared/refqueryparamobj.py @@ -4,7 +4,6 @@ import dataclasses - @dataclasses.dataclass class RefQueryParamObj: bool: bool = dataclasses.field(metadata={'query_param': { 'field_name': 'bool' }}) diff --git a/python-client-sdk/src/sdk/models/shared/refqueryparamobjexploded.py b/python-client-sdk/src/sdk/models/shared/refqueryparamobjexploded.py index ceab6b736..9c5723300 100755 --- a/python-client-sdk/src/sdk/models/shared/refqueryparamobjexploded.py +++ b/python-client-sdk/src/sdk/models/shared/refqueryparamobjexploded.py @@ -4,7 +4,6 @@ import dataclasses - @dataclasses.dataclass class RefQueryParamObjExploded: bool: bool = dataclasses.field(metadata={'query_param': { 'field_name': 'bool' }}) diff --git a/python-client-sdk/src/sdk/models/shared/security.py b/python-client-sdk/src/sdk/models/shared/security.py index d505062e9..319afa821 100755 --- a/python-client-sdk/src/sdk/models/shared/security.py +++ b/python-client-sdk/src/sdk/models/shared/security.py @@ -5,7 +5,6 @@ from typing import Optional - @dataclasses.dataclass class SchemeBasicAuth: password: str = dataclasses.field(metadata={'security': { 'field_name': 'password' }}) @@ -14,7 +13,6 @@ class SchemeBasicAuth: - @dataclasses.dataclass class Security: api_key_auth: Optional[str] = dataclasses.field(default=None, metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) diff --git a/python-client-sdk/src/sdk/models/shared/simpleobject.py b/python-client-sdk/src/sdk/models/shared/simpleobject.py index 7e8ec0367..a410d83d2 100755 --- a/python-client-sdk/src/sdk/models/shared/simpleobject.py +++ b/python-client-sdk/src/sdk/models/shared/simpleobject.py @@ -25,7 +25,6 @@ class SimpleObjectIntEnum(int, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimpleObject: r"""A simple object that uses all our supported primitive types and enums and has optional properties. diff --git a/python-client-sdk/src/sdk/models/shared/simpleobjectcamelcase.py b/python-client-sdk/src/sdk/models/shared/simpleobjectcamelcase.py index e92cbb23d..23c16d45f 100755 --- a/python-client-sdk/src/sdk/models/shared/simpleobjectcamelcase.py +++ b/python-client-sdk/src/sdk/models/shared/simpleobjectcamelcase.py @@ -25,7 +25,6 @@ class SimpleObjectCamelCaseIntEnumVal(int, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimpleObjectCamelCase: r"""A simple object that uses all our supported primitive types and enums and has optional properties. diff --git a/python-client-sdk/src/sdk/models/shared/simpleobjectwithtype.py b/python-client-sdk/src/sdk/models/shared/simpleobjectwithtype.py index 02a496723..00b661773 100755 --- a/python-client-sdk/src/sdk/models/shared/simpleobjectwithtype.py +++ b/python-client-sdk/src/sdk/models/shared/simpleobjectwithtype.py @@ -25,7 +25,6 @@ class SimpleObjectWithTypeIntEnum(int, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SimpleObjectWithType: r"""A simple object that uses all our supported primitive types and enums and has optional properties. diff --git a/python-client-sdk/src/sdk/models/shared/typedobject1.py b/python-client-sdk/src/sdk/models/shared/typedobject1.py index 7ecacc4eb..82a095272 100755 --- a/python-client-sdk/src/sdk/models/shared/typedobject1.py +++ b/python-client-sdk/src/sdk/models/shared/typedobject1.py @@ -11,7 +11,6 @@ class TypedObject1Type(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TypedObject1: type: TypedObject1Type = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) diff --git a/python-client-sdk/src/sdk/models/shared/typedobject2.py b/python-client-sdk/src/sdk/models/shared/typedobject2.py index 8a6ae1463..55e99a217 100755 --- a/python-client-sdk/src/sdk/models/shared/typedobject2.py +++ b/python-client-sdk/src/sdk/models/shared/typedobject2.py @@ -11,7 +11,6 @@ class TypedObject2Type(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TypedObject2: type: TypedObject2Type = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) diff --git a/python-client-sdk/src/sdk/models/shared/typedobject3.py b/python-client-sdk/src/sdk/models/shared/typedobject3.py index f482458a5..c83048326 100755 --- a/python-client-sdk/src/sdk/models/shared/typedobject3.py +++ b/python-client-sdk/src/sdk/models/shared/typedobject3.py @@ -11,7 +11,6 @@ class TypedObject3Type(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class TypedObject3: type: TypedObject3Type = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) diff --git a/python-client-sdk/src/sdk/models/shared/unsupportedenums.py b/python-client-sdk/src/sdk/models/shared/unsupportedenums.py index beeb9e00d..9d35eae50 100755 --- a/python-client-sdk/src/sdk/models/shared/unsupportedenums.py +++ b/python-client-sdk/src/sdk/models/shared/unsupportedenums.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class UnsupportedEnums: boolean_enum: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('booleanEnum') }}) diff --git a/python-client-sdk/src/sdk/models/shared/validcircularreferenceobject.py b/python-client-sdk/src/sdk/models/shared/validcircularreferenceobject.py index b6deec9b3..92c30b687 100755 --- a/python-client-sdk/src/sdk/models/shared/validcircularreferenceobject.py +++ b/python-client-sdk/src/sdk/models/shared/validcircularreferenceobject.py @@ -4,13 +4,12 @@ import dataclasses from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ValidCircularReferenceObject: - circular: Optional[list[ValidCircularReferenceObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('circular'), 'exclude': lambda f: f is None }}) + circular: Optional[List[ValidCircularReferenceObject]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('circular'), 'exclude': lambda f: f is None }}) diff --git a/python-client-sdk/src/sdk/models/shared/writeonlyobject.py b/python-client-sdk/src/sdk/models/shared/writeonlyobject.py index 9a52a120e..034a7ac37 100755 --- a/python-client-sdk/src/sdk/models/shared/writeonlyobject.py +++ b/python-client-sdk/src/sdk/models/shared/writeonlyobject.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class WriteOnlyObject: bool: bool = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bool') }}) @@ -17,7 +16,6 @@ class WriteOnlyObject: - @dataclasses.dataclass class WriteOnlyObjectOutput: pass diff --git a/python-client-sdk/src/sdk/parameters.py b/python-client-sdk/src/sdk/parameters.py index a7af1f44e..44f7ed46b 100755 --- a/python-client-sdk/src/sdk/parameters.py +++ b/python-client-sdk/src/sdk/parameters.py @@ -3,7 +3,7 @@ from .sdkconfiguration import SDKConfiguration from sdk import utils from sdk.models import errors, operations, shared -from typing import Optional +from typing import Dict, List, Optional class Parameters: r"""Endpoints for testing parameters.""" @@ -13,7 +13,7 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: self.sdk_configuration = sdk_config - def deep_object_query_params_map(self, map_param: dict[str, str], map_arr_param: Optional[dict[str, list[str]]] = None) -> operations.DeepObjectQueryParamsMapResponse: + def deep_object_query_params_map(self, map_param: Dict[str, str], map_arr_param: Optional[Dict[str, List[str]]] = None) -> operations.DeepObjectQueryParamsMapResponse: request = operations.DeepObjectQueryParamsMapRequest( map_param=map_param, map_arr_param=map_arr_param, @@ -110,7 +110,7 @@ def duplicate_param(self, duplicate_param_request: str) -> operations.DuplicateP return res - def form_query_params_array(self, arr_param: Optional[list[str]] = None, arr_param_exploded: Optional[list[int]] = None) -> operations.FormQueryParamsArrayResponse: + def form_query_params_array(self, arr_param: Optional[List[str]] = None, arr_param_exploded: Optional[List[int]] = None) -> operations.FormQueryParamsArrayResponse: request = operations.FormQueryParamsArrayRequest( arr_param=arr_param, arr_param_exploded=arr_param_exploded, @@ -143,7 +143,40 @@ def form_query_params_array(self, arr_param: Optional[list[str]] = None, arr_par return res - def form_query_params_map(self, map_param: Optional[dict[str, str]] = None, map_param_exploded: Optional[dict[str, int]] = None) -> operations.FormQueryParamsMapResponse: + def form_query_params_camel_object(self, obj_param_exploded: operations.FormQueryParamsCamelObjectObjParamExploded, obj_param: Optional[operations.FormQueryParamsCamelObjectObjParam] = None) -> operations.FormQueryParamsCamelObjectResponse: + request = operations.FormQueryParamsCamelObjectRequest( + obj_param_exploded=obj_param_exploded, + obj_param=obj_param, + ) + + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/queryParams/form/camelObj' + headers = {} + query_params = utils.get_query_params(operations.FormQueryParamsCamelObjectRequest, request, self.sdk_configuration.globals) + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('GET', url, params=query_params, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.FormQueryParamsCamelObjectResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.FormQueryParamsCamelObjectRes]) + res.res = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + + def form_query_params_map(self, map_param: Optional[Dict[str, str]] = None, map_param_exploded: Optional[Dict[str, int]] = None) -> operations.FormQueryParamsMapResponse: request = operations.FormQueryParamsMapRequest( map_param=map_param, map_param_exploded=map_param_exploded, @@ -277,7 +310,7 @@ def form_query_params_ref_param_object(self, ref_obj_param: Optional[shared.RefQ return res - def header_params_array(self, x_header_array: list[str]) -> operations.HeaderParamsArrayResponse: + def header_params_array(self, x_header_array: List[str]) -> operations.HeaderParamsArrayResponse: request = operations.HeaderParamsArrayRequest( x_header_array=x_header_array, ) @@ -308,7 +341,7 @@ def header_params_array(self, x_header_array: list[str]) -> operations.HeaderPar return res - def header_params_map(self, x_header_map: dict[str, str], x_header_map_explode: dict[str, str]) -> operations.HeaderParamsMapResponse: + def header_params_map(self, x_header_map: Dict[str, str], x_header_map_explode: Dict[str, str]) -> operations.HeaderParamsMapResponse: request = operations.HeaderParamsMapRequest( x_header_map=x_header_map, x_header_map_explode=x_header_map_explode, @@ -572,7 +605,7 @@ def path_parameter_json(self, json_obj: shared.SimpleObject) -> operations.PathP return res - def pipe_delimited_query_params_array(self, arr_param: Optional[list[str]] = None, arr_param_exploded: Optional[list[int]] = None, map_param: Optional[dict[str, str]] = None, obj_param: Optional[shared.SimpleObject] = None) -> operations.PipeDelimitedQueryParamsArrayResponse: + def pipe_delimited_query_params_array(self, arr_param: Optional[List[str]] = None, arr_param_exploded: Optional[List[int]] = None, map_param: Optional[Dict[str, str]] = None, obj_param: Optional[shared.SimpleObject] = None) -> operations.PipeDelimitedQueryParamsArrayResponse: request = operations.PipeDelimitedQueryParamsArrayRequest( arr_param=arr_param, arr_param_exploded=arr_param_exploded, @@ -607,7 +640,7 @@ def pipe_delimited_query_params_array(self, arr_param: Optional[list[str]] = Non return res - def simple_path_parameter_arrays(self, arr_param: list[str]) -> operations.SimplePathParameterArraysResponse: + def simple_path_parameter_arrays(self, arr_param: List[str]) -> operations.SimplePathParameterArraysResponse: request = operations.SimplePathParameterArraysRequest( arr_param=arr_param, ) @@ -638,7 +671,7 @@ def simple_path_parameter_arrays(self, arr_param: list[str]) -> operations.Simpl return res - def simple_path_parameter_maps(self, map_param: dict[str, str], map_param_exploded: dict[str, int]) -> operations.SimplePathParameterMapsResponse: + def simple_path_parameter_maps(self, map_param: Dict[str, str], map_param_exploded: Dict[str, int]) -> operations.SimplePathParameterMapsResponse: request = operations.SimplePathParameterMapsRequest( map_param=map_param, map_param_exploded=map_param_exploded, diff --git a/python-client-sdk/src/sdk/requestbodies.py b/python-client-sdk/src/sdk/requestbodies.py index 676dfb997..9a5ae46e7 100755 --- a/python-client-sdk/src/sdk/requestbodies.py +++ b/python-client-sdk/src/sdk/requestbodies.py @@ -5,7 +5,7 @@ from decimal import Decimal from sdk import utils from sdk.models import errors, operations, shared -from typing import Optional, Union +from typing import Dict, List, Optional, Union class RequestBodies: r"""Endpoints for testing request bodies.""" @@ -140,7 +140,7 @@ def nullable_required_shared_object_post(self, request: operations.NullableRequi return res - def request_body_post_application_json_array(self, request: list[shared.SimpleObject], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayResponse: + def request_body_post_application_json_array(self, request: List[shared.SimpleObject], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_SERVERS[0], { }) if server_url is not None: @@ -165,7 +165,7 @@ def request_body_post_application_json_array(self, request: list[shared.SimpleOb if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.SimpleObject]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.SimpleObject]]) res.simple_objects = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -175,7 +175,7 @@ def request_body_post_application_json_array(self, request: list[shared.SimpleOb return res - def request_body_post_application_json_array_camel_case(self, request: list[shared.SimpleObjectCamelCase], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayCamelCaseResponse: + def request_body_post_application_json_array_camel_case(self, request: List[shared.SimpleObjectCamelCase], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayCamelCaseResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_CAMEL_CASE_SERVERS[0], { }) if server_url is not None: @@ -200,7 +200,7 @@ def request_body_post_application_json_array_camel_case(self, request: list[shar if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.SimpleObjectCamelCase]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.SimpleObjectCamelCase]]) res.simple_object_camel_cases = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -210,7 +210,7 @@ def request_body_post_application_json_array_camel_case(self, request: list[shar return res - def request_body_post_application_json_array_obj(self, request: list[shared.SimpleObject]) -> operations.RequestBodyPostApplicationJSONArrayObjResponse: + def request_body_post_application_json_array_obj(self, request: List[shared.SimpleObject]) -> operations.RequestBodyPostApplicationJSONArrayObjResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/application/json/array/objResponse' @@ -242,7 +242,7 @@ def request_body_post_application_json_array_obj(self, request: list[shared.Simp return res - def request_body_post_application_json_array_obj_camel_case(self, request: list[shared.SimpleObjectCamelCase]) -> operations.RequestBodyPostApplicationJSONArrayObjCamelCaseResponse: + def request_body_post_application_json_array_obj_camel_case(self, request: List[shared.SimpleObjectCamelCase]) -> operations.RequestBodyPostApplicationJSONArrayObjCamelCaseResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/application/json/array/objResponseCamelCase' @@ -274,7 +274,7 @@ def request_body_post_application_json_array_obj_camel_case(self, request: list[ return res - def request_body_post_application_json_array_of_array(self, request: list[list[shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfArrayResponse: + def request_body_post_application_json_array_of_array(self, request: List[List[shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfArrayResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_SERVERS[0], { }) if server_url is not None: @@ -299,7 +299,7 @@ def request_body_post_application_json_array_of_array(self, request: list[list[s if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[list[shared.SimpleObject]]]) + out = utils.unmarshal_json(http_res.text, Optional[List[List[shared.SimpleObject]]]) res.arrs = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -309,7 +309,7 @@ def request_body_post_application_json_array_of_array(self, request: list[list[s return res - def request_body_post_application_json_array_of_array_camel_case(self, request: list[list[shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse: + def request_body_post_application_json_array_of_array_camel_case(self, request: List[List[shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfArrayCamelCaseResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_CAMEL_CASE_SERVERS[0], { }) if server_url is not None: @@ -334,7 +334,7 @@ def request_body_post_application_json_array_of_array_camel_case(self, request: if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[list[shared.SimpleObjectCamelCase]]]) + out = utils.unmarshal_json(http_res.text, Optional[List[List[shared.SimpleObjectCamelCase]]]) res.arrs = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -344,7 +344,7 @@ def request_body_post_application_json_array_of_array_camel_case(self, request: return res - def request_body_post_application_json_array_of_array_of_primitive(self, request: list[list[str]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse: + def request_body_post_application_json_array_of_array_of_primitive(self, request: List[List[str]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfArrayOfPrimitiveResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_ARRAY_OF_PRIMITIVE_SERVERS[0], { }) if server_url is not None: @@ -369,7 +369,7 @@ def request_body_post_application_json_array_of_array_of_primitive(self, request if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[list[str]]]) + out = utils.unmarshal_json(http_res.text, Optional[List[List[str]]]) res.arrs = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -379,7 +379,7 @@ def request_body_post_application_json_array_of_array_of_primitive(self, request return res - def request_body_post_application_json_array_of_map(self, request: list[dict[str, shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfMapResponse: + def request_body_post_application_json_array_of_map(self, request: List[Dict[str, shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfMapResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_SERVERS[0], { }) if server_url is not None: @@ -404,7 +404,7 @@ def request_body_post_application_json_array_of_map(self, request: list[dict[str if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[dict[str, shared.SimpleObject]]]) + out = utils.unmarshal_json(http_res.text, Optional[List[Dict[str, shared.SimpleObject]]]) res.maps = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -414,7 +414,7 @@ def request_body_post_application_json_array_of_map(self, request: list[dict[str return res - def request_body_post_application_json_array_of_map_camel_case(self, request: list[dict[str, shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse: + def request_body_post_application_json_array_of_map_camel_case(self, request: List[Dict[str, shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfMapCamelCaseResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_MAP_CAMEL_CASE_SERVERS[0], { }) if server_url is not None: @@ -439,7 +439,7 @@ def request_body_post_application_json_array_of_map_camel_case(self, request: li if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[dict[str, shared.SimpleObjectCamelCase]]]) + out = utils.unmarshal_json(http_res.text, Optional[List[Dict[str, shared.SimpleObjectCamelCase]]]) res.maps = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -449,7 +449,7 @@ def request_body_post_application_json_array_of_map_camel_case(self, request: li return res - def request_body_post_application_json_array_of_primitive(self, request: list[str], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfPrimitiveResponse: + def request_body_post_application_json_array_of_primitive(self, request: List[str], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONArrayOfPrimitiveResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_ARRAY_OF_PRIMITIVE_SERVERS[0], { }) if server_url is not None: @@ -474,7 +474,7 @@ def request_body_post_application_json_array_of_primitive(self, request: list[st if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[str]]) + out = utils.unmarshal_json(http_res.text, Optional[List[str]]) res.strings = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -548,7 +548,7 @@ def request_body_post_application_json_deep_camel_case(self, request: shared.Dee return res - def request_body_post_application_json_map(self, request: dict[str, shared.SimpleObject], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapResponse: + def request_body_post_application_json_map(self, request: Dict[str, shared.SimpleObject], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_SERVERS[0], { }) if server_url is not None: @@ -573,7 +573,7 @@ def request_body_post_application_json_map(self, request: dict[str, shared.Simpl if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, shared.SimpleObject]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, shared.SimpleObject]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -583,7 +583,7 @@ def request_body_post_application_json_map(self, request: dict[str, shared.Simpl return res - def request_body_post_application_json_map_camel_case(self, request: dict[str, shared.SimpleObjectCamelCase], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapCamelCaseResponse: + def request_body_post_application_json_map_camel_case(self, request: Dict[str, shared.SimpleObjectCamelCase], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapCamelCaseResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_CAMEL_CASE_SERVERS[0], { }) if server_url is not None: @@ -608,7 +608,7 @@ def request_body_post_application_json_map_camel_case(self, request: dict[str, s if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, shared.SimpleObjectCamelCase]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, shared.SimpleObjectCamelCase]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -618,7 +618,7 @@ def request_body_post_application_json_map_camel_case(self, request: dict[str, s return res - def request_body_post_application_json_map_obj(self, request: dict[str, shared.SimpleObject]) -> operations.RequestBodyPostApplicationJSONMapObjResponse: + def request_body_post_application_json_map_obj(self, request: Dict[str, shared.SimpleObject]) -> operations.RequestBodyPostApplicationJSONMapObjResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/application/json/map/objResponse' @@ -650,7 +650,7 @@ def request_body_post_application_json_map_obj(self, request: dict[str, shared.S return res - def request_body_post_application_json_map_obj_camel_case(self, request: dict[str, shared.SimpleObjectCamelCase]) -> operations.RequestBodyPostApplicationJSONMapObjCamelCaseResponse: + def request_body_post_application_json_map_obj_camel_case(self, request: Dict[str, shared.SimpleObjectCamelCase]) -> operations.RequestBodyPostApplicationJSONMapObjCamelCaseResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/application/json/map/objResponseCamelCase' @@ -682,7 +682,7 @@ def request_body_post_application_json_map_obj_camel_case(self, request: dict[st return res - def request_body_post_application_json_map_of_array(self, request: dict[str, list[shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfArrayResponse: + def request_body_post_application_json_map_of_array(self, request: Dict[str, List[shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfArrayResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_SERVERS[0], { }) if server_url is not None: @@ -707,7 +707,7 @@ def request_body_post_application_json_map_of_array(self, request: dict[str, lis if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, list[shared.SimpleObject]]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, List[shared.SimpleObject]]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -717,7 +717,7 @@ def request_body_post_application_json_map_of_array(self, request: dict[str, lis return res - def request_body_post_application_json_map_of_array_camel_case(self, request: dict[str, list[shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse: + def request_body_post_application_json_map_of_array_camel_case(self, request: Dict[str, List[shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfArrayCamelCaseResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_ARRAY_CAMEL_CASE_SERVERS[0], { }) if server_url is not None: @@ -742,7 +742,7 @@ def request_body_post_application_json_map_of_array_camel_case(self, request: di if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, list[shared.SimpleObjectCamelCase]]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, List[shared.SimpleObjectCamelCase]]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -752,7 +752,7 @@ def request_body_post_application_json_map_of_array_camel_case(self, request: di return res - def request_body_post_application_json_map_of_map(self, request: dict[str, dict[str, shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfMapResponse: + def request_body_post_application_json_map_of_map(self, request: Dict[str, Dict[str, shared.SimpleObject]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfMapResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_SERVERS[0], { }) if server_url is not None: @@ -777,7 +777,7 @@ def request_body_post_application_json_map_of_map(self, request: dict[str, dict[ if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, dict[str, shared.SimpleObject]]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, Dict[str, shared.SimpleObject]]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -787,7 +787,7 @@ def request_body_post_application_json_map_of_map(self, request: dict[str, dict[ return res - def request_body_post_application_json_map_of_map_camel_case(self, request: dict[str, dict[str, shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse: + def request_body_post_application_json_map_of_map_camel_case(self, request: Dict[str, Dict[str, shared.SimpleObjectCamelCase]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfMapCamelCaseResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_CAMEL_CASE_SERVERS[0], { }) if server_url is not None: @@ -812,7 +812,7 @@ def request_body_post_application_json_map_of_map_camel_case(self, request: dict if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, dict[str, shared.SimpleObjectCamelCase]]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, Dict[str, shared.SimpleObjectCamelCase]]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -822,7 +822,7 @@ def request_body_post_application_json_map_of_map_camel_case(self, request: dict return res - def request_body_post_application_json_map_of_map_of_primitive(self, request: dict[str, dict[str, str]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse: + def request_body_post_application_json_map_of_map_of_primitive(self, request: Dict[str, Dict[str, str]], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfMapOfPrimitiveResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_MAP_OF_PRIMITIVE_SERVERS[0], { }) if server_url is not None: @@ -847,7 +847,7 @@ def request_body_post_application_json_map_of_map_of_primitive(self, request: di if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, dict[str, str]]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, Dict[str, str]]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -857,7 +857,7 @@ def request_body_post_application_json_map_of_map_of_primitive(self, request: di return res - def request_body_post_application_json_map_of_primitive(self, request: dict[str, str], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfPrimitiveResponse: + def request_body_post_application_json_map_of_primitive(self, request: Dict[str, str], server_url: Optional[str] = None) -> operations.RequestBodyPostApplicationJSONMapOfPrimitiveResponse: base_url = utils.template_url(operations.REQUEST_BODY_POST_APPLICATION_JSON_MAP_OF_PRIMITIVE_SERVERS[0], { }) if server_url is not None: @@ -882,7 +882,7 @@ def request_body_post_application_json_map_of_primitive(self, request: dict[str, if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, str]]) + out = utils.unmarshal_json(http_res.text, Optional[Dict[str, str]]) res.res = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -1117,7 +1117,7 @@ def request_body_post_form_deep(self, request: shared.DeepObject) -> operations. return res - def request_body_post_form_map_primitive(self, request: dict[str, str]) -> operations.RequestBodyPostFormMapPrimitiveResponse: + def request_body_post_form_map_primitive(self, request: Dict[str, str]) -> operations.RequestBodyPostFormMapPrimitiveResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/form/map/primitive' @@ -1181,7 +1181,7 @@ def request_body_post_form_simple(self, request: shared.SimpleObject) -> operati return res - def request_body_post_json_data_types_array_big_int(self, request: list[int]) -> operations.RequestBodyPostJSONDataTypesArrayBigIntResponse: + def request_body_post_json_data_types_array_big_int(self, request: List[int]) -> operations.RequestBodyPostJSONDataTypesArrayBigIntResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/jsonDataTypes/array/bigInt' @@ -1213,7 +1213,7 @@ def request_body_post_json_data_types_array_big_int(self, request: list[int]) -> return res - def request_body_post_json_data_types_array_date(self, request: list[date]) -> operations.RequestBodyPostJSONDataTypesArrayDateResponse: + def request_body_post_json_data_types_array_date(self, request: List[date]) -> operations.RequestBodyPostJSONDataTypesArrayDateResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/jsonDataTypes/array/date' @@ -1245,7 +1245,7 @@ def request_body_post_json_data_types_array_date(self, request: list[date]) -> o return res - def request_body_post_json_data_types_array_decimal_str(self, request: list[Decimal]) -> operations.RequestBodyPostJSONDataTypesArrayDecimalStrResponse: + def request_body_post_json_data_types_array_decimal_str(self, request: List[Decimal]) -> operations.RequestBodyPostJSONDataTypesArrayDecimalStrResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/jsonDataTypes/array/decimalStr' @@ -1597,7 +1597,7 @@ def request_body_post_json_data_types_integer(self, request: int) -> operations. return res - def request_body_post_json_data_types_map_big_int_str(self, request: dict[str, int]) -> operations.RequestBodyPostJSONDataTypesMapBigIntStrResponse: + def request_body_post_json_data_types_map_big_int_str(self, request: Dict[str, int]) -> operations.RequestBodyPostJSONDataTypesMapBigIntStrResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/jsonDataTypes/map/bigIntStr' @@ -1629,7 +1629,7 @@ def request_body_post_json_data_types_map_big_int_str(self, request: dict[str, i return res - def request_body_post_json_data_types_map_date_time(self, request: dict[str, datetime]) -> operations.RequestBodyPostJSONDataTypesMapDateTimeResponse: + def request_body_post_json_data_types_map_date_time(self, request: Dict[str, datetime]) -> operations.RequestBodyPostJSONDataTypesMapDateTimeResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/jsonDataTypes/map/dateTime' @@ -1661,7 +1661,7 @@ def request_body_post_json_data_types_map_date_time(self, request: dict[str, dat return res - def request_body_post_json_data_types_map_decimal(self, request: dict[str, Decimal]) -> operations.RequestBodyPostJSONDataTypesMapDecimalResponse: + def request_body_post_json_data_types_map_decimal(self, request: Dict[str, Decimal]) -> operations.RequestBodyPostJSONDataTypesMapDecimalResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/jsonDataTypes/map/decimal' @@ -2061,7 +2061,7 @@ def request_body_post_not_nullable_not_required_string_body(self, request: str) return res - def request_body_post_null_array(self, request: list[str]) -> operations.RequestBodyPostNullArrayResponse: + def request_body_post_null_array(self, request: List[str]) -> operations.RequestBodyPostNullArrayResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/null-array' @@ -2093,7 +2093,7 @@ def request_body_post_null_array(self, request: list[str]) -> operations.Request return res - def request_body_post_null_dictionary(self, request: dict[str, str]) -> operations.RequestBodyPostNullDictionaryResponse: + def request_body_post_null_dictionary(self, request: Dict[str, str]) -> operations.RequestBodyPostNullDictionaryResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/requestBodies/post/null-dictionary' diff --git a/python-client-sdk/src/sdk/responsebodies.py b/python-client-sdk/src/sdk/responsebodies.py index bc89b5c0c..4f6cc7b26 100755 --- a/python-client-sdk/src/sdk/responsebodies.py +++ b/python-client-sdk/src/sdk/responsebodies.py @@ -1,7 +1,6 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" from .sdkconfiguration import SDKConfiguration -from datetime import date from enum import Enum from sdk import utils from sdk.models import errors, operations, shared @@ -19,12 +18,12 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: self.sdk_configuration = sdk_config - def response_body_additional_properties_complex_numbers_post(self, request: dict[str, int]) -> operations.ResponseBodyAdditionalPropertiesComplexNumbersPostResponse: + def response_body_additional_properties_complex_numbers_post(self, request: shared.ObjWithComplexNumbersAdditionalProperties) -> operations.ResponseBodyAdditionalPropertiesComplexNumbersPostResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/responseBodies/additionalPropertiesComplexNumbers' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json', utils.map_encoder(False, utils.bigintencoder(False))) + req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: @@ -51,12 +50,12 @@ def response_body_additional_properties_complex_numbers_post(self, request: dict return res - def response_body_additional_properties_date_post(self, request: dict[str, date]) -> operations.ResponseBodyAdditionalPropertiesDatePostResponse: + def response_body_additional_properties_date_post(self, request: shared.ObjWithDateAdditionalProperties) -> operations.ResponseBodyAdditionalPropertiesDatePostResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/responseBodies/additionalPropertiesDate' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json', utils.map_encoder(False, utils.dateisoformat(False))) + req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: @@ -83,7 +82,39 @@ def response_body_additional_properties_date_post(self, request: dict[str, date] return res - def response_body_additional_properties_post(self, request: dict[str, str]) -> operations.ResponseBodyAdditionalPropertiesPostResponse: + def response_body_additional_properties_object_post(self, request: shared.ObjWithObjAdditionalProperties) -> operations.ResponseBodyAdditionalPropertiesObjectPostResponse: + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/responseBodies/additionalPropertiesObject' + headers = {} + req_content_type, data, form = utils.serialize_request_body(request, "request", False, False, 'json') + if req_content_type not in ('multipart/form-data', 'multipart/mixed'): + headers['content-type'] = req_content_type + if data is None and form is None: + raise Exception('request body is required') + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('POST', url, data=data, files=form, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.ResponseBodyAdditionalPropertiesObjectPostResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON]) + res.response_body_additional_properties_object_post_200_application_json_object = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + + def response_body_additional_properties_post(self, request: shared.ObjWithStringAdditionalProperties) -> operations.ResponseBodyAdditionalPropertiesPostResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = base_url + '/anything/responseBodies/additionalProperties' diff --git a/python-client-sdk/src/sdk/sdk.py b/python-client-sdk/src/sdk/sdk.py index 0f3b13408..36471e2bd 100755 --- a/python-client-sdk/src/sdk/sdk.py +++ b/python-client-sdk/src/sdk/sdk.py @@ -24,7 +24,7 @@ from .unions import Unions from sdk import utils from sdk.models import errors, operations, shared -from typing import Optional +from typing import Dict, Optional class SDK: r"""Test: Test Summary @@ -80,7 +80,7 @@ def __init__(self, something: ServerSomething = None, server_idx: int = None, server_url: str = None, - url_params: dict[str, str] = None, + url_params: Dict[str, str] = None, client: requests_http.Session = None, retry_config: utils.RetryConfig = None ) -> None: @@ -105,7 +105,7 @@ def __init__(self, :param server_url: The server URL to use for all operations :type server_url: str :param url_params: Parameters to optionally template the server URL with - :type url_params: dict[str, str] + :type url_params: Dict[str, str] :param client: The requests.Session HTTP client to use for all operations :type client: requests_http.Session :param retry_config: The utils.RetryConfig to use globally diff --git a/python-client-sdk/src/sdk/sdkconfiguration.py b/python-client-sdk/src/sdk/sdkconfiguration.py index 88688450f..92c000b30 100755 --- a/python-client-sdk/src/sdk/sdkconfiguration.py +++ b/python-client-sdk/src/sdk/sdkconfiguration.py @@ -2,9 +2,10 @@ import requests from dataclasses import dataclass, field -from typing import Any +from typing import Any, Dict, List, Tuple from enum import Enum from .utils.retries import RetryConfig +from .utils import utils SERVERS = [ @@ -34,18 +35,18 @@ class SDKConfiguration: security_client: requests.Session server_url: str = '' server_idx: int = 0 - server_defaults: list[dict[str, str]] = field(default_factory=list) - globals: dict[str, dict[str, dict[str, Any]]] = field(default_factory=dict) + server_defaults: List[Dict[str, str]] = field(default_factory=List) + globals: Dict[str, Dict[str, Dict[str, Any]]] = field(default_factory=Dict) language: str = 'python' openapi_doc_version: str = '0.1.0' - sdk_version: str = '1.38.1' - gen_version: str = '2.154.1' - user_agent: str = 'speakeasy-sdk/python 1.38.1 2.154.1 0.1.0 openapi' + sdk_version: str = '2.0.0' + gen_version: str = '2.171.0' + user_agent: str = 'speakeasy-sdk/python 2.0.0 2.171.0 0.1.0 openapi' retry_config: RetryConfig = None - def get_server_details(self) -> tuple[str, dict[str, str]]: + def get_server_details(self) -> Tuple[str, Dict[str, str]]: if self.server_url: - return self.server_url.removesuffix('/'), {} + return utils.remove_suffix(self.server_url, '/'), {} if self.server_idx is None: self.server_idx = 0 diff --git a/python-client-sdk/src/sdk/unions.py b/python-client-sdk/src/sdk/unions.py index ba6d336ba..a5bd11907 100755 --- a/python-client-sdk/src/sdk/unions.py +++ b/python-client-sdk/src/sdk/unions.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" from .sdkconfiguration import SDKConfiguration +from datetime import date, datetime from sdk import utils from sdk.models import errors, operations, shared from typing import Optional, Union @@ -333,6 +334,70 @@ def typed_object_one_of_post(self, request: Union[shared.TypedObject1, shared.Ty return res + def union_date_null(self, request: date) -> operations.UnionDateNullResponse: + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/unionDateNull' + headers = {} + req_content_type, data, form = utils.serialize_request_body(request, "request", True, False, 'json', utils.dateisoformat(False)) + if req_content_type not in ('multipart/form-data', 'multipart/mixed'): + headers['content-type'] = req_content_type + if data is None and form is None: + raise Exception('request body is required') + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('POST', url, data=data, files=form, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.UnionDateNullResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.UnionDateNullRes]) + res.res = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + + def union_date_time_null(self, request: datetime) -> operations.UnionDateTimeNullResponse: + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = base_url + '/anything/unionDateTimeNull' + headers = {} + req_content_type, data, form = utils.serialize_request_body(request, "request", True, False, 'json', utils.datetimeisoformat(False)) + if req_content_type not in ('multipart/form-data', 'multipart/mixed'): + headers['content-type'] = req_content_type + if data is None and form is None: + raise Exception('request body is required') + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = self.sdk_configuration.user_agent + + client = self.sdk_configuration.security_client + + http_res = client.request('POST', url, data=data, files=form, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.UnionDateTimeNullResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.UnionDateTimeNullRes]) + res.res = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600: + raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res) + + return res + + def weakly_typed_one_of_post(self, request: Union[shared.SimpleObject, shared.DeepObject]) -> operations.WeaklyTypedOneOfPostResponse: base_url = utils.template_url(*self.sdk_configuration.get_server_details()) diff --git a/python-client-sdk/src/sdk/utils/retries.py b/python-client-sdk/src/sdk/utils/retries.py index 2138c1b5e..25f49a1f2 100755 --- a/python-client-sdk/src/sdk/utils/retries.py +++ b/python-client-sdk/src/sdk/utils/retries.py @@ -2,6 +2,7 @@ import random import time +from typing import List import requests @@ -32,9 +33,9 @@ def __init__(self, strategy: str, backoff: BackoffStrategy, retry_connection_err class Retries: config: RetryConfig - status_codes: list[str] + status_codes: List[str] - def __init__(self, config: RetryConfig, status_codes: list[str]): + def __init__(self, config: RetryConfig, status_codes: List[str]): self.config = config self.status_codes = status_codes diff --git a/python-client-sdk/src/sdk/utils/utils.py b/python-client-sdk/src/sdk/utils/utils.py index 4388f3b74..3ab126104 100755 --- a/python-client-sdk/src/sdk/utils/utils.py +++ b/python-client-sdk/src/sdk/utils/utils.py @@ -9,7 +9,8 @@ from decimal import Decimal from email.message import Message from enum import Enum -from typing import Any, Callable, Optional, Tuple, Union, get_args, get_origin +from typing import (Any, Callable, Dict, List, Optional, Tuple, Union, + get_args, get_origin) from xmlrpc.client import boolean import dateutil.parser @@ -19,14 +20,14 @@ class SecurityClient: client: requests.Session - query_params: dict[str, str] = {} + query_params: Dict[str, str] = {} def __init__(self, client: requests.Session): self.client = client def request(self, method, url, **kwargs): params = kwargs.get('params', {}) - kwargs["params"] = self.query_params | params + kwargs["params"] = {**self.query_params, **params} return self.client.request(method, url, **kwargs) @@ -69,7 +70,7 @@ def _parse_security_option(client: SecurityClient, option: dataclass): client, metadata, getattr(option, opt_field.name)) -def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme: any): +def _parse_security_scheme(client: SecurityClient, scheme_metadata: Dict, scheme: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -93,7 +94,7 @@ def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme client, scheme_metadata, scheme_metadata, scheme) -def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict, security_metadata: dict, value: any): +def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: Dict, security_metadata: Dict, value: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -145,7 +146,7 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, - gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: + gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -174,16 +175,16 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass '{' + key + '}', value, 1) else: if param_metadata.get('style', 'simple') == 'simple': - if isinstance(param, list): - pp_vals: list[str] = [] + if isinstance(param, List): + pp_vals: List[str] = [] for pp_val in param: if pp_val is None: continue pp_vals.append(_val_to_string(pp_val)) path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) - elif isinstance(param, dict): - pp_vals: list[str] = [] + elif isinstance(param, Dict): + pp_vals: List[str] = [] for pp_key in param: if param[pp_key] is None: continue @@ -196,7 +197,7 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) elif not isinstance(param, (str, int, float, complex, bool, Decimal)): - pp_vals: list[str] = [] + pp_vals: List[str] = [] param_fields: Tuple[Field, ...] = fields(param) for param_field in param_fields: param_value_metadata = param_field.metadata.get( @@ -222,14 +223,14 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', _val_to_string(param), 1) - return server_url.removesuffix("/") + path + return remove_suffix(server_url, '/') + path def is_optional(field): return get_origin(field) is Union and type(None) in get_args(field) -def template_url(url_with_params: str, params: dict[str, str]) -> str: +def template_url(url_with_params: str, params: Dict[str, str]) -> str: for key, value in params.items(): url_with_params = url_with_params.replace( '{' + key + '}', value) @@ -237,9 +238,9 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ - str, list[str]]: - params: dict[str, list[str]] = {} +def get_query_params(clazz: type, query_params: dataclass, gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> Dict[ + str, List[str]]: + params: Dict[str, List[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) for field in param_fields: @@ -269,24 +270,24 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ else: style = metadata.get('style', 'form') if style == 'deepObject': - params = params | _get_deep_object_query_params( - metadata, f_name, value) + params = {**params, **_get_deep_object_query_params( + metadata, f_name, value)} elif style == 'form': - params = params | _get_delimited_query_params( - metadata, f_name, value, ",") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, ",")} elif style == 'pipeDelimited': - params = params | _get_delimited_query_params( - metadata, f_name, value, "|") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, "|")} else: raise Exception('not yet implemented') return params -def get_headers(headers_params: dataclass) -> dict[str, str]: +def get_headers(headers_params: dataclass) -> Dict[str, str]: if headers_params is None: return {} - headers: dict[str, str] = {} + headers: Dict[str, str] = {} param_fields: Tuple[Field, ...] = fields(headers_params) for field in param_fields: @@ -303,8 +304,8 @@ def get_headers(headers_params: dataclass) -> dict[str, str]: return headers -def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[str, str]: - params: dict[str, str] = {} +def _get_serialized_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, str]: + params: Dict[str, str] = {} serialization = metadata.get('serialization', '') if serialization == 'json': @@ -313,8 +314,8 @@ def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[st return params -def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - params: dict[str, list[str]] = {} +def _get_deep_object_query_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -330,7 +331,7 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if obj_val is None: continue - if isinstance(obj_val, list): + if isinstance(obj_val, List): for val in obj_val: if val is None: continue @@ -348,12 +349,12 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ _val_to_string(obj_val)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): for key, value in obj.items(): if value is None: continue - if isinstance(value, list): + if isinstance(value, List): for val in value: if val is None: continue @@ -379,8 +380,8 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[ - str, list[str]]: +def _get_delimited_query_params(metadata: Dict, field_name: str, obj: any, delimiter: str) -> Dict[ + str, List[str]]: return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter) @@ -424,7 +425,7 @@ def serialize_request_body(request: dataclass, request_field_name: str, nullable request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, List[List[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: @@ -440,8 +441,8 @@ def serialize_content_type(field_name: str, media_type: str, request: dataclass, f"invalid request body type {type(request)} for mediaType {media_type}") -def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: - form: list[list[any]] = [] +def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, List[List[any]]]: + form: List[List[any]] = [] request_fields = fields(request) for field in request_fields: @@ -482,7 +483,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, else: field_name = field_metadata.get( "field_name", field.name) - if isinstance(val, list): + if isinstance(val, List): for value in val: if value is None: continue @@ -493,8 +494,8 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, return media_type, None, form -def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[ - str, list[str]]: +def serialize_dict(original: Dict, explode: bool, field_name, existing: Optional[Dict[str, List[str]]]) -> Dict[ + str, List[str]]: if existing is None: existing = [] @@ -514,8 +515,8 @@ def serialize_dict(original: dict, explode: bool, field_name, existing: Optional return existing -def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: - form: dict[str, list[str]] = {} +def serialize_form_data(field_name: str, data: dataclass) -> Dict[str, any]: + form: Dict[str, List[str]] = {} if is_dataclass(data): for field in fields(data): @@ -533,12 +534,12 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: form[field_name] = [marshal_json(val)] else: if metadata.get('style', 'form') == 'form': - form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name, ",") + form = {**form, **_populate_form( + field_name, metadata.get('explode', True), val, _get_form_field_name, ",")} else: raise Exception( f'Invalid form style for field {field.name}') - elif isinstance(data, dict): + elif isinstance(data, Dict): for key, value in data.items(): form[key] = [_val_to_string(value)] else: @@ -557,8 +558,8 @@ def _get_form_field_name(obj_field: Field) -> str: def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, delimiter: str) -> \ - dict[str, list[str]]: - params: dict[str, list[str]] = {} + Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -584,7 +585,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): if value is None: @@ -597,7 +598,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -651,7 +652,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join(items) - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): @@ -666,7 +667,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join([str(item) for item in items]) - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -758,6 +759,8 @@ def bigintencode(val: int): def bigintdecoder(val): + if isinstance(val, float): + raise ValueError(f"{val} is a float") return int(val) @@ -779,7 +782,7 @@ def decimaldecoder(val): def map_encoder(optional: bool, value_encoder: Callable): - def map_encode(val: dict): + def map_encode(val: Dict): if optional and val is None: return None @@ -793,7 +796,7 @@ def map_encode(val: dict): def map_decoder(value_decoder: Callable): - def map_decode(val: dict): + def map_decode(val: Dict): decoded = {} for key, value in val.items(): decoded[key] = value_decoder(value) @@ -804,7 +807,7 @@ def map_decode(val: dict): def list_encoder(optional: bool, value_encoder: Callable): - def list_encode(val: list): + def list_encode(val: List): if optional and val is None: return None @@ -818,7 +821,7 @@ def list_encode(val: list): def list_decoder(value_decoder: Callable): - def list_decode(val: list): + def list_decode(val: List): decoded = [] for value in val: decoded.append(value_decoder(value)) @@ -827,6 +830,24 @@ def list_decode(val: list): return list_decode +def union_encoder(all_encoders: Dict[str, Callable]): + def selective_encoder(val: any): + if type(val) in all_encoders: + return all_encoders[type(val)](val) + return val + return selective_encoder + +def union_decoder(all_decoders: List[Callable]): + def selective_decoder(val: any): + decoded = val + for decoder in all_decoders: + try: + decoded = decoder(val) + break + except (TypeError, ValueError): + continue + return decoded + return selective_decoder def get_field_name(name): def override(_, _field_name=name): @@ -846,7 +867,7 @@ def _val_to_string(val): return str(val) -def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: dict[str, dict[str, dict[str, Any]]]): +def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: Dict[str, Dict[str, Dict[str, Any]]]): if value is None and gbls is not None: if 'parameters' in gbls: if param_type in gbls['parameters']: @@ -863,3 +884,9 @@ def decode_fx(obj): kls = getattr(sys.modules['sdk.models.shared'], obj[field_name]) return unmarshal_json(json.dumps(obj), kls) return decode_fx + + +def remove_suffix(input_string, suffix): + if suffix and input_string.endswith(suffix): + return input_string[:-len(suffix)] + return input_string diff --git a/python-client-sdk/testsprimary/test_parameters.py b/python-client-sdk/testsprimary/test_parameters.py index 257cd9f3b..7a828a2ac 100755 --- a/python-client-sdk/testsprimary/test_parameters.py +++ b/python-client-sdk/testsprimary/test_parameters.py @@ -184,6 +184,33 @@ def test_form_query_params_object(): assert res.res.args.obj_param == 'any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional' +def test_form_query_params_camel_object(): + record_test('parameters-form-query-params-camel-object') + + s = SDK() + assert s is not None + + obj_param_exploded = FormQueryParamsCamelObjectObjParamExploded( + search_term='foo', + item_count='10' + ) + obj_param = FormQueryParamsCamelObjectObjParam( + encoded_term='bar', + encoded_count='11' + ) + + res = s.parameters.form_query_params_camel_object( + obj_param=obj_param, + obj_param_exploded=obj_param_exploded, + ) + + assert res is not None + assert res.status_code == 200 + assert res.res is not None + assert res.res.url == 'http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&search_term=foo&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar' + assert res.res.args.search_term == 'foo' + assert res.res.args.item_count == '10' + def test_form_query_params_ref_param_object(): record_test('parameters-form-query-params-ref-param-object') @@ -477,4 +504,4 @@ def test_header_params_array(): assert res is not None assert res.status_code == 200 assert res.res is not None - assert res.res.headers.x_header_array == 'test1,test2' \ No newline at end of file + assert res.res.headers.x_header_array == 'test1,test2' diff --git a/python-client-sdk/testsprimary/test_response_bodies.py b/python-client-sdk/testsprimary/test_response_bodies.py index 1871734ce..181f1f1e5 100755 --- a/python-client-sdk/testsprimary/test_response_bodies.py +++ b/python-client-sdk/testsprimary/test_response_bodies.py @@ -119,4 +119,113 @@ def test_response_body_default_accept_header(): assert res is not None assert res.status_code == 200 assert "application/json" in res.content_type - assert type(res.typed_object1) == shared.TypedObject1 \ No newline at end of file + assert type(res.typed_object1) == shared.TypedObject1 + + +def test_response_body_additional_properties(): + record_test('response-bodies-additional-properties') + + s = SDK() + assert s is not None + + dic = {'normal_field': "string"} + req = shared.ObjWithStringAdditionalProperties.from_dict(dic) + assert req.additional_properties == None + res = s.response_bodies.response_body_additional_properties_post(req) + assert res is not None + assert res.status_code == 200 + assert res.response_body_additional_properties_post_200_application_json_object.json == req + + dic = { + 'normal_field': "string", + 'additional_properties': { + 'extra1': "value1", + 'extra2': 2, + 'extra3': None + } + } + req = shared.ObjWithStringAdditionalProperties.from_dict(dic) + assert req.additional_properties == {'extra1': "value1", 'extra2': 2, 'extra3': None} + res = s.response_bodies.response_body_additional_properties_post(req) + assert res is not None + assert res.status_code == 200 + assert res.response_body_additional_properties_post_200_application_json_object.json == req + + +def test_response_body_additional_properties_date(): + record_test('response-bodies-additional-properties-date') + + s = SDK() + assert s is not None + + dic = { + 'normal_field': "string", + 'additional_properties': {} + } + req = shared.ObjWithDateAdditionalProperties.from_dict(dic) + assert req.additional_properties == {} + res = s.response_bodies.response_body_additional_properties_date_post(req) + assert res.response_body_additional_properties_date_post_200_application_json_object.json == req + + today = date.today() + dic = { + 'normal_field': "string", + 'additional_properties': { + 'today': today.isoformat() + } + } + req = shared.ObjWithDateAdditionalProperties.from_dict(dic) + assert req.additional_properties == {'today': today} + assert type(req.additional_properties['today']) == date + res = s.response_bodies.response_body_additional_properties_date_post(req) + assert res is not None + assert res.status_code == 200 + assert res.response_body_additional_properties_date_post_200_application_json_object.json == req + + +def test_response_body_additional_properties_complex_numbers(): + record_test('response-bodies-additional-properties-complex-numbers') + + s = SDK() + assert s is not None + + dic = { + 'normal_field': "string", + 'additional_properties': { + 'bigint': "123456789012345678901234567890" + } + } + req = shared.ObjWithComplexNumbersAdditionalProperties.from_dict(dic) + assert req.additional_properties['bigint'] == 123456789012345678901234567890 + assert type(req.additional_properties['bigint']) == int + res = s.response_bodies.response_body_additional_properties_complex_numbers_post(req) + assert res is not None + assert res.status_code == 200 + assert res.response_body_additional_properties_complex_numbers_post_200_application_json_object.json == req + + +def test_response_body_additional_properties_object(): + record_test('response-bodies-additional-properties-object') + + s = SDK() + assert s is not None + + obj = create_simple_object() + req = shared.ObjWithObjAdditionalProperties( + datetime_=datetime.now(), + additional_properties=[1, 2, 3], + additional_properties_t={ + 'obj1': obj + } + ) + + res = s.response_bodies.response_body_additional_properties_object_post(req) + assert res is not None + assert res.status_code == 200 + json = res.response_body_additional_properties_object_post_200_application_json_object.json + assert json == req + assert type(json.datetime_) == datetime + obj1 = json.additional_properties_t['obj1'] + assert type(obj1) == shared.SimpleObject + compare_simple_object(obj1, obj) + diff --git a/python-client-sdk/testsprimary/test_telemetry.py b/python-client-sdk/testsprimary/test_telemetry.py index 650c0c16b..536263dc0 100755 --- a/python-client-sdk/testsprimary/test_telemetry.py +++ b/python-client-sdk/testsprimary/test_telemetry.py @@ -18,7 +18,7 @@ def test_telemetry_user_agent_get(): assert res is not None assert res.status_code == 200 assert res.res is not None - assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.38.1 2.154.1 0.1.0 openapi' + assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 2.0.0 2.171.0 0.1.0 openapi' def test_telemetry_speakeasy_user_agent_get(): @@ -34,4 +34,4 @@ def test_telemetry_speakeasy_user_agent_get(): assert res.status_code == 200 assert res.res is not None assert res.res.headers['User-Agent'] == user_agent - assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.38.1 2.154.1 0.1.0 openapi' + assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 2.0.0 2.171.0 0.1.0 openapi' diff --git a/python-client-sdk/testsprimary/test_unions.py b/python-client-sdk/testsprimary/test_unions.py index 1b905663f..4838f69c5 100755 --- a/python-client-sdk/testsprimary/test_unions.py +++ b/python-client-sdk/testsprimary/test_unions.py @@ -1,6 +1,8 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" import pytest +from datetime import datetime +from decimal import Decimal from sdk import SDK from sdk.utils import utils @@ -372,4 +374,58 @@ def test_mixed_type_one_of_post_object(): res = s.unions.mixed_type_one_of_post(request=obj) assert res is not None assert res.status_code == 200 - compare_simple_object(res.res.json, obj) \ No newline at end of file + compare_simple_object(res.res.json, obj) + + +def test_date_null_union(): + record_test("unions-date-null") + s = SDK() + assert s is not None + + res = s.unions.union_date_null(request=datetime.now().date()) + assert res is not None + assert res.status_code == 200 + assert type(res.res.json) == date + + +def test_date_time_null_union(): + record_test("unions-datetime-null") + s = SDK() + assert s is not None + + res = s.unions.union_date_time_null(request=datetime.now()) + assert res is not None + assert res.status_code == 200 + assert type(res.res.json) == datetime + + +# def test_date_time_bigint_union(): +# record_test("unions-datetime-bigint") +# s = SDK() +# assert s is not None + +# res = s.unions.union_date_time_big_int(request=datetime.now()) +# assert res is not None +# assert res.status_code == 200 +# assert type(res.res.json) == datetime + +# res = s.unions.union_date_time_big_int(request=9007199254740991) +# assert res is not None +# assert res.status_code == 200 +# assert type(res.res.json) == int + + +# def test_bigint_decimal_union(): +# record_test("unions-bigint-decimal") +# s = SDK() +# assert s is not None + +# res = s.unions.union_big_int_decimal(request=3.141592653589793) +# assert res is not None +# assert res.status_code == 200 +# assert type(res.res.json) == Decimal + +# res = s.unions.union_big_int_decimal(request=9007199254740991) +# assert res is not None +# assert res.status_code == 200 +# assert type(res.res.json) == int diff --git a/ruby-client-sdk/.rubocop.yml b/ruby-client-sdk/.rubocop.yml index 6b73dc5c3..7b459abbf 100755 --- a/ruby-client-sdk/.rubocop.yml +++ b/ruby-client-sdk/.rubocop.yml @@ -1,7 +1,6 @@ AllCops: Exclude: - Rakefile - - test/*.rb TargetRubyVersion: "3.0" Metrics: Enabled: false @@ -28,6 +27,8 @@ Lint/EmptyConditionalBody: Enabled: false Lint/MissingSuper: Enabled: false +Style/CaseLikeIf: + Enabled: false #To eventually re-enable: Layout/EmptyLines: Enabled: false @@ -61,3 +62,5 @@ Style/TrailingCommaInArrayLiteral: Enabled: false Layout/EmptyLinesAroundClassBody: Enabled: false +Style/WordArray: + Enabled: false \ No newline at end of file diff --git a/ruby-client-sdk/README.md b/ruby-client-sdk/README.md index 8a59a24d5..e4ed1877f 100755 --- a/ruby-client-sdk/README.md +++ b/ruby-client-sdk/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.global_name_overridden() @@ -51,73 +56,73 @@ req = Operations::UsageExamplePostRequest.new( image_format="https://loremflickr.com/640/480", ipv4_format="75.42.25.241", ipv6_format="36a9:c057:a71b:b73a:c9ee:2348:d76c:3164", - json_format="{plane: 14910, fringe: null, lightning: \"Roentgenium UTF8\"}", - mac_format="13:58:66:7d:ac:95", - password_format="b6eWzdveK0sHokC", - phone_format="832-504-6221 x221", - timezone_format="Asia/Krasnoyarsk", - unknown_format="Principal at", - url_format="http://understated-balcony.org", - uuid_format="62de2e2d-47a9-4bf1-80f7-53b9b364b6b4", - zipcode_format="25687-7266", + json_format="{key: 66681, key1: null, key2: \"string\"}", + mac_format="25:8b:e7:e1:35:86", + password_format="IKpiCb6eWzdveK0", + phone_format="1-803-587-3283", + timezone_format="America/Argentina/Buenos_Aires", + unknown_format="string", + url_format="http://beneficial-inconvenience.net", + uuid_format="342442b8-aff3-42e0-b62d-e2e2d47a9bf1", + zipcode_format="09432", ), faker_strings=Shared::FakerStrings.new( - city="Port Carli", - iban="TN8700576009897281100717", + city="McLaughlinchester", + iban="TL232743267267003560099", id="", - i_pv4="141.21.132.133", - i_pv6="308b:b979:0237:4ea8:ee39:8480:0301:1d98", - account="81966519", - address="418 Maybelle Brooks", - amount="27.55", + i_pv4="208.201.244.247", + i_pv6="bd3a:d72b:208b:2c81:8830:8bb9:7902:374e", + account="65982652", + address="0010 Assunta Throughway", + amount="616.94", avatar="https://loremflickr.com/640/480", - color="turquoise", - comment="The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality", - company="Murazik, Kozey and Hirthe", - country="Equatorial Guinea", - country_code="LU", - currency="Congolese Franc", - datatype="bigint", - default="Dalasi", - description="Up-sized explicit frame", - directory="/home", - domain_name="warmhearted-buying.biz", - email_addr="Beulah.Franecki24@gmail.com", - extension="pdf", - filename="recovery.pdf", - filepath="/usr/share/powerfully.less", - filetype="application", - first_name="Geovany", - full_name="Roy Gottlieb", - gender="Cis", - job="International Metrics Administrator", - json="{trachoma: 6397, nick: null, android: \"Plastic Recumbent\"}", + color="tan", + comment="New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + company="Volkman LLC", + country="Nicaragua", + country_code="MO", + currency="Canadian Dollar", + datatype="point", + default="string", + description="Quality-focused full-range circuit", + directory="/usr/ports", + domain_name="klutzy-prostacyclin.com", + email_addr="Jalyn_Haley47@gmail.com", + extension="png", + filename="panel.jpeg", + filepath="/opt/share/yahoo.xul", + filetype="video", + first_name="Trystan", + full_name="Mrs. Lillian Bode", + gender="Cis female", + job="Future Solutions Specialist", + json="{key: 95274, key1: null, key2: \"string\"}", key="", - last_name="Kshlerin", - latitude="65.3520", - locale="zh_CN", - longitude="16.8742", - mac="fd:b6:ff:35:99:05", - manufacturer="Mazda", - material="Frozen", - middle_name="Emerson", + last_name="Renner", + latitude="-71.5944", + locale="sv", + longitude="-131.8166", + mac="e9:ee:6a:24:2a:1b", + manufacturer="Volvo", + material="Plastic", + middle_name="Sawyer", model="Mustang", - password="71wIwgEZJMTCRYg", - phone="1-466-307-0476", - pin="0584", - postal_code="07886", - price="452.00", - product="Small Steel Salad", - sex="female", - street="Christy Dam", - timezone="America/Regina", - unit="sievert", - url="http://repentant-haunt.name", - username="Heather_Mills48", - uuid="29e9f1c7-ed92-481f-955b-6ca1625b4c3a", + password="YAC_QiNrTzqbDz8", + phone="(650) 469-3026 x116", + pin="9497", + postal_code="64696", + price="25.00", + product="Recycled Granite Pants", + sex="male", + street="Lura Wells", + timezone="Africa/Nairobi", + unit="degree Celsius", + url="https://crooked-dulcimer.name", + username="Mable76", + uuid="16b919d6-51cd-4e97-81e2-5221b7b6969f", ), simple_object=Shared::SimpleObject.new( - any="wireless", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -130,114 +135,115 @@ req = Operations::UsageExamplePostRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=51222, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=165468, num=1.1, - num_opt_null=598.05, + num_opt_null=5944.32, str_="test", str_opt="testOptional", ), ), - bigint_parameter=284159, - bigint_parameter_optional=322202, - bigint_str_parameter="Automotive", - bigint_str_parameter_optional="focus Country", + bigint_parameter=924793, + bigint_parameter_optional=583481, + bigint_str_parameter="string", + bigint_str_parameter_optional="string", bool_parameter=false, - date_parameter=Date.parse("2022-01-13"), - date_time_parameter=DateTime.iso8601('2021-04-10T10:50:46.754Z'), - decimal_parameter=8924.18, - decimal_parameter_optional=5705.14, - decimal_str_parameter="navigating", - decimal_str_parameter_optional="Rap matrix South", - double_parameter=7223.13, + date_parameter=Date.parse("2023-12-21"), + date_time_default_parameter=DateTime.iso8601('2021-03-16T01:25:42.471Z'), + date_time_parameter=DateTime.iso8601('2023-05-24T07:01:53.326Z'), + decimal_parameter=4713.96, + decimal_parameter_optional=9349.54, + decimal_str_parameter="string", + decimal_str_parameter_optional="string", + double_parameter=8700.78, enum_parameter=Operations::UsageExamplePostEnumParameter::VALUE2, falsey_number_parameter=0, - float32_parameter=8430.91, - float_parameter=3767.71, - int64_parameter=733506, - int_parameter=892942, + float32_parameter=1341.86, + float_parameter=5429.24, + int64_parameter=101970, + int_parameter=938852, opt_enum_parameter=Operations::UsageExamplePostOptEnumParameter::VALUE3, - str_parameter="example 2", + str_parameter="example 3", ), request_body=Operations::UsageExamplePostRequestBody.new( faker_formatted_strings=Shared::FakerFormattedStrings.new( - address_format="4410 DuBuque Walks", - directory_format="/var/log", - domain_format="miserable-kitsch.name", - email_format="Ashton_Gleichner14@hotmail.com", - filename_format="buckinghamshire.mpg4", - filepath_format="/usr/X11R6/southwest_finally.teicorpus", + address_format="37376 Humberto Court", + directory_format="/net", + domain_format="rubbery-enrollment.net", + email_format="Marcella.Kuhic82@gmail.com", + filename_format="fiji.wav", + filepath_format="/etc/ppp/psst.ppam", image_format="https://loremflickr.com/640/480", - ipv4_format="247.146.81.33", - ipv6_format="dd53:801f:82a1:3cb7:01a0:b6cb:79b0:29b4", - json_format="{dagger: 68925, marketplace: null, pumpkinseed: \"Fantastic Meitnerium\"}", - mac_format="ed:b8:8c:0d:08:47", - password_format="28gh0c6QQu__V50", - phone_format="274.405.8666 x7999", - timezone_format="America/Chicago", - unknown_format="Account Bicycle actuating", - url_format="https://canine-raffle.name", - uuid_format="74f79621-f541-4963-9730-a31fb6a19fc4", - zipcode_format="78209-3433", + ipv4_format="88.90.151.95", + ipv6_format="51e9:386a:9f8f:4b14:b9d6:be98:7720:83fe", + json_format="{key: 53630, key1: null, key2: \"string\"}", + mac_format="79:c1:4d:82:11:db", + password_format="ibYyx3Won4RR_4m", + phone_format="500.706.4774 x6701", + timezone_format="Asia/Kuwait", + unknown_format="string", + url_format="https://extraneous-dagger.net", + uuid_format="8b35beed-b88c-40d0-8471-2404bc12b138", + zipcode_format="58660", ), faker_strings=Shared::FakerStrings.new( - city="Littelland", - iban="EE100672303322089427", + city="Cruzboro", + iban="FI1600143086790364", id="", - i_pv4="242.120.118.255", - i_pv6="a455:b9a8:6f75:4b2a:c5f6:c35a:0586:6747", - account="03994556", - address="7666 Johns Dale", - amount="568.13", + i_pv4="148.203.197.152", + i_pv6="e518:1ba7:4f79:621f:5419:63d7:30a3:1fb6", + account="61697367", + address="209 Hazel Freeway", + amount="313.41", avatar="https://loremflickr.com/640/480", - color="lavender", - comment="Boston's most advanced compression wear technology increases muscle oxygenation, stabilizes active muscles", - company="Anderson - Robel", - country="Bosnia and Herzegovina", - country_code="CM", - currency="Lempira", - datatype="double", - default="compressing digital", - description="Optimized 6th generation application", - directory="/opt/include", - domain_name="uncommon-nitrogen.biz", - email_addr="Shania.OKeefe22@yahoo.com", - extension="jpg", - filename="sedan_hand_flawless.mp2", - filepath="/home/transmit_mazda_bedfordshire.scq", - filetype="audio", - first_name="Blanca", - full_name="Leo Cummerata", - gender="Agender", - job="Global Marketing Strategist", - json="{queen: 69085, agenda: null, halt: \"Rubidium enim\"}", + color="lime", + comment="The Football Is Good For Training And Recreational Purposes", + company="Franey Inc", + country="Estonia", + country_code="MV", + currency="Singapore Dollar", + datatype="time", + default="string", + description="Integrated explicit artificial intelligence", + directory="/net", + domain_name="feline-signup.biz", + email_addr="Coralie72@yahoo.com", + extension="pdf", + filename="jittery_besides_account.htm", + filepath="/private/response_tesla_global.cat", + filetype="application", + first_name="Jailyn", + full_name="Michele Rice", + gender="Trans", + job="National Metrics Administrator", + json="{key: 78733, key1: null, key2: \"string\"}", key="", - last_name="Kulas", - latitude="18.8968", - locale="nb_NO", - longitude="-139.9224", - mac="9c:60:66:dc:6d:bd", - manufacturer="Land Rover", - material="Soft", - middle_name="Angel", - model="Element", - password="tjAGJwExOUrFWeV", - phone="344-358-5896 x6762", - pin="0743", - postal_code="53183", - price="991.00", - product="Elegant Steel Mouse", - sex="female", - street="Arthur Mills", - timezone="Asia/Seoul", + last_name="Fisher", + latitude="-23.5142", + locale="lv", + longitude="-161.4248", + mac="58:66:74:71:5f:e7", + manufacturer="Kia", + material="Granite", + middle_name="Nico", + model="Grand Cherokee", + password="kcH1VhIg2TEQP2U", + phone="238-626-8671", + pin="2569", + postal_code="91734-1821", + price="178.00", + product="Intelligent Soft Towels", + sex="male", + street="O'Kon Circle", + timezone="Europe/Bratislava", unit="kelvin", - url="https://spirited-welcome.com", - username="Jeromy74", - uuid="53940f18-f41d-411d-bd28-2d0a90ccf88d", + url="http://clear-rain.info", + username="Cassandra.Rolfson55", + uuid="2fbb06b4-9579-4b19-8606-6dc6dbd9c0be", ), simple_object=Shared::SimpleObject.new( - any="Sports", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -250,11 +256,11 @@ req = Operations::UsageExamplePostRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=916663, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=303425, num=1.1, - num_opt_null=8720.22, + num_opt_null=2928.25, str_="test", str_opt="testOptional", ), @@ -330,6 +336,9 @@ end * [anchor_types_get](docs/sdks/generation/README.md#anchor_types_get) * [array_circular_reference_get](docs/sdks/generation/README.md#array_circular_reference_get) * [circular_reference_get](docs/sdks/generation/README.md#circular_reference_get) +* [date_param_with_default](docs/sdks/generation/README.md#date_param_with_default) +* [date_time_param_with_default](docs/sdks/generation/README.md#date_time_param_with_default) +* [decimal_param_with_default](docs/sdks/generation/README.md#decimal_param_with_default) * [deprecated_field_in_schema_post](docs/sdks/generation/README.md#deprecated_field_in_schema_post) * [deprecated_object_in_schema_get](docs/sdks/generation/README.md#deprecated_object_in_schema_get) * [~~deprecated_operation_no_comments_get~~](docs/sdks/generation/README.md#deprecated_operation_no_comments_get) - :warning: **Deprecated** @@ -381,6 +390,7 @@ end * [deep_object_query_params_object](docs/sdks/parameters/README.md#deep_object_query_params_object) * [duplicate_param](docs/sdks/parameters/README.md#duplicate_param) * [form_query_params_array](docs/sdks/parameters/README.md#form_query_params_array) +* [form_query_params_camel_object](docs/sdks/parameters/README.md#form_query_params_camel_object) * [form_query_params_map](docs/sdks/parameters/README.md#form_query_params_map) * [form_query_params_object](docs/sdks/parameters/README.md#form_query_params_object) * [form_query_params_primitive](docs/sdks/parameters/README.md#form_query_params_primitive) @@ -496,6 +506,7 @@ end * [response_body_additional_properties_complex_numbers_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_complex_numbers_post) * [response_body_additional_properties_date_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_date_post) +* [response_body_additional_properties_object_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_object_post) * [response_body_additional_properties_post](docs/sdks/responsebodies/README.md#response_body_additional_properties_post) * [response_body_bytes_get](docs/sdks/responsebodies/README.md#response_body_bytes_get) * [response_body_empty_with_headers](docs/sdks/responsebodies/README.md#response_body_empty_with_headers) @@ -539,6 +550,8 @@ end * [strongly_typed_one_of_post](docs/sdks/unions/README.md#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](docs/sdks/unions/README.md#typed_object_nullable_one_of_post) * [typed_object_one_of_post](docs/sdks/unions/README.md#typed_object_one_of_post) +* [union_date_null](docs/sdks/unions/README.md#union_date_null) +* [union_date_time_null](docs/sdks/unions/README.md#union_date_time_null) * [weakly_typed_one_of_post](docs/sdks/unions/README.md#weakly_typed_one_of_post) @@ -548,6 +561,82 @@ end + + + +# Global Parameters + +Certain parameters are configured globally. These parameters must be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. + +For example, you can set `globalPathParam` to `100` at SDK initialization and then you do not have to pass the same value on calls to operations like `global_path_parameter_get`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. + + +## Available Globals + +The following global parameters are available. The required parameters must be set when you initialize the SDK client. + +| Name | Type | Required | Description | +| ---- | ---- |:--------:| ----------- | +| globalPathParam | Integer | ✔️ | The globalPathParam parameter. | +| globalQueryParam | String | ✔️ | The globalQueryParam parameter. | + + + +## Example #1 + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = Operations::GlobalPathParameterGetRequest.new( + path_params=Operations::GlobalPathParameterGetRequest.new(), +) + +res = s.globals.global_path_parameter_get(req) + +if ! res.res.nil? + # handle response +end + +``` + + +## Example #2 + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = Operations::GlobalsQueryParameterGetRequest.new( + query_params=Operations::GlobalsQueryParameterGetRequest.new(), +) + +res = s.globals.globals_query_parameter_get(req) + +if ! res.res.nil? + # handle response +end + +``` + + + diff --git a/ruby-client-sdk/USAGE.md b/ruby-client-sdk/USAGE.md index da93ba549..59dbddcbc 100755 --- a/ruby-client-sdk/USAGE.md +++ b/ruby-client-sdk/USAGE.md @@ -6,6 +6,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.global_name_overridden() @@ -43,73 +48,73 @@ req = Operations::UsageExamplePostRequest.new( image_format="https://loremflickr.com/640/480", ipv4_format="75.42.25.241", ipv6_format="36a9:c057:a71b:b73a:c9ee:2348:d76c:3164", - json_format="{plane: 14910, fringe: null, lightning: \"Roentgenium UTF8\"}", - mac_format="13:58:66:7d:ac:95", - password_format="b6eWzdveK0sHokC", - phone_format="832-504-6221 x221", - timezone_format="Asia/Krasnoyarsk", - unknown_format="Principal at", - url_format="http://understated-balcony.org", - uuid_format="62de2e2d-47a9-4bf1-80f7-53b9b364b6b4", - zipcode_format="25687-7266", + json_format="{key: 66681, key1: null, key2: \"string\"}", + mac_format="25:8b:e7:e1:35:86", + password_format="IKpiCb6eWzdveK0", + phone_format="1-803-587-3283", + timezone_format="America/Argentina/Buenos_Aires", + unknown_format="string", + url_format="http://beneficial-inconvenience.net", + uuid_format="342442b8-aff3-42e0-b62d-e2e2d47a9bf1", + zipcode_format="09432", ), faker_strings=Shared::FakerStrings.new( - city="Port Carli", - iban="TN8700576009897281100717", + city="McLaughlinchester", + iban="TL232743267267003560099", id="", - i_pv4="141.21.132.133", - i_pv6="308b:b979:0237:4ea8:ee39:8480:0301:1d98", - account="81966519", - address="418 Maybelle Brooks", - amount="27.55", + i_pv4="208.201.244.247", + i_pv6="bd3a:d72b:208b:2c81:8830:8bb9:7902:374e", + account="65982652", + address="0010 Assunta Throughway", + amount="616.94", avatar="https://loremflickr.com/640/480", - color="turquoise", - comment="The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality", - company="Murazik, Kozey and Hirthe", - country="Equatorial Guinea", - country_code="LU", - currency="Congolese Franc", - datatype="bigint", - default="Dalasi", - description="Up-sized explicit frame", - directory="/home", - domain_name="warmhearted-buying.biz", - email_addr="Beulah.Franecki24@gmail.com", - extension="pdf", - filename="recovery.pdf", - filepath="/usr/share/powerfully.less", - filetype="application", - first_name="Geovany", - full_name="Roy Gottlieb", - gender="Cis", - job="International Metrics Administrator", - json="{trachoma: 6397, nick: null, android: \"Plastic Recumbent\"}", + color="tan", + comment="New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + company="Volkman LLC", + country="Nicaragua", + country_code="MO", + currency="Canadian Dollar", + datatype="point", + default="string", + description="Quality-focused full-range circuit", + directory="/usr/ports", + domain_name="klutzy-prostacyclin.com", + email_addr="Jalyn_Haley47@gmail.com", + extension="png", + filename="panel.jpeg", + filepath="/opt/share/yahoo.xul", + filetype="video", + first_name="Trystan", + full_name="Mrs. Lillian Bode", + gender="Cis female", + job="Future Solutions Specialist", + json="{key: 95274, key1: null, key2: \"string\"}", key="", - last_name="Kshlerin", - latitude="65.3520", - locale="zh_CN", - longitude="16.8742", - mac="fd:b6:ff:35:99:05", - manufacturer="Mazda", - material="Frozen", - middle_name="Emerson", + last_name="Renner", + latitude="-71.5944", + locale="sv", + longitude="-131.8166", + mac="e9:ee:6a:24:2a:1b", + manufacturer="Volvo", + material="Plastic", + middle_name="Sawyer", model="Mustang", - password="71wIwgEZJMTCRYg", - phone="1-466-307-0476", - pin="0584", - postal_code="07886", - price="452.00", - product="Small Steel Salad", - sex="female", - street="Christy Dam", - timezone="America/Regina", - unit="sievert", - url="http://repentant-haunt.name", - username="Heather_Mills48", - uuid="29e9f1c7-ed92-481f-955b-6ca1625b4c3a", + password="YAC_QiNrTzqbDz8", + phone="(650) 469-3026 x116", + pin="9497", + postal_code="64696", + price="25.00", + product="Recycled Granite Pants", + sex="male", + street="Lura Wells", + timezone="Africa/Nairobi", + unit="degree Celsius", + url="https://crooked-dulcimer.name", + username="Mable76", + uuid="16b919d6-51cd-4e97-81e2-5221b7b6969f", ), simple_object=Shared::SimpleObject.new( - any="wireless", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -122,114 +127,115 @@ req = Operations::UsageExamplePostRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=51222, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=165468, num=1.1, - num_opt_null=598.05, + num_opt_null=5944.32, str_="test", str_opt="testOptional", ), ), - bigint_parameter=284159, - bigint_parameter_optional=322202, - bigint_str_parameter="Automotive", - bigint_str_parameter_optional="focus Country", + bigint_parameter=924793, + bigint_parameter_optional=583481, + bigint_str_parameter="string", + bigint_str_parameter_optional="string", bool_parameter=false, - date_parameter=Date.parse("2022-01-13"), - date_time_parameter=DateTime.iso8601('2021-04-10T10:50:46.754Z'), - decimal_parameter=8924.18, - decimal_parameter_optional=5705.14, - decimal_str_parameter="navigating", - decimal_str_parameter_optional="Rap matrix South", - double_parameter=7223.13, + date_parameter=Date.parse("2023-12-21"), + date_time_default_parameter=DateTime.iso8601('2021-03-16T01:25:42.471Z'), + date_time_parameter=DateTime.iso8601('2023-05-24T07:01:53.326Z'), + decimal_parameter=4713.96, + decimal_parameter_optional=9349.54, + decimal_str_parameter="string", + decimal_str_parameter_optional="string", + double_parameter=8700.78, enum_parameter=Operations::UsageExamplePostEnumParameter::VALUE2, falsey_number_parameter=0, - float32_parameter=8430.91, - float_parameter=3767.71, - int64_parameter=733506, - int_parameter=892942, + float32_parameter=1341.86, + float_parameter=5429.24, + int64_parameter=101970, + int_parameter=938852, opt_enum_parameter=Operations::UsageExamplePostOptEnumParameter::VALUE3, - str_parameter="example 2", + str_parameter="example 3", ), request_body=Operations::UsageExamplePostRequestBody.new( faker_formatted_strings=Shared::FakerFormattedStrings.new( - address_format="4410 DuBuque Walks", - directory_format="/var/log", - domain_format="miserable-kitsch.name", - email_format="Ashton_Gleichner14@hotmail.com", - filename_format="buckinghamshire.mpg4", - filepath_format="/usr/X11R6/southwest_finally.teicorpus", + address_format="37376 Humberto Court", + directory_format="/net", + domain_format="rubbery-enrollment.net", + email_format="Marcella.Kuhic82@gmail.com", + filename_format="fiji.wav", + filepath_format="/etc/ppp/psst.ppam", image_format="https://loremflickr.com/640/480", - ipv4_format="247.146.81.33", - ipv6_format="dd53:801f:82a1:3cb7:01a0:b6cb:79b0:29b4", - json_format="{dagger: 68925, marketplace: null, pumpkinseed: \"Fantastic Meitnerium\"}", - mac_format="ed:b8:8c:0d:08:47", - password_format="28gh0c6QQu__V50", - phone_format="274.405.8666 x7999", - timezone_format="America/Chicago", - unknown_format="Account Bicycle actuating", - url_format="https://canine-raffle.name", - uuid_format="74f79621-f541-4963-9730-a31fb6a19fc4", - zipcode_format="78209-3433", + ipv4_format="88.90.151.95", + ipv6_format="51e9:386a:9f8f:4b14:b9d6:be98:7720:83fe", + json_format="{key: 53630, key1: null, key2: \"string\"}", + mac_format="79:c1:4d:82:11:db", + password_format="ibYyx3Won4RR_4m", + phone_format="500.706.4774 x6701", + timezone_format="Asia/Kuwait", + unknown_format="string", + url_format="https://extraneous-dagger.net", + uuid_format="8b35beed-b88c-40d0-8471-2404bc12b138", + zipcode_format="58660", ), faker_strings=Shared::FakerStrings.new( - city="Littelland", - iban="EE100672303322089427", + city="Cruzboro", + iban="FI1600143086790364", id="", - i_pv4="242.120.118.255", - i_pv6="a455:b9a8:6f75:4b2a:c5f6:c35a:0586:6747", - account="03994556", - address="7666 Johns Dale", - amount="568.13", + i_pv4="148.203.197.152", + i_pv6="e518:1ba7:4f79:621f:5419:63d7:30a3:1fb6", + account="61697367", + address="209 Hazel Freeway", + amount="313.41", avatar="https://loremflickr.com/640/480", - color="lavender", - comment="Boston's most advanced compression wear technology increases muscle oxygenation, stabilizes active muscles", - company="Anderson - Robel", - country="Bosnia and Herzegovina", - country_code="CM", - currency="Lempira", - datatype="double", - default="compressing digital", - description="Optimized 6th generation application", - directory="/opt/include", - domain_name="uncommon-nitrogen.biz", - email_addr="Shania.OKeefe22@yahoo.com", - extension="jpg", - filename="sedan_hand_flawless.mp2", - filepath="/home/transmit_mazda_bedfordshire.scq", - filetype="audio", - first_name="Blanca", - full_name="Leo Cummerata", - gender="Agender", - job="Global Marketing Strategist", - json="{queen: 69085, agenda: null, halt: \"Rubidium enim\"}", + color="lime", + comment="The Football Is Good For Training And Recreational Purposes", + company="Franey Inc", + country="Estonia", + country_code="MV", + currency="Singapore Dollar", + datatype="time", + default="string", + description="Integrated explicit artificial intelligence", + directory="/net", + domain_name="feline-signup.biz", + email_addr="Coralie72@yahoo.com", + extension="pdf", + filename="jittery_besides_account.htm", + filepath="/private/response_tesla_global.cat", + filetype="application", + first_name="Jailyn", + full_name="Michele Rice", + gender="Trans", + job="National Metrics Administrator", + json="{key: 78733, key1: null, key2: \"string\"}", key="", - last_name="Kulas", - latitude="18.8968", - locale="nb_NO", - longitude="-139.9224", - mac="9c:60:66:dc:6d:bd", - manufacturer="Land Rover", - material="Soft", - middle_name="Angel", - model="Element", - password="tjAGJwExOUrFWeV", - phone="344-358-5896 x6762", - pin="0743", - postal_code="53183", - price="991.00", - product="Elegant Steel Mouse", - sex="female", - street="Arthur Mills", - timezone="Asia/Seoul", + last_name="Fisher", + latitude="-23.5142", + locale="lv", + longitude="-161.4248", + mac="58:66:74:71:5f:e7", + manufacturer="Kia", + material="Granite", + middle_name="Nico", + model="Grand Cherokee", + password="kcH1VhIg2TEQP2U", + phone="238-626-8671", + pin="2569", + postal_code="91734-1821", + price="178.00", + product="Intelligent Soft Towels", + sex="male", + street="O'Kon Circle", + timezone="Europe/Bratislava", unit="kelvin", - url="https://spirited-welcome.com", - username="Jeromy74", - uuid="53940f18-f41d-411d-bd28-2d0a90ccf88d", + url="http://clear-rain.info", + username="Cassandra.Rolfson55", + uuid="2fbb06b4-9579-4b19-8606-6dc6dbd9c0be", ), simple_object=Shared::SimpleObject.new( - any="Sports", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -242,11 +248,11 @@ req = Operations::UsageExamplePostRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=916663, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=303425, num=1.1, - num_opt_null=8720.22, + num_opt_null=2928.25, str_="test", str_opt="testOptional", ), diff --git a/ruby-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md b/ruby-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md new file mode 100755 index 000000000..0f5ef9b15 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `date_input` | [DateTime](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/DateTime.html) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md b/ruby-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md new file mode 100755 index 000000000..7b4ddb5d7 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md b/ruby-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md new file mode 100755 index 000000000..80f32ab5b --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `date_time_input` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md b/ruby-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md new file mode 100755 index 000000000..c19c31f02 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md b/ruby-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md new file mode 100755 index 000000000..43564accb --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimal_input` | *Float* | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md b/ruby-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md new file mode 100755 index 000000000..c555a60a4 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md b/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md index 791abb9ac..4342e0954 100755 --- a/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md +++ b/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmaprequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | -| `map_arr_param` | T::Hash[Symbol, T::Array<*String*>] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | +| `map_arr_param` | T::Hash[Symbol, T::Array<*String*>] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md b/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md index 8b90b0e2b..d325fae05 100755 --- a/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md +++ b/ruby-client-sdk/docs/models/operations/deepobjectqueryparamsmapres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | T::Hash[Symbol, *Object*] | :heavy_check_mark: | N/A | | +| `args` | T::Hash[Symbol, *Object*] | :heavy_check_mark: | N/A | [object Object] | | `url` | *String* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md new file mode 100755 index 000000000..737bc0aa9 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `encoded_count` | *T.nilable(String)* | :heavy_minus_sign: | N/A | 11 | +| `encoded_term` | *T.nilable(String)* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md new file mode 100755 index 000000000..55756c24e --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `item_count` | *T.nilable(String)* | :heavy_minus_sign: | N/A | 10 | +| `search_term` | *T.nilable(String)* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md new file mode 100755 index 000000000..d0e0643f7 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `obj_param_exploded` | [Operations::FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `obj_param` | [T.nilable(Operations::FormQueryParamsCamelObjectObjParam)](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md new file mode 100755 index 000000000..5b0b77736 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `args` | [Operations::FormQueryParamsCamelObjectResArgs](../../models/operations/formqueryparamscamelobjectresargs.md) | :heavy_check_mark: | N/A | | +| `url` | *String* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md new file mode 100755 index 000000000..d66d53e3c --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `item_count` | *String* | :heavy_check_mark: | N/A | 10 | +| `search_term` | *String* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md new file mode 100755 index 000000000..be96ac820 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [T.nilable(Operations::FormQueryParamsCamelObjectRes)](../../models/operations/formqueryparamscamelobjectres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamsmaprequest.md b/ruby-client-sdk/docs/models/operations/formqueryparamsmaprequest.md index 91794fde4..420d11ed1 100755 --- a/ruby-client-sdk/docs/models/operations/formqueryparamsmaprequest.md +++ b/ruby-client-sdk/docs/models/operations/formqueryparamsmaprequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | -| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | [object Object] | +| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/formqueryparamsmapres.md b/ruby-client-sdk/docs/models/operations/formqueryparamsmapres.md index 31aeed5da..eb0026bfc 100755 --- a/ruby-client-sdk/docs/models/operations/formqueryparamsmapres.md +++ b/ruby-client-sdk/docs/models/operations/formqueryparamsmapres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `args` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | | +| `args` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | | `url` | *String* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2 | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/headerparamsmaprequest.md b/ruby-client-sdk/docs/models/operations/headerparamsmaprequest.md index c6edbe57b..2671b8596 100755 --- a/ruby-client-sdk/docs/models/operations/headerparamsmaprequest.md +++ b/ruby-client-sdk/docs/models/operations/headerparamsmaprequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------- | ------------------------- | ------------------------- | ------------------------- | -| `x_header_map` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | -| `x_header_map_explode` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `x_header_map` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | +| `x_header_map_explode` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/mixedqueryparamsres.md b/ruby-client-sdk/docs/models/operations/mixedqueryparamsres.md index 5807dc062..6f8721a65 100755 --- a/ruby-client-sdk/docs/models/operations/mixedqueryparamsres.md +++ b/ruby-client-sdk/docs/models/operations/mixedqueryparamsres.md @@ -7,5 +7,5 @@ OK | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `args` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | | +| `args` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | | `url` | *String* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={"any"%3A"any"%2C"bigint"%3A8821239038968084%2C"bigintStr"%3A"9223372036854775808"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.000000001Z"%2C"decimal"%3A3.141592653589793%2C"decimalStr"%3A"3.14159265358979344719667586"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}&num=1.1&str=test&strOpt=testOptional | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md b/ruby-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md index d7a4c3b9d..800f06582 100755 --- a/ruby-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md +++ b/ruby-client-sdk/docs/models/operations/pipedelimitedqueryparamsarrayrequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `arr_param` | T::Array<*String*> | :heavy_minus_sign: | N/A | -| `arr_param_exploded` | T::Array<*Integer*> | :heavy_minus_sign: | N/A | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | -| `obj_param` | [T.nilable(Shared::SimpleObject)](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `arr_param` | T::Array<*String*> | :heavy_minus_sign: | N/A | | +| `arr_param_exploded` | T::Array<*Integer*> | :heavy_minus_sign: | N/A | | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | [object Object] | +| `obj_param` | [T.nilable(Shared::SimpleObject)](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md b/ruby-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md new file mode 100755 index 000000000..108372cec --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `json` | T::Hash[Symbol, [Shared::SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md b/ruby-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md new file mode 100755 index 000000000..87f95faa2 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `response_body_additional_properties_object_post_200_application_json_object` | [T.nilable(Operations::ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON)](../../models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/simplepathparametermapsrequest.md b/ruby-client-sdk/docs/models/operations/simplepathparametermapsrequest.md index 7081a200d..f2dc2ae16 100755 --- a/ruby-client-sdk/docs/models/operations/simplepathparametermapsrequest.md +++ b/ruby-client-sdk/docs/models/operations/simplepathparametermapsrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | -| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | +| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_check_mark: | N/A | [object Object] | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/statusgetxspeakeasyerrors501applicationjson.md b/ruby-client-sdk/docs/models/operations/statusgetxspeakeasyerrors501applicationjson.md index 258219ecf..b7342bf6c 100755 --- a/ruby-client-sdk/docs/models/operations/statusgetxspeakeasyerrors501applicationjson.md +++ b/ruby-client-sdk/docs/models/operations/statusgetxspeakeasyerrors501applicationjson.md @@ -5,7 +5,8 @@ Not Implemented ## Fields -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `code` | *T.nilable(String)* | :heavy_minus_sign: | N/A | -| `message` | *T.nilable(String)* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `code` | *T.nilable(String)* | :heavy_minus_sign: | N/A | +| `message` | *T.nilable(String)* | :heavy_minus_sign: | N/A | +| `type` | [T.nilable(Shared::ErrorType)](../../models/shared/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/uniondatenullres.md b/ruby-client-sdk/docs/models/operations/uniondatenullres.md new file mode 100755 index 000000000..4d79dfe6e --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/uniondatenullres.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `json` | [DateTime](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/DateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/uniondatenullresponse.md b/ruby-client-sdk/docs/models/operations/uniondatenullresponse.md new file mode 100755 index 000000000..64d468458 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/uniondatenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [T.nilable(Operations::UnionDateNullRes)](../../models/operations/uniondatenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/uniondatetimenullres.md b/ruby-client-sdk/docs/models/operations/uniondatetimenullres.md new file mode 100755 index 000000000..b37f35e1e --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/uniondatetimenullres.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `json` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/uniondatetimenullresponse.md b/ruby-client-sdk/docs/models/operations/uniondatetimenullresponse.md new file mode 100755 index 000000000..2beee06b9 --- /dev/null +++ b/ruby-client-sdk/docs/models/operations/uniondatetimenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `content_type` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [T.nilable(Operations::UnionDateTimeNullRes)](../../models/operations/uniondatetimenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/operations/usageexamplepostrequest.md b/ruby-client-sdk/docs/models/operations/usageexamplepostrequest.md index 53ef8401e..00e315785 100755 --- a/ruby-client-sdk/docs/models/operations/usageexamplepostrequest.md +++ b/ruby-client-sdk/docs/models/operations/usageexamplepostrequest.md @@ -12,6 +12,7 @@ | `bigint_str_parameter_optional` | *T.nilable(String)* | :heavy_minus_sign: | An bigint parameter | | | `bool_parameter` | *T::Boolean* | :heavy_check_mark: | A boolean parameter | | | `date_parameter` | [DateTime](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/DateTime.html) | :heavy_check_mark: | A date parameter | | +| `date_time_default_parameter` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | A date time parameter with a default value | | | `date_time_parameter` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | A date time parameter | | | `decimal_parameter` | *Float* | :heavy_check_mark: | A decimal parameter | | | `decimal_parameter_optional` | *T.nilable(Float)* | :heavy_minus_sign: | A decimal parameter | | diff --git a/ruby-client-sdk/docs/models/shared/deepobject.md b/ruby-client-sdk/docs/models/shared/deepobject.md index 8814549ef..dbb4b3854 100755 --- a/ruby-client-sdk/docs/models/shared/deepobject.md +++ b/ruby-client-sdk/docs/models/shared/deepobject.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `any` | *Object* | :heavy_check_mark: | N/A | | -| `arr` | T::Array<[Shared::SimpleObject](../../models/shared/simpleobject.md)> | :heavy_check_mark: | N/A | | +| `any` | *Object* | :heavy_check_mark: | N/A | anyOf[0] | +| `arr` | T::Array<[Shared::SimpleObject](../../models/shared/simpleobject.md)> | :heavy_check_mark: | N/A | ...,... | | `bool` | *T::Boolean* | :heavy_check_mark: | N/A | true | | `int` | *Integer* | :heavy_check_mark: | N/A | 1 | -| `map` | T::Hash[Symbol, [Shared::SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | | +| `map` | T::Hash[Symbol, [Shared::SimpleObject](../../models/shared/simpleobject.md)] | :heavy_check_mark: | N/A | [object Object] | | `num` | *Float* | :heavy_check_mark: | N/A | 1.1 | | `obj` | [Shared::SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties.

[A link to the external docs.](https://docs.speakeasyapi.dev) | | | `str_` | *String* | :heavy_check_mark: | N/A | test | diff --git a/ruby-client-sdk/docs/models/shared/error.md b/ruby-client-sdk/docs/models/shared/error.md index 2fd69b038..aabb989f2 100755 --- a/ruby-client-sdk/docs/models/shared/error.md +++ b/ruby-client-sdk/docs/models/shared/error.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `code` | *T.nilable(String)* | :heavy_minus_sign: | N/A | -| `message` | *T.nilable(String)* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `code` | *T.nilable(String)* | :heavy_minus_sign: | N/A | +| `message` | *T.nilable(String)* | :heavy_minus_sign: | N/A | +| `type` | [T.nilable(Shared::ErrorType)](../../models/shared/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/shared/errortype.md b/ruby-client-sdk/docs/models/shared/errortype.md new file mode 100755 index 000000000..0ccaa2526 --- /dev/null +++ b/ruby-client-sdk/docs/models/shared/errortype.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `NOT_FOUND` | not_found | +| `INVALID` | invalid | +| `INTERNAL` | internal | \ No newline at end of file diff --git a/ruby-client-sdk/docs/models/shared/simpleobject.md b/ruby-client-sdk/docs/models/shared/simpleobject.md index 875f514f5..3a3e153f5 100755 --- a/ruby-client-sdk/docs/models/shared/simpleobject.md +++ b/ruby-client-sdk/docs/models/shared/simpleobject.md @@ -10,7 +10,7 @@ A link to the external docs. | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `any` | *Object* | :heavy_check_mark: | An any property. | | +| `any` | *Object* | :heavy_check_mark: | An any property. | any | | `bigint` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | 8821239038968084 | | `bigint_str` | *T.nilable(String)* | :heavy_minus_sign: | N/A | 9223372036854775808 | | `bool` | *T::Boolean* | :heavy_check_mark: | A boolean property. | true | diff --git a/ruby-client-sdk/docs/models/shared/simpleobjectcamelcase.md b/ruby-client-sdk/docs/models/shared/simpleobjectcamelcase.md index 01426ae8d..bafb49f9a 100755 --- a/ruby-client-sdk/docs/models/shared/simpleobjectcamelcase.md +++ b/ruby-client-sdk/docs/models/shared/simpleobjectcamelcase.md @@ -10,7 +10,7 @@ A link to the external docs. | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `any_val` | *Object* | :heavy_check_mark: | An any property. | | +| `any_val` | *Object* | :heavy_check_mark: | An any property. | any example | | `bigint_str_val` | *T.nilable(String)* | :heavy_minus_sign: | N/A | | | `bigint_val` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | | | `bool_opt_val` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | An optional boolean property. | true | diff --git a/ruby-client-sdk/docs/sdks/auth/README.md b/ruby-client-sdk/docs/sdks/auth/README.md index 3b74955b2..fae85b11c 100755 --- a/ruby-client-sdk/docs/sdks/auth/README.md +++ b/ruby-client-sdk/docs/sdks/auth/README.md @@ -56,6 +56,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.auth.api_key_auth_global() @@ -156,6 +161,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.auth.global_bearer_auth() diff --git a/ruby-client-sdk/docs/sdks/authnew/README.md b/ruby-client-sdk/docs/sdks/authnew/README.md index 854a42eba..3e8849f54 100755 --- a/ruby-client-sdk/docs/sdks/authnew/README.md +++ b/ruby-client-sdk/docs/sdks/authnew/README.md @@ -28,6 +28,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::AuthServiceRequestBody.new( @@ -38,8 +43,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="Highway", - header_name="deliver payment", + expected_value="string", + header_name="string", ), ], ), @@ -75,6 +80,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::AuthServiceRequestBody.new( @@ -85,8 +95,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="idolized", - header_name="female Virginia primary", + expected_value="string", + header_name="string", ), ], ), @@ -136,8 +146,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="integrate", - header_name="bandwidth uselessly", + expected_value="string", + header_name="string", ), ], ), @@ -187,8 +197,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="thong Scandium worse", - header_name="Durham Tesla", + expected_value="string", + header_name="string", ), ], ), @@ -242,8 +252,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="services indigo", - header_name="Wooden Jewelery", + expected_value="string", + header_name="string", ), ], ), @@ -296,8 +306,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="Gourde", - header_name="Van Granite East", + expected_value="string", + header_name="string", ), ], ), @@ -350,8 +360,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="compressing", - header_name="sievert Diesel", + expected_value="string", + header_name="string", ), ], ), @@ -401,8 +411,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="payment Usability sievert", - header_name="yum Northwest metrics", + expected_value="string", + header_name="string", ), ], ), @@ -453,8 +463,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="microchip Southeast", - header_name="Future Corners Electronic", + expected_value="string", + header_name="string", ), ], ), @@ -504,8 +514,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="Sunrise", - header_name="male", + expected_value="string", + header_name="string", ), ], ), @@ -555,8 +565,8 @@ req = Shared::AuthServiceRequestBody.new( ), header_auth=.new[ Shared::AuthServiceRequestBodyHeaderAuth.new( - expected_value="bypassing furthermore", - header_name="bypass brilliant tesla", + expected_value="string", + header_name="string", ), ], ), diff --git a/ruby-client-sdk/docs/sdks/documentation/README.md b/ruby-client-sdk/docs/sdks/documentation/README.md index 5068cffe1..90cc389dd 100755 --- a/ruby-client-sdk/docs/sdks/documentation/README.md +++ b/ruby-client-sdk/docs/sdks/documentation/README.md @@ -20,11 +20,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::GetDocumentationPerLanguageRequest.new( query_params=Operations::GetDocumentationPerLanguageRequest.new( - language="California enim", + language="string", ), ) diff --git a/ruby-client-sdk/docs/sdks/errors/README.md b/ruby-client-sdk/docs/sdks/errors/README.md index 7bfa14ae8..013ef8e4d 100755 --- a/ruby-client-sdk/docs/sdks/errors/README.md +++ b/ruby-client-sdk/docs/sdks/errors/README.md @@ -20,6 +20,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.errors.connection_error_get() @@ -51,6 +56,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::StatusGetErrorRequest.new( @@ -88,6 +98,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::StatusGetXSpeakeasyErrorsRequest.new( diff --git a/ruby-client-sdk/docs/sdks/first/README.md b/ruby-client-sdk/docs/sdks/first/README.md index 915107c15..1138ff7b3 100755 --- a/ruby-client-sdk/docs/sdks/first/README.md +++ b/ruby-client-sdk/docs/sdks/first/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.first.get() diff --git a/ruby-client-sdk/docs/sdks/flattening/README.md b/ruby-client-sdk/docs/sdks/flattening/README.md index b08bb5489..649e44efb 100755 --- a/ruby-client-sdk/docs/sdks/flattening/README.md +++ b/ruby-client-sdk/docs/sdks/flattening/README.md @@ -22,12 +22,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::ComponentBodyAndParamConflictRequest.new( query_params=Operations::ComponentBodyAndParamConflictRequest.new( simple_object=Shared::SimpleObject.new( - any="Minivan", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -41,17 +46,17 @@ req = Operations::ComponentBodyAndParamConflictRequest.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=780, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=843322, num=1.1, - num_opt_null=5419.15, + num_opt_null=7126.06, str_="test", str_opt="testOptional", ), - str_="Cotton Supervisor kelvin", + str_="string", ), simple_object=Shared::SimpleObject.new( - any="compress", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -64,11 +69,11 @@ req = Operations::ComponentBodyAndParamConflictRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=421356, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=845828, num=1.1, - num_opt_null=1013.25, + num_opt_null=2573.18, str_="test", str_opt="testOptional", ), @@ -104,13 +109,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::ComponentBodyAndParamNoConflictRequest.new( query_params=Operations::ComponentBodyAndParamNoConflictRequest.new( - param_str="router salmon vertical", + param_str="string", simple_object=Shared::SimpleObject.new( - any="yowza", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -123,17 +133,17 @@ req = Operations::ComponentBodyAndParamNoConflictRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=982038, + int_opt_null=758827, num=1.1, - num_opt_null=7026.35, + num_opt_null=1702.8, str_="test", str_opt="testOptional", ), ), simple_object=Shared::SimpleObject.new( - any="Coordinator", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -146,11 +156,11 @@ req = Operations::ComponentBodyAndParamNoConflictRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=399304, + int_opt_null=836157, num=1.1, - num_opt_null=1383, + num_opt_null=2914.21, str_="test", str_opt="testOptional", ), @@ -186,16 +196,21 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::ConflictingParamsRequest.new( path_params=Operations::ConflictingParamsRequest.new( - str_path_parameter="Fantastic Southwest hunch", - str_query_parameter="strategic till", + str_path_parameter="string", + str_query_parameter="string", ), query_params=Operations::ConflictingParamsRequest.new( - str_path_parameter="Olathe Legacy", - str_query_parameter="Buckinghamshire", + str_path_parameter="string", + str_query_parameter="string", ), ) @@ -229,17 +244,22 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::InlineBodyAndParamConflictRequest.new( query_params=Operations::InlineBodyAndParamConflictRequest.new( request_body=Operations::InlineBodyAndParamConflictRequestBody.new( - str_="Progressive", + str_="string", ), - str_="female Southwest back", + str_="string", ), request_body=Operations::InlineBodyAndParamConflictRequestBody.new( - str_="Rustic", + str_="string", ), ) @@ -273,17 +293,22 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::InlineBodyAndParamNoConflictRequest.new( query_params=Operations::InlineBodyAndParamNoConflictRequest.new( request_body=Operations::InlineBodyAndParamNoConflictRequestBody.new( - body_str="dynamic expedite", + body_str="string", ), - param_str="monitoring Bicycle Fall", + param_str="string", ), request_body=Operations::InlineBodyAndParamNoConflictRequestBody.new( - body_str="instead through", + body_str="string", ), ) diff --git a/ruby-client-sdk/docs/sdks/generation/README.md b/ruby-client-sdk/docs/sdks/generation/README.md index e9e1b1ba2..381fc13be 100755 --- a/ruby-client-sdk/docs/sdks/generation/README.md +++ b/ruby-client-sdk/docs/sdks/generation/README.md @@ -10,6 +10,9 @@ Endpoints for purely testing valid generation behavior. * [anchor_types_get](#anchor_types_get) * [array_circular_reference_get](#array_circular_reference_get) * [circular_reference_get](#circular_reference_get) +* [date_param_with_default](#date_param_with_default) +* [date_time_param_with_default](#date_time_param_with_default) +* [decimal_param_with_default](#decimal_param_with_default) * [deprecated_field_in_schema_post](#deprecated_field_in_schema_post) * [deprecated_object_in_schema_get](#deprecated_object_in_schema_get) * [~~deprecated_operation_no_comments_get~~](#deprecated_operation_no_comments_get) - :warning: **Deprecated** @@ -34,6 +37,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.anchor_types_get() @@ -59,6 +67,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.array_circular_reference_get() @@ -84,6 +97,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.circular_reference_get() @@ -100,6 +118,132 @@ end **[T.nilable(Operations::CircularReferenceGetResponse)](../../models/operations/circularreferencegetresponse.md)** +## date_param_with_default + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = Operations::DateParamWithDefaultRequest.new( + query_params=Operations::DateParamWithDefaultRequest.new( + date_input=Date.parse("2021-11-30"), + ), +) + +res = s.generation.date_param_with_default(req) + +if res.status == 200 + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `date_input` | [DateTime](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/DateTime.html) | :heavy_check_mark: | A date parameter with a default value | + + +### Response + +**[T.nilable(Operations::DateParamWithDefaultResponse)](../../models/operations/dateparamwithdefaultresponse.md)** + + +## date_time_param_with_default + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = Operations::DateTimeParamWithDefaultRequest.new( + query_params=Operations::DateTimeParamWithDefaultRequest.new( + date_time_input=DateTime.iso8601('2023-02-09T21:53:21.077Z'), + ), +) + +res = s.generation.date_time_param_with_default(req) + +if res.status == 200 + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `date_time_input` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | A date time parameter with a default value | + + +### Response + +**[T.nilable(Operations::DateTimeParamWithDefaultResponse)](../../models/operations/datetimeparamwithdefaultresponse.md)** + + +## decimal_param_with_default + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = Operations::DecimalParamWithDefaultRequest.new( + query_params=Operations::DecimalParamWithDefaultRequest.new( + decimal_input=4060.06, + ), +) + +res = s.generation.decimal_param_with_default(req) + +if res.status == 200 + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimal_input` | *Float* | :heavy_check_mark: | A decimal parameter with a default value | + + +### Response + +**[T.nilable(Operations::DecimalParamWithDefaultResponse)](../../models/operations/decimalparamwithdefaultresponse.md)** + + ## deprecated_field_in_schema_post ### Example Usage @@ -109,12 +253,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::DeprecatedFieldInObject.new( request=Shared::DeprecatedFieldInObject.new( - deprecated_field="Bike Avon", - new_field="Rubber Santa", + deprecated_field="string", + new_field="string", ), ) @@ -147,6 +296,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.deprecated_object_in_schema_get() @@ -174,11 +328,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::DeprecatedOperationNoCommentsGetRequest.new( query_params=Operations::DeprecatedOperationNoCommentsGetRequest.new( - deprecated_parameter="Trigender wherever", + deprecated_parameter="string", ), ) @@ -194,7 +353,7 @@ end | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `deprecated_parameter` | *T.nilable(String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `deprecated_parameter` | *String* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | ### Response @@ -215,12 +374,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::DeprecatedOperationWithCommentsGetRequest.new( query_params=Operations::DeprecatedOperationWithCommentsGetRequest.new( - deprecated_parameter="payment actuating", - new_parameter="Mexican Cab gavel", + deprecated_parameter="string", + new_parameter="string", ), ) @@ -236,8 +400,8 @@ end | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `deprecated_parameter` | *T.nilable(String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This parameter is deprecated. Use new_parameter instead.

This is a string parameter | -| `new_parameter` | *T.nilable(String)* | :heavy_minus_sign: | This is a string parameter | +| `deprecated_parameter` | *String* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This parameter is deprecated. Use new_parameter instead.

This is a string parameter | +| `new_parameter` | *String* | :heavy_minus_sign: | This is a string parameter | ### Response @@ -254,6 +418,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::EmptyObjectGetRequest.new( @@ -291,6 +460,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.empty_response_object_with_comment_get() @@ -316,6 +490,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.global_name_overridden() @@ -341,6 +520,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.ignored_generation_get() @@ -366,19 +550,24 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::IgnoresPostRequest.new( query_params=Operations::IgnoresPostRequest.new( request_body=Operations::IgnoresPostApplicationJSON.new( callback_url="http://diligent-activist.biz", - test_prop="solid Branding Maserati", + test_prop="string", ), - test_param="Transgender Direct libero", + test_param="string", ), request_body=Operations::IgnoresPostApplicationJSON.new( - callback_url="http://tricky-speculation.org", - test_prop="Northeast Plastic", + callback_url="https://limping-upgrade.com", + test_prop="string", ), ) @@ -395,7 +584,7 @@ end | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request_body` | [Operations::IgnoresPostApplicationJSON](../../models/operations/ignorespostapplicationjson.md) | :heavy_check_mark: | N/A | -| `test_param` | *T.nilable(String)* | :heavy_minus_sign: | N/A | +| `test_param` | *String* | :heavy_minus_sign: | N/A | ### Response @@ -412,6 +601,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::NameOverrideGetRequest.new( @@ -451,6 +645,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.object_circular_reference_get() @@ -476,6 +675,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.generation.one_of_circular_reference_get() @@ -501,6 +705,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::TypedParameterGenerationGetRequest.new( @@ -511,7 +720,7 @@ req = Operations::TypedParameterGenerationGetRequest.new( obj=Operations::TypedParameterGenerationGetObj.new( bool=false, num=4778.06, - str_="Progressive Riyal male", + str_="string", ), ), ) @@ -526,12 +735,12 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `bigint` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | -| `date` | [DateTime](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/DateTime.html) | :heavy_minus_sign: | N/A | -| `decimal` | *T.nilable(Float)* | :heavy_minus_sign: | N/A | -| `obj` | [T.nilable(Operations::TypedParameterGenerationGetObj)](../../models/operations/typedparametergenerationgetobj.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `bigint` | *Integer* | :heavy_minus_sign: | N/A | +| `date` | [DateTime](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/DateTime.html) | :heavy_minus_sign: | N/A | +| `decimal` | *Float* | :heavy_minus_sign: | N/A | +| `obj` | [Operations::TypedParameterGenerationGetObj](../../models/operations/typedparametergenerationgetobj.md) | :heavy_minus_sign: | N/A | ### Response @@ -572,73 +781,73 @@ req = Operations::UsageExamplePostRequest.new( image_format="https://loremflickr.com/640/480", ipv4_format="75.42.25.241", ipv6_format="36a9:c057:a71b:b73a:c9ee:2348:d76c:3164", - json_format="{plane: 14910, fringe: null, lightning: \"Roentgenium UTF8\"}", - mac_format="13:58:66:7d:ac:95", - password_format="b6eWzdveK0sHokC", - phone_format="832-504-6221 x221", - timezone_format="Asia/Krasnoyarsk", - unknown_format="Principal at", - url_format="http://understated-balcony.org", - uuid_format="62de2e2d-47a9-4bf1-80f7-53b9b364b6b4", - zipcode_format="25687-7266", + json_format="{key: 66681, key1: null, key2: \"string\"}", + mac_format="25:8b:e7:e1:35:86", + password_format="IKpiCb6eWzdveK0", + phone_format="1-803-587-3283", + timezone_format="America/Argentina/Buenos_Aires", + unknown_format="string", + url_format="http://beneficial-inconvenience.net", + uuid_format="342442b8-aff3-42e0-b62d-e2e2d47a9bf1", + zipcode_format="09432", ), faker_strings=Shared::FakerStrings.new( - city="Port Carli", - iban="TN8700576009897281100717", + city="McLaughlinchester", + iban="TL232743267267003560099", id="", - i_pv4="141.21.132.133", - i_pv6="308b:b979:0237:4ea8:ee39:8480:0301:1d98", - account="81966519", - address="418 Maybelle Brooks", - amount="27.55", + i_pv4="208.201.244.247", + i_pv6="bd3a:d72b:208b:2c81:8830:8bb9:7902:374e", + account="65982652", + address="0010 Assunta Throughway", + amount="616.94", avatar="https://loremflickr.com/640/480", - color="turquoise", - comment="The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality", - company="Murazik, Kozey and Hirthe", - country="Equatorial Guinea", - country_code="LU", - currency="Congolese Franc", - datatype="bigint", - default="Dalasi", - description="Up-sized explicit frame", - directory="/home", - domain_name="warmhearted-buying.biz", - email_addr="Beulah.Franecki24@gmail.com", - extension="pdf", - filename="recovery.pdf", - filepath="/usr/share/powerfully.less", - filetype="application", - first_name="Geovany", - full_name="Roy Gottlieb", - gender="Cis", - job="International Metrics Administrator", - json="{trachoma: 6397, nick: null, android: \"Plastic Recumbent\"}", + color="tan", + comment="New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + company="Volkman LLC", + country="Nicaragua", + country_code="MO", + currency="Canadian Dollar", + datatype="point", + default="string", + description="Quality-focused full-range circuit", + directory="/usr/ports", + domain_name="klutzy-prostacyclin.com", + email_addr="Jalyn_Haley47@gmail.com", + extension="png", + filename="panel.jpeg", + filepath="/opt/share/yahoo.xul", + filetype="video", + first_name="Trystan", + full_name="Mrs. Lillian Bode", + gender="Cis female", + job="Future Solutions Specialist", + json="{key: 95274, key1: null, key2: \"string\"}", key="", - last_name="Kshlerin", - latitude="65.3520", - locale="zh_CN", - longitude="16.8742", - mac="fd:b6:ff:35:99:05", - manufacturer="Mazda", - material="Frozen", - middle_name="Emerson", + last_name="Renner", + latitude="-71.5944", + locale="sv", + longitude="-131.8166", + mac="e9:ee:6a:24:2a:1b", + manufacturer="Volvo", + material="Plastic", + middle_name="Sawyer", model="Mustang", - password="71wIwgEZJMTCRYg", - phone="1-466-307-0476", - pin="0584", - postal_code="07886", - price="452.00", - product="Small Steel Salad", - sex="female", - street="Christy Dam", - timezone="America/Regina", - unit="sievert", - url="http://repentant-haunt.name", - username="Heather_Mills48", - uuid="29e9f1c7-ed92-481f-955b-6ca1625b4c3a", + password="YAC_QiNrTzqbDz8", + phone="(650) 469-3026 x116", + pin="9497", + postal_code="64696", + price="25.00", + product="Recycled Granite Pants", + sex="male", + street="Lura Wells", + timezone="Africa/Nairobi", + unit="degree Celsius", + url="https://crooked-dulcimer.name", + username="Mable76", + uuid="16b919d6-51cd-4e97-81e2-5221b7b6969f", ), simple_object=Shared::SimpleObject.new( - any="wireless", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -651,114 +860,115 @@ req = Operations::UsageExamplePostRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=51222, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=165468, num=1.1, - num_opt_null=598.05, + num_opt_null=5944.32, str_="test", str_opt="testOptional", ), ), - bigint_parameter=284159, - bigint_parameter_optional=322202, - bigint_str_parameter="Automotive", - bigint_str_parameter_optional="focus Country", + bigint_parameter=924793, + bigint_parameter_optional=583481, + bigint_str_parameter="string", + bigint_str_parameter_optional="string", bool_parameter=false, - date_parameter=Date.parse("2022-01-13"), - date_time_parameter=DateTime.iso8601('2021-04-10T10:50:46.754Z'), - decimal_parameter=8924.18, - decimal_parameter_optional=5705.14, - decimal_str_parameter="navigating", - decimal_str_parameter_optional="Rap matrix South", - double_parameter=7223.13, + date_parameter=Date.parse("2023-12-21"), + date_time_default_parameter=DateTime.iso8601('2021-03-16T01:25:42.471Z'), + date_time_parameter=DateTime.iso8601('2023-05-24T07:01:53.326Z'), + decimal_parameter=4713.96, + decimal_parameter_optional=9349.54, + decimal_str_parameter="string", + decimal_str_parameter_optional="string", + double_parameter=8700.78, enum_parameter=Operations::UsageExamplePostEnumParameter::VALUE2, falsey_number_parameter=0, - float32_parameter=8430.91, - float_parameter=3767.71, - int64_parameter=733506, - int_parameter=892942, + float32_parameter=1341.86, + float_parameter=5429.24, + int64_parameter=101970, + int_parameter=938852, opt_enum_parameter=Operations::UsageExamplePostOptEnumParameter::VALUE3, - str_parameter="example 2", + str_parameter="example 3", ), request_body=Operations::UsageExamplePostRequestBody.new( faker_formatted_strings=Shared::FakerFormattedStrings.new( - address_format="4410 DuBuque Walks", - directory_format="/var/log", - domain_format="miserable-kitsch.name", - email_format="Ashton_Gleichner14@hotmail.com", - filename_format="buckinghamshire.mpg4", - filepath_format="/usr/X11R6/southwest_finally.teicorpus", + address_format="37376 Humberto Court", + directory_format="/net", + domain_format="rubbery-enrollment.net", + email_format="Marcella.Kuhic82@gmail.com", + filename_format="fiji.wav", + filepath_format="/etc/ppp/psst.ppam", image_format="https://loremflickr.com/640/480", - ipv4_format="247.146.81.33", - ipv6_format="dd53:801f:82a1:3cb7:01a0:b6cb:79b0:29b4", - json_format="{dagger: 68925, marketplace: null, pumpkinseed: \"Fantastic Meitnerium\"}", - mac_format="ed:b8:8c:0d:08:47", - password_format="28gh0c6QQu__V50", - phone_format="274.405.8666 x7999", - timezone_format="America/Chicago", - unknown_format="Account Bicycle actuating", - url_format="https://canine-raffle.name", - uuid_format="74f79621-f541-4963-9730-a31fb6a19fc4", - zipcode_format="78209-3433", + ipv4_format="88.90.151.95", + ipv6_format="51e9:386a:9f8f:4b14:b9d6:be98:7720:83fe", + json_format="{key: 53630, key1: null, key2: \"string\"}", + mac_format="79:c1:4d:82:11:db", + password_format="ibYyx3Won4RR_4m", + phone_format="500.706.4774 x6701", + timezone_format="Asia/Kuwait", + unknown_format="string", + url_format="https://extraneous-dagger.net", + uuid_format="8b35beed-b88c-40d0-8471-2404bc12b138", + zipcode_format="58660", ), faker_strings=Shared::FakerStrings.new( - city="Littelland", - iban="EE100672303322089427", + city="Cruzboro", + iban="FI1600143086790364", id="", - i_pv4="242.120.118.255", - i_pv6="a455:b9a8:6f75:4b2a:c5f6:c35a:0586:6747", - account="03994556", - address="7666 Johns Dale", - amount="568.13", + i_pv4="148.203.197.152", + i_pv6="e518:1ba7:4f79:621f:5419:63d7:30a3:1fb6", + account="61697367", + address="209 Hazel Freeway", + amount="313.41", avatar="https://loremflickr.com/640/480", - color="lavender", - comment="Boston's most advanced compression wear technology increases muscle oxygenation, stabilizes active muscles", - company="Anderson - Robel", - country="Bosnia and Herzegovina", - country_code="CM", - currency="Lempira", - datatype="double", - default="compressing digital", - description="Optimized 6th generation application", - directory="/opt/include", - domain_name="uncommon-nitrogen.biz", - email_addr="Shania.OKeefe22@yahoo.com", - extension="jpg", - filename="sedan_hand_flawless.mp2", - filepath="/home/transmit_mazda_bedfordshire.scq", - filetype="audio", - first_name="Blanca", - full_name="Leo Cummerata", - gender="Agender", - job="Global Marketing Strategist", - json="{queen: 69085, agenda: null, halt: \"Rubidium enim\"}", + color="lime", + comment="The Football Is Good For Training And Recreational Purposes", + company="Franey Inc", + country="Estonia", + country_code="MV", + currency="Singapore Dollar", + datatype="time", + default="string", + description="Integrated explicit artificial intelligence", + directory="/net", + domain_name="feline-signup.biz", + email_addr="Coralie72@yahoo.com", + extension="pdf", + filename="jittery_besides_account.htm", + filepath="/private/response_tesla_global.cat", + filetype="application", + first_name="Jailyn", + full_name="Michele Rice", + gender="Trans", + job="National Metrics Administrator", + json="{key: 78733, key1: null, key2: \"string\"}", key="", - last_name="Kulas", - latitude="18.8968", - locale="nb_NO", - longitude="-139.9224", - mac="9c:60:66:dc:6d:bd", - manufacturer="Land Rover", - material="Soft", - middle_name="Angel", - model="Element", - password="tjAGJwExOUrFWeV", - phone="344-358-5896 x6762", - pin="0743", - postal_code="53183", - price="991.00", - product="Elegant Steel Mouse", - sex="female", - street="Arthur Mills", - timezone="Asia/Seoul", + last_name="Fisher", + latitude="-23.5142", + locale="lv", + longitude="-161.4248", + mac="58:66:74:71:5f:e7", + manufacturer="Kia", + material="Granite", + middle_name="Nico", + model="Grand Cherokee", + password="kcH1VhIg2TEQP2U", + phone="238-626-8671", + pin="2569", + postal_code="91734-1821", + price="178.00", + product="Intelligent Soft Towels", + sex="male", + street="O'Kon Circle", + timezone="Europe/Bratislava", unit="kelvin", - url="https://spirited-welcome.com", - username="Jeromy74", - uuid="53940f18-f41d-411d-bd28-2d0a90ccf88d", + url="http://clear-rain.info", + username="Cassandra.Rolfson55", + uuid="2fbb06b4-9579-4b19-8606-6dc6dbd9c0be", ), simple_object=Shared::SimpleObject.new( - any="Sports", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -771,11 +981,11 @@ req = Operations::UsageExamplePostRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=916663, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=303425, num=1.1, - num_opt_null=8720.22, + num_opt_null=2928.25, str_="test", str_opt="testOptional", ), diff --git a/ruby-client-sdk/docs/sdks/globals/README.md b/ruby-client-sdk/docs/sdks/globals/README.md index dd1cb5079..0513470dc 100755 --- a/ruby-client-sdk/docs/sdks/globals/README.md +++ b/ruby-client-sdk/docs/sdks/globals/README.md @@ -19,6 +19,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::GlobalPathParameterGetRequest.new( @@ -35,9 +40,9 @@ end ### Parameters -| Parameter | Type | Required | Description | -| -------------------- | -------------------- | -------------------- | -------------------- | -| `global_path_param` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `global_path_param` | *Integer* | :heavy_minus_sign: | N/A | ### Response @@ -54,6 +59,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::GlobalsQueryParameterGetRequest.new( @@ -72,7 +82,7 @@ end | Parameter | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `global_query_param` | *T.nilable(String)* | :heavy_minus_sign: | N/A | +| `global_query_param` | *String* | :heavy_minus_sign: | N/A | ### Response diff --git a/ruby-client-sdk/docs/sdks/nested/README.md b/ruby-client-sdk/docs/sdks/nested/README.md index 85acae2ac..2da3a1149 100755 --- a/ruby-client-sdk/docs/sdks/nested/README.md +++ b/ruby-client-sdk/docs/sdks/nested/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.nested.get() diff --git a/ruby-client-sdk/docs/sdks/nestedfirst/README.md b/ruby-client-sdk/docs/sdks/nestedfirst/README.md index 9b556b32b..343e0081a 100755 --- a/ruby-client-sdk/docs/sdks/nestedfirst/README.md +++ b/ruby-client-sdk/docs/sdks/nestedfirst/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.nested_first.get() diff --git a/ruby-client-sdk/docs/sdks/nestedsecond/README.md b/ruby-client-sdk/docs/sdks/nestedsecond/README.md index fc21c7fec..c3220012e 100755 --- a/ruby-client-sdk/docs/sdks/nestedsecond/README.md +++ b/ruby-client-sdk/docs/sdks/nestedsecond/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.nested_second.get() diff --git a/ruby-client-sdk/docs/sdks/nestfirst/README.md b/ruby-client-sdk/docs/sdks/nestfirst/README.md index b4cc26529..e4235a9f9 100755 --- a/ruby-client-sdk/docs/sdks/nestfirst/README.md +++ b/ruby-client-sdk/docs/sdks/nestfirst/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.nest_first.get() diff --git a/ruby-client-sdk/docs/sdks/pagination/README.md b/ruby-client-sdk/docs/sdks/pagination/README.md index d386ca5e0..3d0594eaa 100755 --- a/ruby-client-sdk/docs/sdks/pagination/README.md +++ b/ruby-client-sdk/docs/sdks/pagination/README.md @@ -23,6 +23,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::PaginationCursorBodyRequestBody.new( @@ -61,6 +66,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::PaginationCursorParamsRequest.new( @@ -99,6 +109,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::LimitOffsetConfig.new( @@ -139,6 +154,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::PaginationLimitOffsetOffsetParamsRequest.new( @@ -160,8 +180,8 @@ end | Parameter | Type | Required | Description | | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `limit` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | -| `offset` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | +| `limit` | *Integer* | :heavy_minus_sign: | N/A | +| `offset` | *Integer* | :heavy_minus_sign: | N/A | | `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. | @@ -179,6 +199,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::LimitOffsetConfig.new( @@ -219,6 +244,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::PaginationLimitOffsetPageParamsRequest.new( diff --git a/ruby-client-sdk/docs/sdks/parameters/README.md b/ruby-client-sdk/docs/sdks/parameters/README.md index 9f8c4d10a..d6fc9c3c6 100755 --- a/ruby-client-sdk/docs/sdks/parameters/README.md +++ b/ruby-client-sdk/docs/sdks/parameters/README.md @@ -11,6 +11,7 @@ Endpoints for testing parameters. * [deep_object_query_params_object](#deep_object_query_params_object) * [duplicate_param](#duplicate_param) * [form_query_params_array](#form_query_params_array) +* [form_query_params_camel_object](#form_query_params_camel_object) * [form_query_params_map](#form_query_params_map) * [form_query_params_object](#form_query_params_object) * [form_query_params_primitive](#form_query_params_primitive) @@ -39,16 +40,21 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::DeepObjectQueryParamsMapRequest.new( query_params=Operations::DeepObjectQueryParamsMapRequest.new( map_param=.new{ - "quas": "Concrete", + "compress": "string", }, map_arr_param=.new{ - "necessitatibus": .new[ - "of", + "of": .new[ + "string", ], }, ), @@ -64,10 +70,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | -| `map_arr_param` | T::Hash[Symbol, T::Array<*String*>] | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | Example | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | +| `map_arr_param` | T::Hash[Symbol, T::Array<*String*>] | :heavy_minus_sign: | N/A | [object Object] | ### Response @@ -84,12 +90,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::DeepObjectQueryParamsObjectRequest.new( query_params=Operations::DeepObjectQueryParamsObjectRequest.new( obj_param=Shared::SimpleObject.new( - any="Jazz", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -102,11 +113,11 @@ req = Operations::DeepObjectQueryParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=425315, + int_opt_null=303001, num=1.1, - num_opt_null=1324.77, + num_opt_null=5571.55, str_="test", str_opt="testOptional", ), @@ -128,10 +139,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `obj_param` | [Shared::SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | -| `obj_arr_param` | [T.nilable(Operations::DeepObjectQueryParamsObjectObjArrParam)](../../models/operations/deepobjectqueryparamsobjectobjarrparam.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `obj_param` | [Shared::SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `obj_arr_param` | [Operations::DeepObjectQueryParamsObjectObjArrParam](../../models/operations/deepobjectqueryparamsobjectobjarrparam.md) | :heavy_minus_sign: | N/A | ### Response @@ -148,11 +159,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::DuplicateParamRequest.new( path_params=Operations::DuplicateParamRequest.new( - duplicate_param_request="arrogantly", + duplicate_param_request="string", ), ) @@ -185,6 +201,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::FormQueryParamsArrayRequest.new( @@ -219,6 +240,56 @@ end **[T.nilable(Operations::FormQueryParamsArrayResponse)](../../models/operations/formqueryparamsarrayresponse.md)** +## form_query_params_camel_object + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = Operations::FormQueryParamsCamelObjectRequest.new( + query_params=Operations::FormQueryParamsCamelObjectRequest.new( + obj_param_exploded=Operations::FormQueryParamsCamelObjectObjParamExploded.new( + item_count="10", + search_term="foo", + ), + obj_param=Operations::FormQueryParamsCamelObjectObjParam.new( + encoded_count="11", + encoded_term="bar", + ), + ), +) + +res = s.parameters.form_query_params_camel_object(req) + +if ! res.res.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `obj_param_exploded` | [Operations::FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `obj_param` | [Operations::FormQueryParamsCamelObjectObjParam](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | + + +### Response + +**[T.nilable(Operations::FormQueryParamsCamelObjectResponse)](../../models/operations/formqueryparamscamelobjectresponse.md)** + + ## form_query_params_map ### Example Usage @@ -228,15 +299,20 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::FormQueryParamsMapRequest.new( query_params=Operations::FormQueryParamsMapRequest.new( map_param=.new{ - "rerum": "provident", + "male": "string", }, map_param_exploded=.new{ - "optio": 355695, + "Reggae": 355695, }, ), ) @@ -251,10 +327,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | -| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | Example | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | [object Object] | +| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_minus_sign: | N/A | [object Object] | ### Response @@ -271,12 +347,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::FormQueryParamsObjectRequest.new( query_params=Operations::FormQueryParamsObjectRequest.new( obj_param_exploded=Shared::SimpleObject.new( - any="Web", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -289,16 +370,16 @@ req = Operations::FormQueryParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=87354, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=645228, num=1.1, - num_opt_null=883.91, + num_opt_null=7602.31, str_="test", str_opt="testOptional", ), obj_param=Shared::SimpleObject.new( - any="Associate", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -311,11 +392,11 @@ req = Operations::FormQueryParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=547098, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=973554, num=1.1, - num_opt_null=5763.58, + num_opt_null=873.54, str_="test", str_opt="testOptional", ), @@ -335,7 +416,7 @@ end | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | `obj_param_exploded` | [Shared::SimpleObject](../../models/shared/simpleobject.md) | :heavy_check_mark: | A simple object that uses all our supported primitive types and enums and has optional properties. | -| `obj_param` | [T.nilable(Shared::SimpleObject)](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| `obj_param` | [Shared::SimpleObject](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | ### Response @@ -352,6 +433,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::FormQueryParamsPrimitiveRequest.new( @@ -395,6 +481,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::FormQueryParamsRefParamObjectRequest.new( @@ -424,10 +515,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ref_obj_param` | [T.nilable(Shared::RefQueryParamObj)](../../models/shared/refqueryparamobj.md) | :heavy_minus_sign: | N/A | -| `ref_obj_param_exploded` | [T.nilable(Shared::RefQueryParamObjExploded)](../../models/shared/refqueryparamobjexploded.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `ref_obj_param` | [Shared::RefQueryParamObj](../../models/shared/refqueryparamobj.md) | :heavy_minus_sign: | N/A | +| `ref_obj_param_exploded` | [Shared::RefQueryParamObjExploded](../../models/shared/refqueryparamobjexploded.md) | :heavy_minus_sign: | N/A | ### Response @@ -444,6 +535,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::HeaderParamsArrayRequest.new( @@ -483,15 +579,20 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::HeaderParamsMapRequest.new( headers=Operations::HeaderParamsMapRequest.new( x_header_map=.new{ - "ipsum": "Kids", + "Ball": "string", }, x_header_map_explode=.new{ - "omnis": "sky", + "Account": "string", }, ), ) @@ -506,10 +607,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ------------------------- | ------------------------- | ------------------------- | ------------------------- | -| `x_header_map` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | -| `x_header_map_explode` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `x_header_map` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | +| `x_header_map_explode` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | ### Response @@ -526,12 +627,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::HeaderParamsObjectRequest.new( headers=Operations::HeaderParamsObjectRequest.new( x_header_obj=Shared::SimpleObject.new( - any="tolerance", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -544,16 +650,16 @@ req = Operations::HeaderParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=598385, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=590416, num=1.1, - num_opt_null=543.44, + num_opt_null=144.68, str_="test", str_opt="testOptional", ), x_header_obj_explode=Shared::SimpleObject.new( - any="Representative", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -566,11 +672,11 @@ req = Operations::HeaderParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=533235, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=54344, num=1.1, - num_opt_null=2526.18, + num_opt_null=6940.18, str_="test", str_opt="testOptional", ), @@ -607,6 +713,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::HeaderParamsPrimitiveRequest.new( @@ -650,15 +761,20 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::JsonQueryParamsObjectRequest.new( query_params=Operations::JsonQueryParamsObjectRequest.new( deep_obj_param=Shared::DeepObject.new( - any="Hybrid", + any="anyOf[0]", arr=.new[ Shared::SimpleObject.new( - any="weber", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -672,10 +788,10 @@ req = Operations::JsonQueryParamsObjectRequest.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=240276, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=740671, num=1.1, - num_opt_null=3309.36, + num_opt_null=8661.35, str_="test", str_opt="testOptional", ), @@ -683,8 +799,8 @@ req = Operations::JsonQueryParamsObjectRequest.new( bool=true, int=1, map=.new{ - "repellendus": Shared::SimpleObject.new( - any="until", + "damp": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -697,18 +813,18 @@ req = Operations::JsonQueryParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=852586, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=835122, num=1.1, - num_opt_null=6861.45, + num_opt_null=9111.59, str_="test", str_opt="testOptional", ), }, num=1.1, obj=Shared::SimpleObject.new( - any="synthesize", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -723,17 +839,17 @@ req = Operations::JsonQueryParamsObjectRequest.new( int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=420462, + int_opt_null=416807, num=1.1, - num_opt_null=5102.58, + num_opt_null=8525.86, str_="test", str_opt="testOptional", ), str_="test", - type="aside Autumn Ball", + type="string", ), simple_obj_param=Shared::SimpleObject.new( - any="transmitter", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -746,11 +862,11 @@ req = Operations::JsonQueryParamsObjectRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=626466, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=488845, num=1.1, - num_opt_null=3108.18, + num_opt_null=5405.85, str_="test", str_opt="testOptional", ), @@ -787,6 +903,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::MixedParametersCamelCaseRequest.new( @@ -838,6 +959,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::MixedParametersPrimitivesRequest.new( @@ -889,12 +1015,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::MixedQueryParamsRequest.new( query_params=Operations::MixedQueryParamsRequest.new( deep_object_param=Shared::SimpleObject.new( - any="female", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -907,16 +1038,16 @@ req = Operations::MixedQueryParamsRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=108812, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=89281, num=1.1, - num_opt_null=4161.9, + num_opt_null=2132.48, str_="test", str_opt="testOptional", ), form_param=Shared::SimpleObject.new( - any="Chair", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -930,15 +1061,15 @@ req = Operations::MixedQueryParamsRequest.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=387493, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=218100, num=1.1, - num_opt_null=5641.93, + num_opt_null=75.58, str_="test", str_opt="testOptional", ), json_param=Shared::SimpleObject.new( - any="weber", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -952,10 +1083,10 @@ req = Operations::MixedQueryParamsRequest.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=82918, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=387493, num=1.1, - num_opt_null=8839.4, + num_opt_null=5641.93, str_="test", str_opt="testOptional", ), @@ -993,12 +1124,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::PathParameterJsonRequest.new( path_params=Operations::PathParameterJsonRequest.new( json_obj=Shared::SimpleObject.new( - any="bluetooth", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1013,9 +1149,9 @@ req = Operations::PathParameterJsonRequest.new( int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=121334, + int_opt_null=355762, num=1.1, - num_opt_null=2775.09, + num_opt_null=5955.49, str_="test", str_opt="testOptional", ), @@ -1051,6 +1187,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::PipeDelimitedQueryParamsArrayRequest.new( @@ -1062,10 +1203,10 @@ req = Operations::PipeDelimitedQueryParamsArrayRequest.new( 1, ], map_param=.new{ - "vitae": "gold", + "Northeast": "string", }, obj_param=Shared::SimpleObject.new( - any="Corporate", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1078,11 +1219,11 @@ req = Operations::PipeDelimitedQueryParamsArrayRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=790307, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=161819, num=1.1, - num_opt_null=4843.4, + num_opt_null=722.43, str_="test", str_opt="testOptional", ), @@ -1099,12 +1240,12 @@ end ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `arr_param` | T::Array<*String*> | :heavy_minus_sign: | N/A | -| `arr_param_exploded` | T::Array<*Integer*> | :heavy_minus_sign: | N/A | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | -| `obj_param` | [T.nilable(Shared::SimpleObject)](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | +| Parameter | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `arr_param` | T::Array<*String*> | :heavy_minus_sign: | N/A | | +| `arr_param_exploded` | T::Array<*Integer*> | :heavy_minus_sign: | N/A | | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_minus_sign: | N/A | [object Object] | +| `obj_param` | [Shared::SimpleObject](../../models/shared/simpleobject.md) | :heavy_minus_sign: | A simple object that uses all our supported primitive types and enums and has optional properties. | | ### Response @@ -1121,6 +1262,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::SimplePathParameterArraysRequest.new( @@ -1160,15 +1306,20 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::SimplePathParameterMapsRequest.new( path_params=Operations::SimplePathParameterMapsRequest.new( map_param=.new{ - "nobis": "even", + "weber": "string", }, map_param_exploded=.new{ - "repudiandae": 157687, + "Sausages": 157687, }, ), ) @@ -1183,10 +1334,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | -| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | Example | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `map_param` | T::Hash[Symbol, *String*] | :heavy_check_mark: | N/A | [object Object] | +| `map_param_exploded` | T::Hash[Symbol, *Integer*] | :heavy_check_mark: | N/A | [object Object] | ### Response @@ -1203,12 +1354,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::SimplePathParameterObjectsRequest.new( path_params=Operations::SimplePathParameterObjectsRequest.new( obj_param=Shared::SimpleObject.new( - any="Ville", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1221,16 +1377,16 @@ req = Operations::SimplePathParameterObjectsRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=586554, + int_opt_null=384918, num=1.1, - num_opt_null=2558, + num_opt_null=9559.93, str_="test", str_opt="testOptional", ), obj_param_exploded=Shared::SimpleObject.new( - any="Research", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1243,11 +1399,11 @@ req = Operations::SimplePathParameterObjectsRequest.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=878658, + int_opt_null=678638, num=1.1, - num_opt_null=6926.2, + num_opt_null=5865.54, str_="test", str_opt="testOptional", ), @@ -1284,6 +1440,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::SimplePathParameterPrimitivesRequest.new( diff --git a/ruby-client-sdk/docs/sdks/requestbodies/README.md b/ruby-client-sdk/docs/sdks/requestbodies/README.md index 94c5ca235..b81d2de60 100755 --- a/ruby-client-sdk/docs/sdks/requestbodies/README.md +++ b/ruby-client-sdk/docs/sdks/requestbodies/README.md @@ -98,12 +98,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::NullableObject.new( request=Shared::NullableObject.new( - optional="Ergonomic", - required=463086, + optional="string", + required=302382, ), ) @@ -136,6 +141,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::NullableRequiredEmptyObjectPostRequestBody.new( @@ -175,6 +185,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::NullableRequiredPropertyPostRequestBody.new( @@ -217,17 +232,22 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::NullableRequiredSharedObjectPostRequestBody.new( request=Operations::NullableRequiredSharedObjectPostRequestBody.new( nullable_optional_obj=Shared::NullableObject.new( - optional="plus", - required=831837, + optional="string", + required=86533, ), nullable_required_obj=Shared::NullableObject.new( - optional="Electronic Northwest Northeast", - required=5767, + optional="string", + required=964394, ), ), ) @@ -261,12 +281,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ Shared::SimpleObject.new( - any="yowza", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -280,10 +305,10 @@ req = ::.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=729893, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=690448, num=1.1, - num_opt_null=9069.2, + num_opt_null=7926.4, str_="test", str_opt="testOptional", ), @@ -320,24 +345,29 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ Shared::SimpleObjectCamelCase.new( - any_val="Mercedes", - bigint_str_val="Chief online", - bigint_val=839695, + any_val="any example", + bigint_str_val="string", + bigint_val=828317, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=4835.37, + decimal_val=6846.04, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -378,12 +408,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ Shared::SimpleObject.new( - any="compress", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -397,10 +432,10 @@ req = ::.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=171819, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=441726, num=1.1, - num_opt_null=8537.6, + num_opt_null=9818.33, str_="test", str_opt="testOptional", ), @@ -436,24 +471,29 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ Shared::SimpleObjectCamelCase.new( - any_val="haptic", - bigint_str_val="Focused", - bigint_val=518527, + any_val="any example", + bigint_str_val="string", + bigint_val=484838, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=3073.55, + decimal_val=5504.23, enum_val=Shared::Enum::ONE, float32_val=2.2222222, int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -493,13 +533,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ .new[ Shared::SimpleObject.new( - any="Non", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -513,10 +558,10 @@ req = ::.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=920444, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=74811, num=1.1, - num_opt_null=2040.72, + num_opt_null=5257.68, str_="test", str_opt="testOptional", ), @@ -554,25 +599,30 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ .new[ Shared::SimpleObjectCamelCase.new( - any_val="seize", - bigint_str_val="Tools New Dollar", - bigint_val=979539, + any_val="any example", + bigint_str_val="string", + bigint_val=286989, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=2956.48, + decimal_val=4024.25, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::SIXTY_NINE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -614,12 +664,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ .new[ - "yellow", + "string", ], ], ) @@ -654,13 +709,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ .new{ - "quasi": Shared::SimpleObject.new( - any="Volvo", + "Southeast": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -673,11 +733,11 @@ req = ::.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=779622, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=633957, num=1.1, - num_opt_null=1652.31, + num_opt_null=7796.22, str_="test", str_opt="testOptional", ), @@ -715,25 +775,30 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ .new{ - "occaecati": Shared::SimpleObjectCamelCase.new( - any_val="Implementation", - bigint_str_val="benchmark olive", - bigint_val=49157, + "culpa": Shared::SimpleObjectCamelCase.new( + any_val="any example", + bigint_str_val="string", + bigint_val=209858, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=8369.47, + decimal_val=3788.16, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -775,11 +840,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ - "bit", + "string", ], ) @@ -813,14 +883,19 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::DeepObject.new( request=Shared::DeepObject.new( - any="medium", + any="anyOf[0]", arr=.new[ Shared::SimpleObject.new( - any="deliverables", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -834,10 +909,10 @@ req = Shared::DeepObject.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=69866, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=331525, num=1.1, - num_opt_null=9989.71, + num_opt_null=7388.48, str_="test", str_opt="testOptional", ), @@ -845,8 +920,8 @@ req = Shared::DeepObject.new( bool=true, int=1, map=.new{ - "asperiores": Shared::SimpleObject.new( - any="Colon", + "Diesel": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -859,18 +934,18 @@ req = Shared::DeepObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=653970, + int_opt_null=991506, num=1.1, - num_opt_null=4828.24, + num_opt_null=4260.62, str_="test", str_opt="testOptional", ), }, num=1.1, obj=Shared::SimpleObject.new( - any="Maine", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -884,15 +959,15 @@ req = Shared::DeepObject.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=887582, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=724689, num=1.1, - num_opt_null=1921.97, + num_opt_null=9926.81, str_="test", str_opt="testOptional", ), str_="test", - type="calculate Seamless", + type="string", ), ) @@ -925,26 +1000,31 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::DeepObjectCamelCase.new( request=Shared::DeepObjectCamelCase.new( - any_val="Cambridgeshire", + any_val="string", arr_val=.new[ Shared::SimpleObjectCamelCase.new( - any_val="Table", - bigint_str_val="South Northwest Mouse", - bigint_val=484195, + any_val="any example", + bigint_str_val="string", + bigint_val=66469, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=9223.07, + decimal_val=9629.09, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::SIXTY_NINE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -954,22 +1034,22 @@ req = Shared::DeepObjectCamelCase.new( ), ], bool_val=false, - int_val=327264, + int_val=942092, map_val=.new{ - "aliquid": Shared::SimpleObjectCamelCase.new( - any_val="Qatar", - bigint_str_val="deposit Account", - bigint_val=308169, + "South": Shared::SimpleObjectCamelCase.new( + any_val="any example", + bigint_str_val="string", + bigint_val=105266, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=2835.01, + decimal_val=4268.81, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::SIXTY_NINE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -978,21 +1058,21 @@ req = Shared::DeepObjectCamelCase.new( str_val="example", ), }, - num_val=9642.91, + num_val=4841.95, obj_val=Shared::SimpleObjectCamelCase.new( - any_val="Directives", - bigint_str_val="Chrysler ohm joule", - bigint_val=254659, + any_val="any example", + bigint_str_val="string", + bigint_val=922307, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=7531.85, + decimal_val=3547.55, enum_val=Shared::Enum::ONE, float32_val=2.2222222, int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -1000,8 +1080,8 @@ req = Shared::DeepObjectCamelCase.new( str_opt_val="optional example", str_val="example", ), - str_val="Falls", - type="Gloves Southwest", + str_val="string", + type="string", ), ) @@ -1034,12 +1114,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "nisi": Shared::SimpleObject.new( - any="soap", + "Bentley": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1052,11 +1137,11 @@ req = ::.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=901357, + int_opt_null=821581, num=1.1, - num_opt_null=8215.81, + num_opt_null=7650.52, str_="test", str_opt="testOptional", ), @@ -1093,24 +1178,29 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "aliquid": Shared::SimpleObjectCamelCase.new( - any_val="Southwest", - bigint_str_val="array Oak", - bigint_val=877576, + "archive": Shared::SimpleObjectCamelCase.new( + any_val="any example", + bigint_str_val="string", + bigint_val=990497, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=9955.63, + decimal_val=3388.78, enum_val=Shared::Enum::ONE, float32_val=2.2222222, int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::SIXTY_NINE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::THIRD, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -1151,12 +1241,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "hic": Shared::SimpleObject.new( - any="redundant", + "larder": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1170,10 +1265,10 @@ req = ::.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=744657, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=108451, num=1.1, - num_opt_null=5700.86, + num_opt_null=7446.57, str_="test", str_opt="testOptional", ), @@ -1209,24 +1304,29 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "distinctio": Shared::SimpleObjectCamelCase.new( - any_val="optimal", - bigint_str_val="Modern Borders Mexico", - bigint_val=745602, + "female": Shared::SimpleObjectCamelCase.new( + any_val="any example", + bigint_str_val="string", + bigint_val=738975, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=549.07, + decimal_val=9878.97, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::FIRST, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -1266,13 +1366,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "aliquid": .new[ + "Loan": .new[ Shared::SimpleObject.new( - any="Division", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1327,25 +1432,30 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "vero": .new[ + "nonstop": .new[ Shared::SimpleObjectCamelCase.new( - any_val="a", - bigint_str_val="Bicycle copy flustered", - bigint_val=229246, + any_val="any example", + bigint_str_val="string", + bigint_val=954170, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=4549.25, + decimal_val=7481.74, enum_val=Shared::Enum::ONE, float32_val=2.2222222, int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::ONE_HUNDRED_AND_EIGHTY_ONE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::THIRD, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -1387,13 +1497,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "animi": .new{ - "inventore": Shared::SimpleObject.new( - any="vice", + "Senior": .new{ + "vice": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1448,25 +1563,30 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "eos": .new{ - "ut": Shared::SimpleObjectCamelCase.new( - any_val="plum", - bigint_str_val="up Southeast", - bigint_val=807130, + "Home": .new{ + "plum": Shared::SimpleObjectCamelCase.new( + any_val="any example", + bigint_str_val="string", + bigint_val=600810, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=60.43, + decimal_val=5080.8, enum_val=Shared::Enum::ONE, float32_val=2.2222222, - int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::SIXTY_NINE, + int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::FIFTY_FIVE, int32_val=1, - int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::SECOND, + int_enum_val=Shared::SimpleObjectCamelCaseIntEnumVal::THIRD, int_opt_null_val=999999, int_val=999999, num_opt_null_val=1.1, @@ -1508,12 +1628,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "quisquam": .new{ - "molestiae": "collaboration", + "turquoise": .new{ + "collaboration": "string", }, }, ) @@ -1548,11 +1673,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "accusamus": "Salad", + "equally": "string", }, ) @@ -1586,11 +1716,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::SimpleObject.new( request=Shared::SimpleObject.new( - any="hack", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1603,11 +1738,11 @@ req = Shared::SimpleObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=279112, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=680661, num=1.1, - num_opt_null=7372.56, + num_opt_null=8809.47, str_="test", str_opt="testOptional", ), @@ -1642,11 +1777,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::SimpleObject.new( request=Shared::SimpleObject.new( - any="Hampton", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1659,11 +1799,11 @@ req = Shared::SimpleObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=708824, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=387512, num=1.1, - num_opt_null=2273.77, + num_opt_null=7875.71, str_="test", str_opt="testOptional", ), @@ -1698,18 +1838,23 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::SimpleObjectCamelCase.new( request=Shared::SimpleObjectCamelCase.new( - any_val="rich", - bigint_str_val="Direct Pound", - bigint_val=726659, + any_val="any example", + bigint_str_val="string", + bigint_val=281697, bool_opt_val=true, bool_val=true, date_time_val=DateTime.iso8601('2020-01-01T00:00:00Z'), date_val=Date.parse("2020-01-01"), - decimal_val=6907.97, + decimal_val=9976.38, enum_val=Shared::Enum::ONE, float32_val=2.2222222, int32_enum_val=Shared::SimpleObjectCamelCaseInt32EnumVal::SIXTY_NINE, @@ -1753,46 +1898,51 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostComplexNumberTypesRequest.new( path_params=Operations::RequestBodyPostComplexNumberTypesRequest.new( complex_number_types=Shared::ComplexNumberTypes.new( bigint=765757, - bigint_str="Metal calculating Lamborghini", - decimal=9373.95, - decimal_str="Royce", + bigint_str="string", + decimal=9344.87, + decimal_str="string", ), - path_big_int=958218, - path_big_int_str="male ASCII", - path_decimal=1464.39, - path_decimal_str="Lancaster hertz young", - query_big_int=338976, - query_big_int_str="Northwest", - query_decimal=3970.19, - query_decimal_str="Toyota", + path_big_int=250514, + path_big_int_str="string", + path_decimal=6831.11, + path_decimal_str="string", + query_big_int=500580, + query_big_int_str="string", + query_decimal=7419.03, + query_decimal_str="string", ), query_params=Operations::RequestBodyPostComplexNumberTypesRequest.new( complex_number_types=Shared::ComplexNumberTypes.new( - bigint=434341, - bigint_str="azure Qatar", - decimal=9904.31, - decimal_str="Trigender exercitationem Industrial", + bigint=822852, + bigint_str="string", + decimal=5491.78, + decimal_str="string", ), - path_big_int=776805, - path_big_int_str="challenge", - path_decimal=1174.43, - path_decimal_str="Dubnium Operations 24/7", - query_big_int=34192, - query_big_int_str="Shoes robust relationships", - query_decimal=9367.71, - query_decimal_str="Utah Falls afterwards", + path_big_int=937395, + path_big_int_str="string", + path_decimal=1789.06, + path_decimal_str="string", + query_big_int=826068, + query_big_int_str="string", + query_decimal=8253.58, + query_decimal_str="string", ), complex_number_types=Shared::ComplexNumberTypes.new( - bigint=29799, - bigint_str="Mountain", - decimal=6351.45, - decimal_str="Diesel orange", + bigint=773157, + bigint_str="string", + decimal=9582.18, + decimal_str="string", ), ) @@ -1825,38 +1975,43 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::DefaultsAndConsts.new( request=Shared::DefaultsAndConsts.new( const_big_int=559205, - const_big_int_str="Chief", + const_big_int_str="string", const_bool=false, - const_date=Date.parse("2021-05-03"), - const_date_time=DateTime.iso8601('2023-07-14T17:39:00.984Z'), - const_decimal=2995.45, - const_decimal_str="invoice Cotton", - const_enum_int=Shared::DefaultsAndConstsConstEnumInt::TWO, - const_enum_str=Shared::DefaultsAndConstsConstEnumStr::ONE, - const_int=788517, - const_num=639.73, - const_str="Dong Dysprosium", - const_str_null="Kids quarrelsome", - default_big_int=374051, - default_big_int_str="incubate Lane Music", + const_date=Date.parse("2021-09-13"), + const_date_time=DateTime.iso8601('2022-12-15T04:16:08.794Z'), + const_decimal=9160.69, + const_decimal_str="string", + const_enum_int=Shared::DefaultsAndConstsConstEnumInt::ONE, + const_enum_str=Shared::DefaultsAndConstsConstEnumStr::THREE, + const_int=299545, + const_num=4612.63, + const_str="string", + const_str_null="string", + default_big_int=450379, + default_big_int_str="string", default_bool=false, - default_date=Date.parse("2023-07-16"), - default_date_time=DateTime.iso8601('2021-06-28T10:07:28.276Z'), - default_decimal=3014.85, - default_decimal_str="South Hafnium amid", - default_enum_int=Shared::DefaultsAndConstsDefaultEnumInt::THREE, + default_date=Date.parse("2023-04-28"), + default_date_time=DateTime.iso8601('2021-10-01T11:08:55.738Z'), + default_decimal=4585.94, + default_decimal_str="string", + default_enum_int=Shared::DefaultsAndConstsDefaultEnumInt::TWO, default_enum_str=Shared::DefaultsAndConstsDefaultEnumStr::ONE, - default_int=77435, - default_num=6102.85, - default_str="Electric Diesel", - default_str_nullable="silver Central", - default_str_optional="Gasoline Pines boo", - normal_field="free", + default_int=788517, + default_num=639.73, + default_str="string", + default_str_nullable="string", + default_str_optional="string", + normal_field="string", ), ) @@ -1889,6 +2044,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostEmptyObjectRequestBody.new( @@ -1927,14 +2087,19 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::DeepObject.new( request=Shared::DeepObject.new( - any="and", + any="anyOf[0]", arr=.new[ Shared::SimpleObject.new( - any="South", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1949,9 +2114,9 @@ req = Shared::DeepObject.new( int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=486156, + int_opt_null=14993, num=1.1, - num_opt_null=737.95, + num_opt_null=6785.62, str_="test", str_opt="testOptional", ), @@ -1959,8 +2124,8 @@ req = Shared::DeepObject.new( bool=true, int=1, map=.new{ - "nisi": Shared::SimpleObject.new( - any="lazy", + "Road": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1973,18 +2138,18 @@ req = Shared::DeepObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=736071, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=863312, num=1.1, - num_opt_null=5899.47, + num_opt_null=4808.84, str_="test", str_opt="testOptional", ), }, num=1.1, obj=Shared::SimpleObject.new( - any="Northeast", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -1997,16 +2162,16 @@ req = Shared::DeepObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=15330, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=736071, num=1.1, - num_opt_null=6190.57, + num_opt_null=5899.47, str_="test", str_opt="testOptional", ), str_="test", - type="Hybrid female", + type="string", ), ) @@ -2039,11 +2204,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "nisi": "Sports", + "complexity": "string", }, ) @@ -2076,11 +2246,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::SimpleObject.new( request=Shared::SimpleObject.new( - any="Product", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -2093,11 +2268,11 @@ req = Shared::SimpleObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=693294, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=5565, num=1.1, - num_opt_null=2022.98, + num_opt_null=8893.53, str_="test", str_opt="testOptional", ), @@ -2132,6 +2307,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2169,6 +2349,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2206,11 +2391,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ - "Group East incentivize", + "string", ], ) @@ -2243,6 +2433,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2278,10 +2473,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="pixel gray", + request="string", ) res = s.request_bodies.request_body_post_json_data_types_big_int_str(req) @@ -2313,6 +2513,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2348,6 +2553,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2383,6 +2593,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2418,6 +2633,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2453,10 +2673,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="gadzooks Luxurious", + request="string", ) res = s.request_bodies.request_body_post_json_data_types_decimal_str(req) @@ -2488,6 +2713,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2523,6 +2753,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2558,6 +2793,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2593,11 +2833,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "doloremque": "York firewall", + "Nepal": "string", }, ) @@ -2630,11 +2875,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "quas": DateTime.iso8601('2022-09-29T16:39:16.558Z'), + "quantify": DateTime.iso8601('2022-02-12T21:23:09.538Z'), }, ) @@ -2667,11 +2917,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "exercitationem": 4182.45, + "Inverse": 9134.24, }, ) @@ -2704,6 +2959,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -2739,10 +2999,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Agent bypassing leverage", + request="string", ) res = s.request_bodies.request_body_post_json_data_types_string(req) @@ -2774,11 +3039,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::SimpleObject.new( request=Shared::SimpleObject.new( - any="Unbranded", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -2791,11 +3061,11 @@ req = Shared::SimpleObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=414559, + int_opt_null=587803, num=1.1, - num_opt_null=462.04, + num_opt_null=9724.14, str_="test", str_opt="testOptional", ), @@ -2830,13 +3100,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.new( request=Operations::RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.new( bool=false, num=3558.41, - str_="South expiate aha", + str_="string", ), ) @@ -2869,6 +3144,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesSplitParamFormRequest.new( @@ -2876,14 +3156,14 @@ req = Operations::RequestBodyPostMultipleContentTypesSplitParamFormRequest.new( request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.new( bool3=false, num3=8693.24, - str3="Compatible", + str3="string", ), - param_str="AI strategic invoice", + param_str="string", ), request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.new( bool3=false, - num3=8063.58, - str3="beneath", + num3=1802.67, + str3="string", ), ) @@ -2917,6 +3197,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesSplitParamJsonRequest.new( @@ -2924,14 +3209,14 @@ req = Operations::RequestBodyPostMultipleContentTypesSplitParamJsonRequest.new( request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.new( bool=false, num=9771.91, - str_="South networks", + str_="string", ), - param_str="Taka Gardens quantify", + param_str="string", ), request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.new( bool=false, - num=5098.37, - str_="Electric Coupe", + num=5784.1, + str_="string", ), ) @@ -2965,6 +3250,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.new( @@ -2972,14 +3262,14 @@ req = Operations::RequestBodyPostMultipleContentTypesSplitParamMultipartRequest. request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.new( bool2=false, num2=7000.76, - str2="Ball Southwest", + str2="string", ), - param_str="East", + param_str="string", ), request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.new( bool2=false, - num2=4672.9, - str2="facilitate Massachusetts", + num2=6115.78, + str2="string", ), ) @@ -3013,13 +3303,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.new( request=Operations::RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.new( bool3=false, num3=7842.07, - str3="Cab encryption SMTP", + str3="string", ), ) @@ -3052,13 +3347,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesSplitApplicationJSON.new( request=Operations::RequestBodyPostMultipleContentTypesSplitApplicationJSON.new( bool=false, num=2445.56, - str_="hew frictionless Hybrid", + str_="string", ), ) @@ -3091,13 +3391,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPostMultipleContentTypesSplitMultipartFormData.new( request=Operations::RequestBodyPostMultipleContentTypesSplitMultipartFormData.new( bool2=false, num2=2079.2, - str2="cyan", + str2="string", ), ) @@ -3130,10 +3435,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Strategist", + request="string", ) res = s.request_bodies.request_body_post_not_nullable_not_required_string_body(req) @@ -3165,11 +3475,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new[ - "simple", + "string", ], ) @@ -3202,11 +3517,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "omnis": "virtual", + "Intersex": "string", }, ) @@ -3239,10 +3559,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Gibraltar", + request="string", ) res = s.request_bodies.request_body_post_nullable_not_required_string_body(req) @@ -3274,10 +3599,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Bacon", + request="string", ) res = s.request_bodies.request_body_post_nullable_required_string_body(req) @@ -3309,6 +3639,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( @@ -3344,14 +3679,19 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPutBytesWithParamsRequest.new( query_params=Operations::RequestBodyPutBytesWithParamsRequest.new( request_body="o%jIWe4_P6".encode(), - query_string_param="Loan", + query_string_param="string", ), - request_body="J30)!E4iK3".encode(), + request_body="$GrQJ30)!E".encode(), ) res = s.request_bodies.request_body_put_bytes_with_params(req) @@ -3384,14 +3724,19 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::DeepObject.new( request=Shared::DeepObject.new( - any="Chevrolet", + any="anyOf[0]", arr=.new[ Shared::SimpleObject.new( - any="noodles", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -3405,10 +3750,10 @@ req = Shared::DeepObject.new( int=1, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=509676, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=951052, num=1.1, - num_opt_null=3459.56, + num_opt_null=5976.82, str_="test", str_opt="testOptional", ), @@ -3416,8 +3761,8 @@ req = Shared::DeepObject.new( bool=true, int=1, map=.new{ - "atque": Shared::SimpleObject.new( - any="Paradigm", + "Rutherfordium": Shared::SimpleObject.new( + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -3432,16 +3777,16 @@ req = Shared::DeepObject.new( int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=779552, + int_opt_null=539713, num=1.1, - num_opt_null=4828.21, + num_opt_null=6305.02, str_="test", str_opt="testOptional", ), }, num=1.1, obj=Shared::SimpleObject.new( - any="Health", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -3454,16 +3799,16 @@ req = Shared::DeepObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=989301, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=354579, num=1.1, - num_opt_null=9969, + num_opt_null=7795.52, str_="test", str_opt="testOptional", ), str_="test", - type="Technetium while Androgynous", + type="string", ), ) @@ -3496,13 +3841,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPutMultipartDifferentFileNameRequestBody.new( request=Operations::RequestBodyPutMultipartDifferentFileNameRequestBody.new( different_file_name=Operations::RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.new( content="Y}'H[5/Z[,".encode(), - different_file_name="West Tunisian", + different_file_name="string", ), ), ) @@ -3536,13 +3886,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPutMultipartFileRequestBody.new( request=Operations::RequestBodyPutMultipartFileRequestBody.new( file=Operations::RequestBodyPutMultipartFileRequestBodyFile.new( content="OJa,v`.FW-".encode(), - file="bandwidth Sedan", + file="string", ), ), ) @@ -3576,11 +3931,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::SimpleObject.new( request=Shared::SimpleObject.new( - any="customized", + any="any", bigint=8821239038968084, bigint_str="9223372036854775808", bool=true, @@ -3593,11 +3953,11 @@ req = Shared::SimpleObject.new( float32=1.1, int=1, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=689661, + int_opt_null=544005, num=1.1, - num_opt_null=7932.12, + num_opt_null=7648.28, str_="test", str_opt="testOptional", ), @@ -3632,10 +3992,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="redundant facilis before", + request="string", ) res = s.request_bodies.request_body_put_string(req) @@ -3667,14 +4032,19 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RequestBodyPutStringWithParamsRequest.new( query_params=Operations::RequestBodyPutStringWithParamsRequest.new( - request_body="female phew", - query_string_param="female", + request_body="string", + query_string_param="string", ), - request_body="Luxurious Generic", + request_body="string", ) res = s.request_bodies.request_body_put_string_with_params(req) @@ -3707,6 +4077,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::ReadWriteObjectInput.new( @@ -3747,6 +4122,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::ReadOnlyObjectInput.new( @@ -3783,10 +4163,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Kids", + request="string", ) res = s.request_bodies.request_body_read_only_union(req) @@ -3819,10 +4204,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="thoughtfully", + request="string", ) res = s.request_bodies.request_body_read_write_only_union(req) @@ -3855,13 +4245,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::WriteOnlyObject.new( request=Shared::WriteOnlyObject.new( bool=false, num=3888.42, - string="Herminio", + string="string", ), ) @@ -3895,13 +4290,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::WriteOnlyObject.new( request=Shared::WriteOnlyObject.new( bool=false, num=3867.69, - string="quas", + string="string", ), ) @@ -3935,10 +4335,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Fitness", + request="string", ) res = s.request_bodies.request_body_write_only_union(req) diff --git a/ruby-client-sdk/docs/sdks/resource/README.md b/ruby-client-sdk/docs/sdks/resource/README.md index 8aa7b6a7b..bacd2748c 100755 --- a/ruby-client-sdk/docs/sdks/resource/README.md +++ b/ruby-client-sdk/docs/sdks/resource/README.md @@ -18,13 +18,18 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::CreateFileRequestBody.new( request=Operations::CreateFileRequestBody.new( file=Operations::CreateFileRequestBodyFile.new( content="`'$Z`(L/RH".encode(), - file="Rap National", + file="string", ), ), ) @@ -58,6 +63,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::ExampleResource.new( @@ -66,26 +76,26 @@ req = Shared::ExampleResource.new( 1867.47, ], array_of_string=.new[ - "Sodium", + "string", ], chocolates=.new[ Shared::ExampleResourceChocolates.new( - description="Cross-group didactic system engine", + description="Re-engineered asynchronous array", ), ], - created_at=DateTime.iso8601('2022-04-19T19:55:28.761Z'), - enum_number=Shared::ExampleResourceEnumNumber::ONE, - enum_str=Shared::ExampleResourceEnumStr::ONE, + created_at=DateTime.iso8601('2021-10-25T14:40:21.269Z'), + enum_number=Shared::ExampleResourceEnumNumber::THREE, + enum_str=Shared::ExampleResourceEnumStr::TWO, id="", map_of_integer=.new{ - "reiciendis": 154578, + "Florida": 967142, }, map_of_string=.new{ - "quasi": "utilize", + "Elmo": "string", }, - name="online", - updated_at=DateTime.iso8601('2021-12-27T00:23:19.559Z'), - vehicle="oh", + name="string", + updated_at=DateTime.iso8601('2022-06-22T17:48:04.355Z'), + vehicle="string", ), ) @@ -118,11 +128,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::DeleteResourceRequest.new( path_params=Operations::DeleteResourceRequest.new( - resource_id="Bicycle Home", + resource_id="string", ), ) @@ -155,11 +170,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::GetResourceRequest.new( path_params=Operations::GetResourceRequest.new( - resource_id="Pop why", + resource_id="string", ), ) @@ -192,11 +212,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::UpdateResourceRequest.new( path_params=Operations::UpdateResourceRequest.new( - resource_id="Executive Maserati", + resource_id="string", ), ) diff --git a/ruby-client-sdk/docs/sdks/responsebodies/README.md b/ruby-client-sdk/docs/sdks/responsebodies/README.md index dbbbb6087..156e22981 100755 --- a/ruby-client-sdk/docs/sdks/responsebodies/README.md +++ b/ruby-client-sdk/docs/sdks/responsebodies/README.md @@ -9,6 +9,7 @@ Endpoints for testing response bodies. * [response_body_additional_properties_complex_numbers_post](#response_body_additional_properties_complex_numbers_post) * [response_body_additional_properties_date_post](#response_body_additional_properties_date_post) +* [response_body_additional_properties_object_post](#response_body_additional_properties_object_post) * [response_body_additional_properties_post](#response_body_additional_properties_post) * [response_body_bytes_get](#response_body_bytes_get) * [response_body_empty_with_headers](#response_body_empty_with_headers) @@ -27,11 +28,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "nihil": "stitch", + "ASCII": "string", }, ) @@ -64,11 +70,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "ab": Date.parse("2021-08-06"), + "Bedfordshire": Date.parse("2021-04-22"), }, ) @@ -92,6 +103,69 @@ end **[T.nilable(Operations::ResponseBodyAdditionalPropertiesDatePostResponse)](../../models/operations/responsebodyadditionalpropertiesdatepostresponse.md)** +## response_body_additional_properties_object_post + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = ::.new( + request=.new{ + "variant": Shared::SimpleObject.new( + any="any", + bigint=8821239038968084, + bigint_str="9223372036854775808", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00.000000001Z'), + decimal=3.141592653589793, + decimal_str="3.14159265358979344719667586", + enum=Shared::Enum::ONE, + float32=1.1, + int=1, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=957109, + num=1.1, + num_opt_null=7193.38, + str_="test", + str_opt="testOptional", + ), + }, +) + +res = s.response_bodies.response_body_additional_properties_object_post(req) + +if ! res.response_body_additional_properties_object_post_200_application_json_object.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `request` | [T::Hash[Symbol, Shared::SimpleObject]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[T.nilable(Operations::ResponseBodyAdditionalPropertiesObjectPostResponse)](../../models/operations/responsebodyadditionalpropertiesobjectpostresponse.md)** + + ## response_body_additional_properties_post ### Example Usage @@ -101,11 +175,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( request=.new{ - "exercitationem": "Bronze", + "Ergonomic": "string", }, ) @@ -138,6 +217,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.response_bodies.response_body_bytes_get() @@ -163,12 +247,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::ResponseBodyEmptyWithHeadersRequest.new( query_params=Operations::ResponseBodyEmptyWithHeadersRequest.new( x_number_header=1751.8, - x_string_header="tensely", + x_string_header="string", ), ) @@ -202,6 +291,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.response_bodies.response_body_optional_get() @@ -233,6 +327,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.response_bodies.response_body_read_only() @@ -264,6 +363,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.response_bodies.response_body_string_get() @@ -289,6 +393,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.response_bodies.response_body_xml_get() @@ -314,15 +423,20 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::ObjWithZeroValueComplexTypePtrs.new( request=Shared::ObjWithZeroValueComplexTypePtrs.new( bigint=438531, - bigint_str="concrete input", + bigint_str="string", date=Date.parse("2020-01-01"), date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - decimal=6267.89, + decimal=4843.38, ), ) diff --git a/ruby-client-sdk/docs/sdks/retries/README.md b/ruby-client-sdk/docs/sdks/retries/README.md index e3e269394..5a4f0114b 100755 --- a/ruby-client-sdk/docs/sdks/retries/README.md +++ b/ruby-client-sdk/docs/sdks/retries/README.md @@ -18,12 +18,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::RetriesGetRequest.new( query_params=Operations::RetriesGetRequest.new( - request_id="in", - num_retries=64545, + request_id="string", + num_retries=75342, ), ) @@ -40,7 +45,7 @@ end | Parameter | Type | Required | Description | | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | | `request_id` | *String* | :heavy_check_mark: | N/A | -| `num_retries` | *T.nilable(Integer)* | :heavy_minus_sign: | N/A | +| `num_retries` | *Integer* | :heavy_minus_sign: | N/A | | `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. | diff --git a/ruby-client-sdk/docs/sdks/sdk/README.md b/ruby-client-sdk/docs/sdks/sdk/README.md index cdf19f048..3e868e842 100755 --- a/ruby-client-sdk/docs/sdks/sdk/README.md +++ b/ruby-client-sdk/docs/sdks/sdk/README.md @@ -22,10 +22,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Passenger Canadian", + request="string", ) res = s.sdk.put_anything_ignored_generation(req) @@ -57,6 +62,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.sdk.response_body_json_get() diff --git a/ruby-client-sdk/docs/sdks/second/README.md b/ruby-client-sdk/docs/sdks/second/README.md index cc9c26d7e..7f50f33de 100755 --- a/ruby-client-sdk/docs/sdks/second/README.md +++ b/ruby-client-sdk/docs/sdks/second/README.md @@ -14,6 +14,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.second.get() diff --git a/ruby-client-sdk/docs/sdks/servers/README.md b/ruby-client-sdk/docs/sdks/servers/README.md index f5b45cd9e..ce4143789 100755 --- a/ruby-client-sdk/docs/sdks/servers/README.md +++ b/ruby-client-sdk/docs/sdks/servers/README.md @@ -23,6 +23,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.servers.select_global_server() @@ -50,6 +55,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.servers.select_server_with_id() @@ -81,6 +91,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.servers.server_with_protocol_template() @@ -112,6 +127,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.servers.server_with_templates() @@ -143,6 +163,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.servers.server_with_templates_global() @@ -168,6 +193,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.servers.servers_by_id_with_templates() diff --git a/ruby-client-sdk/docs/sdks/telemetry/README.md b/ruby-client-sdk/docs/sdks/telemetry/README.md index fddaa2c66..b78c7f28d 100755 --- a/ruby-client-sdk/docs/sdks/telemetry/README.md +++ b/ruby-client-sdk/docs/sdks/telemetry/README.md @@ -19,11 +19,16 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Operations::TelemetrySpeakeasyUserAgentGetRequest.new( headers=Operations::TelemetrySpeakeasyUserAgentGetRequest.new( - user_agent="Avon Bicycle boliviano", + user_agent="string", ), ) @@ -56,6 +61,11 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) res = s.telemetry.telemetry_user_agent_get() diff --git a/ruby-client-sdk/docs/sdks/unions/README.md b/ruby-client-sdk/docs/sdks/unions/README.md index 1376a7d5e..5b9d0aefe 100755 --- a/ruby-client-sdk/docs/sdks/unions/README.md +++ b/ruby-client-sdk/docs/sdks/unions/README.md @@ -17,6 +17,8 @@ Endpoints for testing union types. * [strongly_typed_one_of_post](#strongly_typed_one_of_post) * [typed_object_nullable_one_of_post](#typed_object_nullable_one_of_post) * [typed_object_one_of_post](#typed_object_one_of_post) +* [union_date_null](#union_date_null) +* [union_date_time_null](#union_date_time_null) * [weakly_typed_one_of_post](#weakly_typed_one_of_post) ## flattened_typed_object_post @@ -28,10 +30,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Legacy", + request="string", ) res = s.unions.flattened_typed_object_post(req) @@ -63,10 +70,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="SAS", + request="string", ) res = s.unions.mixed_type_one_of_post(req) @@ -98,16 +110,21 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::NullableOneOfRefInObject.new( request=Shared::NullableOneOfRefInObject.new( nullable_one_of_one=Shared::TypedObject1.new( type=Shared::TypedObject1Type::OBJ1, - value="Global Alexandria administration", + value="string", ), - nullable_one_of_two="Arbor", - one_of_one="PCI", + nullable_one_of_two="string", + one_of_one="string", ), ) @@ -140,10 +157,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="deliquesce", + request="string", ) res = s.unions.nullable_one_of_schema_post(req) @@ -175,12 +197,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::NullableOneOfTypeInObject.new( request=Shared::NullableOneOfTypeInObject.new( nullable_one_of_one=false, - nullable_one_of_two="Smart", + nullable_one_of_two="string", one_of_one=false, ), ) @@ -214,12 +241,17 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = Shared::TypedObject1.new( request=Shared::TypedObject1.new( type=Shared::TypedObject1Type::OBJ1, - value="Bike", + value="string", ), ) @@ -252,10 +284,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Grocery", + request="string", ) res = s.unions.primitive_type_one_of_post(req) @@ -287,10 +324,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="spicy", + request="string", ) res = s.unions.strongly_typed_one_of_post(req) @@ -322,10 +364,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Agender", + request="string", ) res = s.unions.typed_object_nullable_one_of_post(req) @@ -357,10 +404,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="shrivel", + request="string", ) res = s.unions.typed_object_one_of_post(req) @@ -383,6 +435,86 @@ end **[T.nilable(Operations::TypedObjectOneOfPostResponse)](../../models/operations/typedobjectoneofpostresponse.md)** +## union_date_null + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = ::.new( + request=Date.parse("2022-11-25"), +) + +res = s.unions.union_date_null(req) + +if ! res.res.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [Date](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[T.nilable(Operations::UnionDateNullResponse)](../../models/operations/uniondatenullresponse.md)** + + +## union_date_time_null + +### Example Usage + +```ruby +require_relative openapi + + +s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) + + +req = ::.new( + request=DateTime.iso8601('2022-04-12T19:39:53.907Z'), +) + +res = s.unions.union_date_time_null(req) + +if ! res.res.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [DateTime](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[T.nilable(Operations::UnionDateTimeNullResponse)](../../models/operations/uniondatetimenullresponse.md)** + + ## weakly_typed_one_of_post ### Example Usage @@ -392,10 +524,15 @@ require_relative openapi s = OpenApiSDK::SDK.new +s.config_security( + security=Shared::Security.new( + api_key_auth=.foo"Token YOUR_API_KEY", + ) +) req = ::.new( - request="Unbranded", + request="string", ) res = s.unions.weakly_typed_one_of_post(req) diff --git a/ruby-client-sdk/files.gen b/ruby-client-sdk/files.gen index afc2a6520..222cbb5b6 100755 --- a/ruby-client-sdk/files.gen +++ b/ruby-client-sdk/files.gen @@ -27,6 +27,46 @@ Gemfile Rakefile lib/sdk/utils/metadata_fields.rb lib/sdk/utils/utils.rb +sorbet/config +sorbet/rbi/annotations/.gitattributes +sorbet/rbi/annotations/faraday.rbi +sorbet/rbi/annotations/rainbow.rbi +sorbet/rbi/gems/.gitattributes +sorbet/rbi/gems/ast@2.4.2.rbi +sorbet/rbi/gems/base64@0.1.1.rbi +sorbet/rbi/gems/erubi@1.12.0.rbi +sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +sorbet/rbi/gems/faraday-net_http@3.0.2.rbi +sorbet/rbi/gems/faraday@2.7.11.rbi +sorbet/rbi/gems/json@2.6.3.rbi +sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +sorbet/rbi/gems/minitest@5.20.0.rbi +sorbet/rbi/gems/multipart-post@2.3.0.rbi +sorbet/rbi/gems/netrc@0.11.0.rbi +sorbet/rbi/gems/parallel@1.23.0.rbi +sorbet/rbi/gems/parser@3.2.2.4.rbi +sorbet/rbi/gems/prettier_print@1.2.1.rbi +sorbet/rbi/gems/racc@1.7.1.rbi +sorbet/rbi/gems/rack@3.0.8.rbi +sorbet/rbi/gems/rainbow@3.1.1.rbi +sorbet/rbi/gems/rake@13.0.6.rbi +sorbet/rbi/gems/rbi@0.1.1.rbi +sorbet/rbi/gems/regexp_parser@2.8.2.rbi +sorbet/rbi/gems/rexml@3.2.6.rbi +sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +sorbet/rbi/gems/rubocop@1.57.1.rbi +sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +sorbet/rbi/gems/spoom@1.2.4.rbi +sorbet/rbi/gems/syntax_tree@6.2.0.rbi +sorbet/rbi/gems/tapioca@0.11.9.rbi +sorbet/rbi/gems/thor@1.3.0.rbi +sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +sorbet/rbi/gems/yard@0.9.34.rbi +sorbet/rbi/gems/yarp@0.13.0.rbi +sorbet/tapioca/config.yml +sorbet/tapioca/require.rb openapi.gemspec lib/sdk/models/operations/apikeyauth.rb lib/sdk/models/operations/apikeyauthglobal.rb @@ -60,6 +100,9 @@ lib/sdk/models/operations/inlinebodyandparamnoconflict.rb lib/sdk/models/operations/anchortypesget.rb lib/sdk/models/operations/arraycircularreferenceget.rb lib/sdk/models/operations/circularreferenceget.rb +lib/sdk/models/operations/dateparamwithdefault.rb +lib/sdk/models/operations/datetimeparamwithdefault.rb +lib/sdk/models/operations/decimalparamwithdefault.rb lib/sdk/models/operations/deprecatedfieldinschemapost.rb lib/sdk/models/operations/deprecatedobjectinschemaget.rb lib/sdk/models/operations/deprecatedoperationnocommentsget.rb @@ -90,6 +133,7 @@ lib/sdk/models/operations/deepobjectqueryparamsmap.rb lib/sdk/models/operations/deepobjectqueryparamsobject.rb lib/sdk/models/operations/duplicateparam.rb lib/sdk/models/operations/formqueryparamsarray.rb +lib/sdk/models/operations/formqueryparamscamelobject.rb lib/sdk/models/operations/formqueryparamsmap.rb lib/sdk/models/operations/formqueryparamsobject.rb lib/sdk/models/operations/formqueryparamsprimitive.rb @@ -196,6 +240,7 @@ lib/sdk/models/operations/getresource.rb lib/sdk/models/operations/updateresource.rb lib/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.rb lib/sdk/models/operations/responsebodyadditionalpropertiesdatepost.rb +lib/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.rb lib/sdk/models/operations/responsebodyadditionalpropertiespost.rb lib/sdk/models/operations/responsebodybytesget.rb lib/sdk/models/operations/responsebodyemptywithheaders.rb @@ -224,11 +269,14 @@ lib/sdk/models/operations/primitivetypeoneofpost.rb lib/sdk/models/operations/stronglytypedoneofpost.rb lib/sdk/models/operations/typedobjectnullableoneofpost.rb lib/sdk/models/operations/typedobjectoneofpost.rb +lib/sdk/models/operations/uniondatenull.rb +lib/sdk/models/operations/uniondatetimenull.rb lib/sdk/models/operations/weaklytypedoneofpost.rb lib/sdk/models/operations/put_anything_ignoredgeneration.rb lib/sdk/models/operations/responsebodyjsonget.rb lib/sdk/models/shared/authservicerequestbody.rb lib/sdk/models/shared/security.rb +lib/sdk/models/shared/errortype.rb lib/sdk/models/shared/error.rb lib/sdk/models/shared/simpleobject.rb lib/sdk/models/shared/enum.rb @@ -351,6 +399,12 @@ docs/models/operations/typefromanchor.md docs/models/operations/anchortypesgetresponse.md docs/models/operations/arraycircularreferencegetresponse.md docs/models/operations/circularreferencegetresponse.md +docs/models/operations/dateparamwithdefaultrequest.md +docs/models/operations/dateparamwithdefaultresponse.md +docs/models/operations/datetimeparamwithdefaultrequest.md +docs/models/operations/datetimeparamwithdefaultresponse.md +docs/models/operations/decimalparamwithdefaultrequest.md +docs/models/operations/decimalparamwithdefaultresponse.md docs/models/operations/deprecatedfieldinschemapostresponse.md docs/models/operations/deprecatedobjectinschemaget200applicationjson.md docs/models/operations/deprecatedobjectinschemagetresponse.md @@ -428,6 +482,12 @@ docs/models/operations/formqueryparamsarrayrequest.md docs/models/operations/formqueryparamsarrayresargs.md docs/models/operations/formqueryparamsarrayres.md docs/models/operations/formqueryparamsarrayresponse.md +docs/models/operations/formqueryparamscamelobjectobjparam.md +docs/models/operations/formqueryparamscamelobjectobjparamexploded.md +docs/models/operations/formqueryparamscamelobjectrequest.md +docs/models/operations/formqueryparamscamelobjectresargs.md +docs/models/operations/formqueryparamscamelobjectres.md +docs/models/operations/formqueryparamscamelobjectresponse.md docs/models/operations/formqueryparamsmaprequest.md docs/models/operations/formqueryparamsmapres.md docs/models/operations/formqueryparamsmapresponse.md @@ -676,6 +736,8 @@ docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200appl docs/models/operations/responsebodyadditionalpropertiescomplexnumberspostresponse.md docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiesdatepostresponse.md +docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md +docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiespostresponse.md docs/models/operations/responsebodybytesgetresponse.md @@ -722,6 +784,10 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/uniondatenullres.md +docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimenullres.md +docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md docs/models/operations/weaklytypedoneofpostresponse.md docs/models/operations/putanythingignoredgeneration200applicationjson.md @@ -732,6 +798,7 @@ docs/models/shared/authservicerequestbodyheaderauth.md docs/models/shared/authservicerequestbody.md docs/models/shared/schemebasicauth.md docs/models/shared/security.md +docs/models/shared/errortype.md docs/models/shared/error.md docs/models/shared/simpleobjectint32enum.md docs/models/shared/simpleobjectintenum.md @@ -820,15 +887,18 @@ docs/sdks/second/README.md docs/sdks/servers/README.md docs/sdks/telemetry/README.md docs/sdks/unions/README.md -test/auth_test.rb -test/flattening_test.rb -test/globals_test.rb -test/helper_test.rb -test/parameter_test.rb -test/requestbodies_test.rb -test/responsebodies_test.rb -test/servers_test.rb -test/telemetry_test.rb -test/testdata/testUpload.json +test/common_helper_test.rb +testcommon/common_helper_test.rb +testprimary/auth_test.rb +testprimary/flattening_test.rb +testprimary/globals_test.rb +testprimary/helper_test.rb +testprimary/parameter_test.rb +testprimary/requestbodies_test.rb +testprimary/responsebodies_test.rb +testprimary/servers_test.rb +testprimary/telemetry_test.rb +testprimary/testdata/testUpload.json +testsimple_security/auth_test.rb ../../testprojects/ruby/Gemfile .gitattributes \ No newline at end of file diff --git a/ruby-client-sdk/gen.yaml b/ruby-client-sdk/gen.yaml index e6dd53108..2533a368c 100755 --- a/ruby-client-sdk/gen.yaml +++ b/ruby-client-sdk/gen.yaml @@ -1,18 +1,20 @@ configVersion: 1.0.0 management: - docChecksum: d6c132f7bde6e79f0552a47119432f96 + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d docVersion: 0.1.0 - speakeasyVersion: 1.95.0 - generationVersion: 2.148.0 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git sdkClassName: SDK singleTagPerOp: false features: ruby: - core: 2.88.2 + core: 2.91.1 deprecations: 2.81.1 + docs: 0.0.3 enums: 2.81.1 - examples: 2.81.2 + examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 @@ -26,9 +28,11 @@ features: nameOverrides: 2.81.1 serverIDs: 2.81.1 ruby: - version: 1.35.3 + version: 1.36.0 author: Speakeasy description: Ruby Client SDK Generated by Speakeasy + installationURL: https://github.com/speakeasy-api/openapi-generation-tests -d ruby-client-sdk maxMethodParams: 5 module: OpenApiSdk packageName: openapi + repoSubDirectory: ruby-client-sdk diff --git a/ruby-client-sdk/lib/openapi.rb b/ruby-client-sdk/lib/openapi.rb index b759570ca..05d89c33e 100755 --- a/ruby-client-sdk/lib/openapi.rb +++ b/ruby-client-sdk/lib/openapi.rb @@ -8,6 +8,7 @@ require_relative 'sdk/sdk' require_relative 'sdk/models/shared/authservicerequestbody' require_relative 'sdk/models/shared/security' +require_relative 'sdk/models/shared/errortype' require_relative 'sdk/models/shared/error' require_relative 'sdk/models/shared/simpleobject' require_relative 'sdk/models/shared/enum' @@ -63,6 +64,9 @@ require_relative 'sdk/models/operations/connectionerrorget' require_relative 'sdk/models/operations/createfile' require_relative 'sdk/models/operations/createresource' +require_relative 'sdk/models/operations/dateparamwithdefault' +require_relative 'sdk/models/operations/datetimeparamwithdefault' +require_relative 'sdk/models/operations/decimalparamwithdefault' require_relative 'sdk/models/operations/deepobjectqueryparamsmap' require_relative 'sdk/models/operations/deepobjectqueryparamsobject' require_relative 'sdk/models/operations/deleteresource' @@ -75,6 +79,7 @@ require_relative 'sdk/models/operations/emptyresponseobjectwithcommentget' require_relative 'sdk/models/operations/flattenedtypedobjectpost' require_relative 'sdk/models/operations/formqueryparamsarray' +require_relative 'sdk/models/operations/formqueryparamscamelobject' require_relative 'sdk/models/operations/formqueryparamsmap' require_relative 'sdk/models/operations/formqueryparamsobject' require_relative 'sdk/models/operations/formqueryparamsprimitive' @@ -215,6 +220,7 @@ require_relative 'sdk/models/operations/requestbodywriteonlyunion' require_relative 'sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost' require_relative 'sdk/models/operations/responsebodyadditionalpropertiesdatepost' +require_relative 'sdk/models/operations/responsebodyadditionalpropertiesobjectpost' require_relative 'sdk/models/operations/responsebodyadditionalpropertiespost' require_relative 'sdk/models/operations/responsebodybytesget' require_relative 'sdk/models/operations/responsebodyemptywithheaders' @@ -243,6 +249,8 @@ require_relative 'sdk/models/operations/typedobjectnullableoneofpost' require_relative 'sdk/models/operations/typedobjectoneofpost' require_relative 'sdk/models/operations/typedparametergenerationget' +require_relative 'sdk/models/operations/uniondatenull' +require_relative 'sdk/models/operations/uniondatetimenull' require_relative 'sdk/models/operations/updateresource' require_relative 'sdk/models/operations/usageexamplepost' require_relative 'sdk/models/operations/weaklytypedoneofpost' diff --git a/ruby-client-sdk/lib/sdk/generation.rb b/ruby-client-sdk/lib/sdk/generation.rb index 586f5cd56..6eb0c9ae8 100755 --- a/ruby-client-sdk/lib/sdk/generation.rb +++ b/ruby-client-sdk/lib/sdk/generation.rb @@ -104,6 +104,99 @@ def circular_reference_get res end + sig { params(date_input: Date).returns(Utils::FieldAugmented) } + def date_param_with_default(date_input) + + request = Operations::DateParamWithDefaultRequest.new( + + date_input: date_input + ) + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/dateParamWithDefault" + headers = {} + query_params = Utils.get_query_params(Operations::DateParamWithDefaultRequest, request, @sdk_configuration.globals) + headers['Accept'] = '*/*' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.get(url) do |req| + req.headers = headers + req.params = query_params + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::DateParamWithDefaultResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 204 + end + res + end + + sig { params(date_time_input: DateTime).returns(Utils::FieldAugmented) } + def date_time_param_with_default(date_time_input) + + request = Operations::DateTimeParamWithDefaultRequest.new( + + date_time_input: date_time_input + ) + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/dateTimeParamWithDefault" + headers = {} + query_params = Utils.get_query_params(Operations::DateTimeParamWithDefaultRequest, request, @sdk_configuration.globals) + headers['Accept'] = '*/*' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.get(url) do |req| + req.headers = headers + req.params = query_params + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::DateTimeParamWithDefaultResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 204 + end + res + end + + sig { params(decimal_input: Float).returns(Utils::FieldAugmented) } + def decimal_param_with_default(decimal_input) + + request = Operations::DecimalParamWithDefaultRequest.new( + + decimal_input: decimal_input + ) + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/decimalParamWithDefault" + headers = {} + query_params = Utils.get_query_params(Operations::DecimalParamWithDefaultRequest, request, @sdk_configuration.globals) + headers['Accept'] = '*/*' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.get(url) do |req| + req.headers = headers + req.params = query_params + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::DecimalParamWithDefaultResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 204 + end + res + end + sig { params(request: Shared::DeprecatedFieldInObject).returns(Utils::FieldAugmented) } def deprecated_field_in_schema_post(request) diff --git a/ruby-client-sdk/lib/sdk/models/operations/dateparamwithdefault.rb b/ruby-client-sdk/lib/sdk/models/operations/dateparamwithdefault.rb new file mode 100755 index 000000000..436ede596 --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/dateparamwithdefault.rb @@ -0,0 +1,45 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + + class DateParamWithDefaultRequest < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # A date parameter with a default value + field :date_input, Date, { 'query_param': { 'field_name': 'dateInput', 'style': 'form', 'explode': true } } + + + sig { params(date_input: Date).void } + def initialize(date_input: nil) + @date_input = date_input + end + end + + + class DateParamWithDefaultResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/datetimeparamwithdefault.rb b/ruby-client-sdk/lib/sdk/models/operations/datetimeparamwithdefault.rb new file mode 100755 index 000000000..4368db5d2 --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/datetimeparamwithdefault.rb @@ -0,0 +1,45 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + + class DateTimeParamWithDefaultRequest < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # A date time parameter with a default value + field :date_time_input, DateTime, { 'query_param': { 'field_name': 'dateTimeInput', 'style': 'form', 'explode': true } } + + + sig { params(date_time_input: DateTime).void } + def initialize(date_time_input: nil) + @date_time_input = date_time_input + end + end + + + class DateTimeParamWithDefaultResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/decimalparamwithdefault.rb b/ruby-client-sdk/lib/sdk/models/operations/decimalparamwithdefault.rb new file mode 100755 index 000000000..031c049b1 --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/decimalparamwithdefault.rb @@ -0,0 +1,45 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + + class DecimalParamWithDefaultRequest < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # A decimal parameter with a default value + field :decimal_input, Float, { 'query_param': { 'field_name': 'decimalInput', 'style': 'form', 'explode': true } } + + + sig { params(decimal_input: Float).void } + def initialize(decimal_input: nil) + @decimal_input = decimal_input + end + end + + + class DecimalParamWithDefaultResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/formqueryparamscamelobject.rb b/ruby-client-sdk/lib/sdk/models/operations/formqueryparamscamelobject.rb new file mode 100755 index 000000000..ea550e3ee --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/formqueryparamscamelobject.rb @@ -0,0 +1,119 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + + class FormQueryParamsCamelObjectObjParam < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :encoded_count, T.nilable(String), { 'query_param': { 'field_name': 'encoded_count' } } + + field :encoded_term, T.nilable(String), { 'query_param': { 'field_name': 'encoded_term' } } + + + sig { params(encoded_count: T.nilable(String), encoded_term: T.nilable(String)).void } + def initialize(encoded_count: nil, encoded_term: nil) + @encoded_count = encoded_count + @encoded_term = encoded_term + end + end + + + class FormQueryParamsCamelObjectObjParamExploded < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :item_count, T.nilable(String), { 'query_param': { 'field_name': 'item_count' } } + + field :search_term, T.nilable(String), { 'query_param': { 'field_name': 'search_term' } } + + + sig { params(item_count: T.nilable(String), search_term: T.nilable(String)).void } + def initialize(item_count: nil, search_term: nil) + @item_count = item_count + @search_term = search_term + end + end + + + class FormQueryParamsCamelObjectRequest < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :obj_param_exploded, Operations::FormQueryParamsCamelObjectObjParamExploded, { 'query_param': { 'field_name': 'obj_param_exploded', 'style': 'form', 'explode': true } } + + field :obj_param, T.nilable(Operations::FormQueryParamsCamelObjectObjParam), { 'query_param': { 'field_name': 'obj_param', 'style': 'form', 'explode': false } } + + + sig { params(obj_param_exploded: Operations::FormQueryParamsCamelObjectObjParamExploded, obj_param: T.nilable(Operations::FormQueryParamsCamelObjectObjParam)).void } + def initialize(obj_param_exploded: nil, obj_param: nil) + @obj_param_exploded = obj_param_exploded + @obj_param = obj_param + end + end + + + class FormQueryParamsCamelObjectResArgs < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :item_count, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('item_count') } } + + field :search_term, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('search_term') } } + + + sig { params(item_count: String, search_term: String).void } + def initialize(item_count: nil, search_term: nil) + @item_count = item_count + @search_term = search_term + end + end + + # OK + class FormQueryParamsCamelObjectRes < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :args, Operations::FormQueryParamsCamelObjectResArgs, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('args') } } + + field :url, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('url') } } + + + sig { params(args: Operations::FormQueryParamsCamelObjectResArgs, url: String).void } + def initialize(args: nil, url: nil) + @args = args + @url = url + end + end + + + class FormQueryParamsCamelObjectResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + # OK + field :res, T.nilable(Operations::FormQueryParamsCamelObjectRes) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), res: T.nilable(Operations::FormQueryParamsCamelObjectRes)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil, res: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + @res = res + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.rb b/ruby-client-sdk/lib/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.rb new file mode 100755 index 000000000..a66243ed0 --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.rb @@ -0,0 +1,48 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + # OK + class ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :json, T::Hash[Symbol, Shared::SimpleObject], { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('json') } } + + + sig { params(json: T::Hash[Symbol, Shared::SimpleObject]).void } + def initialize(json: nil) + @json = json + end + end + + + class ResponseBodyAdditionalPropertiesObjectPostResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + # OK + field :response_body_additional_properties_object_post_200_application_json_object, T.nilable(Operations::ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), response_body_additional_properties_object_post_200_application_json_object: T.nilable(Operations::ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil, response_body_additional_properties_object_post_200_application_json_object: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + @response_body_additional_properties_object_post_200_application_json_object = response_body_additional_properties_object_post_200_application_json_object + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/statusgetxspeakeasyerrors.rb b/ruby-client-sdk/lib/sdk/models/operations/statusgetxspeakeasyerrors.rb index 2ad66e375..0190ceb3a 100755 --- a/ruby-client-sdk/lib/sdk/models/operations/statusgetxspeakeasyerrors.rb +++ b/ruby-client-sdk/lib/sdk/models/operations/statusgetxspeakeasyerrors.rb @@ -5,6 +5,7 @@ require 'sorbet-runtime' require 'faraday' +require_relative '../shared/errortype' require_relative '../shared/error' module OpenApiSDK @@ -35,11 +36,14 @@ class StatusGetXSpeakeasyErrors501ApplicationJSON < OpenApiSDK::Utils::FieldAugm field :message, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('message') } } + field :type, T.nilable(Shared::ErrorType), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Shared::ErrorType, true) } } - sig { params(code: T.nilable(String), message: T.nilable(String)).void } - def initialize(code: nil, message: nil) + + sig { params(code: T.nilable(String), message: T.nilable(String), type: T.nilable(Shared::ErrorType)).void } + def initialize(code: nil, message: nil, type: nil) @code = code @message = message + @type = type end end diff --git a/ruby-client-sdk/lib/sdk/models/operations/uniondatenull.rb b/ruby-client-sdk/lib/sdk/models/operations/uniondatenull.rb new file mode 100755 index 000000000..06676689b --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/uniondatenull.rb @@ -0,0 +1,48 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + # OK + class UnionDateNullRes < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :json, Date, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('json'), 'decoder': Utils.date_from_iso_format(false) } } + + + sig { params(json: Date).void } + def initialize(json: nil) + @json = json + end + end + + + class UnionDateNullResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + # OK + field :res, T.nilable(Operations::UnionDateNullRes) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), res: T.nilable(Operations::UnionDateNullRes)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil, res: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + @res = res + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/uniondatetimenull.rb b/ruby-client-sdk/lib/sdk/models/operations/uniondatetimenull.rb new file mode 100755 index 000000000..a00e01d20 --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/operations/uniondatetimenull.rb @@ -0,0 +1,48 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Operations + # OK + class UnionDateTimeNullRes < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + + field :json, DateTime, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('json'), 'decoder': Utils.datetime_from_iso_format(false) } } + + + sig { params(json: DateTime).void } + def initialize(json: nil) + @json = json + end + end + + + class UnionDateTimeNullResponse < OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # HTTP response content type for this operation + field :content_type, String + # HTTP response status code for this operation + field :status_code, Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, T.nilable(Faraday::Response) + # OK + field :res, T.nilable(Operations::UnionDateTimeNullRes) + + + sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), res: T.nilable(Operations::UnionDateTimeNullRes)).void } + def initialize(content_type: nil, status_code: nil, raw_response: nil, res: nil) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + @res = res + end + end + end +end diff --git a/ruby-client-sdk/lib/sdk/models/operations/usageexamplepost.rb b/ruby-client-sdk/lib/sdk/models/operations/usageexamplepost.rb index 1f262875d..78017cf1c 100755 --- a/ruby-client-sdk/lib/sdk/models/operations/usageexamplepost.rb +++ b/ruby-client-sdk/lib/sdk/models/operations/usageexamplepost.rb @@ -81,6 +81,8 @@ class UsageExamplePostRequest < OpenApiSDK::Utils::FieldAugmented field :bool_parameter, T::Boolean, { 'query_param': { 'field_name': 'boolParameter', 'style': 'form', 'explode': true } } # A date parameter field :date_parameter, Date, { 'query_param': { 'field_name': 'dateParameter', 'style': 'form', 'explode': true } } + # A date time parameter with a default value + field :date_time_default_parameter, DateTime, { 'query_param': { 'field_name': 'dateTimeDefaultParameter', 'style': 'form', 'explode': true } } # A date time parameter field :date_time_parameter, DateTime, { 'query_param': { 'field_name': 'dateTimeParameter', 'style': 'form', 'explode': true } } # A decimal parameter @@ -117,12 +119,13 @@ class UsageExamplePostRequest < OpenApiSDK::Utils::FieldAugmented field :request_body, T.nilable(Operations::UsageExamplePostRequestBody), { 'request': { 'media_type': 'application/json' } } - sig { params(bigint_parameter: Integer, bigint_str_parameter: String, bool_parameter: T::Boolean, date_parameter: Date, date_time_parameter: DateTime, decimal_parameter: Float, decimal_str_parameter: String, double_parameter: Float, enum_parameter: Operations::UsageExamplePostEnumParameter, falsey_number_parameter: Float, float32_parameter: Float, float_parameter: Float, int64_parameter: Integer, int_parameter: Integer, str_parameter: String, bigint_parameter_optional: T.nilable(Integer), bigint_str_parameter_optional: T.nilable(String), decimal_parameter_optional: T.nilable(Float), decimal_str_parameter_optional: T.nilable(String), opt_enum_parameter: T.nilable(Operations::UsageExamplePostOptEnumParameter), request_body: T.nilable(Operations::UsageExamplePostRequestBody)).void } - def initialize(bigint_parameter: nil, bigint_str_parameter: nil, bool_parameter: nil, date_parameter: nil, date_time_parameter: nil, decimal_parameter: nil, decimal_str_parameter: nil, double_parameter: nil, enum_parameter: nil, falsey_number_parameter: nil, float32_parameter: nil, float_parameter: nil, int64_parameter: nil, int_parameter: nil, str_parameter: nil, bigint_parameter_optional: nil, bigint_str_parameter_optional: nil, decimal_parameter_optional: nil, decimal_str_parameter_optional: nil, opt_enum_parameter: nil, request_body: nil) + sig { params(bigint_parameter: Integer, bigint_str_parameter: String, bool_parameter: T::Boolean, date_parameter: Date, date_time_default_parameter: DateTime, date_time_parameter: DateTime, decimal_parameter: Float, decimal_str_parameter: String, double_parameter: Float, enum_parameter: Operations::UsageExamplePostEnumParameter, falsey_number_parameter: Float, float32_parameter: Float, float_parameter: Float, int64_parameter: Integer, int_parameter: Integer, str_parameter: String, bigint_parameter_optional: T.nilable(Integer), bigint_str_parameter_optional: T.nilable(String), decimal_parameter_optional: T.nilable(Float), decimal_str_parameter_optional: T.nilable(String), opt_enum_parameter: T.nilable(Operations::UsageExamplePostOptEnumParameter), request_body: T.nilable(Operations::UsageExamplePostRequestBody)).void } + def initialize(bigint_parameter: nil, bigint_str_parameter: nil, bool_parameter: nil, date_parameter: nil, date_time_default_parameter: nil, date_time_parameter: nil, decimal_parameter: nil, decimal_str_parameter: nil, double_parameter: nil, enum_parameter: nil, falsey_number_parameter: nil, float32_parameter: nil, float_parameter: nil, int64_parameter: nil, int_parameter: nil, str_parameter: nil, bigint_parameter_optional: nil, bigint_str_parameter_optional: nil, decimal_parameter_optional: nil, decimal_str_parameter_optional: nil, opt_enum_parameter: nil, request_body: nil) @bigint_parameter = bigint_parameter @bigint_str_parameter = bigint_str_parameter @bool_parameter = bool_parameter @date_parameter = date_parameter + @date_time_default_parameter = date_time_default_parameter @date_time_parameter = date_time_parameter @decimal_parameter = decimal_parameter @decimal_str_parameter = decimal_str_parameter diff --git a/ruby-client-sdk/lib/sdk/models/shared/error.rb b/ruby-client-sdk/lib/sdk/models/shared/error.rb index 9c8b3e128..b0581795b 100755 --- a/ruby-client-sdk/lib/sdk/models/shared/error.rb +++ b/ruby-client-sdk/lib/sdk/models/shared/error.rb @@ -5,6 +5,7 @@ require 'sorbet-runtime' require 'faraday' +require_relative '../shared/errortype' module OpenApiSDK module Shared @@ -17,11 +18,14 @@ class Error < OpenApiSDK::Utils::FieldAugmented field :message, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('message') } } + field :type, T.nilable(Shared::ErrorType), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Shared::ErrorType, true) } } - sig { params(code: T.nilable(String), message: T.nilable(String)).void } - def initialize(code: nil, message: nil) + + sig { params(code: T.nilable(String), message: T.nilable(String), type: T.nilable(Shared::ErrorType)).void } + def initialize(code: nil, message: nil, type: nil) @code = code @message = message + @type = type end end end diff --git a/ruby-client-sdk/lib/sdk/models/shared/errortype.rb b/ruby-client-sdk/lib/sdk/models/shared/errortype.rb new file mode 100755 index 000000000..56fd285c7 --- /dev/null +++ b/ruby-client-sdk/lib/sdk/models/shared/errortype.rb @@ -0,0 +1,21 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +require 'sorbet-runtime' +require 'faraday' + +module OpenApiSDK + module Shared + + class ErrorType < T::Enum + enums do + NOT_FOUND = new('not_found') + INVALID = new('invalid') + INTERNAL = new('internal') + end + end + + end +end diff --git a/ruby-client-sdk/lib/sdk/parameters.rb b/ruby-client-sdk/lib/sdk/parameters.rb index 60c909c93..67e9f1253 100755 --- a/ruby-client-sdk/lib/sdk/parameters.rb +++ b/ruby-client-sdk/lib/sdk/parameters.rb @@ -164,6 +164,42 @@ def form_query_params_array(arr_param = nil, arr_param_exploded = nil) res end + sig { params(obj_param_exploded: Operations::FormQueryParamsCamelObjectObjParamExploded, obj_param: T.nilable(Operations::FormQueryParamsCamelObjectObjParam)).returns(Utils::FieldAugmented) } + def form_query_params_camel_object(obj_param_exploded, obj_param = nil) + + request = Operations::FormQueryParamsCamelObjectRequest.new( + + obj_param_exploded: obj_param_exploded, + obj_param: obj_param + ) + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/queryParams/form/camelObj" + headers = {} + query_params = Utils.get_query_params(Operations::FormQueryParamsCamelObjectRequest, request, @sdk_configuration.globals) + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.get(url) do |req| + req.headers = headers + req.params = query_params + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::FormQueryParamsCamelObjectResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 200 + if Utils.match_content_type(content_type, 'application/json') + out = Utils.unmarshal_complex(r.env.response_body, Operations::FormQueryParamsCamelObjectRes) + res.res = out + end + end + res + end + sig { params(map_param: T.nilable(T::Hash[Symbol, String]), map_param_exploded: T.nilable(T::Hash[Symbol, Integer])).returns(Utils::FieldAugmented) } def form_query_params_map(map_param = nil, map_param_exploded = nil) diff --git a/ruby-client-sdk/lib/sdk/responsebodies.rb b/ruby-client-sdk/lib/sdk/responsebodies.rb index a489b6a07..871396af9 100755 --- a/ruby-client-sdk/lib/sdk/responsebodies.rb +++ b/ruby-client-sdk/lib/sdk/responsebodies.rb @@ -95,6 +95,45 @@ def response_body_additional_properties_date_post(request) res end + sig { params(request: T::Hash[Symbol, Shared::SimpleObject]).returns(Utils::FieldAugmented) } + def response_body_additional_properties_object_post(request) + + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/responseBodies/additionalPropertiesObject" + headers = {} + req_content_type, data, form = Utils.serialize_request_body(request, :request, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.post(url) do |req| + req.headers = headers + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + if form + req.body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + req.body = URI.encode_www_form(data) + else + req.body = data + end + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::ResponseBodyAdditionalPropertiesObjectPostResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 200 + if Utils.match_content_type(content_type, 'application/json') + out = Utils.unmarshal_complex(r.env.response_body, Operations::ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON) + res.response_body_additional_properties_object_post_200_application_json_object = out + end + end + res + end + sig { params(request: T::Hash[Symbol, String]).returns(Utils::FieldAugmented) } def response_body_additional_properties_post(request) diff --git a/ruby-client-sdk/lib/sdk/sdkconfiguration.rb b/ruby-client-sdk/lib/sdk/sdkconfiguration.rb index 009502c4c..f01ef87c6 100755 --- a/ruby-client-sdk/lib/sdk/sdkconfiguration.rb +++ b/ruby-client-sdk/lib/sdk/sdkconfiguration.rb @@ -54,9 +54,9 @@ def initialize(client, security, server_url, server_idx, server_defaults, global @globals = globals.nil? ? {} : globals @language = 'ruby' @openapi_doc_version = '0.1.0' - @sdk_version = '1.35.3' - @gen_version = '2.148.0' - @user_agent = 'speakeasy-sdk/ruby 1.35.3 2.148.0 0.1.0 openapi' + @sdk_version = '1.36.0' + @gen_version = '2.171.0' + @user_agent = 'speakeasy-sdk/ruby 1.36.0 2.171.0 0.1.0 openapi' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/ruby-client-sdk/lib/sdk/unions.rb b/ruby-client-sdk/lib/sdk/unions.rb index 0e131de2f..170434db1 100755 --- a/ruby-client-sdk/lib/sdk/unions.rb +++ b/ruby-client-sdk/lib/sdk/unions.rb @@ -407,6 +407,84 @@ def typed_object_one_of_post(request) res end + sig { params(request: Date).returns(Utils::FieldAugmented) } + def union_date_null(request) + + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/unionDateNull" + headers = {} + req_content_type, data, form = Utils.serialize_request_body(request, :request, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.post(url) do |req| + req.headers = headers + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + if form + req.body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + req.body = URI.encode_www_form(data) + else + req.body = data + end + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::UnionDateNullResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 200 + if Utils.match_content_type(content_type, 'application/json') + out = Utils.unmarshal_complex(r.env.response_body, Operations::UnionDateNullRes) + res.res = out + end + end + res + end + + sig { params(request: DateTime).returns(Utils::FieldAugmented) } + def union_date_time_null(request) + + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/anything/unionDateTimeNull" + headers = {} + req_content_type, data, form = Utils.serialize_request_body(request, :request, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + headers['Accept'] = 'application/json' + headers['x-speakeasy-user-agent'] = @sdk_configuration.user_agent + + r = @sdk_configuration.client.post(url) do |req| + req.headers = headers + Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? + if form + req.body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + req.body = URI.encode_www_form(data) + else + req.body = data + end + end + + content_type = r.headers.fetch('Content-Type', 'application/octet-stream') + + res = Operations::UnionDateTimeNullResponse.new( + status_code: r.status, content_type: content_type, raw_response: r + ) + if r.status == 200 + if Utils.match_content_type(content_type, 'application/json') + out = Utils.unmarshal_complex(r.env.response_body, Operations::UnionDateTimeNullRes) + res.res = out + end + end + res + end + sig { params(request: Object).returns(Utils::FieldAugmented) } def weakly_typed_one_of_post(request) diff --git a/ruby-client-sdk/openapi.gemspec b/ruby-client-sdk/openapi.gemspec index 06a4eb7ed..3ddeed9ef 100755 --- a/ruby-client-sdk/openapi.gemspec +++ b/ruby-client-sdk/openapi.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'openapi' - s.version = '1.35.3' + s.version = '1.36.0' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' @@ -25,6 +25,8 @@ Gem::Specification.new do |s| s.add_dependency('faraday-multipart') s.add_dependency('rack') s.add_dependency('rake') + s.add_dependency('sorbet') + s.add_dependency('tapioca') s.add_development_dependency('minitest') s.add_development_dependency('rubocop') diff --git a/ruby-client-sdk/sorbet/config b/ruby-client-sdk/sorbet/config new file mode 100755 index 000000000..983d2f178 --- /dev/null +++ b/ruby-client-sdk/sorbet/config @@ -0,0 +1,4 @@ +--dir +. +--ignore=tmp/ +--ignore=vendor/ diff --git a/ruby-client-sdk/sorbet/rbi/annotations/.gitattributes b/ruby-client-sdk/sorbet/rbi/annotations/.gitattributes new file mode 100755 index 000000000..d2eacd2c6 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/annotations/.gitattributes @@ -0,0 +1 @@ +**/*.rbi linguist-vendored=true diff --git a/ruby-client-sdk/sorbet/rbi/annotations/faraday.rbi b/ruby-client-sdk/sorbet/rbi/annotations/faraday.rbi new file mode 100755 index 000000000..c992c1afe --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/annotations/faraday.rbi @@ -0,0 +1,17 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This file was pulled from a central RBI files repository. +# Please run `bin/tapioca annotations` to update it. + +module Faraday + class << self + sig { params(url: T.untyped, options: T::Hash[Symbol, T.untyped], block: T.nilable(T.proc.params(connection: Faraday::Connection).void)).returns(Faraday::Connection) } + def new(url = nil, options = {}, &block); end + end +end + +class Faraday::Response + sig { returns(T::Boolean) } + def success?; end +end diff --git a/ruby-client-sdk/sorbet/rbi/annotations/rainbow.rbi b/ruby-client-sdk/sorbet/rbi/annotations/rainbow.rbi new file mode 100755 index 000000000..227f8797a --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/annotations/rainbow.rbi @@ -0,0 +1,269 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This file was pulled from a central RBI files repository. +# Please run `bin/tapioca annotations` to update it. + +module Rainbow + # @shim: https://github.com/sickill/rainbow/blob/master/lib/rainbow.rb#L10-L12 + sig { returns(T::Boolean) } + attr_accessor :enabled + + class Color + sig { returns(Symbol) } + attr_reader :ground + + sig { params(ground: Symbol, values: T.any([Integer], [Integer, Integer, Integer])).returns(Color) } + def self.build(ground, values); end + + sig { params(hex: String).returns([Integer, Integer, Integer]) } + def self.parse_hex_color(hex); end + + class Indexed < Rainbow::Color + sig { returns(Integer) } + attr_reader :num + + sig { params(ground: Symbol, num: Integer).void } + def initialize(ground, num); end + + sig { returns(T::Array[Integer]) } + def codes; end + end + + class Named < Rainbow::Color::Indexed + NAMES = T.let(nil, T::Hash[Symbol, Integer]) + + sig { params(ground: Symbol, name: Symbol).void } + def initialize(ground, name); end + + sig { returns(T::Array[Symbol]) } + def self.color_names; end + + sig { returns(String) } + def self.valid_names; end + end + + class RGB < Rainbow::Color::Indexed + sig { returns(Integer) } + attr_reader :r, :g, :b + + sig { params(ground: Symbol, values: Integer).void } + def initialize(ground, *values); end + + sig { returns(T::Array[Integer]) } + def codes; end + + sig { params(value: Numeric).returns(Integer) } + def self.to_ansi_domain(value); end + end + + class X11Named < Rainbow::Color::RGB + include Rainbow::X11ColorNames + + sig { returns(T::Array[Symbol]) } + def self.color_names; end + + sig { returns(String) } + def self.valid_names; end + + sig { params(ground: Symbol, name: Symbol).void } + def initialize(ground, name); end + end + end + + sig { returns(Wrapper) } + def self.global; end + + sig { returns(T::Boolean) } + def self.enabled; end + + sig { params(value: T::Boolean).returns(T::Boolean) } + def self.enabled=(value); end + + sig { params(string: String).returns(String) } + def self.uncolor(string); end + + class NullPresenter < String + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) } + def color(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) } + def foreground(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) } + def fg(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) } + def background(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) } + def bg(*values); end + + sig { returns(NullPresenter) } + def reset; end + + sig { returns(NullPresenter) } + def bright; end + + sig { returns(NullPresenter) } + def faint; end + + sig { returns(NullPresenter) } + def italic; end + + sig { returns(NullPresenter) } + def underline; end + + sig { returns(NullPresenter) } + def blink; end + + sig { returns(NullPresenter) } + def inverse; end + + sig { returns(NullPresenter) } + def hide; end + + sig { returns(NullPresenter) } + def cross_out; end + + sig { returns(NullPresenter) } + def black; end + + sig { returns(NullPresenter) } + def red; end + + sig { returns(NullPresenter) } + def green; end + + sig { returns(NullPresenter) } + def yellow; end + + sig { returns(NullPresenter) } + def blue; end + + sig { returns(NullPresenter) } + def magenta; end + + sig { returns(NullPresenter) } + def cyan; end + + sig { returns(NullPresenter) } + def white; end + + sig { returns(NullPresenter) } + def bold; end + + sig { returns(NullPresenter) } + def dark; end + + sig { returns(NullPresenter) } + def strike; end + end + + class Presenter < String + TERM_EFFECTS = T.let(nil, T::Hash[Symbol, Integer]) + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) } + def color(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) } + def foreground(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) } + def fg(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) } + def background(*values); end + + sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) } + def bg(*values); end + + sig { returns(Presenter) } + def reset; end + + sig { returns(Presenter) } + def bright; end + + sig { returns(Presenter) } + def faint; end + + sig { returns(Presenter) } + def italic; end + + sig { returns(Presenter) } + def underline; end + + sig { returns(Presenter) } + def blink; end + + sig { returns(Presenter) } + def inverse; end + + sig { returns(Presenter) } + def hide; end + + sig { returns(Presenter) } + def cross_out; end + + sig { returns(Presenter) } + def black; end + + sig { returns(Presenter) } + def red; end + + sig { returns(Presenter) } + def green; end + + sig { returns(Presenter) } + def yellow; end + + sig { returns(Presenter) } + def blue; end + + sig { returns(Presenter) } + def magenta; end + + sig { returns(Presenter) } + def cyan; end + + sig { returns(Presenter) } + def white; end + + sig { returns(Presenter) } + def bold; end + + sig { returns(Presenter) } + def dark; end + + sig { returns(Presenter) } + def strike; end + end + + class StringUtils + sig { params(string: String, codes: T::Array[Integer]).returns(String) } + def self.wrap_with_sgr(string, codes); end + + sig { params(string: String).returns(String) } + def self.uncolor(string); end + end + + VERSION = T.let(nil, String) + + class Wrapper + sig { returns(T::Boolean) } + attr_accessor :enabled + + sig { params(enabled: T::Boolean).void } + def initialize(enabled = true); end + + sig { params(string: String).returns(T.any(Rainbow::Presenter, Rainbow::NullPresenter)) } + def wrap(string); end + end + + module X11ColorNames + NAMES = T.let(nil, T::Hash[Symbol, [Integer, Integer, Integer]]) + end +end + +sig { params(string: String).returns(Rainbow::Presenter) } +def Rainbow(string); end diff --git a/ruby-client-sdk/sorbet/rbi/gems/.gitattributes b/ruby-client-sdk/sorbet/rbi/gems/.gitattributes new file mode 100755 index 000000000..d9bb82a4d --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/.gitattributes @@ -0,0 +1 @@ +**/*.rbi linguist-generated=true diff --git a/ruby-client-sdk/sorbet/rbi/gems/ast@2.4.2.rbi b/ruby-client-sdk/sorbet/rbi/gems/ast@2.4.2.rbi new file mode 100755 index 000000000..3fc4495da --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/ast@2.4.2.rbi @@ -0,0 +1,584 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `ast` gem. +# Please instead update this file by running `bin/tapioca gem ast`. + +# {AST} is a library for manipulating abstract syntax trees. +# +# It embraces immutability; each AST node is inherently frozen at +# creation, and updating a child node requires recreating that node +# and its every parent, recursively. +# This is a design choice. It does create some pressure on +# garbage collector, but completely eliminates all concurrency +# and aliasing problems. +# +# See also {AST::Node}, {AST::Processor::Mixin} and {AST::Sexp} for +# additional recommendations and design patterns. +# +# source://ast//lib/ast.rb#13 +module AST; end + +# Node is an immutable class, instances of which represent abstract +# syntax tree nodes. It combines semantic information (i.e. anything +# that affects the algorithmic properties of a program) with +# meta-information (line numbers or compiler intermediates). +# +# Notes on inheritance +# ==================== +# +# The distinction between semantics and metadata is important. Complete +# semantic information should be contained within just the {#type} and +# {#children} of a Node instance; in other words, if an AST was to be +# stripped of all meta-information, it should remain a valid AST which +# could be successfully processed to yield a result with the same +# algorithmic properties. +# +# Thus, Node should never be inherited in order to define methods which +# affect or return semantic information, such as getters for `class_name`, +# `superclass` and `body` in the case of a hypothetical `ClassNode`. The +# correct solution is to use a generic Node with a {#type} of `:class` +# and three children. See also {Processor} for tips on working with such +# ASTs. +# +# On the other hand, Node can and should be inherited to define +# application-specific metadata (see also {#initialize}) or customize the +# printing format. It is expected that an application would have one or two +# such classes and use them across the entire codebase. +# +# The rationale for this pattern is extensibility and maintainability. +# Unlike static ones, dynamic languages do not require the presence of a +# predefined, rigid structure, nor does it improve dispatch efficiency, +# and while such a structure can certainly be defined, it does not add +# any value but incurs a maintaining cost. +# For example, extending the AST even with a transformation-local +# temporary node type requires making globally visible changes to +# the codebase. +# +# source://ast//lib/ast/node.rb#40 +class AST::Node + # Constructs a new instance of Node. + # + # The arguments `type` and `children` are converted with `to_sym` and + # `to_a` respectively. Additionally, the result of converting `children` + # is frozen. While mutating the arguments is generally considered harmful, + # the most common case is to pass an array literal to the constructor. If + # your code does not expect the argument to be frozen, use `#dup`. + # + # The `properties` hash is passed to {#assign_properties}. + # + # @return [Node] a new instance of Node + # + # source://ast//lib/ast/node.rb#72 + def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end + + # Concatenates `array` with `children` and returns the resulting node. + # + # @return [AST::Node] + # + # source://ast//lib/ast/node.rb#168 + def +(array); end + + # Appends `element` to `children` and returns the resulting node. + # + # @return [AST::Node] + # + # source://ast//lib/ast/node.rb#177 + def <<(element); end + + # Compares `self` to `other`, possibly converting with `to_ast`. Only + # `type` and `children` are compared; metadata is deliberately ignored. + # + # @return [Boolean] + # + # source://ast//lib/ast/node.rb#153 + def ==(other); end + + # Appends `element` to `children` and returns the resulting node. + # + # @return [AST::Node] + # + # source://ast//lib/ast/node.rb#177 + def append(element); end + + # Returns the children of this node. + # The returned value is frozen. + # The to_a alias is useful for decomposing nodes concisely. + # For example: + # + # node = s(:gasgn, :$foo, s(:integer, 1)) + # var_name, value = *node + # p var_name # => :$foo + # p value # => (integer 1) + # + # @return [Array] + # + # source://ast//lib/ast/node.rb#56 + def children; end + + # Nodes are already frozen, so there is no harm in returning the + # current node as opposed to initializing from scratch and freezing + # another one. + # + # @return self + # + # source://ast//lib/ast/node.rb#115 + def clone; end + + # Concatenates `array` with `children` and returns the resulting node. + # + # @return [AST::Node] + # + # source://ast//lib/ast/node.rb#168 + def concat(array); end + + # Enables matching for Node, where type is the first element + # and the children are remaining items. + # + # @return [Array] + # + # source://ast//lib/ast/node.rb#253 + def deconstruct; end + + # Nodes are already frozen, so there is no harm in returning the + # current node as opposed to initializing from scratch and freezing + # another one. + # + # @return self + # + # source://ast//lib/ast/node.rb#115 + def dup; end + + # Test if other object is equal to + # + # @param other [Object] + # @return [Boolean] + # + # source://ast//lib/ast/node.rb#85 + def eql?(other); end + + # Returns the precomputed hash value for this node + # + # @return [Fixnum] + # + # source://ast//lib/ast/node.rb#61 + def hash; end + + # Converts `self` to a s-expression ruby string. + # The code return will recreate the node, using the sexp module s() + # + # @param indent [Integer] Base indentation level. + # @return [String] + # + # source://ast//lib/ast/node.rb#211 + def inspect(indent = T.unsafe(nil)); end + + # Returns the children of this node. + # The returned value is frozen. + # The to_a alias is useful for decomposing nodes concisely. + # For example: + # + # node = s(:gasgn, :$foo, s(:integer, 1)) + # var_name, value = *node + # p var_name # => :$foo + # p value # => (integer 1) + # + # @return [Array] + # + # source://ast//lib/ast/node.rb#56 + def to_a; end + + # @return [AST::Node] self + # + # source://ast//lib/ast/node.rb#229 + def to_ast; end + + # Converts `self` to a pretty-printed s-expression. + # + # @param indent [Integer] Base indentation level. + # @return [String] + # + # source://ast//lib/ast/node.rb#187 + def to_s(indent = T.unsafe(nil)); end + + # Converts `self` to a pretty-printed s-expression. + # + # @param indent [Integer] Base indentation level. + # @return [String] + # + # source://ast//lib/ast/node.rb#187 + def to_sexp(indent = T.unsafe(nil)); end + + # Converts `self` to an Array where the first element is the type as a Symbol, + # and subsequent elements are the same representation of its children. + # + # @return [Array] + # + # source://ast//lib/ast/node.rb#237 + def to_sexp_array; end + + # Returns the type of this node. + # + # @return [Symbol] + # + # source://ast//lib/ast/node.rb#43 + def type; end + + # Returns a new instance of Node where non-nil arguments replace the + # corresponding fields of `self`. + # + # For example, `Node.new(:foo, [ 1, 2 ]).updated(:bar)` would yield + # `(bar 1 2)`, and `Node.new(:foo, [ 1, 2 ]).updated(nil, [])` would + # yield `(foo)`. + # + # If the resulting node would be identical to `self`, does nothing. + # + # @param type [Symbol, nil] + # @param children [Array, nil] + # @param properties [Hash, nil] + # @return [AST::Node] + # + # source://ast//lib/ast/node.rb#133 + def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end + + protected + + # By default, each entry in the `properties` hash is assigned to + # an instance variable in this instance of Node. A subclass should define + # attribute readers for such variables. The values passed in the hash + # are not frozen or whitelisted; such behavior can also be implemented + # by subclassing Node and overriding this method. + # + # @return [nil] + # + # source://ast//lib/ast/node.rb#98 + def assign_properties(properties); end + + # Returns `@type` with all underscores replaced by dashes. This allows + # to write symbol literals without quotes in Ruby sources and yet have + # nicely looking s-expressions. + # + # @return [String] + # + # source://ast//lib/ast/node.rb#264 + def fancy_type; end + + private + + def original_dup; end +end + +# This class includes {AST::Processor::Mixin}; however, it is +# deprecated, since the module defines all of the behaviors that +# the processor includes. Any new libraries should use +# {AST::Processor::Mixin} instead of subclassing this. +# +# @deprecated Use {AST::Processor::Mixin} instead. +# +# source://ast//lib/ast/processor.rb#8 +class AST::Processor + include ::AST::Processor::Mixin +end + +# The processor module is a module which helps transforming one +# AST into another. In a nutshell, the {#process} method accepts +# a {Node} and dispatches it to a handler corresponding to its +# type, and returns a (possibly) updated variant of the node. +# +# The processor module has a set of associated design patterns. +# They are best explained with a concrete example. Let's define a +# simple arithmetic language and an AST format for it: +# +# Terminals (AST nodes which do not have other AST nodes inside): +# +# * `(integer )`, +# +# Nonterminals (AST nodes with other nodes as children): +# +# * `(add )`, +# * `(multiply )`, +# * `(divide )`, +# * `(negate )`, +# * `(store )`: stores value of `` +# into a variable named ``, +# * `(load )`: loads value of a variable named +# ``, +# * `(each ...)`: computes each of the ``s and +# prints the result. +# +# All AST nodes have the same Ruby class, and therefore they don't +# know how to traverse themselves. (A solution which dynamically +# checks the type of children is possible, but is slow and +# error-prone.) So, a class including the module which knows how +# to traverse the entire tree should be defined. Such classes +# have a handler for each nonterminal node which recursively +# processes children nodes: +# +# require 'ast' +# +# class ArithmeticsProcessor +# include AST::Processor::Mixin +# # This method traverses any binary operators such as (add) +# # or (multiply). +# def process_binary_op(node) +# # Children aren't decomposed automatically; it is +# # suggested to use Ruby multiple assignment expansion, +# # as it is very convenient here. +# left_expr, right_expr = *node +# +# # AST::Node#updated won't change node type if nil is +# # passed as a first argument, which allows to reuse the +# # same handler for multiple node types using `alias' +# # (below). +# node.updated(nil, [ +# process(left_expr), +# process(right_expr) +# ]) +# end +# alias_method :on_add, :process_binary_op +# alias_method :on_multiply, :process_binary_op +# alias_method :on_divide, :process_binary_op +# +# def on_negate(node) +# # It is also possible to use #process_all for more +# # compact code if every child is a Node. +# node.updated(nil, process_all(node)) +# end +# +# def on_store(node) +# expr, variable_name = *node +# +# # Note that variable_name is not a Node and thus isn't +# # passed to #process. +# node.updated(nil, [ +# process(expr), +# variable_name +# ]) +# end +# +# # (load) is effectively a terminal node, and so it does +# # not need an explicit handler, as the following is the +# # default behavior. Essentially, for any nodes that don't +# # have a defined handler, the node remains unchanged. +# def on_load(node) +# nil +# end +# +# def on_each(node) +# node.updated(nil, process_all(node)) +# end +# end +# +# Let's test our ArithmeticsProcessor: +# +# include AST::Sexp +# expr = s(:add, s(:integer, 2), s(:integer, 2)) +# +# p ArithmeticsProcessor.new.process(expr) == expr # => true +# +# As expected, it does not change anything at all. This isn't +# actually very useful, so let's now define a Calculator, which +# will compute the expression values: +# +# # This Processor folds nonterminal nodes and returns an +# # (integer) terminal node. +# class ArithmeticsCalculator < ArithmeticsProcessor +# def compute_op(node) +# # First, node children are processed and then unpacked +# # to local variables. +# nodes = process_all(node) +# +# if nodes.all? { |node| node.type == :integer } +# # If each of those nodes represents a literal, we can +# # fold this node! +# values = nodes.map { |node| node.children.first } +# AST::Node.new(:integer, [ +# yield(values) +# ]) +# else +# # Otherwise, we can just leave the current node in the +# # tree and only update it with processed children +# # nodes, which can be partially folded. +# node.updated(nil, nodes) +# end +# end +# +# def on_add(node) +# compute_op(node) { |left, right| left + right } +# end +# +# def on_multiply(node) +# compute_op(node) { |left, right| left * right } +# end +# end +# +# Let's check: +# +# p ArithmeticsCalculator.new.process(expr) # => (integer 4) +# +# Excellent, the calculator works! Now, a careful reader could +# notice that the ArithmeticsCalculator does not know how to +# divide numbers. What if we pass an expression with division to +# it? +# +# expr_with_division = \ +# s(:add, +# s(:integer, 1), +# s(:divide, +# s(:add, s(:integer, 8), s(:integer, 4)), +# s(:integer, 3))) # 1 + (8 + 4) / 3 +# +# folded_expr_with_division = ArithmeticsCalculator.new.process(expr_with_division) +# p folded_expr_with_division +# # => (add +# # (integer 1) +# # (divide +# # (integer 12) +# # (integer 3))) +# +# As you can see, the expression was folded _partially_: the inner +# `(add)` node which could be computed was folded to +# `(integer 12)`, the `(divide)` node is left as-is because there +# is no computing handler for it, and the root `(add)` node was +# also left as it is because some of its children were not +# literals. +# +# Note that this partial folding is only possible because the +# _data_ format, i.e. the format in which the computed values of +# the nodes are represented, is the same as the AST itself. +# +# Let's extend our ArithmeticsCalculator class further. +# +# class ArithmeticsCalculator +# def on_divide(node) +# compute_op(node) { |left, right| left / right } +# end +# +# def on_negate(node) +# # Note how #compute_op works regardless of the operator +# # arity. +# compute_op(node) { |value| -value } +# end +# end +# +# Now, let's apply our renewed ArithmeticsCalculator to a partial +# result of previous evaluation: +# +# p ArithmeticsCalculator.new.process(expr_with_division) # => (integer 5) +# +# Five! Excellent. This is also pretty much how CRuby 1.8 executed +# its programs. +# +# Now, let's do some automated bug searching. Division by zero is +# an error, right? So if we could detect that someone has divided +# by zero before the program is even run, that could save some +# debugging time. +# +# class DivisionByZeroVerifier < ArithmeticsProcessor +# class VerificationFailure < Exception; end +# +# def on_divide(node) +# # You need to process the children to handle nested divisions +# # such as: +# # (divide +# # (integer 1) +# # (divide (integer 1) (integer 0)) +# left, right = process_all(node) +# +# if right.type == :integer && +# right.children.first == 0 +# raise VerificationFailure, "Ouch! This code divides by zero." +# end +# end +# +# def divides_by_zero?(ast) +# process(ast) +# false +# rescue VerificationFailure +# true +# end +# end +# +# nice_expr = \ +# s(:divide, +# s(:add, s(:integer, 10), s(:integer, 2)), +# s(:integer, 4)) +# +# p DivisionByZeroVerifier.new.divides_by_zero?(nice_expr) +# # => false. Good. +# +# bad_expr = \ +# s(:add, s(:integer, 10), +# s(:divide, s(:integer, 1), s(:integer, 0))) +# +# p DivisionByZeroVerifier.new.divides_by_zero?(bad_expr) +# # => true. WHOOPS. DO NOT RUN THIS. +# +# Of course, this won't detect more complex cases... unless you +# use some partial evaluation before! The possibilites are +# endless. Have fun. +# +# source://ast//lib/ast/processor/mixin.rb#240 +module AST::Processor::Mixin + # Default handler. Does nothing. + # + # @param node [AST::Node] + # @return [AST::Node, nil] + # + # source://ast//lib/ast/processor/mixin.rb#284 + def handler_missing(node); end + + # Dispatches `node`. If a node has type `:foo`, then a handler + # named `on_foo` is invoked with one argument, the `node`; if + # there isn't such a handler, {#handler_missing} is invoked + # with the same argument. + # + # If the handler returns `nil`, `node` is returned; otherwise, + # the return value of the handler is passed along. + # + # @param node [AST::Node, nil] + # @return [AST::Node, nil] + # + # source://ast//lib/ast/processor/mixin.rb#251 + def process(node); end + + # {#process}es each node from `nodes` and returns an array of + # results. + # + # @param nodes [Array] + # @return [Array] + # + # source://ast//lib/ast/processor/mixin.rb#274 + def process_all(nodes); end +end + +# This simple module is very useful in the cases where one needs +# to define deeply nested ASTs from Ruby code, for example, in +# tests. It should be used like this: +# +# describe YourLanguage::AST do +# include Sexp +# +# it "should correctly parse expressions" do +# YourLanguage.parse("1 + 2 * 3").should == +# s(:add, +# s(:integer, 1), +# s(:multiply, +# s(:integer, 2), +# s(:integer, 3))) +# end +# end +# +# This way the amount of boilerplate code is greatly reduced. +# +# source://ast//lib/ast/sexp.rb#20 +module AST::Sexp + # Creates a {Node} with type `type` and children `children`. + # Note that the resulting node is of the type AST::Node and not a + # subclass. + # This would not pose a problem with comparisons, as {Node#==} + # ignores metadata. + # + # source://ast//lib/ast/sexp.rb#26 + def s(type, *children); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/base64@0.1.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/base64@0.1.1.rbi new file mode 100755 index 000000000..58bcecc24 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/base64@0.1.1.rbi @@ -0,0 +1,172 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `base64` gem. +# Please instead update this file by running `bin/tapioca gem base64`. + +# The Base64 module provides for the encoding (#encode64, #strict_encode64, +# #urlsafe_encode64) and decoding (#decode64, #strict_decode64, +# #urlsafe_decode64) of binary data using a Base64 representation. +# +# == Example +# +# A simple encoding and decoding. +# +# require "base64" +# +# enc = Base64.encode64('Send reinforcements') +# # -> "U2VuZCByZWluZm9yY2VtZW50cw==\n" +# plain = Base64.decode64(enc) +# # -> "Send reinforcements" +# +# The purpose of using base64 to encode data is that it translates any +# binary data into purely printable characters. +module Base64 + private + + # Returns the Base64-decoded version of +str+. + # This method complies with RFC 2045. + # Characters outside the base alphabet are ignored. + # + # require 'base64' + # str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' + + # 'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' + + # 'ZSB0aHJlZQpBbmQgc28gb24uLi4K' + # puts Base64.decode64(str) + # + # Generates: + # + # This is line one + # This is line two + # This is line three + # And so on... + # + # source://base64//base64.rb#58 + def decode64(str); end + + # Returns the Base64-encoded version of +bin+. + # This method complies with RFC 2045. + # Line feeds are added to every 60 encoded characters. + # + # require 'base64' + # Base64.encode64("Now is the time for all good coders\nto learn Ruby") + # + # Generates: + # + # Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g + # UnVieQ== + # + # source://base64//base64.rb#38 + def encode64(bin); end + + # Returns the Base64-decoded version of +str+. + # This method complies with RFC 4648. + # ArgumentError is raised if +str+ is incorrectly padded or contains + # non-alphabet characters. Note that CR or LF are also rejected. + # + # source://base64//base64.rb#73 + def strict_decode64(str); end + + # Returns the Base64-encoded version of +bin+. + # This method complies with RFC 4648. + # No line feeds are added. + # + # source://base64//base64.rb#65 + def strict_encode64(bin); end + + # Returns the Base64-decoded version of +str+. + # This method complies with ``Base 64 Encoding with URL and Filename Safe + # Alphabet'' in RFC 4648. + # The alphabet uses '-' instead of '+' and '_' instead of '/'. + # + # The padding character is optional. + # This method accepts both correctly-padded and unpadded input. + # Note that it still rejects incorrectly-padded input. + # + # source://base64//base64.rb#98 + def urlsafe_decode64(str); end + + # Returns the Base64-encoded version of +bin+. + # This method complies with ``Base 64 Encoding with URL and Filename Safe + # Alphabet'' in RFC 4648. + # The alphabet uses '-' instead of '+' and '_' instead of '/'. + # Note that the result can still contain '='. + # You can remove the padding by setting +padding+ as false. + # + # source://base64//base64.rb#83 + def urlsafe_encode64(bin, padding: T.unsafe(nil)); end + + class << self + # Returns the Base64-decoded version of +str+. + # This method complies with RFC 2045. + # Characters outside the base alphabet are ignored. + # + # require 'base64' + # str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' + + # 'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' + + # 'ZSB0aHJlZQpBbmQgc28gb24uLi4K' + # puts Base64.decode64(str) + # + # Generates: + # + # This is line one + # This is line two + # This is line three + # And so on... + # + # source://base64//base64.rb#58 + def decode64(str); end + + # Returns the Base64-encoded version of +bin+. + # This method complies with RFC 2045. + # Line feeds are added to every 60 encoded characters. + # + # require 'base64' + # Base64.encode64("Now is the time for all good coders\nto learn Ruby") + # + # Generates: + # + # Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g + # UnVieQ== + # + # source://base64//base64.rb#38 + def encode64(bin); end + + # Returns the Base64-decoded version of +str+. + # This method complies with RFC 4648. + # ArgumentError is raised if +str+ is incorrectly padded or contains + # non-alphabet characters. Note that CR or LF are also rejected. + # + # source://base64//base64.rb#73 + def strict_decode64(str); end + + # Returns the Base64-encoded version of +bin+. + # This method complies with RFC 4648. + # No line feeds are added. + # + # source://base64//base64.rb#65 + def strict_encode64(bin); end + + # Returns the Base64-decoded version of +str+. + # This method complies with ``Base 64 Encoding with URL and Filename Safe + # Alphabet'' in RFC 4648. + # The alphabet uses '-' instead of '+' and '_' instead of '/'. + # + # The padding character is optional. + # This method accepts both correctly-padded and unpadded input. + # Note that it still rejects incorrectly-padded input. + # + # source://base64//base64.rb#98 + def urlsafe_decode64(str); end + + # Returns the Base64-encoded version of +bin+. + # This method complies with ``Base 64 Encoding with URL and Filename Safe + # Alphabet'' in RFC 4648. + # The alphabet uses '-' instead of '+' and '_' instead of '/'. + # Note that the result can still contain '='. + # You can remove the padding by setting +padding+ as false. + # + # source://base64//base64.rb#83 + def urlsafe_encode64(bin, padding: T.unsafe(nil)); end + end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/erubi@1.12.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/erubi@1.12.0.rbi new file mode 100755 index 000000000..c52738faa --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/erubi@1.12.0.rbi @@ -0,0 +1,145 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `erubi` gem. +# Please instead update this file by running `bin/tapioca gem erubi`. + +# source://erubi//lib/erubi.rb#3 +module Erubi + class << self + def h(_arg0); end + end +end + +# source://erubi//lib/erubi.rb#54 +class Erubi::Engine + # Initialize a new Erubi::Engine. Options: + # +:bufval+ :: The value to use for the buffer variable, as a string (default '::String.new'). + # +:bufvar+ :: The variable name to use for the buffer variable, as a string. + # +:chain_appends+ :: Whether to chain <<
calls to the buffer variable. Offers better + # performance, but can cause issues when the buffer variable is reassigned during + # template rendering (default +false+). + # +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar. + # +:escapefunc+ :: The function to use for escaping, as a string (default: '::Erubi.h'). + # +:escape+ :: Whether to make <%= escape by default, and <%== not escape by default. + # +:escape_html+ :: Same as +:escape+, with lower priority. + # +:filename+ :: The filename for the template. + # the resulting source code. Note this may cause problems if you are wrapping the resulting + # source code in other code, because the magic comment only has an effect at the beginning of + # the file, and having the magic comment later in the file can trigger warnings. + # +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with .freeze + # (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older). + # Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled + # in order to improve performance. + # +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default '<%'). + # +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default '%>'). + # +:outvar+ :: Same as +:bufvar+, with lower priority. + # +:postamble+ :: The postamble for the template, by default returns the resulting source code. + # +:preamble+ :: The preamble for the template, by default initializes the buffer variable. + # +:regexp+ :: The regexp to use for scanning. + # +:src+ :: The initial value to use for the source code, an empty string by default. + # +:trim+ :: Whether to trim leading and trailing whitespace, true by default. + # + # @return [Engine] a new instance of Engine + # + # source://erubi//lib/erubi.rb#94 + def initialize(input, properties = T.unsafe(nil)); end + + # The variable name used for the buffer variable. + # + # source://erubi//lib/erubi.rb#65 + def bufvar; end + + # The filename of the template, if one was given. + # + # source://erubi//lib/erubi.rb#62 + def filename; end + + # The frozen ruby source code generated from the template, which can be evaled. + # + # source://erubi//lib/erubi.rb#59 + def src; end + + private + + # Add ruby code to the template + # + # source://erubi//lib/erubi.rb#226 + def add_code(code); end + + # Add the given ruby expression result to the template, + # escaping it based on the indicator given and escape flag. + # + # source://erubi//lib/erubi.rb#235 + def add_expression(indicator, code); end + + # Add the result of Ruby expression to the template + # + # source://erubi//lib/erubi.rb#244 + def add_expression_result(code); end + + # Add the escaped result of Ruby expression to the template + # + # source://erubi//lib/erubi.rb#249 + def add_expression_result_escaped(code); end + + # Add the given postamble to the src. Can be overridden in subclasses + # to make additional changes to src that depend on the current state. + # + # source://erubi//lib/erubi.rb#255 + def add_postamble(postamble); end + + # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization. + # Must be called with a string, cannot be called with nil (Rails's subclass depends on it). + # + # source://erubi//lib/erubi.rb#213 + def add_text(text); end + + # Raise an exception, as the base engine class does not support handling other indicators. + # + # @raise [ArgumentError] + # + # source://erubi//lib/erubi.rb#261 + def handle(indicator, code, tailch, rspace, lspace); end + + # Make sure that any current expression has been terminated. + # The default is to terminate all expressions, but when + # the chain_appends option is used, expressions may not be + # terminated. + # + # source://erubi//lib/erubi.rb#289 + def terminate_expression; end + + # Make sure the buffer variable is the target of the next append + # before yielding to the block. Mark that the buffer is the target + # of the next append after the block executes. + # + # This method should only be called if the block will result in + # code where << will append to the bufvar. + # + # source://erubi//lib/erubi.rb#271 + def with_buffer; end +end + +# The default regular expression used for scanning. +# +# source://erubi//lib/erubi.rb#56 +Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://erubi//lib/erubi.rb#17 +Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass) + +# source://erubi//lib/erubi.rb#15 +Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol) + +# source://erubi//lib/erubi.rb#8 +Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer) + +# source://erubi//lib/erubi.rb#9 +Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer) + +# source://erubi//lib/erubi.rb#16 +Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass) + +# source://erubi//lib/erubi.rb#4 +Erubi::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi b/ruby-client-sdk/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi new file mode 100755 index 000000000..dbc83e96c --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi @@ -0,0 +1,258 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `faraday-multipart` gem. +# Please instead update this file by running `bin/tapioca gem faraday-multipart`. + +# source://faraday-multipart//lib/faraday/multipart/version.rb#3 +module Faraday + class << self + # source://faraday/2.7.11/lib/faraday.rb#55 + def default_adapter; end + + # source://faraday/2.7.11/lib/faraday.rb#102 + def default_adapter=(adapter); end + + # source://faraday/2.7.11/lib/faraday.rb#59 + def default_adapter_options; end + + # source://faraday/2.7.11/lib/faraday.rb#59 + def default_adapter_options=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#120 + def default_connection; end + + # source://faraday/2.7.11/lib/faraday.rb#62 + def default_connection=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#127 + def default_connection_options; end + + # source://faraday/2.7.11/lib/faraday.rb#134 + def default_connection_options=(options); end + + # source://faraday/2.7.11/lib/faraday.rb#67 + def ignore_env_proxy; end + + # source://faraday/2.7.11/lib/faraday.rb#67 + def ignore_env_proxy=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#46 + def lib_path; end + + # source://faraday/2.7.11/lib/faraday.rb#46 + def lib_path=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#96 + def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end + + # source://faraday/2.7.11/lib/faraday.rb#107 + def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end + + # source://faraday/2.7.11/lib/faraday.rb#42 + def root_path; end + + # source://faraday/2.7.11/lib/faraday.rb#42 + def root_path=(_arg0); end + + private + + # source://faraday/2.7.11/lib/faraday.rb#143 + def method_missing(name, *args, &block); end + end +end + +# source://faraday-multipart//lib/faraday/multipart.rb#18 +Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO + +# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware +# +# source://faraday-multipart//lib/faraday/multipart.rb#15 +Faraday::FilePart = Multipart::Post::UploadIO + +# Main Faraday::Multipart module. +# +# source://faraday-multipart//lib/faraday/multipart/version.rb#5 +module Faraday::Multipart + class << self + # source://faraday-multipart//lib/faraday/multipart/version.rb#8 + def multipart_post_version; end + end +end + +# Similar to, but not compatible with CompositeReadIO provided by the +# multipart-post gem. +# https://github.com/nicksieger/multipart-post/blob/master/lib/composite_io.rb +# +# source://faraday-multipart//lib/faraday/multipart/file_part.rb#67 +class Faraday::Multipart::CompositeReadIO + # @return [CompositeReadIO] a new instance of CompositeReadIO + # + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#68 + def initialize(*parts); end + + # Close each of the IOs. + # + # @return [void] + # + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#111 + def close; end + + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#115 + def ensure_open_and_readable; end + + # @return [Integer] sum of the lengths of all the parts + # + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#75 + def length; end + + # Read from IOs in order until `length` bytes have been received. + # + # @param length [Integer, nil] + # @param outbuf [String, nil] + # + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#91 + def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end + + # Rewind each of the IOs and reset the index to 0. + # + # @return [void] + # + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#82 + def rewind; end + + private + + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#125 + def advance_io; end + + # source://faraday-multipart//lib/faraday/multipart/file_part.rb#121 + def current_io; end +end + +# source://faraday-multipart//lib/faraday/multipart/file_part.rb#55 +Faraday::Multipart::FilePart = Multipart::Post::UploadIO + +# Middleware for supporting multi-part requests. +# +# source://faraday-multipart//lib/faraday/multipart/middleware.rb#8 +class Faraday::Multipart::Middleware < ::Faraday::Request::UrlEncoded + # @return [Middleware] a new instance of Middleware + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#13 + def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end + + # Checks for files in the payload, otherwise leaves everything untouched. + # + # @param env [Faraday::Env] + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#21 + def call(env); end + + # @param env [Faraday::Env] + # @param params [Hash] + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#55 + def create_multipart(env, params); end + + # Returns true if obj is an enumerable with values that are multipart. + # + # @param obj [Object] + # @return [Boolean] + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#44 + def has_multipart?(obj); end + + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#67 + def part(boundary, key, value); end + + # @param params [Hash] + # @param prefix [String] + # @param pieces [Array] + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#83 + def process_params(params, prefix = T.unsafe(nil), pieces = T.unsafe(nil), &block); end + + # @param env [Faraday::Env] + # @return [Boolean] + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#32 + def process_request?(env); end + + # @return [String] + # + # source://faraday-multipart//lib/faraday/multipart/middleware.rb#76 + def unique_boundary; end +end + +# source://faraday-multipart//lib/faraday/multipart/middleware.rb#9 +Faraday::Multipart::Middleware::DEFAULT_BOUNDARY_PREFIX = T.let(T.unsafe(nil), String) + +# Multipart value used to POST data with a content type. +# +# source://faraday-multipart//lib/faraday/multipart/param_part.rb#6 +class Faraday::Multipart::ParamPart + # @param value [String] Uploaded content as a String. + # @param content_type [String] String content type of the value. + # @param content_id [String] Optional String of this value's Content-ID. + # @return [Faraday::ParamPart] + # + # source://faraday-multipart//lib/faraday/multipart/param_part.rb#12 + def initialize(value, content_type, content_id = T.unsafe(nil)); end + + # The value's content ID, if given. + # + # @return [String, nil] + # + # source://faraday-multipart//lib/faraday/multipart/param_part.rb#52 + def content_id; end + + # The value's content type. + # + # @return [String] + # + # source://faraday-multipart//lib/faraday/multipart/param_part.rb#47 + def content_type; end + + # Returns a Hash of String key/value pairs. + # + # @return [Hash] + # + # source://faraday-multipart//lib/faraday/multipart/param_part.rb#32 + def headers; end + + # Converts this value to a form part. + # + # @param boundary [String] String multipart boundary that must not exist in + # the content exactly. + # @param key [String] String key name for this value. + # @return [Faraday::Parts::Part] + # + # source://faraday-multipart//lib/faraday/multipart/param_part.rb#25 + def to_part(boundary, key); end + + # The content to upload. + # + # @return [String] + # + # source://faraday-multipart//lib/faraday/multipart/param_part.rb#42 + def value; end +end + +# source://faraday-multipart//lib/faraday/multipart/file_part.rb#56 +Faraday::Multipart::Parts = Multipart::Post::Parts + +# source://faraday-multipart//lib/faraday/multipart/version.rb#6 +Faraday::Multipart::VERSION = T.let(T.unsafe(nil), String) + +# source://faraday-multipart//lib/faraday/multipart.rb#16 +Faraday::ParamPart = Faraday::Multipart::ParamPart + +# source://faraday-multipart//lib/faraday/multipart.rb#17 +Faraday::Parts = Multipart::Post::Parts + +# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO +# For backwards compatibility, detect the gem version and use the right class +# +# source://faraday-multipart//lib/faraday/multipart.rb#21 +Faraday::UploadIO = Multipart::Post::UploadIO diff --git a/ruby-client-sdk/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi b/ruby-client-sdk/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi new file mode 100755 index 000000000..aa059e0c4 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi @@ -0,0 +1,146 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `faraday-net_http` gem. +# Please instead update this file by running `bin/tapioca gem faraday-net_http`. + +# source://faraday-net_http//lib/faraday/adapter/net_http.rb#12 +module Faraday + class << self + # source://faraday/2.7.11/lib/faraday.rb#55 + def default_adapter; end + + # source://faraday/2.7.11/lib/faraday.rb#102 + def default_adapter=(adapter); end + + # source://faraday/2.7.11/lib/faraday.rb#59 + def default_adapter_options; end + + # source://faraday/2.7.11/lib/faraday.rb#59 + def default_adapter_options=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#120 + def default_connection; end + + # source://faraday/2.7.11/lib/faraday.rb#62 + def default_connection=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#127 + def default_connection_options; end + + # source://faraday/2.7.11/lib/faraday.rb#134 + def default_connection_options=(options); end + + # source://faraday/2.7.11/lib/faraday.rb#67 + def ignore_env_proxy; end + + # source://faraday/2.7.11/lib/faraday.rb#67 + def ignore_env_proxy=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#46 + def lib_path; end + + # source://faraday/2.7.11/lib/faraday.rb#46 + def lib_path=(_arg0); end + + # source://faraday/2.7.11/lib/faraday.rb#96 + def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end + + # source://faraday/2.7.11/lib/faraday.rb#107 + def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end + + # source://faraday/2.7.11/lib/faraday.rb#42 + def root_path; end + + # source://faraday/2.7.11/lib/faraday.rb#42 + def root_path=(_arg0); end + + private + + # source://faraday/2.7.11/lib/faraday.rb#143 + def method_missing(name, *args, &block); end + end +end + +# source://faraday-net_http//lib/faraday/adapter/net_http.rb#13 +class Faraday::Adapter + # source://faraday/2.7.11/lib/faraday/adapter.rb#28 + def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end + + # source://faraday/2.7.11/lib/faraday/adapter.rb#55 + def call(env); end + + # source://faraday/2.7.11/lib/faraday/adapter.rb#50 + def close; end + + # source://faraday/2.7.11/lib/faraday/adapter.rb#41 + def connection(env); end + + private + + # source://faraday/2.7.11/lib/faraday/adapter.rb#85 + def request_timeout(type, options); end + + # source://faraday/2.7.11/lib/faraday/adapter.rb#62 + def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end +end + +# source://faraday-net_http//lib/faraday/adapter/net_http.rb#14 +class Faraday::Adapter::NetHttp < ::Faraday::Adapter + # @return [NetHttp] a new instance of NetHttp + # + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#38 + def initialize(app = T.unsafe(nil), opts = T.unsafe(nil), &block); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#43 + def build_connection(env); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#63 + def call(env); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#51 + def net_http_connection(env); end + + private + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#152 + def configure_request(http, req); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#135 + def configure_ssl(http, ssl); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#79 + def create_request(env); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#191 + def encoded_body(http_response); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#95 + def perform_request(http, env); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#109 + def request_with_wrapped_block(http, env); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#125 + def save_http_response(env, http_response); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#172 + def ssl_cert_store(ssl); end + + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#181 + def ssl_verify_mode(ssl); end + + # @return [Boolean] + # + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#203 + def verify_hostname_enabled?(http, ssl); end +end + +# source://faraday-net_http//lib/faraday/adapter/net_http.rb#36 +Faraday::Adapter::NetHttp::NET_HTTP_EXCEPTIONS = T.let(T.unsafe(nil), Array) + +# source://faraday-net_http//lib/faraday/net_http/version.rb#4 +module Faraday::NetHttp; end + +# source://faraday-net_http//lib/faraday/net_http/version.rb#5 +Faraday::NetHttp::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/faraday@2.7.11.rbi b/ruby-client-sdk/sorbet/rbi/gems/faraday@2.7.11.rbi new file mode 100755 index 000000000..5a017f284 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/faraday@2.7.11.rbi @@ -0,0 +1,2903 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `faraday` gem. +# Please instead update this file by running `bin/tapioca gem faraday`. + +# conn.get '/' +# +# source://faraday//lib/faraday/version.rb#3 +module Faraday + class << self + # @overload default_adapter + # @overload default_adapter= + # + # source://faraday//lib/faraday.rb#55 + def default_adapter; end + + # Documented elsewhere, see default_adapter reader + # + # source://faraday//lib/faraday.rb#102 + def default_adapter=(adapter); end + + # Option for the default_adapter + # @return [Hash] default_adapter options + # + # source://faraday//lib/faraday.rb#59 + def default_adapter_options; end + + # Option for the default_adapter + # @return [Hash] default_adapter options + # + # source://faraday//lib/faraday.rb#59 + def default_adapter_options=(_arg0); end + + # @overload default_connection + # @overload default_connection= + # + # source://faraday//lib/faraday.rb#120 + def default_connection; end + + # Documented below, see default_connection + # + # source://faraday//lib/faraday.rb#62 + def default_connection=(_arg0); end + + # Gets the default connection options used when calling {Faraday#new}. + # + # @return [Faraday::ConnectionOptions] + # + # source://faraday//lib/faraday.rb#127 + def default_connection_options; end + + # Sets the default options used when calling {Faraday#new}. + # + # @param options [Hash, Faraday::ConnectionOptions] + # + # source://faraday//lib/faraday.rb#134 + def default_connection_options=(options); end + + # Tells Faraday to ignore the environment proxy (http_proxy). + # Defaults to `false`. + # + # @return [Boolean] + # + # source://faraday//lib/faraday.rb#67 + def ignore_env_proxy; end + + # Tells Faraday to ignore the environment proxy (http_proxy). + # Defaults to `false`. + # + # @return [Boolean] + # + # source://faraday//lib/faraday.rb#67 + def ignore_env_proxy=(_arg0); end + + # Gets or sets the path that the Faraday libs are loaded from. + # + # @return [String] + # + # source://faraday//lib/faraday.rb#46 + def lib_path; end + + # Gets or sets the path that the Faraday libs are loaded from. + # + # @return [String] + # + # source://faraday//lib/faraday.rb#46 + def lib_path=(_arg0); end + + # Initializes a new {Connection}. + # + # @example With an URL argument + # Faraday.new 'http://faraday.com' + # # => Faraday::Connection to http://faraday.com + # @example With an URL argument and an options hash + # Faraday.new 'http://faraday.com', params: { page: 1 } + # # => Faraday::Connection to http://faraday.com?page=1 + # @example With everything in an options hash + # Faraday.new url: 'http://faraday.com', + # params: { page: 1 } + # # => Faraday::Connection to http://faraday.com?page=1 + # @option options + # @option options + # @option options + # @option options + # @option options + # @option options + # @param url [String, Hash] The optional String base URL to use as a prefix + # for all requests. Can also be the options Hash. Any of these + # values will be set on every request made, unless overridden + # for a specific request. + # @param options [Hash] + # @return [Faraday::Connection] + # + # source://faraday//lib/faraday.rb#96 + def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end + + # @return [Boolean] + # + # source://faraday//lib/faraday.rb#107 + def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end + + # The root path that Faraday is being loaded from. + # + # This is the root from where the libraries are auto-loaded. + # + # @return [String] + # + # source://faraday//lib/faraday.rb#42 + def root_path; end + + # The root path that Faraday is being loaded from. + # + # This is the root from where the libraries are auto-loaded. + # + # @return [String] + # + # source://faraday//lib/faraday.rb#42 + def root_path=(_arg0); end + + private + + # Internal: Proxies method calls on the Faraday constant to + # .default_connection. + # + # source://faraday//lib/faraday.rb#143 + def method_missing(name, *args, &block); end + end +end + +# Base class for all Faraday adapters. Adapters are +# responsible for fulfilling a Faraday request. +# +# source://faraday//lib/faraday/adapter.rb#6 +class Faraday::Adapter + extend ::Faraday::MiddlewareRegistry + extend ::Faraday::Adapter::Parallelism + + # @return [Adapter] a new instance of Adapter + # + # source://faraday//lib/faraday/adapter.rb#28 + def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end + + # source://faraday//lib/faraday/adapter.rb#55 + def call(env); end + + # Close any persistent connections. The adapter should still be usable + # after calling close. + # + # source://faraday//lib/faraday/adapter.rb#50 + def close; end + + # Yields or returns an adapter's configured connection. Depends on + # #build_connection being defined on this adapter. + # + # @param env [Faraday::Env, Hash] The env object for a faraday request. + # @return The return value of the given block, or the HTTP connection object + # if no block is given. + # @yield [conn] + # + # source://faraday//lib/faraday/adapter.rb#41 + def connection(env); end + + private + + # Fetches either a read, write, or open timeout setting. Defaults to the + # :timeout value if a more specific one is not given. + # + # @param type [Symbol] Describes which timeout setting to get: :read, + # :write, or :open. + # @param options [Hash] Hash containing Symbol keys like :timeout, + # :read_timeout, :write_timeout, or :open_timeout + # @return [Integer, nil] Timeout duration in seconds, or nil if no timeout + # has been set. + # + # source://faraday//lib/faraday/adapter.rb#85 + def request_timeout(type, options); end + + # source://faraday//lib/faraday/adapter.rb#62 + def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end +end + +# source://faraday//lib/faraday/adapter.rb#9 +Faraday::Adapter::CONTENT_LENGTH = T.let(T.unsafe(nil), String) + +# This module marks an Adapter as supporting parallel requests. +# +# source://faraday//lib/faraday/adapter.rb#12 +module Faraday::Adapter::Parallelism + # source://faraday//lib/faraday/adapter.rb#19 + def inherited(subclass); end + + # Sets the attribute supports_parallel + # + # @param value the value to set the attribute supports_parallel to. + # + # source://faraday//lib/faraday/adapter.rb#13 + def supports_parallel=(_arg0); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter.rb#15 + def supports_parallel?; end +end + +# source://faraday//lib/faraday/adapter.rb#93 +Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash) + +# @example +# test = Faraday::Connection.new do +# use Faraday::Adapter::Test do |stub| +# # Define matcher to match the request +# stub.get '/resource.json' do +# # return static content +# [200, {'Content-Type' => 'application/json'}, 'hi world'] +# end +# +# # response with content generated based on request +# stub.get '/showget' do |env| +# [200, {'Content-Type' => 'text/plain'}, env[:method].to_s] +# end +# +# # A regular expression can be used as matching filter +# stub.get /\A\/items\/(\d+)\z/ do |env, meta| +# # in case regular expression is used, an instance of MatchData +# # can be received +# [200, +# {'Content-Type' => 'text/plain'}, +# "showing item: #{meta[:match_data][1]}" +# ] +# end +# +# # Test the request body is the same as the stubbed body +# stub.post('/bar', 'name=YK&word=call') { [200, {}, ''] } +# +# # You can pass a proc as a stubbed body and check the request body in your way. +# # In this case, the proc should return true or false. +# stub.post('/foo', ->(request_body) do +# JSON.parse(request_body).slice('name') == { 'name' => 'YK' } }) { [200, {}, ''] +# end +# +# # You can set strict_mode to exactly match the stubbed requests. +# stub.strict_mode = true +# end +# end +# +# resp = test.get '/resource.json' +# resp.body # => 'hi world' +# +# resp = test.get '/showget' +# resp.body # => 'get' +# +# resp = test.get '/items/1' +# resp.body # => 'showing item: 1' +# +# resp = test.get '/items/2' +# resp.body # => 'showing item: 2' +# +# resp = test.post '/bar', 'name=YK&word=call' +# resp.status # => 200 +# +# resp = test.post '/foo', JSON.dump(name: 'YK', created_at: Time.now) +# resp.status # => 200 +# +# source://faraday//lib/faraday/adapter/test.rb#62 +class Faraday::Adapter::Test < ::Faraday::Adapter + # @return [Test] a new instance of Test + # + # source://faraday//lib/faraday/adapter/test.rb#258 + def initialize(app, stubs = T.unsafe(nil), &block); end + + # @param env [Faraday::Env] + # + # source://faraday//lib/faraday/adapter/test.rb#269 + def call(env); end + + # @yield [stubs] + # + # source://faraday//lib/faraday/adapter/test.rb#264 + def configure; end + + # Returns the value of attribute stubs. + # + # source://faraday//lib/faraday/adapter/test.rb#63 + def stubs; end + + # Sets the attribute stubs + # + # @param value the value to set the attribute stubs to. + # + # source://faraday//lib/faraday/adapter/test.rb#63 + def stubs=(_arg0); end +end + +# Stub request +# +# source://faraday//lib/faraday/adapter/test.rb#187 +class Faraday::Adapter::Test::Stub < ::Struct + # Returns the value of attribute block + # + # @return [Object] the current value of block + def block; end + + # Sets the attribute block + # + # @param value [Object] the value to set the attribute block to. + # @return [Object] the newly set value + def block=(_); end + + # Returns the value of attribute body + # + # @return [Object] the current value of body + def body; end + + # Sets the attribute body + # + # @param value [Object] the value to set the attribute body to. + # @return [Object] the newly set value + def body=(_); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#242 + def body_match?(request_body); end + + # Returns the value of attribute headers + # + # @return [Object] the current value of headers + def headers; end + + # Sets the attribute headers + # + # @param value [Object] the value to set the attribute headers to. + # @return [Object] the newly set value + def headers=(_); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#227 + def headers_match?(request_headers); end + + # Returns the value of attribute host + # + # @return [Object] the current value of host + def host; end + + # Sets the attribute host + # + # @param value [Object] the value to set the attribute host to. + # @return [Object] the newly set value + def host=(_); end + + # @param env [Faraday::Env] + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#189 + def matches?(env); end + + # @param env [Faraday::Env] + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#214 + def params_match?(env); end + + # Returns the value of attribute path + # + # @return [Object] the current value of path + def path; end + + # Sets the attribute path + # + # @param value [Object] the value to set the attribute path to. + # @return [Object] the newly set value + def path=(_); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#205 + def path_match?(request_path, meta); end + + # Returns the value of attribute query + # + # @return [Object] the current value of query + def query; end + + # Sets the attribute query + # + # @param value [Object] the value to set the attribute query to. + # @return [Object] the newly set value + def query=(_); end + + # Returns the value of attribute strict_mode + # + # @return [Object] the current value of strict_mode + def strict_mode; end + + # Sets the attribute strict_mode + # + # @param value [Object] the value to set the attribute strict_mode to. + # @return [Object] the newly set value + def strict_mode=(_); end + + # source://faraday//lib/faraday/adapter/test.rb#253 + def to_s; end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# A stack of Stubs +# +# source://faraday//lib/faraday/adapter/test.rb#66 +class Faraday::Adapter::Test::Stubs + # @return [Stubs] a new instance of Stubs + # @yield [_self] + # @yieldparam _self [Faraday::Adapter::Test::Stubs] the object that the method was called on + # + # source://faraday//lib/faraday/adapter/test.rb#70 + def initialize(strict_mode: T.unsafe(nil)); end + + # source://faraday//lib/faraday/adapter/test.rb#122 + def delete(path, headers = T.unsafe(nil), &block); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#79 + def empty?; end + + # source://faraday//lib/faraday/adapter/test.rb#102 + def get(path, headers = T.unsafe(nil), &block); end + + # source://faraday//lib/faraday/adapter/test.rb#106 + def head(path, headers = T.unsafe(nil), &block); end + + # @param env [Faraday::Env] + # + # source://faraday//lib/faraday/adapter/test.rb#84 + def match(env); end + + # source://faraday//lib/faraday/adapter/test.rb#126 + def options(path, headers = T.unsafe(nil), &block); end + + # source://faraday//lib/faraday/adapter/test.rb#118 + def patch(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end + + # source://faraday//lib/faraday/adapter/test.rb#110 + def post(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end + + # source://faraday//lib/faraday/adapter/test.rb#114 + def put(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end + + # Set strict_mode. If the value is true, this adapter tries to find matched requests strictly, + # which means that all of a path, parameters, and headers must be the same as an actual request. + # + # source://faraday//lib/faraday/adapter/test.rb#147 + def strict_mode=(value); end + + # Raises an error if any of the stubbed calls have not been made. + # + # source://faraday//lib/faraday/adapter/test.rb#131 + def verify_stubbed_calls; end + + protected + + # @param stack [Hash] + # @param env [Faraday::Env] + # @return [Boolean] + # + # source://faraday//lib/faraday/adapter/test.rb#177 + def matches?(stack, env); end + + # source://faraday//lib/faraday/adapter/test.rb#158 + def new_stub(request_method, path, headers = T.unsafe(nil), body = T.unsafe(nil), &block); end +end + +# source://faraday//lib/faraday/adapter/test.rb#67 +class Faraday::Adapter::Test::Stubs::NotFound < ::StandardError; end + +# AdapterRegistry registers adapter class names so they can be looked up by a +# String or Symbol name. +# +# source://faraday//lib/faraday/adapter_registry.rb#8 +class Faraday::AdapterRegistry + # @return [AdapterRegistry] a new instance of AdapterRegistry + # + # source://faraday//lib/faraday/adapter_registry.rb#9 + def initialize; end + + # source://faraday//lib/faraday/adapter_registry.rb#14 + def get(name); end + + # source://faraday//lib/faraday/adapter_registry.rb#23 + def set(klass, name = T.unsafe(nil)); end +end + +# Raised by Faraday::Response::RaiseError in case of a 400 response. +# +# source://faraday//lib/faraday/error.rb#96 +class Faraday::BadRequestError < ::Faraday::ClientError; end + +# source://faraday//lib/faraday.rb#34 +Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String) + +# Faraday client error class. Represents 4xx status responses. +# +# source://faraday//lib/faraday/error.rb#92 +class Faraday::ClientError < ::Faraday::Error; end + +# Raised by Faraday::Response::RaiseError in case of a 409 response. +# +# source://faraday//lib/faraday/error.rb#120 +class Faraday::ConflictError < ::Faraday::ClientError; end + +# Connection objects manage the default properties and the middleware +# stack for fulfilling an HTTP request. +# +# @example +# +# conn = Faraday::Connection.new 'http://httpbingo.org' +# +# # GET http://httpbingo.org/nigiri +# conn.get 'nigiri' +# # => # +# +# source://faraday//lib/faraday/connection.rb#15 +class Faraday::Connection + extend ::Forwardable + + # Initializes a new Faraday::Connection. + # + # @option options + # @option options + # @option options + # @option options + # @option options + # @option options + # @option options + # @option options + # @option options + # @param url [URI, String] URI or String base URL to use as a prefix for all + # requests (optional). + # @param options [Hash, Faraday::ConnectionOptions] + # @return [Connection] a new instance of Connection + # @yield [self] after all setup has been done + # + # source://faraday//lib/faraday/connection.rb#63 + def initialize(url = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def adapter(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def app(*args, **_arg1, &block); end + + # Build an absolute URL based on url_prefix. + # + # of the resulting url (default: nil). + # + # @param url [String, URI, nil] + # @param params [Faraday::Utils::ParamsHash] A Faraday::Utils::ParamsHash to + # replace the query values + # @return [URI] + # + # source://faraday//lib/faraday/connection.rb#470 + def build_exclusive_url(url = T.unsafe(nil), params = T.unsafe(nil), params_encoder = T.unsafe(nil)); end + + # Creates and configures the request object. + # + # @param method [Symbol] + # @return [Faraday::Request] + # @yield [Faraday::Request] if block given + # + # source://faraday//lib/faraday/connection.rb#453 + def build_request(method); end + + # Takes a relative url for a request and combines it with the defaults + # set on the connection instance. + # + # @example + # conn = Faraday::Connection.new { ... } + # conn.url_prefix = "https://httpbingo.org/api?token=abc" + # conn.scheme # => https + # conn.path_prefix # => "/api" + # + # conn.build_url("nigiri?page=2") + # # => https://httpbingo.org/api/nigiri?token=abc&page=2 + # + # conn.build_url("nigiri", page: 2) + # # => https://httpbingo.org/api/nigiri?token=abc&page=2 + # @param url [String, URI, nil] + # @param extra_params [Hash] + # + # source://faraday//lib/faraday/connection.rb#407 + def build_url(url = T.unsafe(nil), extra_params = T.unsafe(nil)); end + + # @return [Faraday::RackBuilder] Builder for this Connection. + # + # source://faraday//lib/faraday/connection.rb#31 + def builder; end + + # Closes the underlying resources and/or connections. In the case of + # persistent connections, this closes all currently open connections + # but does not prevent new connections from being made. + # + # source://faraday//lib/faraday/connection.rb#125 + def close; end + + # Check if the adapter is parallel-capable. + # + # @api private + # @return [Object, nil] a parallel manager or nil if yielded + # @yield if the adapter isn't parallel-capable, or if no adapter is set yet. + # + # source://faraday//lib/faraday/connection.rb#291 + def default_parallel_manager; end + + # Sets the default parallel manager for this connection. + # + # source://faraday//lib/faraday/connection.rb#40 + def default_parallel_manager=(_arg0); end + + # source://faraday//lib/faraday/connection.rb#199 + def delete(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end + + # Creates a duplicate of this Faraday::Connection. + # + # @api private + # @return [Faraday::Connection] + # + # source://faraday//lib/faraday/connection.rb#490 + def dup; end + + # source://faraday//lib/faraday/connection.rb#533 + def find_default_proxy; end + + # source://faraday//lib/faraday/connection.rb#199 + def get(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end + + # source://faraday//lib/faraday/connection.rb#199 + def head(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end + + # @return [Hash] unencoded HTTP header key/value pairs. + # + # source://faraday//lib/faraday/connection.rb#24 + def headers; end + + # Sets the Hash of unencoded HTTP header key/value pairs. + # + # @param hash [Hash] + # + # source://faraday//lib/faraday/connection.rb#114 + def headers=(hash); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def host(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def host=(*args, **_arg1, &block); end + + # Sets up the parallel manager to make a set of requests. + # + # @param manager [Object] The parallel manager that this Connection's + # Adapter uses. + # @return [void] + # @yield a block to execute multiple requests. + # + # source://faraday//lib/faraday/connection.rb#317 + def in_parallel(manager = T.unsafe(nil)); end + + # Determine if this Faraday::Connection can make parallel requests. + # + # @return [Boolean] + # + # source://faraday//lib/faraday/connection.rb#306 + def in_parallel?; end + + # source://faraday//lib/faraday/connection.rb#96 + def initialize_proxy(url, options); end + + # @example + # conn.options '/items/1' + # @overload options + # @overload options + # @return [Faraday::Response] + # @yield [Faraday::Request] for further request customizations + # + # source://faraday//lib/faraday/connection.rb#222 + def options(*args); end + + # @return [Object] the parallel manager for this Connection. + # + # source://faraday//lib/faraday/connection.rb#37 + def parallel_manager; end + + # @return [Hash] URI query unencoded key/value pairs. + # + # source://faraday//lib/faraday/connection.rb#21 + def params; end + + # Sets the Hash of URI query unencoded key/value pairs. + # + # @param hash [Hash] + # + # source://faraday//lib/faraday/connection.rb#108 + def params=(hash); end + + # source://faraday//lib/faraday/connection.rb#279 + def patch(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def path_prefix(*args, **_arg1, &block); end + + # Sets the path prefix and ensures that it always has a leading + # slash. + # + # @param value [String] + # @return [String] the new path prefix + # + # source://faraday//lib/faraday/connection.rb#382 + def path_prefix=(value); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def port(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def port=(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/connection.rb#279 + def post(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end + + # @return [Hash] proxy options. + # + # source://faraday//lib/faraday/connection.rb#43 + def proxy; end + + # Sets the Hash proxy options. + # + # @param new_value [Object] + # + # source://faraday//lib/faraday/connection.rb#333 + def proxy=(new_value); end + + # source://faraday//lib/faraday/connection.rb#541 + def proxy_for_request(url); end + + # source://faraday//lib/faraday/connection.rb#513 + def proxy_from_env(url); end + + # source://faraday//lib/faraday/connection.rb#279 + def put(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def request(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def response(*args, **_arg1, &block); end + + # Builds and runs the Faraday::Request. + # + # @param method [Symbol] HTTP method. + # @param url [String, URI, nil] String or URI to access. + # @param body [String, nil] The request body that will eventually be converted to + # a string. + # @param headers [Hash, nil] unencoded HTTP header key/value pairs. + # @return [Faraday::Response] + # + # source://faraday//lib/faraday/connection.rb#431 + def run_request(method, url, body, headers); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def scheme(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def scheme=(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/connection.rb#371 + def set_basic_auth(user, password); end + + # @return [Hash] SSL options. + # + # source://faraday//lib/faraday/connection.rb#34 + def ssl; end + + # @return [Boolean] + # + # source://faraday//lib/faraday/connection.rb#551 + def support_parallel?(adapter); end + + # source://faraday//lib/faraday/connection.rb#199 + def trace(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end + + # @return [String] a URI with the prefix used for all requests from this + # Connection. This includes a default host name, scheme, port, and path. + # + # source://faraday//lib/faraday/connection.rb#28 + def url_prefix; end + + # Parses the given URL with URI and stores the individual + # components in this connection. These components serve as defaults for + # requests made by this connection. + # + # @example + # + # conn = Faraday::Connection.new { ... } + # conn.url_prefix = "https://httpbingo.org/api" + # conn.scheme # => https + # conn.path_prefix # => "/api" + # + # conn.get("nigiri?page=2") # accesses https://httpbingo.org/api/nigiri + # @param url [String, URI] + # @param encoder [Object] + # + # source://faraday//lib/faraday/connection.rb#356 + def url_prefix=(url, encoder = T.unsafe(nil)); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def use(*args, **_arg1, &block); end + + # Yields username and password extracted from a URI if they both exist. + # + # @api private + # @param uri [URI] + # @return [void] + # @yield [username, password] any username and password + # @yieldparam username [String] any username from URI + # @yieldparam password [String] any password from URI + # + # source://faraday//lib/faraday/connection.rb#507 + def with_uri_credentials(uri); end +end + +# A Set of allowed HTTP verbs. +# +# source://faraday//lib/faraday/connection.rb#17 +Faraday::Connection::METHODS = T.let(T.unsafe(nil), Set) + +# source://faraday//lib/faraday/connection.rb#18 +Faraday::Connection::USER_AGENT = T.let(T.unsafe(nil), String) + +# A unified error for failed connections. +# +# source://faraday//lib/faraday/error.rb#147 +class Faraday::ConnectionFailed < ::Faraday::Error; end + +# ConnectionOptions contains the configurable properties for a Faraday +# connection object. +# +# source://faraday//lib/faraday/options/connection_options.rb#8 +class Faraday::ConnectionOptions < ::Faraday::Options + def builder; end + def builder=(_); end + + # source://faraday//lib/faraday/options.rb#178 + def builder_class; end + + def builder_class=(_); end + def headers; end + def headers=(_); end + + # source://faraday//lib/faraday/options/connection_options.rb#19 + def new_builder(block); end + + def parallel_manager; end + def parallel_manager=(_); end + def params; end + def params=(_); end + def proxy; end + def proxy=(_); end + + # source://faraday//lib/faraday/options.rb#178 + def request; end + + def request=(_); end + + # source://faraday//lib/faraday/options.rb#178 + def ssl; end + + def ssl=(_); end + def url; end + def url=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Sub-module for decoding query-string into parameters. +# +# source://faraday//lib/faraday/encoders/nested_params_encoder.rb#81 +module Faraday::DecodeMethods + # @param query [nil, String] + # @raise [TypeError] if the nesting is incorrect + # @return [Array] the decoded params + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#87 + def decode(query); end + + protected + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#144 + def add_to_context(is_array, context, value, subkey); end + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#107 + def decode_pair(key, value, context); end + + # Internal: convert a nested hash with purely numeric keys into an array. + # FIXME: this is not compatible with Rack::Utils.parse_nested_query + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#151 + def dehash(hash, depth); end + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#139 + def match_context(context, subkey); end + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#129 + def new_context(subkey, is_array, context); end + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#119 + def prepare_context(context, subkey, is_array, last_subkey); end +end + +# source://faraday//lib/faraday/encoders/nested_params_encoder.rb#105 +Faraday::DecodeMethods::SUBKEYS_REGEX = T.let(T.unsafe(nil), Regexp) + +# Sub-module for encoding parameters into query-string. +# +# source://faraday//lib/faraday/encoders/nested_params_encoder.rb#5 +module Faraday::EncodeMethods + # @param params [nil, Array, #to_hash] parameters to be encoded + # @raise [TypeError] if params can not be converted to a Hash + # @return [String] the encoded params + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#11 + def encode(params); end + + protected + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#64 + def encode_array(parent, value); end + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#53 + def encode_hash(parent, value); end + + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#40 + def encode_pair(parent, value); end +end + +# source://faraday//lib/faraday/options/env.rb#57 +class Faraday::Env < ::Faraday::Options + extend ::Forwardable + + # source://faraday//lib/faraday/options/env.rb#89 + def [](key); end + + # source://faraday//lib/faraday/options/env.rb#101 + def []=(key, value); end + + # string. + # + # @return [String] The request body that will eventually be converted to a + # + # source://faraday//lib/faraday/options/env.rb#118 + def body; end + + # string. + # + # @return [String] The request body that will eventually be converted to a + # + # source://faraday//lib/faraday/options/env.rb#122 + def body=(value); end + + # source://faraday//lib/faraday/options/env.rb#138 + def clear_body; end + + # source://faraday//lib/faraday/options/env.rb#114 + def current_body; end + + # source://faraday//lib/faraday/options/env.rb#184 + def custom_members; end + + # source://faraday//lib/faraday/options/env.rb#190 + def in_member_set?(key); end + + # source://faraday//lib/faraday/options/env.rb#154 + def inspect; end + + # @return [Symbol] HTTP method (`:get`, `:post`) + def method; end + + # @return [Symbol] HTTP method (`:get`, `:post`) + def method=(_); end + + # source://faraday//lib/faraday/options/env.rb#133 + def needs_body?; end + + # source://faraday//lib/faraday/options/env.rb#150 + def parallel?; end + + # @return [Object] sent if the connection is in parallel mode + def parallel_manager; end + + # @return [Object] sent if the connection is in parallel mode + def parallel_manager=(_); end + + # @return [Hash] + def params; end + + # @return [Hash] + def params=(_); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def params_encoder(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/options/env.rb#145 + def parse_body?; end + + # @return [String] + def reason_phrase; end + + # @return [String] + def reason_phrase=(_); end + + # Options for configuring the request. + # + # - `:timeout` - time limit for the entire request (Integer in + # seconds) + # - `:open_timeout` - time limit for just the connection phase (e.g. + # handshake) (Integer in seconds) + # - `:read_timeout` - time limit for the first response byte received from + # the server (Integer in seconds) + # - `:write_timeout` - time limit for the client to send the request to the + # server (Integer in seconds) + # - `:on_data` - Proc for streaming + # - `:proxy` - Hash of proxy options + # - `:uri` - Proxy server URI + # - `:user` - Proxy server username + # - `:password` - Proxy server password + # + # @return [Hash] options for configuring the request. + def request; end + + # Options for configuring the request. + # + # - `:timeout` - time limit for the entire request (Integer in + # seconds) + # - `:open_timeout` - time limit for just the connection phase (e.g. + # handshake) (Integer in seconds) + # - `:read_timeout` - time limit for the first response byte received from + # the server (Integer in seconds) + # - `:write_timeout` - time limit for the client to send the request to the + # server (Integer in seconds) + # - `:on_data` - Proc for streaming + # - `:proxy` - Hash of proxy options + # - `:uri` - Proxy server URI + # - `:user` - Proxy server username + # - `:password` - Proxy server password + # + # @return [Hash] options for configuring the request. + def request=(_); end + + def request_body; end + def request_body=(_); end + + # @return [Hash] HTTP Headers to be sent to the server. + def request_headers; end + + # @return [Hash] HTTP Headers to be sent to the server. + def request_headers=(_); end + + # @return [Response] + def response; end + + # @return [Response] + def response=(_); end + + def response_body; end + def response_body=(_); end + + # @return [Hash] HTTP headers from the server + def response_headers; end + + # @return [Hash] HTTP headers from the server + def response_headers=(_); end + + # @return [Hash] options for configuring SSL requests + def ssl; end + + # @return [Hash] options for configuring SSL requests + def ssl=(_); end + + # @return [Integer] HTTP response status code + def status; end + + # @return [Integer] HTTP response status code + def status=(_); end + + # source://faraday//lib/faraday/options/env.rb#169 + def stream_response(&block); end + + # source://faraday//lib/faraday/options/env.rb#165 + def stream_response?; end + + # source://faraday//lib/faraday/options/env.rb#127 + def success?; end + + # @return [URI] URI instance for the current request. + def url; end + + # @return [URI] URI instance for the current request. + def url=(_); end + + class << self + def [](*_arg0); end + + # source://faraday//lib/faraday/options/env.rb#80 + def from(value); end + + def inspect; end + def keyword_init?; end + + # source://faraday//lib/faraday/options/env.rb#200 + def member_set; end + + def members; end + def new(*_arg0); end + end +end + +# source://faraday//lib/faraday/options/env.rb#61 +Faraday::Env::ContentLength = T.let(T.unsafe(nil), String) + +# source://faraday//lib/faraday/options/env.rb#67 +Faraday::Env::MethodsWithBodies = T.let(T.unsafe(nil), Set) + +# source://faraday//lib/faraday/options/env.rb#62 +Faraday::Env::StatusesWithoutBody = T.let(T.unsafe(nil), Set) + +# source://faraday//lib/faraday/options/env.rb#63 +Faraday::Env::SuccessfulStatuses = T.let(T.unsafe(nil), Range) + +# Faraday error base class. +# +# source://faraday//lib/faraday/error.rb#6 +class Faraday::Error < ::StandardError + # @return [Error] a new instance of Error + # + # source://faraday//lib/faraday/error.rb#9 + def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end + + # source://faraday//lib/faraday/error.rb#15 + def backtrace; end + + # source://faraday//lib/faraday/error.rb#23 + def inspect; end + + # Returns the value of attribute response. + # + # source://faraday//lib/faraday/error.rb#7 + def response; end + + # source://faraday//lib/faraday/error.rb#43 + def response_body; end + + # source://faraday//lib/faraday/error.rb#37 + def response_headers; end + + # source://faraday//lib/faraday/error.rb#31 + def response_status; end + + # Returns the value of attribute wrapped_exception. + # + # source://faraday//lib/faraday/error.rb#7 + def wrapped_exception; end + + protected + + # Pulls out potential parent exception and response hash. + # + # source://faraday//lib/faraday/error.rb#81 + def exc_msg_and_response(exc, response = T.unsafe(nil)); end + + # Pulls out potential parent exception and response hash, storing them in + # instance variables. + # exc - Either an Exception, a string message, or a response hash. + # response - Hash + # :status - Optional integer HTTP response status + # :headers - String key/value hash of HTTP response header + # values. + # :body - Optional string HTTP response body. + # :request - Hash + # :method - Symbol with the request HTTP method. + # :url - URI object with the url requested. + # :url_path - String with the url path requested. + # :params - String key/value hash of query params + # present in the request. + # :headers - String key/value hash of HTTP request + # header values. + # :body - String HTTP request body. + # + # If a subclass has to call this, then it should pass a string message + # to `super`. See NilStatusError. + # + # source://faraday//lib/faraday/error.rb#71 + def exc_msg_and_response!(exc, response = T.unsafe(nil)); end +end + +# FlatParamsEncoder manages URI params as a flat hash. Any Array values repeat +# the parameter multiple times. +# +# source://faraday//lib/faraday/encoders/flat_params_encoder.rb#6 +module Faraday::FlatParamsEncoder + class << self + # Decode converts the given URI querystring into a hash. + # + # @example + # + # decode('a=one&a=two&a=three&b=true&c=C') + # # => {"a"=>["one", "two", "three"], "b"=>"true", "c"=>"C"} + # @param query [String] query arguments to parse. + # @return [Hash] parsed keys and value strings from the querystring. + # + # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#74 + def decode(query); end + + # Encode converts the given param into a URI querystring. Keys and values + # will converted to strings and appropriately escaped for the URI. + # + # @example + # + # encode({a: %w[one two three], b: true, c: "C"}) + # # => 'a=one&a=two&a=three&b=true&c=C' + # @param params [Hash] query arguments to convert. + # @return [String] the URI querystring (without the leading '?') + # + # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#23 + def encode(params); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def escape(*args, **_arg1, &block); end + + # Returns the value of attribute sort_params. + # + # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99 + def sort_params; end + + # Sets the attribute sort_params + # + # @param value the value to set the attribute sort_params to. + # + # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99 + def sort_params=(_arg0); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def unescape(*args, **_arg1, &block); end + end +end + +# Raised by Faraday::Response::RaiseError in case of a 403 response. +# +# source://faraday//lib/faraday/error.rb#104 +class Faraday::ForbiddenError < ::Faraday::ClientError; end + +# source://faraday//lib/faraday/logging/formatter.rb#6 +module Faraday::Logging; end + +# Serves as an integration point to customize logging +# +# source://faraday//lib/faraday/logging/formatter.rb#8 +class Faraday::Logging::Formatter + extend ::Forwardable + + # @return [Formatter] a new instance of Formatter + # + # source://faraday//lib/faraday/logging/formatter.rb#14 + def initialize(logger:, options:); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def debug(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def error(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/logging/formatter.rb#41 + def exception(exc); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def fatal(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/logging/formatter.rb#52 + def filter(filter_word, filter_replacement); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def info(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/logging/formatter.rb#25 + def request(env); end + + # source://faraday//lib/faraday/logging/formatter.rb#34 + def response(env); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def warn(*args, **_arg1, &block); end + + private + + # source://faraday//lib/faraday/logging/formatter.rb#98 + def apply_filters(output); end + + # source://faraday//lib/faraday/logging/formatter.rb#64 + def dump_body(body); end + + # source://faraday//lib/faraday/logging/formatter.rb#58 + def dump_headers(headers); end + + # source://faraday//lib/faraday/logging/formatter.rb#113 + def log_body(type, body); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/logging/formatter.rb#85 + def log_body?(type); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/logging/formatter.rb#94 + def log_errors?; end + + # source://faraday//lib/faraday/logging/formatter.rb#109 + def log_headers(type, headers); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/logging/formatter.rb#76 + def log_headers?(type); end + + # source://faraday//lib/faraday/logging/formatter.rb#105 + def log_level; end + + # source://faraday//lib/faraday/logging/formatter.rb#72 + def pretty_inspect(body); end +end + +# source://faraday//lib/faraday/logging/formatter.rb#11 +Faraday::Logging::Formatter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://faraday//lib/faraday/methods.rb#5 +Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array) + +# source://faraday//lib/faraday/methods.rb#4 +Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array) + +# Middleware is the basic base class of any Faraday middleware. +# +# source://faraday//lib/faraday/middleware.rb#5 +class Faraday::Middleware + extend ::Faraday::MiddlewareRegistry + + # @return [Middleware] a new instance of Middleware + # + # source://faraday//lib/faraday/middleware.rb#10 + def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end + + # Returns the value of attribute app. + # + # source://faraday//lib/faraday/middleware.rb#8 + def app; end + + # source://faraday//lib/faraday/middleware.rb#15 + def call(env); end + + # source://faraday//lib/faraday/middleware.rb#25 + def close; end + + # Returns the value of attribute options. + # + # source://faraday//lib/faraday/middleware.rb#8 + def options; end +end + +# Adds the ability for other modules to register and lookup +# middleware classes. +# +# source://faraday//lib/faraday/middleware_registry.rb#8 +module Faraday::MiddlewareRegistry + # Lookup middleware class with a registered Symbol shortcut. + # + # @example + # + # module Faraday + # class Whatever < Middleware + # register_middleware(foo: Whatever) + # end + # end + # + # Faraday::Middleware.lookup_middleware(:foo) + # # => Faraday::Whatever + # @param key [Symbol] key for the registered middleware. + # @raise [Faraday::Error] if given key is not registered + # @return [Class] a middleware Class. + # + # source://faraday//lib/faraday/middleware_registry.rb#55 + def lookup_middleware(key); end + + # Register middleware class(es) on the current module. + # + # @example Lookup by a constant + # + # module Faraday + # class Whatever < Middleware + # # Middleware looked up by :foo returns Faraday::Whatever::Foo. + # register_middleware(foo: Whatever) + # end + # end + # @param mappings [Hash] Middleware mappings from a lookup symbol to a middleware class. + # @return [void] + # + # source://faraday//lib/faraday/middleware_registry.rb#26 + def register_middleware(**mappings); end + + # source://faraday//lib/faraday/middleware_registry.rb#9 + def registered_middleware; end + + # Unregister a previously registered middleware class. + # + # @param key [Symbol] key for the registered middleware. + # + # source://faraday//lib/faraday/middleware_registry.rb#35 + def unregister_middleware(key); end + + private + + # source://faraday//lib/faraday/middleware_registry.rb#67 + def load_middleware(key); end + + # source://faraday//lib/faraday/middleware_registry.rb#62 + def middleware_mutex(&block); end +end + +# This is the default encoder for Faraday requests. +# Using this encoder, parameters will be encoded respecting their structure, +# so you can send objects such as Arrays or Hashes as parameters +# for your requests. +# +# source://faraday//lib/faraday/encoders/nested_params_encoder.rb#168 +module Faraday::NestedParamsEncoder + extend ::Faraday::EncodeMethods + extend ::Faraday::DecodeMethods + + class << self + # Returns the value of attribute array_indices. + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170 + def array_indices; end + + # Sets the attribute array_indices + # + # @param value the value to set the attribute array_indices to. + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170 + def array_indices=(_arg0); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def escape(*args, **_arg1, &block); end + + # Returns the value of attribute sort_params. + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170 + def sort_params; end + + # Sets the attribute sort_params + # + # @param value the value to set the attribute sort_params to. + # + # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170 + def sort_params=(_arg0); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def unescape(*args, **_arg1, &block); end + end +end + +# Raised by Faraday::Response::RaiseError in case of a nil status in response. +# +# source://faraday//lib/faraday/error.rb#139 +class Faraday::NilStatusError < ::Faraday::ServerError + # @return [NilStatusError] a new instance of NilStatusError + # + # source://faraday//lib/faraday/error.rb#140 + def initialize(exc, response = T.unsafe(nil)); end +end + +# Subclasses Struct with some special helpers for converting from a Hash to +# a Struct. +# +# source://faraday//lib/faraday/options.rb#6 +class Faraday::Options < ::Struct + # source://faraday//lib/faraday/options.rb#186 + def [](key); end + + # Public + # + # source://faraday//lib/faraday/options.rb#46 + def clear; end + + # Public + # + # source://faraday//lib/faraday/options.rb#71 + def deep_dup; end + + # Public + # + # source://faraday//lib/faraday/options.rb#39 + def delete(key); end + + # Public + # + # source://faraday//lib/faraday/options.rb#13 + def each; end + + # Public + # + # source://faraday//lib/faraday/options.rb#106 + def each_key(&block); end + + # Public + # + # source://faraday//lib/faraday/options.rb#120 + def each_value(&block); end + + # Public + # + # @return [Boolean] + # + # source://faraday//lib/faraday/options.rb#101 + def empty?; end + + # Public + # + # source://faraday//lib/faraday/options.rb#76 + def fetch(key, *args); end + + # Public + # + # @return [Boolean] + # + # source://faraday//lib/faraday/options.rb#113 + def has_key?(key); end + + # Public + # + # @return [Boolean] + # + # source://faraday//lib/faraday/options.rb#127 + def has_value?(value); end + + # Internal + # + # source://faraday//lib/faraday/options.rb#144 + def inspect; end + + # Public + # + # @return [Boolean] + # + # source://faraday//lib/faraday/options.rb#113 + def key?(key); end + + # Public + # + # source://faraday//lib/faraday/options.rb#96 + def keys; end + + # Public + # + # source://faraday//lib/faraday/options.rb#66 + def merge(other); end + + # Public + # + # source://faraday//lib/faraday/options.rb#51 + def merge!(other); end + + # source://faraday//lib/faraday/options.rb#195 + def symbolized_key_set; end + + # Public + # + # source://faraday//lib/faraday/options.rb#134 + def to_hash; end + + # Public + # + # source://faraday//lib/faraday/options.rb#22 + def update(obj); end + + # Public + # + # @return [Boolean] + # + # source://faraday//lib/faraday/options.rb#127 + def value?(value); end + + # Public + # + # source://faraday//lib/faraday/options.rb#91 + def values_at(*keys); end + + class << self + # Internal + # + # source://faraday//lib/faraday/options.rb#166 + def attribute_options; end + + # source://faraday//lib/faraday/options.rb#205 + def fetch_error_class; end + + # Public + # + # source://faraday//lib/faraday/options.rb#8 + def from(value); end + + # @private + # + # source://faraday//lib/faraday/options.rb#199 + def inherited(subclass); end + + # source://faraday//lib/faraday/options.rb#170 + def memoized(key, &block); end + + # source://faraday//lib/faraday/options.rb#182 + def memoized_attributes; end + + # Internal + # + # source://faraday//lib/faraday/options.rb#156 + def options(mapping); end + + # Internal + # + # source://faraday//lib/faraday/options.rb#161 + def options_for(key); end + end +end + +# Raised by middlewares that parse the response, like the JSON response middleware. +# +# source://faraday//lib/faraday/error.rb#155 +class Faraday::ParsingError < ::Faraday::Error; end + +# Raised by Faraday::Response::RaiseError in case of a 407 response. +# +# source://faraday//lib/faraday/error.rb#112 +class Faraday::ProxyAuthError < ::Faraday::ClientError; end + +# ProxyOptions contains the configurable properties for the proxy +# configuration used when making an HTTP request. +# +# source://faraday//lib/faraday/options/proxy_options.rb#8 +class Faraday::ProxyOptions < ::Faraday::Options + extend ::Forwardable + + # source://forwardable/1.3.3/forwardable.rb#231 + def host(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def host=(*args, **_arg1, &block); end + + # source://faraday//lib/faraday/options.rb#178 + def password; end + + def password=(_); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def path(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def path=(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def port(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def port=(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def scheme(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def scheme=(*args, **_arg1, &block); end + + def uri; end + def uri=(_); end + + # source://faraday//lib/faraday/options.rb#178 + def user; end + + def user=(_); end + + class << self + def [](*_arg0); end + + # source://faraday//lib/faraday/options/proxy_options.rb#13 + def from(value); end + + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# A Builder that processes requests into responses by passing through an inner +# middleware stack (heavily inspired by Rack). +# +# @example +# Faraday::Connection.new(url: 'http://httpbingo.org') do |builder| +# builder.request :url_encoded # Faraday::Request::UrlEncoded +# builder.adapter :net_http # Faraday::Adapter::NetHttp +# end +# +# source://faraday//lib/faraday/rack_builder.rb#15 +class Faraday::RackBuilder + # @return [RackBuilder] a new instance of RackBuilder + # + # source://faraday//lib/faraday/rack_builder.rb#61 + def initialize(&block); end + + # source://faraday//lib/faraday/rack_builder.rb#179 + def ==(other); end + + # source://faraday//lib/faraday/rack_builder.rb#79 + def [](idx); end + + # source://faraday//lib/faraday/rack_builder.rb#110 + def adapter(klass = T.unsafe(nil), *args, **_arg2, &block); end + + # The "rack app" wrapped in middleware. All requests are sent here. + # + # The builder is responsible for creating the app object. After this, + # the builder gets locked to ensure no further modifications are made + # to the middleware stack. + # + # Returns an object that responds to `call` and returns a Response. + # + # source://faraday//lib/faraday/rack_builder.rb#163 + def app; end + + # source://faraday//lib/faraday/rack_builder.rb#73 + def build; end + + # ENV Keys + # :http_method - a symbolized request HTTP method (:get, :post) + # :body - the request body that will eventually be converted to a string. + # :url - URI instance for the current request. + # :status - HTTP response status code + # :request_headers - hash of HTTP Headers to be sent to the server + # :response_headers - Hash of HTTP headers from the server + # :parallel_manager - sent if the connection is in parallel mode + # :request - Hash of options for configuring the request. + # :timeout - open/read timeout Integer in seconds + # :open_timeout - read timeout Integer in seconds + # :proxy - Hash of proxy options + # :uri - Proxy Server URI + # :user - Proxy server username + # :password - Proxy server password + # :ssl - Hash of options for configuring SSL requests. + # + # source://faraday//lib/faraday/rack_builder.rb#201 + def build_env(connection, request); end + + # Processes a Request into a Response by passing it through this Builder's + # middleware stack. + # + # @param connection [Faraday::Connection] + # @param request [Faraday::Request] + # @return [Faraday::Response] + # + # source://faraday//lib/faraday/rack_builder.rb#152 + def build_response(connection, request); end + + # source://faraday//lib/faraday/rack_builder.rb#140 + def delete(handler); end + + # Returns the value of attribute handlers. + # + # source://faraday//lib/faraday/rack_builder.rb#19 + def handlers; end + + # Sets the attribute handlers + # + # @param value the value to set the attribute handlers to. + # + # source://faraday//lib/faraday/rack_builder.rb#19 + def handlers=(_arg0); end + + # methods to push onto the various positions in the stack: + # + # source://faraday//lib/faraday/rack_builder.rb#119 + def insert(index, *args, **_arg2, &block); end + + # source://faraday//lib/faraday/rack_builder.rb#128 + def insert_after(index, *args, **_arg2, &block); end + + # methods to push onto the various positions in the stack: + # + # source://faraday//lib/faraday/rack_builder.rb#119 + def insert_before(index, *args, **_arg2, &block); end + + # Locks the middleware stack to ensure no further modifications are made. + # + # source://faraday//lib/faraday/rack_builder.rb#84 + def lock!; end + + # @return [Boolean] + # + # source://faraday//lib/faraday/rack_builder.rb#88 + def locked?; end + + # source://faraday//lib/faraday/rack_builder.rb#102 + def request(key, *args, **_arg2, &block); end + + # source://faraday//lib/faraday/rack_builder.rb#106 + def response(key, *args, **_arg2, &block); end + + # source://faraday//lib/faraday/rack_builder.rb#133 + def swap(index, *args, **_arg2, &block); end + + # source://faraday//lib/faraday/rack_builder.rb#171 + def to_app; end + + # source://faraday//lib/faraday/rack_builder.rb#92 + def use(klass, *args, **_arg2, &block); end + + private + + # @return [Boolean] + # + # source://faraday//lib/faraday/rack_builder.rb#233 + def adapter_set?; end + + # source://faraday//lib/faraday/rack_builder.rb#245 + def assert_index(index); end + + # @raise [MISSING_ADAPTER_ERROR] + # + # source://faraday//lib/faraday/rack_builder.rb#229 + def ensure_adapter!; end + + # source://faraday//lib/faraday/rack_builder.rb#67 + def initialize_dup(original); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/rack_builder.rb#237 + def is_adapter?(klass); end + + # source://faraday//lib/faraday/rack_builder.rb#223 + def raise_if_adapter(klass); end + + # @raise [StackLocked] + # + # source://faraday//lib/faraday/rack_builder.rb#219 + def raise_if_locked; end + + # source://faraday//lib/faraday/rack_builder.rb#241 + def use_symbol(mod, key, *args, **_arg3, &block); end +end + +# borrowed from ActiveSupport::Dependencies::Reference & +# ActionDispatch::MiddlewareStack::Middleware +# +# source://faraday//lib/faraday/rack_builder.rb#26 +class Faraday::RackBuilder::Handler + # source://faraday//lib/faraday/rack_builder.rb#31 + def initialize(klass, *args, **_arg2, &block); end + + # source://faraday//lib/faraday/rack_builder.rb#46 + def ==(other); end + + # source://faraday//lib/faraday/rack_builder.rb#56 + def build(app = T.unsafe(nil)); end + + # source://faraday//lib/faraday/rack_builder.rb#42 + def inspect; end + + # source://faraday//lib/faraday/rack_builder.rb#38 + def klass; end + + # Returns the value of attribute name. + # + # source://faraday//lib/faraday/rack_builder.rb#29 + def name; end +end + +# source://faraday//lib/faraday/rack_builder.rb#27 +Faraday::RackBuilder::Handler::REGISTRY = T.let(T.unsafe(nil), Faraday::AdapterRegistry) + +# source://faraday//lib/faraday/rack_builder.rb#214 +Faraday::RackBuilder::LOCK_ERR = T.let(T.unsafe(nil), String) + +# source://faraday//lib/faraday/rack_builder.rb#215 +Faraday::RackBuilder::MISSING_ADAPTER_ERROR = T.let(T.unsafe(nil), String) + +# Used to detect missing arguments +# +# source://faraday//lib/faraday/rack_builder.rb#17 +Faraday::RackBuilder::NO_ARGUMENT = T.let(T.unsafe(nil), Object) + +# Error raised when trying to modify the stack after calling `lock!` +# +# source://faraday//lib/faraday/rack_builder.rb#22 +class Faraday::RackBuilder::StackLocked < ::RuntimeError; end + +# Used to setup URLs, params, headers, and the request body in a sane manner. +# +# @example +# @connection.post do |req| +# req.url 'http://localhost', 'a' => '1' # 'http://localhost?a=1' +# req.headers['b'] = '2' # Header +# req.params['c'] = '3' # GET Param +# req['b'] = '2' # also Header +# req.body = 'abc' +# end +# +# source://faraday//lib/faraday/request.rb#27 +class Faraday::Request < ::Struct + extend ::Faraday::MiddlewareRegistry + + # @param key [Object] key to look up in headers + # @return [Object] value of the given header name + # + # source://faraday//lib/faraday/request.rb#92 + def [](key); end + + # @param key [Object] key of header to write + # @param value [Object] value of header + # + # source://faraday//lib/faraday/request.rb#98 + def []=(key, value); end + + # @return [String] body + def body; end + + # @return [String] body + def body=(_); end + + # @return [Faraday::Utils::Headers] headers + def headers; end + + # Replace request headers, preserving the existing hash type. + # + # @param hash [Hash] new headers + # + # source://faraday//lib/faraday/request.rb#61 + def headers=(hash); end + + # @return [Symbol] the HTTP method of the Request + def http_method; end + + # @return [Symbol] the HTTP method of the Request + def http_method=(_); end + + # Marshal serialization support. + # + # @return [Hash] the hash ready to be serialized in Marshal. + # + # source://faraday//lib/faraday/request.rb#105 + def marshal_dump; end + + # Marshal serialization support. + # Restores the instance variables according to the +serialised+. + # + # @param serialised [Hash] the serialised object. + # + # source://faraday//lib/faraday/request.rb#119 + def marshal_load(serialised); end + + # @return [RequestOptions] options + def options; end + + # @return [RequestOptions] options + def options=(_); end + + # @return [Hash] query parameters + def params; end + + # Replace params, preserving the existing hash type. + # + # @param hash [Hash] new params + # + # source://faraday//lib/faraday/request.rb#49 + def params=(hash); end + + # @return [URI, String] the path + def path; end + + # @return [URI, String] the path + def path=(_); end + + # @return [Env] the Env for this Request + # + # source://faraday//lib/faraday/request.rb#129 + def to_env(connection); end + + # Update path and params. + # + # @param path [URI, String] + # @param params [Hash, nil] + # @return [void] + # + # source://faraday//lib/faraday/request.rb#74 + def url(path, params = T.unsafe(nil)); end + + private + + def member_get(_arg0); end + def member_set(_arg0, _arg1); end + + class << self + def [](*_arg0); end + + # @param request_method [String] + # @return [Request] + # @yield [request] for block customization, if block given + # @yieldparam request [Request] + # + # source://faraday//lib/faraday/request.rb#39 + def create(request_method); end + + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Request middleware for the Authorization HTTP header +# +# source://faraday//lib/faraday/request/authorization.rb#6 +class Faraday::Request::Authorization < ::Faraday::Middleware + # @param app [#call] + # @param type [String, Symbol] Type of Authorization + # @param params [Array] parameters to build the Authorization header. + # If the type is `:basic`, then these can be a login and password pair. + # Otherwise, a single value is expected that will be appended after the type. + # This value can be a proc or an object responding to `.call`, in which case + # it will be invoked on each request. + # @return [Authorization] a new instance of Authorization + # + # source://faraday//lib/faraday/request/authorization.rb#16 + def initialize(app, type, *params); end + + # @param env [Faraday::Env] + # + # source://faraday//lib/faraday/request/authorization.rb#23 + def on_request(env); end + + private + + # @param type [String, Symbol] + # @param env [Faraday::Env] + # @param params [Array] + # @return [String] a header value + # + # source://faraday//lib/faraday/request/authorization.rb#35 + def header_from(type, env, *params); end +end + +# source://faraday//lib/faraday/request/authorization.rb#7 +Faraday::Request::Authorization::KEY = T.let(T.unsafe(nil), String) + +# Middleware for instrumenting Requests. +# +# source://faraday//lib/faraday/request/instrumentation.rb#6 +class Faraday::Request::Instrumentation < ::Faraday::Middleware + # Instruments requests using Active Support. + # + # Measures time spent only for synchronous requests. + # + # @example Using ActiveSupport::Notifications to measure time spent + # for Faraday requests. + # ActiveSupport::Notifications + # .subscribe('request.faraday') do |name, starts, ends, _, env| + # url = env[:url] + # http_method = env[:method].to_s.upcase + # duration = ends - starts + # $stderr.puts '[%s] %s %s (%.3f s)' % + # [url.host, http_method, url.request_uri, duration] + # end + # @option options + # @option options + # @param app [#call] + # @param options [nil, Hash] Options hash + # @return [Instrumentation] a new instance of Instrumentation + # + # source://faraday//lib/faraday/request/instrumentation.rb#42 + def initialize(app, options = T.unsafe(nil)); end + + # @param env [Faraday::Env] + # + # source://faraday//lib/faraday/request/instrumentation.rb#49 + def call(env); end +end + +# Options class used in Request::Instrumentation class. +# +# source://faraday//lib/faraday/request/instrumentation.rb#8 +class Faraday::Request::Instrumentation::Options < ::Faraday::Options + # source://faraday//lib/faraday/request/instrumentation.rb#17 + def instrumenter; end + + def instrumenter=(_); end + + # source://faraday//lib/faraday/request/instrumentation.rb#11 + def name; end + + def name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Request middleware that encodes the body as JSON. +# +# Processes only requests with matching Content-type or those without a type. +# If a request doesn't have a type but has a body, it sets the Content-type +# to JSON MIME-type. +# +# Doesn't try to encode bodies that already are in string form. +# +# source://faraday//lib/faraday/request/json.rb#14 +class Faraday::Request::Json < ::Faraday::Middleware + # source://faraday//lib/faraday/request/json.rb#18 + def on_request(env); end + + private + + # @return [Boolean] + # + # source://faraday//lib/faraday/request/json.rb#42 + def body?(env); end + + # source://faraday//lib/faraday/request/json.rb#26 + def encode(data); end + + # @yield [] + # + # source://faraday//lib/faraday/request/json.rb#30 + def match_content_type(env); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/request/json.rb#37 + def process_request?(env); end + + # source://faraday//lib/faraday/request/json.rb#55 + def request_type(env); end +end + +# source://faraday//lib/faraday/request/json.rb#15 +Faraday::Request::Json::MIME_TYPE = T.let(T.unsafe(nil), String) + +# source://faraday//lib/faraday/request/json.rb#16 +Faraday::Request::Json::MIME_TYPE_REGEX = T.let(T.unsafe(nil), Regexp) + +# Middleware for supporting urlencoded requests. +# +# source://faraday//lib/faraday/request/url_encoded.rb#6 +class Faraday::Request::UrlEncoded < ::Faraday::Middleware + # Encodes as "application/x-www-form-urlencoded" if not already encoded or + # of another type. + # + # @param env [Faraday::Env] + # + # source://faraday//lib/faraday/request/url_encoded.rb#20 + def call(env); end + + # @param env [Faraday::Env] + # @yield [request_body] Body of the request + # + # source://faraday//lib/faraday/request/url_encoded.rb#30 + def match_content_type(env); end + + # @param env [Faraday::Env] + # @return [Boolean] True if the request has a body and its Content-Type is + # urlencoded. + # + # source://faraday//lib/faraday/request/url_encoded.rb#43 + def process_request?(env); end + + # @param env [Faraday::Env] + # @return [String] + # + # source://faraday//lib/faraday/request/url_encoded.rb#51 + def request_type(env); end + + class << self + # Returns the value of attribute mime_type. + # + # source://faraday//lib/faraday/request/url_encoded.rb#12 + def mime_type; end + + # Sets the attribute mime_type + # + # @param value the value to set the attribute mime_type to. + # + # source://faraday//lib/faraday/request/url_encoded.rb#12 + def mime_type=(_arg0); end + end +end + +# source://faraday//lib/faraday/request/url_encoded.rb#8 +Faraday::Request::UrlEncoded::CONTENT_TYPE = T.let(T.unsafe(nil), String) + +# RequestOptions contains the configurable properties for a Faraday request. +# +# source://faraday//lib/faraday/options/request_options.rb#7 +class Faraday::RequestOptions < ::Faraday::Options + # source://faraday//lib/faraday/options/request_options.rb#11 + def []=(key, value); end + + def bind; end + def bind=(_); end + def boundary; end + def boundary=(_); end + def context; end + def context=(_); end + def oauth; end + def oauth=(_); end + def on_data; end + def on_data=(_); end + def open_timeout; end + def open_timeout=(_); end + def params_encoder; end + def params_encoder=(_); end + def proxy; end + def proxy=(_); end + def read_timeout; end + def read_timeout=(_); end + + # source://faraday//lib/faraday/options/request_options.rb#19 + def stream_response?; end + + def timeout; end + def timeout=(_); end + def write_timeout; end + def write_timeout=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Raised by Faraday::Response::RaiseError in case of a 408 response. +# +# source://faraday//lib/faraday/error.rb#116 +class Faraday::RequestTimeoutError < ::Faraday::ClientError; end + +# Raised by Faraday::Response::RaiseError in case of a 404 response. +# +# source://faraday//lib/faraday/error.rb#108 +class Faraday::ResourceNotFound < ::Faraday::ClientError; end + +# Response represents an HTTP response from making an HTTP request. +# +# source://faraday//lib/faraday/response.rb#7 +class Faraday::Response + extend ::Forwardable + extend ::Faraday::MiddlewareRegistry + + # @return [Response] a new instance of Response + # + # source://faraday//lib/faraday/response.rb#11 + def initialize(env = T.unsafe(nil)); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def [](*args, **_arg1, &block); end + + # Expand the env with more properties, without overriding existing ones. + # Useful for applying request params after restoring a marshalled Response. + # + # source://faraday//lib/faraday/response.rb#80 + def apply_request(request_env); end + + # source://faraday//lib/faraday/response.rb#32 + def body; end + + # Returns the value of attribute env. + # + # source://faraday//lib/faraday/response.rb#16 + def env; end + + # source://faraday//lib/faraday/response.rb#49 + def finish(env); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/response.rb#36 + def finished?; end + + # source://faraday//lib/faraday/response.rb#26 + def headers; end + + # because @on_complete_callbacks cannot be marshalled + # + # source://faraday//lib/faraday/response.rb#70 + def marshal_dump; end + + # source://faraday//lib/faraday/response.rb#74 + def marshal_load(env); end + + # source://faraday//lib/faraday/response.rb#40 + def on_complete(&block); end + + # source://faraday//lib/faraday/response.rb#22 + def reason_phrase; end + + # source://faraday//lib/faraday/response.rb#18 + def status; end + + # @return [Boolean] + # + # source://faraday//lib/faraday/response.rb#57 + def success?; end + + # source://faraday//lib/faraday/response.rb#61 + def to_hash; end +end + +# Parse response bodies as JSON. +# +# source://faraday//lib/faraday/response/json.rb#8 +class Faraday::Response::Json < ::Faraday::Middleware + # @return [Json] a new instance of Json + # + # source://faraday//lib/faraday/response/json.rb#9 + def initialize(app = T.unsafe(nil), parser_options: T.unsafe(nil), content_type: T.unsafe(nil), preserve_raw: T.unsafe(nil)); end + + # source://faraday//lib/faraday/response/json.rb#16 + def on_complete(env); end + + private + + # source://faraday//lib/faraday/response/json.rb#29 + def parse(body); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/response/json.rb#33 + def parse_response?(env); end + + # source://faraday//lib/faraday/response/json.rb#22 + def process_response(env); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/response/json.rb#38 + def process_response_type?(env); end + + # source://faraday//lib/faraday/response/json.rb#45 + def response_type(env); end +end + +# Logger is a middleware that logs internal events in the HTTP request +# lifecycle to a given Logger object. By default, this logs to STDOUT. See +# Faraday::Logging::Formatter to see specifically what is logged. +# +# source://faraday//lib/faraday/response/logger.rb#12 +class Faraday::Response::Logger < ::Faraday::Middleware + # @return [Logger] a new instance of Logger + # @yield [@formatter] + # + # source://faraday//lib/faraday/response/logger.rb#13 + def initialize(app, logger = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://faraday//lib/faraday/response/logger.rb#21 + def call(env); end + + # source://faraday//lib/faraday/response/logger.rb#26 + def on_complete(env); end + + # source://faraday//lib/faraday/response/logger.rb#30 + def on_error(exc); end +end + +# RaiseError is a Faraday middleware that raises exceptions on common HTTP +# client or server error responses. +# +# source://faraday//lib/faraday/response/raise_error.rb#7 +class Faraday::Response::RaiseError < ::Faraday::Middleware + # source://faraday//lib/faraday/response/raise_error.rb#13 + def on_complete(env); end + + # source://faraday//lib/faraday/response/raise_error.rb#73 + def query_params(env); end + + # Returns a hash of response data with the following keys: + # - status + # - headers + # - body + # - request + # + # The `request` key is omitted when the middleware is explicitly + # configured with the option `include_request: false`. + # + # source://faraday//lib/faraday/response/raise_error.rb#50 + def response_values(env); end +end + +# source://faraday//lib/faraday/response/raise_error.rb#9 +Faraday::Response::RaiseError::ClientErrorStatuses = T.let(T.unsafe(nil), Range) + +# source://faraday//lib/faraday/response/raise_error.rb#10 +Faraday::Response::RaiseError::ServerErrorStatuses = T.let(T.unsafe(nil), Range) + +# A unified client error for SSL errors. +# +# source://faraday//lib/faraday/error.rb#151 +class Faraday::SSLError < ::Faraday::Error; end + +# SSL-related options. +# +# source://faraday//lib/faraday/options/ssl_options.rb#50 +class Faraday::SSLOptions < ::Faraday::Options + # @return [String] CA file + def ca_file; end + + # @return [String] CA file + def ca_file=(_); end + + # @return [String] CA path + def ca_path; end + + # @return [String] CA path + def ca_path=(_); end + + # @return [OpenSSL::X509::Store] certificate store + def cert_store; end + + # @return [OpenSSL::X509::Store] certificate store + def cert_store=(_); end + + # @return [OpenSSL::X509::Certificate] certificate (Excon only) + def certificate; end + + # @return [OpenSSL::X509::Certificate] certificate (Excon only) + def certificate=(_); end + + # @return [String, OpenSSL::X509::Certificate] client certificate + def client_cert; end + + # @return [String, OpenSSL::X509::Certificate] client certificate + def client_cert=(_); end + + # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key + def client_key; end + + # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key + def client_key=(_); end + + # source://faraday//lib/faraday/options/ssl_options.rb#61 + def disable?; end + + # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D) + def max_version; end + + # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D) + def max_version=(_); end + + # @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D) + def min_version; end + + # @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D) + def min_version=(_); end + + # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only) + def private_key; end + + # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only) + def private_key=(_); end + + # @return [Boolean] whether to verify SSL certificates or not + def verify; end + + # @return [Boolean] whether to verify SSL certificates or not + def verify=(_); end + + # source://faraday//lib/faraday/options/ssl_options.rb#56 + def verify?; end + + # @return [Integer] maximum depth for the certificate chain verification + def verify_depth; end + + # @return [Integer] maximum depth for the certificate chain verification + def verify_depth=(_); end + + # @return [Boolean] whether to enable hostname verification on server certificates + # during the handshake or not (see https://github.com/ruby/openssl/pull/60) + def verify_hostname; end + + # @return [Boolean] whether to enable hostname verification on server certificates + # during the handshake or not (see https://github.com/ruby/openssl/pull/60) + def verify_hostname=(_); end + + # source://faraday//lib/faraday/options/ssl_options.rb#66 + def verify_hostname?; end + + # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) + def verify_mode; end + + # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) + def verify_mode=(_); end + + # @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D) + def version; end + + # @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D) + def version=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Faraday server error class. Represents 5xx status responses. +# +# source://faraday//lib/faraday/error.rb#128 +class Faraday::ServerError < ::Faraday::Error; end + +# A unified client error for timeouts. +# +# source://faraday//lib/faraday/error.rb#132 +class Faraday::TimeoutError < ::Faraday::ServerError + # @return [TimeoutError] a new instance of TimeoutError + # + # source://faraday//lib/faraday/error.rb#133 + def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end +end + +# Raised by Faraday::Response::RaiseError in case of a 401 response. +# +# source://faraday//lib/faraday/error.rb#100 +class Faraday::UnauthorizedError < ::Faraday::ClientError; end + +# Raised by Faraday::Response::RaiseError in case of a 422 response. +# +# source://faraday//lib/faraday/error.rb#124 +class Faraday::UnprocessableEntityError < ::Faraday::ClientError; end + +# Utils contains various static helper methods. +# +# source://faraday//lib/faraday/utils/headers.rb#4 +module Faraday::Utils + private + + # Normalize URI() behavior across Ruby versions + # + # url - A String or URI. + # + # Returns a parsed URI. + # + # source://faraday//lib/faraday/utils.rb#71 + def URI(url); end + + # source://faraday//lib/faraday/utils.rb#56 + def basic_header_from(login, pass); end + + # source://faraday//lib/faraday/utils.rb#17 + def build_nested_query(params); end + + # source://faraday//lib/faraday/utils.rb#13 + def build_query(params); end + + # Recursive hash merge + # + # source://faraday//lib/faraday/utils.rb#114 + def deep_merge(source, hash); end + + # Recursive hash update + # + # source://faraday//lib/faraday/utils.rb#102 + def deep_merge!(target, hash); end + + # source://faraday//lib/faraday/utils.rb#52 + def default_params_encoder; end + + # source://faraday//lib/faraday/utils.rb#21 + def default_space_encoding; end + + # source://faraday//lib/faraday/utils.rb#81 + def default_uri_parser; end + + # source://faraday//lib/faraday/utils.rb#85 + def default_uri_parser=(parser); end + + # source://faraday//lib/faraday/utils.rb#31 + def escape(str); end + + # Receives a String or URI and returns just + # the path with the query string sorted. + # + # source://faraday//lib/faraday/utils.rb#95 + def normalize_path(url); end + + # source://faraday//lib/faraday/utils.rb#48 + def parse_nested_query(query); end + + # Adapted from Rack + # + # source://faraday//lib/faraday/utils.rb#44 + def parse_query(query); end + + # source://faraday//lib/faraday/utils.rb#118 + def sort_query_params(query); end + + # source://faraday//lib/faraday/utils.rb#37 + def unescape(str); end + + class << self + # Normalize URI() behavior across Ruby versions + # + # url - A String or URI. + # + # Returns a parsed URI. + # + # source://faraday//lib/faraday/utils.rb#71 + def URI(url); end + + # source://faraday//lib/faraday/utils.rb#56 + def basic_header_from(login, pass); end + + # source://faraday//lib/faraday/utils.rb#17 + def build_nested_query(params); end + + # source://faraday//lib/faraday/utils.rb#13 + def build_query(params); end + + # Recursive hash merge + # + # source://faraday//lib/faraday/utils.rb#114 + def deep_merge(source, hash); end + + # Recursive hash update + # + # source://faraday//lib/faraday/utils.rb#102 + def deep_merge!(target, hash); end + + # source://faraday//lib/faraday/utils.rb#52 + def default_params_encoder; end + + # Sets the attribute default_params_encoder + # + # @param value the value to set the attribute default_params_encoder to. + # + # source://faraday//lib/faraday/utils.rb#63 + def default_params_encoder=(_arg0); end + + # source://faraday//lib/faraday/utils.rb#21 + def default_space_encoding; end + + # Sets the attribute default_space_encoding + # + # @param value the value to set the attribute default_space_encoding to. + # + # source://faraday//lib/faraday/utils.rb#26 + def default_space_encoding=(_arg0); end + + # source://faraday//lib/faraday/utils.rb#81 + def default_uri_parser; end + + # source://faraday//lib/faraday/utils.rb#85 + def default_uri_parser=(parser); end + + # source://faraday//lib/faraday/utils.rb#31 + def escape(str); end + + # Receives a String or URI and returns just + # the path with the query string sorted. + # + # source://faraday//lib/faraday/utils.rb#95 + def normalize_path(url); end + + # source://faraday//lib/faraday/utils.rb#48 + def parse_nested_query(query); end + + # Adapted from Rack + # + # source://faraday//lib/faraday/utils.rb#44 + def parse_query(query); end + + # source://faraday//lib/faraday/utils.rb#118 + def sort_query_params(query); end + + # source://faraday//lib/faraday/utils.rb#37 + def unescape(str); end + end +end + +# source://faraday//lib/faraday/utils.rb#41 +Faraday::Utils::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) + +# source://faraday//lib/faraday/utils.rb#29 +Faraday::Utils::ESCAPE_RE = T.let(T.unsafe(nil), Regexp) + +# A case-insensitive Hash that preserves the original case of a header +# when set. +# +# Adapted from Rack::Utils::HeaderHash +# +# source://faraday//lib/faraday/utils/headers.rb#9 +class Faraday::Utils::Headers < ::Hash + # @return [Headers] a new instance of Headers + # + # source://faraday//lib/faraday/utils/headers.rb#20 + def initialize(hash = T.unsafe(nil)); end + + # source://faraday//lib/faraday/utils/headers.rb#52 + def [](key); end + + # source://faraday//lib/faraday/utils/headers.rb#57 + def []=(key, val); end + + # source://faraday//lib/faraday/utils/headers.rb#71 + def delete(key); end + + # source://faraday//lib/faraday/utils/headers.rb#65 + def fetch(key, *args, &block); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/headers.rb#80 + def has_key?(key); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/headers.rb#80 + def include?(key); end + + # source://faraday//lib/faraday/utils/headers.rb#26 + def initialize_names; end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/headers.rb#80 + def key?(key); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/headers.rb#80 + def member?(key); end + + # source://faraday//lib/faraday/utils/headers.rb#95 + def merge(other); end + + # source://faraday//lib/faraday/utils/headers.rb#88 + def merge!(other); end + + # source://faraday//lib/faraday/utils/headers.rb#111 + def parse(header_string); end + + # source://faraday//lib/faraday/utils/headers.rb#100 + def replace(other); end + + # source://faraday//lib/faraday/utils/headers.rb#107 + def to_hash; end + + # source://faraday//lib/faraday/utils/headers.rb#88 + def update(other); end + + protected + + # Returns the value of attribute names. + # + # source://faraday//lib/faraday/utils/headers.rb#129 + def names; end + + private + + # Join multiple values with a comma. + # + # source://faraday//lib/faraday/utils/headers.rb#134 + def add_parsed(key, value); end + + # on dup/clone, we need to duplicate @names hash + # + # source://faraday//lib/faraday/utils/headers.rb#31 + def initialize_copy(other); end + + class << self + # source://faraday//lib/faraday/utils/headers.rb#14 + def allocate; end + + # source://faraday//lib/faraday/utils/headers.rb#10 + def from(value); end + end +end + +# symbol -> string mapper + cache +# +# source://faraday//lib/faraday/utils/headers.rb#40 +Faraday::Utils::Headers::KeyMap = T.let(T.unsafe(nil), Hash) + +# A hash with stringified keys. +# +# source://faraday//lib/faraday/utils/params_hash.rb#6 +class Faraday::Utils::ParamsHash < ::Hash + # source://faraday//lib/faraday/utils/params_hash.rb#7 + def [](key); end + + # source://faraday//lib/faraday/utils/params_hash.rb#11 + def []=(key, value); end + + # source://faraday//lib/faraday/utils/params_hash.rb#15 + def delete(key); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/params_hash.rb#19 + def has_key?(key); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/params_hash.rb#19 + def include?(key); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/params_hash.rb#19 + def key?(key); end + + # @return [Boolean] + # + # source://faraday//lib/faraday/utils/params_hash.rb#19 + def member?(key); end + + # source://faraday//lib/faraday/utils/params_hash.rb#35 + def merge(params); end + + # source://faraday//lib/faraday/utils/params_hash.rb#27 + def merge!(params); end + + # source://faraday//lib/faraday/utils/params_hash.rb#44 + def merge_query(query, encoder = T.unsafe(nil)); end + + # source://faraday//lib/faraday/utils/params_hash.rb#39 + def replace(other); end + + # source://faraday//lib/faraday/utils/params_hash.rb#50 + def to_query(encoder = T.unsafe(nil)); end + + # source://faraday//lib/faraday/utils/params_hash.rb#27 + def update(params); end + + private + + # source://faraday//lib/faraday/utils/params_hash.rb#56 + def convert_key(key); end +end + +# source://faraday//lib/faraday/version.rb#4 +Faraday::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/json@2.6.3.rbi b/ruby-client-sdk/sorbet/rbi/gems/json@2.6.3.rbi new file mode 100755 index 000000000..259116aa0 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/json@2.6.3.rbi @@ -0,0 +1,1533 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `json` gem. +# Please instead update this file by running `bin/tapioca gem json`. + +# Extends any Class to include _json_creatable?_ method. +class Class < ::Module + # Returns true if this class can be used to create an instance + # from a serialised JSON string. The class has to implement a class + # method _json_create_ that expects a hash as first parameter. The hash + # should include the required data. + # + # @return [Boolean] + # + # source://json//json/common.rb#700 + def json_creatable?; end +end + +# = JavaScript \Object Notation (\JSON) +# +# \JSON is a lightweight data-interchange format. +# +# A \JSON value is one of the following: +# - Double-quoted text: "foo". +# - Number: +1+, +1.0+, +2.0e2+. +# - Boolean: +true+, +false+. +# - Null: +null+. +# - \Array: an ordered list of values, enclosed by square brackets: +# ["foo", 1, 1.0, 2.0e2, true, false, null] +# +# - \Object: a collection of name/value pairs, enclosed by curly braces; +# each name is double-quoted text; +# the values may be any \JSON values: +# {"a": "foo", "b": 1, "c": 1.0, "d": 2.0e2, "e": true, "f": false, "g": null} +# +# A \JSON array or object may contain nested arrays, objects, and scalars +# to any depth: +# {"foo": {"bar": 1, "baz": 2}, "bat": [0, 1, 2]} +# [{"foo": 0, "bar": 1}, ["baz", 2]] +# +# == Using \Module \JSON +# +# To make module \JSON available in your code, begin with: +# require 'json' +# +# All examples here assume that this has been done. +# +# === Parsing \JSON +# +# You can parse a \String containing \JSON data using +# either of two methods: +# - JSON.parse(source, opts) +# - JSON.parse!(source, opts) +# +# where +# - +source+ is a Ruby object. +# - +opts+ is a \Hash object containing options +# that control both input allowed and output formatting. +# +# The difference between the two methods +# is that JSON.parse! omits some checks +# and may not be safe for some +source+ data; +# use it only for data from trusted sources. +# Use the safer method JSON.parse for less trusted sources. +# +# ==== Parsing \JSON Arrays +# +# When +source+ is a \JSON array, JSON.parse by default returns a Ruby \Array: +# json = '["foo", 1, 1.0, 2.0e2, true, false, null]' +# ruby = JSON.parse(json) +# ruby # => ["foo", 1, 1.0, 200.0, true, false, nil] +# ruby.class # => Array +# +# The \JSON array may contain nested arrays, objects, and scalars +# to any depth: +# json = '[{"foo": 0, "bar": 1}, ["baz", 2]]' +# JSON.parse(json) # => [{"foo"=>0, "bar"=>1}, ["baz", 2]] +# +# ==== Parsing \JSON \Objects +# +# When the source is a \JSON object, JSON.parse by default returns a Ruby \Hash: +# json = '{"a": "foo", "b": 1, "c": 1.0, "d": 2.0e2, "e": true, "f": false, "g": null}' +# ruby = JSON.parse(json) +# ruby # => {"a"=>"foo", "b"=>1, "c"=>1.0, "d"=>200.0, "e"=>true, "f"=>false, "g"=>nil} +# ruby.class # => Hash +# +# The \JSON object may contain nested arrays, objects, and scalars +# to any depth: +# json = '{"foo": {"bar": 1, "baz": 2}, "bat": [0, 1, 2]}' +# JSON.parse(json) # => {"foo"=>{"bar"=>1, "baz"=>2}, "bat"=>[0, 1, 2]} +# +# ==== Parsing \JSON Scalars +# +# When the source is a \JSON scalar (not an array or object), +# JSON.parse returns a Ruby scalar. +# +# \String: +# ruby = JSON.parse('"foo"') +# ruby # => 'foo' +# ruby.class # => String +# \Integer: +# ruby = JSON.parse('1') +# ruby # => 1 +# ruby.class # => Integer +# \Float: +# ruby = JSON.parse('1.0') +# ruby # => 1.0 +# ruby.class # => Float +# ruby = JSON.parse('2.0e2') +# ruby # => 200 +# ruby.class # => Float +# Boolean: +# ruby = JSON.parse('true') +# ruby # => true +# ruby.class # => TrueClass +# ruby = JSON.parse('false') +# ruby # => false +# ruby.class # => FalseClass +# Null: +# ruby = JSON.parse('null') +# ruby # => nil +# ruby.class # => NilClass +# +# ==== Parsing Options +# +# ====== Input Options +# +# Option +max_nesting+ (\Integer) specifies the maximum nesting depth allowed; +# defaults to +100+; specify +false+ to disable depth checking. +# +# With the default, +false+: +# source = '[0, [1, [2, [3]]]]' +# ruby = JSON.parse(source) +# ruby # => [0, [1, [2, [3]]]] +# Too deep: +# # Raises JSON::NestingError (nesting of 2 is too deep): +# JSON.parse(source, {max_nesting: 1}) +# Bad value: +# # Raises TypeError (wrong argument type Symbol (expected Fixnum)): +# JSON.parse(source, {max_nesting: :foo}) +# +# --- +# +# Option +allow_nan+ (boolean) specifies whether to allow +# NaN, Infinity, and MinusInfinity in +source+; +# defaults to +false+. +# +# With the default, +false+: +# # Raises JSON::ParserError (225: unexpected token at '[NaN]'): +# JSON.parse('[NaN]') +# # Raises JSON::ParserError (232: unexpected token at '[Infinity]'): +# JSON.parse('[Infinity]') +# # Raises JSON::ParserError (248: unexpected token at '[-Infinity]'): +# JSON.parse('[-Infinity]') +# Allow: +# source = '[NaN, Infinity, -Infinity]' +# ruby = JSON.parse(source, {allow_nan: true}) +# ruby # => [NaN, Infinity, -Infinity] +# +# ====== Output Options +# +# Option +symbolize_names+ (boolean) specifies whether returned \Hash keys +# should be Symbols; +# defaults to +false+ (use Strings). +# +# With the default, +false+: +# source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}' +# ruby = JSON.parse(source) +# ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil} +# Use Symbols: +# ruby = JSON.parse(source, {symbolize_names: true}) +# ruby # => {:a=>"foo", :b=>1.0, :c=>true, :d=>false, :e=>nil} +# +# --- +# +# Option +object_class+ (\Class) specifies the Ruby class to be used +# for each \JSON object; +# defaults to \Hash. +# +# With the default, \Hash: +# source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}' +# ruby = JSON.parse(source) +# ruby.class # => Hash +# Use class \OpenStruct: +# ruby = JSON.parse(source, {object_class: OpenStruct}) +# ruby # => # +# +# --- +# +# Option +array_class+ (\Class) specifies the Ruby class to be used +# for each \JSON array; +# defaults to \Array. +# +# With the default, \Array: +# source = '["foo", 1.0, true, false, null]' +# ruby = JSON.parse(source) +# ruby.class # => Array +# Use class \Set: +# ruby = JSON.parse(source, {array_class: Set}) +# ruby # => # +# +# --- +# +# Option +create_additions+ (boolean) specifies whether to use \JSON additions in parsing. +# See {\JSON Additions}[#module-JSON-label-JSON+Additions]. +# +# === Generating \JSON +# +# To generate a Ruby \String containing \JSON data, +# use method JSON.generate(source, opts), where +# - +source+ is a Ruby object. +# - +opts+ is a \Hash object containing options +# that control both input allowed and output formatting. +# +# ==== Generating \JSON from Arrays +# +# When the source is a Ruby \Array, JSON.generate returns +# a \String containing a \JSON array: +# ruby = [0, 's', :foo] +# json = JSON.generate(ruby) +# json # => '[0,"s","foo"]' +# +# The Ruby \Array array may contain nested arrays, hashes, and scalars +# to any depth: +# ruby = [0, [1, 2], {foo: 3, bar: 4}] +# json = JSON.generate(ruby) +# json # => '[0,[1,2],{"foo":3,"bar":4}]' +# +# ==== Generating \JSON from Hashes +# +# When the source is a Ruby \Hash, JSON.generate returns +# a \String containing a \JSON object: +# ruby = {foo: 0, bar: 's', baz: :bat} +# json = JSON.generate(ruby) +# json # => '{"foo":0,"bar":"s","baz":"bat"}' +# +# The Ruby \Hash array may contain nested arrays, hashes, and scalars +# to any depth: +# ruby = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad} +# json = JSON.generate(ruby) +# json # => '{"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}' +# +# ==== Generating \JSON from Other Objects +# +# When the source is neither an \Array nor a \Hash, +# the generated \JSON data depends on the class of the source. +# +# When the source is a Ruby \Integer or \Float, JSON.generate returns +# a \String containing a \JSON number: +# JSON.generate(42) # => '42' +# JSON.generate(0.42) # => '0.42' +# +# When the source is a Ruby \String, JSON.generate returns +# a \String containing a \JSON string (with double-quotes): +# JSON.generate('A string') # => '"A string"' +# +# When the source is +true+, +false+ or +nil+, JSON.generate returns +# a \String containing the corresponding \JSON token: +# JSON.generate(true) # => 'true' +# JSON.generate(false) # => 'false' +# JSON.generate(nil) # => 'null' +# +# When the source is none of the above, JSON.generate returns +# a \String containing a \JSON string representation of the source: +# JSON.generate(:foo) # => '"foo"' +# JSON.generate(Complex(0, 0)) # => '"0+0i"' +# JSON.generate(Dir.new('.')) # => '"#"' +# +# ==== Generating Options +# +# ====== Input Options +# +# Option +allow_nan+ (boolean) specifies whether +# +NaN+, +Infinity+, and -Infinity may be generated; +# defaults to +false+. +# +# With the default, +false+: +# # Raises JSON::GeneratorError (920: NaN not allowed in JSON): +# JSON.generate(JSON::NaN) +# # Raises JSON::GeneratorError (917: Infinity not allowed in JSON): +# JSON.generate(JSON::Infinity) +# # Raises JSON::GeneratorError (917: -Infinity not allowed in JSON): +# JSON.generate(JSON::MinusInfinity) +# +# Allow: +# ruby = [Float::NaN, Float::Infinity, Float::MinusInfinity] +# JSON.generate(ruby, allow_nan: true) # => '[NaN,Infinity,-Infinity]' +# +# --- +# +# Option +max_nesting+ (\Integer) specifies the maximum nesting depth +# in +obj+; defaults to +100+. +# +# With the default, +100+: +# obj = [[[[[[0]]]]]] +# JSON.generate(obj) # => '[[[[[[0]]]]]]' +# +# Too deep: +# # Raises JSON::NestingError (nesting of 2 is too deep): +# JSON.generate(obj, max_nesting: 2) +# +# ====== Output Options +# +# The default formatting options generate the most compact +# \JSON data, all on one line and with no whitespace. +# +# You can use these formatting options to generate +# \JSON data in a more open format, using whitespace. +# See also JSON.pretty_generate. +# +# - Option +array_nl+ (\String) specifies a string (usually a newline) +# to be inserted after each \JSON array; defaults to the empty \String, ''. +# - Option +object_nl+ (\String) specifies a string (usually a newline) +# to be inserted after each \JSON object; defaults to the empty \String, ''. +# - Option +indent+ (\String) specifies the string (usually spaces) to be +# used for indentation; defaults to the empty \String, ''; +# defaults to the empty \String, ''; +# has no effect unless options +array_nl+ or +object_nl+ specify newlines. +# - Option +space+ (\String) specifies a string (usually a space) to be +# inserted after the colon in each \JSON object's pair; +# defaults to the empty \String, ''. +# - Option +space_before+ (\String) specifies a string (usually a space) to be +# inserted before the colon in each \JSON object's pair; +# defaults to the empty \String, ''. +# +# In this example, +obj+ is used first to generate the shortest +# \JSON data (no whitespace), then again with all formatting options +# specified: +# +# obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}} +# json = JSON.generate(obj) +# puts 'Compact:', json +# opts = { +# array_nl: "\n", +# object_nl: "\n", +# indent: ' ', +# space_before: ' ', +# space: ' ' +# } +# puts 'Open:', JSON.generate(obj, opts) +# +# Output: +# Compact: +# {"foo":["bar","baz"],"bat":{"bam":0,"bad":1}} +# Open: +# { +# "foo" : [ +# "bar", +# "baz" +# ], +# "bat" : { +# "bam" : 0, +# "bad" : 1 +# } +# } +# +# == \JSON Additions +# +# When you "round trip" a non-\String object from Ruby to \JSON and back, +# you have a new \String, instead of the object you began with: +# ruby0 = Range.new(0, 2) +# json = JSON.generate(ruby0) +# json # => '0..2"' +# ruby1 = JSON.parse(json) +# ruby1 # => '0..2' +# ruby1.class # => String +# +# You can use \JSON _additions_ to preserve the original object. +# The addition is an extension of a ruby class, so that: +# - \JSON.generate stores more information in the \JSON string. +# - \JSON.parse, called with option +create_additions+, +# uses that information to create a proper Ruby object. +# +# This example shows a \Range being generated into \JSON +# and parsed back into Ruby, both without and with +# the addition for \Range: +# ruby = Range.new(0, 2) +# # This passage does not use the addition for Range. +# json0 = JSON.generate(ruby) +# ruby0 = JSON.parse(json0) +# # This passage uses the addition for Range. +# require 'json/add/range' +# json1 = JSON.generate(ruby) +# ruby1 = JSON.parse(json1, create_additions: true) +# # Make a nice display. +# display = <require 'json/add/bigdecimal' +# - Complex: require 'json/add/complex' +# - Date: require 'json/add/date' +# - DateTime: require 'json/add/date_time' +# - Exception: require 'json/add/exception' +# - OpenStruct: require 'json/add/ostruct' +# - Range: require 'json/add/range' +# - Rational: require 'json/add/rational' +# - Regexp: require 'json/add/regexp' +# - Set: require 'json/add/set' +# - Struct: require 'json/add/struct' +# - Symbol: require 'json/add/symbol' +# - Time: require 'json/add/time' +# +# To reduce punctuation clutter, the examples below +# show the generated \JSON via +puts+, rather than the usual +inspect+, +# +# \BigDecimal: +# require 'json/add/bigdecimal' +# ruby0 = BigDecimal(0) # 0.0 +# json = JSON.generate(ruby0) # {"json_class":"BigDecimal","b":"27:0.0"} +# ruby1 = JSON.parse(json, create_additions: true) # 0.0 +# ruby1.class # => BigDecimal +# +# \Complex: +# require 'json/add/complex' +# ruby0 = Complex(1+0i) # 1+0i +# json = JSON.generate(ruby0) # {"json_class":"Complex","r":1,"i":0} +# ruby1 = JSON.parse(json, create_additions: true) # 1+0i +# ruby1.class # Complex +# +# \Date: +# require 'json/add/date' +# ruby0 = Date.today # 2020-05-02 +# json = JSON.generate(ruby0) # {"json_class":"Date","y":2020,"m":5,"d":2,"sg":2299161.0} +# ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02 +# ruby1.class # Date +# +# \DateTime: +# require 'json/add/date_time' +# ruby0 = DateTime.now # 2020-05-02T10:38:13-05:00 +# json = JSON.generate(ruby0) # {"json_class":"DateTime","y":2020,"m":5,"d":2,"H":10,"M":38,"S":13,"of":"-5/24","sg":2299161.0} +# ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02T10:38:13-05:00 +# ruby1.class # DateTime +# +# \Exception (and its subclasses including \RuntimeError): +# require 'json/add/exception' +# ruby0 = Exception.new('A message') # A message +# json = JSON.generate(ruby0) # {"json_class":"Exception","m":"A message","b":null} +# ruby1 = JSON.parse(json, create_additions: true) # A message +# ruby1.class # Exception +# ruby0 = RuntimeError.new('Another message') # Another message +# json = JSON.generate(ruby0) # {"json_class":"RuntimeError","m":"Another message","b":null} +# ruby1 = JSON.parse(json, create_additions: true) # Another message +# ruby1.class # RuntimeError +# +# \OpenStruct: +# require 'json/add/ostruct' +# ruby0 = OpenStruct.new(name: 'Matz', language: 'Ruby') # # +# json = JSON.generate(ruby0) # {"json_class":"OpenStruct","t":{"name":"Matz","language":"Ruby"}} +# ruby1 = JSON.parse(json, create_additions: true) # # +# ruby1.class # OpenStruct +# +# \Range: +# require 'json/add/range' +# ruby0 = Range.new(0, 2) # 0..2 +# json = JSON.generate(ruby0) # {"json_class":"Range","a":[0,2,false]} +# ruby1 = JSON.parse(json, create_additions: true) # 0..2 +# ruby1.class # Range +# +# \Rational: +# require 'json/add/rational' +# ruby0 = Rational(1, 3) # 1/3 +# json = JSON.generate(ruby0) # {"json_class":"Rational","n":1,"d":3} +# ruby1 = JSON.parse(json, create_additions: true) # 1/3 +# ruby1.class # Rational +# +# \Regexp: +# require 'json/add/regexp' +# ruby0 = Regexp.new('foo') # (?-mix:foo) +# json = JSON.generate(ruby0) # {"json_class":"Regexp","o":0,"s":"foo"} +# ruby1 = JSON.parse(json, create_additions: true) # (?-mix:foo) +# ruby1.class # Regexp +# +# \Set: +# require 'json/add/set' +# ruby0 = Set.new([0, 1, 2]) # # +# json = JSON.generate(ruby0) # {"json_class":"Set","a":[0,1,2]} +# ruby1 = JSON.parse(json, create_additions: true) # # +# ruby1.class # Set +# +# \Struct: +# require 'json/add/struct' +# Customer = Struct.new(:name, :address) # Customer +# ruby0 = Customer.new("Dave", "123 Main") # # +# json = JSON.generate(ruby0) # {"json_class":"Customer","v":["Dave","123 Main"]} +# ruby1 = JSON.parse(json, create_additions: true) # # +# ruby1.class # Customer +# +# \Symbol: +# require 'json/add/symbol' +# ruby0 = :foo # foo +# json = JSON.generate(ruby0) # {"json_class":"Symbol","s":"foo"} +# ruby1 = JSON.parse(json, create_additions: true) # foo +# ruby1.class # Symbol +# +# \Time: +# require 'json/add/time' +# ruby0 = Time.now # 2020-05-02 11:28:26 -0500 +# json = JSON.generate(ruby0) # {"json_class":"Time","s":1588436906,"n":840560000} +# ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02 11:28:26 -0500 +# ruby1.class # Time +# +# +# === Custom \JSON Additions +# +# In addition to the \JSON additions provided, +# you can craft \JSON additions of your own, +# either for Ruby built-in classes or for user-defined classes. +# +# Here's a user-defined class +Foo+: +# class Foo +# attr_accessor :bar, :baz +# def initialize(bar, baz) +# self.bar = bar +# self.baz = baz +# end +# end +# +# Here's the \JSON addition for it: +# # Extend class Foo with JSON addition. +# class Foo +# # Serialize Foo object with its class name and arguments +# def to_json(*args) +# { +# JSON.create_id => self.class.name, +# 'a' => [ bar, baz ] +# }.to_json(*args) +# end +# # Deserialize JSON string by constructing new Foo object with arguments. +# def self.json_create(object) +# new(*object['a']) +# end +# end +# +# Demonstration: +# require 'json' +# # This Foo object has no custom addition. +# foo0 = Foo.new(0, 1) +# json0 = JSON.generate(foo0) +# obj0 = JSON.parse(json0) +# # Lood the custom addition. +# require_relative 'foo_addition' +# # This foo has the custom addition. +# foo1 = Foo.new(0, 1) +# json1 = JSON.generate(foo1) +# obj1 = JSON.parse(json1, create_additions: true) +# # Make a nice display. +# display = <" (String) +# With custom addition: {"json_class":"Foo","a":[0,1]} (String) +# Parsed JSON: +# Without custom addition: "#" (String) +# With custom addition: # (Foo) +module JSON + private + + # :call-seq: + # JSON.dump(obj, io = nil, limit = nil) + # + # Dumps +obj+ as a \JSON string, i.e. calls generate on the object and returns the result. + # + # The default options can be changed via method JSON.dump_default_options. + # + # - Argument +io+, if given, should respond to method +write+; + # the \JSON \String is written to +io+, and +io+ is returned. + # If +io+ is not given, the \JSON \String is returned. + # - Argument +limit+, if given, is passed to JSON.generate as option +max_nesting+. + # + # --- + # + # When argument +io+ is not given, returns the \JSON \String generated from +obj+: + # obj = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad} + # json = JSON.dump(obj) + # json # => "{\"foo\":[0,1],\"bar\":{\"baz\":2,\"bat\":3},\"bam\":\"bad\"}" + # + # When argument +io+ is given, writes the \JSON \String to +io+ and returns +io+: + # path = 't.json' + # File.open(path, 'w') do |file| + # JSON.dump(obj, file) + # end # => # + # puts File.read(path) + # Output: + # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} + # + # source://json//json/common.rb#631 + def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end + + # :call-seq: + # JSON.fast_generate(obj, opts) -> new_string + # + # Arguments +obj+ and +opts+ here are the same as + # arguments +obj+ and +opts+ in JSON.generate. + # + # By default, generates \JSON data without checking + # for circular references in +obj+ (option +max_nesting+ set to +false+, disabled). + # + # Raises an exception if +obj+ contains circular references: + # a = []; b = []; a.push(b); b.push(a) + # # Raises SystemStackError (stack level too deep): + # JSON.fast_generate(a) + # + # source://json//json/common.rb#335 + def fast_generate(obj, opts = T.unsafe(nil)); end + + # :stopdoc: + # I want to deprecate these later, so I'll first be silent about them, and later delete them. + # + # source://json//json/common.rb#335 + def fast_unparse(obj, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.generate(obj, opts = nil) -> new_string + # + # Returns a \String containing the generated \JSON data. + # + # See also JSON.fast_generate, JSON.pretty_generate. + # + # Argument +obj+ is the Ruby object to be converted to \JSON. + # + # Argument +opts+, if given, contains a \Hash of options for the generation. + # See {Generating Options}[#module-JSON-label-Generating+Options]. + # + # --- + # + # When +obj+ is an \Array, returns a \String containing a \JSON array: + # obj = ["foo", 1.0, true, false, nil] + # json = JSON.generate(obj) + # json # => '["foo",1.0,true,false,null]' + # + # When +obj+ is a \Hash, returns a \String containing a \JSON object: + # obj = {foo: 0, bar: 's', baz: :bat} + # json = JSON.generate(obj) + # json # => '{"foo":0,"bar":"s","baz":"bat"}' + # + # For examples of generating from other Ruby objects, see + # {Generating \JSON from Other Objects}[#module-JSON-label-Generating+JSON+from+Other+Objects]. + # + # --- + # + # Raises an exception if any formatting option is not a \String. + # + # Raises an exception if +obj+ contains circular references: + # a = []; b = []; a.push(b); b.push(a) + # # Raises JSON::NestingError (nesting of 100 is too deep): + # JSON.generate(a) + # + # source://json//json/common.rb#296 + def generate(obj, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.load(source, proc = nil, options = {}) -> object + # + # Returns the Ruby objects created by parsing the given +source+. + # + # - Argument +source+ must be, or be convertible to, a \String: + # - If +source+ responds to instance method +to_str+, + # source.to_str becomes the source. + # - If +source+ responds to instance method +to_io+, + # source.to_io.read becomes the source. + # - If +source+ responds to instance method +read+, + # source.read becomes the source. + # - If both of the following are true, source becomes the \String 'null': + # - Option +allow_blank+ specifies a truthy value. + # - The source, as defined above, is +nil+ or the empty \String ''. + # - Otherwise, +source+ remains the source. + # - Argument +proc+, if given, must be a \Proc that accepts one argument. + # It will be called recursively with each result (depth-first order). + # See details below. + # BEWARE: This method is meant to serialise data from trusted user input, + # like from your own database server or clients under your control, it could + # be dangerous to allow untrusted users to pass JSON sources into it. + # - Argument +opts+, if given, contains a \Hash of options for the parsing. + # See {Parsing Options}[#module-JSON-label-Parsing+Options]. + # The default options can be changed via method JSON.load_default_options=. + # + # --- + # + # When no +proc+ is given, modifies +source+ as above and returns the result of + # parse(source, opts); see #parse. + # + # Source for following examples: + # source = <<-EOT + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # EOT + # + # Load a \String: + # ruby = JSON.load(source) + # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load an \IO object: + # require 'stringio' + # object = JSON.load(StringIO.new(source)) + # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load a \File object: + # path = 't.json' + # File.write(path, source) + # File.open(path) do |file| + # JSON.load(file) + # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # --- + # + # When +proc+ is given: + # - Modifies +source+ as above. + # - Gets the +result+ from calling parse(source, opts). + # - Recursively calls proc(result). + # - Returns the final result. + # + # Example: + # require 'json' + # + # # Some classes for the example. + # class Base + # def initialize(attributes) + # @attributes = attributes + # end + # end + # class User < Base; end + # class Account < Base; end + # class Admin < Base; end + # # The JSON source. + # json = <<-EOF + # { + # "users": [ + # {"type": "User", "username": "jane", "email": "jane@example.com"}, + # {"type": "User", "username": "john", "email": "john@example.com"} + # ], + # "accounts": [ + # {"account": {"type": "Account", "paid": true, "account_id": "1234"}}, + # {"account": {"type": "Account", "paid": false, "account_id": "1235"}} + # ], + # "admins": {"type": "Admin", "password": "0wn3d"} + # } + # EOF + # # Deserializer method. + # def deserialize_obj(obj, safe_types = %w(User Account Admin)) + # type = obj.is_a?(Hash) && obj["type"] + # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj + # end + # # Call to JSON.load + # ruby = JSON.load(json, proc {|obj| + # case obj + # when Hash + # obj.each {|k, v| obj[k] = deserialize_obj v } + # when Array + # obj.map! {|v| deserialize_obj v } + # end + # }) + # pp ruby + # Output: + # {"users"=> + # [#"User", "username"=>"jane", "email"=>"jane@example.com"}>, + # #"User", "username"=>"john", "email"=>"john@example.com"}>], + # "accounts"=> + # [{"account"=> + # #"Account", "paid"=>true, "account_id"=>"1234"}>}, + # {"account"=> + # #"Account", "paid"=>false, "account_id"=>"1235"}>}], + # "admins"=> + # #"Admin", "password"=>"0wn3d"}>} + # + # source://json//json/common.rb#557 + def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + + # :call-seq: + # JSON.load_file(path, opts={}) -> object + # + # Calls: + # parse(File.read(path), opts) + # + # See method #parse. + # + # source://json//json/common.rb#245 + def load_file(filespec, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.load_file!(path, opts = {}) + # + # Calls: + # JSON.parse!(File.read(path, opts)) + # + # See method #parse! + # + # source://json//json/common.rb#256 + def load_file!(filespec, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.parse(source, opts) -> object + # + # Returns the Ruby objects created by parsing the given +source+. + # + # Argument +source+ contains the \String to be parsed. + # + # Argument +opts+, if given, contains a \Hash of options for the parsing. + # See {Parsing Options}[#module-JSON-label-Parsing+Options]. + # + # --- + # + # When +source+ is a \JSON array, returns a Ruby \Array: + # source = '["foo", 1.0, true, false, null]' + # ruby = JSON.parse(source) + # ruby # => ["foo", 1.0, true, false, nil] + # ruby.class # => Array + # + # When +source+ is a \JSON object, returns a Ruby \Hash: + # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}' + # ruby = JSON.parse(source) + # ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil} + # ruby.class # => Hash + # + # For examples of parsing for all \JSON data types, see + # {Parsing \JSON}[#module-JSON-label-Parsing+JSON]. + # + # Parses nested JSON objects: + # source = <<-EOT + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # EOT + # ruby = JSON.parse(source) + # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # --- + # + # Raises an exception if +source+ is not valid JSON: + # # Raises JSON::ParserError (783: unexpected token at ''): + # JSON.parse('') + # + # source://json//json/common.rb#215 + def parse(source, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.parse!(source, opts) -> object + # + # Calls + # parse(source, opts) + # with +source+ and possibly modified +opts+. + # + # Differences from JSON.parse: + # - Option +max_nesting+, if not provided, defaults to +false+, + # which disables checking for nesting depth. + # - Option +allow_nan+, if not provided, defaults to +true+. + # + # source://json//json/common.rb#230 + def parse!(source, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.pretty_generate(obj, opts = nil) -> new_string + # + # Arguments +obj+ and +opts+ here are the same as + # arguments +obj+ and +opts+ in JSON.generate. + # + # Default options are: + # { + # indent: ' ', # Two spaces + # space: ' ', # One space + # array_nl: "\n", # Newline + # object_nl: "\n" # Newline + # } + # + # Example: + # obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}} + # json = JSON.pretty_generate(obj) + # puts json + # Output: + # { + # "foo": [ + # "bar", + # "baz" + # ], + # "bat": { + # "bam": 0, + # "bad": 1 + # } + # } + # + # source://json//json/common.rb#390 + def pretty_generate(obj, opts = T.unsafe(nil)); end + + # :stopdoc: + # I want to deprecate these later, so I'll first be silent about them, and later delete them. + # + # source://json//json/common.rb#390 + def pretty_unparse(obj, opts = T.unsafe(nil)); end + + # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ + # + # source://json//json/common.rb#575 + def recurse_proc(result, &proc); end + + # source://json//json/common.rb#557 + def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + + # :stopdoc: + # I want to deprecate these later, so I'll first be silent about them, and + # later delete them. + # + # source://json//json/common.rb#296 + def unparse(obj, opts = T.unsafe(nil)); end + + class << self + # :call-seq: + # JSON[object] -> new_array or new_string + # + # If +object+ is a \String, + # calls JSON.parse with +object+ and +opts+ (see method #parse): + # json = '[0, 1, null]' + # JSON[json]# => [0, 1, nil] + # + # Otherwise, calls JSON.generate with +object+ and +opts+ (see method #generate): + # ruby = [0, 1, nil] + # JSON[ruby] # => '[0,1,null]' + # + # source://json//json/common.rb#18 + def [](object, opts = T.unsafe(nil)); end + + # source://json//json/common.rb#81 + def create_fast_state; end + + # Returns the current create identifier. + # See also JSON.create_id=. + # + # source://json//json/common.rb#126 + def create_id; end + + # Sets create identifier, which is used to decide if the _json_create_ + # hook of a class should be called; initial value is +json_class+: + # JSON.create_id # => 'json_class' + # + # source://json//json/common.rb#120 + def create_id=(new_value); end + + # source://json//json/common.rb#91 + def create_pretty_state; end + + # Return the constant located at _path_. The format of _path_ has to be + # either ::A::B::C or A::B::C. In any case, A has to be located at the top + # level (absolute namespace path?). If there doesn't exist a constant at + # the given path, an ArgumentError is raised. + # + # source://json//json/common.rb#42 + def deep_const_get(path); end + + # :call-seq: + # JSON.dump(obj, io = nil, limit = nil) + # + # Dumps +obj+ as a \JSON string, i.e. calls generate on the object and returns the result. + # + # The default options can be changed via method JSON.dump_default_options. + # + # - Argument +io+, if given, should respond to method +write+; + # the \JSON \String is written to +io+, and +io+ is returned. + # If +io+ is not given, the \JSON \String is returned. + # - Argument +limit+, if given, is passed to JSON.generate as option +max_nesting+. + # + # --- + # + # When argument +io+ is not given, returns the \JSON \String generated from +obj+: + # obj = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad} + # json = JSON.dump(obj) + # json # => "{\"foo\":[0,1],\"bar\":{\"baz\":2,\"bat\":3},\"bam\":\"bad\"}" + # + # When argument +io+ is given, writes the \JSON \String to +io+ and returns +io+: + # path = 't.json' + # File.open(path, 'w') do |file| + # JSON.dump(obj, file) + # end # => # + # puts File.read(path) + # Output: + # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} + # + # source://json//json/common.rb#631 + def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end + + # Sets or returns the default options for the JSON.dump method. + # Initially: + # opts = JSON.dump_default_options + # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false} + # + # source://json//json/common.rb#596 + def dump_default_options; end + + # Sets or returns the default options for the JSON.dump method. + # Initially: + # opts = JSON.dump_default_options + # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false} + # + # source://json//json/common.rb#596 + def dump_default_options=(_arg0); end + + # :call-seq: + # JSON.fast_generate(obj, opts) -> new_string + # + # Arguments +obj+ and +opts+ here are the same as + # arguments +obj+ and +opts+ in JSON.generate. + # + # By default, generates \JSON data without checking + # for circular references in +obj+ (option +max_nesting+ set to +false+, disabled). + # + # Raises an exception if +obj+ contains circular references: + # a = []; b = []; a.push(b); b.push(a) + # # Raises SystemStackError (stack level too deep): + # JSON.fast_generate(a) + # + # source://json//json/common.rb#335 + def fast_generate(obj, opts = T.unsafe(nil)); end + + # :stopdoc: + # I want to deprecate these later, so I'll first be silent about them, and later delete them. + # + # source://json//json/common.rb#335 + def fast_unparse(obj, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.generate(obj, opts = nil) -> new_string + # + # Returns a \String containing the generated \JSON data. + # + # See also JSON.fast_generate, JSON.pretty_generate. + # + # Argument +obj+ is the Ruby object to be converted to \JSON. + # + # Argument +opts+, if given, contains a \Hash of options for the generation. + # See {Generating Options}[#module-JSON-label-Generating+Options]. + # + # --- + # + # When +obj+ is an \Array, returns a \String containing a \JSON array: + # obj = ["foo", 1.0, true, false, nil] + # json = JSON.generate(obj) + # json # => '["foo",1.0,true,false,null]' + # + # When +obj+ is a \Hash, returns a \String containing a \JSON object: + # obj = {foo: 0, bar: 's', baz: :bat} + # json = JSON.generate(obj) + # json # => '{"foo":0,"bar":"s","baz":"bat"}' + # + # For examples of generating from other Ruby objects, see + # {Generating \JSON from Other Objects}[#module-JSON-label-Generating+JSON+from+Other+Objects]. + # + # --- + # + # Raises an exception if any formatting option is not a \String. + # + # Raises an exception if +obj+ contains circular references: + # a = []; b = []; a.push(b); b.push(a) + # # Raises JSON::NestingError (nesting of 100 is too deep): + # JSON.generate(a) + # + # source://json//json/common.rb#296 + def generate(obj, opts = T.unsafe(nil)); end + + # Returns the JSON generator module that is used by JSON. This is + # either JSON::Ext::Generator or JSON::Pure::Generator: + # JSON.generator # => JSON::Ext::Generator + # + # source://json//json/common.rb#103 + def generator; end + + # Set the module _generator_ to be used by JSON. + # + # source://json//json/common.rb#58 + def generator=(generator); end + + # Encodes string using String.encode. + # + # source://json//json/common.rb#653 + def iconv(to, from, string); end + + # :call-seq: + # JSON.load(source, proc = nil, options = {}) -> object + # + # Returns the Ruby objects created by parsing the given +source+. + # + # - Argument +source+ must be, or be convertible to, a \String: + # - If +source+ responds to instance method +to_str+, + # source.to_str becomes the source. + # - If +source+ responds to instance method +to_io+, + # source.to_io.read becomes the source. + # - If +source+ responds to instance method +read+, + # source.read becomes the source. + # - If both of the following are true, source becomes the \String 'null': + # - Option +allow_blank+ specifies a truthy value. + # - The source, as defined above, is +nil+ or the empty \String ''. + # - Otherwise, +source+ remains the source. + # - Argument +proc+, if given, must be a \Proc that accepts one argument. + # It will be called recursively with each result (depth-first order). + # See details below. + # BEWARE: This method is meant to serialise data from trusted user input, + # like from your own database server or clients under your control, it could + # be dangerous to allow untrusted users to pass JSON sources into it. + # - Argument +opts+, if given, contains a \Hash of options for the parsing. + # See {Parsing Options}[#module-JSON-label-Parsing+Options]. + # The default options can be changed via method JSON.load_default_options=. + # + # --- + # + # When no +proc+ is given, modifies +source+ as above and returns the result of + # parse(source, opts); see #parse. + # + # Source for following examples: + # source = <<-EOT + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # EOT + # + # Load a \String: + # ruby = JSON.load(source) + # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load an \IO object: + # require 'stringio' + # object = JSON.load(StringIO.new(source)) + # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load a \File object: + # path = 't.json' + # File.write(path, source) + # File.open(path) do |file| + # JSON.load(file) + # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # --- + # + # When +proc+ is given: + # - Modifies +source+ as above. + # - Gets the +result+ from calling parse(source, opts). + # - Recursively calls proc(result). + # - Returns the final result. + # + # Example: + # require 'json' + # + # # Some classes for the example. + # class Base + # def initialize(attributes) + # @attributes = attributes + # end + # end + # class User < Base; end + # class Account < Base; end + # class Admin < Base; end + # # The JSON source. + # json = <<-EOF + # { + # "users": [ + # {"type": "User", "username": "jane", "email": "jane@example.com"}, + # {"type": "User", "username": "john", "email": "john@example.com"} + # ], + # "accounts": [ + # {"account": {"type": "Account", "paid": true, "account_id": "1234"}}, + # {"account": {"type": "Account", "paid": false, "account_id": "1235"}} + # ], + # "admins": {"type": "Admin", "password": "0wn3d"} + # } + # EOF + # # Deserializer method. + # def deserialize_obj(obj, safe_types = %w(User Account Admin)) + # type = obj.is_a?(Hash) && obj["type"] + # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj + # end + # # Call to JSON.load + # ruby = JSON.load(json, proc {|obj| + # case obj + # when Hash + # obj.each {|k, v| obj[k] = deserialize_obj v } + # when Array + # obj.map! {|v| deserialize_obj v } + # end + # }) + # pp ruby + # Output: + # {"users"=> + # [#"User", "username"=>"jane", "email"=>"jane@example.com"}>, + # #"User", "username"=>"john", "email"=>"john@example.com"}>], + # "accounts"=> + # [{"account"=> + # #"Account", "paid"=>true, "account_id"=>"1234"}>}, + # {"account"=> + # #"Account", "paid"=>false, "account_id"=>"1235"}>}], + # "admins"=> + # #"Admin", "password"=>"0wn3d"}>} + # + # source://json//json/common.rb#557 + def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + + # Sets or returns default options for the JSON.load method. + # Initially: + # opts = JSON.load_default_options + # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} + # + # source://json//json/common.rb#420 + def load_default_options; end + + # Sets or returns default options for the JSON.load method. + # Initially: + # opts = JSON.load_default_options + # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} + # + # source://json//json/common.rb#420 + def load_default_options=(_arg0); end + + # :call-seq: + # JSON.load_file(path, opts={}) -> object + # + # Calls: + # parse(File.read(path), opts) + # + # See method #parse. + # + # source://json//json/common.rb#245 + def load_file(filespec, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.load_file!(path, opts = {}) + # + # Calls: + # JSON.parse!(File.read(path, opts)) + # + # See method #parse! + # + # source://json//json/common.rb#256 + def load_file!(filespec, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.parse(source, opts) -> object + # + # Returns the Ruby objects created by parsing the given +source+. + # + # Argument +source+ contains the \String to be parsed. + # + # Argument +opts+, if given, contains a \Hash of options for the parsing. + # See {Parsing Options}[#module-JSON-label-Parsing+Options]. + # + # --- + # + # When +source+ is a \JSON array, returns a Ruby \Array: + # source = '["foo", 1.0, true, false, null]' + # ruby = JSON.parse(source) + # ruby # => ["foo", 1.0, true, false, nil] + # ruby.class # => Array + # + # When +source+ is a \JSON object, returns a Ruby \Hash: + # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}' + # ruby = JSON.parse(source) + # ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil} + # ruby.class # => Hash + # + # For examples of parsing for all \JSON data types, see + # {Parsing \JSON}[#module-JSON-label-Parsing+JSON]. + # + # Parses nested JSON objects: + # source = <<-EOT + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # EOT + # ruby = JSON.parse(source) + # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # --- + # + # Raises an exception if +source+ is not valid JSON: + # # Raises JSON::ParserError (783: unexpected token at ''): + # JSON.parse('') + # + # source://json//json/common.rb#215 + def parse(source, opts = T.unsafe(nil)); end + + # :call-seq: + # JSON.parse!(source, opts) -> object + # + # Calls + # parse(source, opts) + # with +source+ and possibly modified +opts+. + # + # Differences from JSON.parse: + # - Option +max_nesting+, if not provided, defaults to +false+, + # which disables checking for nesting depth. + # - Option +allow_nan+, if not provided, defaults to +true+. + # + # source://json//json/common.rb#230 + def parse!(source, opts = T.unsafe(nil)); end + + # Returns the JSON parser class that is used by JSON. This is either + # JSON::Ext::Parser or JSON::Pure::Parser: + # JSON.parser # => JSON::Ext::Parser + # + # source://json//json/common.rb#29 + def parser; end + + # Set the JSON parser class _parser_ to be used by JSON. + # + # source://json//json/common.rb#32 + def parser=(parser); end + + # :call-seq: + # JSON.pretty_generate(obj, opts = nil) -> new_string + # + # Arguments +obj+ and +opts+ here are the same as + # arguments +obj+ and +opts+ in JSON.generate. + # + # Default options are: + # { + # indent: ' ', # Two spaces + # space: ' ', # One space + # array_nl: "\n", # Newline + # object_nl: "\n" # Newline + # } + # + # Example: + # obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}} + # json = JSON.pretty_generate(obj) + # puts json + # Output: + # { + # "foo": [ + # "bar", + # "baz" + # ], + # "bat": { + # "bam": 0, + # "bad": 1 + # } + # } + # + # source://json//json/common.rb#390 + def pretty_generate(obj, opts = T.unsafe(nil)); end + + # :stopdoc: + # I want to deprecate these later, so I'll first be silent about them, and later delete them. + # + # source://json//json/common.rb#390 + def pretty_unparse(obj, opts = T.unsafe(nil)); end + + # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ + # + # source://json//json/common.rb#575 + def recurse_proc(result, &proc); end + + # source://json//json/common.rb#557 + def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + + # Sets or Returns the JSON generator state class that is used by JSON. This is + # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: + # JSON.state # => JSON::Ext::Generator::State + # + # source://json//json/common.rb#108 + def state; end + + # Sets or Returns the JSON generator state class that is used by JSON. This is + # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: + # JSON.state # => JSON::Ext::Generator::State + # + # source://json//json/common.rb#108 + def state=(_arg0); end + + # :stopdoc: + # I want to deprecate these later, so I'll first be silent about them, and + # later delete them. + # + # source://json//json/common.rb#296 + def unparse(obj, opts = T.unsafe(nil)); end + end +end + +# source://json//json/common.rb#114 +JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String) + +# source://json//json/common.rb#111 +JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String) + +class JSON::GenericObject < ::OpenStruct + # source://json//json/generic_object.rb#63 + def as_json(*_arg0); end + + # source://json//json/generic_object.rb#47 + def to_hash; end + + # source://json//json/generic_object.rb#67 + def to_json(*a); end + + # source://json//json/generic_object.rb#59 + def |(other); end + + class << self + # source://json//json/generic_object.rb#41 + def dump(obj, *args); end + + # source://json//json/generic_object.rb#21 + def from_hash(object); end + + # Sets the attribute json_creatable + # + # @param value the value to set the attribute json_creatable to. + # + # source://json//json/generic_object.rb#13 + def json_creatable=(_arg0); end + + # @return [Boolean] + # + # source://json//json/generic_object.rb#9 + def json_creatable?; end + + # source://json//json/generic_object.rb#15 + def json_create(data); end + + # source://json//json/generic_object.rb#36 + def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end + end +end + +# The base exception for JSON errors. +class JSON::JSONError < ::StandardError + class << self + # source://json//json/common.rb#138 + def wrap(exception); end + end +end + +# source://json//json/common.rb#35 +JSON::Parser = JSON::Ext::Parser + +# source://json//json/common.rb#73 +JSON::State = JSON::Ext::Generator::State + +# For backwards compatibility +# +# source://json//json/common.rb#159 +JSON::UnparserError = JSON::GeneratorError + +module Kernel + private + + # If _object_ is string-like, parse the string and return the parsed result as + # a Ruby data structure. Otherwise, generate a JSON text from the Ruby data + # structure object and return it. + # + # The _opts_ argument is passed through to generate/parse respectively. See + # generate and parse for their documentation. + # + # source://json//json/common.rb#685 + def JSON(object, *args); end + + # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in + # one line. + # + # source://json//json/common.rb#663 + def j(*objs); end + + # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with + # indentation and over many lines. + # + # source://json//json/common.rb#672 + def jj(*objs); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi b/ruby-client-sdk/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi new file mode 100755 index 000000000..f6b1d8ed6 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi @@ -0,0 +1,14237 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `language_server-protocol` gem. +# Please instead update this file by running `bin/tapioca gem language_server-protocol`. + +# source://language_server-protocol//lib/language_server/protocol/version.rb#1 +module LanguageServer; end + +# source://language_server-protocol//lib/language_server/protocol/version.rb#2 +module LanguageServer::Protocol; end + +# source://language_server-protocol//lib/language_server/protocol/constant.rb#3 +module LanguageServer::Protocol::Constant; end + +# The kind of a code action. +# +# Kinds are a hierarchical list of identifiers separated by `.`, +# e.g. `"refactor.extract.function"`. +# +# The set of kinds is open and client needs to announce the kinds it supports +# to the server during initialization. +# A set of predefined code action kinds. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#14 +module LanguageServer::Protocol::Constant::CodeActionKind; end + +# Empty kind. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#18 +LanguageServer::Protocol::Constant::CodeActionKind::EMPTY = T.let(T.unsafe(nil), String) + +# Base kind for quickfix actions: 'quickfix'. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#22 +LanguageServer::Protocol::Constant::CodeActionKind::QUICK_FIX = T.let(T.unsafe(nil), String) + +# Base kind for refactoring actions: 'refactor'. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#26 +LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR = T.let(T.unsafe(nil), String) + +# Base kind for refactoring extraction actions: 'refactor.extract'. +# +# Example extract actions: +# +# - Extract method +# - Extract function +# - Extract variable +# - Extract interface from class +# - ... +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#38 +LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_EXTRACT = T.let(T.unsafe(nil), String) + +# Base kind for refactoring inline actions: 'refactor.inline'. +# +# Example inline actions: +# +# - Inline function +# - Inline variable +# - Inline constant +# - ... +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#49 +LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_INLINE = T.let(T.unsafe(nil), String) + +# Base kind for refactoring rewrite actions: 'refactor.rewrite'. +# +# Example rewrite actions: +# +# - Convert JavaScript function to class +# - Add or remove parameter +# - Encapsulate field +# - Make method static +# - Move method to base class +# - ... +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#62 +LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_REWRITE = T.let(T.unsafe(nil), String) + +# Base kind for source actions: `source`. +# +# Source code actions apply to the entire file. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#68 +LanguageServer::Protocol::Constant::CodeActionKind::SOURCE = T.let(T.unsafe(nil), String) + +# Base kind for a 'fix all' source action: `source.fixAll`. +# +# 'Fix all' actions automatically fix errors that have a clear fix that +# do not require user input. They should not suppress errors or perform +# unsafe fixes such as generating new types or classes. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#81 +LanguageServer::Protocol::Constant::CodeActionKind::SOURCE_FIX_ALL = T.let(T.unsafe(nil), String) + +# Base kind for an organize imports source action: +# `source.organizeImports`. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#73 +LanguageServer::Protocol::Constant::CodeActionKind::SOURCE_ORGANIZE_IMPORTS = T.let(T.unsafe(nil), String) + +# The reason why code actions were requested. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#7 +module LanguageServer::Protocol::Constant::CodeActionTriggerKind; end + +# Code actions were requested automatically. +# +# This typically happens when current selection in a file changes, but can +# also be triggered when file content changes. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#18 +LanguageServer::Protocol::Constant::CodeActionTriggerKind::AUTOMATIC = T.let(T.unsafe(nil), Integer) + +# Code actions were explicitly requested by the user or by an extension. +# +# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#11 +LanguageServer::Protocol::Constant::CodeActionTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) + +# The kind of a completion entry. +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#7 +module LanguageServer::Protocol::Constant::CompletionItemKind; end + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#14 +LanguageServer::Protocol::Constant::CompletionItemKind::CLASS = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#23 +LanguageServer::Protocol::Constant::CompletionItemKind::COLOR = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#28 +LanguageServer::Protocol::Constant::CompletionItemKind::CONSTANT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#11 +LanguageServer::Protocol::Constant::CompletionItemKind::CONSTRUCTOR = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#20 +LanguageServer::Protocol::Constant::CompletionItemKind::ENUM = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#27 +LanguageServer::Protocol::Constant::CompletionItemKind::ENUM_MEMBER = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#30 +LanguageServer::Protocol::Constant::CompletionItemKind::EVENT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#12 +LanguageServer::Protocol::Constant::CompletionItemKind::FIELD = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#24 +LanguageServer::Protocol::Constant::CompletionItemKind::FILE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#26 +LanguageServer::Protocol::Constant::CompletionItemKind::FOLDER = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#10 +LanguageServer::Protocol::Constant::CompletionItemKind::FUNCTION = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#15 +LanguageServer::Protocol::Constant::CompletionItemKind::INTERFACE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#21 +LanguageServer::Protocol::Constant::CompletionItemKind::KEYWORD = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#9 +LanguageServer::Protocol::Constant::CompletionItemKind::METHOD = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#16 +LanguageServer::Protocol::Constant::CompletionItemKind::MODULE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#31 +LanguageServer::Protocol::Constant::CompletionItemKind::OPERATOR = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#17 +LanguageServer::Protocol::Constant::CompletionItemKind::PROPERTY = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#25 +LanguageServer::Protocol::Constant::CompletionItemKind::REFERENCE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#22 +LanguageServer::Protocol::Constant::CompletionItemKind::SNIPPET = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#29 +LanguageServer::Protocol::Constant::CompletionItemKind::STRUCT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#8 +LanguageServer::Protocol::Constant::CompletionItemKind::TEXT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#32 +LanguageServer::Protocol::Constant::CompletionItemKind::TYPE_PARAMETER = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#18 +LanguageServer::Protocol::Constant::CompletionItemKind::UNIT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#19 +LanguageServer::Protocol::Constant::CompletionItemKind::VALUE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#13 +LanguageServer::Protocol::Constant::CompletionItemKind::VARIABLE = T.let(T.unsafe(nil), Integer) + +# Completion item tags are extra annotations that tweak the rendering of a +# completion item. +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_tag.rb#8 +module LanguageServer::Protocol::Constant::CompletionItemTag; end + +# Render a completion as obsolete, usually using a strike-out. +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_tag.rb#12 +LanguageServer::Protocol::Constant::CompletionItemTag::DEPRECATED = T.let(T.unsafe(nil), Integer) + +# How a completion was triggered +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#7 +module LanguageServer::Protocol::Constant::CompletionTriggerKind; end + +# Completion was triggered by typing an identifier (24x7 code +# complete), manual invocation (e.g Ctrl+Space) or via API. +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#12 +LanguageServer::Protocol::Constant::CompletionTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) + +# Completion was triggered by a trigger character specified by +# the `triggerCharacters` properties of the +# `CompletionRegistrationOptions`. +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#18 +LanguageServer::Protocol::Constant::CompletionTriggerKind::TRIGGER_CHARACTER = T.let(T.unsafe(nil), Integer) + +# Completion was re-triggered as the current completion list is incomplete. +# +# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#22 +LanguageServer::Protocol::Constant::CompletionTriggerKind::TRIGGER_FOR_INCOMPLETE_COMPLETIONS = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#4 +module LanguageServer::Protocol::Constant::DiagnosticSeverity; end + +# Reports an error. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#8 +LanguageServer::Protocol::Constant::DiagnosticSeverity::ERROR = T.let(T.unsafe(nil), Integer) + +# Reports a hint. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#20 +LanguageServer::Protocol::Constant::DiagnosticSeverity::HINT = T.let(T.unsafe(nil), Integer) + +# Reports an information. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#16 +LanguageServer::Protocol::Constant::DiagnosticSeverity::INFORMATION = T.let(T.unsafe(nil), Integer) + +# Reports a warning. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#12 +LanguageServer::Protocol::Constant::DiagnosticSeverity::WARNING = T.let(T.unsafe(nil), Integer) + +# The diagnostic tags. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#7 +module LanguageServer::Protocol::Constant::DiagnosticTag; end + +# Deprecated or obsolete code. +# +# Clients are allowed to rendered diagnostics with this tag strike through. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#20 +LanguageServer::Protocol::Constant::DiagnosticTag::DEPRECATED = T.let(T.unsafe(nil), Integer) + +# Unused or unnecessary code. +# +# Clients are allowed to render diagnostics with this tag faded out +# instead of having an error squiggle. +# +# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#14 +LanguageServer::Protocol::Constant::DiagnosticTag::UNNECESSARY = T.let(T.unsafe(nil), Integer) + +# The document diagnostic report kinds. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#7 +module LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind; end + +# A diagnostic report with a full +# set of problems. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#12 +LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind::FULL = T.let(T.unsafe(nil), String) + +# A report indicating that the last +# returned report is still accurate. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#17 +LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind::UNCHANGED = T.let(T.unsafe(nil), String) + +# A document highlight kind. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#7 +module LanguageServer::Protocol::Constant::DocumentHighlightKind; end + +# Read-access of a symbol, like reading a variable. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#15 +LanguageServer::Protocol::Constant::DocumentHighlightKind::READ = T.let(T.unsafe(nil), Integer) + +# A textual occurrence. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#11 +LanguageServer::Protocol::Constant::DocumentHighlightKind::TEXT = T.let(T.unsafe(nil), Integer) + +# Write-access of a symbol, like writing to a variable. +# +# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#19 +LanguageServer::Protocol::Constant::DocumentHighlightKind::WRITE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#4 +module LanguageServer::Protocol::Constant::ErrorCodes; end + +# The server detected that the content of a document got +# modified outside normal conditions. A server should +# NOT send this error code if it detects a content change +# in it unprocessed messages. The result even computed +# on an older state might still be useful for the client. +# +# If a client decides that a result is not of any use anymore +# the client should cancel the request. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#59 +LanguageServer::Protocol::Constant::ErrorCodes::CONTENT_MODIFIED = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#9 +LanguageServer::Protocol::Constant::ErrorCodes::INTERNAL_ERROR = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#8 +LanguageServer::Protocol::Constant::ErrorCodes::INVALID_PARAMS = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#6 +LanguageServer::Protocol::Constant::ErrorCodes::INVALID_REQUEST = T.let(T.unsafe(nil), Integer) + +# This is the end range of JSON-RPC reserved error codes. +# It doesn't denote a real error code. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#29 +LanguageServer::Protocol::Constant::ErrorCodes::JSONRPC_RESERVED_ERROR_RANGE_END = T.let(T.unsafe(nil), Integer) + +# This is the start range of JSON-RPC reserved error codes. +# It doesn't denote a real error code. No LSP error codes should +# be defined between the start and end range. For backwards +# compatibility the `ServerNotInitialized` and the `UnknownErrorCode` +# are left in the range. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#17 +LanguageServer::Protocol::Constant::ErrorCodes::JSONRPC_RESERVED_ERROR_RANGE_START = T.let(T.unsafe(nil), Integer) + +# This is the end range of LSP reserved error codes. +# It doesn't denote a real error code. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#69 +LanguageServer::Protocol::Constant::ErrorCodes::LSP_RESERVED_ERROR_RANGE_END = T.let(T.unsafe(nil), Integer) + +# This is the start range of LSP reserved error codes. +# It doesn't denote a real error code. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#35 +LanguageServer::Protocol::Constant::ErrorCodes::LSP_RESERVED_ERROR_RANGE_START = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#7 +LanguageServer::Protocol::Constant::ErrorCodes::METHOD_NOT_FOUND = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#5 +LanguageServer::Protocol::Constant::ErrorCodes::PARSE_ERROR = T.let(T.unsafe(nil), Integer) + +# The client has canceled a request and a server as detected +# the cancel. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#64 +LanguageServer::Protocol::Constant::ErrorCodes::REQUEST_CANCELLED = T.let(T.unsafe(nil), Integer) + +# A request failed but it was syntactically correct, e.g the +# method name was known and the parameters were valid. The error +# message should contain human readable information about why +# the request failed. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#42 +LanguageServer::Protocol::Constant::ErrorCodes::REQUEST_FAILED = T.let(T.unsafe(nil), Integer) + +# The server cancelled the request. This error code should +# only be used for requests that explicitly support being +# server cancellable. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#48 +LanguageServer::Protocol::Constant::ErrorCodes::SERVER_CANCELLED = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#30 +LanguageServer::Protocol::Constant::ErrorCodes::SERVER_ERROR_END = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#18 +LanguageServer::Protocol::Constant::ErrorCodes::SERVER_ERROR_START = T.let(T.unsafe(nil), Integer) + +# Error code indicating that a server received a notification or +# request before the server has received the `initialize` request. +# +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#23 +LanguageServer::Protocol::Constant::ErrorCodes::SERVER_NOT_INITIALIZED = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#24 +LanguageServer::Protocol::Constant::ErrorCodes::UNKNOWN_ERROR_CODE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#4 +module LanguageServer::Protocol::Constant::FailureHandlingKind; end + +# Applying the workspace change is simply aborted if one of the changes +# provided fails. All operations executed before the failing operation +# stay executed. +# +# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#10 +LanguageServer::Protocol::Constant::FailureHandlingKind::ABORT = T.let(T.unsafe(nil), String) + +# If the workspace edit contains only textual file changes they are +# executed transactional. If resource changes (create, rename or delete +# file) are part of the change the failure handling strategy is abort. +# +# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#21 +LanguageServer::Protocol::Constant::FailureHandlingKind::TEXT_ONLY_TRANSACTIONAL = T.let(T.unsafe(nil), String) + +# All operations are executed transactional. That means they either all +# succeed or no changes at all are applied to the workspace. +# +# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#15 +LanguageServer::Protocol::Constant::FailureHandlingKind::TRANSACTIONAL = T.let(T.unsafe(nil), String) + +# The client tries to undo the operations already executed. But there is no +# guarantee that this is succeeding. +# +# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#26 +LanguageServer::Protocol::Constant::FailureHandlingKind::UNDO = T.let(T.unsafe(nil), String) + +# The file event type. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#7 +module LanguageServer::Protocol::Constant::FileChangeType; end + +# The file got changed. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#15 +LanguageServer::Protocol::Constant::FileChangeType::CHANGED = T.let(T.unsafe(nil), Integer) + +# The file got created. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#11 +LanguageServer::Protocol::Constant::FileChangeType::CREATED = T.let(T.unsafe(nil), Integer) + +# The file got deleted. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#19 +LanguageServer::Protocol::Constant::FileChangeType::DELETED = T.let(T.unsafe(nil), Integer) + +# A pattern kind describing if a glob pattern matches a file a folder or +# both. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#8 +module LanguageServer::Protocol::Constant::FileOperationPatternKind; end + +# The pattern matches a file only. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#12 +LanguageServer::Protocol::Constant::FileOperationPatternKind::FILE = T.let(T.unsafe(nil), String) + +# The pattern matches a folder only. +# +# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#16 +LanguageServer::Protocol::Constant::FileOperationPatternKind::FOLDER = T.let(T.unsafe(nil), String) + +# A set of predefined range kinds. +# The type is a string since the value set is extensible +# +# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#8 +module LanguageServer::Protocol::Constant::FoldingRangeKind; end + +# Folding range for a comment +# +# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#12 +LanguageServer::Protocol::Constant::FoldingRangeKind::COMMENT = T.let(T.unsafe(nil), String) + +# Folding range for imports or includes +# +# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#16 +LanguageServer::Protocol::Constant::FoldingRangeKind::IMPORTS = T.let(T.unsafe(nil), String) + +# Folding range for a region (e.g. `#region`) +# +# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#20 +LanguageServer::Protocol::Constant::FoldingRangeKind::REGION = T.let(T.unsafe(nil), String) + +# Known error codes for an `InitializeErrorCodes`; +# +# source://language_server-protocol//lib/language_server/protocol/constant/initialize_error_codes.rb#7 +module LanguageServer::Protocol::Constant::InitializeErrorCodes; end + +# If the protocol version provided by the client can't be handled by +# the server. +# +# source://language_server-protocol//lib/language_server/protocol/constant/initialize_error_codes.rb#12 +LanguageServer::Protocol::Constant::InitializeErrorCodes::UNKNOWN_PROTOCOL_VERSION = T.let(T.unsafe(nil), Integer) + +# Inlay hint kinds. +# +# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#7 +module LanguageServer::Protocol::Constant::InlayHintKind; end + +# An inlay hint that is for a parameter. +# +# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#15 +LanguageServer::Protocol::Constant::InlayHintKind::PARAMETER = T.let(T.unsafe(nil), Integer) + +# An inlay hint that for a type annotation. +# +# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#11 +LanguageServer::Protocol::Constant::InlayHintKind::TYPE = T.let(T.unsafe(nil), Integer) + +# Defines whether the insert text in a completion item should be interpreted as +# plain text or a snippet. +# +# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#8 +module LanguageServer::Protocol::Constant::InsertTextFormat; end + +# The primary text to be inserted is treated as a plain string. +# +# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#12 +LanguageServer::Protocol::Constant::InsertTextFormat::PLAIN_TEXT = T.let(T.unsafe(nil), Integer) + +# The primary text to be inserted is treated as a snippet. +# +# A snippet can define tab stops and placeholders with `$1`, `$2` +# and `${3:foo}`. `$0` defines the final tab stop, it defaults to +# the end of the snippet. Placeholders with equal identifiers are linked, +# that is typing in one will update others too. +# +# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#21 +LanguageServer::Protocol::Constant::InsertTextFormat::SNIPPET = T.let(T.unsafe(nil), Integer) + +# How whitespace and indentation is handled during completion +# item insertion. +# +# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#8 +module LanguageServer::Protocol::Constant::InsertTextMode; end + +# The editor adjusts leading whitespace of new lines so that +# they match the indentation up to the cursor of the line for +# which the item is accepted. +# +# Consider a line like this: <2tabs><3tabs>foo. Accepting a +# multi line completion item is indented using 2 tabs and all +# following lines inserted will be indented using 2 tabs as well. +# +# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#26 +LanguageServer::Protocol::Constant::InsertTextMode::ADJUST_INDENTATION = T.let(T.unsafe(nil), Integer) + +# The insertion or replace strings is taken as it is. If the +# value is multi line the lines below the cursor will be +# inserted using the indentation defined in the string value. +# The client will not apply any kind of adjustments to the +# string. +# +# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#16 +LanguageServer::Protocol::Constant::InsertTextMode::AS_IS = T.let(T.unsafe(nil), Integer) + +# Describes the content type that a client supports in various +# result literals like `Hover`, `ParameterInfo` or `CompletionItem`. +# +# Please note that `MarkupKinds` must not start with a `$`. This kinds +# are reserved for internal usage. +# +# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#11 +module LanguageServer::Protocol::Constant::MarkupKind; end + +# Markdown is supported as a content format +# +# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#19 +LanguageServer::Protocol::Constant::MarkupKind::MARKDOWN = T.let(T.unsafe(nil), String) + +# Plain text is supported as a content format +# +# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#15 +LanguageServer::Protocol::Constant::MarkupKind::PLAIN_TEXT = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#4 +module LanguageServer::Protocol::Constant::MessageType; end + +# An error message. +# +# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#8 +LanguageServer::Protocol::Constant::MessageType::ERROR = T.let(T.unsafe(nil), Integer) + +# An information message. +# +# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#16 +LanguageServer::Protocol::Constant::MessageType::INFO = T.let(T.unsafe(nil), Integer) + +# A log message. +# +# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#20 +LanguageServer::Protocol::Constant::MessageType::LOG = T.let(T.unsafe(nil), Integer) + +# A warning message. +# +# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#12 +LanguageServer::Protocol::Constant::MessageType::WARNING = T.let(T.unsafe(nil), Integer) + +# The moniker kind. +# +# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#7 +module LanguageServer::Protocol::Constant::MonikerKind; end + +# The moniker represents a symbol that is exported from a project +# +# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#15 +LanguageServer::Protocol::Constant::MonikerKind::EXPORT = T.let(T.unsafe(nil), String) + +# The moniker represent a symbol that is imported into a project +# +# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#11 +LanguageServer::Protocol::Constant::MonikerKind::IMPORT = T.let(T.unsafe(nil), String) + +# The moniker represents a symbol that is local to a project (e.g. a local +# variable of a function, a class not visible outside the project, ...) +# +# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#20 +LanguageServer::Protocol::Constant::MonikerKind::LOCAL = T.let(T.unsafe(nil), String) + +# A notebook cell kind. +# +# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#7 +module LanguageServer::Protocol::Constant::NotebookCellKind; end + +# A code-cell is source code. +# +# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#15 +LanguageServer::Protocol::Constant::NotebookCellKind::CODE = T.let(T.unsafe(nil), Integer) + +# A markup-cell is formatted source that is used for display. +# +# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#11 +LanguageServer::Protocol::Constant::NotebookCellKind::MARKUP = T.let(T.unsafe(nil), Integer) + +# A type indicating how positions are encoded, +# specifically what column offsets mean. +# A set of predefined position encoding kinds. +# +# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#9 +module LanguageServer::Protocol::Constant::PositionEncodingKind; end + +# Character offsets count UTF-16 code units. +# +# This is the default and must always be supported +# by servers +# +# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#20 +LanguageServer::Protocol::Constant::PositionEncodingKind::UTF16 = T.let(T.unsafe(nil), String) + +# Character offsets count UTF-32 code units. +# +# Implementation note: these are the same as Unicode code points, +# so this `PositionEncodingKind` may also be used for an +# encoding-agnostic representation of character offsets. +# +# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#28 +LanguageServer::Protocol::Constant::PositionEncodingKind::UTF32 = T.let(T.unsafe(nil), String) + +# Character offsets count UTF-8 code units (e.g bytes). +# +# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#13 +LanguageServer::Protocol::Constant::PositionEncodingKind::UTF8 = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/prepare_support_default_behavior.rb#4 +module LanguageServer::Protocol::Constant::PrepareSupportDefaultBehavior; end + +# The client's default behavior is to select the identifier +# according to the language's syntax rule. +# +# source://language_server-protocol//lib/language_server/protocol/constant/prepare_support_default_behavior.rb#9 +LanguageServer::Protocol::Constant::PrepareSupportDefaultBehavior::IDENTIFIER = T.let(T.unsafe(nil), Integer) + +# The kind of resource operations supported by the client. +# +# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#7 +module LanguageServer::Protocol::Constant::ResourceOperationKind; end + +# Supports creating new files and folders. +# +# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#11 +LanguageServer::Protocol::Constant::ResourceOperationKind::CREATE = T.let(T.unsafe(nil), String) + +# Supports deleting existing files and folders. +# +# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#19 +LanguageServer::Protocol::Constant::ResourceOperationKind::DELETE = T.let(T.unsafe(nil), String) + +# Supports renaming existing files and folders. +# +# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#15 +LanguageServer::Protocol::Constant::ResourceOperationKind::RENAME = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#4 +module LanguageServer::Protocol::Constant::SemanticTokenModifiers; end + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#10 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::ABSTRACT = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#11 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::ASYNC = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#5 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::DECLARATION = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#14 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEFAULT_LIBRARY = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#6 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEFINITION = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#9 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEPRECATED = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#13 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::DOCUMENTATION = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#12 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::MODIFICATION = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#7 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::READONLY = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#8 +LanguageServer::Protocol::Constant::SemanticTokenModifiers::STATIC = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#4 +module LanguageServer::Protocol::Constant::SemanticTokenTypes; end + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#11 +LanguageServer::Protocol::Constant::SemanticTokenTypes::CLASS = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#26 +LanguageServer::Protocol::Constant::SemanticTokenTypes::COMMENT = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#31 +LanguageServer::Protocol::Constant::SemanticTokenTypes::DECORATOR = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#12 +LanguageServer::Protocol::Constant::SemanticTokenTypes::ENUM = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#19 +LanguageServer::Protocol::Constant::SemanticTokenTypes::ENUM_MEMBER = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#20 +LanguageServer::Protocol::Constant::SemanticTokenTypes::EVENT = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#21 +LanguageServer::Protocol::Constant::SemanticTokenTypes::FUNCTION = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#13 +LanguageServer::Protocol::Constant::SemanticTokenTypes::INTERFACE = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#24 +LanguageServer::Protocol::Constant::SemanticTokenTypes::KEYWORD = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#23 +LanguageServer::Protocol::Constant::SemanticTokenTypes::MACRO = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#22 +LanguageServer::Protocol::Constant::SemanticTokenTypes::METHOD = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#25 +LanguageServer::Protocol::Constant::SemanticTokenTypes::MODIFIER = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#5 +LanguageServer::Protocol::Constant::SemanticTokenTypes::NAMESPACE = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#28 +LanguageServer::Protocol::Constant::SemanticTokenTypes::NUMBER = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#30 +LanguageServer::Protocol::Constant::SemanticTokenTypes::OPERATOR = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#16 +LanguageServer::Protocol::Constant::SemanticTokenTypes::PARAMETER = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#18 +LanguageServer::Protocol::Constant::SemanticTokenTypes::PROPERTY = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#29 +LanguageServer::Protocol::Constant::SemanticTokenTypes::REGEXP = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#27 +LanguageServer::Protocol::Constant::SemanticTokenTypes::STRING = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#14 +LanguageServer::Protocol::Constant::SemanticTokenTypes::STRUCT = T.let(T.unsafe(nil), String) + +# Represents a generic type. Acts as a fallback for types which +# can't be mapped to a specific type like class or enum. +# +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#10 +LanguageServer::Protocol::Constant::SemanticTokenTypes::TYPE = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#15 +LanguageServer::Protocol::Constant::SemanticTokenTypes::TYPE_PARAMETER = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#17 +LanguageServer::Protocol::Constant::SemanticTokenTypes::VARIABLE = T.let(T.unsafe(nil), String) + +# How a signature help was triggered. +# +# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#7 +module LanguageServer::Protocol::Constant::SignatureHelpTriggerKind; end + +# Signature help was triggered by the cursor moving or by the document +# content changing. +# +# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#20 +LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::CONTENT_CHANGE = T.let(T.unsafe(nil), Integer) + +# Signature help was invoked manually by the user or by a command. +# +# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#11 +LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) + +# Signature help was triggered by a trigger character. +# +# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#15 +LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::TRIGGER_CHARACTER = T.let(T.unsafe(nil), Integer) + +# A symbol kind. +# +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#7 +module LanguageServer::Protocol::Constant::SymbolKind; end + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#25 +LanguageServer::Protocol::Constant::SymbolKind::ARRAY = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#24 +LanguageServer::Protocol::Constant::SymbolKind::BOOLEAN = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#12 +LanguageServer::Protocol::Constant::SymbolKind::CLASS = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#21 +LanguageServer::Protocol::Constant::SymbolKind::CONSTANT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#16 +LanguageServer::Protocol::Constant::SymbolKind::CONSTRUCTOR = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#17 +LanguageServer::Protocol::Constant::SymbolKind::ENUM = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#29 +LanguageServer::Protocol::Constant::SymbolKind::ENUM_MEMBER = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#31 +LanguageServer::Protocol::Constant::SymbolKind::EVENT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#15 +LanguageServer::Protocol::Constant::SymbolKind::FIELD = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#8 +LanguageServer::Protocol::Constant::SymbolKind::FILE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#19 +LanguageServer::Protocol::Constant::SymbolKind::FUNCTION = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#18 +LanguageServer::Protocol::Constant::SymbolKind::INTERFACE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#27 +LanguageServer::Protocol::Constant::SymbolKind::KEY = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#13 +LanguageServer::Protocol::Constant::SymbolKind::METHOD = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#9 +LanguageServer::Protocol::Constant::SymbolKind::MODULE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#10 +LanguageServer::Protocol::Constant::SymbolKind::NAMESPACE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#28 +LanguageServer::Protocol::Constant::SymbolKind::NULL = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#23 +LanguageServer::Protocol::Constant::SymbolKind::NUMBER = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#26 +LanguageServer::Protocol::Constant::SymbolKind::OBJECT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#32 +LanguageServer::Protocol::Constant::SymbolKind::OPERATOR = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#11 +LanguageServer::Protocol::Constant::SymbolKind::PACKAGE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#14 +LanguageServer::Protocol::Constant::SymbolKind::PROPERTY = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#22 +LanguageServer::Protocol::Constant::SymbolKind::STRING = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#30 +LanguageServer::Protocol::Constant::SymbolKind::STRUCT = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#33 +LanguageServer::Protocol::Constant::SymbolKind::TYPE_PARAMETER = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#20 +LanguageServer::Protocol::Constant::SymbolKind::VARIABLE = T.let(T.unsafe(nil), Integer) + +# Symbol tags are extra annotations that tweak the rendering of a symbol. +# +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_tag.rb#7 +module LanguageServer::Protocol::Constant::SymbolTag; end + +# Render a symbol as obsolete, usually using a strike-out. +# +# source://language_server-protocol//lib/language_server/protocol/constant/symbol_tag.rb#11 +LanguageServer::Protocol::Constant::SymbolTag::DEPRECATED = T.let(T.unsafe(nil), Integer) + +# Represents reasons why a text document is saved. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#7 +module LanguageServer::Protocol::Constant::TextDocumentSaveReason; end + +# Automatic after a delay. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#16 +LanguageServer::Protocol::Constant::TextDocumentSaveReason::AFTER_DELAY = T.let(T.unsafe(nil), Integer) + +# When the editor lost focus. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#20 +LanguageServer::Protocol::Constant::TextDocumentSaveReason::FOCUS_OUT = T.let(T.unsafe(nil), Integer) + +# Manually triggered, e.g. by the user pressing save, by starting +# debugging, or by an API call. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#12 +LanguageServer::Protocol::Constant::TextDocumentSaveReason::MANUAL = T.let(T.unsafe(nil), Integer) + +# Defines how the host (editor) should sync document changes to the language +# server. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#8 +module LanguageServer::Protocol::Constant::TextDocumentSyncKind; end + +# Documents are synced by always sending the full content +# of the document. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#17 +LanguageServer::Protocol::Constant::TextDocumentSyncKind::FULL = T.let(T.unsafe(nil), Integer) + +# Documents are synced by sending the full content on open. +# After that only incremental updates to the document are +# sent. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#23 +LanguageServer::Protocol::Constant::TextDocumentSyncKind::INCREMENTAL = T.let(T.unsafe(nil), Integer) + +# Documents should not be synced at all. +# +# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#12 +LanguageServer::Protocol::Constant::TextDocumentSyncKind::NONE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/constant/token_format.rb#4 +module LanguageServer::Protocol::Constant::TokenFormat; end + +# source://language_server-protocol//lib/language_server/protocol/constant/token_format.rb#5 +LanguageServer::Protocol::Constant::TokenFormat::RELATIVE = T.let(T.unsafe(nil), String) + +# Moniker uniqueness level to define scope of the moniker. +# +# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#7 +module LanguageServer::Protocol::Constant::UniquenessLevel; end + +# The moniker is only unique inside a document +# +# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#11 +LanguageServer::Protocol::Constant::UniquenessLevel::DOCUMENT = T.let(T.unsafe(nil), String) + +# The moniker is globally unique +# +# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#27 +LanguageServer::Protocol::Constant::UniquenessLevel::GLOBAL = T.let(T.unsafe(nil), String) + +# The moniker is unique inside the group to which a project belongs +# +# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#19 +LanguageServer::Protocol::Constant::UniquenessLevel::GROUP = T.let(T.unsafe(nil), String) + +# The moniker is unique inside a project for which a dump got created +# +# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#15 +LanguageServer::Protocol::Constant::UniquenessLevel::PROJECT = T.let(T.unsafe(nil), String) + +# The moniker is unique inside the moniker scheme. +# +# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#23 +LanguageServer::Protocol::Constant::UniquenessLevel::SCHEME = T.let(T.unsafe(nil), String) + +# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#4 +module LanguageServer::Protocol::Constant::WatchKind; end + +# Interested in change events +# +# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#12 +LanguageServer::Protocol::Constant::WatchKind::CHANGE = T.let(T.unsafe(nil), Integer) + +# Interested in create events. +# +# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#8 +LanguageServer::Protocol::Constant::WatchKind::CREATE = T.let(T.unsafe(nil), Integer) + +# Interested in delete events +# +# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#16 +LanguageServer::Protocol::Constant::WatchKind::DELETE = T.let(T.unsafe(nil), Integer) + +# source://language_server-protocol//lib/language_server/protocol/interface.rb#3 +module LanguageServer::Protocol::Interface; end + +# A special text edit with an additional change annotation. +# +# source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#7 +class LanguageServer::Protocol::Interface::AnnotatedTextEdit + # @return [AnnotatedTextEdit] a new instance of AnnotatedTextEdit + # + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#8 + def initialize(range:, new_text:, annotation_id:); end + + # The actual annotation identifier. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#40 + def annotation_id; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#44 + def attributes; end + + # The string to be inserted. For delete operations use an + # empty string. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#32 + def new_text; end + + # The range of the text document to be manipulated. To insert + # text into a document create a range where start === end. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#23 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#50 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#4 +class LanguageServer::Protocol::Interface::ApplyWorkspaceEditParams + # @return [ApplyWorkspaceEditParams] a new instance of ApplyWorkspaceEditParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#5 + def initialize(edit:, label: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#32 + def attributes; end + + # The edits to apply. + # + # @return [WorkspaceEdit] + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#28 + def edit; end + + # An optional label of the workspace edit. This label is + # presented in the user interface for example on an undo + # stack to undo the workspace edit. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#20 + def label; end + + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#38 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#4 +class LanguageServer::Protocol::Interface::ApplyWorkspaceEditResult + # @return [ApplyWorkspaceEditResult] a new instance of ApplyWorkspaceEditResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#5 + def initialize(applied:, failure_reason: T.unsafe(nil), failed_change: T.unsafe(nil)); end + + # Indicates whether the edit was applied or not. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#19 + def applied; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#44 + def attributes; end + + # Depending on the client's failure handling strategy `failedChange` + # might contain the index of the change that failed. This property is + # only available if the client signals a `failureHandling` strategy + # in its client capabilities. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#40 + def failed_change; end + + # An optional textual description for why the edit was not applied. + # This may be used by the server for diagnostic logging or to provide + # a suitable error for a request that triggered the edit. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#29 + def failure_reason; end + + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#50 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyClientCapabilities + # @return [CallHierarchyClientCapabilities] a new instance of CallHierarchyClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#24 + def attributes; end + + # Whether implementation supports dynamic registration. If this is set to + # `true` the client supports the new `(TextDocumentRegistrationOptions & + # StaticRegistrationOptions)` return value for the corresponding server + # capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#20 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyIncomingCall + # @return [CallHierarchyIncomingCall] a new instance of CallHierarchyIncomingCall + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#5 + def initialize(from:, from_ranges:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#31 + def attributes; end + + # The item that makes the call. + # + # @return [CallHierarchyItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#18 + def from; end + + # The ranges at which the calls appear. This is relative to the caller + # denoted by [`this.from`](#CallHierarchyIncomingCall.from). + # + # @return [Range[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#27 + def from_ranges; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#37 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyIncomingCallsParams + # @return [CallHierarchyIncomingCallsParams] a new instance of CallHierarchyIncomingCallsParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#5 + def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#37 + def attributes; end + + # @return [CallHierarchyItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#33 + def item; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#28 + def partial_result_token; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#43 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyItem + # @return [CallHierarchyItem] a new instance of CallHierarchyItem + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#5 + def initialize(name:, kind:, uri:, range:, selection_range:, tags: T.unsafe(nil), detail: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#88 + def attributes; end + + # A data entry field that is preserved between a call hierarchy prepare and + # incoming calls or outgoing calls requests. + # + # @return [unknown] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#84 + def data; end + + # More detail for this item, e.g. the signature of a function. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#48 + def detail; end + + # The kind of this item. + # + # @return [SymbolKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#32 + def kind; end + + # The name of this item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#24 + def name; end + + # The range enclosing this symbol not including leading/trailing whitespace + # but everything else, e.g. comments and code. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#65 + def range; end + + # The range that should be selected and revealed when this symbol is being + # picked, e.g. the name of a function. Must be contained by the + # [`range`](#CallHierarchyItem.range). + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#75 + def selection_range; end + + # Tags for this item. + # + # @return [1[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#40 + def tags; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#90 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#94 + def to_json(*args); end + + # The resource identifier of this item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#56 + def uri; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyOptions + # @return [CallHierarchyOptions] a new instance of CallHierarchyOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCall + # @return [CallHierarchyOutgoingCall] a new instance of CallHierarchyOutgoingCall + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#5 + def initialize(to:, from_ranges:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#31 + def attributes; end + + # The range at which this item is called. This is the range relative to + # the caller, e.g the item passed to `callHierarchy/outgoingCalls` request. + # + # @return [Range[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#27 + def from_ranges; end + + # The item that is called. + # + # @return [CallHierarchyItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#18 + def to; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#37 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCallsParams + # @return [CallHierarchyOutgoingCallsParams] a new instance of CallHierarchyOutgoingCallsParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#5 + def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#37 + def attributes; end + + # @return [CallHierarchyItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#33 + def item; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#28 + def partial_result_token; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#43 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyPrepareParams + # @return [CallHierarchyPrepareParams] a new instance of CallHierarchyPrepareParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#39 + def attributes; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#27 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#19 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#35 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#4 +class LanguageServer::Protocol::Interface::CallHierarchyRegistrationOptions + # @return [CallHierarchyRegistrationOptions] a new instance of CallHierarchyRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#4 +class LanguageServer::Protocol::Interface::CancelParams + # @return [CancelParams] a new instance of CancelParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#5 + def initialize(id:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#21 + def attributes; end + + # The request id to cancel. + # + # @return [string | number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#17 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#27 + def to_json(*args); end +end + +# Additional information that describes document changes. +# +# source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#7 +class LanguageServer::Protocol::Interface::ChangeAnnotation + # @return [ChangeAnnotation] a new instance of ChangeAnnotation + # + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#8 + def initialize(label:, needs_confirmation: T.unsafe(nil), description: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#45 + def attributes; end + + # A human-readable string which is rendered less prominent in + # the user interface. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#41 + def description; end + + # A human-readable string describing the actual change. The string + # is rendered prominent in the user interface. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#23 + def label; end + + # A flag which indicates that user confirmation is needed + # before applying the change. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#32 + def needs_confirmation; end + + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#47 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#51 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::ClientCapabilities + # @return [ClientCapabilities] a new instance of ClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#5 + def initialize(workspace: T.unsafe(nil), text_document: T.unsafe(nil), notebook_document: T.unsafe(nil), window: T.unsafe(nil), general: T.unsafe(nil), experimental: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#66 + def attributes; end + + # Experimental client capabilities. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#62 + def experimental; end + + # General client capabilities. + # + # @return [{ staleRequestSupport?: { cancel: boolean; retryOnContentModified: string[]; }; regularExpressions?: RegularExpressionsClientCapabilities; markdown?: any; positionEncodings?: string[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#54 + def general; end + + # Capabilities specific to the notebook document support. + # + # @return [NotebookDocumentClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#38 + def notebook_document; end + + # Text document specific client capabilities. + # + # @return [TextDocumentClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#30 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#68 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#72 + def to_json(*args); end + + # Window specific client capabilities. + # + # @return [{ workDoneProgress?: boolean; showMessage?: ShowMessageRequestClientCapabilities; showDocument?: ShowDocumentClientCapabilities; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#46 + def window; end + + # Workspace specific client capabilities. + # + # @return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; ... 10 more ...; diagnostics?: DiagnosticWorkspaceClientCapabilities; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#22 + def workspace; end +end + +# A code action represents a change that can be performed in code, e.g. to fix +# a problem or to refactor code. +# +# A CodeAction must set either `edit` and/or a `command`. If both are supplied, +# the `edit` is applied first, then the `command` is executed. +# +# source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#11 +class LanguageServer::Protocol::Interface::CodeAction + # @return [CodeAction] a new instance of CodeAction + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#12 + def initialize(title:, kind: T.unsafe(nil), diagnostics: T.unsafe(nil), is_preferred: T.unsafe(nil), disabled: T.unsafe(nil), edit: T.unsafe(nil), command: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#115 + def attributes; end + + # A command this code action executes. If a code action + # provides an edit and a command, first the edit is + # executed and then the command. + # + # @return [Command] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#102 + def command; end + + # A data entry field that is preserved on a code action between + # a `textDocument/codeAction` and a `codeAction/resolve` request. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#111 + def data; end + + # The diagnostics that this code action resolves. + # + # @return [Diagnostic[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#49 + def diagnostics; end + + # Marks that the code action cannot currently be applied. + # + # Clients should follow the following guidelines regarding disabled code + # actions: + # + # - Disabled code actions are not shown in automatic lightbulbs code + # action menus. + # + # - Disabled actions are shown as faded out in the code action menu when + # the user request a more specific type of code action, such as + # refactorings. + # + # - If the user has a keybinding that auto applies a code action and only + # a disabled code actions are returned, the client should show the user + # an error message with `reason` in the editor. + # + # @return [{ reason: string; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#84 + def disabled; end + + # The workspace edit this code action performs. + # + # @return [WorkspaceEdit] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#92 + def edit; end + + # Marks this as a preferred action. Preferred actions are used by the + # `auto fix` command and can be targeted by keybindings. + # + # A quick fix should be marked preferred if it properly addresses the + # underlying error. A refactoring should be marked preferred if it is the + # most reasonable choice of actions to take. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#62 + def is_preferred; end + + # The kind of the code action. + # + # Used to filter code actions. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#41 + def kind; end + + # A short, human-readable, title for this code action. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#31 + def title; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#117 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#121 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::CodeActionClientCapabilities + # @return [CodeActionClientCapabilities] a new instance of CodeActionClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), code_action_literal_support: T.unsafe(nil), is_preferred_support: T.unsafe(nil), disabled_support: T.unsafe(nil), data_support: T.unsafe(nil), resolve_support: T.unsafe(nil), honors_change_annotations: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#83 + def attributes; end + + # The client supports code action literals as a valid + # response of the `textDocument/codeAction` request. + # + # @return [{ codeActionKind: { valueSet: string[]; }; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#32 + def code_action_literal_support; end + + # Whether code action supports the `data` property which is + # preserved between a `textDocument/codeAction` and a + # `codeAction/resolve` request. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#58 + def data_support; end + + # Whether code action supports the `disabled` property. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#48 + def disabled_support; end + + # Whether code action supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#23 + def dynamic_registration; end + + # Whether the client honors the change annotations in + # text edits and resource operations returned via the + # `CodeAction#edit` property by for example presenting + # the workspace edit in the user interface and asking + # for confirmation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#79 + def honors_change_annotations; end + + # Whether code action supports the `isPreferred` property. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#40 + def is_preferred_support; end + + # Whether the client supports resolving additional code action + # properties via a separate `codeAction/resolve` request. + # + # @return [{ properties: string[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#67 + def resolve_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#85 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#89 + def to_json(*args); end +end + +# Contains additional diagnostic information about the context in which +# a code action is run. +# +# source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#8 +class LanguageServer::Protocol::Interface::CodeActionContext + # @return [CodeActionContext] a new instance of CodeActionContext + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#9 + def initialize(diagnostics:, only: T.unsafe(nil), trigger_kind: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#51 + def attributes; end + + # An array of diagnostics known on the client side overlapping the range + # provided to the `textDocument/codeAction` request. They are provided so + # that the server knows which errors are currently presented to the user + # for the given range. There is no guarantee that these accurately reflect + # the error state of the resource. The primary parameter + # to compute code actions is the provided range. + # + # @return [Diagnostic[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#28 + def diagnostics; end + + # Requested kind of actions to return. + # + # Actions not of this kind are filtered out by the client before being + # shown. So servers can omit computing them. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#39 + def only; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#57 + def to_json(*args); end + + # The reason why code actions were requested. + # + # @return [CodeActionTriggerKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#47 + def trigger_kind; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#4 +class LanguageServer::Protocol::Interface::CodeActionOptions + # @return [CodeActionOptions] a new instance of CodeActionOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), code_action_kinds: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#40 + def attributes; end + + # CodeActionKinds that this server may return. + # + # The list of kinds may be generic, such as `CodeActionKind.Refactor`, + # or the server may list out every specific kind they provide. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#27 + def code_action_kinds; end + + # The server provides support to resolve additional + # information for a code action. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#36 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#46 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#16 + def work_done_progress; end +end + +# Params for the CodeActionRequest +# +# source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#7 +class LanguageServer::Protocol::Interface::CodeActionParams + # @return [CodeActionParams] a new instance of CodeActionParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#8 + def initialize(text_document:, range:, context:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#61 + def attributes; end + + # Context carrying additional information. + # + # @return [CodeActionContext] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#57 + def context; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#33 + def partial_result_token; end + + # The range for which the command was invoked. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#49 + def range; end + + # The document in which the command was invoked. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#41 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#63 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#67 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#24 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#4 +class LanguageServer::Protocol::Interface::CodeActionRegistrationOptions + # @return [CodeActionRegistrationOptions] a new instance of CodeActionRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), code_action_kinds: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#50 + def attributes; end + + # CodeActionKinds that this server may return. + # + # The list of kinds may be generic, such as `CodeActionKind.Refactor`, + # or the server may list out every specific kind they provide. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#37 + def code_action_kinds; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#21 + def document_selector; end + + # The server provides support to resolve additional + # information for a code action. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#46 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#52 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#56 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#26 + def work_done_progress; end +end + +# Structure to capture a description for an error code. +# +# source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#7 +class LanguageServer::Protocol::Interface::CodeDescription + # @return [CodeDescription] a new instance of CodeDescription + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#8 + def initialize(href:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#24 + def attributes; end + + # An URI to open with more information about the diagnostic error. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#20 + def href; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#30 + def to_json(*args); end +end + +# A code lens represents a command that should be shown along with +# source text, like the number of references, a way to run tests, etc. +# +# A code lens is _unresolved_ when no command is associated to it. For +# performance reasons the creation of a code lens and resolving should be done +# in two stages. +# +# source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#12 +class LanguageServer::Protocol::Interface::CodeLens + # @return [CodeLens] a new instance of CodeLens + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#13 + def initialize(range:, command: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#49 + def attributes; end + + # The command this code lens represents. + # + # @return [Command] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#36 + def command; end + + # A data entry field that is preserved on a code lens item between + # a code lens and a code lens resolve request. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#45 + def data; end + + # The range in which this code lens is valid. Should only span a single + # line. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#28 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#55 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::CodeLensClientCapabilities + # @return [CodeLensClientCapabilities] a new instance of CodeLensClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#21 + def attributes; end + + # Whether code lens supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#4 +class LanguageServer::Protocol::Interface::CodeLensOptions + # @return [CodeLensOptions] a new instance of CodeLensOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#27 + def attributes; end + + # Code lens has a resolve provider as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#23 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#29 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#33 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#15 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#4 +class LanguageServer::Protocol::Interface::CodeLensParams + # @return [CodeLensParams] a new instance of CodeLensParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#5 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#40 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#28 + def partial_result_token; end + + # The document to request code lens for. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#36 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#46 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#4 +class LanguageServer::Protocol::Interface::CodeLensRegistrationOptions + # @return [CodeLensRegistrationOptions] a new instance of CodeLensRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#37 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#20 + def document_selector; end + + # Code lens has a resolve provider as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#33 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#43 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::CodeLensWorkspaceClientCapabilities + # @return [CodeLensWorkspaceClientCapabilities] a new instance of CodeLensWorkspaceClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#5 + def initialize(refresh_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#27 + def attributes; end + + # Whether the client implementation supports a refresh request sent from the + # server to the client. + # + # Note that this event is global and will force the client to refresh all + # code lenses currently shown. It should be used with absolute care and is + # useful for situation where a server for example detect a project wide + # change that requires such a calculation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#23 + def refresh_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#29 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#33 + def to_json(*args); end +end + +# Represents a color in RGBA space. +# +# source://language_server-protocol//lib/language_server/protocol/interface/color.rb#7 +class LanguageServer::Protocol::Interface::Color + # @return [Color] a new instance of Color + # + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#8 + def initialize(red:, green:, blue:, alpha:); end + + # The alpha component of this color in the range [0-1]. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#47 + def alpha; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#51 + def attributes; end + + # The blue component of this color in the range [0-1]. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#39 + def blue; end + + # The green component of this color in the range [0-1]. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#31 + def green; end + + # The red component of this color in the range [0-1]. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#23 + def red; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#57 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#4 +class LanguageServer::Protocol::Interface::ColorInformation + # @return [ColorInformation] a new instance of ColorInformation + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#5 + def initialize(range:, color:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#30 + def attributes; end + + # The actual color value for this color range. + # + # @return [Color] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#26 + def color; end + + # The range in the document where this color appears. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#18 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#4 +class LanguageServer::Protocol::Interface::ColorPresentation + # @return [ColorPresentation] a new instance of ColorPresentation + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#5 + def initialize(label:, text_edit: T.unsafe(nil), additional_text_edits: T.unsafe(nil)); end + + # An optional array of additional [text edits](#TextEdit) that are applied + # when selecting this color presentation. Edits must not overlap with the + # main [edit](#ColorPresentation.textEdit) nor with themselves. + # + # @return [TextEdit[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#41 + def additional_text_edits; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#45 + def attributes; end + + # The label of this color presentation. It will be shown on the color + # picker header. By default this is also the text that is inserted when + # selecting this color presentation. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#21 + def label; end + + # An [edit](#TextEdit) which is applied to a document when selecting + # this presentation for the color. When `falsy` the + # [label](#ColorPresentation.label) is used. + # + # @return [TextEdit] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#31 + def text_edit; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#47 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#51 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#4 +class LanguageServer::Protocol::Interface::ColorPresentationParams + # @return [ColorPresentationParams] a new instance of ColorPresentationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#5 + def initialize(text_document:, color:, range:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#58 + def attributes; end + + # The color information to request presentations for. + # + # @return [Color] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#46 + def color; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#30 + def partial_result_token; end + + # The range where the color would be inserted. Serves as a context. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#54 + def range; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#38 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#60 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#64 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#21 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/command.rb#4 +class LanguageServer::Protocol::Interface::Command + # @return [Command] a new instance of Command + # + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#5 + def initialize(title:, command:, arguments: T.unsafe(nil)); end + + # Arguments that the command handler should be + # invoked with. + # + # @return [LSPAny[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#36 + def arguments; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#40 + def attributes; end + + # The identifier of the actual command handler. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#27 + def command; end + + # Title of the command, like `save`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#19 + def title; end + + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#46 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::CompletionClientCapabilities + # @return [CompletionClientCapabilities] a new instance of CompletionClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), completion_item: T.unsafe(nil), completion_item_kind: T.unsafe(nil), context_support: T.unsafe(nil), insert_text_mode: T.unsafe(nil), completion_list: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#67 + def attributes; end + + # The client supports the following `CompletionItem` specific + # capabilities. + # + # @return [{ snippetSupport?: boolean; commitCharactersSupport?: boolean; documentationFormat?: MarkupKind[]; deprecatedSupport?: boolean; preselectSupport?: boolean; tagSupport?: { valueSet: 1[]; }; insertReplaceSupport?: boolean; resolveSupport?: { ...; }; insertTextModeSupport?: { ...; }; labelDetailsSupport?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#31 + def completion_item; end + + # @return [{ valueSet?: CompletionItemKind[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#36 + def completion_item_kind; end + + # The client supports the following `CompletionList` specific + # capabilities. + # + # @return [{ itemDefaults?: string[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#63 + def completion_list; end + + # The client supports to send additional context information for a + # `textDocument/completion` request. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#45 + def context_support; end + + # Whether completion supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#22 + def dynamic_registration; end + + # The client's default when the completion item doesn't provide a + # `insertTextMode` property. + # + # @return [InsertTextMode] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#54 + def insert_text_mode; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#69 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#73 + def to_json(*args); end +end + +# Contains additional information about the context in which a completion +# request is triggered. +# +# source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#8 +class LanguageServer::Protocol::Interface::CompletionContext + # @return [CompletionContext] a new instance of CompletionContext + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#9 + def initialize(trigger_kind:, trigger_character: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#36 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#38 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#42 + def to_json(*args); end + + # The trigger character (a single character) that has trigger code + # complete. Is undefined if + # `triggerKind !== CompletionTriggerKind.TriggerCharacter` + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#32 + def trigger_character; end + + # How the completion was triggered. + # + # @return [CompletionTriggerKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#22 + def trigger_kind; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#4 +class LanguageServer::Protocol::Interface::CompletionItem + # @return [CompletionItem] a new instance of CompletionItem + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#5 + def initialize(label:, label_details: T.unsafe(nil), kind: T.unsafe(nil), tags: T.unsafe(nil), detail: T.unsafe(nil), documentation: T.unsafe(nil), deprecated: T.unsafe(nil), preselect: T.unsafe(nil), sort_text: T.unsafe(nil), filter_text: T.unsafe(nil), insert_text: T.unsafe(nil), insert_text_format: T.unsafe(nil), insert_text_mode: T.unsafe(nil), text_edit: T.unsafe(nil), text_edit_text: T.unsafe(nil), additional_text_edits: T.unsafe(nil), commit_characters: T.unsafe(nil), command: T.unsafe(nil), data: T.unsafe(nil)); end + + # An optional array of additional text edits that are applied when + # selecting this completion. Edits must not overlap (including the same + # insert position) with the main edit nor with themselves. + # + # Additional text edits should be used to change text unrelated to the + # current cursor position (for example adding an import statement at the + # top of the file if the completion item will insert an unqualified type). + # + # @return [TextEdit[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#221 + def additional_text_edits; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#255 + def attributes; end + + # An optional command that is executed *after* inserting this completion. + # *Note* that additional modifications to the current document should be + # described with the additionalTextEdits-property. + # + # @return [Command] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#242 + def command; end + + # An optional set of characters that when pressed while this completion is + # active will accept it first and then type that character. *Note* that all + # commit characters should have `length=1` and that superfluous characters + # will be ignored. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#232 + def commit_characters; end + + # A data entry field that is preserved on a completion item between + # a completion and a completion resolve request. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#251 + def data; end + + # Indicates if this item is deprecated. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#92 + def deprecated; end + + # A human-readable string with additional information + # about this item, like type or symbol information. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#76 + def detail; end + + # A human-readable string that represents a doc-comment. + # + # @return [string | MarkupContent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#84 + def documentation; end + + # A string that should be used when filtering a set of + # completion items. When `falsy` the label is used as the + # filter text for this item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#124 + def filter_text; end + + # A string that should be inserted into a document when selecting + # this completion. When `falsy` the label is used as the insert text + # for this item. + # + # The `insertText` is subject to interpretation by the client side. + # Some tools might not take the string literally. For example + # VS Code when code complete is requested in this example + # `con` and a completion item with an `insertText` of + # `console` is provided it will only insert `sole`. Therefore it is + # recommended to use `textEdit` instead since it avoids additional client + # side interpretation. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#142 + def insert_text; end + + # The format of the insert text. The format applies to both the + # `insertText` property and the `newText` property of a provided + # `textEdit`. If omitted defaults to `InsertTextFormat.PlainText`. + # + # Please note that the insertTextFormat doesn't apply to + # `additionalTextEdits`. + # + # @return [InsertTextFormat] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#155 + def insert_text_format; end + + # How whitespace and indentation is handled during completion + # item insertion. If not provided the client's default value depends on + # the `textDocument.completion.insertTextMode` client capability. + # + # @return [InsertTextMode] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#165 + def insert_text_mode; end + + # The kind of this completion item. Based of the kind + # an icon is chosen by the editor. The standardized set + # of available values is defined in `CompletionItemKind`. + # + # @return [CompletionItemKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#59 + def kind; end + + # The label of this completion item. + # + # The label property is also by default the text that + # is inserted when selecting this completion. + # + # If label details are provided the label itself should + # be an unqualified name of the completion item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#41 + def label; end + + # Additional details for the label + # + # @return [CompletionItemLabelDetails] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#49 + def label_details; end + + # Select this item when showing. + # + # *Note* that only one completion item can be selected and that the + # tool / client decides which item that is. The rule is that the *first* + # item of those that match best is selected. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#104 + def preselect; end + + # A string that should be used when comparing this item + # with other items. When `falsy` the label is used + # as the sort text for this item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#114 + def sort_text; end + + # Tags for this completion item. + # + # @return [1[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#67 + def tags; end + + # An edit which is applied to a document when selecting this completion. + # When an edit is provided the value of `insertText` is ignored. + # + # *Note:* The range of the edit must be a single line range and it must + # contain the position at which completion has been requested. + # + # Most editors support two different operations when accepting a completion + # item. One is to insert a completion text and the other is to replace an + # existing text with a completion text. Since this can usually not be + # predetermined by a server it can report both ranges. Clients need to + # signal support for `InsertReplaceEdit`s via the + # `textDocument.completion.completionItem.insertReplaceSupport` client + # capability property. + # + # *Note 1:* The text edit's range as well as both ranges from an insert + # replace edit must be a [single line] and they must contain the position + # at which completion has been requested. + # *Note 2:* If an `InsertReplaceEdit` is returned the edit's insert range + # must be a prefix of the edit's replace range, that means it must be + # contained and starting at the same position. + # + # @return [TextEdit | InsertReplaceEdit] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#192 + def text_edit; end + + # The edit text used if the completion item is part of a CompletionList and + # CompletionList defines an item default for the text edit range. + # + # Clients will only honor this property if they opt into completion list + # item defaults using the capability `completionList.itemDefaults`. + # + # If not provided and a list's default range is provided the label + # property is used as a text. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#207 + def text_edit_text; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#257 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#261 + def to_json(*args); end +end + +# Additional details for a completion item label. +# +# source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#7 +class LanguageServer::Protocol::Interface::CompletionItemLabelDetails + # @return [CompletionItemLabelDetails] a new instance of CompletionItemLabelDetails + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#8 + def initialize(detail: T.unsafe(nil), description: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#37 + def attributes; end + + # An optional string which is rendered less prominently after + # {@link CompletionItemLabelDetails.detail}. Should be used for fully qualified + # names or file path. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#33 + def description; end + + # An optional string which is rendered less prominently directly after + # {@link CompletionItem.label label}, without any spacing. Should be + # used for function signatures or type annotations. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#23 + def detail; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#43 + def to_json(*args); end +end + +# Represents a collection of [completion items](#CompletionItem) to be +# presented in the editor. +# +# source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#8 +class LanguageServer::Protocol::Interface::CompletionList + # @return [CompletionList] a new instance of CompletionList + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#9 + def initialize(is_incomplete:, items:, item_defaults: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#57 + def attributes; end + + # This list is not complete. Further typing should result in recomputing + # this list. + # + # Recomputed lists have all their items replaced (not appended) in the + # incomplete completion sessions. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#27 + def is_incomplete; end + + # In many cases the items of an actual completion result share the same + # value for properties like `commitCharacters` or the range of a text + # edit. A completion list can therefore define item defaults which will + # be used if a completion item itself doesn't specify the value. + # + # If a completion list specifies a default value and a completion item + # also specifies a corresponding value the one from the item is used. + # + # Servers are only allowed to return default values if the client + # signals support for this via the `completionList.itemDefaults` + # capability. + # + # @return [{ commitCharacters?: string[]; editRange?: Range | { insert: Range; replace: Range; }; insertTextFormat?: InsertTextFormat; insertTextMode?: InsertTextMode; data?: LSPAny; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#45 + def item_defaults; end + + # The completion items. + # + # @return [CompletionItem[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#53 + def items; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#59 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#63 + def to_json(*args); end +end + +# Completion options. +# +# source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#7 +class LanguageServer::Protocol::Interface::CompletionOptions + # @return [CompletionOptions] a new instance of CompletionOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#8 + def initialize(work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), all_commit_characters: T.unsafe(nil), resolve_provider: T.unsafe(nil), completion_item: T.unsafe(nil)); end + + # The list of all possible characters that commit a completion. This field + # can be used if clients don't support individual commit characters per + # completion item. See client capability + # `completion.completionItem.commitCharactersSupport`. + # + # If a server provides both `allCommitCharacters` and commit characters on + # an individual completion item the ones on the completion item win. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#53 + def all_commit_characters; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#75 + def attributes; end + + # The server supports the following `CompletionItem` specific + # capabilities. + # + # @return [{ labelDetailsSupport?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#71 + def completion_item; end + + # The server provides support to resolve additional + # information for a completion item. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#62 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#77 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#81 + def to_json(*args); end + + # The additional characters, beyond the defaults provided by the client (typically + # [a-zA-Z]), that should automatically trigger a completion request. For example + # `.` in JavaScript represents the beginning of an object property or method and is + # thus a good candidate for triggering a completion request. + # + # Most tools trigger a completion request automatically without explicitly + # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they + # do so when the user starts to type an identifier. For example if the user + # types `c` in a JavaScript file code complete will automatically pop up + # present `console` besides others as a completion item. Characters that + # make up identifiers don't need to be listed here. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#39 + def trigger_characters; end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#21 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#4 +class LanguageServer::Protocol::Interface::CompletionParams + # @return [CompletionParams] a new instance of CompletionParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), context: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#60 + def attributes; end + + # The completion context. This is only available if the client specifies + # to send this using the client capability + # `completion.contextSupport === true` + # + # @return [CompletionContext] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#56 + def context; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#46 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#29 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#21 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#62 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#66 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#37 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#4 +class LanguageServer::Protocol::Interface::CompletionRegistrationOptions + # @return [CompletionRegistrationOptions] a new instance of CompletionRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), all_commit_characters: T.unsafe(nil), resolve_provider: T.unsafe(nil), completion_item: T.unsafe(nil)); end + + # The list of all possible characters that commit a completion. This field + # can be used if clients don't support individual commit characters per + # completion item. See client capability + # `completion.completionItem.commitCharactersSupport`. + # + # If a server provides both `allCommitCharacters` and commit characters on + # an individual completion item the ones on the completion item win. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#60 + def all_commit_characters; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#82 + def attributes; end + + # The server supports the following `CompletionItem` specific + # capabilities. + # + # @return [{ labelDetailsSupport?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#78 + def completion_item; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#23 + def document_selector; end + + # The server provides support to resolve additional + # information for a completion item. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#69 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#84 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#88 + def to_json(*args); end + + # The additional characters, beyond the defaults provided by the client (typically + # [a-zA-Z]), that should automatically trigger a completion request. For example + # `.` in JavaScript represents the beginning of an object property or method and is + # thus a good candidate for triggering a completion request. + # + # Most tools trigger a completion request automatically without explicitly + # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they + # do so when the user starts to type an identifier. For example if the user + # types `c` in a JavaScript file code complete will automatically pop up + # present `console` besides others as a completion item. Characters that + # make up identifiers don't need to be listed here. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#46 + def trigger_characters; end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#28 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#4 +class LanguageServer::Protocol::Interface::ConfigurationItem + # @return [ConfigurationItem] a new instance of ConfigurationItem + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#5 + def initialize(scope_uri: T.unsafe(nil), section: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#30 + def attributes; end + + # The scope to get the configuration section for. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#18 + def scope_uri; end + + # The configuration section asked for. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#26 + def section; end + + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#4 +class LanguageServer::Protocol::Interface::ConfigurationParams + # @return [ConfigurationParams] a new instance of ConfigurationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#5 + def initialize(items:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#18 + def attributes; end + + # @return [ConfigurationItem[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#14 + def items; end + + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#24 + def to_json(*args); end +end + +# Create file operation +# +# source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#7 +class LanguageServer::Protocol::Interface::CreateFile + # @return [CreateFile] a new instance of CreateFile + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#8 + def initialize(kind:, uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end + + # An optional annotation identifier describing the operation. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#47 + def annotation_id; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#51 + def attributes; end + + # A create + # + # @return ["create"] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#23 + def kind; end + + # Additional options + # + # @return [CreateFileOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#39 + def options; end + + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#57 + def to_json(*args); end + + # The resource to create. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#31 + def uri; end +end + +# Options to create a file. +# +# source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#7 +class LanguageServer::Protocol::Interface::CreateFileOptions + # @return [CreateFileOptions] a new instance of CreateFileOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#8 + def initialize(overwrite: T.unsafe(nil), ignore_if_exists: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#33 + def attributes; end + + # Ignore if exists. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#29 + def ignore_if_exists; end + + # Overwrite existing file. Overwrite wins over `ignoreIfExists` + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#21 + def overwrite; end + + # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#39 + def to_json(*args); end +end + +# The parameters sent in notifications/requests for user-initiated creation +# of files. +# +# source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#8 +class LanguageServer::Protocol::Interface::CreateFilesParams + # @return [CreateFilesParams] a new instance of CreateFilesParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#9 + def initialize(files:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#25 + def attributes; end + + # An array of all files/folders created in this operation. + # + # @return [FileCreate[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#21 + def files; end + + # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#27 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#31 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DeclarationClientCapabilities + # @return [DeclarationClientCapabilities] a new instance of DeclarationClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#32 + def attributes; end + + # Whether declaration supports dynamic registration. If this is set to + # `true` the client supports the new `DeclarationRegistrationOptions` + # return value for the corresponding server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#20 + def dynamic_registration; end + + # The client supports additional metadata in the form of declaration links. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#28 + def link_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#38 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#4 +class LanguageServer::Protocol::Interface::DeclarationOptions + # @return [DeclarationOptions] a new instance of DeclarationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#4 +class LanguageServer::Protocol::Interface::DeclarationParams + # @return [DeclarationParams] a new instance of DeclarationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#45 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DeclarationRegistrationOptions + # @return [DeclarationRegistrationOptions] a new instance of DeclarationRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#25 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#16 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DefinitionClientCapabilities + # @return [DefinitionClientCapabilities] a new instance of DefinitionClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#30 + def attributes; end + + # Whether definition supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#18 + def dynamic_registration; end + + # The client supports additional metadata in the form of definition links. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#26 + def link_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#4 +class LanguageServer::Protocol::Interface::DefinitionOptions + # @return [DefinitionOptions] a new instance of DefinitionOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#4 +class LanguageServer::Protocol::Interface::DefinitionParams + # @return [DefinitionParams] a new instance of DefinitionParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#45 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DefinitionRegistrationOptions + # @return [DefinitionRegistrationOptions] a new instance of DefinitionRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#24 + def work_done_progress; end +end + +# Delete file operation +# +# source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#7 +class LanguageServer::Protocol::Interface::DeleteFile + # @return [DeleteFile] a new instance of DeleteFile + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#8 + def initialize(kind:, uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end + + # An optional annotation identifier describing the operation. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#47 + def annotation_id; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#51 + def attributes; end + + # A delete + # + # @return ["delete"] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#23 + def kind; end + + # Delete options. + # + # @return [DeleteFileOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#39 + def options; end + + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#57 + def to_json(*args); end + + # The file to delete. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#31 + def uri; end +end + +# Delete file options +# +# source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#7 +class LanguageServer::Protocol::Interface::DeleteFileOptions + # @return [DeleteFileOptions] a new instance of DeleteFileOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#8 + def initialize(recursive: T.unsafe(nil), ignore_if_not_exists: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#33 + def attributes; end + + # Ignore the operation if the file doesn't exist. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#29 + def ignore_if_not_exists; end + + # Delete the content recursively if a folder is denoted. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#21 + def recursive; end + + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#39 + def to_json(*args); end +end + +# The parameters sent in notifications/requests for user-initiated deletes +# of files. +# +# source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#8 +class LanguageServer::Protocol::Interface::DeleteFilesParams + # @return [DeleteFilesParams] a new instance of DeleteFilesParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#9 + def initialize(files:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#25 + def attributes; end + + # An array of all files/folders deleted in this operation. + # + # @return [FileDelete[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#21 + def files; end + + # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#27 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#31 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#4 +class LanguageServer::Protocol::Interface::Diagnostic + # @return [Diagnostic] a new instance of Diagnostic + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#5 + def initialize(range:, message:, severity: T.unsafe(nil), code: T.unsafe(nil), code_description: T.unsafe(nil), source: T.unsafe(nil), tags: T.unsafe(nil), related_information: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#98 + def attributes; end + + # The diagnostic's code, which might appear in the user interface. + # + # @return [string | number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#42 + def code; end + + # An optional property to describe the error code. + # + # @return [CodeDescription] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#50 + def code_description; end + + # A data entry field that is preserved between a + # `textDocument/publishDiagnostics` notification and + # `textDocument/codeAction` request. + # + # @return [unknown] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#94 + def data; end + + # The diagnostic's message. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#67 + def message; end + + # The range at which the message applies. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#25 + def range; end + + # An array of related diagnostic information, e.g. when symbol-names within + # a scope collide all definitions can be marked via this property. + # + # @return [DiagnosticRelatedInformation[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#84 + def related_information; end + + # The diagnostic's severity. Can be omitted. If omitted it is up to the + # client to interpret diagnostics as error, warning, info or hint. + # + # @return [DiagnosticSeverity] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#34 + def severity; end + + # A human-readable string describing the source of this + # diagnostic, e.g. 'typescript' or 'super lint'. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#59 + def source; end + + # Additional metadata about the diagnostic. + # + # @return [DiagnosticTag[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#75 + def tags; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#100 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#104 + def to_json(*args); end +end + +# Client capabilities specific to diagnostic pull requests. +# +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::DiagnosticClientCapabilities + # @return [DiagnosticClientCapabilities] a new instance of DiagnosticClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#8 + def initialize(dynamic_registration: T.unsafe(nil), related_document_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#37 + def attributes; end + + # Whether implementation supports dynamic registration. If this is set to + # `true` the client supports the new + # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` + # return value for the corresponding server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#24 + def dynamic_registration; end + + # Whether the clients supports related documents for document diagnostic + # pulls. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#33 + def related_document_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#43 + def to_json(*args); end +end + +# Diagnostic options. +# +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#7 +class LanguageServer::Protocol::Interface::DiagnosticOptions + # @return [DiagnosticOptions] a new instance of DiagnosticOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#8 + def initialize(inter_file_dependencies:, workspace_diagnostics:, work_done_progress: T.unsafe(nil), identifier: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#52 + def attributes; end + + # An optional identifier under which the diagnostics are + # managed by the client. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#29 + def identifier; end + + # Whether the language has inter file dependencies meaning that + # editing code in one file can result in a different diagnostic + # set in another file. Inter file dependencies are common for + # most programming languages and typically uncommon for linters. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#40 + def inter_file_dependencies; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#54 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#58 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#20 + def work_done_progress; end + + # The server provides support for workspace diagnostics as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#48 + def workspace_diagnostics; end +end + +# Diagnostic registration options. +# +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#7 +class LanguageServer::Protocol::Interface::DiagnosticRegistrationOptions + # @return [DiagnosticRegistrationOptions] a new instance of DiagnosticRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#8 + def initialize(document_selector:, inter_file_dependencies:, workspace_diagnostics:, work_done_progress: T.unsafe(nil), identifier: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#72 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#26 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#68 + def id; end + + # An optional identifier under which the diagnostics are + # managed by the client. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#40 + def identifier; end + + # Whether the language has inter file dependencies meaning that + # editing code in one file can result in a different diagnostic + # set in another file. Inter file dependencies are common for + # most programming languages and typically uncommon for linters. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#51 + def inter_file_dependencies; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#74 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#78 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#31 + def work_done_progress; end + + # The server provides support for workspace diagnostics as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#59 + def workspace_diagnostics; end +end + +# Represents a related message and source code location for a diagnostic. +# This should be used to point to code locations that cause or are related to +# a diagnostics, e.g when duplicating a symbol in a scope. +# +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#9 +class LanguageServer::Protocol::Interface::DiagnosticRelatedInformation + # @return [DiagnosticRelatedInformation] a new instance of DiagnosticRelatedInformation + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#10 + def initialize(location:, message:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#35 + def attributes; end + + # The location of this related diagnostic information. + # + # @return [Location] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#23 + def location; end + + # The message of this related diagnostic information. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#31 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#37 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#41 + def to_json(*args); end +end + +# Cancellation data returned from a diagnostic request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#7 +class LanguageServer::Protocol::Interface::DiagnosticServerCancellationData + # @return [DiagnosticServerCancellationData] a new instance of DiagnosticServerCancellationData + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#8 + def initialize(retrigger_request:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#21 + def attributes; end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#17 + def retrigger_request; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#27 + def to_json(*args); end +end + +# Workspace client capabilities specific to diagnostic pull requests. +# +# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::DiagnosticWorkspaceClientCapabilities + # @return [DiagnosticWorkspaceClientCapabilities] a new instance of DiagnosticWorkspaceClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#8 + def initialize(refresh_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#30 + def attributes; end + + # Whether the client implementation supports a refresh request sent from + # the server to the client. + # + # Note that this event is global and will force the client to refresh all + # pulled diagnostics currently shown. It should be used with absolute care + # and is useful for situation where a server for example detects a project + # wide change that requires such a calculation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#26 + def refresh_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DidChangeConfigurationClientCapabilities + # @return [DidChangeConfigurationClientCapabilities] a new instance of DidChangeConfigurationClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#21 + def attributes; end + + # Did change configuration notification supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#4 +class LanguageServer::Protocol::Interface::DidChangeConfigurationParams + # @return [DidChangeConfigurationParams] a new instance of DidChangeConfigurationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#5 + def initialize(settings:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#21 + def attributes; end + + # The actual changed settings + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#17 + def settings; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#27 + def to_json(*args); end +end + +# The params sent in a change notebook document notification. +# +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#7 +class LanguageServer::Protocol::Interface::DidChangeNotebookDocumentParams + # @return [DidChangeNotebookDocumentParams] a new instance of DidChangeNotebookDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#8 + def initialize(notebook_document:, change:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#44 + def attributes; end + + # The actual changes to the notebook document. + # + # The change describes single state change to the notebook document. + # So it moves a notebook document, its cells and its cell text document + # contents from state S to S'. + # + # To mirror the content of a notebook using change events use the + # following approach: + # - start with the same initial content + # - apply the 'notebookDocument/didChange' notifications in the order + # you receive them. + # + # @return [NotebookDocumentChangeEvent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#40 + def change; end + + # The notebook document that did change. The version number points + # to the version after all provided changes have been applied. + # + # @return [VersionedNotebookDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#22 + def notebook_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#50 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#4 +class LanguageServer::Protocol::Interface::DidChangeTextDocumentParams + # @return [DidChangeTextDocumentParams] a new instance of DidChangeTextDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#5 + def initialize(text_document:, content_changes:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#44 + def attributes; end + + # The actual content changes. The content changes describe single state + # changes to the document. So if there are two content changes c1 (at + # array index 0) and c2 (at array index 1) for a document in state S then + # c1 moves the document from S to S' and c2 from S' to S''. So c1 is + # computed on the state S and c2 is computed on the state S'. + # + # To mirror the content of a document using change events use the following + # approach: + # - start with the same initial content + # - apply the 'textDocument/didChange' notifications in the order you + # receive them. + # - apply the `TextDocumentContentChangeEvent`s in a single notification + # in the order you receive them. + # + # @return [TextDocumentContentChangeEvent[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#40 + def content_changes; end + + # The document that did change. The version number points + # to the version after all provided content changes have + # been applied. + # + # @return [VersionedTextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#50 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DidChangeWatchedFilesClientCapabilities + # @return [DidChangeWatchedFilesClientCapabilities] a new instance of DidChangeWatchedFilesClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), relative_pattern_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#33 + def attributes; end + + # Did change watched files notification supports dynamic registration. + # Please note that the current protocol doesn't support static + # configuration for file changes from the server side. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#20 + def dynamic_registration; end + + # Whether the client has support for relative patterns + # or not. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#29 + def relative_pattern_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#39 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#4 +class LanguageServer::Protocol::Interface::DidChangeWatchedFilesParams + # @return [DidChangeWatchedFilesParams] a new instance of DidChangeWatchedFilesParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#5 + def initialize(changes:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#21 + def attributes; end + + # The actual file events. + # + # @return [FileEvent[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#17 + def changes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#27 + def to_json(*args); end +end + +# Describe options to be used when registering for file system change events. +# +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#7 +class LanguageServer::Protocol::Interface::DidChangeWatchedFilesRegistrationOptions + # @return [DidChangeWatchedFilesRegistrationOptions] a new instance of DidChangeWatchedFilesRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#8 + def initialize(watchers:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#24 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#30 + def to_json(*args); end + + # The watchers to register. + # + # @return [FileSystemWatcher[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#20 + def watchers; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#4 +class LanguageServer::Protocol::Interface::DidChangeWorkspaceFoldersParams + # @return [DidChangeWorkspaceFoldersParams] a new instance of DidChangeWorkspaceFoldersParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#5 + def initialize(event:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#21 + def attributes; end + + # The actual workspace folder change event. + # + # @return [WorkspaceFoldersChangeEvent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#17 + def event; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#27 + def to_json(*args); end +end + +# The params sent in a close notebook document notification. +# +# source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#7 +class LanguageServer::Protocol::Interface::DidCloseNotebookDocumentParams + # @return [DidCloseNotebookDocumentParams] a new instance of DidCloseNotebookDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#8 + def initialize(notebook_document:, cell_text_documents:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#34 + def attributes; end + + # The text documents that represent the content + # of a notebook cell that got closed. + # + # @return [TextDocumentIdentifier[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#30 + def cell_text_documents; end + + # The notebook document that got closed. + # + # @return [NotebookDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#21 + def notebook_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#40 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#4 +class LanguageServer::Protocol::Interface::DidCloseTextDocumentParams + # @return [DidCloseTextDocumentParams] a new instance of DidCloseTextDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#5 + def initialize(text_document:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#21 + def attributes; end + + # The document that was closed. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#17 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#27 + def to_json(*args); end +end + +# The params sent in an open notebook document notification. +# +# source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#7 +class LanguageServer::Protocol::Interface::DidOpenNotebookDocumentParams + # @return [DidOpenNotebookDocumentParams] a new instance of DidOpenNotebookDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#8 + def initialize(notebook_document:, cell_text_documents:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#34 + def attributes; end + + # The text documents that represent the content + # of a notebook cell. + # + # @return [TextDocumentItem[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#30 + def cell_text_documents; end + + # The notebook document that got opened. + # + # @return [NotebookDocument] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#21 + def notebook_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#40 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#4 +class LanguageServer::Protocol::Interface::DidOpenTextDocumentParams + # @return [DidOpenTextDocumentParams] a new instance of DidOpenTextDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#5 + def initialize(text_document:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#21 + def attributes; end + + # The document that was opened. + # + # @return [TextDocumentItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#17 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#27 + def to_json(*args); end +end + +# The params sent in a save notebook document notification. +# +# source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#7 +class LanguageServer::Protocol::Interface::DidSaveNotebookDocumentParams + # @return [DidSaveNotebookDocumentParams] a new instance of DidSaveNotebookDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#8 + def initialize(notebook_document:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#24 + def attributes; end + + # The notebook document that got saved. + # + # @return [NotebookDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#20 + def notebook_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#4 +class LanguageServer::Protocol::Interface::DidSaveTextDocumentParams + # @return [DidSaveTextDocumentParams] a new instance of DidSaveTextDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#5 + def initialize(text_document:, text: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#31 + def attributes; end + + # Optional the content when saved. Depends on the includeText value + # when the save notification was requested. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#27 + def text; end + + # The document that was saved. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#18 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#37 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentColorClientCapabilities + # @return [DocumentColorClientCapabilities] a new instance of DocumentColorClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#21 + def attributes; end + + # Whether document color supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentColorOptions + # @return [DocumentColorOptions] a new instance of DocumentColorOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentColorParams + # @return [DocumentColorParams] a new instance of DocumentColorParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#5 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#40 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#28 + def partial_result_token; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#36 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#46 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentColorRegistrationOptions + # @return [DocumentColorRegistrationOptions] a new instance of DocumentColorRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#5 + def initialize(document_selector:, id: T.unsafe(nil), work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#29 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#34 + def work_done_progress; end +end + +# Parameters of the document diagnostic request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#7 +class LanguageServer::Protocol::Interface::DocumentDiagnosticParams + # @return [DocumentDiagnosticParams] a new instance of DocumentDiagnosticParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#8 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), identifier: T.unsafe(nil), previous_result_id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#61 + def attributes; end + + # The additional identifier provided during registration. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#49 + def identifier; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#33 + def partial_result_token; end + + # The result id of a previous response if provided. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#57 + def previous_result_id; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#41 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#63 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#67 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#24 + def work_done_token; end +end + +# A partial result for a document diagnostic report. +# +# source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#7 +class LanguageServer::Protocol::Interface::DocumentDiagnosticReportPartialResult + # @return [DocumentDiagnosticReportPartialResult] a new instance of DocumentDiagnosticReportPartialResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#8 + def initialize(related_documents:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#21 + def attributes; end + + # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#17 + def related_documents; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#4 +class LanguageServer::Protocol::Interface::DocumentFilter + # @return [DocumentFilter] a new instance of DocumentFilter + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#5 + def initialize(language: T.unsafe(nil), scheme: T.unsafe(nil), pattern: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#51 + def attributes; end + + # A language id, like `typescript`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#19 + def language; end + + # A glob pattern, like `*.{ts,js}`. + # + # Glob patterns can have the following syntax: + # - `*` to match one or more characters in a path segment + # - `?` to match on one character in a path segment + # - `**` to match any number of path segments, including none + # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` + # matches all TypeScript and JavaScript files) + # - `[]` to declare a range of characters to match in a path segment + # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) + # - `[!...]` to negate a range of characters to match in a path segment + # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but + # not `example.0`) + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#47 + def pattern; end + + # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#27 + def scheme; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#57 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentFormattingClientCapabilities + # @return [DocumentFormattingClientCapabilities] a new instance of DocumentFormattingClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#21 + def attributes; end + + # Whether formatting supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentFormattingOptions + # @return [DocumentFormattingOptions] a new instance of DocumentFormattingOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentFormattingParams + # @return [DocumentFormattingParams] a new instance of DocumentFormattingParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#5 + def initialize(text_document:, options:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#39 + def attributes; end + + # The format options. + # + # @return [FormattingOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#35 + def options; end + + # The document to format. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#27 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentFormattingRegistrationOptions + # @return [DocumentFormattingRegistrationOptions] a new instance of DocumentFormattingRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#24 + def work_done_progress; end +end + +# A document highlight is a range inside a text document which deserves +# special attention. Usually a document highlight is visualized by changing +# the background color of its range. +# +# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#9 +class LanguageServer::Protocol::Interface::DocumentHighlight + # @return [DocumentHighlight] a new instance of DocumentHighlight + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#10 + def initialize(range:, kind: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#35 + def attributes; end + + # The highlight kind, default is DocumentHighlightKind.Text. + # + # @return [DocumentHighlightKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#31 + def kind; end + + # The range this highlight applies to. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#23 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#37 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#41 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentHighlightClientCapabilities + # @return [DocumentHighlightClientCapabilities] a new instance of DocumentHighlightClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#21 + def attributes; end + + # Whether document highlight supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentHighlightOptions + # @return [DocumentHighlightOptions] a new instance of DocumentHighlightOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentHighlightParams + # @return [DocumentHighlightParams] a new instance of DocumentHighlightParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#45 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentHighlightRegistrationOptions + # @return [DocumentHighlightRegistrationOptions] a new instance of DocumentHighlightRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#24 + def work_done_progress; end +end + +# A document link is a range in a text document that links to an internal or +# external resource, like another text document or a web site. +# +# source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#8 +class LanguageServer::Protocol::Interface::DocumentLink + # @return [DocumentLink] a new instance of DocumentLink + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#9 + def initialize(range:, target: T.unsafe(nil), tooltip: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#58 + def attributes; end + + # A data entry field that is preserved on a document link between a + # DocumentLinkRequest and a DocumentLinkResolveRequest. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#54 + def data; end + + # The range this link applies to. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#24 + def range; end + + # The uri this link points to. If missing a resolve request is sent later. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#32 + def target; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#60 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#64 + def to_json(*args); end + + # The tooltip text when you hover over this link. + # + # If a tooltip is provided, is will be displayed in a string that includes + # instructions on how to trigger the link, such as `{0} (ctrl + click)`. + # The specific instructions vary depending on OS, user settings, and + # localization. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#45 + def tooltip; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentLinkClientCapabilities + # @return [DocumentLinkClientCapabilities] a new instance of DocumentLinkClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), tooltip_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#30 + def attributes; end + + # Whether document link supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#18 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#36 + def to_json(*args); end + + # Whether the client supports the `tooltip` property on `DocumentLink`. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#26 + def tooltip_support; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentLinkOptions + # @return [DocumentLinkOptions] a new instance of DocumentLinkOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#27 + def attributes; end + + # Document links have a resolve provider as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#23 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#29 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#33 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#15 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentLinkParams + # @return [DocumentLinkParams] a new instance of DocumentLinkParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#5 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#40 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#28 + def partial_result_token; end + + # The document to provide document links for. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#36 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#46 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentLinkRegistrationOptions + # @return [DocumentLinkRegistrationOptions] a new instance of DocumentLinkRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#37 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#20 + def document_selector; end + + # Document links have a resolve provider as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#33 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#43 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingClientCapabilities + # @return [DocumentOnTypeFormattingClientCapabilities] a new instance of DocumentOnTypeFormattingClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#21 + def attributes; end + + # Whether on type formatting supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingOptions + # @return [DocumentOnTypeFormattingOptions] a new instance of DocumentOnTypeFormattingOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#5 + def initialize(first_trigger_character:, more_trigger_character: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#30 + def attributes; end + + # A character on which formatting should be triggered, like `{`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#18 + def first_trigger_character; end + + # More trigger characters. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#26 + def more_trigger_character; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingParams + # @return [DocumentOnTypeFormattingParams] a new instance of DocumentOnTypeFormattingParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#5 + def initialize(text_document:, position:, ch:, options:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#53 + def attributes; end + + # The character that has been typed that triggered the formatting + # on type request. That is not necessarily the last character that + # got inserted into the document since the client could auto insert + # characters as well (e.g. like automatic brace completion). + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#41 + def ch; end + + # The formatting options. + # + # @return [FormattingOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#49 + def options; end + + # The position around which the on type formatting should happen. + # This is not necessarily the exact position where the character denoted + # by the property `ch` got typed. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#30 + def position; end + + # The document to format. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#55 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#59 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingRegistrationOptions + # @return [DocumentOnTypeFormattingRegistrationOptions] a new instance of DocumentOnTypeFormattingRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#5 + def initialize(document_selector:, first_trigger_character:, more_trigger_character: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#40 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#20 + def document_selector; end + + # A character on which formatting should be triggered, like `{`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#28 + def first_trigger_character; end + + # More trigger characters. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#36 + def more_trigger_character; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#46 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentRangeFormattingClientCapabilities + # @return [DocumentRangeFormattingClientCapabilities] a new instance of DocumentRangeFormattingClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#21 + def attributes; end + + # Whether formatting supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentRangeFormattingOptions + # @return [DocumentRangeFormattingOptions] a new instance of DocumentRangeFormattingOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentRangeFormattingParams + # @return [DocumentRangeFormattingParams] a new instance of DocumentRangeFormattingParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#5 + def initialize(text_document:, range:, options:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#48 + def attributes; end + + # The format options + # + # @return [FormattingOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#44 + def options; end + + # The range to format + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#36 + def range; end + + # The document to format. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#28 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#50 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#54 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#20 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentRangeFormattingRegistrationOptions + # @return [DocumentRangeFormattingRegistrationOptions] a new instance of DocumentRangeFormattingRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#24 + def work_done_progress; end +end + +# Represents programming constructs like variables, classes, interfaces etc. +# that appear in a document. Document symbols can be hierarchical and they +# have two ranges: one that encloses its definition and one that points to its +# most interesting range, e.g. the range of an identifier. +# +# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#10 +class LanguageServer::Protocol::Interface::DocumentSymbol + # @return [DocumentSymbol] a new instance of DocumentSymbol + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#11 + def initialize(name:, kind:, range:, selection_range:, detail: T.unsafe(nil), tags: T.unsafe(nil), deprecated: T.unsafe(nil), children: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#96 + def attributes; end + + # Children of this symbol, e.g. properties of a class. + # + # @return [DocumentSymbol[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#92 + def children; end + + # Indicates if this symbol is deprecated. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#64 + def deprecated; end + + # More detail for this symbol, e.g the signature of a function. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#40 + def detail; end + + # The kind of this symbol. + # + # @return [SymbolKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#48 + def kind; end + + # The name of this symbol. Will be displayed in the user interface and + # therefore must not be an empty string or a string only consisting of + # white spaces. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#32 + def name; end + + # The range enclosing this symbol not including leading/trailing whitespace + # but everything else like comments. This information is typically used to + # determine if the clients cursor is inside the symbol to reveal in the + # symbol in the UI. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#75 + def range; end + + # The range that should be selected and revealed when this symbol is being + # picked, e.g. the name of a function. Must be contained by the `range`. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#84 + def selection_range; end + + # Tags for this document symbol. + # + # @return [1[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#56 + def tags; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#98 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#102 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::DocumentSymbolClientCapabilities + # @return [DocumentSymbolClientCapabilities] a new instance of DocumentSymbolClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), symbol_kind: T.unsafe(nil), hierarchical_document_symbol_support: T.unsafe(nil), tag_support: T.unsafe(nil), label_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#61 + def attributes; end + + # Whether document symbol supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#21 + def dynamic_registration; end + + # The client supports hierarchical document symbols. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#38 + def hierarchical_document_symbol_support; end + + # The client supports an additional label presented in the UI when + # registering a document symbol provider. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#57 + def label_support; end + + # Specific capabilities for the `SymbolKind` in the + # `textDocument/documentSymbol` request. + # + # @return [{ valueSet?: SymbolKind[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#30 + def symbol_kind; end + + # The client supports tags on `SymbolInformation`. Tags are supported on + # `DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set to true. + # Clients supporting tags have to handle unknown tags gracefully. + # + # @return [{ valueSet: 1[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#48 + def tag_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#63 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#67 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentSymbolOptions + # @return [DocumentSymbolOptions] a new instance of DocumentSymbolOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), label: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#28 + def attributes; end + + # A human-readable string that is shown when multiple outlines trees + # are shown for the same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#24 + def label; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#15 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#4 +class LanguageServer::Protocol::Interface::DocumentSymbolParams + # @return [DocumentSymbolParams] a new instance of DocumentSymbolParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#5 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#40 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#28 + def partial_result_token; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#36 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#46 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#4 +class LanguageServer::Protocol::Interface::DocumentSymbolRegistrationOptions + # @return [DocumentSymbolRegistrationOptions] a new instance of DocumentSymbolRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), label: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#20 + def document_selector; end + + # A human-readable string that is shown when multiple outlines trees + # are shown for the same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#34 + def label; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::ExecuteCommandClientCapabilities + # @return [ExecuteCommandClientCapabilities] a new instance of ExecuteCommandClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#21 + def attributes; end + + # Execute command supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#4 +class LanguageServer::Protocol::Interface::ExecuteCommandOptions + # @return [ExecuteCommandOptions] a new instance of ExecuteCommandOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#5 + def initialize(commands:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#27 + def attributes; end + + # The commands to be executed on the server + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#23 + def commands; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#29 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#33 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#15 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#4 +class LanguageServer::Protocol::Interface::ExecuteCommandParams + # @return [ExecuteCommandParams] a new instance of ExecuteCommandParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#5 + def initialize(command:, work_done_token: T.unsafe(nil), arguments: T.unsafe(nil)); end + + # Arguments that the command should be invoked with. + # + # @return [LSPAny[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#35 + def arguments; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#39 + def attributes; end + + # The identifier of the actual command handler. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#27 + def command; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#19 + def work_done_token; end +end + +# Execute command registration options. +# +# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#7 +class LanguageServer::Protocol::Interface::ExecuteCommandRegistrationOptions + # @return [ExecuteCommandRegistrationOptions] a new instance of ExecuteCommandRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#8 + def initialize(commands:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#30 + def attributes; end + + # The commands to be executed on the server + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#26 + def commands; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#36 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#18 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#4 +class LanguageServer::Protocol::Interface::ExecutionSummary + # @return [ExecutionSummary] a new instance of ExecutionSummary + # + # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#5 + def initialize(execution_order:, success: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#33 + def attributes; end + + # A strict monotonically increasing value + # indicating the execution order of a cell + # inside a notebook. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#20 + def execution_order; end + + # Whether the execution was successful or + # not if known by the client. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#29 + def success; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#39 + def to_json(*args); end +end + +# Represents information on a file/folder create. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#7 +class LanguageServer::Protocol::Interface::FileCreate + # @return [FileCreate] a new instance of FileCreate + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#8 + def initialize(uri:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#24 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#30 + def to_json(*args); end + + # A file:// URI for the location of the file/folder being created. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#20 + def uri; end +end + +# Represents information on a file/folder delete. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#7 +class LanguageServer::Protocol::Interface::FileDelete + # @return [FileDelete] a new instance of FileDelete + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#8 + def initialize(uri:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#24 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#30 + def to_json(*args); end + + # A file:// URI for the location of the file/folder being deleted. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#20 + def uri; end +end + +# An event describing a file change. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#7 +class LanguageServer::Protocol::Interface::FileEvent + # @return [FileEvent] a new instance of FileEvent + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#8 + def initialize(uri:, type:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#33 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#39 + def to_json(*args); end + + # The change type. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#29 + def type; end + + # The file's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#21 + def uri; end +end + +# A filter to describe in which file operation requests or notifications +# the server is interested in. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#8 +class LanguageServer::Protocol::Interface::FileOperationFilter + # @return [FileOperationFilter] a new instance of FileOperationFilter + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#9 + def initialize(pattern:, scheme: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#34 + def attributes; end + + # The actual file operation pattern. + # + # @return [FileOperationPattern] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#30 + def pattern; end + + # A Uri like `file` or `untitled`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#22 + def scheme; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#40 + def to_json(*args); end +end + +# A pattern to describe in which file operation requests or notifications +# the server is interested in. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#8 +class LanguageServer::Protocol::Interface::FileOperationPattern + # @return [FileOperationPattern] a new instance of FileOperationPattern + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#9 + def initialize(glob:, matches: T.unsafe(nil), options: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#55 + def attributes; end + + # The glob pattern to match. Glob patterns can have the following syntax: + # - `*` to match one or more characters in a path segment + # - `?` to match on one character in a path segment + # - `**` to match any number of path segments, including none + # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` + # matches all TypeScript and JavaScript files) + # - `[]` to declare a range of characters to match in a path segment + # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) + # - `[!...]` to negate a range of characters to match in a path segment + # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but + # not `example.0`) + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#33 + def glob; end + + # Whether to match files or folders with this pattern. + # + # Matches both if undefined. + # + # @return [FileOperationPatternKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#43 + def matches; end + + # Additional options used during matching. + # + # @return [FileOperationPatternOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#51 + def options; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#57 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#61 + def to_json(*args); end +end + +# Matching options for the file operation pattern. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#7 +class LanguageServer::Protocol::Interface::FileOperationPatternOptions + # @return [FileOperationPatternOptions] a new instance of FileOperationPatternOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#8 + def initialize(ignore_case: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#24 + def attributes; end + + # The pattern should be matched ignoring casing. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#20 + def ignore_case; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#30 + def to_json(*args); end +end + +# The options to register for file operations. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#7 +class LanguageServer::Protocol::Interface::FileOperationRegistrationOptions + # @return [FileOperationRegistrationOptions] a new instance of FileOperationRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#8 + def initialize(filters:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#24 + def attributes; end + + # The actual filters. + # + # @return [FileOperationFilter[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#20 + def filters; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#30 + def to_json(*args); end +end + +# Represents information on a file/folder rename. +# +# source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#7 +class LanguageServer::Protocol::Interface::FileRename + # @return [FileRename] a new instance of FileRename + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#8 + def initialize(old_uri:, new_uri:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#33 + def attributes; end + + # A file:// URI for the new location of the file/folder being renamed. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#29 + def new_uri; end + + # A file:// URI for the original location of the file/folder being renamed. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#21 + def old_uri; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#39 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#4 +class LanguageServer::Protocol::Interface::FileSystemWatcher + # @return [FileSystemWatcher] a new instance of FileSystemWatcher + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#5 + def initialize(glob_pattern:, kind: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#33 + def attributes; end + + # The glob pattern to watch. See {@link GlobPattern glob pattern} + # for more detail. + # + # @return [GlobPattern] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#19 + def glob_pattern; end + + # The kind of events of interest. If omitted it defaults + # to WatchKind.Create | WatchKind.Change | WatchKind.Delete + # which is 7. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#29 + def kind; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#39 + def to_json(*args); end +end + +# Represents a folding range. To be valid, start and end line must be bigger +# than zero and smaller than the number of lines in the document. Clients +# are free to ignore invalid ranges. +# +# source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#9 +class LanguageServer::Protocol::Interface::FoldingRange + # @return [FoldingRange] a new instance of FoldingRange + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#10 + def initialize(start_line:, end_line:, start_character: T.unsafe(nil), end_character: T.unsafe(nil), kind: T.unsafe(nil), collapsed_text: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#82 + def attributes; end + + # The text that the client should show when the specified range is + # collapsed. If not defined or not supported by the client, a default + # will be chosen by the client. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#78 + def collapsed_text; end + + # The zero-based character offset before the folded range ends. If not + # defined, defaults to the length of the end line. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#57 + def end_character; end + + # The zero-based end line of the range to fold. The folded area ends with + # the line's last character. To be valid, the end must be zero or larger + # and smaller than the number of lines in the document. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#48 + def end_line; end + + # Describes the kind of the folding range such as `comment` or `region`. + # The kind is used to categorize folding ranges and used by commands like + # 'Fold all comments'. See [FoldingRangeKind](#FoldingRangeKind) for an + # enumeration of standardized kinds. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#68 + def kind; end + + # The zero-based character offset from where the folded range starts. If + # not defined, defaults to the length of the start line. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#38 + def start_character; end + + # The zero-based start line of the range to fold. The folded area starts + # after the line's last character. To be valid, the end must be zero or + # larger and smaller than the number of lines in the document. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#29 + def start_line; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#84 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#88 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::FoldingRangeClientCapabilities + # @return [FoldingRangeClientCapabilities] a new instance of FoldingRangeClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), range_limit: T.unsafe(nil), line_folding_only: T.unsafe(nil), folding_range_kind: T.unsafe(nil), folding_range: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#64 + def attributes; end + + # Whether implementation supports dynamic registration for folding range + # providers. If this is set to `true` the client supports the new + # `FoldingRangeRegistrationOptions` return value for the corresponding + # server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#24 + def dynamic_registration; end + + # Specific options for the folding range. + # + # @return [{ collapsedText?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#60 + def folding_range; end + + # Specific options for the folding range kind. + # + # @return [{ valueSet?: string[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#52 + def folding_range_kind; end + + # If set, the client signals that it only supports folding complete lines. + # If set, client will ignore specified `startCharacter` and `endCharacter` + # properties in a FoldingRange. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#44 + def line_folding_only; end + + # The maximum number of folding ranges that the client prefers to receive + # per document. The value serves as a hint, servers are free to follow the + # limit. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#34 + def range_limit; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#66 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#70 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#4 +class LanguageServer::Protocol::Interface::FoldingRangeOptions + # @return [FoldingRangeOptions] a new instance of FoldingRangeOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#4 +class LanguageServer::Protocol::Interface::FoldingRangeParams + # @return [FoldingRangeParams] a new instance of FoldingRangeParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#5 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#40 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#28 + def partial_result_token; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#36 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#46 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#4 +class LanguageServer::Protocol::Interface::FoldingRangeRegistrationOptions + # @return [FoldingRangeRegistrationOptions] a new instance of FoldingRangeRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#25 + def work_done_progress; end +end + +# Value-object describing what options formatting should use. +# +# source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#7 +class LanguageServer::Protocol::Interface::FormattingOptions + # @return [FormattingOptions] a new instance of FormattingOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#8 + def initialize(tab_size:, insert_spaces:, trim_trailing_whitespace: T.unsafe(nil), insert_final_newline: T.unsafe(nil), trim_final_newlines: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#60 + def attributes; end + + # Insert a newline character at the end of the file if one does not exist. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#48 + def insert_final_newline; end + + # Prefer spaces over tabs. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#32 + def insert_spaces; end + + # Size of a tab in spaces. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#24 + def tab_size; end + + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#62 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#66 + def to_json(*args); end + + # Trim all newlines after the final newline at the end of the file. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#56 + def trim_final_newlines; end + + # Trim trailing whitespace on a line. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#40 + def trim_trailing_whitespace; end +end + +# A diagnostic report with a full set of problems. +# +# source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#7 +class LanguageServer::Protocol::Interface::FullDocumentDiagnosticReport + # @return [FullDocumentDiagnosticReport] a new instance of FullDocumentDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#8 + def initialize(kind:, items:, result_id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#44 + def attributes; end + + # The actual items. + # + # @return [Diagnostic[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#40 + def items; end + + # A full document diagnostic report. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#22 + def kind; end + + # An optional result id. If provided it will + # be sent on the next diagnostic request for the + # same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#32 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#50 + def to_json(*args); end +end + +# The result of a hover request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#7 +class LanguageServer::Protocol::Interface::Hover + # @return [Hover] a new instance of Hover + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#8 + def initialize(contents:, range: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#34 + def attributes; end + + # The hover's content + # + # @return [MarkupContent | MarkedString | MarkedString[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#21 + def contents; end + + # An optional range is a range inside a text document + # that is used to visualize a hover, e.g. by changing the background color. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#30 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#40 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::HoverClientCapabilities + # @return [HoverClientCapabilities] a new instance of HoverClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), content_format: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#32 + def attributes; end + + # Client supports the follow content formats if the content + # property refers to a `literal of type MarkupContent`. + # The order describes the preferred format of the client. + # + # @return [MarkupKind[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#28 + def content_format; end + + # Whether hover supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#18 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#38 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#4 +class LanguageServer::Protocol::Interface::HoverOptions + # @return [HoverOptions] a new instance of HoverOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#4 +class LanguageServer::Protocol::Interface::HoverParams + # @return [HoverParams] a new instance of HoverParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#39 + def attributes; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#27 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#19 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#35 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#4 +class LanguageServer::Protocol::Interface::HoverRegistrationOptions + # @return [HoverRegistrationOptions] a new instance of HoverRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#24 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#4 +class LanguageServer::Protocol::Interface::HoverResult + # @return [HoverResult] a new instance of HoverResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#5 + def initialize(value:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#24 + def to_json(*args); end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#14 + def value; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::ImplementationClientCapabilities + # @return [ImplementationClientCapabilities] a new instance of ImplementationClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#32 + def attributes; end + + # Whether implementation supports dynamic registration. If this is set to + # `true` the client supports the new `ImplementationRegistrationOptions` + # return value for the corresponding server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#20 + def dynamic_registration; end + + # The client supports additional metadata in the form of definition links. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#28 + def link_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#38 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#4 +class LanguageServer::Protocol::Interface::ImplementationOptions + # @return [ImplementationOptions] a new instance of ImplementationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#4 +class LanguageServer::Protocol::Interface::ImplementationParams + # @return [ImplementationParams] a new instance of ImplementationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#45 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#4 +class LanguageServer::Protocol::Interface::ImplementationRegistrationOptions + # @return [ImplementationRegistrationOptions] a new instance of ImplementationRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#4 +class LanguageServer::Protocol::Interface::InitializeError + # @return [InitializeError] a new instance of InitializeError + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#5 + def initialize(retry:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#24 + def attributes; end + + # Indicates whether the client execute the following retry logic: + # (1) show the message provided by the ResponseError to the user + # (2) user selects retry or cancel + # (3) if user selected retry the initialize method is sent again. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#20 + def retry; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#4 +class LanguageServer::Protocol::Interface::InitializeParams + # @return [InitializeParams] a new instance of InitializeParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#5 + def initialize(process_id:, root_uri:, capabilities:, work_done_token: T.unsafe(nil), client_info: T.unsafe(nil), locale: T.unsafe(nil), root_path: T.unsafe(nil), initialization_options: T.unsafe(nil), trace: T.unsafe(nil), workspace_folders: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#116 + def attributes; end + + # The capabilities provided by the client (editor or tool) + # + # @return [ClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#93 + def capabilities; end + + # Information about the client + # + # @return [{ name: string; version?: string; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#45 + def client_info; end + + # User provided initialization options. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#85 + def initialization_options; end + + # The locale the client is currently showing the user interface + # in. This must not necessarily be the locale of the operating + # system. + # + # Uses IETF language tags as the value's syntax + # (See https://en.wikipedia.org/wiki/IETF_language_tag) + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#58 + def locale; end + + # The process Id of the parent process that started the server. Is null if + # the process has not been started by another process. If the parent + # process is not alive then the server should exit (see exit notification) + # its process. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#37 + def process_id; end + + # The rootPath of the workspace. Is null + # if no folder is open. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#67 + def root_path; end + + # The rootUri of the workspace. Is null if no + # folder is open. If both `rootPath` and `rootUri` are set + # `rootUri` wins. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#77 + def root_uri; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#118 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#122 + def to_json(*args); end + + # The initial trace setting. If omitted trace is disabled ('off'). + # + # @return [TraceValue] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#101 + def trace; end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#26 + def work_done_token; end + + # The workspace folders configured in the client when the server starts. + # This property is only available if the client supports workspace folders. + # It can be `null` if the client supports workspace folders but none are + # configured. + # + # @return [WorkspaceFolder[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#112 + def workspace_folders; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#4 +class LanguageServer::Protocol::Interface::InitializeResult + # @return [InitializeResult] a new instance of InitializeResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#5 + def initialize(capabilities:, server_info: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#30 + def attributes; end + + # The capabilities the language server provides. + # + # @return [ServerCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#18 + def capabilities; end + + # Information about the server. + # + # @return [{ name: string; version?: string; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#26 + def server_info; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#4 +class LanguageServer::Protocol::Interface::InitializedParams + # @return [InitializedParams] a new instance of InitializedParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#5 + def initialize; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#12 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#14 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#18 + def to_json(*args); end +end + +# Inlay hint information. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#7 +class LanguageServer::Protocol::Interface::InlayHint + # @return [InlayHint] a new instance of InlayHint + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#8 + def initialize(position:, label:, kind: T.unsafe(nil), text_edits: T.unsafe(nil), tooltip: T.unsafe(nil), padding_left: T.unsafe(nil), padding_right: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#110 + def attributes; end + + # A data entry field that is preserved on an inlay hint between + # a `textDocument/inlayHint` and a `inlayHint/resolve` request. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#106 + def data; end + + # The kind of this hint. Can be omitted in which case the client + # should fall back to a reasonable default. + # + # @return [InlayHintKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#47 + def kind; end + + # The label of this hint. A human readable string or an array of + # InlayHintLabelPart label parts. + # + # *Note* that neither the string nor the label part can be empty. + # + # @return [string | InlayHintLabelPart[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#38 + def label; end + + # Render padding before the hint. + # + # Note: Padding should use the editor's background color, not the + # background color of the hint itself. That means padding can be used + # to visually align/separate an inlay hint. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#85 + def padding_left; end + + # Render padding after the hint. + # + # Note: Padding should use the editor's background color, not the + # background color of the hint itself. That means padding can be used + # to visually align/separate an inlay hint. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#97 + def padding_right; end + + # The position of this hint. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#27 + def position; end + + # Optional text edits that are performed when accepting this inlay hint. + # + # *Note* that edits are expected to change the document so that the inlay + # hint (or its nearest variant) is now part of the document and the inlay + # hint itself is now obsolete. + # + # Depending on the client capability `inlayHint.resolveSupport` clients + # might resolve this property late using the resolve request. + # + # @return [TextEdit[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#62 + def text_edits; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#112 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#116 + def to_json(*args); end + + # The tooltip text when you hover over this item. + # + # Depending on the client capability `inlayHint.resolveSupport` clients + # might resolve this property late using the resolve request. + # + # @return [string | MarkupContent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#73 + def tooltip; end +end + +# Inlay hint client capabilities. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::InlayHintClientCapabilities + # @return [InlayHintClientCapabilities] a new instance of InlayHintClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#8 + def initialize(dynamic_registration: T.unsafe(nil), resolve_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#34 + def attributes; end + + # Whether inlay hints support dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#21 + def dynamic_registration; end + + # Indicates which properties a client can resolve lazily on an inlay + # hint. + # + # @return [{ properties: string[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#30 + def resolve_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#40 + def to_json(*args); end +end + +# An inlay hint label part allows for interactive and composite labels +# of inlay hints. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#8 +class LanguageServer::Protocol::Interface::InlayHintLabelPart + # @return [InlayHintLabelPart] a new instance of InlayHintLabelPart + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#9 + def initialize(value:, tooltip: T.unsafe(nil), location: T.unsafe(nil), command: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#67 + def attributes; end + + # An optional command for this label part. + # + # Depending on the client capability `inlayHint.resolveSupport` clients + # might resolve this property late using the resolve request. + # + # @return [Command] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#63 + def command; end + + # An optional source code location that represents this + # label part. + # + # The editor will use this location for the hover and for code navigation + # features: This part will become a clickable link that resolves to the + # definition of the symbol at the given location (not necessarily the + # location itself), it shows the hover that shows at the given location, + # and it shows a context menu with further code navigation commands. + # + # Depending on the client capability `inlayHint.resolveSupport` clients + # might resolve this property late using the resolve request. + # + # @return [Location] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#52 + def location; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#69 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#73 + def to_json(*args); end + + # The tooltip text when you hover over this label part. Depending on + # the client capability `inlayHint.resolveSupport` clients might resolve + # this property late using the resolve request. + # + # @return [string | MarkupContent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#34 + def tooltip; end + + # The value of this label part. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#24 + def value; end +end + +# Inlay hint options used during static registration. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#7 +class LanguageServer::Protocol::Interface::InlayHintOptions + # @return [InlayHintOptions] a new instance of InlayHintOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#8 + def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#31 + def attributes; end + + # The server provides support to resolve additional + # information for an inlay hint item. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#27 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#37 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#18 + def work_done_progress; end +end + +# A parameter literal used in inlay hint requests. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#7 +class LanguageServer::Protocol::Interface::InlayHintParams + # @return [InlayHintParams] a new instance of InlayHintParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#8 + def initialize(text_document:, range:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#42 + def attributes; end + + # The visible document range for which inlay hints should be computed. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#38 + def range; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#30 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#44 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#48 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#22 + def work_done_token; end +end + +# Inlay hint options used during static or dynamic registration. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#7 +class LanguageServer::Protocol::Interface::InlayHintRegistrationOptions + # @return [InlayHintRegistrationOptions] a new instance of InlayHintRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#8 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#51 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#38 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#47 + def id; end + + # The server provides support to resolve additional + # information for an inlay hint item. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#29 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#57 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#20 + def work_done_progress; end +end + +# Client workspace capabilities specific to inlay hints. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::InlayHintWorkspaceClientCapabilities + # @return [InlayHintWorkspaceClientCapabilities] a new instance of InlayHintWorkspaceClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#8 + def initialize(refresh_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#30 + def attributes; end + + # Whether the client implementation supports a refresh request sent from + # the server to the client. + # + # Note that this event is global and will force the client to refresh all + # inlay hints currently shown. It should be used with absolute care and + # is useful for situation where a server for example detects a project wide + # change that requires such a calculation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#26 + def refresh_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#36 + def to_json(*args); end +end + +# Client capabilities specific to inline values. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::InlineValueClientCapabilities + # @return [InlineValueClientCapabilities] a new instance of InlineValueClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#8 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#25 + def attributes; end + + # Whether implementation supports dynamic registration for inline + # value providers. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#21 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#27 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#31 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#4 +class LanguageServer::Protocol::Interface::InlineValueContext + # @return [InlineValueContext] a new instance of InlineValueContext + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#5 + def initialize(frame_id:, stopped_location:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#32 + def attributes; end + + # The stack frame (as a DAP Id) where the execution has stopped. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#18 + def frame_id; end + + # The document range where execution has stopped. + # Typically the end position of the range denotes the line where the + # inline values are shown. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#28 + def stopped_location; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#38 + def to_json(*args); end +end + +# Provide an inline value through an expression evaluation. +# +# If only a range is specified, the expression will be extracted from the +# underlying document. +# +# An optional expression can be used to override the extracted expression. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#12 +class LanguageServer::Protocol::Interface::InlineValueEvaluatableExpression + # @return [InlineValueEvaluatableExpression] a new instance of InlineValueEvaluatableExpression + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#13 + def initialize(range:, expression: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#40 + def attributes; end + + # If specified the expression overrides the extracted expression. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#36 + def expression; end + + # The document range for which the inline value applies. + # The range is used to extract the evaluatable expression from the + # underlying document. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#28 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#46 + def to_json(*args); end +end + +# Inline value options used during static registration. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#7 +class LanguageServer::Protocol::Interface::InlineValueOptions + # @return [InlineValueOptions] a new instance of InlineValueOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#8 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#21 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#27 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#17 + def work_done_progress; end +end + +# A parameter literal used in inline value requests. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#7 +class LanguageServer::Protocol::Interface::InlineValueParams + # @return [InlineValueParams] a new instance of InlineValueParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#8 + def initialize(text_document:, range:, context:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#52 + def attributes; end + + # Additional information about the context in which inline values were + # requested. + # + # @return [InlineValueContext] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#48 + def context; end + + # The document range for which inline values should be computed. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#39 + def range; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#31 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#54 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#58 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#23 + def work_done_token; end +end + +# Inline value options used during static or dynamic registration. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#7 +class LanguageServer::Protocol::Interface::InlineValueRegistrationOptions + # @return [InlineValueRegistrationOptions] a new instance of InlineValueRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#8 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#41 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#28 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#37 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#43 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#47 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#19 + def work_done_progress; end +end + +# Provide inline value as text. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#7 +class LanguageServer::Protocol::Interface::InlineValueText + # @return [InlineValueText] a new instance of InlineValueText + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#8 + def initialize(range:, text:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#33 + def attributes; end + + # The document range for which the inline value applies. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#21 + def range; end + + # The text of the inline value. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#29 + def text; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#39 + def to_json(*args); end +end + +# Provide inline value through a variable lookup. +# +# If only a range is specified, the variable name will be extracted from +# the underlying document. +# +# An optional variable name can be used to override the extracted name. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#12 +class LanguageServer::Protocol::Interface::InlineValueVariableLookup + # @return [InlineValueVariableLookup] a new instance of InlineValueVariableLookup + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#13 + def initialize(range:, case_sensitive_lookup:, variable_name: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#49 + def attributes; end + + # How to perform the lookup. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#45 + def case_sensitive_lookup; end + + # The document range for which the inline value applies. + # The range is used to extract the variable name from the underlying + # document. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#29 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#55 + def to_json(*args); end + + # If specified the name of the variable to look up. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#37 + def variable_name; end +end + +# Client workspace capabilities specific to inline values. +# +# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::InlineValueWorkspaceClientCapabilities + # @return [InlineValueWorkspaceClientCapabilities] a new instance of InlineValueWorkspaceClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#8 + def initialize(refresh_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#30 + def attributes; end + + # Whether the client implementation supports a refresh request sent from + # the server to the client. + # + # Note that this event is global and will force the client to refresh all + # inline values currently shown. It should be used with absolute care and + # is useful for situation where a server for example detect a project wide + # change that requires such a calculation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#26 + def refresh_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#36 + def to_json(*args); end +end + +# A special text edit to provide an insert and a replace operation. +# +# source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#7 +class LanguageServer::Protocol::Interface::InsertReplaceEdit + # @return [InsertReplaceEdit] a new instance of InsertReplaceEdit + # + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#8 + def initialize(new_text:, insert:, replace:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#42 + def attributes; end + + # The range if the insert is requested + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#30 + def insert; end + + # The string to be inserted. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#22 + def new_text; end + + # The range if the replace is requested. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#38 + def replace; end + + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#44 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#48 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::LinkedEditingRangeClientCapabilities + # @return [LinkedEditingRangeClientCapabilities] a new instance of LinkedEditingRangeClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#24 + def attributes; end + + # Whether the implementation supports dynamic registration. + # If this is set to `true` the client supports the new + # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` + # return value for the corresponding server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#20 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#4 +class LanguageServer::Protocol::Interface::LinkedEditingRangeOptions + # @return [LinkedEditingRangeOptions] a new instance of LinkedEditingRangeOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#4 +class LanguageServer::Protocol::Interface::LinkedEditingRangeParams + # @return [LinkedEditingRangeParams] a new instance of LinkedEditingRangeParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#39 + def attributes; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#27 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#19 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#35 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#4 +class LanguageServer::Protocol::Interface::LinkedEditingRangeRegistrationOptions + # @return [LinkedEditingRangeRegistrationOptions] a new instance of LinkedEditingRangeRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#4 +class LanguageServer::Protocol::Interface::LinkedEditingRanges + # @return [LinkedEditingRanges] a new instance of LinkedEditingRanges + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#5 + def initialize(ranges:, word_pattern: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#34 + def attributes; end + + # A list of ranges that can be renamed together. The ranges must have + # identical length and contain identical text content. The ranges cannot + # overlap. + # + # @return [Range[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#20 + def ranges; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#40 + def to_json(*args); end + + # An optional word pattern (regular expression) that describes valid + # contents for the given ranges. If no pattern is provided, the client + # configuration's word pattern will be used. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#30 + def word_pattern; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/location.rb#4 +class LanguageServer::Protocol::Interface::Location + # @return [Location] a new instance of Location + # + # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#5 + def initialize(uri:, range:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#24 + def attributes; end + + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#20 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#30 + def to_json(*args); end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#15 + def uri; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#4 +class LanguageServer::Protocol::Interface::LocationLink + # @return [LocationLink] a new instance of LocationLink + # + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#5 + def initialize(target_uri:, target_range:, target_selection_range:, origin_selection_range: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#56 + def attributes; end + + # Span of the origin of this link. + # + # Used as the underlined span for mouse interaction. Defaults to the word + # range at the mouse position. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#23 + def origin_selection_range; end + + # The full target range of this link. If the target for example is a symbol + # then target range is the range enclosing this symbol not including + # leading/trailing whitespace but everything else like comments. This + # information is typically used to highlight the range in the editor. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#42 + def target_range; end + + # The range that should be selected and revealed when this link is being + # followed, e.g the name of a function. Must be contained by the + # `targetRange`. See also `DocumentSymbol#range` + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#52 + def target_selection_range; end + + # The target resource identifier of this link. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#31 + def target_uri; end + + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#58 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#62 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#4 +class LanguageServer::Protocol::Interface::LogMessageParams + # @return [LogMessageParams] a new instance of LogMessageParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#5 + def initialize(type:, message:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#30 + def attributes; end + + # The actual message + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#26 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#36 + def to_json(*args); end + + # The message type. See {@link MessageType} + # + # @return [MessageType] + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#18 + def type; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#4 +class LanguageServer::Protocol::Interface::LogTraceParams + # @return [LogTraceParams] a new instance of LogTraceParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#5 + def initialize(message:, verbose: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#31 + def attributes; end + + # The message to be logged. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#18 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#37 + def to_json(*args); end + + # Additional information that can be computed if the `trace` configuration + # is set to `'verbose'` + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#27 + def verbose; end +end + +# A `MarkupContent` literal represents a string value which content is +# interpreted base on its kind flag. Currently the protocol supports +# `plaintext` and `markdown` as markup kinds. +# +# If the kind is `markdown` then the value can contain fenced code blocks like +# in GitHub issues. +# +# Here is an example how such a string can be constructed using +# JavaScript / TypeScript: +# ```typescript +# let markdown: MarkdownContent = { +# kind: MarkupKind.Markdown, +# value: [ +# '# Header', +# 'Some text', +# '```typescript', +# 'someCode();', +# '```' +# ].join('\n') +# }; +# ``` +# +# *Please Note* that clients might sanitize the return markdown. A client could +# decide to remove HTML from the markdown to avoid script execution. +# +# source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#30 +class LanguageServer::Protocol::Interface::MarkupContent + # @return [MarkupContent] a new instance of MarkupContent + # + # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#31 + def initialize(kind:, value:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#56 + def attributes; end + + # The type of the Markup + # + # @return [MarkupKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#44 + def kind; end + + # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#58 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#62 + def to_json(*args); end + + # The content itself + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#52 + def value; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/message.rb#4 +class LanguageServer::Protocol::Interface::Message + # @return [Message] a new instance of Message + # + # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#5 + def initialize(jsonrpc:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#18 + def attributes; end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#14 + def jsonrpc; end + + # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#24 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#4 +class LanguageServer::Protocol::Interface::MessageActionItem + # @return [MessageActionItem] a new instance of MessageActionItem + # + # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#5 + def initialize(title:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#21 + def attributes; end + + # A short title like 'Retry', 'Open Log' etc. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#17 + def title; end + + # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#27 + def to_json(*args); end +end + +# Moniker definition to match LSIF 0.5 moniker definition. +# +# source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#7 +class LanguageServer::Protocol::Interface::Moniker + # @return [Moniker] a new instance of Moniker + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#8 + def initialize(scheme:, identifier:, unique:, kind: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#52 + def attributes; end + + # The identifier of the moniker. The value is opaque in LSIF however + # schema owners are allowed to define the structure if they want. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#32 + def identifier; end + + # The moniker kind if known. + # + # @return [MonikerKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#48 + def kind; end + + # The scheme of the moniker. For example tsc or .Net + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#23 + def scheme; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#54 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#58 + def to_json(*args); end + + # The scope in which the moniker is unique + # + # @return [UniquenessLevel] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#40 + def unique; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::MonikerClientCapabilities + # @return [MonikerClientCapabilities] a new instance of MonikerClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#24 + def attributes; end + + # Whether implementation supports dynamic registration. If this is set to + # `true` the client supports the new `(TextDocumentRegistrationOptions & + # StaticRegistrationOptions)` return value for the corresponding server + # capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#20 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#4 +class LanguageServer::Protocol::Interface::MonikerOptions + # @return [MonikerOptions] a new instance of MonikerOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#4 +class LanguageServer::Protocol::Interface::MonikerParams + # @return [MonikerParams] a new instance of MonikerParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#45 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#4 +class LanguageServer::Protocol::Interface::MonikerRegistrationOptions + # @return [MonikerRegistrationOptions] a new instance of MonikerRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#24 + def work_done_progress; end +end + +# A notebook cell. +# +# A cell's document URI must be unique across ALL notebook +# cells and can therefore be used to uniquely identify a +# notebook cell or the cell's text document. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#11 +class LanguageServer::Protocol::Interface::NotebookCell + # @return [NotebookCell] a new instance of NotebookCell + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#12 + def initialize(kind:, document:, metadata: T.unsafe(nil), execution_summary: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#57 + def attributes; end + + # The URI of the cell's text document + # content. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#36 + def document; end + + # Additional execution summary information + # if supported by the client. + # + # @return [ExecutionSummary] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#53 + def execution_summary; end + + # The cell's kind + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#27 + def kind; end + + # Additional metadata stored with the cell. + # + # @return [LSPObject] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#44 + def metadata; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#59 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#63 + def to_json(*args); end +end + +# A change describing how to move a `NotebookCell` +# array from state S to S'. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#8 +class LanguageServer::Protocol::Interface::NotebookCellArrayChange + # @return [NotebookCellArrayChange] a new instance of NotebookCellArrayChange + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#9 + def initialize(start:, delete_count:, cells: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#43 + def attributes; end + + # The new cells, if any + # + # @return [NotebookCell[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#39 + def cells; end + + # The deleted cells + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#31 + def delete_count; end + + # The start offset of the cell that changed. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#23 + def start; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#45 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#49 + def to_json(*args); end +end + +# A notebook cell text document filter denotes a cell text +# document by different properties. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#8 +class LanguageServer::Protocol::Interface::NotebookCellTextDocumentFilter + # @return [NotebookCellTextDocumentFilter] a new instance of NotebookCellTextDocumentFilter + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#9 + def initialize(notebook:, language: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#40 + def attributes; end + + # A language id like `python`. + # + # Will be matched against the language id of the + # notebook cell document. '*' matches every language. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#36 + def language; end + + # A filter that matches against the notebook + # containing the notebook cell. If a string + # value is provided it matches against the + # notebook type. '*' matches every notebook. + # + # @return [string | NotebookDocumentFilter] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#25 + def notebook; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#46 + def to_json(*args); end +end + +# A notebook document. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#7 +class LanguageServer::Protocol::Interface::NotebookDocument + # @return [NotebookDocument] a new instance of NotebookDocument + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#8 + def initialize(uri:, notebook_type:, version:, cells:, metadata: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#62 + def attributes; end + + # The cells of a notebook. + # + # @return [NotebookCell[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#58 + def cells; end + + # Additional metadata stored with the notebook + # document. + # + # @return [LSPObject] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#50 + def metadata; end + + # The type of the notebook. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#32 + def notebook_type; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#64 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#68 + def to_json(*args); end + + # The notebook document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#24 + def uri; end + + # The version number of this document (it will increase after each + # change, including undo/redo). + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#41 + def version; end +end + +# A change event for a notebook document. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#7 +class LanguageServer::Protocol::Interface::NotebookDocumentChangeEvent + # @return [NotebookDocumentChangeEvent] a new instance of NotebookDocumentChangeEvent + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#8 + def initialize(metadata: T.unsafe(nil), cells: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#33 + def attributes; end + + # Changes to cells + # + # @return [{ structure?: { array: NotebookCellArrayChange; didOpen?: TextDocumentItem[]; didClose?: TextDocumentIdentifier[]; }; data?: NotebookCell[]; textContent?: { ...; }[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#29 + def cells; end + + # The changed meta data if any. + # + # @return [LSPObject] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#21 + def metadata; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#39 + def to_json(*args); end +end + +# Capabilities specific to the notebook document support. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::NotebookDocumentClientCapabilities + # @return [NotebookDocumentClientCapabilities] a new instance of NotebookDocumentClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#8 + def initialize(synchronization:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#24 + def attributes; end + + # Capabilities specific to notebook document synchronization + # + # @return [NotebookDocumentSyncClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#20 + def synchronization; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#30 + def to_json(*args); end +end + +# A notebook document filter denotes a notebook document by +# different properties. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#8 +class LanguageServer::Protocol::Interface::NotebookDocumentFilter + # @return [NotebookDocumentFilter] a new instance of NotebookDocumentFilter + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#9 + def initialize(notebook_type: T.unsafe(nil), scheme: T.unsafe(nil), pattern: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#67 + def attributes; end + + # The type of the enclosing notebook. + # + # --- OR --- + # + # The type of the enclosing notebook. + # + # --- OR --- + # + # The type of the enclosing notebook. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#31 + def notebook_type; end + + # A glob pattern. + # + # --- OR --- + # + # A glob pattern. + # + # --- OR --- + # + # A glob pattern. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#63 + def pattern; end + + # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. + # + # --- OR --- + # + # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. + # + # --- OR --- + # + # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#47 + def scheme; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#69 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#73 + def to_json(*args); end +end + +# A literal to identify a notebook document in the client. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#7 +class LanguageServer::Protocol::Interface::NotebookDocumentIdentifier + # @return [NotebookDocumentIdentifier] a new instance of NotebookDocumentIdentifier + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#8 + def initialize(uri:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#24 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#30 + def to_json(*args); end + + # The notebook document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#20 + def uri; end +end + +# Notebook specific client capabilities. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::NotebookDocumentSyncClientCapabilities + # @return [NotebookDocumentSyncClientCapabilities] a new instance of NotebookDocumentSyncClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#8 + def initialize(dynamic_registration: T.unsafe(nil), execution_summary_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#36 + def attributes; end + + # Whether implementation supports dynamic registration. If this is + # set to `true` the client supports the new + # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` + # return value for the corresponding server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#24 + def dynamic_registration; end + + # The client supports sending execution summary data per cell. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#32 + def execution_summary_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#38 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#42 + def to_json(*args); end +end + +# Options specific to a notebook plus its cells +# to be synced to the server. +# +# If a selector provides a notebook document +# filter but no cell selector all cells of a +# matching notebook document will be synced. +# +# If a selector provides no notebook document +# filter but only a cell selector all notebook +# documents that contain at least one matching +# cell will be synced. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#17 +class LanguageServer::Protocol::Interface::NotebookDocumentSyncOptions + # @return [NotebookDocumentSyncOptions] a new instance of NotebookDocumentSyncOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#18 + def initialize(notebook_selector:, save: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#44 + def attributes; end + + # The notebooks to be synced + # + # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#31 + def notebook_selector; end + + # Whether save notification should be forwarded to + # the server. Will only be honored if mode === `notebook`. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#40 + def save; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#50 + def to_json(*args); end +end + +# Registration options specific to a notebook. +# +# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#7 +class LanguageServer::Protocol::Interface::NotebookDocumentSyncRegistrationOptions + # @return [NotebookDocumentSyncRegistrationOptions] a new instance of NotebookDocumentSyncRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#8 + def initialize(notebook_selector:, save: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#44 + def attributes; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#40 + def id; end + + # The notebooks to be synced + # + # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#22 + def notebook_selector; end + + # Whether save notification should be forwarded to + # the server. Will only be honored if mode === `notebook`. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#31 + def save; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#50 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#4 +class LanguageServer::Protocol::Interface::NotificationMessage + # @return [NotificationMessage] a new instance of NotificationMessage + # + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#5 + def initialize(jsonrpc:, method:, params: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#36 + def attributes; end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#16 + def jsonrpc; end + + # The method to be invoked. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#24 + def method; end + + # The notification's params. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#32 + def params; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#38 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#42 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#4 +class LanguageServer::Protocol::Interface::OptionalVersionedTextDocumentIdentifier + # @return [OptionalVersionedTextDocumentIdentifier] a new instance of OptionalVersionedTextDocumentIdentifier + # + # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#5 + def initialize(uri:, version:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#38 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#44 + def to_json(*args); end + + # The text document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#18 + def uri; end + + # The version number of this document. If an optional versioned text document + # identifier is sent from the server to the client and the file is not + # open in the editor (the server has not received an open notification + # before) the server can send `null` to indicate that the version is + # known and the content on disk is the master (as specified with document + # content ownership). + # + # The version number of a document will increase after each change, + # including undo/redo. The number doesn't need to be consecutive. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#34 + def version; end +end + +# Represents a parameter of a callable-signature. A parameter can +# have a label and a doc-comment. +# +# source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#8 +class LanguageServer::Protocol::Interface::ParameterInformation + # @return [ParameterInformation] a new instance of ParameterInformation + # + # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#9 + def initialize(label:, documentation: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#44 + def attributes; end + + # The human-readable doc-comment of this parameter. Will be shown + # in the UI but can be omitted. + # + # @return [string | MarkupContent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#40 + def documentation; end + + # The label of this parameter information. + # + # Either a string or an inclusive start and exclusive end offsets within + # its containing signature label. (see SignatureInformation.label). The + # offsets are based on a UTF-16 string representation as `Position` and + # `Range` does. + # + # *Note*: a label of type string should be a substring of its containing + # signature label. Its intended use case is to highlight the parameter + # label part in the `SignatureInformation.label`. + # + # @return [string | [number, number]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#31 + def label; end + + # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#50 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#4 +class LanguageServer::Protocol::Interface::PartialResultParams + # @return [PartialResultParams] a new instance of PartialResultParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#5 + def initialize(partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#22 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#18 + def partial_result_token; end + + # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#24 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#28 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/position.rb#4 +class LanguageServer::Protocol::Interface::Position + # @return [Position] a new instance of Position + # + # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#5 + def initialize(line:, character:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#34 + def attributes; end + + # Character offset on a line in a document (zero-based). The meaning of this + # offset is determined by the negotiated `PositionEncodingKind`. + # + # If the character value is greater than the line length it defaults back + # to the line length. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#30 + def character; end + + # Line position in a document (zero-based). + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#18 + def line; end + + # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#40 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#4 +class LanguageServer::Protocol::Interface::PrepareRenameParams + # @return [PrepareRenameParams] a new instance of PrepareRenameParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#39 + def attributes; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#27 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#19 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#35 + def work_done_token; end +end + +# A previous result id in a workspace pull request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#7 +class LanguageServer::Protocol::Interface::PreviousResultId + # @return [PreviousResultId] a new instance of PreviousResultId + # + # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#8 + def initialize(uri:, value:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#34 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#40 + def to_json(*args); end + + # The URI for which the client knows a + # result id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#22 + def uri; end + + # The value of the previous result id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#30 + def value; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#4 +class LanguageServer::Protocol::Interface::ProgressParams + # @return [ProgressParams] a new instance of ProgressParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#5 + def initialize(token:, value:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#30 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#36 + def to_json(*args); end + + # The progress token provided by the client or server. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#18 + def token; end + + # The progress data. + # + # @return [T] + # + # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#26 + def value; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::PublishDiagnosticsClientCapabilities + # @return [PublishDiagnosticsClientCapabilities] a new instance of PublishDiagnosticsClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#5 + def initialize(related_information: T.unsafe(nil), tag_support: T.unsafe(nil), version_support: T.unsafe(nil), code_description_support: T.unsafe(nil), data_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#61 + def attributes; end + + # Client supports a codeDescription property + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#47 + def code_description_support; end + + # Whether code action supports the `data` property which is + # preserved between a `textDocument/publishDiagnostics` and + # `textDocument/codeAction` request. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#57 + def data_support; end + + # Whether the clients accepts diagnostics with related information. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#21 + def related_information; end + + # Client supports the tag property to provide meta data about a diagnostic. + # Clients supporting tags have to handle unknown tags gracefully. + # + # @return [{ valueSet: DiagnosticTag[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#30 + def tag_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#63 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#67 + def to_json(*args); end + + # Whether the client interprets the version property of the + # `textDocument/publishDiagnostics` notification's parameter. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#39 + def version_support; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#4 +class LanguageServer::Protocol::Interface::PublishDiagnosticsParams + # @return [PublishDiagnosticsParams] a new instance of PublishDiagnosticsParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#5 + def initialize(uri:, diagnostics:, version: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#40 + def attributes; end + + # An array of diagnostic information items. + # + # @return [Diagnostic[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#36 + def diagnostics; end + + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#46 + def to_json(*args); end + + # The URI for which diagnostic information is reported. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#19 + def uri; end + + # Optional the version number of the document the diagnostics are published + # for. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#28 + def version; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/range.rb#4 +class LanguageServer::Protocol::Interface::Range + # @return [Range] a new instance of Range + # + # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#5 + def initialize(start:, end:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#30 + def attributes; end + + # The range's end position. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#26 + def end; end + + # The range's start position. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#18 + def start; end + + # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::ReferenceClientCapabilities + # @return [ReferenceClientCapabilities] a new instance of ReferenceClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#21 + def attributes; end + + # Whether references supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#17 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#4 +class LanguageServer::Protocol::Interface::ReferenceContext + # @return [ReferenceContext] a new instance of ReferenceContext + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#5 + def initialize(include_declaration:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#21 + def attributes; end + + # Include the declaration of the current symbol. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#17 + def include_declaration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#4 +class LanguageServer::Protocol::Interface::ReferenceOptions + # @return [ReferenceOptions] a new instance of ReferenceOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#4 +class LanguageServer::Protocol::Interface::ReferenceParams + # @return [ReferenceParams] a new instance of ReferenceParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#5 + def initialize(text_document:, position:, context:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#55 + def attributes; end + + # @return [ReferenceContext] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#51 + def context; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#46 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#29 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#21 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#57 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#61 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#37 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#4 +class LanguageServer::Protocol::Interface::ReferenceRegistrationOptions + # @return [ReferenceRegistrationOptions] a new instance of ReferenceRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#28 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#19 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#24 + def work_done_progress; end +end + +# General parameters to register for a capability. +# +# source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#7 +class LanguageServer::Protocol::Interface::Registration + # @return [Registration] a new instance of Registration + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#8 + def initialize(id:, method:, register_options: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#43 + def attributes; end + + # The id used to register the request. The id can be used to deregister + # the request again. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#23 + def id; end + + # The method / capability to register for. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#31 + def method; end + + # Options necessary for the registration. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#39 + def register_options; end + + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#45 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#49 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#4 +class LanguageServer::Protocol::Interface::RegistrationParams + # @return [RegistrationParams] a new instance of RegistrationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#5 + def initialize(registrations:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#18 + def attributes; end + + # @return [Registration[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#14 + def registrations; end + + # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#24 + def to_json(*args); end +end + +# Client capabilities specific to regular expressions. +# +# source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::RegularExpressionsClientCapabilities + # @return [RegularExpressionsClientCapabilities] a new instance of RegularExpressionsClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#8 + def initialize(engine:, version: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#33 + def attributes; end + + # The engine's name. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#21 + def engine; end + + # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#39 + def to_json(*args); end + + # The engine's version. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#29 + def version; end +end + +# A full diagnostic report with a set of related documents. +# +# source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#7 +class LanguageServer::Protocol::Interface::RelatedFullDocumentDiagnosticReport + # @return [RelatedFullDocumentDiagnosticReport] a new instance of RelatedFullDocumentDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#8 + def initialize(kind:, items:, result_id: T.unsafe(nil), related_documents: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#57 + def attributes; end + + # The actual items. + # + # @return [Diagnostic[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#41 + def items; end + + # A full document diagnostic report. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#23 + def kind; end + + # Diagnostics of related documents. This information is useful + # in programming languages where code in a file A can generate + # diagnostics in a file B which A depends on. An example of + # such a language is C/C++ where marco definitions in a file + # a.cpp and result in errors in a header file b.hpp. + # + # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#53 + def related_documents; end + + # An optional result id. If provided it will + # be sent on the next diagnostic request for the + # same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#33 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#59 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#63 + def to_json(*args); end +end + +# An unchanged diagnostic report with a set of related documents. +# +# source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#7 +class LanguageServer::Protocol::Interface::RelatedUnchangedDocumentDiagnosticReport + # @return [RelatedUnchangedDocumentDiagnosticReport] a new instance of RelatedUnchangedDocumentDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#8 + def initialize(kind:, result_id:, related_documents: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#50 + def attributes; end + + # A document diagnostic report indicating + # no changes to the last result. A server can + # only return `unchanged` if result ids are + # provided. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#25 + def kind; end + + # Diagnostics of related documents. This information is useful + # in programming languages where code in a file A can generate + # diagnostics in a file B which A depends on. An example of + # such a language is C/C++ where marco definitions in a file + # a.cpp and result in errors in a header file b.hpp. + # + # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#46 + def related_documents; end + + # A result id which will be sent on the next + # diagnostic request for the same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#34 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#52 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#56 + def to_json(*args); end +end + +# A relative pattern is a helper to construct glob patterns that are matched +# relatively to a base URI. The common value for a `baseUri` is a workspace +# folder root, but it can be another absolute URI as well. +# +# source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#9 +class LanguageServer::Protocol::Interface::RelativePattern + # @return [RelativePattern] a new instance of RelativePattern + # + # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#10 + def initialize(base_uri:, pattern:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#36 + def attributes; end + + # A workspace folder or a base URI to which this pattern will be matched + # against relatively. + # + # @return [string | WorkspaceFolder] + # + # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#24 + def base_uri; end + + # The actual glob pattern; + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#32 + def pattern; end + + # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#38 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#42 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::RenameClientCapabilities + # @return [RenameClientCapabilities] a new instance of RenameClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), prepare_support: T.unsafe(nil), prepare_support_default_behavior: T.unsafe(nil), honors_change_annotations: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#57 + def attributes; end + + # Whether rename supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#20 + def dynamic_registration; end + + # Whether the client honors the change annotations in + # text edits and resource operations returned via the + # rename request's workspace edit by for example presenting + # the workspace edit in the user interface and asking + # for confirmation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#53 + def honors_change_annotations; end + + # Client supports testing for validity of rename operations + # before execution. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#29 + def prepare_support; end + + # Client supports the default behavior result + # (`{ defaultBehavior: boolean }`). + # + # The value indicates the default behavior used by the + # client. + # + # @return [1] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#41 + def prepare_support_default_behavior; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#59 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#63 + def to_json(*args); end +end + +# Rename file operation +# +# source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#7 +class LanguageServer::Protocol::Interface::RenameFile + # @return [RenameFile] a new instance of RenameFile + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#8 + def initialize(kind:, old_uri:, new_uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end + + # An optional annotation identifier describing the operation. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#56 + def annotation_id; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#60 + def attributes; end + + # A rename + # + # @return ["rename"] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#24 + def kind; end + + # The new location. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#40 + def new_uri; end + + # The old (existing) location. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#32 + def old_uri; end + + # Rename options. + # + # @return [RenameFileOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#48 + def options; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#62 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#66 + def to_json(*args); end +end + +# Rename file options +# +# source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#7 +class LanguageServer::Protocol::Interface::RenameFileOptions + # @return [RenameFileOptions] a new instance of RenameFileOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#8 + def initialize(overwrite: T.unsafe(nil), ignore_if_exists: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#33 + def attributes; end + + # Ignores if target exists. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#29 + def ignore_if_exists; end + + # Overwrite target if existing. Overwrite wins over `ignoreIfExists` + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#21 + def overwrite; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#39 + def to_json(*args); end +end + +# The parameters sent in notifications/requests for user-initiated renames +# of files. +# +# source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#8 +class LanguageServer::Protocol::Interface::RenameFilesParams + # @return [RenameFilesParams] a new instance of RenameFilesParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#9 + def initialize(files:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#26 + def attributes; end + + # An array of all files/folders renamed in this operation. When a folder + # is renamed, only the folder will be included, and not its children. + # + # @return [FileRename[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#22 + def files; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#28 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#32 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#4 +class LanguageServer::Protocol::Interface::RenameOptions + # @return [RenameOptions] a new instance of RenameOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), prepare_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#27 + def attributes; end + + # Renames should be checked and tested before being executed. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#23 + def prepare_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#29 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#33 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#15 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#4 +class LanguageServer::Protocol::Interface::RenameParams + # @return [RenameParams] a new instance of RenameParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#5 + def initialize(text_document:, position:, new_name:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#50 + def attributes; end + + # The new name of the symbol. If the given name is not valid the + # request must return a [ResponseError](#ResponseError) with an + # appropriate message set. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#46 + def new_name; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#52 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#56 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#4 +class LanguageServer::Protocol::Interface::RenameRegistrationOptions + # @return [RenameRegistrationOptions] a new instance of RenameRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), prepare_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#37 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#20 + def document_selector; end + + # Renames should be checked and tested before being executed. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#33 + def prepare_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#43 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#4 +class LanguageServer::Protocol::Interface::RequestMessage + # @return [RequestMessage] a new instance of RequestMessage + # + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#5 + def initialize(jsonrpc:, id:, method:, params: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#45 + def attributes; end + + # The request id. + # + # @return [string | number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#25 + def id; end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#17 + def jsonrpc; end + + # The method to be invoked. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#33 + def method; end + + # The method's params. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#41 + def params; end + + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#47 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#51 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#4 +class LanguageServer::Protocol::Interface::ResponseError + # @return [ResponseError] a new instance of ResponseError + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#5 + def initialize(code:, message:, data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#40 + def attributes; end + + # A number indicating the error type that occurred. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#19 + def code; end + + # A primitive or structured value that contains additional + # information about the error. Can be omitted. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#36 + def data; end + + # A string providing a short description of the error. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#27 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#46 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#4 +class LanguageServer::Protocol::Interface::ResponseMessage + # @return [ResponseMessage] a new instance of ResponseMessage + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#5 + def initialize(jsonrpc:, id:, result: T.unsafe(nil), error: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#46 + def attributes; end + + # The error object in case a request fails. + # + # @return [ResponseError] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#42 + def error; end + + # The request id. + # + # @return [string | number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#25 + def id; end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#17 + def jsonrpc; end + + # The result of a request. This member is REQUIRED on success. + # This member MUST NOT exist if there was an error invoking the method. + # + # @return [string | number | boolean | object] + # + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#34 + def result; end + + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#48 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#52 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#4 +class LanguageServer::Protocol::Interface::SaveOptions + # @return [SaveOptions] a new instance of SaveOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#5 + def initialize(include_text: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#21 + def attributes; end + + # The client is supposed to include the content on save. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#17 + def include_text; end + + # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#4 +class LanguageServer::Protocol::Interface::SelectionRange + # @return [SelectionRange] a new instance of SelectionRange + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#5 + def initialize(range:, parent: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#31 + def attributes; end + + # The parent selection range containing this range. Therefore + # `parent.range` must contain `this.range`. + # + # @return [SelectionRange] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#27 + def parent; end + + # The [range](#Range) of this selection range. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#18 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#37 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::SelectionRangeClientCapabilities + # @return [SelectionRangeClientCapabilities] a new instance of SelectionRangeClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#24 + def attributes; end + + # Whether implementation supports dynamic registration for selection range + # providers. If this is set to `true` the client supports the new + # `SelectionRangeRegistrationOptions` return value for the corresponding + # server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#20 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#4 +class LanguageServer::Protocol::Interface::SelectionRangeOptions + # @return [SelectionRangeOptions] a new instance of SelectionRangeOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#4 +class LanguageServer::Protocol::Interface::SelectionRangeParams + # @return [SelectionRangeParams] a new instance of SelectionRangeParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#5 + def initialize(text_document:, positions:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#29 + def partial_result_token; end + + # The positions inside the text document. + # + # @return [Position[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#45 + def positions; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#37 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#20 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#4 +class LanguageServer::Protocol::Interface::SelectionRangeRegistrationOptions + # @return [SelectionRangeRegistrationOptions] a new instance of SelectionRangeRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#25 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#16 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokens + # @return [SemanticTokens] a new instance of SemanticTokens + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#5 + def initialize(data:, result_id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#33 + def attributes; end + + # The actual tokens. + # + # @return [number[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#29 + def data; end + + # An optional result id. If provided and clients support delta updating + # the client will include the result id in the next semantic token request. + # A server can then instead of computing all semantic tokens again simply + # send a delta. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#21 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#39 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensClientCapabilities + # @return [SemanticTokensClientCapabilities] a new instance of SemanticTokensClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#5 + def initialize(requests:, token_types:, token_modifiers:, formats:, dynamic_registration: T.unsafe(nil), overlapping_token_support: T.unsafe(nil), multiline_token_support: T.unsafe(nil), server_cancel_support: T.unsafe(nil), augments_syntax_tokens: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#113 + def attributes; end + + # Whether the client uses semantic tokens to augment existing + # syntax tokens. If set to `true` client side created syntax + # tokens and semantic tokens are both used for colorization. If + # set to `false` the client only uses the returned semantic tokens + # for colorization. + # + # If the value is `undefined` then the client behavior is not + # specified. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#109 + def augments_syntax_tokens; end + + # Whether implementation supports dynamic registration. If this is set to + # `true` the client supports the new `(TextDocumentRegistrationOptions & + # StaticRegistrationOptions)` return value for the corresponding server + # capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#28 + def dynamic_registration; end + + # The formats the clients supports. + # + # @return ["relative"[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#67 + def formats; end + + # Whether the client supports tokens that can span multiple lines. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#83 + def multiline_token_support; end + + # Whether the client supports tokens that can overlap each other. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#75 + def overlapping_token_support; end + + # Which requests the client supports and might send to the server + # depending on the server's capability. Please note that clients might not + # show semantic tokens or degrade some of the user experience if a range + # or full request is advertised by the client but not provided by the + # server. If for example the client capability `requests.full` and + # `request.range` are both set to true but the server only provides a + # range provider the client might not render a minimap correctly or might + # even decide to not show any semantic tokens at all. + # + # @return [{ range?: boolean | {}; full?: boolean | { delta?: boolean; }; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#43 + def requests; end + + # Whether the client allows the server to actively cancel a + # semantic token request, e.g. supports returning + # ErrorCodes.ServerCancelled. If a server does the client + # needs to retrigger the request. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#94 + def server_cancel_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#115 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#119 + def to_json(*args); end + + # The token modifiers that the client supports. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#59 + def token_modifiers; end + + # The token types that the client supports. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#51 + def token_types; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensDelta + # @return [SemanticTokensDelta] a new instance of SemanticTokensDelta + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#5 + def initialize(edits:, result_id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#28 + def attributes; end + + # The semantic token edits to transform a previous result into a new + # result. + # + # @return [SemanticTokensEdit[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#24 + def edits; end + + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#15 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#34 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensDeltaParams + # @return [SemanticTokensDeltaParams] a new instance of SemanticTokensDeltaParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#5 + def initialize(text_document:, previous_result_id:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#50 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#29 + def partial_result_token; end + + # The result id of a previous response. The result Id can either point to + # a full response or a delta response depending on what was received last. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#46 + def previous_result_id; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#37 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#52 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#56 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#20 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensDeltaPartialResult + # @return [SemanticTokensDeltaPartialResult] a new instance of SemanticTokensDeltaPartialResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#5 + def initialize(edits:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#18 + def attributes; end + + # @return [SemanticTokensEdit[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#14 + def edits; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#24 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensEdit + # @return [SemanticTokensEdit] a new instance of SemanticTokensEdit + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#5 + def initialize(start:, delete_count:, data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#39 + def attributes; end + + # The elements to insert. + # + # @return [number[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#35 + def data; end + + # The count of elements to remove. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#27 + def delete_count; end + + # The start offset of the edit. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#19 + def start; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#45 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensLegend + # @return [SemanticTokensLegend] a new instance of SemanticTokensLegend + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#5 + def initialize(token_types:, token_modifiers:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#30 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#36 + def to_json(*args); end + + # The token modifiers a server uses. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#26 + def token_modifiers; end + + # The token types a server uses. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#18 + def token_types; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensOptions + # @return [SemanticTokensOptions] a new instance of SemanticTokensOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#5 + def initialize(legend:, work_done_progress: T.unsafe(nil), range: T.unsafe(nil), full: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#46 + def attributes; end + + # Server supports providing semantic tokens for a full document. + # + # @return [boolean | { delta?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#42 + def full; end + + # The legend used by the server + # + # @return [SemanticTokensLegend] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#25 + def legend; end + + # Server supports providing semantic tokens for a specific range + # of a document. + # + # @return [boolean | {}] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#34 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#48 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#52 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#17 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensParams + # @return [SemanticTokensParams] a new instance of SemanticTokensParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#5 + def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#40 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#28 + def partial_result_token; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#36 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#42 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#46 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensPartialResult + # @return [SemanticTokensPartialResult] a new instance of SemanticTokensPartialResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#5 + def initialize(data:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#18 + def attributes; end + + # @return [number[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#14 + def data; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#24 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensRangeParams + # @return [SemanticTokensRangeParams] a new instance of SemanticTokensRangeParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#5 + def initialize(text_document:, range:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#29 + def partial_result_token; end + + # The range the semantic tokens are requested for. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#45 + def range; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#37 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#20 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensRegistrationOptions + # @return [SemanticTokensRegistrationOptions] a new instance of SemanticTokensRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#5 + def initialize(document_selector:, legend:, work_done_progress: T.unsafe(nil), range: T.unsafe(nil), full: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#66 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#23 + def document_selector; end + + # Server supports providing semantic tokens for a full document. + # + # @return [boolean | { delta?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#53 + def full; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#62 + def id; end + + # The legend used by the server + # + # @return [SemanticTokensLegend] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#36 + def legend; end + + # Server supports providing semantic tokens for a specific range + # of a document. + # + # @return [boolean | {}] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#45 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#68 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#72 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#28 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::SemanticTokensWorkspaceClientCapabilities + # @return [SemanticTokensWorkspaceClientCapabilities] a new instance of SemanticTokensWorkspaceClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#5 + def initialize(refresh_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#27 + def attributes; end + + # Whether the client implementation supports a refresh request sent from + # the server to the client. + # + # Note that this event is global and will force the client to refresh all + # semantic tokens currently shown. It should be used with absolute care + # and is useful for situation where a server for example detect a project + # wide change that requires such a calculation. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#23 + def refresh_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#29 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#33 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#4 +class LanguageServer::Protocol::Interface::ServerCapabilities + # @return [ServerCapabilities] a new instance of ServerCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#5 + def initialize(position_encoding: T.unsafe(nil), text_document_sync: T.unsafe(nil), notebook_document_sync: T.unsafe(nil), completion_provider: T.unsafe(nil), hover_provider: T.unsafe(nil), signature_help_provider: T.unsafe(nil), declaration_provider: T.unsafe(nil), definition_provider: T.unsafe(nil), type_definition_provider: T.unsafe(nil), implementation_provider: T.unsafe(nil), references_provider: T.unsafe(nil), document_highlight_provider: T.unsafe(nil), document_symbol_provider: T.unsafe(nil), code_action_provider: T.unsafe(nil), code_lens_provider: T.unsafe(nil), document_link_provider: T.unsafe(nil), color_provider: T.unsafe(nil), document_formatting_provider: T.unsafe(nil), document_range_formatting_provider: T.unsafe(nil), document_on_type_formatting_provider: T.unsafe(nil), rename_provider: T.unsafe(nil), folding_range_provider: T.unsafe(nil), execute_command_provider: T.unsafe(nil), selection_range_provider: T.unsafe(nil), linked_editing_range_provider: T.unsafe(nil), call_hierarchy_provider: T.unsafe(nil), semantic_tokens_provider: T.unsafe(nil), moniker_provider: T.unsafe(nil), type_hierarchy_provider: T.unsafe(nil), inline_value_provider: T.unsafe(nil), inlay_hint_provider: T.unsafe(nil), diagnostic_provider: T.unsafe(nil), workspace_symbol_provider: T.unsafe(nil), workspace: T.unsafe(nil), experimental: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#340 + def attributes; end + + # The server provides call hierarchy support. + # + # @return [boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#264 + def call_hierarchy_provider; end + + # The server provides code actions. The `CodeActionOptions` return type is + # only valid if the client signals code action literal support via the + # property `textDocument.codeAction.codeActionLiteralSupport`. + # + # @return [boolean | CodeActionOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#166 + def code_action_provider; end + + # The server provides code lens. + # + # @return [CodeLensOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#174 + def code_lens_provider; end + + # The server provides color provider support. + # + # @return [boolean | DocumentColorOptions | DocumentColorRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#190 + def color_provider; end + + # The server provides completion support. + # + # @return [CompletionOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#84 + def completion_provider; end + + # The server provides go to declaration support. + # + # @return [boolean | DeclarationOptions | DeclarationRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#108 + def declaration_provider; end + + # The server provides goto definition support. + # + # @return [boolean | DefinitionOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#116 + def definition_provider; end + + # The server has support for pull model diagnostics. + # + # @return [DiagnosticOptions | DiagnosticRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#312 + def diagnostic_provider; end + + # The server provides document formatting. + # + # @return [boolean | DocumentFormattingOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#198 + def document_formatting_provider; end + + # The server provides document highlight support. + # + # @return [boolean | DocumentHighlightOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#148 + def document_highlight_provider; end + + # The server provides document link support. + # + # @return [DocumentLinkOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#182 + def document_link_provider; end + + # The server provides document formatting on typing. + # + # @return [DocumentOnTypeFormattingOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#214 + def document_on_type_formatting_provider; end + + # The server provides document range formatting. + # + # @return [boolean | DocumentRangeFormattingOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#206 + def document_range_formatting_provider; end + + # The server provides document symbol support. + # + # @return [boolean | DocumentSymbolOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#156 + def document_symbol_provider; end + + # The server provides execute command support. + # + # @return [ExecuteCommandOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#240 + def execute_command_provider; end + + # Experimental server capabilities. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#336 + def experimental; end + + # The server provides folding provider support. + # + # @return [boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#232 + def folding_range_provider; end + + # The server provides hover support. + # + # @return [boolean | HoverOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#92 + def hover_provider; end + + # The server provides goto implementation support. + # + # @return [boolean | ImplementationOptions | ImplementationRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#132 + def implementation_provider; end + + # The server provides inlay hints. + # + # @return [boolean | InlayHintOptions | InlayHintRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#304 + def inlay_hint_provider; end + + # The server provides inline values. + # + # @return [boolean | InlineValueOptions | InlineValueRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#296 + def inline_value_provider; end + + # The server provides linked editing range support. + # + # @return [boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#256 + def linked_editing_range_provider; end + + # Whether server provides moniker support. + # + # @return [boolean | MonikerOptions | MonikerRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#280 + def moniker_provider; end + + # Defines how notebook documents are synced. + # + # @return [NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#76 + def notebook_document_sync; end + + # The position encoding the server picked from the encodings offered + # by the client via the client capability `general.positionEncodings`. + # + # If the client didn't provide any position encodings the only valid + # value that a server can return is 'utf-16'. + # + # If omitted it defaults to 'utf-16'. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#57 + def position_encoding; end + + # The server provides find references support. + # + # @return [boolean | ReferenceOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#140 + def references_provider; end + + # The server provides rename support. RenameOptions may only be + # specified if the client states that it supports + # `prepareSupport` in its initial `initialize` request. + # + # @return [boolean | RenameOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#224 + def rename_provider; end + + # The server provides selection range support. + # + # @return [boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#248 + def selection_range_provider; end + + # The server provides semantic tokens support. + # + # @return [SemanticTokensOptions | SemanticTokensRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#272 + def semantic_tokens_provider; end + + # The server provides signature help support. + # + # @return [SignatureHelpOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#100 + def signature_help_provider; end + + # Defines how text documents are synced. Is either a detailed structure + # defining each notification or for backwards compatibility the + # TextDocumentSyncKind number. If omitted it defaults to + # `TextDocumentSyncKind.None`. + # + # @return [TextDocumentSyncOptions | TextDocumentSyncKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#68 + def text_document_sync; end + + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#342 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#346 + def to_json(*args); end + + # The server provides goto type definition support. + # + # @return [boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#124 + def type_definition_provider; end + + # The server provides type hierarchy support. + # + # @return [boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#288 + def type_hierarchy_provider; end + + # Workspace specific server capabilities + # + # @return [{ workspaceFolders?: WorkspaceFoldersServerCapabilities; fileOperations?: { didCreate?: FileOperationRegistrationOptions; ... 4 more ...; willDelete?: FileOperationRegistrationOptions; }; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#328 + def workspace; end + + # The server provides workspace symbol support. + # + # @return [boolean | WorkspaceSymbolOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#320 + def workspace_symbol_provider; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#4 +class LanguageServer::Protocol::Interface::SetTraceParams + # @return [SetTraceParams] a new instance of SetTraceParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#5 + def initialize(value:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#21 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#27 + def to_json(*args); end + + # The new value that should be assigned to the trace setting. + # + # @return [TraceValue] + # + # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#17 + def value; end +end + +# Client capabilities for the show document request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::ShowDocumentClientCapabilities + # @return [ShowDocumentClientCapabilities] a new instance of ShowDocumentClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#8 + def initialize(support:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#25 + def attributes; end + + # The client has support for the show document + # request. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#21 + def support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#27 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#31 + def to_json(*args); end +end + +# Params to show a resource. +# +# source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#7 +class LanguageServer::Protocol::Interface::ShowDocumentParams + # @return [ShowDocumentParams] a new instance of ShowDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#8 + def initialize(uri:, external: T.unsafe(nil), take_focus: T.unsafe(nil), selection: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#59 + def attributes; end + + # Indicates to show the resource in an external program. + # To show, for example, `https://code.visualstudio.com/` + # in the default WEB browser set `external` to `true`. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#33 + def external; end + + # An optional selection range if the document is a text + # document. Clients might ignore the property if an + # external program is started or the file is not a text + # file. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#55 + def selection; end + + # An optional property to indicate whether the editor + # showing the document should take focus or not. + # Clients might ignore this property if an external + # program is started. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#44 + def take_focus; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#61 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#65 + def to_json(*args); end + + # The uri to show. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#23 + def uri; end +end + +# The result of an show document request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#7 +class LanguageServer::Protocol::Interface::ShowDocumentResult + # @return [ShowDocumentResult] a new instance of ShowDocumentResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#8 + def initialize(success:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#24 + def attributes; end + + # A boolean indicating if the show was successful. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#20 + def success; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#4 +class LanguageServer::Protocol::Interface::ShowMessageParams + # @return [ShowMessageParams] a new instance of ShowMessageParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#5 + def initialize(type:, message:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#30 + def attributes; end + + # The actual message. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#26 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#36 + def to_json(*args); end + + # The message type. See {@link MessageType}. + # + # @return [MessageType] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#18 + def type; end +end + +# Show message request client capabilities +# +# source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::ShowMessageRequestClientCapabilities + # @return [ShowMessageRequestClientCapabilities] a new instance of ShowMessageRequestClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#8 + def initialize(message_action_item: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#24 + def attributes; end + + # Capabilities specific to the `MessageActionItem` type. + # + # @return [{ additionalPropertiesSupport?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#20 + def message_action_item; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#26 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#30 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#4 +class LanguageServer::Protocol::Interface::ShowMessageRequestParams + # @return [ShowMessageRequestParams] a new instance of ShowMessageRequestParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#5 + def initialize(type:, message:, actions: T.unsafe(nil)); end + + # The message action items to present. + # + # @return [MessageActionItem[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#35 + def actions; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#39 + def attributes; end + + # The actual message + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#27 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#45 + def to_json(*args); end + + # The message type. See {@link MessageType} + # + # @return [MessageType] + # + # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#19 + def type; end +end + +# Signature help represents the signature of something +# callable. There can be multiple signature but only one +# active and only one active parameter. +# +# source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#9 +class LanguageServer::Protocol::Interface::SignatureHelp + # @return [SignatureHelp] a new instance of SignatureHelp + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#10 + def initialize(signatures:, active_signature: T.unsafe(nil), active_parameter: T.unsafe(nil)); end + + # The active parameter of the active signature. If omitted or the value + # lies outside the range of `signatures[activeSignature].parameters` + # defaults to 0 if the active signature has parameters. If + # the active signature has no parameters it is ignored. + # In future version of the protocol this property might become + # mandatory to better express the active parameter if the + # active signature does have any. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#55 + def active_parameter; end + + # The active signature. If omitted or the value lies outside the + # range of `signatures` the value defaults to zero or is ignore if + # the `SignatureHelp` as no signatures. + # + # Whenever possible implementors should make an active decision about + # the active signature and shouldn't rely on a default value. + # + # In future version of the protocol this property might become + # mandatory to better express this. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#41 + def active_signature; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#59 + def attributes; end + + # One or more signatures. If no signatures are available the signature help + # request should return `null`. + # + # @return [SignatureInformation[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#25 + def signatures; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#61 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#65 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::SignatureHelpClientCapabilities + # @return [SignatureHelpClientCapabilities] a new instance of SignatureHelpClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), signature_information: T.unsafe(nil), context_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#43 + def attributes; end + + # The client supports to send additional context information for a + # `textDocument/signatureHelp` request. A client that opts into + # contextSupport will also support the `retriggerCharacters` on + # `SignatureHelpOptions`. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#39 + def context_support; end + + # Whether signature help supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#19 + def dynamic_registration; end + + # The client supports the following `SignatureInformation` + # specific properties. + # + # @return [{ documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#28 + def signature_information; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#45 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#49 + def to_json(*args); end +end + +# Additional information about the context in which a signature help request +# was triggered. +# +# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#8 +class LanguageServer::Protocol::Interface::SignatureHelpContext + # @return [SignatureHelpContext] a new instance of SignatureHelpContext + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#9 + def initialize(trigger_kind:, is_retrigger:, trigger_character: T.unsafe(nil), active_signature_help: T.unsafe(nil)); end + + # The currently active `SignatureHelp`. + # + # The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field + # updated based on the user navigating through available signatures. + # + # @return [SignatureHelp] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#58 + def active_signature_help; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#62 + def attributes; end + + # `true` if signature help was already showing when it was triggered. + # + # Retriggers occur when the signature help is already active and can be + # caused by actions such as typing a trigger character, a cursor move, or + # document content changes. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#47 + def is_retrigger; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#64 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#68 + def to_json(*args); end + + # Character that caused signature help to be triggered. + # + # This is undefined when triggerKind !== + # SignatureHelpTriggerKind.TriggerCharacter + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#35 + def trigger_character; end + + # Action that caused signature help to be triggered. + # + # @return [SignatureHelpTriggerKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#24 + def trigger_kind; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#4 +class LanguageServer::Protocol::Interface::SignatureHelpOptions + # @return [SignatureHelpOptions] a new instance of SignatureHelpOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), retrigger_characters: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#41 + def attributes; end + + # List of characters that re-trigger signature help. + # + # These trigger characters are only active when signature help is already + # showing. All trigger characters are also counted as re-trigger + # characters. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#37 + def retrigger_characters; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#43 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#47 + def to_json(*args); end + + # The characters that trigger signature help + # automatically. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#25 + def trigger_characters; end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#16 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#4 +class LanguageServer::Protocol::Interface::SignatureHelpParams + # @return [SignatureHelpParams] a new instance of SignatureHelpParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), context: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#50 + def attributes; end + + # The signature help context. This is only available if the client + # specifies to send this using the client capability + # `textDocument.signatureHelp.contextSupport === true` + # + # @return [SignatureHelpContext] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#46 + def context; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#52 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#56 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#4 +class LanguageServer::Protocol::Interface::SignatureHelpRegistrationOptions + # @return [SignatureHelpRegistrationOptions] a new instance of SignatureHelpRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), retrigger_characters: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#51 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#21 + def document_selector; end + + # List of characters that re-trigger signature help. + # + # These trigger characters are only active when signature help is already + # showing. All trigger characters are also counted as re-trigger + # characters. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#47 + def retrigger_characters; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#53 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#57 + def to_json(*args); end + + # The characters that trigger signature help + # automatically. + # + # @return [string[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#35 + def trigger_characters; end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#26 + def work_done_progress; end +end + +# Represents the signature of something callable. A signature +# can have a label, like a function-name, a doc-comment, and +# a set of parameters. +# +# source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#9 +class LanguageServer::Protocol::Interface::SignatureInformation + # @return [SignatureInformation] a new instance of SignatureInformation + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#10 + def initialize(label:, documentation: T.unsafe(nil), parameters: T.unsafe(nil), active_parameter: T.unsafe(nil)); end + + # The index of the active parameter. + # + # If provided, this is used in place of `SignatureHelp.activeParameter`. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#53 + def active_parameter; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#57 + def attributes; end + + # The human-readable doc-comment of this signature. Will be shown + # in the UI but can be omitted. + # + # @return [string | MarkupContent] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#35 + def documentation; end + + # The label of this signature. Will be shown in + # the UI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#26 + def label; end + + # The parameters of this signature. + # + # @return [ParameterInformation[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#43 + def parameters; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#59 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#63 + def to_json(*args); end +end + +# Static registration options to be returned in the initialize request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#7 +class LanguageServer::Protocol::Interface::StaticRegistrationOptions + # @return [StaticRegistrationOptions] a new instance of StaticRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#8 + def initialize(id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#25 + def attributes; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#21 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#27 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#31 + def to_json(*args); end +end + +# Represents information about programming constructs like variables, classes, +# interfaces etc. +# +# source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#8 +class LanguageServer::Protocol::Interface::SymbolInformation + # @return [SymbolInformation] a new instance of SymbolInformation + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#9 + def initialize(name:, kind:, location:, tags: T.unsafe(nil), deprecated: T.unsafe(nil), container_name: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#81 + def attributes; end + + # The name of the symbol containing this symbol. This information is for + # user interface purposes (e.g. to render a qualifier in the user interface + # if necessary). It can't be used to re-infer a hierarchy for the document + # symbols. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#77 + def container_name; end + + # Indicates if this symbol is deprecated. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#50 + def deprecated; end + + # The kind of this symbol. + # + # @return [SymbolKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#34 + def kind; end + + # The location of this symbol. The location's range is used by a tool + # to reveal the location in the editor. If the symbol is selected in the + # tool the range's start information is used to position the cursor. So + # the range usually spans more then the actual symbol's name and does + # normally include things like visibility modifiers. + # + # The range doesn't have to denote a node range in the sense of an abstract + # syntax tree. It can therefore not be used to re-construct a hierarchy of + # the symbols. + # + # @return [Location] + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#66 + def location; end + + # The name of this symbol. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#26 + def name; end + + # Tags for this symbol. + # + # @return [1[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#42 + def tags; end + + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#83 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#87 + def to_json(*args); end +end + +# Describe options to be used when registering for text document change events. +# +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#7 +class LanguageServer::Protocol::Interface::TextDocumentChangeRegistrationOptions + # @return [TextDocumentChangeRegistrationOptions] a new instance of TextDocumentChangeRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#8 + def initialize(document_selector:, sync_kind:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#35 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#22 + def document_selector; end + + # How documents are synced to the server. See TextDocumentSyncKind.Full + # and TextDocumentSyncKind.Incremental. + # + # @return [TextDocumentSyncKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#31 + def sync_kind; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#37 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#41 + def to_json(*args); end +end + +# Text document specific client capabilities. +# +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#7 +class LanguageServer::Protocol::Interface::TextDocumentClientCapabilities + # @return [TextDocumentClientCapabilities] a new instance of TextDocumentClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#8 + def initialize(synchronization: T.unsafe(nil), completion: T.unsafe(nil), hover: T.unsafe(nil), signature_help: T.unsafe(nil), declaration: T.unsafe(nil), definition: T.unsafe(nil), type_definition: T.unsafe(nil), implementation: T.unsafe(nil), references: T.unsafe(nil), document_highlight: T.unsafe(nil), document_symbol: T.unsafe(nil), code_action: T.unsafe(nil), code_lens: T.unsafe(nil), document_link: T.unsafe(nil), color_provider: T.unsafe(nil), formatting: T.unsafe(nil), range_formatting: T.unsafe(nil), on_type_formatting: T.unsafe(nil), rename: T.unsafe(nil), publish_diagnostics: T.unsafe(nil), folding_range: T.unsafe(nil), selection_range: T.unsafe(nil), linked_editing_range: T.unsafe(nil), call_hierarchy: T.unsafe(nil), semantic_tokens: T.unsafe(nil), moniker: T.unsafe(nil), type_hierarchy: T.unsafe(nil), inline_value: T.unsafe(nil), inlay_hint: T.unsafe(nil), diagnostic: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#285 + def attributes; end + + # Capabilities specific to the various call hierarchy requests. + # + # @return [CallHierarchyClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#233 + def call_hierarchy; end + + # Capabilities specific to the `textDocument/codeAction` request. + # + # @return [CodeActionClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#134 + def code_action; end + + # Capabilities specific to the `textDocument/codeLens` request. + # + # @return [CodeLensClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#142 + def code_lens; end + + # Capabilities specific to the `textDocument/documentColor` and the + # `textDocument/colorPresentation` request. + # + # @return [DocumentColorClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#159 + def color_provider; end + + # Capabilities specific to the `textDocument/completion` request. + # + # @return [CompletionClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#54 + def completion; end + + # Capabilities specific to the `textDocument/declaration` request. + # + # @return [DeclarationClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#78 + def declaration; end + + # Capabilities specific to the `textDocument/definition` request. + # + # @return [DefinitionClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#86 + def definition; end + + # Capabilities specific to the diagnostic pull model. + # + # @return [DiagnosticClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#281 + def diagnostic; end + + # Capabilities specific to the `textDocument/documentHighlight` request. + # + # @return [DocumentHighlightClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#118 + def document_highlight; end + + # Capabilities specific to the `textDocument/documentLink` request. + # + # @return [DocumentLinkClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#150 + def document_link; end + + # Capabilities specific to the `textDocument/documentSymbol` request. + # + # @return [DocumentSymbolClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#126 + def document_symbol; end + + # Capabilities specific to the `textDocument/foldingRange` request. + # + # @return [FoldingRangeClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#209 + def folding_range; end + + # Capabilities specific to the `textDocument/formatting` request. + # + # @return [DocumentFormattingClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#167 + def formatting; end + + # Capabilities specific to the `textDocument/hover` request. + # + # @return [HoverClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#62 + def hover; end + + # Capabilities specific to the `textDocument/implementation` request. + # + # @return [ImplementationClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#102 + def implementation; end + + # Capabilities specific to the `textDocument/inlayHint` request. + # + # @return [InlayHintClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#273 + def inlay_hint; end + + # Capabilities specific to the `textDocument/inlineValue` request. + # + # @return [InlineValueClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#265 + def inline_value; end + + # Capabilities specific to the `textDocument/linkedEditingRange` request. + # + # @return [LinkedEditingRangeClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#225 + def linked_editing_range; end + + # Capabilities specific to the `textDocument/moniker` request. + # + # @return [MonikerClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#249 + def moniker; end + + # request. + # Capabilities specific to the `textDocument/onTypeFormatting` request. + # + # @return [DocumentOnTypeFormattingClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#184 + def on_type_formatting; end + + # Capabilities specific to the `textDocument/publishDiagnostics` + # notification. + # + # @return [PublishDiagnosticsClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#201 + def publish_diagnostics; end + + # Capabilities specific to the `textDocument/rangeFormatting` request. + # + # @return [DocumentRangeFormattingClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#175 + def range_formatting; end + + # Capabilities specific to the `textDocument/references` request. + # + # @return [ReferenceClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#110 + def references; end + + # Capabilities specific to the `textDocument/rename` request. + # + # @return [RenameClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#192 + def rename; end + + # Capabilities specific to the `textDocument/selectionRange` request. + # + # @return [SelectionRangeClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#217 + def selection_range; end + + # Capabilities specific to the various semantic token requests. + # + # @return [SemanticTokensClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#241 + def semantic_tokens; end + + # Capabilities specific to the `textDocument/signatureHelp` request. + # + # @return [SignatureHelpClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#70 + def signature_help; end + + # @return [TextDocumentSyncClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#46 + def synchronization; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#287 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#291 + def to_json(*args); end + + # Capabilities specific to the `textDocument/typeDefinition` request. + # + # @return [TypeDefinitionClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#94 + def type_definition; end + + # Capabilities specific to the various type hierarchy requests. + # + # @return [TypeHierarchyClientCapabilities] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#257 + def type_hierarchy; end +end + +# An event describing a change to a text document. If only a text is provided +# it is considered to be the full content of the document. +# +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#8 +class LanguageServer::Protocol::Interface::TextDocumentContentChangeEvent + # @return [TextDocumentContentChangeEvent] a new instance of TextDocumentContentChangeEvent + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#9 + def initialize(text:, range: T.unsafe(nil), range_length: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#47 + def attributes; end + + # The range of the document that changed. + # + # @return [Range, nil] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#23 + def range; end + + # The optional length of the range that got replaced. + # + # @return [number, nil] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#31 + def range_length; end + + # The new text for the provided range. + # + # --- OR --- + # + # The new text of the whole document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#43 + def text; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#49 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#53 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentEdit + # @return [TextDocumentEdit] a new instance of TextDocumentEdit + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#5 + def initialize(text_document:, edits:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#30 + def attributes; end + + # The edits to be applied. + # + # @return [(TextEdit | AnnotatedTextEdit)[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#26 + def edits; end + + # The text document to change. + # + # @return [OptionalVersionedTextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#18 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#36 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentIdentifier + # @return [TextDocumentIdentifier] a new instance of TextDocumentIdentifier + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#5 + def initialize(uri:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#21 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#27 + def to_json(*args); end + + # The text document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#17 + def uri; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentItem + # @return [TextDocumentItem] a new instance of TextDocumentItem + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#5 + def initialize(uri:, language_id:, version:, text:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#49 + def attributes; end + + # The text document's language identifier. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#28 + def language_id; end + + # The content of the opened text document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#45 + def text; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#55 + def to_json(*args); end + + # The text document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#20 + def uri; end + + # The version number of this document (it will increase after each + # change, including undo/redo). + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#37 + def version; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentPositionParams + # @return [TextDocumentPositionParams] a new instance of TextDocumentPositionParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#5 + def initialize(text_document:, position:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#30 + def attributes; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#26 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#18 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#32 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#36 + def to_json(*args); end +end + +# General text document registration options. +# +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#7 +class LanguageServer::Protocol::Interface::TextDocumentRegistrationOptions + # @return [TextDocumentRegistrationOptions] a new instance of TextDocumentRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#8 + def initialize(document_selector:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#25 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#21 + def document_selector; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#27 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#31 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentSaveRegistrationOptions + # @return [TextDocumentSaveRegistrationOptions] a new instance of TextDocumentSaveRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#5 + def initialize(document_selector:, include_text: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#31 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#19 + def document_selector; end + + # The client is supposed to include the content on save. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#27 + def include_text; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#37 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentSyncClientCapabilities + # @return [TextDocumentSyncClientCapabilities] a new instance of TextDocumentSyncClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), will_save: T.unsafe(nil), will_save_wait_until: T.unsafe(nil), did_save: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#50 + def attributes; end + + # The client supports did save notifications. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#46 + def did_save; end + + # Whether text document synchronization supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#20 + def dynamic_registration; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#52 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#56 + def to_json(*args); end + + # The client supports sending will save notifications. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#28 + def will_save; end + + # The client supports sending a will save request and + # waits for a response providing text edits which will + # be applied to the document before it is saved. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#38 + def will_save_wait_until; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#4 +class LanguageServer::Protocol::Interface::TextDocumentSyncOptions + # @return [TextDocumentSyncOptions] a new instance of TextDocumentSyncOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#5 + def initialize(open_close: T.unsafe(nil), change: T.unsafe(nil), will_save: T.unsafe(nil), will_save_wait_until: T.unsafe(nil), save: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#66 + def attributes; end + + # Change notifications are sent to the server. See + # TextDocumentSyncKind.None, TextDocumentSyncKind.Full and + # TextDocumentSyncKind.Incremental. If omitted it defaults to + # TextDocumentSyncKind.None. + # + # @return [TextDocumentSyncKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#35 + def change; end + + # Open and close notifications are sent to the server. If omitted open + # close notifications should not be sent. + # Open and close notifications are sent to the server. If omitted open + # close notification should not be sent. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#24 + def open_close; end + + # If present save notifications are sent to the server. If omitted the + # notification should not be sent. + # + # @return [boolean | SaveOptions] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#62 + def save; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#68 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#72 + def to_json(*args); end + + # If present will save notifications are sent to the server. If omitted + # the notification should not be sent. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#44 + def will_save; end + + # If present will save wait until requests are sent to the server. If + # omitted the request should not be sent. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#53 + def will_save_wait_until; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#4 +class LanguageServer::Protocol::Interface::TextEdit + # @return [TextEdit] a new instance of TextEdit + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#5 + def initialize(range:, new_text:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#32 + def attributes; end + + # The string to be inserted. For delete operations use an + # empty string. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#28 + def new_text; end + + # The range of the text document to be manipulated. To insert + # text into a document create a range where start === end. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#19 + def range; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#38 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::TypeDefinitionClientCapabilities + # @return [TypeDefinitionClientCapabilities] a new instance of TypeDefinitionClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#32 + def attributes; end + + # Whether implementation supports dynamic registration. If this is set to + # `true` the client supports the new `TypeDefinitionRegistrationOptions` + # return value for the corresponding server capability as well. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#20 + def dynamic_registration; end + + # The client supports additional metadata in the form of definition links. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#28 + def link_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#34 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#38 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#4 +class LanguageServer::Protocol::Interface::TypeDefinitionOptions + # @return [TypeDefinitionOptions] a new instance of TypeDefinitionOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#4 +class LanguageServer::Protocol::Interface::TypeDefinitionParams + # @return [TypeDefinitionParams] a new instance of TypeDefinitionParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#49 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#45 + def partial_result_token; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#28 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#20 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#51 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#55 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#36 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#4 +class LanguageServer::Protocol::Interface::TypeDefinitionRegistrationOptions + # @return [TypeDefinitionRegistrationOptions] a new instance of TypeDefinitionRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#4 +class LanguageServer::Protocol::Interface::TypeHierarchyItem + # @return [TypeHierarchyItem] a new instance of TypeHierarchyItem + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#5 + def initialize(name:, kind:, uri:, range:, selection_range:, tags: T.unsafe(nil), detail: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#90 + def attributes; end + + # A data entry field that is preserved between a type hierarchy prepare and + # supertypes or subtypes requests. It could also be used to identify the + # type hierarchy in the server, helping improve the performance on + # resolving supertypes and subtypes. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#86 + def data; end + + # More detail for this item, e.g. the signature of a function. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#48 + def detail; end + + # The kind of this item. + # + # @return [SymbolKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#32 + def kind; end + + # The name of this item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#24 + def name; end + + # The range enclosing this symbol not including leading/trailing whitespace + # but everything else, e.g. comments and code. + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#65 + def range; end + + # The range that should be selected and revealed when this symbol is being + # picked, e.g. the name of a function. Must be contained by the + # [`range`](#TypeHierarchyItem.range). + # + # @return [Range] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#75 + def selection_range; end + + # Tags for this item. + # + # @return [1[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#40 + def tags; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#92 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#96 + def to_json(*args); end + + # The resource identifier of this item. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#56 + def uri; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#4 +class LanguageServer::Protocol::Interface::TypeHierarchyOptions + # @return [TypeHierarchyOptions] a new instance of TypeHierarchyOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#4 +class LanguageServer::Protocol::Interface::TypeHierarchyPrepareParams + # @return [TypeHierarchyPrepareParams] a new instance of TypeHierarchyPrepareParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#5 + def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#39 + def attributes; end + + # The position inside the text document. + # + # @return [Position] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#27 + def position; end + + # The text document. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#19 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#41 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#45 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#35 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#4 +class LanguageServer::Protocol::Interface::TypeHierarchyRegistrationOptions + # @return [TypeHierarchyRegistrationOptions] a new instance of TypeHierarchyRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#5 + def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#38 + def attributes; end + + # A document selector to identify the scope of the registration. If set to + # null the document selector provided on the client side will be used. + # + # @return [DocumentSelector] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#20 + def document_selector; end + + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#34 + def id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#44 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#25 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#4 +class LanguageServer::Protocol::Interface::TypeHierarchySubtypesParams + # @return [TypeHierarchySubtypesParams] a new instance of TypeHierarchySubtypesParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#5 + def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#37 + def attributes; end + + # @return [TypeHierarchyItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#33 + def item; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#28 + def partial_result_token; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#43 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#19 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#4 +class LanguageServer::Protocol::Interface::TypeHierarchySupertypesParams + # @return [TypeHierarchySupertypesParams] a new instance of TypeHierarchySupertypesParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#5 + def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#37 + def attributes; end + + # @return [TypeHierarchyItem] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#33 + def item; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#28 + def partial_result_token; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#39 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#43 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#19 + def work_done_token; end +end + +# A diagnostic report indicating that the last returned +# report is still accurate. +# +# source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#8 +class LanguageServer::Protocol::Interface::UnchangedDocumentDiagnosticReport + # @return [UnchangedDocumentDiagnosticReport] a new instance of UnchangedDocumentDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#9 + def initialize(kind:, result_id:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#38 + def attributes; end + + # A document diagnostic report indicating + # no changes to the last result. A server can + # only return `unchanged` if result ids are + # provided. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#25 + def kind; end + + # A result id which will be sent on the next + # diagnostic request for the same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#34 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#40 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#44 + def to_json(*args); end +end + +# General parameters to unregister a capability. +# +# source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#7 +class LanguageServer::Protocol::Interface::Unregistration + # @return [Unregistration] a new instance of Unregistration + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#8 + def initialize(id:, method:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#34 + def attributes; end + + # The id used to unregister the request or notification. Usually an id + # provided during the register request. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#22 + def id; end + + # The method / capability to unregister for. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#30 + def method; end + + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#36 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#40 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#4 +class LanguageServer::Protocol::Interface::UnregistrationParams + # @return [UnregistrationParams] a new instance of UnregistrationParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#5 + def initialize(unregisterations:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#24 + def to_json(*args); end + + # @return [Unregistration[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#14 + def unregisterations; end +end + +# A versioned notebook document identifier. +# +# source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#7 +class LanguageServer::Protocol::Interface::VersionedNotebookDocumentIdentifier + # @return [VersionedNotebookDocumentIdentifier] a new instance of VersionedNotebookDocumentIdentifier + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#8 + def initialize(version:, uri:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#33 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#39 + def to_json(*args); end + + # The notebook document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#29 + def uri; end + + # The version number of this notebook document. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#21 + def version; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#4 +class LanguageServer::Protocol::Interface::VersionedTextDocumentIdentifier + # @return [VersionedTextDocumentIdentifier] a new instance of VersionedTextDocumentIdentifier + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#5 + def initialize(uri:, version:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#33 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#39 + def to_json(*args); end + + # The text document's URI. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#18 + def uri; end + + # The version number of this document. + # + # The version number of a document will increase after each change, + # including undo/redo. The number doesn't need to be consecutive. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#29 + def version; end +end + +# The parameters send in a will save text document notification. +# +# source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#7 +class LanguageServer::Protocol::Interface::WillSaveTextDocumentParams + # @return [WillSaveTextDocumentParams] a new instance of WillSaveTextDocumentParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#8 + def initialize(text_document:, reason:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#33 + def attributes; end + + # The 'TextDocumentSaveReason'. + # + # @return [TextDocumentSaveReason] + # + # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#29 + def reason; end + + # The document that will be saved. + # + # @return [TextDocumentIdentifier] + # + # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#21 + def text_document; end + + # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#39 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressBegin + # @return [WorkDoneProgressBegin] a new instance of WorkDoneProgressBegin + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#5 + def initialize(kind:, title:, cancellable: T.unsafe(nil), message: T.unsafe(nil), percentage: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#68 + def attributes; end + + # Controls if a cancel button should show to allow the user to cancel the + # long running operation. Clients that don't support cancellation are + # allowed to ignore the setting. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#39 + def cancellable; end + + # @return ["begin"] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#18 + def kind; end + + # Optional, more detailed associated progress message. Contains + # complementary information to the `title`. + # + # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". + # If unset, the previous progress message (if any) is still valid. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#51 + def message; end + + # Optional progress percentage to display (value 100 is considered 100%). + # If not provided infinite progress is assumed and clients are allowed + # to ignore the `percentage` value in subsequent in report notifications. + # + # The value should be steadily rising. Clients are free to ignore values + # that are not following this rule. The value range is [0, 100] + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#64 + def percentage; end + + # Mandatory title of the progress operation. Used to briefly inform about + # the kind of operation being performed. + # + # Examples: "Indexing" or "Linking dependencies". + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#29 + def title; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#70 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#74 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressCancelParams + # @return [WorkDoneProgressCancelParams] a new instance of WorkDoneProgressCancelParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#5 + def initialize(token:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#21 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#27 + def to_json(*args); end + + # The token to be used to report progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#17 + def token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressCreateParams + # @return [WorkDoneProgressCreateParams] a new instance of WorkDoneProgressCreateParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#5 + def initialize(token:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#21 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#27 + def to_json(*args); end + + # The token to be used to report progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#17 + def token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressEnd + # @return [WorkDoneProgressEnd] a new instance of WorkDoneProgressEnd + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#5 + def initialize(kind:, message: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#28 + def attributes; end + + # @return ["end"] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#15 + def kind; end + + # Optional, a final message indicating to for example indicate the outcome + # of the operation. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#24 + def message; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#34 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressOptions + # @return [WorkDoneProgressOptions] a new instance of WorkDoneProgressOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#18 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#20 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#24 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#14 + def work_done_progress; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressParams + # @return [WorkDoneProgressParams] a new instance of WorkDoneProgressParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#5 + def initialize(work_done_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#21 + def attributes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#27 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#17 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#4 +class LanguageServer::Protocol::Interface::WorkDoneProgressReport + # @return [WorkDoneProgressReport] a new instance of WorkDoneProgressReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#5 + def initialize(kind:, cancellable: T.unsafe(nil), message: T.unsafe(nil), percentage: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#58 + def attributes; end + + # Controls enablement state of a cancel button. This property is only valid + # if a cancel button got requested in the `WorkDoneProgressBegin` payload. + # + # Clients that don't support cancellation or don't support control the + # button's enablement state are allowed to ignore the setting. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#29 + def cancellable; end + + # @return ["report"] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#17 + def kind; end + + # Optional, more detailed associated progress message. Contains + # complementary information to the `title`. + # + # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". + # If unset, the previous progress message (if any) is still valid. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#41 + def message; end + + # Optional progress percentage to display (value 100 is considered 100%). + # If not provided infinite progress is assumed and clients are allowed + # to ignore the `percentage` value in subsequent in report notifications. + # + # The value should be steadily rising. Clients are free to ignore values + # that are not following this rule. The value range is [0, 100] + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#54 + def percentage; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#60 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#64 + def to_json(*args); end +end + +# Parameters of the workspace diagnostic request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceDiagnosticParams + # @return [WorkspaceDiagnosticParams] a new instance of WorkspaceDiagnosticParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#8 + def initialize(previous_result_ids:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), identifier: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#53 + def attributes; end + + # The additional identifier provided during registration. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#40 + def identifier; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#32 + def partial_result_token; end + + # The currently known diagnostic reports with their + # previous result ids. + # + # @return [PreviousResultId[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#49 + def previous_result_ids; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#55 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#59 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#23 + def work_done_token; end +end + +# A workspace diagnostic report. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceDiagnosticReport + # @return [WorkspaceDiagnosticReport] a new instance of WorkspaceDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#8 + def initialize(items:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#21 + def attributes; end + + # @return [WorkspaceDocumentDiagnosticReport[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#17 + def items; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#27 + def to_json(*args); end +end + +# A partial result for a workspace diagnostic report. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceDiagnosticReportPartialResult + # @return [WorkspaceDiagnosticReportPartialResult] a new instance of WorkspaceDiagnosticReportPartialResult + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#8 + def initialize(items:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#21 + def attributes; end + + # @return [WorkspaceDocumentDiagnosticReport[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#17 + def items; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#23 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#27 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceEdit + # @return [WorkspaceEdit] a new instance of WorkspaceEdit + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#5 + def initialize(changes: T.unsafe(nil), document_changes: T.unsafe(nil), change_annotations: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#56 + def attributes; end + + # A map of change annotations that can be referenced in + # `AnnotatedTextEdit`s or create, rename and delete file / folder + # operations. + # + # Whether clients honor this property depends on the client capability + # `workspace.changeAnnotationSupport`. + # + # @return [{ [id: string]: ChangeAnnotation; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#52 + def change_annotations; end + + # Holds changes to existing resources. + # + # @return [{}] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#19 + def changes; end + + # Depending on the client capability + # `workspace.workspaceEdit.resourceOperations` document changes are either + # an array of `TextDocumentEdit`s to express changes to n different text + # documents where each text document edit addresses a specific version of + # a text document. Or it can contain above `TextDocumentEdit`s mixed with + # create, rename and delete file / folder operations. + # + # Whether a client supports versioned document edits is expressed via + # `workspace.workspaceEdit.documentChanges` client capability. + # + # If a client neither supports `documentChanges` nor + # `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s + # using the `changes` property are supported. + # + # @return [TextDocumentEdit[] | (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#39 + def document_changes; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#58 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#62 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceEditClientCapabilities + # @return [WorkspaceEditClientCapabilities] a new instance of WorkspaceEditClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#5 + def initialize(document_changes: T.unsafe(nil), resource_operations: T.unsafe(nil), failure_handling: T.unsafe(nil), normalizes_line_endings: T.unsafe(nil), change_annotation_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#63 + def attributes; end + + # Whether the client in general supports change annotations on text edits, + # create file, rename file and delete file changes. + # + # @return [{ groupsOnLabel?: boolean; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#59 + def change_annotation_support; end + + # The client supports versioned document changes in `WorkspaceEdit`s + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#21 + def document_changes; end + + # The failure handling strategy of a client if applying the workspace edit + # fails. + # + # @return [FailureHandlingKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#39 + def failure_handling; end + + # Whether the client normalizes line endings to the client specific + # setting. + # If set to `true` the client will normalize line ending characters + # in a workspace edit to the client specific new line character(s). + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#50 + def normalizes_line_endings; end + + # The resource operations the client supports. Clients should at least + # support 'create', 'rename' and 'delete' files and folders. + # + # @return [ResourceOperationKind[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#30 + def resource_operations; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#65 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#69 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceFolder + # @return [WorkspaceFolder] a new instance of WorkspaceFolder + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#5 + def initialize(uri:, name:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#31 + def attributes; end + + # The name of the workspace folder. Used to refer to this + # workspace folder in the user interface. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#27 + def name; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#33 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#37 + def to_json(*args); end + + # The associated URI for this workspace folder. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#18 + def uri; end +end + +# The workspace folder change event. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceFoldersChangeEvent + # @return [WorkspaceFoldersChangeEvent] a new instance of WorkspaceFoldersChangeEvent + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#8 + def initialize(added:, removed:); end + + # The array of added workspace folders + # + # @return [WorkspaceFolder[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#21 + def added; end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#33 + def attributes; end + + # The array of the removed workspace folders + # + # @return [WorkspaceFolder[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#29 + def removed; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#35 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#39 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceFoldersServerCapabilities + # @return [WorkspaceFoldersServerCapabilities] a new instance of WorkspaceFoldersServerCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#5 + def initialize(supported: T.unsafe(nil), change_notifications: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#36 + def attributes; end + + # Whether the server wants to receive workspace folder + # change notifications. + # + # If a string is provided, the string is treated as an ID + # under which the notification is registered on the client + # side. The ID can be used to unregister for these events + # using the `client/unregisterCapability` request. + # + # @return [string | boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#32 + def change_notifications; end + + # The server has support for workspace folders + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#18 + def supported; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#38 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#42 + def to_json(*args); end +end + +# A full document diagnostic report for a workspace diagnostic result. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceFullDocumentDiagnosticReport + # @return [WorkspaceFullDocumentDiagnosticReport] a new instance of WorkspaceFullDocumentDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#8 + def initialize(kind:, items:, uri:, version:, result_id: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#63 + def attributes; end + + # The actual items. + # + # @return [Diagnostic[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#42 + def items; end + + # A full document diagnostic report. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#24 + def kind; end + + # An optional result id. If provided it will + # be sent on the next diagnostic request for the + # same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#34 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#65 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#69 + def to_json(*args); end + + # The URI for which diagnostic information is reported. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#50 + def uri; end + + # The version number for which the diagnostics are reported. + # If the document is not marked as open `null` can be provided. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#59 + def version; end +end + +# A special workspace symbol that supports locations without a range +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceSymbol + # @return [WorkspaceSymbol] a new instance of WorkspaceSymbol + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#8 + def initialize(name:, kind:, location:, tags: T.unsafe(nil), container_name: T.unsafe(nil), data: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#77 + def attributes; end + + # The name of the symbol containing this symbol. This information is for + # user interface purposes (e.g. to render a qualifier in the user interface + # if necessary). It can't be used to re-infer a hierarchy for the document + # symbols. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#52 + def container_name; end + + # A data entry field that is preserved on a workspace symbol between a + # workspace symbol request and a workspace symbol resolve request. + # + # @return [LSPAny] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#73 + def data; end + + # The kind of this symbol. + # + # @return [SymbolKind] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#33 + def kind; end + + # The location of this symbol. Whether a server is allowed to + # return a location without a range depends on the client + # capability `workspace.symbol.resolveSupport`. + # + # See also `SymbolInformation.location`. + # + # @return [Location | { uri: string; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#64 + def location; end + + # The name of this symbol. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#25 + def name; end + + # Tags for this completion item. + # + # @return [1[]] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#41 + def tags; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#79 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#83 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceSymbolClientCapabilities + # @return [WorkspaceSymbolClientCapabilities] a new instance of WorkspaceSymbolClientCapabilities + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#5 + def initialize(dynamic_registration: T.unsafe(nil), symbol_kind: T.unsafe(nil), tag_support: T.unsafe(nil), resolve_support: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#52 + def attributes; end + + # Symbol request supports dynamic registration. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#20 + def dynamic_registration; end + + # The client support partial workspace symbols. The client will send the + # request `workspaceSymbol/resolve` to the server to resolve additional + # properties. + # + # @return [{ properties: string[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#48 + def resolve_support; end + + # Specific capabilities for the `SymbolKind` in the `workspace/symbol` + # request. + # + # @return [{ valueSet?: SymbolKind[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#29 + def symbol_kind; end + + # The client supports tags on `SymbolInformation` and `WorkspaceSymbol`. + # Clients supporting tags have to handle unknown tags gracefully. + # + # @return [{ valueSet: 1[]; }] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#38 + def tag_support; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#54 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#58 + def to_json(*args); end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceSymbolOptions + # @return [WorkspaceSymbolOptions] a new instance of WorkspaceSymbolOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#28 + def attributes; end + + # The server provides support to resolve additional + # information for a workspace symbol. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#24 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#15 + def work_done_progress; end +end + +# The parameters of a Workspace Symbol Request. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceSymbolParams + # @return [WorkspaceSymbolParams] a new instance of WorkspaceSymbolParams + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#8 + def initialize(query:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#44 + def attributes; end + + # An optional token that a server can use to report partial results (e.g. + # streaming) to the client. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#31 + def partial_result_token; end + + # A query string to filter symbols by. Clients may send an empty + # string here to request all symbols. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#40 + def query; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#46 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#50 + def to_json(*args); end + + # An optional token that a server can use to report work done progress. + # + # @return [ProgressToken] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#22 + def work_done_token; end +end + +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#4 +class LanguageServer::Protocol::Interface::WorkspaceSymbolRegistrationOptions + # @return [WorkspaceSymbolRegistrationOptions] a new instance of WorkspaceSymbolRegistrationOptions + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#5 + def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#28 + def attributes; end + + # The server provides support to resolve additional + # information for a workspace symbol. + # + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#24 + def resolve_provider; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#30 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#34 + def to_json(*args); end + + # @return [boolean] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#15 + def work_done_progress; end +end + +# An unchanged document diagnostic report for a workspace diagnostic result. +# +# source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#7 +class LanguageServer::Protocol::Interface::WorkspaceUnchangedDocumentDiagnosticReport + # @return [WorkspaceUnchangedDocumentDiagnosticReport] a new instance of WorkspaceUnchangedDocumentDiagnosticReport + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#8 + def initialize(kind:, result_id:, uri:, version:); end + + # Returns the value of attribute attributes. + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#56 + def attributes; end + + # A document diagnostic report indicating + # no changes to the last result. A server can + # only return `unchanged` if result ids are + # provided. + # + # @return [any] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#26 + def kind; end + + # A result id which will be sent on the next + # diagnostic request for the same document. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#35 + def result_id; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#58 + def to_hash; end + + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#62 + def to_json(*args); end + + # The URI for which diagnostic information is reported. + # + # @return [string] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#43 + def uri; end + + # The version number for which the diagnostics are reported. + # If the document is not marked as open `null` can be provided. + # + # @return [number] + # + # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#52 + def version; end +end + +# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#7 +module LanguageServer::Protocol::Transport; end + +# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#8 +module LanguageServer::Protocol::Transport::Io; end + +# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#9 +class LanguageServer::Protocol::Transport::Io::Reader + # @return [Reader] a new instance of Reader + # + # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#10 + def initialize(io); end + + # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#15 + def read(&block); end + + private + + # Returns the value of attribute io. + # + # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#26 + def io; end +end + +# source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#5 +class LanguageServer::Protocol::Transport::Io::Writer + # @return [Writer] a new instance of Writer + # + # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#8 + def initialize(io); end + + # Returns the value of attribute io. + # + # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#6 + def io; end + + # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#13 + def write(response); end +end + +# source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#4 +module LanguageServer::Protocol::Transport::Stdio; end + +# source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#5 +class LanguageServer::Protocol::Transport::Stdio::Reader < ::LanguageServer::Protocol::Transport::Io::Reader + # @return [Reader] a new instance of Reader + # + # source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#6 + def initialize; end +end + +# source://language_server-protocol//lib/language_server/protocol/transport/stdio/writer.rb#5 +class LanguageServer::Protocol::Transport::Stdio::Writer < ::LanguageServer::Protocol::Transport::Io::Writer + # @return [Writer] a new instance of Writer + # + # source://language_server-protocol//lib/language_server/protocol/transport/stdio/writer.rb#6 + def initialize; end +end + +# source://language_server-protocol//lib/language_server/protocol/version.rb#3 +LanguageServer::Protocol::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/minitest@5.20.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/minitest@5.20.0.rbi new file mode 100755 index 000000000..de27f9c6f --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/minitest@5.20.0.rbi @@ -0,0 +1,1497 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `minitest` gem. +# Please instead update this file by running `bin/tapioca gem minitest`. + +# :include: README.rdoc +# +# source://minitest//lib/minitest/parallel.rb#1 +module Minitest + class << self + # Internal run method. Responsible for telling all Runnable + # sub-classes to run. + # + # source://minitest//lib/minitest.rb#176 + def __run(reporter, options); end + + # A simple hook allowing you to run a block of code after everything + # is done running. Eg: + # + # Minitest.after_run { p $debugging_info } + # + # source://minitest//lib/minitest.rb#97 + def after_run(&block); end + + # source://minitest//lib/minitest.rb#19 + def allow_fork; end + + # source://minitest//lib/minitest.rb#19 + def allow_fork=(_arg0); end + + # Registers Minitest to run at process exit + # + # source://minitest//lib/minitest.rb#69 + def autorun; end + + # source://minitest//lib/minitest.rb#19 + def backtrace_filter; end + + # source://minitest//lib/minitest.rb#19 + def backtrace_filter=(_arg0); end + + # source://minitest//lib/minitest.rb#18 + def cattr_accessor(name); end + + # source://minitest//lib/minitest.rb#1102 + def clock_time; end + + # source://minitest//lib/minitest.rb#19 + def extensions; end + + # source://minitest//lib/minitest.rb#19 + def extensions=(_arg0); end + + # source://minitest//lib/minitest.rb#267 + def filter_backtrace(bt); end + + # source://minitest//lib/minitest.rb#19 + def info_signal; end + + # source://minitest//lib/minitest.rb#19 + def info_signal=(_arg0); end + + # source://minitest//lib/minitest.rb#101 + def init_plugins(options); end + + # source://minitest//lib/minitest.rb#108 + def load_plugins; end + + # source://minitest//lib/minitest.rb#19 + def parallel_executor; end + + # source://minitest//lib/minitest.rb#19 + def parallel_executor=(_arg0); end + + # source://minitest//lib/minitest.rb#189 + def process_args(args = T.unsafe(nil)); end + + # source://minitest//lib/minitest.rb#19 + def reporter; end + + # source://minitest//lib/minitest.rb#19 + def reporter=(_arg0); end + + # This is the top-level run method. Everything starts from here. It + # tells each Runnable sub-class to run, and each of those are + # responsible for doing whatever they do. + # + # The overall structure of a run looks like this: + # + # Minitest.autorun + # Minitest.run(args) + # Minitest.__run(reporter, options) + # Runnable.runnables.each + # runnable.run(reporter, options) + # self.runnable_methods.each + # self.run_one_method(self, runnable_method, reporter) + # Minitest.run_one_method(klass, runnable_method) + # klass.new(runnable_method).run + # + # source://minitest//lib/minitest.rb#143 + def run(args = T.unsafe(nil)); end + + # source://minitest//lib/minitest.rb#1093 + def run_one_method(klass, method_name); end + + # source://minitest//lib/minitest.rb#19 + def seed; end + + # source://minitest//lib/minitest.rb#19 + def seed=(_arg0); end + end +end + +# Defines the API for Reporters. Subclass this and override whatever +# you want. Go nuts. +# +# source://minitest//lib/minitest.rb#621 +class Minitest::AbstractReporter + include ::Mutex_m + + # source://mutex_m/0.1.2/mutex_m.rb#93 + def lock; end + + # source://mutex_m/0.1.2/mutex_m.rb#83 + def locked?; end + + # Did this run pass? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#655 + def passed?; end + + # About to start running a test. This allows a reporter to show + # that it is starting or that we are in the middle of a test run. + # + # source://minitest//lib/minitest.rb#634 + def prerecord(klass, name); end + + # Output and record the result of the test. Call + # {result#result_code}[rdoc-ref:Runnable#result_code] to get the + # result character string. Stores the result of the run if the run + # did not pass. + # + # source://minitest//lib/minitest.rb#643 + def record(result); end + + # Outputs the summary of the run. + # + # source://minitest//lib/minitest.rb#649 + def report; end + + # Starts reporting on the run. + # + # source://minitest//lib/minitest.rb#627 + def start; end + + # source://mutex_m/0.1.2/mutex_m.rb#78 + def synchronize(&block); end + + # source://mutex_m/0.1.2/mutex_m.rb#88 + def try_lock; end + + # source://mutex_m/0.1.2/mutex_m.rb#98 + def unlock; end +end + +# Represents run failures. +# +# source://minitest//lib/minitest.rb#938 +class Minitest::Assertion < ::Exception + # source://minitest//lib/minitest.rb#939 + def error; end + + # Where was this run before an assertion was raised? + # + # source://minitest//lib/minitest.rb#946 + def location; end + + # source://minitest//lib/minitest.rb#955 + def result_code; end + + # source://minitest//lib/minitest.rb#959 + def result_label; end +end + +# Minitest Assertions. All assertion methods accept a +msg+ which is +# printed if the assertion fails. +# +# Protocol: Nearly everything here boils up to +assert+, which +# expects to be able to increment an instance accessor named +# +assertions+. This is not provided by Assertions and must be +# provided by the thing including Assertions. See Minitest::Runnable +# for an example. +# +# source://minitest//lib/minitest/assertions.rb#18 +module Minitest::Assertions + # source://minitest//lib/minitest/assertions.rb#188 + def _synchronize; end + + # Fails unless +test+ is truthy. + # + # source://minitest//lib/minitest/assertions.rb#178 + def assert(test, msg = T.unsafe(nil)); end + + # Fails unless +obj+ is empty. + # + # source://minitest//lib/minitest/assertions.rb#195 + def assert_empty(obj, msg = T.unsafe(nil)); end + + # Fails unless exp == act printing the difference between + # the two, if possible. + # + # If there is no visible difference but the assertion fails, you + # should suspect that your #== is buggy, or your inspect output is + # missing crucial details. For nicer structural diffing, set + # Minitest::Test.make_my_diffs_pretty! + # + # For floats use assert_in_delta. + # + # See also: Minitest::Assertions.diff + # + # source://minitest//lib/minitest/assertions.rb#216 + def assert_equal(exp, act, msg = T.unsafe(nil)); end + + # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+ + # of each other. + # + # assert_in_delta Math::PI, (22.0 / 7.0), 0.01 + # + # source://minitest//lib/minitest/assertions.rb#240 + def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end + + # For comparing Floats. Fails unless +exp+ and +act+ have a relative + # error less than +epsilon+. + # + # source://minitest//lib/minitest/assertions.rb#252 + def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end + + # Fails unless +collection+ includes +obj+. + # + # source://minitest//lib/minitest/assertions.rb#259 + def assert_includes(collection, obj, msg = T.unsafe(nil)); end + + # Fails unless +obj+ is an instance of +cls+. + # + # source://minitest//lib/minitest/assertions.rb#270 + def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end + + # Fails unless +obj+ is a kind of +cls+. + # + # source://minitest//lib/minitest/assertions.rb#281 + def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end + + # Fails unless +matcher+ =~ +obj+. + # + # source://minitest//lib/minitest/assertions.rb#291 + def assert_match(matcher, obj, msg = T.unsafe(nil)); end + + # Fails unless +obj+ is nil + # + # source://minitest//lib/minitest/assertions.rb#303 + def assert_nil(obj, msg = T.unsafe(nil)); end + + # For testing with binary operators. Eg: + # + # assert_operator 5, :<=, 4 + # + # source://minitest//lib/minitest/assertions.rb#313 + def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end + + # Fails if stdout or stderr do not output the expected results. + # Pass in nil if you don't care about that streams output. Pass in + # "" if you require it to be silent. Pass in a regexp if you want + # to pattern match. + # + # assert_output(/hey/) { method_with_output } + # + # NOTE: this uses #capture_io, not #capture_subprocess_io. + # + # See also: #assert_silent + # + # source://minitest//lib/minitest/assertions.rb#331 + def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end + + # Fails unless +path+ exists. + # + # source://minitest//lib/minitest/assertions.rb#355 + def assert_path_exists(path, msg = T.unsafe(nil)); end + + # For testing with pattern matching (only supported with Ruby 3.0 and later) + # + # # pass + # assert_pattern { [1,2,3] => [Integer, Integer, Integer] } + # + # # fail "length mismatch (given 3, expected 1)" + # assert_pattern { [1,2,3] => [Integer] } + # + # The bare => pattern will raise a NoMatchingPatternError on failure, which would + # normally be counted as a test error. This assertion rescues NoMatchingPatternError and + # generates a test failure. Any other exception will be raised as normal and generate a test + # error. + # + # @raise [NotImplementedError] + # + # source://minitest//lib/minitest/assertions.rb#374 + def assert_pattern; end + + # For testing with predicates. Eg: + # + # assert_predicate str, :empty? + # + # This is really meant for specs and is front-ended by assert_operator: + # + # str.must_be :empty? + # + # source://minitest//lib/minitest/assertions.rb#395 + def assert_predicate(o1, op, msg = T.unsafe(nil)); end + + # Fails unless the block raises one of +exp+. Returns the + # exception matched so you can check the message, attributes, etc. + # + # +exp+ takes an optional message on the end to help explain + # failures and defaults to StandardError if no exception class is + # passed. Eg: + # + # assert_raises(CustomError) { method_with_custom_error } + # + # With custom error message: + # + # assert_raises(CustomError, 'This should have raised CustomError') { method_with_custom_error } + # + # Using the returned object: + # + # error = assert_raises(CustomError) do + # raise CustomError, 'This is really bad' + # end + # + # assert_equal 'This is really bad', error.message + # + # source://minitest//lib/minitest/assertions.rb#422 + def assert_raises(*exp); end + + # Fails unless +obj+ responds to +meth+. + # + # source://minitest//lib/minitest/assertions.rb#453 + def assert_respond_to(obj, meth, msg = T.unsafe(nil)); end + + # Fails unless +exp+ and +act+ are #equal? + # + # source://minitest//lib/minitest/assertions.rb#463 + def assert_same(exp, act, msg = T.unsafe(nil)); end + + # +send_ary+ is a receiver, message and arguments. + # + # Fails unless the call returns a true value + # + # source://minitest//lib/minitest/assertions.rb#476 + def assert_send(send_ary, m = T.unsafe(nil)); end + + # Fails if the block outputs anything to stderr or stdout. + # + # See also: #assert_output + # + # source://minitest//lib/minitest/assertions.rb#492 + def assert_silent; end + + # Fails unless the block throws +sym+ + # + # source://minitest//lib/minitest/assertions.rb#501 + def assert_throws(sym, msg = T.unsafe(nil)); end + + # Captures $stdout and $stderr into strings: + # + # out, err = capture_io do + # puts "Some info" + # warn "You did a bad thing" + # end + # + # assert_match %r%info%, out + # assert_match %r%bad%, err + # + # NOTE: For efficiency, this method uses StringIO and does not + # capture IO for subprocesses. Use #capture_subprocess_io for + # that. + # + # source://minitest//lib/minitest/assertions.rb#542 + def capture_io; end + + # Captures $stdout and $stderr into strings, using Tempfile to + # ensure that subprocess IO is captured as well. + # + # out, err = capture_subprocess_io do + # system "echo Some info" + # system "echo You did a bad thing 1>&2" + # end + # + # assert_match %r%info%, out + # assert_match %r%bad%, err + # + # NOTE: This method is approximately 10x slower than #capture_io so + # only use it when you need to test the output of a subprocess. + # + # source://minitest//lib/minitest/assertions.rb#575 + def capture_subprocess_io; end + + # Returns a diff between +exp+ and +act+. If there is no known + # diff command or if it doesn't make sense to diff the output + # (single line, short output), then it simply returns a basic + # comparison between the two. + # + # See +things_to_diff+ for more info. + # + # source://minitest//lib/minitest/assertions.rb#59 + def diff(exp, act); end + + # Returns details for exception +e+ + # + # source://minitest//lib/minitest/assertions.rb#607 + def exception_details(e, msg); end + + # Fails after a given date (in the local time zone). This allows + # you to put time-bombs in your tests if you need to keep + # something around until a later date lest you forget about it. + # + # source://minitest//lib/minitest/assertions.rb#623 + def fail_after(y, m, d, msg); end + + # Fails with +msg+. + # + # source://minitest//lib/minitest/assertions.rb#630 + def flunk(msg = T.unsafe(nil)); end + + # Returns a proc that will output +msg+ along with the default message. + # + # source://minitest//lib/minitest/assertions.rb#638 + def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end + + # This returns a human-readable version of +obj+. By default + # #inspect is called. You can override this to use #pretty_inspect + # if you want. + # + # See Minitest::Test.make_my_diffs_pretty! + # + # source://minitest//lib/minitest/assertions.rb#129 + def mu_pp(obj); end + + # This returns a diff-able more human-readable version of +obj+. + # This differs from the regular mu_pp because it expands escaped + # newlines and makes hex-values (like object_ids) generic. This + # uses mu_pp to do the first pass and then cleans it up. + # + # source://minitest//lib/minitest/assertions.rb#152 + def mu_pp_for_diff(obj); end + + # used for counting assertions + # + # source://minitest//lib/minitest/assertions.rb#649 + def pass(_msg = T.unsafe(nil)); end + + # Fails if +test+ is truthy. + # + # source://minitest//lib/minitest/assertions.rb#656 + def refute(test, msg = T.unsafe(nil)); end + + # Fails if +obj+ is empty. + # + # source://minitest//lib/minitest/assertions.rb#664 + def refute_empty(obj, msg = T.unsafe(nil)); end + + # Fails if exp == act. + # + # For floats use refute_in_delta. + # + # source://minitest//lib/minitest/assertions.rb#675 + def refute_equal(exp, act, msg = T.unsafe(nil)); end + + # For comparing Floats. Fails if +exp+ is within +delta+ of +act+. + # + # refute_in_delta Math::PI, (22.0 / 7.0) + # + # source://minitest//lib/minitest/assertions.rb#687 + def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end + + # For comparing Floats. Fails if +exp+ and +act+ have a relative error + # less than +epsilon+. + # + # source://minitest//lib/minitest/assertions.rb#699 + def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end + + # Fails if +collection+ includes +obj+. + # + # source://minitest//lib/minitest/assertions.rb#706 + def refute_includes(collection, obj, msg = T.unsafe(nil)); end + + # Fails if +obj+ is an instance of +cls+. + # + # source://minitest//lib/minitest/assertions.rb#717 + def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end + + # Fails if +obj+ is a kind of +cls+. + # + # source://minitest//lib/minitest/assertions.rb#727 + def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end + + # Fails if +matcher+ =~ +obj+. + # + # source://minitest//lib/minitest/assertions.rb#735 + def refute_match(matcher, obj, msg = T.unsafe(nil)); end + + # Fails if +obj+ is nil. + # + # source://minitest//lib/minitest/assertions.rb#745 + def refute_nil(obj, msg = T.unsafe(nil)); end + + # Fails if +o1+ is not +op+ +o2+. Eg: + # + # refute_operator 1, :>, 2 #=> pass + # refute_operator 1, :<, 2 #=> fail + # + # source://minitest//lib/minitest/assertions.rb#780 + def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end + + # Fails if +path+ exists. + # + # source://minitest//lib/minitest/assertions.rb#789 + def refute_path_exists(path, msg = T.unsafe(nil)); end + + # For testing with pattern matching (only supported with Ruby 3.0 and later) + # + # # pass + # refute_pattern { [1,2,3] => [String] } + # + # # fail "NoMatchingPatternError expected, but nothing was raised." + # refute_pattern { [1,2,3] => [Integer, Integer, Integer] } + # + # This assertion expects a NoMatchingPatternError exception, and will fail if none is raised. Any + # other exceptions will be raised as normal and generate a test error. + # + # @raise [NotImplementedError] + # + # source://minitest//lib/minitest/assertions.rb#762 + def refute_pattern; end + + # For testing with predicates. + # + # refute_predicate str, :empty? + # + # This is really meant for specs and is front-ended by refute_operator: + # + # str.wont_be :empty? + # + # source://minitest//lib/minitest/assertions.rb#803 + def refute_predicate(o1, op, msg = T.unsafe(nil)); end + + # Fails if +obj+ responds to the message +meth+. + # + # source://minitest//lib/minitest/assertions.rb#811 + def refute_respond_to(obj, meth, msg = T.unsafe(nil)); end + + # Fails if +exp+ is the same (by object identity) as +act+. + # + # source://minitest//lib/minitest/assertions.rb#820 + def refute_same(exp, act, msg = T.unsafe(nil)); end + + # Skips the current run. If run in verbose-mode, the skipped run + # gets listed at the end of the run but doesn't cause a failure + # exit code. + # + # @raise [Minitest::Skip] + # + # source://minitest//lib/minitest/assertions.rb#833 + def skip(msg = T.unsafe(nil), bt = T.unsafe(nil)); end + + # Skips the current run until a given date (in the local time + # zone). This allows you to put some fixes on hold until a later + # date, but still holds you accountable and prevents you from + # forgetting it. + # + # source://minitest//lib/minitest/assertions.rb#845 + def skip_until(y, m, d, msg); end + + # Was this testcase skipped? Meant for #teardown. + # + # @return [Boolean] + # + # source://minitest//lib/minitest/assertions.rb#854 + def skipped?; end + + # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff. + # + # Criterion: + # + # 1. Strings include newlines or escaped newlines, but not both. + # 2. or: String lengths are > 30 characters. + # 3. or: Strings are equal to each other (but maybe different encodings?). + # 4. and: we found a diff executable. + # + # source://minitest//lib/minitest/assertions.rb#104 + def things_to_diff(exp, act); end + + class << self + # Returns the diff command to use in #diff. Tries to intelligently + # figure out what diff to use. + # + # source://minitest//lib/minitest/assertions.rb#29 + def diff; end + + # Set the diff command to use in #diff. + # + # source://minitest//lib/minitest/assertions.rb#47 + def diff=(o); end + end +end + +# source://minitest//lib/minitest/assertions.rb#201 +Minitest::Assertions::E = T.let(T.unsafe(nil), String) + +# source://minitest//lib/minitest/assertions.rb#19 +Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object) + +# The standard backtrace filter for minitest. +# +# See Minitest.backtrace_filter=. +# +# source://minitest//lib/minitest.rb#1070 +class Minitest::BacktraceFilter + # Filter +bt+ to something useful. Returns the whole thing if + # $DEBUG (ruby) or $MT_DEBUG (env). + # + # source://minitest//lib/minitest.rb#1078 + def filter(bt); end +end + +# source://minitest//lib/minitest.rb#1072 +Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp) + +# Dispatch to multiple reporters as one. +# +# source://minitest//lib/minitest.rb#887 +class Minitest::CompositeReporter < ::Minitest::AbstractReporter + # @return [CompositeReporter] a new instance of CompositeReporter + # + # source://minitest//lib/minitest.rb#893 + def initialize(*reporters); end + + # Add another reporter to the mix. + # + # source://minitest//lib/minitest.rb#905 + def <<(reporter); end + + # source://minitest//lib/minitest.rb#898 + def io; end + + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#909 + def passed?; end + + # source://minitest//lib/minitest.rb#917 + def prerecord(klass, name); end + + # source://minitest//lib/minitest.rb#924 + def record(result); end + + # source://minitest//lib/minitest.rb#930 + def report; end + + # The list of reporters to dispatch to. + # + # source://minitest//lib/minitest.rb#891 + def reporters; end + + # The list of reporters to dispatch to. + # + # source://minitest//lib/minitest.rb#891 + def reporters=(_arg0); end + + # source://minitest//lib/minitest.rb#913 + def start; end +end + +# Provides a simple set of guards that you can use in your tests +# to skip execution if it is not applicable. These methods are +# mixed into Test as both instance and class methods so you +# can use them inside or outside of the test methods. +# +# def test_something_for_mri +# skip "bug 1234" if jruby? +# # ... +# end +# +# if windows? then +# # ... lots of test methods ... +# end +# +# source://minitest//lib/minitest.rb#1014 +module Minitest::Guard + # Is this running on jruby? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#1019 + def jruby?(platform = T.unsafe(nil)); end + + # Is this running on maglev? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#1026 + def maglev?(platform = T.unsafe(nil)); end + + # Is this running on mri? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#1036 + def mri?(platform = T.unsafe(nil)); end + + # Is this running on macOS? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#1043 + def osx?(platform = T.unsafe(nil)); end + + # Is this running on rubinius? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#1050 + def rubinius?(platform = T.unsafe(nil)); end + + # Is this running on windows? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#1060 + def windows?(platform = T.unsafe(nil)); end +end + +# source://minitest//lib/minitest/parallel.rb#2 +module Minitest::Parallel; end + +# The engine used to run multiple tests in parallel. +# +# source://minitest//lib/minitest/parallel.rb#7 +class Minitest::Parallel::Executor + # Create a parallel test executor of with +size+ workers. + # + # @return [Executor] a new instance of Executor + # + # source://minitest//lib/minitest/parallel.rb#17 + def initialize(size); end + + # Add a job to the queue + # + # source://minitest//lib/minitest/parallel.rb#43 + def <<(work); end + + # Shuts down the pool of workers by signalling them to quit and + # waiting for them all to finish what they're currently working + # on. + # + # source://minitest//lib/minitest/parallel.rb#50 + def shutdown; end + + # The size of the pool of workers. + # + # source://minitest//lib/minitest/parallel.rb#12 + def size; end + + # Start the executor + # + # source://minitest//lib/minitest/parallel.rb#26 + def start; end +end + +# source://minitest//lib/minitest/parallel.rb#56 +module Minitest::Parallel::Test + # source://minitest//lib/minitest/parallel.rb#57 + def _synchronize; end +end + +# source://minitest//lib/minitest/parallel.rb#59 +module Minitest::Parallel::Test::ClassMethods + # source://minitest//lib/minitest/parallel.rb#60 + def run_one_method(klass, method_name, reporter); end + + # source://minitest//lib/minitest/parallel.rb#64 + def test_order; end +end + +# A very simple reporter that prints the "dots" during the run. +# +# This is added to the top-level CompositeReporter at the start of +# the run. If you want to change the output of minitest via a +# plugin, pull this out of the composite and replace it with your +# own. +# +# source://minitest//lib/minitest.rb#686 +class Minitest::ProgressReporter < ::Minitest::Reporter + # source://minitest//lib/minitest.rb#687 + def prerecord(klass, name); end + + # source://minitest//lib/minitest.rb#694 + def record(result); end +end + +# Shared code for anything that can get passed to a Reporter. See +# Minitest::Test & Minitest::Result. +# +# source://minitest//lib/minitest.rb#517 +module Minitest::Reportable + # @raise [NotImplementedError] + # + # source://minitest//lib/minitest.rb#537 + def class_name; end + + # Did this run error? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#558 + def error?; end + + # The location identifier of this test. Depends on a method + # existing called class_name. + # + # source://minitest//lib/minitest.rb#532 + def location; end + + # Did this run pass? + # + # Note: skipped runs are not considered passing, but they don't + # cause the process to exit non-zero. + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#524 + def passed?; end + + # Returns ".", "F", or "E" based on the result of the run. + # + # source://minitest//lib/minitest.rb#544 + def result_code; end + + # Was this run skipped? + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#551 + def skipped?; end +end + +# source://minitest//lib/minitest.rb#662 +class Minitest::Reporter < ::Minitest::AbstractReporter + # @return [Reporter] a new instance of Reporter + # + # source://minitest//lib/minitest.rb#671 + def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end + + # The IO used to report. + # + # source://minitest//lib/minitest.rb#664 + def io; end + + # The IO used to report. + # + # source://minitest//lib/minitest.rb#664 + def io=(_arg0); end + + # Command-line options for this run. + # + # source://minitest//lib/minitest.rb#669 + def options; end + + # Command-line options for this run. + # + # source://minitest//lib/minitest.rb#669 + def options=(_arg0); end +end + +# This represents a test result in a clean way that can be +# marshalled over a wire. Tests can do anything they want to the +# test instance and can create conditions that cause Marshal.dump to +# blow up. By using Result.from(a_test) you can be reasonably sure +# that the test result can be marshalled. +# +# source://minitest//lib/minitest.rb#570 +class Minitest::Result < ::Minitest::Runnable + include ::Minitest::Reportable + + # source://minitest//lib/minitest.rb#604 + def class_name; end + + # The class name of the test result. + # + # source://minitest//lib/minitest.rb#579 + def klass; end + + # The class name of the test result. + # + # source://minitest//lib/minitest.rb#579 + def klass=(_arg0); end + + # The location of the test method. + # + # source://minitest//lib/minitest.rb#584 + def source_location; end + + # The location of the test method. + # + # source://minitest//lib/minitest.rb#584 + def source_location=(_arg0); end + + # source://minitest//lib/minitest.rb#608 + def to_s; end + + class << self + # Create a new test result from a Runnable instance. + # + # source://minitest//lib/minitest.rb#589 + def from(runnable); end + end +end + +# re-open +# +# source://minitest//lib/minitest.rb#280 +class Minitest::Runnable + # @return [Runnable] a new instance of Runnable + # + # source://minitest//lib/minitest.rb#448 + def initialize(name); end + + # Number of assertions executed in this run. + # + # source://minitest//lib/minitest.rb#284 + def assertions; end + + # Number of assertions executed in this run. + # + # source://minitest//lib/minitest.rb#284 + def assertions=(_arg0); end + + # source://minitest//lib/minitest.rb#444 + def failure; end + + # An assertion raised during the run, if any. + # + # source://minitest//lib/minitest.rb#289 + def failures; end + + # An assertion raised during the run, if any. + # + # source://minitest//lib/minitest.rb#289 + def failures=(_arg0); end + + # source://minitest//lib/minitest.rb#430 + def marshal_dump; end + + # source://minitest//lib/minitest.rb#440 + def marshal_load(ary); end + + # Metadata you attach to the test results that get sent to the reporter. + # + # Lazily initializes to a hash, to keep memory down. + # + # NOTE: this data *must* be plain (read: marshal-able) data! + # Hashes! Arrays! Strings! + # + # source://minitest//lib/minitest.rb#463 + def metadata; end + + # Sets metadata, mainly used for +Result.from+. + # + # source://minitest//lib/minitest.rb#470 + def metadata=(_arg0); end + + # Returns true if metadata exists. + # + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#475 + def metadata?; end + + # Name of the run. + # + # source://minitest//lib/minitest.rb#307 + def name; end + + # Set the name of the run. + # + # source://minitest//lib/minitest.rb#314 + def name=(o); end + + # Did this run pass? + # + # Note: skipped runs are not considered passing, but they don't + # cause the process to exit non-zero. + # + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#492 + def passed?; end + + # Returns a single character string to print based on the result + # of the run. One of ".", "F", + # "E" or "S". + # + # @raise [NotImplementedError] + # + # source://minitest//lib/minitest.rb#501 + def result_code; end + + # Runs a single method. Needs to return self. + # + # @raise [NotImplementedError] + # + # source://minitest//lib/minitest.rb#482 + def run; end + + # Was this run skipped? See #passed? for more information. + # + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://minitest//lib/minitest.rb#508 + def skipped?; end + + # The time it took to run. + # + # source://minitest//lib/minitest.rb#294 + def time; end + + # The time it took to run. + # + # source://minitest//lib/minitest.rb#294 + def time=(_arg0); end + + # source://minitest//lib/minitest.rb#296 + def time_it; end + + class << self + # source://minitest//lib/minitest.rb#1112 + def inherited(klass); end + + # Returns all instance methods matching the pattern +re+. + # + # source://minitest//lib/minitest.rb#321 + def methods_matching(re); end + + # source://minitest//lib/minitest.rb#400 + def on_signal(name, action); end + + # source://minitest//lib/minitest.rb#325 + def reset; end + + # Responsible for running all runnable methods in a given class, + # each in its own instance. Each instance is passed to the + # reporter to record. + # + # source://minitest//lib/minitest.rb#336 + def run(reporter, options = T.unsafe(nil)); end + + # Runs a single method and has the reporter record the result. + # This was considered internal API but is factored out of run so + # that subclasses can specialize the running of an individual + # test. See Minitest::ParallelTest::ClassMethods for an example. + # + # source://minitest//lib/minitest.rb#372 + def run_one_method(klass, method_name, reporter); end + + # Each subclass of Runnable is responsible for overriding this + # method to return all runnable methods. See #methods_matching. + # + # @raise [NotImplementedError] + # + # source://minitest//lib/minitest.rb#417 + def runnable_methods; end + + # Returns all subclasses of Runnable. + # + # source://minitest//lib/minitest.rb#424 + def runnables; end + + # Defines the order to run tests (:random by default). Override + # this or use a convenience method to change it for your tests. + # + # source://minitest//lib/minitest.rb#381 + def test_order; end + + # source://minitest//lib/minitest.rb#385 + def with_info_handler(reporter, &block); end + end +end + +# source://minitest//lib/minitest.rb#398 +Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash) + +# Assertion raised when skipping a run. +# +# source://minitest//lib/minitest.rb#967 +class Minitest::Skip < ::Minitest::Assertion + # source://minitest//lib/minitest.rb#968 + def result_label; end +end + +# A reporter that gathers statistics about a test run. Does not do +# any IO because meant to be used as a parent class for a reporter +# that does. +# +# If you want to create an entirely different type of output (eg, +# CI, HTML, etc), this is the place to start. +# +# Example: +# +# class JenkinsCIReporter < StatisticsReporter +# def report +# super # Needed to calculate some statistics +# +# print " "onetwothree" +# +# source://multipart-post//lib/multipart/post/composite_read_io.rb#28 +class Multipart::Post::CompositeReadIO + # Create a new composite-read IO from the arguments, all of which should + # respond to #read in a manner consistent with IO. + # + # @return [CompositeReadIO] a new instance of CompositeReadIO + # + # source://multipart-post//lib/multipart/post/composite_read_io.rb#31 + def initialize(*ios); end + + # Read from IOs in order until `length` bytes have been received. + # + # source://multipart-post//lib/multipart/post/composite_read_io.rb#37 + def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end + + # source://multipart-post//lib/multipart/post/composite_read_io.rb#54 + def rewind; end + + private + + # source://multipart-post//lib/multipart/post/composite_read_io.rb#65 + def advance_io; end + + # source://multipart-post//lib/multipart/post/composite_read_io.rb#61 + def current_io; end +end + +# source://multipart-post//lib/multipart/post/multipartable.rb#23 +module Multipart::Post::Multipartable + # source://multipart-post//lib/multipart/post/multipartable.rb#38 + def initialize(path, params, headers = T.unsafe(nil), boundary = T.unsafe(nil)); end + + # Returns the value of attribute boundary. + # + # source://multipart-post//lib/multipart/post/multipartable.rb#61 + def boundary; end + + private + + # source://multipart-post//lib/multipart/post/multipartable.rb#66 + def symbolize_keys(hash); end + + class << self + # source://multipart-post//lib/multipart/post/multipartable.rb#24 + def secure_boundary; end + end +end + +# source://multipart-post//lib/multipart/post/parts.rb#26 +module Multipart::Post::Parts; end + +# Represents the epilogue or closing boundary. +# +# source://multipart-post//lib/multipart/post/parts.rb#138 +class Multipart::Post::Parts::EpiloguePart + include ::Multipart::Post::Parts::Part + + # @return [EpiloguePart] a new instance of EpiloguePart + # + # source://multipart-post//lib/multipart/post/parts.rb#141 + def initialize(boundary); end +end + +# Represents a part to be filled from file IO. +# +# source://multipart-post//lib/multipart/post/parts.rb#83 +class Multipart::Post::Parts::FilePart + include ::Multipart::Post::Parts::Part + + # @param boundary [String] + # @param name [#to_s] + # @param io [IO] + # @param headers [Hash] + # @return [FilePart] a new instance of FilePart + # + # source://multipart-post//lib/multipart/post/parts.rb#92 + def initialize(boundary, name, io, headers = T.unsafe(nil)); end + + # @param boundary [String] + # @param name [#to_s] + # @param filename [String] + # @param type [String] + # @param content_len [Integer] + # @param opts [Hash] + # + # source://multipart-post//lib/multipart/post/parts.rb#107 + def build_head(boundary, name, filename, type, content_len, opts = T.unsafe(nil)); end + + # Returns the value of attribute length. + # + # source://multipart-post//lib/multipart/post/parts.rb#86 + def length; end +end + +# Represents a parametric part to be filled with given value. +# +# source://multipart-post//lib/multipart/post/parts.rb#51 +class Multipart::Post::Parts::ParamPart + include ::Multipart::Post::Parts::Part + + # @param boundary [String] + # @param name [#to_s] + # @param value [String] + # @param headers [Hash] Content-Type and Content-ID are used, if present. + # @return [ParamPart] a new instance of ParamPart + # + # source://multipart-post//lib/multipart/post/parts.rb#58 + def initialize(boundary, name, value, headers = T.unsafe(nil)); end + + # @param boundary [String] + # @param name [#to_s] + # @param value [String] + # @param headers [Hash] Content-Type is used, if present. + # + # source://multipart-post//lib/multipart/post/parts.rb#71 + def build_part(boundary, name, value, headers = T.unsafe(nil)); end + + # source://multipart-post//lib/multipart/post/parts.rb#63 + def length; end +end + +# source://multipart-post//lib/multipart/post/parts.rb#27 +module Multipart::Post::Parts::Part + # source://multipart-post//lib/multipart/post/parts.rb#41 + def length; end + + # source://multipart-post//lib/multipart/post/parts.rb#45 + def to_io; end + + class << self + # @return [Boolean] + # + # source://multipart-post//lib/multipart/post/parts.rb#37 + def file?(value); end + + # source://multipart-post//lib/multipart/post/parts.rb#28 + def new(boundary, name, value, headers = T.unsafe(nil)); end + end +end + +# Convenience methods for dealing with files and IO that are to be uploaded. +# +# source://multipart-post//lib/multipart/post/upload_io.rb#9 +class Multipart::Post::UploadIO + # Create an upload IO suitable for including in the params hash of a + # Net::HTTP::Post::Multipart. + # + # Can take two forms. The first accepts a filename and content type, and + # opens the file for reading (to be closed by finalizer). + # + # The second accepts an already-open IO, but also requires a third argument, + # the filename from which it was opened (particularly useful/recommended if + # uploading directly from a form in a framework, which often save the file to + # an arbitrarily named RackMultipart file in /tmp). + # + # @example + # UploadIO.new("file.txt", "text/plain") + # UploadIO.new(file_io, "text/plain", "file.txt") + # @return [UploadIO] a new instance of UploadIO + # + # source://multipart-post//lib/multipart/post/upload_io.rb#26 + def initialize(filename_or_io, content_type, filename = T.unsafe(nil), opts = T.unsafe(nil)); end + + # Returns the value of attribute content_type. + # + # source://multipart-post//lib/multipart/post/upload_io.rb#10 + def content_type; end + + # Returns the value of attribute io. + # + # source://multipart-post//lib/multipart/post/upload_io.rb#10 + def io; end + + # Returns the value of attribute local_path. + # + # source://multipart-post//lib/multipart/post/upload_io.rb#10 + def local_path; end + + # source://multipart-post//lib/multipart/post/upload_io.rb#52 + def method_missing(*args); end + + # Returns the value of attribute opts. + # + # source://multipart-post//lib/multipart/post/upload_io.rb#10 + def opts; end + + # Returns the value of attribute original_filename. + # + # source://multipart-post//lib/multipart/post/upload_io.rb#10 + def original_filename; end + + # @return [Boolean] + # + # source://multipart-post//lib/multipart/post/upload_io.rb#56 + def respond_to?(meth, include_all = T.unsafe(nil)); end + + class << self + # @raise [ArgumentError] + # + # source://multipart-post//lib/multipart/post/upload_io.rb#46 + def convert!(io, content_type, original_filename, local_path); end + end +end + +# source://multipart-post//lib/multipart/post/version.rb#9 +Multipart::Post::VERSION = T.let(T.unsafe(nil), String) + +# source://multipart-post//lib/multipart/post/upload_io.rb#63 +UploadIO = Multipart::Post::UploadIO diff --git a/ruby-client-sdk/sorbet/rbi/gems/netrc@0.11.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/netrc@0.11.0.rbi new file mode 100755 index 000000000..062a5577c --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/netrc@0.11.0.rbi @@ -0,0 +1,158 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `netrc` gem. +# Please instead update this file by running `bin/tapioca gem netrc`. + +# source://netrc//lib/netrc.rb#3 +class Netrc + # @return [Netrc] a new instance of Netrc + # + # source://netrc//lib/netrc.rb#166 + def initialize(path, data); end + + # source://netrc//lib/netrc.rb#180 + def [](k); end + + # source://netrc//lib/netrc.rb#188 + def []=(k, info); end + + # source://netrc//lib/netrc.rb#200 + def delete(key); end + + # source://netrc//lib/netrc.rb#211 + def each(&block); end + + # source://netrc//lib/netrc.rb#196 + def length; end + + # source://netrc//lib/netrc.rb#215 + def new_item(m, l, p); end + + # Returns the value of attribute new_item_prefix. + # + # source://netrc//lib/netrc.rb#178 + def new_item_prefix; end + + # Sets the attribute new_item_prefix + # + # @param value the value to set the attribute new_item_prefix to. + # + # source://netrc//lib/netrc.rb#178 + def new_item_prefix=(_arg0); end + + # source://netrc//lib/netrc.rb#219 + def save; end + + # source://netrc//lib/netrc.rb#233 + def unparse; end + + class << self + # source://netrc//lib/netrc.rb#42 + def check_permissions(path); end + + # source://netrc//lib/netrc.rb#33 + def config; end + + # @yield [self.config] + # + # source://netrc//lib/netrc.rb#37 + def configure; end + + # source://netrc//lib/netrc.rb#10 + def default_path; end + + # source://netrc//lib/netrc.rb#14 + def home_path; end + + # source://netrc//lib/netrc.rb#85 + def lex(lines); end + + # source://netrc//lib/netrc.rb#29 + def netrc_filename; end + + # Returns two values, a header and a list of items. + # Each item is a tuple, containing some or all of: + # - machine keyword (including trailing whitespace+comments) + # - machine name + # - login keyword (including surrounding whitespace+comments) + # - login + # - password keyword (including surrounding whitespace+comments) + # - password + # - trailing chars + # This lets us change individual fields, then write out the file + # with all its original formatting. + # + # source://netrc//lib/netrc.rb#129 + def parse(ts); end + + # Reads path and parses it as a .netrc file. If path doesn't + # exist, returns an empty object. Decrypt paths ending in .gpg. + # + # source://netrc//lib/netrc.rb#51 + def read(path = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://netrc//lib/netrc.rb#112 + def skip?(s); end + end +end + +# source://netrc//lib/netrc.rb#8 +Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped) + +# source://netrc//lib/netrc.rb#244 +class Netrc::Entry < ::Struct + # Returns the value of attribute login + # + # @return [Object] the current value of login + def login; end + + # Sets the attribute login + # + # @param value [Object] the value to set the attribute login to. + # @return [Object] the newly set value + def login=(_); end + + # Returns the value of attribute password + # + # @return [Object] the current value of password + def password; end + + # Sets the attribute password + # + # @param value [Object] the value to set the attribute password to. + # @return [Object] the newly set value + def password=(_); end + + def to_ary; end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://netrc//lib/netrc.rb#250 +class Netrc::Error < ::StandardError; end + +# source://netrc//lib/netrc.rb#68 +class Netrc::TokenArray < ::Array + # source://netrc//lib/netrc.rb#76 + def readto; end + + # source://netrc//lib/netrc.rb#69 + def take; end +end + +# source://netrc//lib/netrc.rb#4 +Netrc::VERSION = T.let(T.unsafe(nil), String) + +# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows +# +# source://netrc//lib/netrc.rb#7 +Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped) diff --git a/ruby-client-sdk/sorbet/rbi/gems/parallel@1.23.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/parallel@1.23.0.rbi new file mode 100755 index 000000000..c8b319a36 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/parallel@1.23.0.rbi @@ -0,0 +1,273 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `parallel` gem. +# Please instead update this file by running `bin/tapioca gem parallel`. + +# source://parallel//lib/parallel/version.rb#2 +module Parallel + class << self + # @return [Boolean] + # + # source://parallel//lib/parallel.rb#243 + def all?(*args, &block); end + + # @return [Boolean] + # + # source://parallel//lib/parallel.rb#238 + def any?(*args, &block); end + + # source://parallel//lib/parallel.rb#234 + def each(array, options = T.unsafe(nil), &block); end + + # source://parallel//lib/parallel.rb#248 + def each_with_index(array, options = T.unsafe(nil), &block); end + + # source://parallel//lib/parallel.rb#307 + def filter_map(*args, &block); end + + # source://parallel//lib/parallel.rb#303 + def flat_map(*args, &block); end + + # source://parallel//lib/parallel.rb#228 + def in_processes(options = T.unsafe(nil), &block); end + + # source://parallel//lib/parallel.rb#212 + def in_threads(options = T.unsafe(nil)); end + + # source://parallel//lib/parallel.rb#252 + def map(source, options = T.unsafe(nil), &block); end + + # source://parallel//lib/parallel.rb#299 + def map_with_index(array, options = T.unsafe(nil), &block); end + + # Number of physical processor cores on the current system. + # + # source://parallel//lib/parallel.rb#312 + def physical_processor_count; end + + # Number of processors seen by the OS, used for process scheduling + # + # source://parallel//lib/parallel.rb#345 + def processor_count; end + + # source://parallel//lib/parallel.rb#350 + def worker_number; end + + # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed + # + # source://parallel//lib/parallel.rb#355 + def worker_number=(worker_num); end + + private + + # source://parallel//lib/parallel.rb#361 + def add_progress_bar!(job_factory, options); end + + # source://parallel//lib/parallel.rb#624 + def call_with_index(item, index, options, &block); end + + # source://parallel//lib/parallel.rb#556 + def create_workers(job_factory, options, &block); end + + # options is either a Integer or a Hash with :count + # + # source://parallel//lib/parallel.rb#614 + def extract_count_from_options(options); end + + # source://parallel//lib/parallel.rb#642 + def instrument_finish(item, index, result, options); end + + # source://parallel//lib/parallel.rb#647 + def instrument_start(item, index, options); end + + # source://parallel//lib/parallel.rb#590 + def process_incoming_jobs(read, write, job_factory, options, &block); end + + # source://parallel//lib/parallel.rb#544 + def replace_worker(job_factory, workers, index, options, blk); end + + # source://parallel//lib/parallel.rb#635 + def with_instrumentation(item, index, options); end + + # source://parallel//lib/parallel.rb#386 + def work_direct(job_factory, options, &block); end + + # source://parallel//lib/parallel.rb#496 + def work_in_processes(job_factory, options, &blk); end + + # source://parallel//lib/parallel.rb#430 + def work_in_ractors(job_factory, options); end + + # source://parallel//lib/parallel.rb#405 + def work_in_threads(job_factory, options, &block); end + + # source://parallel//lib/parallel.rb#564 + def worker(job_factory, options, &block); end + end +end + +# source://parallel//lib/parallel.rb#11 +class Parallel::Break < ::StandardError + # @return [Break] a new instance of Break + # + # source://parallel//lib/parallel.rb#14 + def initialize(value = T.unsafe(nil)); end + + # Returns the value of attribute value. + # + # source://parallel//lib/parallel.rb#12 + def value; end +end + +# source://parallel//lib/parallel.rb#8 +class Parallel::DeadWorker < ::StandardError; end + +# source://parallel//lib/parallel.rb#32 +class Parallel::ExceptionWrapper + # @return [ExceptionWrapper] a new instance of ExceptionWrapper + # + # source://parallel//lib/parallel.rb#35 + def initialize(exception); end + + # Returns the value of attribute exception. + # + # source://parallel//lib/parallel.rb#33 + def exception; end +end + +# source://parallel//lib/parallel.rb#98 +class Parallel::JobFactory + # @return [JobFactory] a new instance of JobFactory + # + # source://parallel//lib/parallel.rb#99 + def initialize(source, mutex); end + + # source://parallel//lib/parallel.rb#107 + def next; end + + # generate item that is sent to workers + # just index is faster + less likely to blow up with unserializable errors + # + # source://parallel//lib/parallel.rb#136 + def pack(item, index); end + + # source://parallel//lib/parallel.rb#126 + def size; end + + # unpack item that is sent to workers + # + # source://parallel//lib/parallel.rb#141 + def unpack(data); end + + private + + # @return [Boolean] + # + # source://parallel//lib/parallel.rb#147 + def producer?; end + + # source://parallel//lib/parallel.rb#151 + def queue_wrapper(array); end +end + +# source://parallel//lib/parallel.rb#20 +class Parallel::Kill < ::Parallel::Break; end + +# source://parallel//lib/parallel.rb#6 +Parallel::Stop = T.let(T.unsafe(nil), Object) + +# source://parallel//lib/parallel.rb#23 +class Parallel::UndumpableException < ::StandardError + # @return [UndumpableException] a new instance of UndumpableException + # + # source://parallel//lib/parallel.rb#26 + def initialize(original); end + + # Returns the value of attribute backtrace. + # + # source://parallel//lib/parallel.rb#24 + def backtrace; end +end + +# source://parallel//lib/parallel.rb#156 +class Parallel::UserInterruptHandler + class << self + # source://parallel//lib/parallel.rb#181 + def kill(thing); end + + # kill all these pids or threads if user presses Ctrl+c + # + # source://parallel//lib/parallel.rb#161 + def kill_on_ctrl_c(pids, options); end + + private + + # source://parallel//lib/parallel.rb#205 + def restore_interrupt(old, signal); end + + # source://parallel//lib/parallel.rb#190 + def trap_interrupt(signal); end + end +end + +# source://parallel//lib/parallel.rb#157 +Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol) + +# source://parallel//lib/parallel/version.rb#3 +Parallel::VERSION = T.let(T.unsafe(nil), String) + +# source://parallel//lib/parallel/version.rb#3 +Parallel::Version = T.let(T.unsafe(nil), String) + +# source://parallel//lib/parallel.rb#51 +class Parallel::Worker + # @return [Worker] a new instance of Worker + # + # source://parallel//lib/parallel.rb#55 + def initialize(read, write, pid); end + + # might be passed to started_processes and simultaneously closed by another thread + # when running in isolation mode, so we have to check if it is closed before closing + # + # source://parallel//lib/parallel.rb#68 + def close_pipes; end + + # Returns the value of attribute pid. + # + # source://parallel//lib/parallel.rb#52 + def pid; end + + # Returns the value of attribute read. + # + # source://parallel//lib/parallel.rb#52 + def read; end + + # source://parallel//lib/parallel.rb#61 + def stop; end + + # Returns the value of attribute thread. + # + # source://parallel//lib/parallel.rb#53 + def thread; end + + # Sets the attribute thread + # + # @param value the value to set the attribute thread to. + # + # source://parallel//lib/parallel.rb#53 + def thread=(_arg0); end + + # source://parallel//lib/parallel.rb#73 + def work(data); end + + # Returns the value of attribute write. + # + # source://parallel//lib/parallel.rb#52 + def write; end + + private + + # source://parallel//lib/parallel.rb#91 + def wait; end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/parser@3.2.2.4.rbi b/ruby-client-sdk/sorbet/rbi/gems/parser@3.2.2.4.rbi new file mode 100755 index 000000000..ac559e2e3 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/parser@3.2.2.4.rbi @@ -0,0 +1,5451 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `parser` gem. +# Please instead update this file by running `bin/tapioca gem parser`. + +# @api public +# +# source://parser//lib/parser.rb#19 +module Parser; end + +# @api public +# +# source://parser//lib/parser.rb#24 +module Parser::AST; end + +# {Parser::AST::Node} contains information about a single AST node and its +# child nodes. It extends the basic [AST::Node](https://www.rubydoc.info/gems/ast/AST/Node) +# class provided by gem [ast](https://www.rubydoc.info/gems/ast). +# +# @api public +# +# source://parser//lib/parser/ast/node.rb#17 +class Parser::AST::Node < ::AST::Node + # Assigns various properties to this AST node. Currently only the + # location can be set. + # + # @api public + # @option properties + # @param properties [Hash] + # + # source://parser//lib/parser/ast/node.rb#30 + def assign_properties(properties); end + + # Source map for this Node. + # + # @api public + # @return [Parser::Source::Map] + # + # source://parser//lib/parser/ast/node.rb#18 + def loc; end + + # Source map for this Node. + # + # @api public + # @return [Parser::Source::Map] + # + # source://parser//lib/parser/ast/node.rb#18 + def location; end +end + +# @api public +# +# source://parser//lib/parser/ast/processor.rb#9 +class Parser::AST::Processor < ::AST::Processor + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_alias(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_and(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_and_asgn(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_arg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_arg_expr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_args(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#103 + def on_argument(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_array(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_array_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_array_pattern_with_tail(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_back_ref(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_begin(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_block(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_block_pass(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_blockarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_blockarg_expr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_break(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_case(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_case_match(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#87 + def on_casgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_class(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#79 + def on_const(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_const_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#179 + def on_csend(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_cvar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_cvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#158 + def on_def(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_defined?(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#167 + def on_defs(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_dstr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_dsym(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_eflipflop(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#286 + def on_empty_else(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_ensure(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_erange(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_find_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_for(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_forward_arg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_forwarded_kwrestarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_forwarded_restarg(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_gvar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_gvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_hash(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_hash_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_if(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_if_guard(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_iflipflop(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_in_match(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_in_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_index(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_indexasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_irange(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_ivar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_ivasgn(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_kwarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_kwargs(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_kwbegin(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_kwoptarg(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_kwrestarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_kwsplat(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_lambda(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_lvar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_lvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_masgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_alt(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_as(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_current_line(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_pattern_p(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_rest(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_match_var(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_with_lvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_mlhs(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_module(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_next(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_not(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_nth_ref(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#196 + def on_numblock(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#68 + def on_op_asgn(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_optarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_or(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_or_asgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_pair(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_pin(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_postexe(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_preexe(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#130 + def on_procarg0(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_redo(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_regexp(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_resbody(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_rescue(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_restarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_restarg_expr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_retry(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_return(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_sclass(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#179 + def on_send(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_shadowarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_splat(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_super(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_undef(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_unless_guard(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_until(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_until_post(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#27 + def on_var(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#43 + def on_vasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_when(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_while(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_while_post(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_xstr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_yield(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#279 + def process_argument_node(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def process_regular_node(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#271 + def process_var_asgn_node(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#263 + def process_variable_node(node); end +end + +# Base class for version-specific parsers. +# +# @api public +# +# source://parser//lib/parser/base.rb#16 +class Parser::Base < ::Racc::Parser + # @api public + # @param builder [Parser::Builders::Default] The AST builder to use. + # @return [Base] a new instance of Base + # + # source://parser//lib/parser/base.rb#126 + def initialize(builder = T.unsafe(nil)); end + + # @api public + # + # source://parser//lib/parser/base.rb#114 + def builder; end + + # @api public + # + # source://parser//lib/parser/base.rb#117 + def context; end + + # @api public + # + # source://parser//lib/parser/base.rb#119 + def current_arg_stack; end + + # @api public + # @return [Parser::Diagnostic::Engine] + # + # source://parser//lib/parser/base.rb#113 + def diagnostics; end + + # @api public + # + # source://parser//lib/parser/base.rb#112 + def lexer; end + + # @api public + # + # source://parser//lib/parser/base.rb#118 + def max_numparam_stack; end + + # Parses a source buffer and returns the AST, or `nil` in case of a non fatal error. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] The source buffer to parse. + # @return [Parser::AST::Node, nil] + # + # source://parser//lib/parser/base.rb#186 + def parse(source_buffer); end + + # Parses a source buffer and returns the AST and the source code comments. + # + # @api public + # @return [Array] + # @see #parse + # @see Parser::Source::Comment#associate + # + # source://parser//lib/parser/base.rb#204 + def parse_with_comments(source_buffer); end + + # @api public + # + # source://parser//lib/parser/base.rb#121 + def pattern_hash_keys; end + + # @api public + # + # source://parser//lib/parser/base.rb#120 + def pattern_variables; end + + # Resets the state of the parser. + # + # @api public + # + # source://parser//lib/parser/base.rb#167 + def reset; end + + # @api public + # + # source://parser//lib/parser/base.rb#116 + def source_buffer; end + + # @api public + # @return [Parser::StaticEnvironment] + # + # source://parser//lib/parser/base.rb#115 + def static_env; end + + # Parses a source buffer and returns the AST, the source code comments, + # and the tokens emitted by the lexer. In case of a fatal error, a {SyntaxError} + # is raised, unless `recover` is true. In case of an error + # (non-fatal or recovered), `nil` is returned instead of the AST, and + # comments as well as tokens are only returned up to the location of + # the error. + # + # Currently, token stream format returned by #tokenize is not documented, + # but is considered part of a public API and only changed according + # to Semantic Versioning. + # + # However, note that the exact token composition of various constructs + # might vary. For example, a string `"foo"` is represented equally well + # by `:tSTRING_BEG " :tSTRING_CONTENT foo :tSTRING_END "` and + # `:tSTRING "foo"`; such details must not be relied upon. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param recover [Boolean] If true, recover from syntax errors. False by default. + # @return [Array] + # + # source://parser//lib/parser/base.rb#233 + def tokenize(source_buffer, recover = T.unsafe(nil)); end + + private + + # @api public + # + # source://parser//lib/parser/base.rb#257 + def check_kwarg_name(name_t); end + + # @api public + # + # source://parser//lib/parser/base.rb#266 + def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end + + # @api public + # + # source://parser//lib/parser/base.rb#251 + def next_token; end + + # @api public + # + # source://parser//lib/parser/base.rb#282 + def on_error(error_token_id, error_value, value_stack); end + + class << self + # @api public + # @return [Parser::Base] parser with the default options set. + # + # source://parser//lib/parser/base.rb#84 + def default_parser; end + + # Parses a string of Ruby code and returns the AST. If the source + # cannot be parsed, {SyntaxError} is raised and a diagnostic is + # printed to `stderr`. + # + # @api public + # @example + # Parser::Base.parse('puts "hello"') + # @param string [String] The block of code to parse. + # @param file [String] The name of the file the code originated from. + # @param line [Numeric] The initial line number. + # @return [Parser::AST::Node] + # + # source://parser//lib/parser/base.rb#30 + def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end + + # Parses Ruby source code by reading it from a file. If the source + # cannot be parsed, {SyntaxError} is raised and a diagnostic is + # printed to `stderr`. + # + # @api public + # @param filename [String] Path to the file to parse. + # @return [Parser::AST::Node] + # @see #parse + # + # source://parser//lib/parser/base.rb#64 + def parse_file(filename); end + + # Parses Ruby source code by reading it from a file and returns the AST and + # comments. If the source cannot be parsed, {SyntaxError} is raised and a + # diagnostic is printed to `stderr`. + # + # @api public + # @param filename [String] Path to the file to parse. + # @return [Array] + # @see #parse + # + # source://parser//lib/parser/base.rb#77 + def parse_file_with_comments(filename); end + + # Parses a string of Ruby code and returns the AST and comments. If the + # source cannot be parsed, {SyntaxError} is raised and a diagnostic is + # printed to `stderr`. + # + # @api public + # @example + # Parser::Base.parse_with_comments('puts "hello"') + # @param string [String] The block of code to parse. + # @param file [String] The name of the file the code originated from. + # @param line [Numeric] The initial line number. + # @return [Array] + # + # source://parser//lib/parser/base.rb#49 + def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end + + private + + # @api public + # + # source://parser//lib/parser/base.rb#97 + def setup_source_buffer(file, line, string, encoding); end + end +end + +# @api public +# +# source://parser//lib/parser.rb#77 +module Parser::Builders; end + +# source://parser//lib/parser/builders/default.rb#8 +class Parser::Builders::Default + # source://parser//lib/parser/builders/default.rb#243 + def initialize; end + + # source://parser//lib/parser/builders/default.rb#690 + def __ENCODING__(__ENCODING__t); end + + # source://parser//lib/parser/builders/default.rb#348 + def __FILE__(__FILE__t); end + + # source://parser//lib/parser/builders/default.rb#312 + def __LINE__(__LINE__t); end + + # source://parser//lib/parser/builders/default.rb#616 + def accessible(node); end + + # source://parser//lib/parser/builders/default.rb#865 + def alias(alias_t, to, from); end + + # source://parser//lib/parser/builders/default.rb#904 + def arg(name_t); end + + # source://parser//lib/parser/builders/default.rb#994 + def arg_expr(expr); end + + # source://parser//lib/parser/builders/default.rb#874 + def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#440 + def array(begin_t, elements, end_t); end + + # source://parser//lib/parser/builders/default.rb#1577 + def array_pattern(lbrack_t, elements, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#754 + def assign(lhs, eql_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#699 + def assignable(node); end + + # source://parser//lib/parser/builders/default.rb#540 + def associate(begin_t, pairs, end_t); end + + # source://parser//lib/parser/builders/default.rb#1158 + def attr_asgn(receiver, dot_t, selector_t); end + + # source://parser//lib/parser/builders/default.rb#606 + def back_ref(token); end + + # source://parser//lib/parser/builders/default.rb#1422 + def begin(begin_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1364 + def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1440 + def begin_keyword(begin_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1192 + def binary_op(receiver, operator_t, arg); end + + # source://parser//lib/parser/builders/default.rb#1109 + def block(method_call, begin_t, args, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1144 + def block_pass(amper_t, arg); end + + # source://parser//lib/parser/builders/default.rb#969 + def blockarg(amper_t, name_t); end + + # source://parser//lib/parser/builders/default.rb#1014 + def blockarg_expr(amper_t, expr); end + + # source://parser//lib/parser/builders/default.rb#1100 + def call_lambda(lambda_t); end + + # source://parser//lib/parser/builders/default.rb#1083 + def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1055 + def call_type_for_dot(dot_t); end + + # source://parser//lib/parser/builders/default.rb#1297 + def case(case_t, expr, when_bodies, else_t, else_body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1460 + def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end + + # source://parser//lib/parser/builders/default.rb#343 + def character(char_t); end + + # source://parser//lib/parser/builders/default.rb#284 + def complex(complex_t); end + + # source://parser//lib/parser/builders/default.rb#1410 + def compstmt(statements); end + + # source://parser//lib/parser/builders/default.rb#1273 + def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end + + # source://parser//lib/parser/builders/default.rb#1279 + def condition_mod(if_true, if_false, cond_t, cond); end + + # source://parser//lib/parser/builders/default.rb#673 + def const(name_t); end + + # source://parser//lib/parser/builders/default.rb#685 + def const_fetch(scope, t_colon2, name_t); end + + # source://parser//lib/parser/builders/default.rb#678 + def const_global(t_colon3, name_t); end + + # source://parser//lib/parser/builders/default.rb#750 + def const_op_assignable(node); end + + # source://parser//lib/parser/builders/default.rb#1607 + def const_pattern(const, ldelim_t, pattern, rdelim_t); end + + # source://parser//lib/parser/builders/default.rb#601 + def cvar(token); end + + # source://parser//lib/parser/builders/default.rb#388 + def dedent_string(node, dedent_level); end + + # source://parser//lib/parser/builders/default.rb#801 + def def_class(class_t, name, lt_t, superclass, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#832 + def def_endless_method(def_t, name_t, args, assignment_t, body); end + + # source://parser//lib/parser/builders/default.rb#850 + def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end + + # source://parser//lib/parser/builders/default.rb#824 + def def_method(def_t, name_t, args, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#814 + def def_module(module_t, name, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#808 + def def_sclass(class_t, lshft_t, expr, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#840 + def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#237 + def emit_file_line_as_literals; end + + # source://parser//lib/parser/builders/default.rb#237 + def emit_file_line_as_literals=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#265 + def false(false_t); end + + # source://parser//lib/parser/builders/default.rb#1598 + def find_pattern(lbrack_t, elements, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#276 + def float(float_t); end + + # source://parser//lib/parser/builders/default.rb#1318 + def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#900 + def forward_arg(dots_t); end + + # source://parser//lib/parser/builders/default.rb#890 + def forward_only_args(begin_t, dots_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1071 + def forwarded_args(dots_t); end + + # source://parser//lib/parser/builders/default.rb#1079 + def forwarded_kwrestarg(dstar_t); end + + # source://parser//lib/parser/builders/default.rb#1075 + def forwarded_restarg(star_t); end + + # source://parser//lib/parser/builders/default.rb#596 + def gvar(token); end + + # source://parser//lib/parser/builders/default.rb#1571 + def hash_pattern(lbrace_t, kwargs, rbrace_t); end + + # source://parser//lib/parser/builders/default.rb#586 + def ident(token); end + + # source://parser//lib/parser/builders/default.rb#1487 + def if_guard(if_t, if_body); end + + # source://parser//lib/parser/builders/default.rb#1466 + def in_match(lhs, in_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1481 + def in_pattern(in_t, pattern, guard, then_t, body); end + + # source://parser//lib/parser/builders/default.rb#1167 + def index(receiver, lbrack_t, indexes, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#1181 + def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#272 + def integer(integer_t); end + + # source://parser//lib/parser/builders/default.rb#591 + def ivar(token); end + + # source://parser//lib/parser/builders/default.rb#1326 + def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#931 + def kwarg(name_t); end + + # source://parser//lib/parser/builders/default.rb#957 + def kwnilarg(dstar_t, nil_t); end + + # source://parser//lib/parser/builders/default.rb#938 + def kwoptarg(name_t, value); end + + # source://parser//lib/parser/builders/default.rb#945 + def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#535 + def kwsplat(dstar_t, arg); end + + # source://parser//lib/parser/builders/default.rb#1266 + def logical_op(type, lhs, op_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1304 + def loop(type, keyword_t, cond, do_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1309 + def loop_mod(type, body, keyword_t, cond); end + + # source://parser//lib/parser/builders/default.rb#1621 + def match_alt(left, pipe_t, right); end + + # source://parser//lib/parser/builders/default.rb#1628 + def match_as(value, assoc_t, as); end + + # source://parser//lib/parser/builders/default.rb#1507 + def match_hash_var(name_t); end + + # source://parser//lib/parser/builders/default.rb#1521 + def match_hash_var_from_str(begin_t, strings, end_t); end + + # source://parser//lib/parser/builders/default.rb#1659 + def match_label(label_type, label); end + + # source://parser//lib/parser/builders/default.rb#1635 + def match_nil_pattern(dstar_t, nil_t); end + + # source://parser//lib/parser/builders/default.rb#1214 + def match_op(receiver, match_t, arg); end + + # source://parser//lib/parser/builders/default.rb#1640 + def match_pair(label_type, label, value); end + + # source://parser//lib/parser/builders/default.rb#1471 + def match_pattern(lhs, match_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1476 + def match_pattern_p(lhs, match_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1560 + def match_rest(star_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1495 + def match_var(name_t); end + + # source://parser//lib/parser/builders/default.rb#1603 + def match_with_trailing_comma(match, comma_t); end + + # source://parser//lib/parser/builders/default.rb#792 + def multi_assign(lhs, eql_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#787 + def multi_lhs(begin_t, items, end_t); end + + # source://parser//lib/parser/builders/default.rb#255 + def nil(nil_t); end + + # source://parser//lib/parser/builders/default.rb#1242 + def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#611 + def nth_ref(token); end + + # source://parser//lib/parser/builders/default.rb#886 + def numargs(max_numparam); end + + # source://parser//lib/parser/builders/default.rb#1025 + def objc_kwarg(kwname_t, assoc_t, name_t); end + + # source://parser//lib/parser/builders/default.rb#1039 + def objc_restarg(star_t, name = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1149 + def objc_varargs(pair, rest_of_varargs); end + + # source://parser//lib/parser/builders/default.rb#761 + def op_assign(lhs, op_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#911 + def optarg(name_t, eql_t, value); end + + # source://parser//lib/parser/builders/default.rb#488 + def pair(key, assoc_t, value); end + + # source://parser//lib/parser/builders/default.rb#505 + def pair_keyword(key_t, value); end + + # source://parser//lib/parser/builders/default.rb#521 + def pair_label(key_t); end + + # source://parser//lib/parser/builders/default.rb#493 + def pair_list_18(list); end + + # source://parser//lib/parser/builders/default.rb#513 + def pair_quoted(begin_t, parts, end_t, value); end + + # source://parser//lib/parser/builders/default.rb#225 + def parser; end + + # source://parser//lib/parser/builders/default.rb#225 + def parser=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#1616 + def pin(pin_t, var); end + + # source://parser//lib/parser/builders/default.rb#1349 + def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end + + # source://parser//lib/parser/builders/default.rb#1344 + def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end + + # source://parser//lib/parser/builders/default.rb#979 + def procarg0(arg); end + + # source://parser//lib/parser/builders/default.rb#572 + def range_exclusive(lhs, dot3_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#567 + def range_inclusive(lhs, dot2_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#280 + def rational(rational_t); end + + # source://parser//lib/parser/builders/default.rb#426 + def regexp_compose(begin_t, parts, end_t, options); end + + # source://parser//lib/parser/builders/default.rb#417 + def regexp_options(regopt_t); end + + # source://parser//lib/parser/builders/default.rb#1356 + def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end + + # source://parser//lib/parser/builders/default.rb#920 + def restarg(star_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1003 + def restarg_expr(star_t, expr = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#581 + def self(token); end + + # source://parser//lib/parser/builders/default.rb#962 + def shadowarg(name_t); end + + # source://parser//lib/parser/builders/default.rb#445 + def splat(star_t, arg = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#319 + def string(string_t); end + + # source://parser//lib/parser/builders/default.rb#329 + def string_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#324 + def string_internal(string_t); end + + # source://parser//lib/parser/builders/default.rb#355 + def symbol(symbol_t); end + + # source://parser//lib/parser/builders/default.rb#365 + def symbol_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#360 + def symbol_internal(symbol_t); end + + # source://parser//lib/parser/builders/default.rb#469 + def symbols_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#1284 + def ternary(cond, question_t, if_true, colon_t, if_false); end + + # source://parser//lib/parser/builders/default.rb#260 + def true(true_t); end + + # source://parser//lib/parser/builders/default.rb#294 + def unary_num(unary_t, numeric); end + + # source://parser//lib/parser/builders/default.rb#1230 + def unary_op(op_t, receiver); end + + # source://parser//lib/parser/builders/default.rb#860 + def undef_method(undef_t, names); end + + # source://parser//lib/parser/builders/default.rb#1491 + def unless_guard(unless_t, unless_body); end + + # source://parser//lib/parser/builders/default.rb#1291 + def when(when_t, patterns, then_t, body); end + + # source://parser//lib/parser/builders/default.rb#455 + def word(parts); end + + # source://parser//lib/parser/builders/default.rb#464 + def words_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#381 + def xstring_compose(begin_t, parts, end_t); end + + private + + # source://parser//lib/parser/builders/default.rb#1808 + def arg_name_collides?(this_name, that_name); end + + # source://parser//lib/parser/builders/default.rb#2004 + def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1978 + def binary_op_map(left_e, op_t, right_e); end + + # source://parser//lib/parser/builders/default.rb#2106 + def block_map(receiver_l, begin_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1783 + def check_assignment_to_numparam(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1675 + def check_condition(cond); end + + # source://parser//lib/parser/builders/default.rb#1754 + def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1729 + def check_duplicate_args(args, map = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1841 + def check_duplicate_pattern_key(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1831 + def check_duplicate_pattern_variable(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1823 + def check_lvar_name(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1798 + def check_reserved_for_numparam(name, loc); end + + # source://parser//lib/parser/builders/default.rb#2263 + def collapse_string_parts?(parts); end + + # source://parser//lib/parser/builders/default.rb#1929 + def collection_map(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#2133 + def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end + + # source://parser//lib/parser/builders/default.rb#1964 + def constant_map(scope, colon2_t, name_t); end + + # source://parser//lib/parser/builders/default.rb#2037 + def definition_map(keyword_t, operator_t, name_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1870 + def delimited_string_map(string_t); end + + # source://parser//lib/parser/builders/default.rb#2285 + def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#2177 + def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end + + # source://parser//lib/parser/builders/default.rb#2043 + def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end + + # source://parser//lib/parser/builders/default.rb#1925 + def expr_map(loc); end + + # source://parser//lib/parser/builders/default.rb#2158 + def for_map(keyword_t, in_t, begin_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#2205 + def guard_map(keyword_t, guard_body_e); end + + # source://parser//lib/parser/builders/default.rb#2095 + def index_map(receiver_e, lbrack_t, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#1861 + def join_exprs(left_expr, right_expr); end + + # source://parser//lib/parser/builders/default.rb#2111 + def keyword_map(keyword_t, begin_t, args, end_t); end + + # source://parser//lib/parser/builders/default.rb#2128 + def keyword_mod_map(pre_e, keyword_t, post_e); end + + # source://parser//lib/parser/builders/default.rb#2014 + def kwarg_map(name_t, value_e = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#2316 + def kwargs?(node); end + + # source://parser//lib/parser/builders/default.rb#2280 + def loc(token); end + + # source://parser//lib/parser/builders/default.rb#2027 + def module_definition_map(keyword_t, name_e, operator_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1853 + def n(type, children, source_map); end + + # source://parser//lib/parser/builders/default.rb#1857 + def n0(type, source_map); end + + # source://parser//lib/parser/builders/default.rb#288 + def numeric(kind, token); end + + # source://parser//lib/parser/builders/default.rb#1895 + def pair_keyword_map(key_t, value_e); end + + # source://parser//lib/parser/builders/default.rb#1910 + def pair_quoted_map(begin_t, end_t, value_e); end + + # source://parser//lib/parser/builders/default.rb#1881 + def prefix_string_map(symbol); end + + # source://parser//lib/parser/builders/default.rb#1992 + def range_map(start_e, op_t, end_e); end + + # source://parser//lib/parser/builders/default.rb#1959 + def regexp_map(begin_t, end_t, options_e); end + + # source://parser//lib/parser/builders/default.rb#2164 + def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end + + # source://parser//lib/parser/builders/default.rb#2306 + def rewrite_hash_args_to_kwargs(args); end + + # source://parser//lib/parser/builders/default.rb#2077 + def send_binary_op_map(lhs_e, selector_t, rhs_e); end + + # source://parser//lib/parser/builders/default.rb#2100 + def send_index_map(receiver_e, lbrack_t, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#2051 + def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#2083 + def send_unary_op_map(selector_t, arg_e); end + + # source://parser//lib/parser/builders/default.rb#2236 + def static_regexp(parts, options); end + + # source://parser//lib/parser/builders/default.rb#2256 + def static_regexp_node(node); end + + # source://parser//lib/parser/builders/default.rb#2219 + def static_string(nodes); end + + # source://parser//lib/parser/builders/default.rb#1945 + def string_map(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#2272 + def string_value(token); end + + # source://parser//lib/parser/builders/default.rb#2153 + def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end + + # source://parser//lib/parser/builders/default.rb#1866 + def token_map(token); end + + # source://parser//lib/parser/builders/default.rb#1982 + def unary_op_map(op_t, arg_e = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1890 + def unquoted_map(token); end + + # source://parser//lib/parser/builders/default.rb#2294 + def validate_definee(definee); end + + # source://parser//lib/parser/builders/default.rb#1768 + def validate_no_forward_arg_after_restarg(args); end + + # source://parser//lib/parser/builders/default.rb#2268 + def value(token); end + + # source://parser//lib/parser/builders/default.rb#2071 + def var_send_map(variable_e); end + + # source://parser//lib/parser/builders/default.rb#1974 + def variable_map(name_t); end + + class << self + # source://parser//lib/parser/builders/default.rb#97 + def emit_arg_inside_procarg0; end + + # source://parser//lib/parser/builders/default.rb#97 + def emit_arg_inside_procarg0=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#58 + def emit_encoding; end + + # source://parser//lib/parser/builders/default.rb#58 + def emit_encoding=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#126 + def emit_forward_arg; end + + # source://parser//lib/parser/builders/default.rb#126 + def emit_forward_arg=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#80 + def emit_index; end + + # source://parser//lib/parser/builders/default.rb#80 + def emit_index=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#174 + def emit_kwargs; end + + # source://parser//lib/parser/builders/default.rb#174 + def emit_kwargs=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#22 + def emit_lambda; end + + # source://parser//lib/parser/builders/default.rb#22 + def emit_lambda=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#203 + def emit_match_pattern; end + + # source://parser//lib/parser/builders/default.rb#203 + def emit_match_pattern=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#40 + def emit_procarg0; end + + # source://parser//lib/parser/builders/default.rb#40 + def emit_procarg0=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#211 + def modernize; end + end +end + +# {Parser::ClobberingError} is raised when {Parser::Source::Rewriter} +# detects a clobbering rewrite action. This class inherits {RuntimeError} +# rather than {StandardError} for backward compatibility. +# +# @api public +# +# source://parser//lib/parser/clobbering_error.rb#11 +class Parser::ClobberingError < ::RuntimeError; end + +# Context of parsing that is represented by a stack of scopes. +# +# Supported states: +# + :class - in the class body (class A; end) +# + :module - in the module body (module M; end) +# + :sclass - in the singleton class body (class << obj; end) +# + :def - in the method body (def m; end) +# + :defs - in the singleton method body (def self.m; end) +# + :def_open_args - in the arglist of the method definition +# keep in mind that it's set **only** after reducing the first argument, +# if you need to handle the first argument check `lex_state == expr_fname` +# + :block - in the block body (tap {}) +# + :lambda - in the lambda body (-> {}) +# +# source://parser//lib/parser/context.rb#18 +class Parser::Context + # @return [Context] a new instance of Context + # + # source://parser//lib/parser/context.rb#29 + def initialize; end + + # source://parser//lib/parser/context.rb#43 + def in_argdef; end + + # source://parser//lib/parser/context.rb#43 + def in_argdef=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_block; end + + # source://parser//lib/parser/context.rb#43 + def in_block=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_class; end + + # source://parser//lib/parser/context.rb#43 + def in_class=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_def; end + + # source://parser//lib/parser/context.rb#43 + def in_def=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_defined; end + + # source://parser//lib/parser/context.rb#43 + def in_defined=(_arg0); end + + # @return [Boolean] + # + # source://parser//lib/parser/context.rb#45 + def in_dynamic_block?; end + + # source://parser//lib/parser/context.rb#43 + def in_kwarg; end + + # source://parser//lib/parser/context.rb#43 + def in_kwarg=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_lambda; end + + # source://parser//lib/parser/context.rb#43 + def in_lambda=(_arg0); end + + # source://parser//lib/parser/context.rb#33 + def reset; end +end + +# source://parser//lib/parser/context.rb#19 +Parser::Context::FLAGS = T.let(T.unsafe(nil), Array) + +# Stack that holds names of current arguments, +# i.e. while parsing +# def m1(a = (def m2(b = def m3(c = 1); end); end)); end +# ^ +# stack is [:a, :b, :c] +# +# Emulates `p->cur_arg` in MRI's parse.y +# +# @api private +# +# source://parser//lib/parser/current_arg_stack.rb#14 +class Parser::CurrentArgStack + # @api private + # @return [CurrentArgStack] a new instance of CurrentArgStack + # + # source://parser//lib/parser/current_arg_stack.rb#17 + def initialize; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/current_arg_stack.rb#22 + def empty?; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#34 + def pop; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#26 + def push(value); end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#38 + def reset; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#30 + def set(value); end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#15 + def stack; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#42 + def top; end +end + +# @api private +# +# source://parser//lib/parser/deprecation.rb#7 +module Parser::Deprecation + # @api private + # + # source://parser//lib/parser/deprecation.rb#9 + def warn_of_deprecation; end + + # @api private + # + # source://parser//lib/parser/deprecation.rb#8 + def warned_of_deprecation=(_arg0); end +end + +# @api public +# +# source://parser//lib/parser/diagnostic.rb#31 +class Parser::Diagnostic + # @api public + # @param level [Symbol] + # @param reason [Symbol] + # @param arguments [Hash] + # @param location [Parser::Source::Range] + # @param highlights [Array] + # @return [Diagnostic] a new instance of Diagnostic + # + # source://parser//lib/parser/diagnostic.rb#49 + def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end + + # @api public + # @return [Symbol] extended arguments that describe the error + # @see Parser::MESSAGES + # + # source://parser//lib/parser/diagnostic.rb#39 + def arguments; end + + # Supplementary error-related source ranges. + # + # @api public + # @return [Array] + # + # source://parser//lib/parser/diagnostic.rb#40 + def highlights; end + + # @api public + # @return [Symbol] diagnostic level + # @see LEVELS + # + # source://parser//lib/parser/diagnostic.rb#39 + def level; end + + # Main error-related source range. + # + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/diagnostic.rb#40 + def location; end + + # @api public + # @return [String] the rendered message. + # + # source://parser//lib/parser/diagnostic.rb#69 + def message; end + + # @api public + # @return [Symbol] reason for error + # @see Parser::MESSAGES + # + # source://parser//lib/parser/diagnostic.rb#39 + def reason; end + + # Renders the diagnostic message as a clang-like diagnostic. + # + # @api public + # @example + # diagnostic.render # => + # # [ + # # "(fragment:0):1:5: error: unexpected token $end", + # # "foo +", + # # " ^" + # # ] + # @return [Array] + # + # source://parser//lib/parser/diagnostic.rb#86 + def render; end + + private + + # If necessary, shrink a `Range` so as to include only the first line. + # + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/diagnostic.rb#142 + def first_line_only(range); end + + # If necessary, shrink a `Range` so as to include only the last line. + # + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/diagnostic.rb#155 + def last_line_only(range); end + + # Renders one source line in clang diagnostic style, with highlights. + # + # @api public + # @return [Array] + # + # source://parser//lib/parser/diagnostic.rb#110 + def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end +end + +# source://parser//lib/parser/diagnostic/engine.rb#36 +class Parser::Diagnostic::Engine + # source://parser//lib/parser/diagnostic/engine.rb#45 + def initialize(consumer = T.unsafe(nil)); end + + # source://parser//lib/parser/diagnostic/engine.rb#39 + def all_errors_are_fatal; end + + # source://parser//lib/parser/diagnostic/engine.rb#39 + def all_errors_are_fatal=(_arg0); end + + # source://parser//lib/parser/diagnostic/engine.rb#37 + def consumer; end + + # source://parser//lib/parser/diagnostic/engine.rb#37 + def consumer=(_arg0); end + + # source://parser//lib/parser/diagnostic/engine.rb#40 + def ignore_warnings; end + + # source://parser//lib/parser/diagnostic/engine.rb#40 + def ignore_warnings=(_arg0); end + + # source://parser//lib/parser/diagnostic/engine.rb#64 + def process(diagnostic); end + + protected + + # source://parser//lib/parser/diagnostic/engine.rb#86 + def ignore?(diagnostic); end + + # source://parser//lib/parser/diagnostic/engine.rb#97 + def raise?(diagnostic); end +end + +# Collection of the available diagnostic levels. +# +# @api public +# @return [Array] +# +# source://parser//lib/parser/diagnostic.rb#37 +Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array) + +# line 3 "lib/parser/lexer.rl" +# +# === BEFORE YOU START === +# +# Read the Ruby Hacking Guide chapter 11, available in English at +# http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/ +# +# Remember two things about Ragel scanners: +# +# 1) Longest match wins. +# +# 2) If two matches have the same length, the first +# in source code wins. +# +# General rules of making Ragel and Bison happy: +# +# * `p` (position) and `@te` contain the index of the character +# they're pointing to ("current"), plus one. `@ts` contains the index +# of the corresponding character. The code for extracting matched token is: +# +# @source_buffer.slice(@ts...@te) +# +# * If your input is `foooooooobar` and the rule is: +# +# 'f' 'o'+ +# +# the result will be: +# +# foooooooobar +# ^ ts=0 ^ p=te=9 +# +# * A Ragel lexer action should not emit more than one token, unless +# you know what you are doing. +# +# * All Ragel commands (fnext, fgoto, ...) end with a semicolon. +# +# * If an action emits the token and transitions to another state, use +# these Ragel commands: +# +# emit($whatever) +# fnext $next_state; fbreak; +# +# If you perform `fgoto` in an action which does not emit a token nor +# rewinds the stream pointer, the parser's side-effectful, +# context-sensitive lookahead actions will break in a hard to detect +# and debug way. +# +# * If an action does not emit a token: +# +# fgoto $next_state; +# +# * If an action features lookbehind, i.e. matches characters with the +# intent of passing them to another action: +# +# p = @ts - 1 +# fgoto $next_state; +# +# or, if the lookbehind consists of a single character: +# +# fhold; fgoto $next_state; +# +# * Ragel merges actions. So, if you have `e_lparen = '(' %act` and +# `c_lparen = '('` and a lexer action `e_lparen | c_lparen`, the result +# _will_ invoke the action `act`. +# +# e_something stands for "something with **e**mbedded action". +# +# * EOF is explicit and is matched by `c_eof`. If you want to introspect +# the state of the lexer, add this rule to the state: +# +# c_eof => do_eof; +# +# * If you proceed past EOF, the lexer will complain: +# +# NoMethodError: undefined method `ord' for nil:NilClass +# +# source://parser//lib/parser/lexer-F1.rb#82 +class Parser::Lexer + # @return [Lexer] a new instance of Lexer + # + # source://parser//lib/parser/lexer-F1.rb#8250 + def initialize(version); end + + # Return next token: [type, value]. + # + # source://parser//lib/parser/lexer-F1.rb#8410 + def advance; end + + # Returns the value of attribute cmdarg. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def cmdarg; end + + # Sets the attribute cmdarg + # + # @param value the value to set the attribute cmdarg to. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def cmdarg=(_arg0); end + + # Returns the value of attribute cmdarg_stack. + # + # source://parser//lib/parser/lexer-F1.rb#8248 + def cmdarg_stack; end + + # Returns the value of attribute command_start. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def command_start; end + + # Sets the attribute command_start + # + # @param value the value to set the attribute command_start to. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def command_start=(_arg0); end + + # Returns the value of attribute comments. + # + # source://parser//lib/parser/lexer-F1.rb#8246 + def comments; end + + # Sets the attribute comments + # + # @param value the value to set the attribute comments to. + # + # source://parser//lib/parser/lexer-F1.rb#8246 + def comments=(_arg0); end + + # Returns the value of attribute cond. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def cond; end + + # Sets the attribute cond + # + # @param value the value to set the attribute cond to. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def cond=(_arg0); end + + # Returns the value of attribute cond_stack. + # + # source://parser//lib/parser/lexer-F1.rb#8248 + def cond_stack; end + + # Returns the value of attribute context. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def context; end + + # Sets the attribute context + # + # @param value the value to set the attribute context to. + # + # source://parser//lib/parser/lexer-F1.rb#8244 + def context=(_arg0); end + + # source://parser//lib/parser/lexer-F1.rb#8405 + def dedent_level; end + + # Returns the value of attribute diagnostics. + # + # source://parser//lib/parser/lexer-F1.rb#8240 + def diagnostics; end + + # Sets the attribute diagnostics + # + # @param value the value to set the attribute diagnostics to. + # + # source://parser//lib/parser/lexer-F1.rb#8240 + def diagnostics=(_arg0); end + + # source://parser//lib/parser/lexer-F1.rb#8358 + def encoding; end + + # Returns the value of attribute force_utf32. + # + # source://parser//lib/parser/lexer-F1.rb#8242 + def force_utf32; end + + # Sets the attribute force_utf32 + # + # @param value the value to set the attribute force_utf32 to. + # + # source://parser//lib/parser/lexer-F1.rb#8242 + def force_utf32=(_arg0); end + + # Returns the value of attribute lambda_stack. + # + # source://parser//lib/parser/lexer-F1.rb#8248 + def lambda_stack; end + + # Returns the value of attribute paren_nest. + # + # source://parser//lib/parser/lexer-F1.rb#8248 + def paren_nest; end + + # source://parser//lib/parser/lexer-F1.rb#8392 + def pop_cmdarg; end + + # source://parser//lib/parser/lexer-F1.rb#8401 + def pop_cond; end + + # source://parser//lib/parser/lexer-F1.rb#8387 + def push_cmdarg; end + + # source://parser//lib/parser/lexer-F1.rb#8396 + def push_cond; end + + # source://parser//lib/parser/lexer-F1.rb#8281 + def reset(reset_state = T.unsafe(nil)); end + + # % + # + # source://parser//lib/parser/lexer-F1.rb#8238 + def source_buffer; end + + # source://parser//lib/parser/lexer-F1.rb#8334 + def source_buffer=(source_buffer); end + + # source://parser//lib/parser/lexer-F1.rb#8379 + def state; end + + # source://parser//lib/parser/lexer-F1.rb#8383 + def state=(state); end + + # Returns the value of attribute static_env. + # + # source://parser//lib/parser/lexer-F1.rb#8241 + def static_env; end + + # Sets the attribute static_env + # + # @param value the value to set the attribute static_env to. + # + # source://parser//lib/parser/lexer-F1.rb#8241 + def static_env=(_arg0); end + + # Returns the value of attribute tokens. + # + # source://parser//lib/parser/lexer-F1.rb#8246 + def tokens; end + + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. + # + # source://parser//lib/parser/lexer-F1.rb#8246 + def tokens=(_arg0); end + + # Returns the value of attribute version. + # + # source://parser//lib/parser/lexer-F1.rb#8248 + def version; end + + protected + + # source://parser//lib/parser/lexer-F1.rb#14631 + def arg_or_cmdarg(cmd_state); end + + # source://parser//lib/parser/lexer-F1.rb#14693 + def check_ambiguous_slash(tm); end + + # source://parser//lib/parser/lexer-F1.rb#14655 + def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14661 + def e_lbrace; end + + # source://parser//lib/parser/lexer-F1.rb#14605 + def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14714 + def emit_class_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14742 + def emit_colon_with_digits(p, tm, diag_msg); end + + # source://parser//lib/parser/lexer-F1.rb#14639 + def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14651 + def emit_comment_from_range(p, pe); end + + # source://parser//lib/parser/lexer-F1.rb#14621 + def emit_do(do_block = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14704 + def emit_global_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14722 + def emit_instance_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14730 + def emit_rbrace_rparen_rbrack; end + + # source://parser//lib/parser/lexer-F1.rb#14752 + def emit_singleton_class; end + + # source://parser//lib/parser/lexer-F1.rb#14615 + def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14670 + def numeric_literal_int; end + + # source://parser//lib/parser/lexer-F1.rb#14689 + def on_newline(p); end + + # source://parser//lib/parser/lexer-F1.rb#14601 + def range(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#14592 + def stack_pop; end + + # source://parser//lib/parser/lexer-F1.rb#14597 + def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-F1.rb#14588 + def version?(*versions); end + + class << self + # Returns the value of attribute lex_en_expr_arg. + # + # source://parser//lib/parser/lexer-F1.rb#8186 + def lex_en_expr_arg; end + + # Sets the attribute lex_en_expr_arg + # + # @param value the value to set the attribute lex_en_expr_arg to. + # + # source://parser//lib/parser/lexer-F1.rb#8186 + def lex_en_expr_arg=(_arg0); end + + # Returns the value of attribute lex_en_expr_beg. + # + # source://parser//lib/parser/lexer-F1.rb#8202 + def lex_en_expr_beg; end + + # Sets the attribute lex_en_expr_beg + # + # @param value the value to set the attribute lex_en_expr_beg to. + # + # source://parser//lib/parser/lexer-F1.rb#8202 + def lex_en_expr_beg=(_arg0); end + + # Returns the value of attribute lex_en_expr_cmdarg. + # + # source://parser//lib/parser/lexer-F1.rb#8190 + def lex_en_expr_cmdarg; end + + # Sets the attribute lex_en_expr_cmdarg + # + # @param value the value to set the attribute lex_en_expr_cmdarg to. + # + # source://parser//lib/parser/lexer-F1.rb#8190 + def lex_en_expr_cmdarg=(_arg0); end + + # Returns the value of attribute lex_en_expr_dot. + # + # source://parser//lib/parser/lexer-F1.rb#8182 + def lex_en_expr_dot; end + + # Sets the attribute lex_en_expr_dot + # + # @param value the value to set the attribute lex_en_expr_dot to. + # + # source://parser//lib/parser/lexer-F1.rb#8182 + def lex_en_expr_dot=(_arg0); end + + # Returns the value of attribute lex_en_expr_end. + # + # source://parser//lib/parser/lexer-F1.rb#8214 + def lex_en_expr_end; end + + # Sets the attribute lex_en_expr_end + # + # @param value the value to set the attribute lex_en_expr_end to. + # + # source://parser//lib/parser/lexer-F1.rb#8214 + def lex_en_expr_end=(_arg0); end + + # Returns the value of attribute lex_en_expr_endarg. + # + # source://parser//lib/parser/lexer-F1.rb#8194 + def lex_en_expr_endarg; end + + # Sets the attribute lex_en_expr_endarg + # + # @param value the value to set the attribute lex_en_expr_endarg to. + # + # source://parser//lib/parser/lexer-F1.rb#8194 + def lex_en_expr_endarg=(_arg0); end + + # Returns the value of attribute lex_en_expr_endfn. + # + # source://parser//lib/parser/lexer-F1.rb#8178 + def lex_en_expr_endfn; end + + # Sets the attribute lex_en_expr_endfn + # + # @param value the value to set the attribute lex_en_expr_endfn to. + # + # source://parser//lib/parser/lexer-F1.rb#8178 + def lex_en_expr_endfn=(_arg0); end + + # Returns the value of attribute lex_en_expr_fname. + # + # source://parser//lib/parser/lexer-F1.rb#8174 + def lex_en_expr_fname; end + + # Sets the attribute lex_en_expr_fname + # + # @param value the value to set the attribute lex_en_expr_fname to. + # + # source://parser//lib/parser/lexer-F1.rb#8174 + def lex_en_expr_fname=(_arg0); end + + # Returns the value of attribute lex_en_expr_labelarg. + # + # source://parser//lib/parser/lexer-F1.rb#8206 + def lex_en_expr_labelarg; end + + # Sets the attribute lex_en_expr_labelarg + # + # @param value the value to set the attribute lex_en_expr_labelarg to. + # + # source://parser//lib/parser/lexer-F1.rb#8206 + def lex_en_expr_labelarg=(_arg0); end + + # Returns the value of attribute lex_en_expr_mid. + # + # source://parser//lib/parser/lexer-F1.rb#8198 + def lex_en_expr_mid; end + + # Sets the attribute lex_en_expr_mid + # + # @param value the value to set the attribute lex_en_expr_mid to. + # + # source://parser//lib/parser/lexer-F1.rb#8198 + def lex_en_expr_mid=(_arg0); end + + # Returns the value of attribute lex_en_expr_value. + # + # source://parser//lib/parser/lexer-F1.rb#8210 + def lex_en_expr_value; end + + # Sets the attribute lex_en_expr_value + # + # @param value the value to set the attribute lex_en_expr_value to. + # + # source://parser//lib/parser/lexer-F1.rb#8210 + def lex_en_expr_value=(_arg0); end + + # Returns the value of attribute lex_en_expr_variable. + # + # source://parser//lib/parser/lexer-F1.rb#8170 + def lex_en_expr_variable; end + + # Sets the attribute lex_en_expr_variable + # + # @param value the value to set the attribute lex_en_expr_variable to. + # + # source://parser//lib/parser/lexer-F1.rb#8170 + def lex_en_expr_variable=(_arg0); end + + # Returns the value of attribute lex_en_inside_string. + # + # source://parser//lib/parser/lexer-F1.rb#8230 + def lex_en_inside_string; end + + # Sets the attribute lex_en_inside_string + # + # @param value the value to set the attribute lex_en_inside_string to. + # + # source://parser//lib/parser/lexer-F1.rb#8230 + def lex_en_inside_string=(_arg0); end + + # Returns the value of attribute lex_en_leading_dot. + # + # source://parser//lib/parser/lexer-F1.rb#8218 + def lex_en_leading_dot; end + + # Sets the attribute lex_en_leading_dot + # + # @param value the value to set the attribute lex_en_leading_dot to. + # + # source://parser//lib/parser/lexer-F1.rb#8218 + def lex_en_leading_dot=(_arg0); end + + # Returns the value of attribute lex_en_line_begin. + # + # source://parser//lib/parser/lexer-F1.rb#8226 + def lex_en_line_begin; end + + # Sets the attribute lex_en_line_begin + # + # @param value the value to set the attribute lex_en_line_begin to. + # + # source://parser//lib/parser/lexer-F1.rb#8226 + def lex_en_line_begin=(_arg0); end + + # Returns the value of attribute lex_en_line_comment. + # + # source://parser//lib/parser/lexer-F1.rb#8222 + def lex_en_line_comment; end + + # Sets the attribute lex_en_line_comment + # + # @param value the value to set the attribute lex_en_line_comment to. + # + # source://parser//lib/parser/lexer-F1.rb#8222 + def lex_en_line_comment=(_arg0); end + + # Returns the value of attribute lex_error. + # + # source://parser//lib/parser/lexer-F1.rb#8165 + def lex_error; end + + # Sets the attribute lex_error + # + # @param value the value to set the attribute lex_error to. + # + # source://parser//lib/parser/lexer-F1.rb#8165 + def lex_error=(_arg0); end + + # Returns the value of attribute lex_start. + # + # source://parser//lib/parser/lexer-F1.rb#8161 + def lex_start; end + + # Sets the attribute lex_start + # + # @param value the value to set the attribute lex_start to. + # + # source://parser//lib/parser/lexer-F1.rb#8161 + def lex_start=(_arg0); end + + private + + # Returns the value of attribute _lex_eof_trans. + # + # source://parser//lib/parser/lexer-F1.rb#8064 + def _lex_eof_trans; end + + # Sets the attribute _lex_eof_trans + # + # @param value the value to set the attribute _lex_eof_trans to. + # + # source://parser//lib/parser/lexer-F1.rb#8064 + def _lex_eof_trans=(_arg0); end + + # Returns the value of attribute _lex_from_state_actions. + # + # source://parser//lib/parser/lexer-F1.rb#7967 + def _lex_from_state_actions; end + + # Sets the attribute _lex_from_state_actions + # + # @param value the value to set the attribute _lex_from_state_actions to. + # + # source://parser//lib/parser/lexer-F1.rb#7967 + def _lex_from_state_actions=(_arg0); end + + # Returns the value of attribute _lex_index_offsets. + # + # source://parser//lib/parser/lexer-F1.rb#461 + def _lex_index_offsets; end + + # Sets the attribute _lex_index_offsets + # + # @param value the value to set the attribute _lex_index_offsets to. + # + # source://parser//lib/parser/lexer-F1.rb#461 + def _lex_index_offsets=(_arg0); end + + # Returns the value of attribute _lex_indicies. + # + # source://parser//lib/parser/lexer-F1.rb#558 + def _lex_indicies; end + + # Sets the attribute _lex_indicies + # + # @param value the value to set the attribute _lex_indicies to. + # + # source://parser//lib/parser/lexer-F1.rb#558 + def _lex_indicies=(_arg0); end + + # Returns the value of attribute _lex_key_spans. + # + # source://parser//lib/parser/lexer-F1.rb#364 + def _lex_key_spans; end + + # Sets the attribute _lex_key_spans + # + # @param value the value to set the attribute _lex_key_spans to. + # + # source://parser//lib/parser/lexer-F1.rb#364 + def _lex_key_spans=(_arg0); end + + # Returns the value of attribute _lex_to_state_actions. + # + # source://parser//lib/parser/lexer-F1.rb#7870 + def _lex_to_state_actions; end + + # Sets the attribute _lex_to_state_actions + # + # @param value the value to set the attribute _lex_to_state_actions to. + # + # source://parser//lib/parser/lexer-F1.rb#7870 + def _lex_to_state_actions=(_arg0); end + + # Returns the value of attribute _lex_trans_actions. + # + # source://parser//lib/parser/lexer-F1.rb#7722 + def _lex_trans_actions; end + + # Sets the attribute _lex_trans_actions + # + # @param value the value to set the attribute _lex_trans_actions to. + # + # source://parser//lib/parser/lexer-F1.rb#7722 + def _lex_trans_actions=(_arg0); end + + # Returns the value of attribute _lex_trans_keys. + # + # source://parser//lib/parser/lexer-F1.rb#87 + def _lex_trans_keys; end + + # Sets the attribute _lex_trans_keys + # + # @param value the value to set the attribute _lex_trans_keys to. + # + # source://parser//lib/parser/lexer-F1.rb#87 + def _lex_trans_keys=(_arg0); end + + # Returns the value of attribute _lex_trans_targs. + # + # source://parser//lib/parser/lexer-F1.rb#7574 + def _lex_trans_targs; end + + # Sets the attribute _lex_trans_targs + # + # @param value the value to set the attribute _lex_trans_targs to. + # + # source://parser//lib/parser/lexer-F1.rb#7574 + def _lex_trans_targs=(_arg0); end + end +end + +# source://parser//lib/parser/lexer/dedenter.rb#5 +class Parser::Lexer::Dedenter + # source://parser//lib/parser/lexer/dedenter.rb#9 + def initialize(dedent_level); end + + # source://parser//lib/parser/lexer/dedenter.rb#36 + def dedent(string); end + + # source://parser//lib/parser/lexer/dedenter.rb#83 + def interrupt; end +end + +# source://parser//lib/parser/lexer/dedenter.rb#7 +Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer) + +# source://parser//lib/parser/lexer-F1.rb#14799 +Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#14785 +Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#14792 +Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#8362 +Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer/literal.rb#6 +class Parser::Lexer::Literal + # source://parser//lib/parser/lexer/literal.rb#40 + def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer/literal.rb#114 + def backslash_delimited?; end + + # source://parser//lib/parser/lexer/literal.rb#37 + def dedent_level; end + + # source://parser//lib/parser/lexer/literal.rb#189 + def end_interp_brace_and_try_closing; end + + # source://parser//lib/parser/lexer/literal.rb#216 + def extend_content; end + + # source://parser//lib/parser/lexer/literal.rb#220 + def extend_space(ts, te); end + + # source://parser//lib/parser/lexer/literal.rb#195 + def extend_string(string, ts, te); end + + # source://parser//lib/parser/lexer/literal.rb#202 + def flush_string; end + + # source://parser//lib/parser/lexer/literal.rb#102 + def heredoc?; end + + # source://parser//lib/parser/lexer/literal.rb#37 + def heredoc_e; end + + # source://parser//lib/parser/lexer/literal.rb#166 + def infer_indent_level(line); end + + # source://parser//lib/parser/lexer/literal.rb#89 + def interpolate?; end + + # source://parser//lib/parser/lexer/literal.rb#122 + def munge_escape?(character); end + + # source://parser//lib/parser/lexer/literal.rb#132 + def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer/literal.rb#106 + def plain_heredoc?; end + + # source://parser//lib/parser/lexer/literal.rb#98 + def regexp?; end + + # source://parser//lib/parser/lexer/literal.rb#38 + def saved_herebody_s; end + + # source://parser//lib/parser/lexer/literal.rb#38 + def saved_herebody_s=(_arg0); end + + # source://parser//lib/parser/lexer/literal.rb#110 + def squiggly_heredoc?; end + + # source://parser//lib/parser/lexer/literal.rb#185 + def start_interp_brace; end + + # source://parser//lib/parser/lexer/literal.rb#37 + def str_s; end + + # source://parser//lib/parser/lexer/literal.rb#230 + def supports_line_continuation_via_slash?; end + + # source://parser//lib/parser/lexer/literal.rb#118 + def type; end + + # source://parser//lib/parser/lexer/literal.rb#93 + def words?; end + + protected + + # source://parser//lib/parser/lexer/literal.rb#248 + def clear_buffer; end + + # source://parser//lib/parser/lexer/literal.rb#244 + def coerce_encoding(string); end + + # source://parser//lib/parser/lexer/literal.rb#236 + def delimiter?(delimiter); end + + # source://parser//lib/parser/lexer/literal.rb#264 + def emit(token, type, s, e); end + + # source://parser//lib/parser/lexer/literal.rb#259 + def emit_start_tok; end +end + +# source://parser//lib/parser/lexer/literal.rb#7 +Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer/literal.rb#9 +Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash) + +# Mapping of strings to parser tokens. +# +# source://parser//lib/parser/lexer-F1.rb#14759 +Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#14779 +Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer/stack_state.rb#5 +class Parser::Lexer::StackState + # source://parser//lib/parser/lexer/stack_state.rb#6 + def initialize(name); end + + # source://parser//lib/parser/lexer/stack_state.rb#34 + def active?; end + + # source://parser//lib/parser/lexer/stack_state.rb#11 + def clear; end + + # source://parser//lib/parser/lexer/stack_state.rb#38 + def empty?; end + + # source://parser//lib/parser/lexer/stack_state.rb#42 + def inspect; end + + # source://parser//lib/parser/lexer/stack_state.rb#29 + def lexpop; end + + # source://parser//lib/parser/lexer/stack_state.rb#22 + def pop; end + + # source://parser//lib/parser/lexer/stack_state.rb#15 + def push(bit); end + + # source://parser//lib/parser/lexer/stack_state.rb#42 + def to_s; end +end + +# line 3 "lib/parser/lexer-strings.rl" +# +# source://parser//lib/parser/lexer-strings.rb#6 +class Parser::LexerStrings + # @return [LexerStrings] a new instance of LexerStrings + # + # source://parser//lib/parser/lexer-strings.rb#3300 + def initialize(lexer, version); end + + # source://parser//lib/parser/lexer-strings.rb#3339 + def advance(p); end + + # source://parser//lib/parser/lexer-strings.rb#5069 + def close_interp_on_current_literal(p); end + + # source://parser//lib/parser/lexer-strings.rb#5043 + def continue_lexing(current_literal); end + + # source://parser//lib/parser/lexer-strings.rb#5092 + def dedent_level; end + + # Returns the value of attribute herebody_s. + # + # source://parser//lib/parser/lexer-strings.rb#3295 + def herebody_s; end + + # Sets the attribute herebody_s + # + # @param value the value to set the attribute herebody_s to. + # + # source://parser//lib/parser/lexer-strings.rb#3295 + def herebody_s=(_arg0); end + + # source://parser//lib/parser/lexer-strings.rb#5047 + def literal; end + + # source://parser//lib/parser/lexer-strings.rb#5015 + def next_state_for_literal(literal); end + + # This hook is triggered by "main" lexer on every newline character + # + # source://parser//lib/parser/lexer-strings.rb#5100 + def on_newline(p); end + + # source://parser//lib/parser/lexer-strings.rb#5051 + def pop_literal; end + + # === LITERAL STACK === + # + # source://parser//lib/parser/lexer-strings.rb#5009 + def push_literal(*args); end + + # source://parser//lib/parser/lexer-strings.rb#4999 + def read_character_constant(p); end + + # source://parser//lib/parser/lexer-strings.rb#3314 + def reset; end + + # Set by "main" lexer + # + # source://parser//lib/parser/lexer-strings.rb#3298 + def source_buffer; end + + # Set by "main" lexer + # + # source://parser//lib/parser/lexer-strings.rb#3298 + def source_buffer=(_arg0); end + + # Set by "main" lexer + # + # source://parser//lib/parser/lexer-strings.rb#3298 + def source_pts; end + + # Set by "main" lexer + # + # source://parser//lib/parser/lexer-strings.rb#3298 + def source_pts=(_arg0); end + + protected + + # source://parser//lib/parser/lexer-strings.rb#5397 + def check_ambiguous_slash(tm); end + + # source://parser//lib/parser/lexer-strings.rb#5408 + def check_invalid_escapes(p); end + + # source://parser//lib/parser/lexer-strings.rb#5136 + def cond; end + + # source://parser//lib/parser/lexer-strings.rb#5132 + def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-strings.rb#5128 + def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-strings.rb#5387 + def emit_character_constant; end + + # source://parser//lib/parser/lexer-strings.rb#5364 + def emit_interp_var(interp_var_kind); end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-strings.rb#5140 + def emit_invalid_escapes?; end + + # source://parser//lib/parser/lexer-strings.rb#5291 + def encode_escape(ord); end + + # source://parser//lib/parser/lexer-strings.rb#5375 + def encode_escaped_char(p); end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-strings.rb#5112 + def eof_codepoint?(point); end + + # source://parser//lib/parser/lexer-strings.rb#5210 + def extend_interp_code(current_literal); end + + # source://parser//lib/parser/lexer-strings.rb#5225 + def extend_interp_digit_var; end + + # source://parser//lib/parser/lexer-strings.rb#5355 + def extend_interp_var(current_literal); end + + # source://parser//lib/parser/lexer-strings.rb#5234 + def extend_string_eol_check_eof(current_literal, pe); end + + # source://parser//lib/parser/lexer-strings.rb#5251 + def extend_string_eol_heredoc_intertwined(p); end + + # source://parser//lib/parser/lexer-strings.rb#5241 + def extend_string_eol_heredoc_line; end + + # source://parser//lib/parser/lexer-strings.rb#5267 + def extend_string_eol_words(current_literal, p); end + + # String escaping + # + # source://parser//lib/parser/lexer-strings.rb#5154 + def extend_string_escaped; end + + # source://parser//lib/parser/lexer-strings.rb#5287 + def extend_string_for_token_range(current_literal, string); end + + # source://parser//lib/parser/lexer-strings.rb#5279 + def extend_string_slice_end(lookahead); end + + # source://parser//lib/parser/lexer-strings.rb#5124 + def range(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-strings.rb#5347 + def read_post_meta_or_ctrl_char(p); end + + # source://parser//lib/parser/lexer-strings.rb#5379 + def slash_c_char; end + + # source://parser//lib/parser/lexer-strings.rb#5383 + def slash_m_char; end + + # source://parser//lib/parser/lexer-strings.rb#5120 + def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-strings.rb#5295 + def unescape_char(p); end + + # source://parser//lib/parser/lexer-strings.rb#5307 + def unicode_points(p); end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-strings.rb#5116 + def version?(*versions); end + + class << self + # Returns the value of attribute lex_en_character. + # + # source://parser//lib/parser/lexer-strings.rb#3275 + def lex_en_character; end + + # Sets the attribute lex_en_character + # + # @param value the value to set the attribute lex_en_character to. + # + # source://parser//lib/parser/lexer-strings.rb#3275 + def lex_en_character=(_arg0); end + + # Returns the value of attribute lex_en_interp_backslash_delimited. + # + # source://parser//lib/parser/lexer-strings.rb#3255 + def lex_en_interp_backslash_delimited; end + + # Sets the attribute lex_en_interp_backslash_delimited + # + # @param value the value to set the attribute lex_en_interp_backslash_delimited to. + # + # source://parser//lib/parser/lexer-strings.rb#3255 + def lex_en_interp_backslash_delimited=(_arg0); end + + # Returns the value of attribute lex_en_interp_backslash_delimited_words. + # + # source://parser//lib/parser/lexer-strings.rb#3263 + def lex_en_interp_backslash_delimited_words; end + + # Sets the attribute lex_en_interp_backslash_delimited_words + # + # @param value the value to set the attribute lex_en_interp_backslash_delimited_words to. + # + # source://parser//lib/parser/lexer-strings.rb#3263 + def lex_en_interp_backslash_delimited_words=(_arg0); end + + # Returns the value of attribute lex_en_interp_string. + # + # source://parser//lib/parser/lexer-strings.rb#3243 + def lex_en_interp_string; end + + # Sets the attribute lex_en_interp_string + # + # @param value the value to set the attribute lex_en_interp_string to. + # + # source://parser//lib/parser/lexer-strings.rb#3243 + def lex_en_interp_string=(_arg0); end + + # Returns the value of attribute lex_en_interp_words. + # + # source://parser//lib/parser/lexer-strings.rb#3239 + def lex_en_interp_words; end + + # Sets the attribute lex_en_interp_words + # + # @param value the value to set the attribute lex_en_interp_words to. + # + # source://parser//lib/parser/lexer-strings.rb#3239 + def lex_en_interp_words=(_arg0); end + + # Returns the value of attribute lex_en_plain_backslash_delimited. + # + # source://parser//lib/parser/lexer-strings.rb#3259 + def lex_en_plain_backslash_delimited; end + + # Sets the attribute lex_en_plain_backslash_delimited + # + # @param value the value to set the attribute lex_en_plain_backslash_delimited to. + # + # source://parser//lib/parser/lexer-strings.rb#3259 + def lex_en_plain_backslash_delimited=(_arg0); end + + # Returns the value of attribute lex_en_plain_backslash_delimited_words. + # + # source://parser//lib/parser/lexer-strings.rb#3267 + def lex_en_plain_backslash_delimited_words; end + + # Sets the attribute lex_en_plain_backslash_delimited_words + # + # @param value the value to set the attribute lex_en_plain_backslash_delimited_words to. + # + # source://parser//lib/parser/lexer-strings.rb#3267 + def lex_en_plain_backslash_delimited_words=(_arg0); end + + # Returns the value of attribute lex_en_plain_string. + # + # source://parser//lib/parser/lexer-strings.rb#3251 + def lex_en_plain_string; end + + # Sets the attribute lex_en_plain_string + # + # @param value the value to set the attribute lex_en_plain_string to. + # + # source://parser//lib/parser/lexer-strings.rb#3251 + def lex_en_plain_string=(_arg0); end + + # Returns the value of attribute lex_en_plain_words. + # + # source://parser//lib/parser/lexer-strings.rb#3247 + def lex_en_plain_words; end + + # Sets the attribute lex_en_plain_words + # + # @param value the value to set the attribute lex_en_plain_words to. + # + # source://parser//lib/parser/lexer-strings.rb#3247 + def lex_en_plain_words=(_arg0); end + + # Returns the value of attribute lex_en_regexp_modifiers. + # + # source://parser//lib/parser/lexer-strings.rb#3271 + def lex_en_regexp_modifiers; end + + # Sets the attribute lex_en_regexp_modifiers + # + # @param value the value to set the attribute lex_en_regexp_modifiers to. + # + # source://parser//lib/parser/lexer-strings.rb#3271 + def lex_en_regexp_modifiers=(_arg0); end + + # Returns the value of attribute lex_en_unknown. + # + # source://parser//lib/parser/lexer-strings.rb#3279 + def lex_en_unknown; end + + # Sets the attribute lex_en_unknown + # + # @param value the value to set the attribute lex_en_unknown to. + # + # source://parser//lib/parser/lexer-strings.rb#3279 + def lex_en_unknown=(_arg0); end + + # Returns the value of attribute lex_error. + # + # source://parser//lib/parser/lexer-strings.rb#3234 + def lex_error; end + + # Sets the attribute lex_error + # + # @param value the value to set the attribute lex_error to. + # + # source://parser//lib/parser/lexer-strings.rb#3234 + def lex_error=(_arg0); end + + # Returns the value of attribute lex_start. + # + # source://parser//lib/parser/lexer-strings.rb#3230 + def lex_start; end + + # Sets the attribute lex_start + # + # @param value the value to set the attribute lex_start to. + # + # source://parser//lib/parser/lexer-strings.rb#3230 + def lex_start=(_arg0); end + + private + + # Returns the value of attribute _lex_actions. + # + # source://parser//lib/parser/lexer-strings.rb#11 + def _lex_actions; end + + # Sets the attribute _lex_actions + # + # @param value the value to set the attribute _lex_actions to. + # + # source://parser//lib/parser/lexer-strings.rb#11 + def _lex_actions=(_arg0); end + + # Returns the value of attribute _lex_eof_trans. + # + # source://parser//lib/parser/lexer-strings.rb#3184 + def _lex_eof_trans; end + + # Sets the attribute _lex_eof_trans + # + # @param value the value to set the attribute _lex_eof_trans to. + # + # source://parser//lib/parser/lexer-strings.rb#3184 + def _lex_eof_trans=(_arg0); end + + # Returns the value of attribute _lex_from_state_actions. + # + # source://parser//lib/parser/lexer-strings.rb#3138 + def _lex_from_state_actions; end + + # Sets the attribute _lex_from_state_actions + # + # @param value the value to set the attribute _lex_from_state_actions to. + # + # source://parser//lib/parser/lexer-strings.rb#3138 + def _lex_from_state_actions=(_arg0); end + + # Returns the value of attribute _lex_index_offsets. + # + # source://parser//lib/parser/lexer-strings.rb#244 + def _lex_index_offsets; end + + # Sets the attribute _lex_index_offsets + # + # @param value the value to set the attribute _lex_index_offsets to. + # + # source://parser//lib/parser/lexer-strings.rb#244 + def _lex_index_offsets=(_arg0); end + + # Returns the value of attribute _lex_indicies. + # + # source://parser//lib/parser/lexer-strings.rb#290 + def _lex_indicies; end + + # Sets the attribute _lex_indicies + # + # @param value the value to set the attribute _lex_indicies to. + # + # source://parser//lib/parser/lexer-strings.rb#290 + def _lex_indicies=(_arg0); end + + # Returns the value of attribute _lex_key_spans. + # + # source://parser//lib/parser/lexer-strings.rb#198 + def _lex_key_spans; end + + # Sets the attribute _lex_key_spans + # + # @param value the value to set the attribute _lex_key_spans to. + # + # source://parser//lib/parser/lexer-strings.rb#198 + def _lex_key_spans=(_arg0); end + + # Returns the value of attribute _lex_to_state_actions. + # + # source://parser//lib/parser/lexer-strings.rb#3092 + def _lex_to_state_actions; end + + # Sets the attribute _lex_to_state_actions + # + # @param value the value to set the attribute _lex_to_state_actions to. + # + # source://parser//lib/parser/lexer-strings.rb#3092 + def _lex_to_state_actions=(_arg0); end + + # Returns the value of attribute _lex_trans_actions. + # + # source://parser//lib/parser/lexer-strings.rb#3029 + def _lex_trans_actions; end + + # Sets the attribute _lex_trans_actions + # + # @param value the value to set the attribute _lex_trans_actions to. + # + # source://parser//lib/parser/lexer-strings.rb#3029 + def _lex_trans_actions=(_arg0); end + + # Returns the value of attribute _lex_trans_keys. + # + # source://parser//lib/parser/lexer-strings.rb#76 + def _lex_trans_keys; end + + # Sets the attribute _lex_trans_keys + # + # @param value the value to set the attribute _lex_trans_keys to. + # + # source://parser//lib/parser/lexer-strings.rb#76 + def _lex_trans_keys=(_arg0); end + + # Returns the value of attribute _lex_trans_targs. + # + # source://parser//lib/parser/lexer-strings.rb#2966 + def _lex_trans_targs; end + + # Sets the attribute _lex_trans_targs + # + # @param value the value to set the attribute _lex_trans_targs to. + # + # source://parser//lib/parser/lexer-strings.rb#2966 + def _lex_trans_targs=(_arg0); end + end +end + +# % +# +# source://parser//lib/parser/lexer-strings.rb#3287 +Parser::LexerStrings::ESCAPES = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-strings.rb#5414 +Parser::LexerStrings::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-strings.rb#3332 +Parser::LexerStrings::LEX_STATES = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-strings.rb#3293 +Parser::LexerStrings::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) + +# Diagnostic messages (errors, warnings and notices) that can be generated. +# +# @api public +# @see Diagnostic +# +# source://parser//lib/parser/messages.rb#11 +Parser::MESSAGES = T.let(T.unsafe(nil), Hash) + +# Holds p->max_numparam from parse.y +# +# @api private +# +# source://parser//lib/parser/max_numparam_stack.rb#8 +class Parser::MaxNumparamStack + # @api private + # @return [MaxNumparamStack] a new instance of MaxNumparamStack + # + # source://parser//lib/parser/max_numparam_stack.rb#13 + def initialize; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/max_numparam_stack.rb#17 + def empty?; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/max_numparam_stack.rb#29 + def has_numparams?; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#21 + def has_ordinary_params!; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/max_numparam_stack.rb#25 + def has_ordinary_params?; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#45 + def pop; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#41 + def push(static:); end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#33 + def register(numparam); end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#9 + def stack; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#37 + def top; end + + private + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#51 + def set(value); end +end + +# @api private +# +# source://parser//lib/parser/max_numparam_stack.rb#11 +Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer) + +# @api private +# +# source://parser//lib/parser/messages.rb#107 +module Parser::Messages + class << self + # Formats the message, returns a raw template if there's nothing to interpolate + # + # Code like `format("", {})` gives a warning, and so this method tries interpolating + # only if `arguments` hash is not empty. + # + # @api private + # + # source://parser//lib/parser/messages.rb#114 + def compile(reason, arguments); end + end +end + +# Parser metadata +# +# source://parser//lib/parser/meta.rb#5 +module Parser::Meta; end + +# All node types that parser can produce. Not all parser versions +# will be able to produce every possible node. +# +# source://parser//lib/parser/meta.rb#9 +Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) + +# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead. +# It has a backwards compatible API and uses {Parser::Source::TreeRewriter} +# instead of {Parser::Source::Rewriter}. +# Please check the documentation for {Parser::Source::Rewriter} for details. +# +# @api public +# @deprecated Use {Parser::TreeRewriter} +# +# source://parser//lib/parser/rewriter.rb#14 +class Parser::Rewriter < ::Parser::AST::Processor + extend ::Parser::Deprecation + + # @api public + # @return [Rewriter] a new instance of Rewriter + # + # source://parser//lib/parser/rewriter.rb#98 + def initialize(*_arg0); end + + # Returns `true` if the specified node is an assignment node, returns false + # otherwise. + # + # @api public + # @param node [Parser::AST::Node] + # @return [Boolean] + # + # source://parser//lib/parser/rewriter.rb#38 + def assignment?(node); end + + # Inserts new code after the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#77 + def insert_after(range, content); end + + # Inserts new code before the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#67 + def insert_before(range, content); end + + # Removes the source range. + # + # @api public + # @param range [Parser::Source::Range] + # + # source://parser//lib/parser/rewriter.rb#47 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#87 + def replace(range, content); end + + # Rewrites the AST/source buffer and returns a String containing the new + # version. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param ast [Parser::AST::Node] + # @return [String] + # + # source://parser//lib/parser/rewriter.rb#23 + def rewrite(source_buffer, ast); end + + # Wraps the given source range with the given values. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#57 + def wrap(range, before, after); end +end + +# @api public +# +# source://parser//lib/parser/rewriter.rb#91 +Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# @api public +# +# source://parser//lib/parser.rb#30 +module Parser::Source; end + +# A buffer with source code. {Buffer} contains the source code itself, +# associated location information (name and first line), and takes care +# of encoding. +# +# A source buffer is immutable once populated. +# +# @api public +# +# source://parser//lib/parser/source/buffer.rb#25 +class Parser::Source::Buffer + # @api public + # @return [Buffer] a new instance of Buffer + # + # source://parser//lib/parser/source/buffer.rb#105 + def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end + + # Convert a character index into the source to a column number. + # + # @api private + # @param position [Integer] + # @return [Integer] column + # + # source://parser//lib/parser/source/buffer.rb#242 + def column_for_position(position); end + + # Convert a character index into the source to a `[line, column]` tuple. + # + # @api public + # @param position [Integer] + # @return [[Integer, Integer]] `[line, column]` + # + # source://parser//lib/parser/source/buffer.rb#217 + def decompose_position(position); end + + # First line of the buffer, 1 by default. + # + # @api public + # @return [Integer] first line + # + # source://parser//lib/parser/source/buffer.rb#26 + def first_line; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#312 + def freeze; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#318 + def inspect; end + + # Number of last line in the buffer + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/buffer.rb#307 + def last_line; end + + # Convert a character index into the source to a line number. + # + # @api private + # @param position [Integer] + # @return [Integer] line + # + # source://parser//lib/parser/source/buffer.rb#231 + def line_for_position(position); end + + # Extract line `lineno` as a new `Range`, taking `first_line` into account. + # + # @api public + # @param lineno [Integer] + # @raise [IndexError] if `lineno` is out of bounds + # @return [Range] + # + # source://parser//lib/parser/source/buffer.rb#284 + def line_range(lineno); end + + # Buffer name. If the buffer was created from a file, the name corresponds + # to relative path to the file. + # + # @api public + # @return [String] buffer name + # + # source://parser//lib/parser/source/buffer.rb#26 + def name; end + + # Populate this buffer from a string without encoding autodetection. + # + # @api public + # @param input [String] + # @raise [ArgumentError] if already populated + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#180 + def raw_source=(input); end + + # Populate this buffer from correspondingly named file. + # + # @api public + # @example + # Parser::Source::Buffer.new('foo/bar.rb').read + # @raise [ArgumentError] if already populated + # @return [Buffer] self + # + # source://parser//lib/parser/source/buffer.rb#131 + def read; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#194 + def slice(start, length = T.unsafe(nil)); end + + # Source code contained in this buffer. + # + # @api public + # @raise [RuntimeError] if buffer is not populated yet + # @return [String] source code + # + # source://parser//lib/parser/source/buffer.rb#145 + def source; end + + # Populate this buffer from a string with encoding autodetection. + # `input` is mutated if not frozen. + # + # @api public + # @param input [String] + # @raise [ArgumentError] if already populated + # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#162 + def source=(input); end + + # Extract line `lineno` from source, taking `first_line` into account. + # + # @api public + # @param lineno [Integer] + # @raise [IndexError] if `lineno` is out of bounds + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#273 + def source_line(lineno); end + + # Return an `Array` of source code lines. + # + # @api public + # @return [Array] + # + # source://parser//lib/parser/source/buffer.rb#252 + def source_lines; end + + # @api public + # @return [Range] A range covering the whole source + # + # source://parser//lib/parser/source/buffer.rb#298 + def source_range; end + + private + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#348 + def bsearch(line_begins, position); end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#325 + def line_begins; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#339 + def line_index_for_position(position); end + + class << self + # Try to recognize encoding of `string` as Ruby would, i.e. by looking for + # magic encoding comment or UTF-8 BOM. `string` can be in any encoding. + # + # @api public + # @param string [String] + # @return [String, nil] encoding name, if recognized + # + # source://parser//lib/parser/source/buffer.rb#51 + def recognize_encoding(string); end + + # Recognize encoding of `input` and process it so it could be lexed. + # + # * If `input` does not contain BOM or magic encoding comment, it is + # kept in the original encoding. + # * If the detected encoding is binary, `input` is kept in binary. + # * Otherwise, `input` is re-encoded into UTF-8 and returned as a + # new string. + # + # This method mutates the encoding of `input`, but not its content. + # + # @api public + # @param input [String] + # @raise [EncodingError] + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#90 + def reencode_string(input); end + end +end + +# @api private +# +# source://parser//lib/parser/source/buffer.rb#31 +Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp) + +# A comment in the source code. +# +# @api public +# +# source://parser//lib/parser/source/comment.rb#17 +class Parser::Source::Comment + # @api public + # @param range [Parser::Source::Range] + # @return [Comment] a new instance of Comment + # + # source://parser//lib/parser/source/comment.rb#67 + def initialize(range); end + + # Compares comments. Two comments are equal if they + # correspond to the same source range. + # + # @api public + # @param other [Object] + # @return [Boolean] + # + # source://parser//lib/parser/source/comment.rb#120 + def ==(other); end + + # @api public + # @return [Boolean] true if this is a block comment. + # @see #type + # + # source://parser//lib/parser/source/comment.rb#109 + def document?; end + + # @api public + # @return [Boolean] true if this is an inline comment. + # @see #type + # + # source://parser//lib/parser/source/comment.rb#101 + def inline?; end + + # @api public + # @return [String] a human-readable representation of this comment + # + # source://parser//lib/parser/source/comment.rb#128 + def inspect; end + + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/source/comment.rb#20 + def loc; end + + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/source/comment.rb#20 + def location; end + + # @api public + # @return [String] + # + # source://parser//lib/parser/source/comment.rb#18 + def text; end + + # Type of this comment. + # + # * Inline comments correspond to `:inline`: + # + # # whatever + # + # * Block comments correspond to `:document`: + # + # =begin + # hi i am a document + # =end + # + # @api public + # @return [Symbol] + # + # source://parser//lib/parser/source/comment.rb#89 + def type; end + + class << self + # Associate `comments` with `ast` nodes by their corresponding node. + # + # @api public + # @deprecated Use {associate_locations}. + # @param ast [Parser::AST::Node] + # @param comments [Array] + # @return [Hash>] + # @see Parser::Source::Comment::Associator#associate + # + # source://parser//lib/parser/source/comment.rb#32 + def associate(ast, comments); end + + # Associate `comments` with `ast` nodes using identity. + # + # @api public + # @param ast [Parser::AST::Node] + # @param comments [Array] + # @return [Hash>] + # @see Parser::Source::Comment::Associator#associate_by_identity + # + # source://parser//lib/parser/source/comment.rb#59 + def associate_by_identity(ast, comments); end + + # Associate `comments` with `ast` nodes by their location in the + # source. + # + # @api public + # @param ast [Parser::AST::Node] + # @param comments [Array] + # @return [Hash>] + # @see Parser::Source::Comment::Associator#associate_locations + # + # source://parser//lib/parser/source/comment.rb#46 + def associate_locations(ast, comments); end + end +end + +# source://parser//lib/parser/source/comment/associator.rb#45 +class Parser::Source::Comment::Associator + # source://parser//lib/parser/source/comment/associator.rb#51 + def initialize(ast, comments); end + + # source://parser//lib/parser/source/comment/associator.rb#92 + def associate; end + + # source://parser//lib/parser/source/comment/associator.rb#115 + def associate_by_identity; end + + # source://parser//lib/parser/source/comment/associator.rb#104 + def associate_locations; end + + # source://parser//lib/parser/source/comment/associator.rb#46 + def skip_directives; end + + # source://parser//lib/parser/source/comment/associator.rb#46 + def skip_directives=(_arg0); end + + private + + # source://parser//lib/parser/source/comment/associator.rb#182 + def advance_comment; end + + # source://parser//lib/parser/source/comment/associator.rb#214 + def advance_through_directives; end + + # source://parser//lib/parser/source/comment/associator.rb#206 + def associate_and_advance_comment(node); end + + # source://parser//lib/parser/source/comment/associator.rb#123 + def children_in_source_order(node); end + + # source://parser//lib/parser/source/comment/associator.rb#187 + def current_comment_before?(node); end + + # source://parser//lib/parser/source/comment/associator.rb#194 + def current_comment_before_end?(node); end + + # source://parser//lib/parser/source/comment/associator.rb#201 + def current_comment_decorates?(node); end + + # source://parser//lib/parser/source/comment/associator.rb#135 + def do_associate; end + + # source://parser//lib/parser/source/comment/associator.rb#166 + def process_leading_comments(node); end + + # source://parser//lib/parser/source/comment/associator.rb#173 + def process_trailing_comments(node); end + + # source://parser//lib/parser/source/comment/associator.rb#148 + def visit(node); end +end + +# source://parser//lib/parser/source/comment/associator.rb#212 +Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp) + +# source://parser//lib/parser/source/comment/associator.rb#122 +Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set) + +# {Map} relates AST nodes to the source code they were parsed from. +# More specifically, a {Map} or its subclass contains a set of ranges: +# +# * `expression`: smallest range which includes all source corresponding +# to the node and all `expression` ranges of its children. +# * other ranges (`begin`, `end`, `operator`, ...): node-specific ranges +# pointing to various interesting tokens corresponding to the node. +# +# Note that the {Map::Heredoc} map is the only one whose `expression` does +# not include other ranges. It only covers the heredoc marker (`< 2]').children[0].loc +# # => > +# +# The {file:doc/AST_FORMAT.md} document describes how ranges associated to source +# code tokens. For example, the entry +# +# (array (int 1) (int 2)) +# +# "[1, 2]" +# ^ begin +# ^ end +# ~~~~~~ expression +# +# means that if `node` is an {Parser::AST::Node} `(array (int 1) (int 2))`, +# then `node.loc` responds to `begin`, `end` and `expression`, and +# `node.loc.begin` returns a range pointing at the opening bracket, and so on. +# +# If you want to write code polymorphic by the source map (i.e. accepting +# several subclasses of {Map}), use `respond_to?` instead of `is_a?` to +# check whether the map features the range you need. Concrete {Map} +# subclasses may not be preserved between versions, but their interfaces +# will be kept compatible. +# +# You can visualize the source maps with `ruby-parse -E` command-line tool. +# +# @api public +# @example +# require 'parser/current' +# +# p Parser::CurrentRuby.parse('[1, 2]').loc +# # => #, +# # @begin=#, +# # @expression=#> +# +# source://parser//lib/parser/source/map.rb#70 +class Parser::Source::Map + # @api public + # @param expression [Range] + # @return [Map] a new instance of Map + # + # source://parser//lib/parser/source/map.rb#76 + def initialize(expression); end + + # Compares source maps. + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/map.rb#140 + def ==(other); end + + # A shortcut for `self.expression.column`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#109 + def column; end + + # @api public + # @return [Range] + # + # source://parser//lib/parser/source/map.rb#72 + def expression; end + + # A shortcut for `self.expression.line`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#99 + def first_line; end + + # A shortcut for `self.expression.last_column`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#125 + def last_column; end + + # A shortcut for `self.expression.last_line`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#117 + def last_line; end + + # A shortcut for `self.expression.line`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#99 + def line; end + + # The node that is described by this map. Nodes and maps have 1:1 correspondence. + # + # @api public + # @return [Parser::AST::Node] + # + # source://parser//lib/parser/source/map.rb#71 + def node; end + + # @api private + # + # source://parser//lib/parser/source/map.rb#89 + def node=(node); end + + # Converts this source map to a hash with keys corresponding to + # ranges. For example, if called on an instance of {Collection}, + # which adds the `begin` and `end` ranges, the resulting hash + # will contain keys `:expression`, `:begin` and `:end`. + # + # @api public + # @example + # require 'parser/current' + # + # p Parser::CurrentRuby.parse('[1, 2]').loc.to_hash + # # => { + # # :begin => #, + # # :end => #, + # # :expression => # + # # } + # @return [Hash] + # + # source://parser//lib/parser/source/map.rb#166 + def to_hash; end + + # @api private + # + # source://parser//lib/parser/source/map.rb#132 + def with_expression(expression_l); end + + protected + + # @api public + # + # source://parser//lib/parser/source/map.rb#180 + def update_expression(expression_l); end + + # @api public + # + # source://parser//lib/parser/source/map.rb#176 + def with(&block); end + + private + + # @api private + # + # source://parser//lib/parser/source/map.rb#82 + def initialize_copy(other); end +end + +# source://parser//lib/parser/source/map/collection.rb#6 +class Parser::Source::Map::Collection < ::Parser::Source::Map + # source://parser//lib/parser/source/map/collection.rb#10 + def initialize(begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/collection.rb#7 + def begin; end + + # source://parser//lib/parser/source/map/collection.rb#8 + def end; end +end + +# source://parser//lib/parser/source/map/condition.rb#6 +class Parser::Source::Map::Condition < ::Parser::Source::Map + # source://parser//lib/parser/source/map/condition.rb#12 + def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/condition.rb#8 + def begin; end + + # source://parser//lib/parser/source/map/condition.rb#9 + def else; end + + # source://parser//lib/parser/source/map/condition.rb#10 + def end; end + + # source://parser//lib/parser/source/map/condition.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/constant.rb#6 +class Parser::Source::Map::Constant < ::Parser::Source::Map + # source://parser//lib/parser/source/map/constant.rb#11 + def initialize(double_colon, name, expression); end + + # source://parser//lib/parser/source/map/constant.rb#7 + def double_colon; end + + # source://parser//lib/parser/source/map/constant.rb#8 + def name; end + + # source://parser//lib/parser/source/map/constant.rb#9 + def operator; end + + # source://parser//lib/parser/source/map/constant.rb#20 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/constant.rb#26 + def update_operator(operator_l); end +end + +# source://parser//lib/parser/source/map/definition.rb#6 +class Parser::Source::Map::Definition < ::Parser::Source::Map + # source://parser//lib/parser/source/map/definition.rb#12 + def initialize(keyword_l, operator_l, name_l, end_l); end + + # source://parser//lib/parser/source/map/definition.rb#10 + def end; end + + # source://parser//lib/parser/source/map/definition.rb#7 + def keyword; end + + # source://parser//lib/parser/source/map/definition.rb#9 + def name; end + + # source://parser//lib/parser/source/map/definition.rb#8 + def operator; end +end + +# source://parser//lib/parser/source/map/for.rb#6 +class Parser::Source::Map::For < ::Parser::Source::Map + # source://parser//lib/parser/source/map/for.rb#10 + def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/for.rb#8 + def begin; end + + # source://parser//lib/parser/source/map/for.rb#8 + def end; end + + # source://parser//lib/parser/source/map/for.rb#7 + def in; end + + # source://parser//lib/parser/source/map/for.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/heredoc.rb#6 +class Parser::Source::Map::Heredoc < ::Parser::Source::Map + # source://parser//lib/parser/source/map/heredoc.rb#10 + def initialize(begin_l, body_l, end_l); end + + # source://parser//lib/parser/source/map/heredoc.rb#7 + def heredoc_body; end + + # source://parser//lib/parser/source/map/heredoc.rb#8 + def heredoc_end; end +end + +# source://parser//lib/parser/source/map/index.rb#6 +class Parser::Source::Map::Index < ::Parser::Source::Map + # source://parser//lib/parser/source/map/index.rb#11 + def initialize(begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/index.rb#7 + def begin; end + + # source://parser//lib/parser/source/map/index.rb#8 + def end; end + + # source://parser//lib/parser/source/map/index.rb#9 + def operator; end + + # source://parser//lib/parser/source/map/index.rb#21 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/index.rb#27 + def update_operator(operator_l); end +end + +# source://parser//lib/parser/source/map/keyword.rb#6 +class Parser::Source::Map::Keyword < ::Parser::Source::Map + # source://parser//lib/parser/source/map/keyword.rb#11 + def initialize(keyword_l, begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/keyword.rb#8 + def begin; end + + # source://parser//lib/parser/source/map/keyword.rb#9 + def end; end + + # source://parser//lib/parser/source/map/keyword.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/method_definition.rb#6 +class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map + # source://parser//lib/parser/source/map/method_definition.rb#13 + def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end + + # source://parser//lib/parser/source/map/method_definition.rb#11 + def assignment; end + + # source://parser//lib/parser/source/map/method_definition.rb#10 + def end; end + + # source://parser//lib/parser/source/map/method_definition.rb#7 + def keyword; end + + # source://parser//lib/parser/source/map/method_definition.rb#9 + def name; end + + # source://parser//lib/parser/source/map/method_definition.rb#8 + def operator; end +end + +# source://parser//lib/parser/source/map/objc_kwarg.rb#6 +class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map + # source://parser//lib/parser/source/map/objc_kwarg.rb#11 + def initialize(keyword_l, operator_l, argument_l, expression_l); end + + # source://parser//lib/parser/source/map/objc_kwarg.rb#9 + def argument; end + + # source://parser//lib/parser/source/map/objc_kwarg.rb#7 + def keyword; end + + # source://parser//lib/parser/source/map/objc_kwarg.rb#8 + def operator; end +end + +# source://parser//lib/parser/source/map/operator.rb#6 +class Parser::Source::Map::Operator < ::Parser::Source::Map + # source://parser//lib/parser/source/map/operator.rb#9 + def initialize(operator, expression); end + + # source://parser//lib/parser/source/map/operator.rb#7 + def operator; end +end + +# source://parser//lib/parser/source/map/rescue_body.rb#6 +class Parser::Source::Map::RescueBody < ::Parser::Source::Map + # source://parser//lib/parser/source/map/rescue_body.rb#11 + def initialize(keyword_l, assoc_l, begin_l, expression_l); end + + # source://parser//lib/parser/source/map/rescue_body.rb#8 + def assoc; end + + # source://parser//lib/parser/source/map/rescue_body.rb#9 + def begin; end + + # source://parser//lib/parser/source/map/rescue_body.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/send.rb#6 +class Parser::Source::Map::Send < ::Parser::Source::Map + # source://parser//lib/parser/source/map/send.rb#13 + def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/send.rb#10 + def begin; end + + # source://parser//lib/parser/source/map/send.rb#7 + def dot; end + + # source://parser//lib/parser/source/map/send.rb#11 + def end; end + + # source://parser//lib/parser/source/map/send.rb#9 + def operator; end + + # source://parser//lib/parser/source/map/send.rb#8 + def selector; end + + # source://parser//lib/parser/source/map/send.rb#24 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/send.rb#30 + def update_operator(operator_l); end +end + +# source://parser//lib/parser/source/map/ternary.rb#6 +class Parser::Source::Map::Ternary < ::Parser::Source::Map + # source://parser//lib/parser/source/map/ternary.rb#10 + def initialize(question_l, colon_l, expression_l); end + + # source://parser//lib/parser/source/map/ternary.rb#8 + def colon; end + + # source://parser//lib/parser/source/map/ternary.rb#7 + def question; end +end + +# source://parser//lib/parser/source/map/variable.rb#6 +class Parser::Source::Map::Variable < ::Parser::Source::Map + # source://parser//lib/parser/source/map/variable.rb#10 + def initialize(name_l, expression_l = T.unsafe(nil)); end + + # source://parser//lib/parser/source/map/variable.rb#7 + def name; end + + # source://parser//lib/parser/source/map/variable.rb#8 + def operator; end + + # source://parser//lib/parser/source/map/variable.rb#19 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/variable.rb#25 + def update_operator(operator_l); end +end + +# A range of characters in a particular source buffer. +# +# The range is always exclusive, i.e. a range with `begin_pos` of 3 and +# `end_pos` of 5 will contain the following characters: +# +# example +# ^^ +# +# @api public +# +# source://parser//lib/parser/source/range.rb#26 +class Parser::Source::Range + include ::Comparable + + # @api public + # @param source_buffer [Buffer] + # @param begin_pos [Integer] + # @param end_pos [Integer] + # @return [Range] a new instance of Range + # + # source://parser//lib/parser/source/range.rb#37 + def initialize(source_buffer, begin_pos, end_pos); end + + # Compare ranges, first by begin_pos, then by end_pos. + # + # @api public + # + # source://parser//lib/parser/source/range.rb#301 + def <=>(other); end + + # by the given amount(s) + # + # @api public + # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos + # @return [Range] the same range as this range but with the given end point(s) adjusted + # + # source://parser//lib/parser/source/range.rb#193 + def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end + + # @api public + # @return [Range] a zero-length range located just before the beginning + # of this range. + # + # source://parser//lib/parser/source/range.rb#55 + def begin; end + + # @api public + # @return [Integer] index of the first character in the range + # + # source://parser//lib/parser/source/range.rb#30 + def begin_pos; end + + # @api public + # @return [Integer] zero-based column number of the beginning of this range. + # + # source://parser//lib/parser/source/range.rb#92 + def column; end + + # @api public + # @raise RangeError + # @return [::Range] a range of columns spanned by this range. + # + # source://parser//lib/parser/source/range.rb#114 + def column_range; end + + # Return `other.contains?(self)` + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#274 + def contained?(other); end + + # Returns true iff this range contains (strictly) `other`. + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#262 + def contains?(other); end + + # Returns true iff both ranges intersect and also have different elements from one another. + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#286 + def crossing?(other); end + + # Return `true` iff this range and `other` are disjoint. + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#236 + def disjoint?(other); end + + # Checks if a range is empty; if it contains no characters + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#294 + def empty?; end + + # @api public + # @return [Range] a zero-length range located just after the end + # of this range. + # + # source://parser//lib/parser/source/range.rb#63 + def end; end + + # @api public + # @return [Integer] index of the character after the last character in the range + # + # source://parser//lib/parser/source/range.rb#30 + def end_pos; end + + # @api public + def eql?(_arg0); end + + # Line number of the beginning of this range. By default, the first line + # of a buffer is 1; as such, line numbers are most commonly one-based. + # + # @api public + # @return [Integer] line number of the beginning of this range. + # @see Buffer + # + # source://parser//lib/parser/source/range.rb#83 + def first_line; end + + # Support for Ranges be used in as Hash indices and in Sets. + # + # @api public + # + # source://parser//lib/parser/source/range.rb#313 + def hash; end + + # @api public + # @return [String] a human-readable representation of this range. + # + # source://parser//lib/parser/source/range.rb#320 + def inspect; end + + # @api public + # @param other [Range] + # @return [Range] overlapping region of this range and `other`, or `nil` + # if they do not overlap + # + # source://parser//lib/parser/source/range.rb#220 + def intersect(other); end + + # `is?` provides a concise way to compare the source corresponding to this range. + # For example, `r.source == '(' || r.source == 'begin'` is equivalent to + # `r.is?('(', 'begin')`. + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#141 + def is?(*what); end + + # @api public + # @param other [Range] + # @return [Range] smallest possible range spanning both this range and `other`. + # + # source://parser//lib/parser/source/range.rb#209 + def join(other); end + + # @api public + # @return [Integer] zero-based column number of the end of this range. + # + # source://parser//lib/parser/source/range.rb#106 + def last_column; end + + # @api public + # @return [Integer] line number of the end of this range. + # + # source://parser//lib/parser/source/range.rb#99 + def last_line; end + + # @api public + # @return [Integer] amount of characters included in this range. + # + # source://parser//lib/parser/source/range.rb#70 + def length; end + + # Line number of the beginning of this range. By default, the first line + # of a buffer is 1; as such, line numbers are most commonly one-based. + # + # @api public + # @return [Integer] line number of the beginning of this range. + # @see Buffer + # + # source://parser//lib/parser/source/range.rb#83 + def line; end + + # Return `true` iff this range is not disjoint from `other`. + # + # @api public + # @param other [Range] + # @return [Boolean] `true` if this range and `other` overlap + # + # source://parser//lib/parser/source/range.rb#250 + def overlaps?(other); end + + # @api public + # @param new_size [Integer] + # @return [Range] a range beginning at the same point as this range and length `new_size`. + # + # source://parser//lib/parser/source/range.rb#201 + def resize(new_size); end + + # @api public + # @return [Integer] amount of characters included in this range. + # + # source://parser//lib/parser/source/range.rb#70 + def size; end + + # @api public + # @return [String] all source code covered by this range. + # + # source://parser//lib/parser/source/range.rb#132 + def source; end + + # @api public + # @return [Parser::Source::Buffer] + # + # source://parser//lib/parser/source/range.rb#29 + def source_buffer; end + + # @api public + # @return [String] a line of source code containing the beginning of this range. + # + # source://parser//lib/parser/source/range.rb#125 + def source_line; end + + # @api public + # @return [Array] a set of character indexes contained in this range. + # + # source://parser//lib/parser/source/range.rb#148 + def to_a; end + + # @api public + # @return [Range] a Ruby range with the same `begin_pos` and `end_pos` + # + # source://parser//lib/parser/source/range.rb#155 + def to_range; end + + # Composes a GNU/Clang-style string representation of the beginning of this + # range. + # + # For example, for the following range in file `foo.rb`, + # + # def foo + # ^^^ + # + # `to_s` will return `foo.rb:1:5`. + # Note that the column index is one-based. + # + # @api public + # @return [String] + # + # source://parser//lib/parser/source/range.rb#173 + def to_s; end + + # to the given value(s). + # + # @api public + # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos + # @return [Range] the same range as this range but with the given end point(s) changed + # + # source://parser//lib/parser/source/range.rb#184 + def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end +end + +# {Rewriter} is deprecated. Use {TreeRewriter} instead. +# +# TreeRewriter has simplified semantics, and customizable policies +# with regards to clobbering. Please read the documentation. +# +# Keep in mind: +# - Rewriter was discarding the `end_pos` of the given range for `insert_before`, +# and the `begin_pos` for `insert_after`. These are meaningful in TreeRewriter. +# - TreeRewriter's wrap/insert_before/insert_after are multiple by default, while +# Rewriter would raise clobbering errors if the non '_multi' version was called. +# - The TreeRewriter policy closest to Rewriter's behavior is: +# different_replacements: :raise, +# swallowed_insertions: :raise, +# crossing_deletions: :accept +# +# @api public +# @deprecated Use {TreeRewriter} +# +# source://parser//lib/parser/source/rewriter.rb#31 +class Parser::Source::Rewriter + extend ::Parser::Deprecation + + # @api public + # @deprecated Use {TreeRewriter} + # @param source_buffer [Source::Buffer] + # @return [Rewriter] a new instance of Rewriter + # + # source://parser//lib/parser/source/rewriter.rb#39 + def initialize(source_buffer); end + + # @api public + # @return [Diagnostic::Engine] + # + # source://parser//lib/parser/source/rewriter.rb#33 + def diagnostics; end + + # Inserts new code after the given source range. + # + # @api public + # @deprecated Use {TreeRewriter#insert_after} + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#131 + def insert_after(range, content); end + + # Inserts new code after the given source range by allowing other + # insertions at the same position. + # Note that an insertion with latter invocation comes _after_ earlier + # insertion at the same position in the rewritten source. + # + # @api public + # @deprecated Use {TreeRewriter#insert_after} + # @example Inserting ')]' + # rewriter. + # insert_after_multi(range, ')'). + # insert_after_multi(range, ']'). + # process + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#153 + def insert_after_multi(range, content); end + + # Inserts new code before the given source range. + # + # @api public + # @deprecated Use {TreeRewriter#insert_before} + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#80 + def insert_before(range, content); end + + # Inserts new code before the given source range by allowing other + # insertions at the same position. + # Note that an insertion with latter invocation comes _before_ earlier + # insertion at the same position in the rewritten source. + # + # @api public + # @deprecated Use {TreeRewriter#insert_before} + # @example Inserting '[(' + # rewriter. + # insert_before_multi(range, '('). + # insert_before_multi(range, '['). + # process + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#117 + def insert_before_multi(range, content); end + + # Applies all scheduled changes to the `source_buffer` and returns + # modified source as a new string. + # + # @api public + # @deprecated Use {TreeRewriter#process} + # @return [String] + # + # source://parser//lib/parser/source/rewriter.rb#178 + def process; end + + # Removes the source range. + # + # @api public + # @deprecated Use {TreeRewriter#remove} + # @param range [Range] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#67 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @deprecated Use {TreeRewriter#replace} + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#167 + def replace(range, content); end + + # @api public + # @return [Source::Buffer] + # + # source://parser//lib/parser/source/rewriter.rb#32 + def source_buffer; end + + # Provides a protected block where a sequence of multiple rewrite actions + # are handled atomically. If any of the actions failed by clobbering, + # all the actions are rolled back. + # + # @api public + # @deprecated Use {TreeRewriter#transaction} + # @example + # begin + # rewriter.transaction do + # rewriter.insert_before(range_of_something, '(') + # rewriter.insert_after(range_of_something, ')') + # end + # rescue Parser::ClobberingError + # end + # @raise [RuntimeError] when no block is passed + # @raise [RuntimeError] when already in a transaction + # + # source://parser//lib/parser/source/rewriter.rb#216 + def transaction; end + + # Inserts new code before and after the given source range. + # + # @api public + # @deprecated Use {TreeRewriter#wrap} + # @param range [Range] + # @param before [String] + # @param after [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#94 + def wrap(range, before, after); end + + private + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#476 + def active_clobber; end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#484 + def active_clobber=(value); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#480 + def active_insertions; end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#492 + def active_insertions=(value); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#472 + def active_queue; end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#500 + def adjacent?(range1, range2); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#351 + def adjacent_insertion_mask(range); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#366 + def adjacent_insertions?(range); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#347 + def adjacent_position_mask(range); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#377 + def adjacent_updates?(range); end + + # Schedule a code update. If it overlaps with another update, check + # whether they conflict, and raise a clobbering error if they do. + # (As a special case, zero-length ranges at the same position are + # considered to "overlap".) Otherwise, merge them. + # + # Updates which are adjacent to each other, but do not overlap, are also + # merged. + # + # RULES: + # + # - Insertion ("replacing" a zero-length range): + # - Two insertions at the same point conflict. This is true even + # if the earlier insertion has already been merged with an adjacent + # update, and even if they are both inserting the same text. + # - An insertion never conflicts with a replace or remove operation + # on its right or left side, which does not overlap it (in other + # words, which does not update BOTH its right and left sides). + # - An insertion always conflicts with a remove operation which spans + # both its sides. + # - An insertion conflicts with a replace operation which spans both its + # sides, unless the replacement text is longer than the replaced text + # by the size of the insertion (or more), and the portion of + # replacement text immediately after the insertion position is + # identical to the inserted text. + # + # - Removal operations never conflict with each other. + # + # - Replacement operations: + # - Take the portion of each replacement text which falls within: + # - The other operation's replaced region + # - The other operation's replacement text, if it extends past the + # end of its own replaced region (in other words, if the replacement + # text is longer than the text it replaces) + # - If and only if the taken texts are identical for both operations, + # they do not conflict. + # + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#280 + def append(action); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#389 + def can_merge?(action, existing); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#355 + def clobbered_insertion?(insertion); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#343 + def clobbered_position_mask(range); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#468 + def in_transaction?; end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#410 + def merge_actions(action, existing); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#419 + def merge_actions!(action, existing); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#425 + def merge_replacements(actions); end + + # @api public + # @raise [ClobberingError] + # + # source://parser//lib/parser/source/rewriter.rb#450 + def raise_clobber_error(action, existing); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#335 + def record_insertion(range); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#339 + def record_replace(range); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#445 + def replace_actions(old, updated); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#383 + def replace_compatible_with_insertion?(replace, insertion); end +end + +# source://parser//lib/parser/source/rewriter/action.rb#9 +class Parser::Source::Rewriter::Action + include ::Comparable + + # source://parser//lib/parser/source/rewriter/action.rb#15 + def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end + + # source://parser//lib/parser/source/rewriter/action.rb#24 + def <=>(other); end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def allow_multiple_insertions; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def allow_multiple_insertions?; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def order; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def range; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def replacement; end + + # source://parser//lib/parser/source/rewriter/action.rb#30 + def to_s; end +end + +# @api public +# +# source://parser//lib/parser/source/rewriter.rb#504 +Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# {TreeRewriter} performs the heavy lifting in the source rewriting process. +# It schedules code updates to be performed in the correct order. +# +# For simple cases, the resulting source will be obvious. +# +# Examples for more complex cases follow. Assume these examples are acting on +# the source `'puts(:hello, :world)`. The methods #wrap, #remove, etc. +# receive a Range as first argument; for clarity, examples below use english +# sentences and a string of raw code instead. +# +# ## Overlapping ranges: +# +# Any two rewriting actions on overlapping ranges will fail and raise +# a `ClobberingError`, unless they are both deletions (covered next). +# +# * wrap ':hello, ' with '(' and ')' +# * wrap ', :world' with '(' and ')' +# => CloberringError +# +# ## Overlapping deletions: +# +# * remove ':hello, ' +# * remove ', :world' +# +# The overlapping ranges are merged and `':hello, :world'` will be removed. +# This policy can be changed. `:crossing_deletions` defaults to `:accept` +# but can be set to `:warn` or `:raise`. +# +# ## Multiple actions at the same end points: +# +# Results will always be independent on the order they were given. +# Exception: rewriting actions done on exactly the same range (covered next). +# +# Example: +# * replace ', ' by ' => ' +# * wrap ':hello, :world' with '{' and '}' +# * replace ':world' with ':everybody' +# * wrap ':world' with '[', ']' +# +# The resulting string will be `'puts({:hello => [:everybody]})'` +# and this result is independent on the order the instructions were given in. +# +# Note that if the two "replace" were given as a single replacement of ', :world' +# for ' => :everybody', the result would be a `ClobberingError` because of the wrap +# in square brackets. +# +# ## Multiple wraps on same range: +# * wrap ':hello' with '(' and ')' +# * wrap ':hello' with '[' and ']' +# +# The wraps are combined in order given and results would be `'puts([(:hello)], :world)'`. +# +# ## Multiple replacements on same range: +# * replace ':hello' by ':hi', then +# * replace ':hello' by ':hey' +# +# The replacements are made in the order given, so the latter replacement +# supersedes the former and ':hello' will be replaced by ':hey'. +# +# This policy can be changed. `:different_replacements` defaults to `:accept` +# but can be set to `:warn` or `:raise`. +# +# ## Swallowed insertions: +# wrap 'world' by '__', '__' +# replace ':hello, :world' with ':hi' +# +# A containing replacement will swallow the contained rewriting actions +# and `':hello, :world'` will be replaced by `':hi'`. +# +# This policy can be changed for swallowed insertions. `:swallowed_insertions` +# defaults to `:accept` but can be set to `:warn` or `:raise` +# +# ## Implementation +# The updates are organized in a tree, according to the ranges they act on +# (where children are strictly contained by their parent), hence the name. +# +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#91 +class Parser::Source::TreeRewriter + extend ::Parser::Deprecation + + # @api public + # @param source_buffer [Source::Buffer] + # @return [TreeRewriter] a new instance of TreeRewriter + # + # source://parser//lib/parser/source/tree_rewriter.rb#98 + def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end + + # Returns a representation of the rewriter as nested insertions (:wrap) and replacements. + # + # rewriter.as_actions # =>[ [:wrap, 1...10, '(', ')'], + # [:wrap, 2...6, '', '!'], # aka "insert_after" + # [:replace, 2...4, 'foo'], + # [:replace, 5...6, ''], # aka "removal" + # ], + # + # Contrary to `as_replacements`, this representation is sufficient to recreate exactly + # the rewriter. + # + # @api public + # @return [Array<(Symbol, Range, String{, String})>] + # + # source://parser//lib/parser/source/tree_rewriter.rb#299 + def as_nested_actions; end + + # Returns a representation of the rewriter as an ordered list of replacements. + # + # rewriter.as_replacements # => [ [1...1, '('], + # [2...4, 'foo'], + # [5...6, ''], + # [6...6, '!'], + # [10...10, ')'], + # ] + # + # This representation is sufficient to recreate the result of `process` but it is + # not sufficient to recreate completely the rewriter for further merging/actions. + # See `as_nested_actions` + # + # @api public + # @return [Array] an ordered list of pairs of range & replacement + # + # source://parser//lib/parser/source/tree_rewriter.rb#281 + def as_replacements; end + + # @api public + # @return [Diagnostic::Engine] + # + # source://parser//lib/parser/source/tree_rewriter.rb#93 + def diagnostics; end + + # Returns true iff no (non trivial) update has been recorded + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/tree_rewriter.rb#125 + def empty?; end + + # For special cases where one needs to merge a rewriter attached to a different source_buffer + # or that needs to be offset. Policies of the receiver are used. + # + # @api public + # @param rewriter [TreeRewriter] from different source_buffer + # @param offset [Integer] + # @raise [IndexError] if action ranges (once offset) don't fit the current buffer + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#168 + def import!(foreign_rewriter, offset: T.unsafe(nil)); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/tree_rewriter.rb#329 + def in_transaction?; end + + # Shortcut for `wrap(range, nil, content)` + # + # @api public + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#242 + def insert_after(range, content); end + + # @api private + # @deprecated Use insert_after or wrap + # + # source://parser//lib/parser/source/tree_rewriter.rb#351 + def insert_after_multi(range, text); end + + # Shortcut for `wrap(range, content, nil)` + # + # @api public + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#230 + def insert_before(range, content); end + + # @api private + # @deprecated Use insert_after or wrap + # + # source://parser//lib/parser/source/tree_rewriter.rb#342 + def insert_before_multi(range, text); end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#334 + def inspect; end + + # Returns a new rewriter that consists of the updates of the received + # and the given argument. Policies of the receiver are used. + # + # @api public + # @param with [Rewriter] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] merge of receiver and argument + # + # source://parser//lib/parser/source/tree_rewriter.rb#155 + def merge(with); end + + # Merges the updates of argument with the receiver. + # Policies of the receiver are used. + # This action is atomic in that it won't change the receiver + # unless it succeeds. + # + # @api public + # @param with [Rewriter] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#139 + def merge!(with); end + + # Applies all scheduled changes to the `source_buffer` and returns + # modified source as a new string. + # + # @api public + # @return [String] + # + # source://parser//lib/parser/source/tree_rewriter.rb#252 + def process; end + + # Shortcut for `replace(range, '')` + # + # @api public + # @param range [Range] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#217 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#193 + def replace(range, content); end + + # @api public + # @return [Source::Buffer] + # + # source://parser//lib/parser/source/tree_rewriter.rb#92 + def source_buffer; end + + # Provides a protected block where a sequence of multiple rewrite actions + # are handled atomically. If any of the actions failed by clobbering, + # all the actions are rolled back. Transactions can be nested. + # + # @api public + # @raise [RuntimeError] when no block is passed + # + # source://parser//lib/parser/source/tree_rewriter.rb#310 + def transaction; end + + # Inserts the given strings before and after the given range. + # + # @api public + # @param range [Range] + # @param insert_before [String, nil] + # @param insert_after [String, nil] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#206 + def wrap(range, insert_before, insert_after); end + + protected + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#365 + def action_root; end + + private + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#369 + def action_summary; end + + # @api public + # @raise [ArgumentError] + # + # source://parser//lib/parser/source/tree_rewriter.rb#392 + def check_policy_validity; end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#404 + def check_range_validity(range); end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#397 + def combine(range, attributes); end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#411 + def enforce_policy(event); end + + # @api public + # @raise [Parser::ClobberingError] + # + # source://parser//lib/parser/source/tree_rewriter.rb#418 + def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end +end + +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#391 +Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array) + +# source://parser//lib/parser/source/tree_rewriter/action.rb#13 +class Parser::Source::TreeRewriter::Action + # source://parser//lib/parser/source/tree_rewriter/action.rb#16 + def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#28 + def combine(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#67 + def contract; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#33 + def empty?; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def insert_after; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def insert_before; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#57 + def insertion?; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#80 + def moved(source_buffer, offset); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#49 + def nested_actions; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#40 + def ordered_replacements; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def range; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def replacement; end + + protected + + # source://parser//lib/parser/source/tree_rewriter/action.rb#158 + def analyse_hierarchy(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#145 + def bsearch_child_index(from = T.unsafe(nil)); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#224 + def call_enforcer_for_merge(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#204 + def check_fusible(action, *fusible); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#94 + def children; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#129 + def combine_children(more_children); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#102 + def do_combine(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#135 + def fuse_deletions(action, fusible, other_sibblings); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#215 + def merge(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#110 + def place_in_hierarchy(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#232 + def swallow(children); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#96 + def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end +end + +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#356 +Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#417 +Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/static_environment.rb#5 +class Parser::StaticEnvironment + # @return [StaticEnvironment] a new instance of StaticEnvironment + # + # source://parser//lib/parser/static_environment.rb#11 + def initialize; end + + # source://parser//lib/parser/static_environment.rb#40 + def declare(name); end + + # source://parser//lib/parser/static_environment.rb#58 + def declare_anonymous_blockarg; end + + # source://parser//lib/parser/static_environment.rb#74 + def declare_anonymous_kwrestarg; end + + # source://parser//lib/parser/static_environment.rb#66 + def declare_anonymous_restarg; end + + # source://parser//lib/parser/static_environment.rb#50 + def declare_forward_args; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#46 + def declared?(name); end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#62 + def declared_anonymous_blockarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#78 + def declared_anonymous_kwrestarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#70 + def declared_anonymous_restarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#54 + def declared_forward_args?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#82 + def empty?; end + + # source://parser//lib/parser/static_environment.rb#27 + def extend_dynamic; end + + # source://parser//lib/parser/static_environment.rb#20 + def extend_static; end + + # source://parser//lib/parser/static_environment.rb#15 + def reset; end + + # source://parser//lib/parser/static_environment.rb#34 + def unextend; end +end + +# source://parser//lib/parser/static_environment.rb#7 +Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#9 +Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#8 +Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#6 +Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) + +# {Parser::SyntaxError} is raised whenever parser detects a syntax error, +# similar to the standard SyntaxError class. +# +# @api public +# +# source://parser//lib/parser/syntax_error.rb#13 +class Parser::SyntaxError < ::StandardError + # @api public + # @return [SyntaxError] a new instance of SyntaxError + # + # source://parser//lib/parser/syntax_error.rb#16 + def initialize(diagnostic); end + + # @api public + # @return [Parser::Diagnostic] + # + # source://parser//lib/parser/syntax_error.rb#14 + def diagnostic; end +end + +# {Parser::TreeRewriter} offers a basic API that makes it easy to rewrite +# existing ASTs. It's built on top of {Parser::AST::Processor} and +# {Parser::Source::TreeRewriter} +# +# For example, assume you want to remove `do` tokens from a while statement. +# You can do this as following: +# +# require 'parser/current' +# +# class RemoveDo < Parser::TreeRewriter +# def on_while(node) +# # Check if the statement starts with "do" +# if node.location.begin.is?('do') +# remove(node.location.begin) +# end +# end +# end +# +# code = <<-EOF +# while true do +# puts 'hello' +# end +# EOF +# +# ast = Parser::CurrentRuby.parse code +# buffer = Parser::Source::Buffer.new('(example)', source: code) +# rewriter = RemoveDo.new +# +# # Rewrite the AST, returns a String with the new form. +# puts rewriter.rewrite(buffer, ast) +# +# This would result in the following Ruby code: +# +# while true +# puts 'hello' +# end +# +# Keep in mind that {Parser::TreeRewriter} does not take care of indentation when +# inserting/replacing code so you'll have to do this yourself. +# +# See also [a blog entry](http://whitequark.org/blog/2013/04/26/lets-play-with-ruby-code/) +# describing rewriters in greater detail. +# +# @api public +# +# source://parser//lib/parser/tree_rewriter.rb#51 +class Parser::TreeRewriter < ::Parser::AST::Processor + # Returns `true` if the specified node is an assignment node, returns false + # otherwise. + # + # @api public + # @param node [Parser::AST::Node] + # @return [Boolean] + # + # source://parser//lib/parser/tree_rewriter.rb#79 + def assignment?(node); end + + # Inserts new code after the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#118 + def insert_after(range, content); end + + # Inserts new code before the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#108 + def insert_before(range, content); end + + # Removes the source range. + # + # @api public + # @param range [Parser::Source::Range] + # + # source://parser//lib/parser/tree_rewriter.rb#88 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#128 + def replace(range, content); end + + # Rewrites the AST/source buffer and returns a String containing the new + # version. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param ast [Parser::AST::Node] + # @param crossing_deletions:, [Symbol] different_replacements:, swallowed_insertions: + # policy arguments for TreeRewriter (optional) + # @return [String] + # + # source://parser//lib/parser/tree_rewriter.rb#62 + def rewrite(source_buffer, ast, **policy); end + + # Wraps the given source range with the given values. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#98 + def wrap(range, before, after); end +end + +# source://parser//lib/parser/version.rb#4 +Parser::VERSION = T.let(T.unsafe(nil), String) + +# source://parser//lib/parser/variables_stack.rb#5 +class Parser::VariablesStack + # @return [VariablesStack] a new instance of VariablesStack + # + # source://parser//lib/parser/variables_stack.rb#6 + def initialize; end + + # source://parser//lib/parser/variables_stack.rb#27 + def declare(name); end + + # @return [Boolean] + # + # source://parser//lib/parser/variables_stack.rb#31 + def declared?(name); end + + # @return [Boolean] + # + # source://parser//lib/parser/variables_stack.rb#11 + def empty?; end + + # source://parser//lib/parser/variables_stack.rb#19 + def pop; end + + # source://parser//lib/parser/variables_stack.rb#15 + def push; end + + # source://parser//lib/parser/variables_stack.rb#23 + def reset; end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/prettier_print@1.2.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/prettier_print@1.2.1.rbi new file mode 100755 index 000000000..4e8852502 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/prettier_print@1.2.1.rbi @@ -0,0 +1,951 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `prettier_print` gem. +# Please instead update this file by running `bin/tapioca gem prettier_print`. + +# This class implements a pretty printing algorithm. It finds line breaks and +# nice indentations for grouped structure. +# +# By default, the class assumes that primitive elements are strings and each +# byte in the strings is a single column in width. But it can be used for other +# situations by giving suitable arguments for some methods: +# +# * newline object and space generation block for PrettierPrint.new +# * optional width argument for PrettierPrint#text +# * PrettierPrint#breakable +# +# There are several candidate uses: +# * text formatting using proportional fonts +# * multibyte characters which has columns different to number of bytes +# * non-string formatting +# +# == Usage +# +# To use this module, you will need to generate a tree of print nodes that +# represent indentation and newline behavior before it gets sent to the printer. +# Each node has different semantics, depending on the desired output. +# +# The most basic node is a Text node. This represents plain text content that +# cannot be broken up even if it doesn't fit on one line. You would create one +# of those with the text method, as in: +# +# PrettierPrint.format { |q| q.text('my content') } +# +# No matter what the desired output width is, the output for the snippet above +# will always be the same. +# +# If you want to allow the printer to break up the content on the space +# character when there isn't enough width for the full string on the same line, +# you can use the Breakable and Group nodes. For example: +# +# PrettierPrint.format do |q| +# q.group do +# q.text("my") +# q.breakable +# q.text("content") +# end +# end +# +# Now, if everything fits on one line (depending on the maximum width specified) +# then it will be the same output as the first example. If, however, there is +# not enough room on the line, then you will get two lines of output, one for +# the first string and one for the second. +# +# There are other nodes for the print tree as well, described in the +# documentation below. They control alignment, indentation, conditional +# formatting, and more. +# +# == References +# Christian Lindig, Strictly Pretty, March 2000 +# https://lindig.github.io/papers/strictly-pretty-2000.pdf +# +# Philip Wadler, A prettier printer, March 1998 +# https://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf +# +# source://prettier_print//lib/prettier_print.rb#62 +class PrettierPrint + # Creates a buffer for pretty printing. + # + # +output+ is an output target. If it is not specified, '' is assumed. It + # should have a << method which accepts the first argument +obj+ of + # PrettierPrint#text, the first argument +separator+ of PrettierPrint#breakable, + # the first argument +newline+ of PrettierPrint.new, and the result of a given + # block for PrettierPrint.new. + # + # +maxwidth+ specifies maximum line length. If it is not specified, 80 is + # assumed. However actual outputs may overflow +maxwidth+ if long + # non-breakable texts are provided. + # + # +newline+ is used for line breaks. "\n" is used if it is not specified. + # + # The block is used to generate spaces. ->(n) { ' ' * n } is used if it is not + # given. + # + # @return [PrettierPrint] a new instance of PrettierPrint + # + # source://prettier_print//lib/prettier_print.rb#441 + def initialize(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), &genspace); end + + # This inserts a BreakParent node into the print tree which forces the + # surrounding and all parent group nodes to break. + # + # source://prettier_print//lib/prettier_print.rb#814 + def break_parent; end + + # This says "you can break a line here if necessary", and a +width+\-column + # text +separator+ is inserted if a line is not broken at the point. + # + # If +separator+ is not specified, ' ' is used. + # + # If +width+ is not specified, +separator.length+ is used. You will have to + # specify this when +separator+ is a multibyte character, for example. + # + # By default, if the surrounding group is broken and a newline is inserted, + # the printer will indent the subsequent line up to the current level of + # indentation. You can disable this behavior with the +indent+ argument if + # that's not desired (rare). + # + # By default, when you insert a Breakable into the print tree, it only breaks + # the surrounding group when the group's contents cannot fit onto the + # remaining space of the current line. You can force it to break the + # surrounding group instead if you always want the newline with the +force+ + # argument. + # + # There are a few circumstances where you'll want to force the newline into + # the output but no insert a break parent (because you don't want to + # necessarily force the groups to break unless they need to). In this case you + # can pass `force: :skip_break_parent` to this method and it will not insert + # a break parent.` + # + # source://prettier_print//lib/prettier_print.rb#802 + def breakable(separator = T.unsafe(nil), width = T.unsafe(nil), indent: T.unsafe(nil), force: T.unsafe(nil)); end + + # Another very common breakable call you receive while formatting is an + # empty string in flat mode and a newline in break mode. Similar to + # breakable_space, this is here for avoid unnecessary calculation. + # + # source://prettier_print//lib/prettier_print.rb#646 + def breakable_empty; end + + # The final of the very common breakable calls you receive while formatting + # is the normal breakable space but with the addition of the break_parent. + # + # source://prettier_print//lib/prettier_print.rb#652 + def breakable_force; end + + # This is the same shortcut as breakable_force, except that it doesn't indent + # the next line. This is necessary if you're trying to preserve some custom + # formatting like a multi-line string. + # + # source://prettier_print//lib/prettier_print.rb#660 + def breakable_return; end + + # The vast majority of breakable calls you receive while formatting are a + # space in flat mode and a newline in break mode. Since this is so common, + # we have a method here to skip past unnecessary calculation. + # + # source://prettier_print//lib/prettier_print.rb#639 + def breakable_space; end + + # This is an output buffer that wraps the output object and provides + # additional functionality depending on its type. + # + # This defaults to Buffer::StringBuffer.new("".dup) + # + # source://prettier_print//lib/prettier_print.rb#400 + def buffer; end + + # A convenience method which is same as follows: + # + # text(",") + # breakable + # + # source://prettier_print//lib/prettier_print.rb#669 + def comma_breakable; end + + # Returns the group most recently added to the stack. + # + # Contrived example: + # out = "" + # => "" + # q = PrettierPrint.new(out) + # => # + # q.group { + # q.text q.current_group.inspect + # q.text q.newline + # q.group(q.current_group.depth + 1) { + # q.text q.current_group.inspect + # q.text q.newline + # q.group(q.current_group.depth + 1) { + # q.text q.current_group.inspect + # q.text q.newline + # q.group(q.current_group.depth + 1) { + # q.text q.current_group.inspect + # q.text q.newline + # } + # } + # } + # } + # => 284 + # puts out + # # + # # + # # + # # + # + # source://prettier_print//lib/prettier_print.rb#484 + def current_group; end + + # This is similar to #breakable except the decision to break or not is + # determined individually. + # + # Two #fill_breakable under a group may cause 4 results: + # (break,break), (break,non-break), (non-break,break), (non-break,non-break). + # This is different to #breakable because two #breakable under a group + # may cause 2 results: (break,break), (non-break,non-break). + # + # The text +separator+ is inserted if a line is not broken at this point. + # + # If +separator+ is not specified, ' ' is used. + # + # If +width+ is not specified, +separator.length+ is used. You will have to + # specify this when +separator+ is a multibyte character, for example. + # + # source://prettier_print//lib/prettier_print.rb#688 + def fill_breakable(separator = T.unsafe(nil), width = T.unsafe(nil)); end + + # Flushes all of the generated print tree onto the output buffer, then clears + # the generated tree from memory. + # + # source://prettier_print//lib/prettier_print.rb#490 + def flush(base_indentation = T.unsafe(nil)); end + + # An object that responds to call that takes one argument, of an Integer, and + # returns the corresponding number of spaces. + # + # By default this is: ->(n) { ' ' * n } + # + # source://prettier_print//lib/prettier_print.rb#416 + def genspace; end + + # Groups line break hints added in the block. The line break hints are all to + # be used or not. + # + # If +indent+ is specified, the method call is regarded as nested by + # nest(indent) { ... }. + # + # If +open_object+ is specified, text(open_object, open_width) is + # called before grouping. If +close_object+ is specified, + # text(close_object, close_width) is called after grouping. + # + # source://prettier_print//lib/prettier_print.rb#845 + def group(indent = T.unsafe(nil), open_object = T.unsafe(nil), close_object = T.unsafe(nil), open_width = T.unsafe(nil), close_width = T.unsafe(nil)); end + + # The stack of groups that are being printed. + # + # source://prettier_print//lib/prettier_print.rb#419 + def groups; end + + # Inserts an IfBreak node with the contents of the block being added to its + # list of nodes that should be printed if the surrounding node breaks. If it + # doesn't, then you can specify the contents to be printed with the #if_flat + # method used on the return object from this method. For example, + # + # q.if_break { q.text('do') }.if_flat { q.text('{') } + # + # In the example above, if the surrounding group is broken it will print 'do' + # and if it is not it will print '{'. + # + # source://prettier_print//lib/prettier_print.rb#917 + def if_break; end + + # This is similar to if_break in that it also inserts an IfBreak node into the + # print tree, however it's starting from the flat contents, and cannot be used + # to build the break contents. + # + # source://prettier_print//lib/prettier_print.rb#936 + def if_flat; end + + # Very similar to the #nest method, this indents the nested content by one + # level by inserting an Indent node into the print tree. The contents of the + # node are determined by the block. + # + # source://prettier_print//lib/prettier_print.rb#956 + def indent; end + + # This method calculates the position of the text relative to the current + # indentation level when the doc has been printed. It's useful for + # determining how to align text to doc nodes that are already built into the + # tree. + # + # source://prettier_print//lib/prettier_print.rb#696 + def last_position(node); end + + # Inserts a LineSuffix node into the print tree. The contents of the node are + # determined by the block. + # + # source://prettier_print//lib/prettier_print.rb#967 + def line_suffix(priority: T.unsafe(nil)); end + + # The maximum width of a line, before it is separated in to a newline + # + # This defaults to 80, and should be an Integer + # + # source://prettier_print//lib/prettier_print.rb#405 + def maxwidth; end + + # Increases left margin after newline with +indent+ for line breaks added in + # the block. + # + # source://prettier_print//lib/prettier_print.rb#977 + def nest(indent); end + + # The value that is appended to +output+ to add a new line. + # + # This defaults to "\n", and should be String + # + # source://prettier_print//lib/prettier_print.rb#410 + def newline; end + + # The output object. It represents the final destination of the contents of + # the print tree. It should respond to <<. + # + # This defaults to "".dup + # + # source://prettier_print//lib/prettier_print.rb#394 + def output; end + + # This method will remove any breakables from the list of contents so that + # no newlines are present in the output. If a newline is being forced into + # the output, the replace value will be used. + # + # source://prettier_print//lib/prettier_print.rb#721 + def remove_breaks(node, replace = T.unsafe(nil)); end + + # Adds a separated list. + # The list is separated by comma with breakable space, by default. + # + # #seplist iterates the +list+ using +iter_method+. + # It yields each object to the block given for #seplist. + # The procedure +separator_proc+ is called between each yields. + # + # If the iteration is zero times, +separator_proc+ is not called at all. + # + # If +separator_proc+ is nil or not given, + # +lambda { comma_breakable }+ is used. + # If +iter_method+ is not given, :each is used. + # + # For example, following 3 code fragments has similar effect. + # + # q.seplist([1,2,3]) {|v| xxx v } + # + # q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v } + # + # xxx 1 + # q.comma_breakable + # xxx 2 + # q.comma_breakable + # xxx 3 + # + # source://prettier_print//lib/prettier_print.rb#760 + def seplist(list, sep = T.unsafe(nil), iter_method = T.unsafe(nil)); end + + # The current array of contents that calls to methods that generate print tree + # nodes will append to. + # + # source://prettier_print//lib/prettier_print.rb#423 + def target; end + + # This adds +object+ as a text of +width+ columns in width. + # + # If +width+ is not specified, object.length is used. + # + # source://prettier_print//lib/prettier_print.rb#989 + def text(object = T.unsafe(nil), width = T.unsafe(nil)); end + + # This inserts a Trim node into the print tree which, when printed, will clear + # all whitespace at the end of the output buffer. This is useful for the rare + # case where you need to delete printed indentation and force the next node + # to start at the beginning of the line. + # + # source://prettier_print//lib/prettier_print.rb#828 + def trim; end + + # A convenience method used by a lot of the print tree node builders that + # temporarily changes the target that the builders will append to. + # + # source://prettier_print//lib/prettier_print.rb#1007 + def with_target(target); end + + private + + # This method returns a boolean as to whether or not the remaining commands + # fit onto the remaining space on the current line. If we finish printing + # all of the commands or if we hit a newline, then we return true. Otherwise + # if we continue printing past the remaining space, we return false. + # + # @return [Boolean] + # + # source://prettier_print//lib/prettier_print.rb#1019 + def fits?(next_commands, rest_commands, remaining); end + + # source://prettier_print//lib/prettier_print.rb#1091 + def remove_breaks_with(doc, replace); end + + # Resets the group stack and target array so that this pretty printer object + # can continue to be used before calling flush again if desired. + # + # source://prettier_print//lib/prettier_print.rb#1085 + def reset; end + + class << self + # This is a convenience method which is same as follows: + # + # begin + # q = PrettierPrint.new(output, maxwidth, newline, &genspace) + # ... + # q.flush + # output + # end + # + # @yield [q] + # + # source://prettier_print//lib/prettier_print.rb#377 + def format(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), genspace = T.unsafe(nil), indentation = T.unsafe(nil)); end + + # This is similar to PrettierPrint::format but the result has no breaks. + # + # +maxwidth+, +newline+ and +genspace+ are ignored. + # + # The invocation of +breakable+ in the block doesn't break a line and is + # treated as just an invocation of +text+. + # + # @yield [q] + # + # source://prettier_print//lib/prettier_print/single_line.rb#156 + def singleline_format(output = T.unsafe(nil), _maxwidth = T.unsafe(nil), _newline = T.unsafe(nil), _genspace = T.unsafe(nil)); end + end +end + +# A node in the print tree that represents aligning nested nodes to a certain +# prefix width or string. +# +# source://prettier_print//lib/prettier_print.rb#65 +class PrettierPrint::Align + # @return [Align] a new instance of Align + # + # source://prettier_print//lib/prettier_print.rb#68 + def initialize(indent:, contents: T.unsafe(nil)); end + + # Returns the value of attribute contents. + # + # source://prettier_print//lib/prettier_print.rb#66 + def contents; end + + # Returns the value of attribute indent. + # + # source://prettier_print//lib/prettier_print.rb#66 + def indent; end + + # source://prettier_print//lib/prettier_print.rb#73 + def pretty_print(q); end +end + +# source://prettier_print//lib/prettier_print.rb#126 +PrettierPrint::BREAKABLE_EMPTY = T.let(T.unsafe(nil), PrettierPrint::Breakable) + +# source://prettier_print//lib/prettier_print.rb#127 +PrettierPrint::BREAKABLE_FORCE = T.let(T.unsafe(nil), PrettierPrint::Breakable) + +# source://prettier_print//lib/prettier_print.rb#128 +PrettierPrint::BREAKABLE_RETURN = T.let(T.unsafe(nil), PrettierPrint::Breakable) + +# Below here are the most common combination of options that are created when +# creating new breakables. They are here to cut down on some allocations. +# +# source://prettier_print//lib/prettier_print.rb#125 +PrettierPrint::BREAKABLE_SPACE = T.let(T.unsafe(nil), PrettierPrint::Breakable) + +# Since there's really no difference in these instances, just using the same +# one saves on some allocations. +# +# source://prettier_print//lib/prettier_print.rb#141 +PrettierPrint::BREAK_PARENT = T.let(T.unsafe(nil), PrettierPrint::BreakParent) + +# A node in the print tree that forces the surrounding group to print out in +# the "break" mode as opposed to the "flat" mode. Useful for when you need to +# force a newline into a group. +# +# source://prettier_print//lib/prettier_print.rb#133 +class PrettierPrint::BreakParent + # source://prettier_print//lib/prettier_print.rb#134 + def pretty_print(q); end +end + +# A node in the print tree that represents a place in the buffer that the +# content can be broken onto multiple lines. +# +# source://prettier_print//lib/prettier_print.rb#82 +class PrettierPrint::Breakable + # @return [Breakable] a new instance of Breakable + # + # source://prettier_print//lib/prettier_print.rb#85 + def initialize(separator = T.unsafe(nil), width = T.unsafe(nil), force: T.unsafe(nil), indent: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://prettier_print//lib/prettier_print.rb#97 + def force?; end + + # @return [Boolean] + # + # source://prettier_print//lib/prettier_print.rb#101 + def indent?; end + + # source://prettier_print//lib/prettier_print.rb#105 + def pretty_print(q); end + + # Returns the value of attribute separator. + # + # source://prettier_print//lib/prettier_print.rb#83 + def separator; end + + # Returns the value of attribute width. + # + # source://prettier_print//lib/prettier_print.rb#83 + def width; end +end + +# When building up the contents in the output buffer, it's convenient to be +# able to trim trailing whitespace before newlines. If the output object is a +# string or array or strings, then we can do this with some gsub calls. If +# not, then this effectively just wraps the output object and forwards on +# calls to <<. +# +# source://prettier_print//lib/prettier_print.rb#277 +module PrettierPrint::Buffer + class << self + # This is a switch for building the correct output buffer wrapper class for + # the given output object. + # + # source://prettier_print//lib/prettier_print.rb#336 + def for(output); end + end +end + +# This is an output buffer that wraps an array output object. It provides a +# trim! method that trims off trailing whitespace from the last element in +# the array if it's an unfrozen string using the same method as the +# StringBuffer. +# +# source://prettier_print//lib/prettier_print.rb#303 +class PrettierPrint::Buffer::ArrayBuffer + # @return [ArrayBuffer] a new instance of ArrayBuffer + # + # source://prettier_print//lib/prettier_print.rb#306 + def initialize(output = T.unsafe(nil)); end + + # source://prettier_print//lib/prettier_print.rb#310 + def <<(object); end + + # Returns the value of attribute output. + # + # source://prettier_print//lib/prettier_print.rb#304 + def output; end + + # source://prettier_print//lib/prettier_print.rb#314 + def trim!; end +end + +# This is an output buffer that wraps a string output object. It provides a +# trim! method that trims off trailing whitespace from the string using +# gsub!. +# +# source://prettier_print//lib/prettier_print.rb#281 +class PrettierPrint::Buffer::StringBuffer + # @return [StringBuffer] a new instance of StringBuffer + # + # source://prettier_print//lib/prettier_print.rb#284 + def initialize(output = T.unsafe(nil)); end + + # source://prettier_print//lib/prettier_print.rb#288 + def <<(object); end + + # Returns the value of attribute output. + # + # source://prettier_print//lib/prettier_print.rb#282 + def output; end + + # source://prettier_print//lib/prettier_print.rb#292 + def trim!; end +end + +# When generating spaces after a newline for indentation, by default we +# generate one space per character needed for indentation. You can change this +# behavior (for instance to use tabs) by passing a different genspace +# procedure. +# +# source://prettier_print//lib/prettier_print.rb#350 +PrettierPrint::DEFAULT_GENSPACE = T.let(T.unsafe(nil), Proc) + +# The default indentation for printing is zero, assuming that the code starts +# at the top level. That can be changed if desired to start from a different +# indentation level. +# +# source://prettier_print//lib/prettier_print.rb#366 +PrettierPrint::DEFAULT_INDENTATION = T.let(T.unsafe(nil), Integer) + +# When printing, you can optionally specify the value that should be used +# whenever a group needs to be broken onto multiple lines. In this case the +# default is \n. +# +# source://prettier_print//lib/prettier_print.rb#344 +PrettierPrint::DEFAULT_NEWLINE = T.let(T.unsafe(nil), String) + +# A node in the print tree that represents a group of items which the printer +# should try to fit onto one line. This is the basic command to tell the +# printer when to break. Groups are usually nested, and the printer will try +# to fit everything on one line, but if it doesn't fit it will break the +# outermost group first and try again. It will continue breaking groups until +# everything fits (or there are no more groups to break). +# +# source://prettier_print//lib/prettier_print.rb#149 +class PrettierPrint::Group + # @return [Group] a new instance of Group + # + # source://prettier_print//lib/prettier_print.rb#152 + def initialize(depth, contents: T.unsafe(nil)); end + + # source://prettier_print//lib/prettier_print.rb#158 + def break; end + + # @return [Boolean] + # + # source://prettier_print//lib/prettier_print.rb#162 + def break?; end + + # Returns the value of attribute contents. + # + # source://prettier_print//lib/prettier_print.rb#150 + def contents; end + + # Returns the value of attribute depth. + # + # source://prettier_print//lib/prettier_print.rb#150 + def depth; end + + # source://prettier_print//lib/prettier_print.rb#166 + def pretty_print(q); end +end + +# A node in the print tree that represents printing one thing if the +# surrounding group node is broken and another thing if the surrounding group +# node is flat. +# +# source://prettier_print//lib/prettier_print.rb#176 +class PrettierPrint::IfBreak + # @return [IfBreak] a new instance of IfBreak + # + # source://prettier_print//lib/prettier_print.rb#179 + def initialize(break_contents: T.unsafe(nil), flat_contents: T.unsafe(nil)); end + + # Returns the value of attribute break_contents. + # + # source://prettier_print//lib/prettier_print.rb#177 + def break_contents; end + + # Returns the value of attribute flat_contents. + # + # source://prettier_print//lib/prettier_print.rb#177 + def flat_contents; end + + # source://prettier_print//lib/prettier_print.rb#184 + def pretty_print(q); end +end + +# A small DSL-like object used for specifying the alternative contents to be +# printed if the surrounding group doesn't break for an IfBreak node. +# +# source://prettier_print//lib/prettier_print.rb#874 +class PrettierPrint::IfBreakBuilder + # @return [IfBreakBuilder] a new instance of IfBreakBuilder + # + # source://prettier_print//lib/prettier_print.rb#877 + def initialize(q, flat_contents); end + + # Returns the value of attribute flat_contents. + # + # source://prettier_print//lib/prettier_print.rb#875 + def flat_contents; end + + # source://prettier_print//lib/prettier_print.rb#882 + def if_flat; end + + # Returns the value of attribute q. + # + # source://prettier_print//lib/prettier_print.rb#875 + def q; end +end + +# When we already know that groups are broken, we don't actually need to track +# the flat versions of the contents. So this builder version is effectively a +# no-op, but we need it to maintain the same API. The only thing this can +# impact is that if there's a forced break in the flat contents, then we need +# to propagate that break up the whole tree. +# +# source://prettier_print//lib/prettier_print.rb#892 +class PrettierPrint::IfFlatIgnore + # @return [IfFlatIgnore] a new instance of IfFlatIgnore + # + # source://prettier_print//lib/prettier_print.rb#895 + def initialize(q); end + + # source://prettier_print//lib/prettier_print.rb#899 + def if_flat; end + + # Returns the value of attribute q. + # + # source://prettier_print//lib/prettier_print.rb#893 + def q; end +end + +# A node in the print tree that is a variant of the Align node that indents +# its contents by one level. +# +# source://prettier_print//lib/prettier_print.rb#200 +class PrettierPrint::Indent + # @return [Indent] a new instance of Indent + # + # source://prettier_print//lib/prettier_print.rb#203 + def initialize(contents: T.unsafe(nil)); end + + # Returns the value of attribute contents. + # + # source://prettier_print//lib/prettier_print.rb#201 + def contents; end + + # source://prettier_print//lib/prettier_print.rb#207 + def pretty_print(q); end +end + +# A node in the print tree that has its own special buffer for implementing +# content that should flush before any newline. +# +# Useful for implementating trailing content, as it's not always practical to +# constantly check where the line ends to avoid accidentally printing some +# content after a line suffix node. +# +# source://prettier_print//lib/prettier_print.rb#220 +class PrettierPrint::LineSuffix + # @return [LineSuffix] a new instance of LineSuffix + # + # source://prettier_print//lib/prettier_print.rb#225 + def initialize(priority: T.unsafe(nil), contents: T.unsafe(nil)); end + + # Returns the value of attribute contents. + # + # source://prettier_print//lib/prettier_print.rb#223 + def contents; end + + # source://prettier_print//lib/prettier_print.rb#230 + def pretty_print(q); end + + # Returns the value of attribute priority. + # + # source://prettier_print//lib/prettier_print.rb#223 + def priority; end +end + +# source://prettier_print//lib/prettier_print.rb#221 +PrettierPrint::LineSuffix::DEFAULT_PRIORITY = T.let(T.unsafe(nil), Integer) + +# There are two modes in printing, break and flat. When we're in break mode, +# any lines will use their newline, any if-breaks will use their break +# contents, etc. +# +# source://prettier_print//lib/prettier_print.rb#356 +PrettierPrint::MODE_BREAK = T.let(T.unsafe(nil), Integer) + +# This is another print mode much like MODE_BREAK. When we're in flat mode, we +# attempt to print everything on one line until we either hit a broken group, +# a forced line, or the maximum width. +# +# source://prettier_print//lib/prettier_print.rb#361 +PrettierPrint::MODE_FLAT = T.let(T.unsafe(nil), Integer) + +# PrettierPrint::SingleLine is used by PrettierPrint.singleline_format +# +# It is passed to be similar to a PrettierPrint object itself, by responding to +# all of the same print tree node builder methods, as well as the #flush +# method. +# +# The significant difference here is that there are no line breaks in the +# output. If an IfBreak node is used, only the flat contents are printed. +# LineSuffix nodes are printed at the end of the buffer when #flush is called. +# +# source://prettier_print//lib/prettier_print/single_line.rb#13 +class PrettierPrint::SingleLine + # Create a PrettierPrint::SingleLine object + # + # Arguments: + # * +output+ - String (or similar) to store rendered text. Needs to respond + # to '<<'. + # * +maxwidth+ - Argument position expected to be here for compatibility. + # This argument is a noop. + # * +newline+ - Argument position expected to be here for compatibility. + # This argument is a noop. + # + # @return [SingleLine] a new instance of SingleLine + # + # source://prettier_print//lib/prettier_print/single_line.rb#34 + def initialize(output, _maxwidth = T.unsafe(nil), _newline = T.unsafe(nil)); end + + # Here for compatibility, does nothing. + # + # source://prettier_print//lib/prettier_print/single_line.rb#64 + def break_parent; end + + # Appends +separator+ to the text to be output. By default +separator+ is + # ' ' + # + # The +width+, +indent+, and +force+ arguments are here for compatibility. + # They are all noop arguments. + # + # source://prettier_print//lib/prettier_print/single_line.rb#54 + def breakable(separator = T.unsafe(nil), _width = T.unsafe(nil), indent: T.unsafe(nil), force: T.unsafe(nil)); end + + # Appends +separator+ to the output buffer. +width+ is a noop here for + # compatibility. + # + # source://prettier_print//lib/prettier_print/single_line.rb#69 + def fill_breakable(separator = T.unsafe(nil), _width = T.unsafe(nil)); end + + # Flushes the line suffixes onto the output buffer. + # + # source://prettier_print//lib/prettier_print/single_line.rb#41 + def flush; end + + # Opens a block for grouping objects to be pretty printed. + # + # Arguments: + # * +indent+ - noop argument. Present for compatibility. + # * +open_obj+ - text appended before the &block. Default is '' + # * +close_obj+ - text appended after the &block. Default is '' + # * +open_width+ - noop argument. Present for compatibility. + # * +close_width+ - noop argument. Present for compatibility. + # + # source://prettier_print//lib/prettier_print/single_line.rb#90 + def group(_indent = T.unsafe(nil), open_object = T.unsafe(nil), close_object = T.unsafe(nil), _open_width = T.unsafe(nil), _close_width = T.unsafe(nil)); end + + # Effectively unnecessary, but here for compatibility. + # + # source://prettier_print//lib/prettier_print/single_line.rb#113 + def if_break; end + + # Also effectively unnecessary, but here for compatibility. + # + # source://prettier_print//lib/prettier_print/single_line.rb#118 + def if_flat; end + + # A noop that immediately yields. + # + # source://prettier_print//lib/prettier_print/single_line.rb#122 + def indent; end + + # Changes the target output buffer to the line suffix output buffer which + # will get flushed at the end of printing. + # + # source://prettier_print//lib/prettier_print/single_line.rb#128 + def line_suffix; end + + # A buffer output that wraps any calls to line_suffix that will be flushed + # at the end of printing. + # + # source://prettier_print//lib/prettier_print/single_line.rb#23 + def line_suffixes; end + + # Takes +indent+ arg, but does nothing with it. + # + # Yields to a block. + # + # source://prettier_print//lib/prettier_print/single_line.rb#137 + def nest(_indent); end + + # The output object. It stores rendered text and should respond to <<. + # + # source://prettier_print//lib/prettier_print/single_line.rb#15 + def output; end + + # The current array of contents that the print tree builder methods should + # append to. + # + # source://prettier_print//lib/prettier_print/single_line.rb#19 + def target; end + + # Add +object+ to the text to be output. + # + # +width+ argument is here for compatibility. It is a noop argument. + # + # source://prettier_print//lib/prettier_print/single_line.rb#144 + def text(object = T.unsafe(nil), _width = T.unsafe(nil)); end + + # Immediately trims the output buffer. + # + # source://prettier_print//lib/prettier_print/single_line.rb#74 + def trim; end +end + +# A class that wraps the ability to call #if_flat. The contents of the +# #if_flat block are executed immediately, so effectively this class and the +# #if_break method that triggers it are unnecessary, but they're here to +# maintain compatibility. +# +# source://prettier_print//lib/prettier_print/single_line.rb#106 +class PrettierPrint::SingleLine::IfBreakBuilder + # source://prettier_print//lib/prettier_print/single_line.rb#107 + def if_flat; end +end + +# Since all of the instances here are the same, we can reuse the same one to +# cut down on allocations. +# +# source://prettier_print//lib/prettier_print.rb#270 +PrettierPrint::TRIM = T.let(T.unsafe(nil), PrettierPrint::Trim) + +# A node in the print tree that represents plain content that cannot be broken +# up (by default this assumes strings, but it can really be anything). +# +# source://prettier_print//lib/prettier_print.rb#239 +class PrettierPrint::Text + # @return [Text] a new instance of Text + # + # source://prettier_print//lib/prettier_print.rb#242 + def initialize; end + + # source://prettier_print//lib/prettier_print.rb#247 + def add(object: T.unsafe(nil), width: T.unsafe(nil)); end + + # Returns the value of attribute objects. + # + # source://prettier_print//lib/prettier_print.rb#240 + def objects; end + + # source://prettier_print//lib/prettier_print.rb#252 + def pretty_print(q); end + + # Returns the value of attribute width. + # + # source://prettier_print//lib/prettier_print.rb#240 + def width; end +end + +# A node in the print tree that represents trimming all of the indentation of +# the current line, in the rare case that you need to ignore the indentation +# that you've already created. This node should be placed after a Breakable. +# +# source://prettier_print//lib/prettier_print.rb#262 +class PrettierPrint::Trim + # source://prettier_print//lib/prettier_print.rb#263 + def pretty_print(q); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/racc@1.7.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/racc@1.7.1.rbi new file mode 100755 index 000000000..d01a4f515 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/racc@1.7.1.rbi @@ -0,0 +1,161 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `racc` gem. +# Please instead update this file by running `bin/tapioca gem racc`. + +# source://racc//lib/racc/parser.rb#23 +ParseError = Racc::ParseError + +# source://racc//lib/racc/info.rb#16 +Racc::Copyright = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#186 +class Racc::Parser + # source://racc//lib/racc/parser.rb#281 + def _racc_do_parse_rb(arg, in_debug); end + + # source://racc//lib/racc/parser.rb#481 + def _racc_do_reduce(arg, act); end + + # common + # + # source://racc//lib/racc/parser.rb#384 + def _racc_evalact(act, arg); end + + # source://racc//lib/racc/parser.rb#234 + def _racc_init_sysvars; end + + # source://racc//lib/racc/parser.rb#222 + def _racc_setup; end + + # source://racc//lib/racc/parser.rb#331 + def _racc_yyparse_rb(recv, mid, arg, c_debug); end + + # source://racc//lib/racc/parser.rb#264 + def do_parse; end + + # The method to fetch next token. + # If you use #do_parse method, you must implement #next_token. + # + # The format of return value is [TOKEN_SYMBOL, VALUE]. + # +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT + # for 'IDENT'. ";" (String) for ';'. + # + # The final symbol (End of file) must be false. + # + # @raise [NotImplementedError] + # + # source://racc//lib/racc/parser.rb#277 + def next_token; end + + # This method is called when a parse error is found. + # + # ERROR_TOKEN_ID is an internal ID of token which caused error. + # You can get string representation of this ID by calling + # #token_to_str. + # + # ERROR_VALUE is a value of error token. + # + # value_stack is a stack of symbol values. + # DO NOT MODIFY this object. + # + # This method raises ParseError by default. + # + # If this method returns, parsers enter "error recovering mode". + # + # @raise [ParseError] + # + # source://racc//lib/racc/parser.rb#537 + def on_error(t, val, vstack); end + + # source://racc//lib/racc/parser.rb#586 + def racc_accept; end + + # source://racc//lib/racc/parser.rb#591 + def racc_e_pop(state, tstack, vstack); end + + # source://racc//lib/racc/parser.rb#598 + def racc_next_state(curstate, state); end + + # source://racc//lib/racc/parser.rb#604 + def racc_print_stacks(t, v); end + + # source://racc//lib/racc/parser.rb#613 + def racc_print_states(s); end + + # For debugging output + # + # source://racc//lib/racc/parser.rb#560 + def racc_read_token(t, tok, val); end + + # source://racc//lib/racc/parser.rb#573 + def racc_reduce(toks, sim, tstack, vstack); end + + # source://racc//lib/racc/parser.rb#567 + def racc_shift(tok, tstack, vstack); end + + # source://racc//lib/racc/parser.rb#620 + def racc_token2str(tok); end + + # Convert internal ID of token symbol to the string. + # + # source://racc//lib/racc/parser.rb#626 + def token_to_str(t); end + + # Exit parser. + # Return value is +Symbol_Value_Stack[0]+. + # + # source://racc//lib/racc/parser.rb#550 + def yyaccept; end + + # Leave error recovering mode. + # + # source://racc//lib/racc/parser.rb#555 + def yyerrok; end + + # Enter error recovering mode. + # This method does not call #on_error. + # + # source://racc//lib/racc/parser.rb#544 + def yyerror; end + + # source://racc//lib/racc/parser.rb#326 + def yyparse(recv, mid); end + + class << self + # source://racc//lib/racc/parser.rb#218 + def racc_runtime_type; end + end +end + +# source://racc//lib/racc/parser.rb#207 +Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol) + +Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#209 +Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String) + +Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#189 +Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#210 +Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#188 +Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/parser.rb#208 +Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol) + +# source://racc//lib/racc/parser.rb#183 +Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass) + +# source://racc//lib/racc/info.rb#14 +Racc::VERSION = T.let(T.unsafe(nil), String) + +# source://racc//lib/racc/info.rb#15 +Racc::Version = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/rack@3.0.8.rbi b/ruby-client-sdk/sorbet/rbi/gems/rack@3.0.8.rbi new file mode 100755 index 000000000..d6a4eacf9 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rack@3.0.8.rbi @@ -0,0 +1,5183 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rack` gem. +# Please instead update this file by running `bin/tapioca gem rack`. + +# The Rack main module, serving as a namespace for all core Rack +# modules and classes. +# +# All modules meant for use in your application are autoloaded here, +# so it should be enough just to require 'rack' in your code. +# +# source://rack//lib/rack/version.rb#14 +module Rack + class << self + # Return the Rack release as a dotted string. + # + # source://rack//lib/rack/version.rb#31 + def release; end + + # The Rack protocol version number implemented. + # + # source://rack//lib/rack/version.rb#23 + def version; end + end +end + +# source://rack//lib/rack.rb#65 +module Rack::Auth; end + +# Rack::Auth::AbstractHandler implements common authentication functionality. +# +# +realm+ should be set for all handlers. +# +# source://rack//lib/rack/auth/abstract/handler.rb#11 +class Rack::Auth::AbstractHandler + # @return [AbstractHandler] a new instance of AbstractHandler + # + # source://rack//lib/rack/auth/abstract/handler.rb#15 + def initialize(app, realm = T.unsafe(nil), &authenticator); end + + # Returns the value of attribute realm. + # + # source://rack//lib/rack/auth/abstract/handler.rb#13 + def realm; end + + # Sets the attribute realm + # + # @param value the value to set the attribute realm to. + # + # source://rack//lib/rack/auth/abstract/handler.rb#13 + def realm=(_arg0); end + + private + + # source://rack//lib/rack/auth/abstract/handler.rb#31 + def bad_request; end + + # source://rack//lib/rack/auth/abstract/handler.rb#22 + def unauthorized(www_authenticate = T.unsafe(nil)); end +end + +# source://rack//lib/rack/auth/abstract/request.rb#7 +class Rack::Auth::AbstractRequest + # @return [AbstractRequest] a new instance of AbstractRequest + # + # source://rack//lib/rack/auth/abstract/request.rb#9 + def initialize(env); end + + # source://rack//lib/rack/auth/abstract/request.rb#33 + def params; end + + # source://rack//lib/rack/auth/abstract/request.rb#25 + def parts; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/abstract/request.rb#17 + def provided?; end + + # source://rack//lib/rack/auth/abstract/request.rb#13 + def request; end + + # source://rack//lib/rack/auth/abstract/request.rb#29 + def scheme; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/abstract/request.rb#21 + def valid?; end + + private + + # source://rack//lib/rack/auth/abstract/request.rb#42 + def authorization_key; end +end + +# source://rack//lib/rack/auth/abstract/request.rb#40 +Rack::Auth::AbstractRequest::AUTHORIZATION_KEYS = T.let(T.unsafe(nil), Array) + +# Rack::Auth::Basic implements HTTP Basic Authentication, as per RFC 2617. +# +# Initialize with the Rack application that you want protecting, +# and a block that checks if a username and password pair are valid. +# +# source://rack//lib/rack/auth/basic.rb#14 +class Rack::Auth::Basic < ::Rack::Auth::AbstractHandler + # source://rack//lib/rack/auth/basic.rb#16 + def call(env); end + + private + + # source://rack//lib/rack/auth/basic.rb#35 + def challenge; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/basic.rb#39 + def valid?(auth); end +end + +# source://rack//lib/rack/auth/basic.rb#43 +class Rack::Auth::Basic::Request < ::Rack::Auth::AbstractRequest + # @return [Boolean] + # + # source://rack//lib/rack/auth/basic.rb#44 + def basic?; end + + # source://rack//lib/rack/auth/basic.rb#48 + def credentials; end + + # source://rack//lib/rack/auth/basic.rb#52 + def username; end +end + +# source://rack//lib/rack/auth/digest.rb#12 +module Rack::Auth::Digest; end + +# Rack::Auth::Digest::MD5 implements the MD5 algorithm version of +# HTTP Digest Authentication, as per RFC 2617. +# +# Initialize with the [Rack] application that you want protecting, +# and a block that looks up a plaintext password for a given username. +# +# +opaque+ needs to be set to a constant base64/hexadecimal string. +# +# source://rack//lib/rack/auth/digest.rb#144 +class Rack::Auth::Digest::MD5 < ::Rack::Auth::AbstractHandler + # @return [MD5] a new instance of MD5 + # + # source://rack//lib/rack/auth/digest.rb#150 + def initialize(app, realm = T.unsafe(nil), opaque = T.unsafe(nil), &authenticator); end + + # source://rack//lib/rack/auth/digest.rb#163 + def call(env); end + + # Returns the value of attribute opaque. + # + # source://rack//lib/rack/auth/digest.rb#146 + def opaque; end + + # Sets the attribute opaque + # + # @param value the value to set the attribute opaque to. + # + # source://rack//lib/rack/auth/digest.rb#146 + def opaque=(_arg0); end + + # Sets the attribute passwords_hashed + # + # @param value the value to set the attribute passwords_hashed to. + # + # source://rack//lib/rack/auth/digest.rb#148 + def passwords_hashed=(_arg0); end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#159 + def passwords_hashed?; end + + private + + # source://rack//lib/rack/auth/digest.rb#238 + def A1(auth, password); end + + # source://rack//lib/rack/auth/digest.rb#242 + def A2(auth); end + + # source://rack//lib/rack/auth/digest.rb#228 + def H(data); end + + # source://rack//lib/rack/auth/digest.rb#234 + def KD(secret, data); end + + # source://rack//lib/rack/auth/digest.rb#203 + def challenge(hash = T.unsafe(nil)); end + + # source://rack//lib/rack/auth/digest.rb#246 + def digest(auth, password); end + + # source://rack//lib/rack/auth/digest.rb#228 + def md5(data); end + + # source://rack//lib/rack/auth/digest.rb#192 + def params(hash = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#207 + def valid?(auth); end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#223 + def valid_digest?(auth); end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#219 + def valid_nonce?(auth); end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#215 + def valid_opaque?(auth); end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#211 + def valid_qop?(auth); end +end + +# source://rack//lib/rack/auth/digest.rb#190 +Rack::Auth::Digest::MD5::QOP = T.let(T.unsafe(nil), String) + +# Rack::Auth::Digest::Nonce is the default nonce generator for the +# Rack::Auth::Digest::MD5 authentication handler. +# +# +private_key+ needs to set to a constant string. +# +# +time_limit+ can be optionally set to an integer (number of seconds), +# to limit the validity of the generated nonces. +# +# source://rack//lib/rack/auth/digest.rb#21 +class Rack::Auth::Digest::Nonce + # @return [Nonce] a new instance of Nonce + # + # source://rack//lib/rack/auth/digest.rb#31 + def initialize(timestamp = T.unsafe(nil), given_digest = T.unsafe(nil)); end + + # source://rack//lib/rack/auth/digest.rb#39 + def digest; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#51 + def fresh?; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#47 + def stale?; end + + # source://rack//lib/rack/auth/digest.rb#35 + def to_s; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#43 + def valid?; end + + class << self + # source://rack//lib/rack/auth/digest.rb#27 + def parse(string); end + + # Returns the value of attribute private_key. + # + # source://rack//lib/rack/auth/digest.rb#24 + def private_key; end + + # Sets the attribute private_key + # + # @param value the value to set the attribute private_key to. + # + # source://rack//lib/rack/auth/digest.rb#24 + def private_key=(_arg0); end + + # Returns the value of attribute time_limit. + # + # source://rack//lib/rack/auth/digest.rb#24 + def time_limit; end + + # Sets the attribute time_limit + # + # @param value the value to set the attribute time_limit to. + # + # source://rack//lib/rack/auth/digest.rb#24 + def time_limit=(_arg0); end + end +end + +# source://rack//lib/rack/auth/digest.rb#57 +class Rack::Auth::Digest::Params < ::Hash + # @return [Params] a new instance of Params + # @yield [_self] + # @yieldparam _self [Rack::Auth::Digest::Params] the object that the method was called on + # + # source://rack//lib/rack/auth/digest.rb#76 + def initialize; end + + # source://rack//lib/rack/auth/digest.rb#82 + def [](k); end + + # source://rack//lib/rack/auth/digest.rb#86 + def []=(k, v); end + + # From WEBrick::HTTPUtils + # + # source://rack//lib/rack/auth/digest.rb#98 + def quote(str); end + + # source://rack//lib/rack/auth/digest.rb#92 + def to_s; end + + class << self + # From WEBrick::HTTPUtils + # + # source://rack//lib/rack/auth/digest.rb#66 + def dequote(str); end + + # source://rack//lib/rack/auth/digest.rb#59 + def parse(str); end + + # source://rack//lib/rack/auth/digest.rb#72 + def split_header_value(str); end + end +end + +# source://rack//lib/rack/auth/digest.rb#90 +Rack::Auth::Digest::Params::UNQUOTED = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/auth/digest.rb#104 +class Rack::Auth::Digest::Request < ::Rack::Auth::AbstractRequest + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#113 + def correct_uri?; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#109 + def digest?; end + + # source://rack//lib/rack/auth/digest.rb#105 + def method; end + + # @raise [ArgumentError] + # + # source://rack//lib/rack/auth/digest.rb#129 + def method_missing(sym, *args); end + + # source://rack//lib/rack/auth/digest.rb#117 + def nonce; end + + # source://rack//lib/rack/auth/digest.rb#121 + def params; end + + # @return [Boolean] + # + # source://rack//lib/rack/auth/digest.rb#125 + def respond_to?(sym, *_arg1); end +end + +# Proxy for response bodies allowing calling a block when +# the response body is closed (after the response has been fully +# sent to the client). +# +# source://rack//lib/rack/body_proxy.rb#7 +class Rack::BodyProxy + # Set the response body to wrap, and the block to call when the + # response has been fully sent. + # + # @return [BodyProxy] a new instance of BodyProxy + # + # source://rack//lib/rack/body_proxy.rb#10 + def initialize(body, &block); end + + # If not already closed, close the wrapped body and + # then call the block the proxy was initialized with. + # + # source://rack//lib/rack/body_proxy.rb#23 + def close; end + + # Whether the proxy is closed. The proxy starts as not closed, + # and becomes closed on the first call to close. + # + # @return [Boolean] + # + # source://rack//lib/rack/body_proxy.rb#35 + def closed?; end + + # Delegate missing methods to the wrapped body. + # + # source://rack//lib/rack/body_proxy.rb#40 + def method_missing(method_name, *args, **_arg2, &block); end + + private + + # Return whether the wrapped body responds to the method. + # + # @return [Boolean] + # + # source://rack//lib/rack/body_proxy.rb#17 + def respond_to_missing?(method_name, include_all = T.unsafe(nil)); end +end + +# Rack::Builder provides a domain-specific language (DSL) to construct Rack +# applications. It is primarily used to parse +config.ru+ files which +# instantiate several middleware and a final application which are hosted +# by a Rack-compatible web server. +# +# Example: +# +# app = Rack::Builder.new do +# use Rack::CommonLogger +# map "/ok" do +# run lambda { |env| [200, {'content-type' => 'text/plain'}, ['OK']] } +# end +# end +# +# run app +# +# Or +# +# app = Rack::Builder.app do +# use Rack::CommonLogger +# run lambda { |env| [200, {'content-type' => 'text/plain'}, ['OK']] } +# end +# +# run app +# +# +use+ adds middleware to the stack, +run+ dispatches to an application. +# You can use +map+ to construct a Rack::URLMap in a convenient way. +# +# source://rack//lib/rack/builder.rb#33 +class Rack::Builder + # Initialize a new Rack::Builder instance. +default_app+ specifies the + # default application if +run+ is not called later. If a block + # is given, it is evaluated in the context of the instance. + # + # @return [Builder] a new instance of Builder + # + # source://rack//lib/rack/builder.rb#111 + def initialize(default_app = T.unsafe(nil), &block); end + + # Call the Rack application generated by this builder instance. Note that + # this rebuilds the Rack application and runs the warmup code (if any) + # every time it is called, so it should not be used if performance is important. + # + # source://rack//lib/rack/builder.rb#263 + def call(env); end + + # Freeze the app (set using run) and all middleware instances when building the application + # in to_app. + # + # source://rack//lib/rack/builder.rb#246 + def freeze_app; end + + # Creates a route within the application. Routes under the mapped path will be sent to + # the Rack application specified by run inside the block. Other requests will be sent to the + # default application specified by run outside the block. + # + # class App + # def call(env) + # [200, {'content-type' => 'text/plain'}, ["Hello World"]] + # end + # end + # + # class Heartbeat + # def call(env) + # [200, { "content-type" => "text/plain" }, ["OK"]] + # end + # end + # + # app = Rack::Builder.app do + # map '/heartbeat' do + # run Heartbeat.new + # end + # run App.new + # end + # + # run app + # + # The +use+ method can also be used inside the block to specify middleware to run under a specific path: + # + # app = Rack::Builder.app do + # map '/heartbeat' do + # use Middleware + # run Heartbeat.new + # end + # run App.new + # end + # + # This example includes a piece of middleware which will run before +/heartbeat+ requests hit +Heartbeat+. + # + # Note that providing a +path+ of +/+ will ignore any default application given in a +run+ statement + # outside the block. + # + # source://rack//lib/rack/builder.rb#239 + def map(path, &block); end + + # Takes a block or argument that is an object that responds to #call and + # returns a Rack response. + # + # You can use a block: + # + # run do |env| + # [200, { "content-type" => "text/plain" }, ["Hello World!"]] + # end + # + # You can also provide a lambda: + # + # run lambda { |env| [200, { "content-type" => "text/plain" }, ["OK"]] } + # + # You can also provide a class instance: + # + # class Heartbeat + # def call(env) + # [200, { "content-type" => "text/plain" }, ["OK"]] + # end + # end + # + # run Heartbeat.new + # + # @raise [ArgumentError] + # + # source://rack//lib/rack/builder.rb#180 + def run(app = T.unsafe(nil), &block); end + + # Return the Rack application generated by this instance. + # + # source://rack//lib/rack/builder.rb#251 + def to_app; end + + # Specifies middleware to use in a stack. + # + # class Middleware + # def initialize(app) + # @app = app + # end + # + # def call(env) + # env["rack.some_header"] = "setting an example" + # @app.call(env) + # end + # end + # + # use Middleware + # run lambda { |env| [200, { "content-type" => "text/plain" }, ["OK"]] } + # + # All requests through to this application will first be processed by the middleware class. + # The +call+ method in this example sets an additional environment key which then can be + # referenced in the application if required. + # + # source://rack//lib/rack/builder.rb#146 + def use(middleware, *args, **_arg2, &block); end + + # Takes a lambda or block that is used to warm-up the application. This block is called + # before the Rack application is returned by to_app. + # + # warmup do |app| + # client = Rack::MockRequest.new(app) + # client.get('/') + # end + # + # use SomeMiddleware + # run MyApp + # + # source://rack//lib/rack/builder.rb#196 + def warmup(prc = T.unsafe(nil), &block); end + + private + + # Generate a URLMap instance by generating new Rack applications for each + # map block in this instance. + # + # source://rack//lib/rack/builder.rb#271 + def generate_map(default_app, mapping); end + + class << self + # Create a new Rack::Builder instance and return the Rack application + # generated from it. + # + # source://rack//lib/rack/builder.rb#123 + def app(default_app = T.unsafe(nil), &block); end + + # Load the given file as a rackup file, treating the + # contents as if specified inside a Rack::Builder block. + # + # Ignores content in the file after +__END__+, so that + # use of +__END__+ will not result in a syntax error. + # + # Example config.ru file: + # + # $ cat config.ru + # + # use Rack::ContentLength + # require './app.rb' + # run App + # + # source://rack//lib/rack/builder.rb#84 + def load_file(path); end + + # Evaluate the given +builder_script+ string in the context of + # a Rack::Builder block, returning a Rack application. + # + # source://rack//lib/rack/builder.rb#99 + def new_from_string(builder_script, file = T.unsafe(nil)); end + + # Parse the given config file to get a Rack application. + # + # If the config file ends in +.ru+, it is treated as a + # rackup file and the contents will be treated as if + # specified inside a Rack::Builder block. + # + # If the config file does not end in +.ru+, it is + # required and Rack will use the basename of the file + # to guess which constant will be the Rack application to run. + # + # Examples: + # + # Rack::Builder.parse_file('config.ru') + # # Rack application built using Rack::Builder.new + # + # Rack::Builder.parse_file('app.rb') + # # requires app.rb, which can be anywhere in Ruby's + # # load path. After requiring, assumes App constant + # # contains Rack application + # + # Rack::Builder.parse_file('./my_app.rb') + # # requires ./my_app.rb, which should be in the + # # process's current directory. After requiring, + # # assumes MyApp constant contains Rack application + # + # source://rack//lib/rack/builder.rb#62 + def parse_file(path); end + end +end + +# https://stackoverflow.com/questions/2223882/whats-the-difference-between-utf-8-and-utf-8-without-bom +# +# source://rack//lib/rack/builder.rb#36 +Rack::Builder::UTF_8_BOM = T.let(T.unsafe(nil), String) + +# Response Header Keys +# +# source://rack//lib/rack/constants.rb#19 +Rack::CACHE_CONTROL = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#20 +Rack::CONTENT_LENGTH = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#21 +Rack::CONTENT_TYPE = T.let(T.unsafe(nil), String) + +# Rack::Cascade tries a request on several apps, and returns the +# first response that is not 404 or 405 (or in a list of configured +# status codes). If all applications tried return one of the configured +# status codes, return the last response. +# +# source://rack//lib/rack/cascade.rb#11 +class Rack::Cascade + # Set the apps to send requests to, and what statuses result in + # cascading. Arguments: + # + # apps: An enumerable of rack applications. + # cascade_for: The statuses to use cascading for. If a response is received + # from an app, the next app is tried. + # + # @return [Cascade] a new instance of Cascade + # + # source://rack//lib/rack/cascade.rb#24 + def initialize(apps, cascade_for = T.unsafe(nil)); end + + # Append an app to the list of apps to cascade. This app will + # be tried last. + # + # source://rack//lib/rack/cascade.rb#59 + def <<(app); end + + # Append an app to the list of apps to cascade. This app will + # be tried last. + # + # source://rack//lib/rack/cascade.rb#59 + def add(app); end + + # An array of applications to try in order. + # + # source://rack//lib/rack/cascade.rb#16 + def apps; end + + # Call each app in order. If the responses uses a status that requires + # cascading, try the next app. If all responses require cascading, + # return the response from the last app. + # + # source://rack//lib/rack/cascade.rb#35 + def call(env); end + + # Whether the given app is one of the apps to cascade to. + # + # @return [Boolean] + # + # source://rack//lib/rack/cascade.rb#64 + def include?(app); end +end + +# deprecated, no longer used +# +# source://rack//lib/rack/cascade.rb#13 +Rack::Cascade::NotFound = T.let(T.unsafe(nil), Array) + +# Middleware that applies chunked transfer encoding to response bodies +# when the response does not include a content-length header. +# +# This supports the trailer response header to allow the use of trailing +# headers in the chunked encoding. However, using this requires you manually +# specify a response body that supports a +trailers+ method. Example: +# +# [200, { 'trailer' => 'expires'}, ["Hello", "World"]] +# # error raised +# +# body = ["Hello", "World"] +# def body.trailers +# { 'expires' => Time.now.to_s } +# end +# [200, { 'trailer' => 'expires'}, body] +# # No exception raised +# +# source://rack//lib/rack/chunked.rb#25 +class Rack::Chunked + include ::Rack::Utils + + # @return [Chunked] a new instance of Chunked + # + # source://rack//lib/rack/chunked.rb#82 + def initialize(app); end + + # If the rack app returns a response that should have a body, + # but does not have content-length or transfer-encoding headers, + # modify the response to use chunked transfer-encoding. + # + # source://rack//lib/rack/chunked.rb#101 + def call(env); end + + # Whether the HTTP version supports chunked encoding (HTTP 1.1 does). + # + # @return [Boolean] + # + # source://rack//lib/rack/chunked.rb#87 + def chunkable_version?(ver); end +end + +# A body wrapper that emits chunked responses. +# +# source://rack//lib/rack/chunked.rb#29 +class Rack::Chunked::Body + # Store the response body to be chunked. + # + # @return [Body] a new instance of Body + # + # source://rack//lib/rack/chunked.rb#34 + def initialize(body); end + + # Close the response body if the response body supports it. + # + # source://rack//lib/rack/chunked.rb#54 + def close; end + + # For each element yielded by the response body, yield + # the element in chunked encoding. + # + # @yield [TAIL] + # + # source://rack//lib/rack/chunked.rb#40 + def each(&block); end + + private + + # Do nothing as this class does not support trailer headers. + # + # source://rack//lib/rack/chunked.rb#61 + def yield_trailers; end +end + +# source://rack//lib/rack/chunked.rb#31 +Rack::Chunked::Body::TAIL = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/chunked.rb#30 +Rack::Chunked::Body::TERM = T.let(T.unsafe(nil), String) + +# A body wrapper that emits chunked responses and also supports +# sending Trailer headers. Note that the response body provided to +# initialize must have a +trailers+ method that returns a hash +# of trailer headers, and the rack response itself should have a +# Trailer header listing the headers that the +trailers+ method +# will return. +# +# source://rack//lib/rack/chunked.rb#71 +class Rack::Chunked::TrailerBody < ::Rack::Chunked::Body + private + + # Yield strings for each trailer header. + # + # source://rack//lib/rack/chunked.rb#75 + def yield_trailers; end +end + +# Rack::CommonLogger forwards every request to the given +app+, and +# logs a line in the +# {Apache common log format}[http://httpd.apache.org/docs/1.3/logs.html#common] +# to the configured logger. +# +# source://rack//lib/rack/common_logger.rb#13 +class Rack::CommonLogger + # +logger+ can be any object that supports the +write+ or +<<+ methods, + # which includes the standard library Logger. These methods are called + # with a single string argument, the log message. + # If +logger+ is nil, CommonLogger will fall back env['rack.errors']. + # + # @return [CommonLogger] a new instance of CommonLogger + # + # source://rack//lib/rack/common_logger.rb#29 + def initialize(app, logger = T.unsafe(nil)); end + + # Log all requests in common_log format after a response has been + # returned. Note that if the app raises an exception, the request + # will not be logged, so if exception handling middleware are used, + # they should be loaded after this middleware. Additionally, because + # the logging happens after the request body has been fully sent, any + # exceptions raised during the sending of the response body will + # cause the request not to be logged. + # + # source://rack//lib/rack/common_logger.rb#41 + def call(env); end + + private + + # Attempt to determine the content length for the response to + # include it in the logged data. + # + # source://rack//lib/rack/common_logger.rb#83 + def extract_content_length(headers); end + + # Log the request to the configured logger. + # + # source://rack//lib/rack/common_logger.rb#52 + def log(env, status, response_headers, began_at); end +end + +# Common Log Format: http://httpd.apache.org/docs/1.3/logs.html#common +# +# lilith.local - - [07/Aug/2006 23:58:02 -0400] "GET / HTTP/1.1" 500 - +# +# %{%s - %s [%s] "%s %s%s %s" %d %s\n} % +# +# The actual format is slightly different than the above due to the +# separation of SCRIPT_NAME and PATH_INFO, and because the elapsed +# time in seconds is included at the end. +# +# source://rack//lib/rack/common_logger.rb#23 +Rack::CommonLogger::FORMAT = T.let(T.unsafe(nil), String) + +# Middleware that enables conditional GET using if-none-match and +# if-modified-since. The application should set either or both of the +# last-modified or etag response headers according to RFC 2616. When +# either of the conditions is met, the response body is set to be zero +# length and the response status is set to 304 Not Modified. +# +# Applications that defer response body generation until the body's each +# message is received will avoid response body generation completely when +# a conditional GET matches. +# +# Adapted from Michael Klishin's Merb implementation: +# https://github.com/wycats/merb/blob/master/merb-core/lib/merb-core/rack/middleware/conditional_get.rb +# +# source://rack//lib/rack/conditional_get.rb#21 +class Rack::ConditionalGet + # @return [ConditionalGet] a new instance of ConditionalGet + # + # source://rack//lib/rack/conditional_get.rb#22 + def initialize(app); end + + # Return empty 304 response if the response has not been + # modified since the last request. + # + # source://rack//lib/rack/conditional_get.rb#28 + def call(env); end + + private + + # Whether the etag response header matches the if-none-match request header. + # If so, the request has not been modified. + # + # @return [Boolean] + # + # source://rack//lib/rack/conditional_get.rb#62 + def etag_matches?(none_match, headers); end + + # Return whether the response has not been modified since the + # last request. + # + # @return [Boolean] + # + # source://rack//lib/rack/conditional_get.rb#51 + def fresh?(env, headers); end + + # Whether the last-modified response header matches the if-modified-since + # request header. If so, the request has not been modified. + # + # @return [Boolean] + # + # source://rack//lib/rack/conditional_get.rb#68 + def modified_since?(modified_since, headers); end + + # Return a Time object for the given string (which should be in RFC2822 + # format), or nil if the string cannot be parsed. + # + # source://rack//lib/rack/conditional_get.rb#75 + def to_rfc2822(since); end +end + +# Rack::Config modifies the environment using the block given during +# initialization. +# +# Example: +# use Rack::Config do |env| +# env['my-key'] = 'some-value' +# end +# +# source://rack//lib/rack/config.rb#11 +class Rack::Config + # @return [Config] a new instance of Config + # + # source://rack//lib/rack/config.rb#12 + def initialize(app, &block); end + + # source://rack//lib/rack/config.rb#17 + def call(env); end +end + +# Sets the content-length header on responses that do not specify +# a content-length or transfer-encoding header. Note that this +# does not fix responses that have an invalid content-length +# header specified. +# +# source://rack//lib/rack/content_length.rb#12 +class Rack::ContentLength + include ::Rack::Utils + + # @return [ContentLength] a new instance of ContentLength + # + # source://rack//lib/rack/content_length.rb#15 + def initialize(app); end + + # source://rack//lib/rack/content_length.rb#19 + def call(env); end +end + +# Sets the content-type header on responses which don't have one. +# +# Builder Usage: +# use Rack::ContentType, "text/plain" +# +# When no content type argument is provided, "text/html" is the +# default. +# +# source://rack//lib/rack/content_type.rb#15 +class Rack::ContentType + include ::Rack::Utils + + # @return [ContentType] a new instance of ContentType + # + # source://rack//lib/rack/content_type.rb#18 + def initialize(app, content_type = T.unsafe(nil)); end + + # source://rack//lib/rack/content_type.rb#23 + def call(env); end +end + +# source://rack//lib/rack/constants.rb#32 +Rack::DELETE = T.let(T.unsafe(nil), String) + +# This middleware enables content encoding of http responses, +# usually for purposes of compression. +# +# Currently supported encodings: +# +# * gzip +# * identity (no transformation) +# +# This middleware automatically detects when encoding is supported +# and allowed. For example no encoding is made when a cache +# directive of 'no-transform' is present, when the response status +# code is one that doesn't allow an entity body, or when the body +# is empty. +# +# Note that despite the name, Deflater does not support the +deflate+ +# encoding. +# +# source://rack//lib/rack/deflater.rb#28 +class Rack::Deflater + # Creates Rack::Deflater middleware. Options: + # + # :if :: a lambda enabling / disabling deflation based on returned boolean value + # (e.g use Rack::Deflater, :if => lambda { |*, body| sum=0; body.each { |i| sum += i.length }; sum > 512 }). + # However, be aware that calling `body.each` inside the block will break cases where `body.each` is not idempotent, + # such as when it is an +IO+ instance. + # :include :: a list of content types that should be compressed. By default, all content types are compressed. + # :sync :: determines if the stream is going to be flushed after every chunk. Flushing after every chunk reduces + # latency for time-sensitive streaming applications, but hurts compression and throughput. + # Defaults to +true+. + # + # @return [Deflater] a new instance of Deflater + # + # source://rack//lib/rack/deflater.rb#39 + def initialize(app, options = T.unsafe(nil)); end + + # source://rack//lib/rack/deflater.rb#46 + def call(env); end + + private + + # Whether the body should be compressed. + # + # @return [Boolean] + # + # source://rack//lib/rack/deflater.rb#136 + def should_deflate?(env, status, headers, body); end +end + +# Body class used for gzip encoded responses. +# +# source://rack//lib/rack/deflater.rb#83 +class Rack::Deflater::GzipStream + # Initialize the gzip stream. Arguments: + # body :: Response body to compress with gzip + # mtime :: The modification time of the body, used to set the + # modification time in the gzip header. + # sync :: Whether to flush each gzip chunk as soon as it is ready. + # + # @return [GzipStream] a new instance of GzipStream + # + # source://rack//lib/rack/deflater.rb#92 + def initialize(body, mtime, sync); end + + # Close the original body if possible. + # + # source://rack//lib/rack/deflater.rb#128 + def close; end + + # Yield gzip compressed strings to the given block. + # + # source://rack//lib/rack/deflater.rb#99 + def each(&block); end + + # Call the block passed to #each with the gzipped data. + # + # source://rack//lib/rack/deflater.rb#123 + def write(data); end +end + +# source://rack//lib/rack/deflater.rb#85 +Rack::Deflater::GzipStream::BUFFER_LENGTH = T.let(T.unsafe(nil), Integer) + +# Rack::Directory serves entries below the +root+ given, according to the +# path info of the Rack request. If a directory is found, the file's contents +# will be presented in an html based index. If a file is found, the env will +# be passed to the specified +app+. +# +# If +app+ is not specified, a Rack::Files of the same +root+ will be used. +# +# source://rack//lib/rack/directory.rb#19 +class Rack::Directory + # Set the root directory and application for serving files. + # + # @return [Directory] a new instance of Directory + # + # source://rack//lib/rack/directory.rb#83 + def initialize(root, app = T.unsafe(nil)); end + + # source://rack//lib/rack/directory.rb#89 + def call(env); end + + # Rack response to use for requests with invalid paths, or nil if path is valid. + # + # source://rack//lib/rack/directory.rb#109 + def check_bad_request(path_info); end + + # Rack response to use for requests with paths outside the root, or nil if path is inside the root. + # + # source://rack//lib/rack/directory.rb#119 + def check_forbidden(path_info); end + + # Rack response to use for unreadable and non-file, non-directory entries. + # + # source://rack//lib/rack/directory.rb#181 + def entity_not_found(path_info); end + + # Provide human readable file sizes + # + # source://rack//lib/rack/directory.rb#197 + def filesize_format(int); end + + # Internals of request handling. Similar to call but does + # not remove body for HEAD requests. + # + # source://rack//lib/rack/directory.rb#96 + def get(env); end + + # Rack response to use for directories under the root. + # + # source://rack//lib/rack/directory.rb#130 + def list_directory(path_info, path, script_name); end + + # Rack response to use for files and directories under the root. + # Unreadable and non-file, non-directory entries will get a 404 response. + # + # source://rack//lib/rack/directory.rb#171 + def list_path(env, path, path_info, script_name); end + + # The root of the directory hierarchy. Only requests for files and + # directories inside of the root directory are supported. + # + # source://rack//lib/rack/directory.rb#80 + def root; end + + # File::Stat for the given path, but return nil for missing/bad entries. + # + # source://rack//lib/rack/directory.rb#163 + def stat(path); end +end + +# source://rack//lib/rack/directory.rb#20 +Rack::Directory::DIR_FILE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/directory.rb#43 +Rack::Directory::DIR_PAGE_FOOTER = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/directory.rb#21 +Rack::Directory::DIR_PAGE_HEADER = T.let(T.unsafe(nil), String) + +# Body class for directory entries, showing an index page with links +# to each file. +# +# source://rack//lib/rack/directory.rb#51 +class Rack::Directory::DirectoryBody < ::Struct + # Yield strings for each part of the directory entry + # + # @yield [DIR_PAGE_HEADER % [ show_path, show_path ]] + # + # source://rack//lib/rack/directory.rb#53 + def each; end + + private + + # Escape each element in the array of html strings. + # + # source://rack//lib/rack/directory.rb#73 + def DIR_FILE_escape(htmls); end +end + +# Stolen from Ramaze +# +# source://rack//lib/rack/directory.rb#189 +Rack::Directory::FILESIZE_FORMAT = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/constants.rb#22 +Rack::ETAG = T.let(T.unsafe(nil), String) + +# Automatically sets the etag header on all String bodies. +# +# The etag header is skipped if etag or last-modified headers are sent or if +# a sendfile body (body.responds_to :to_path) is given (since such cases +# should be handled by apache/nginx). +# +# On initialization, you can pass two parameters: a cache-control directive +# used when etag is absent and a directive when it is present. The first +# defaults to nil, while the second defaults to "max-age=0, private, must-revalidate" +# +# source://rack//lib/rack/etag.rb#18 +class Rack::ETag + # @return [ETag] a new instance of ETag + # + # source://rack//lib/rack/etag.rb#22 + def initialize(app, no_cache_control = T.unsafe(nil), cache_control = T.unsafe(nil)); end + + # source://rack//lib/rack/etag.rb#28 + def call(env); end + + private + + # source://rack//lib/rack/etag.rb#58 + def digest_body(body); end + + # @return [Boolean] + # + # source://rack//lib/rack/etag.rb#50 + def etag_status?(status); end + + # @return [Boolean] + # + # source://rack//lib/rack/etag.rb#54 + def skip_caching?(headers); end +end + +# source://rack//lib/rack/etag.rb#20 +Rack::ETag::DEFAULT_CACHE_CONTROL = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/etag.rb#19 +Rack::ETag::ETAG_STRING = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#23 +Rack::EXPIRES = T.let(T.unsafe(nil), String) + +# This middleware provides hooks to certain places in the request / +# response lifecycle. This is so that middleware that don't need to filter +# the response data can safely leave it alone and not have to send messages +# down the traditional "rack stack". +# +# The events are: +# +# * on_start(request, response) +# +# This event is sent at the start of the request, before the next +# middleware in the chain is called. This method is called with a request +# object, and a response object. Right now, the response object is always +# nil, but in the future it may actually be a real response object. +# +# * on_commit(request, response) +# +# The response has been committed. The application has returned, but the +# response has not been sent to the webserver yet. This method is always +# called with a request object and the response object. The response +# object is constructed from the rack triple that the application returned. +# Changes may still be made to the response object at this point. +# +# * on_send(request, response) +# +# The webserver has started iterating over the response body and presumably +# has started sending data over the wire. This method is always called with +# a request object and the response object. The response object is +# constructed from the rack triple that the application returned. Changes +# SHOULD NOT be made to the response object as the webserver has already +# started sending data. Any mutations will likely result in an exception. +# +# * on_finish(request, response) +# +# The webserver has closed the response, and all data has been written to +# the response socket. The request and response object should both be +# read-only at this point. The body MAY NOT be available on the response +# object as it may have been flushed to the socket. +# +# * on_error(request, response, error) +# +# An exception has occurred in the application or an `on_commit` event. +# This method will get the request, the response (if available) and the +# exception that was raised. +# +# ## Order +# +# `on_start` is called on the handlers in the order that they were passed to +# the constructor. `on_commit`, on_send`, `on_finish`, and `on_error` are +# called in the reverse order. `on_finish` handlers are called inside an +# `ensure` block, so they are guaranteed to be called even if something +# raises an exception. If something raises an exception in a `on_finish` +# method, then nothing is guaranteed. +# +# source://rack//lib/rack/events.rb#61 +class Rack::Events + # @return [Events] a new instance of Events + # + # source://rack//lib/rack/events.rb#106 + def initialize(app, handlers); end + + # source://rack//lib/rack/events.rb#111 + def call(env); end + + private + + # source://rack//lib/rack/events.rb#149 + def make_request(env); end + + # source://rack//lib/rack/events.rb#153 + def make_response(status, headers, body); end + + # source://rack//lib/rack/events.rb#137 + def on_commit(request, response); end + + # source://rack//lib/rack/events.rb#133 + def on_error(request, response, e); end + + # source://rack//lib/rack/events.rb#145 + def on_finish(request, response); end + + # source://rack//lib/rack/events.rb#141 + def on_start(request, response); end +end + +# source://rack//lib/rack/events.rb#62 +module Rack::Events::Abstract + # source://rack//lib/rack/events.rb#66 + def on_commit(req, res); end + + # source://rack//lib/rack/events.rb#75 + def on_error(req, res, e); end + + # source://rack//lib/rack/events.rb#72 + def on_finish(req, res); end + + # source://rack//lib/rack/events.rb#69 + def on_send(req, res); end + + # source://rack//lib/rack/events.rb#63 + def on_start(req, res); end +end + +# source://rack//lib/rack/events.rb#95 +class Rack::Events::BufferedResponse < ::Rack::Response::Raw + # @return [BufferedResponse] a new instance of BufferedResponse + # + # source://rack//lib/rack/events.rb#98 + def initialize(status, headers, body); end + + # Returns the value of attribute body. + # + # source://rack//lib/rack/events.rb#96 + def body; end + + # source://rack//lib/rack/events.rb#103 + def to_a; end +end + +# source://rack//lib/rack/events.rb#79 +class Rack::Events::EventedBodyProxy < ::Rack::BodyProxy + # @return [EventedBodyProxy] a new instance of EventedBodyProxy + # + # source://rack//lib/rack/events.rb#82 + def initialize(body, request, response, handlers, &block); end + + # source://rack//lib/rack/events.rb#89 + def each; end + + # Returns the value of attribute request. + # + # source://rack//lib/rack/events.rb#80 + def request; end + + # Returns the value of attribute response. + # + # source://rack//lib/rack/events.rb#80 + def response; end +end + +# source://rack//lib/rack/file.rb#8 +Rack::File = Rack::Files + +# Rack::Files serves files below the +root+ directory given, according to the +# path info of the Rack request. +# e.g. when Rack::Files.new("/etc") is used, you can access 'passwd' file +# as http://localhost:9292/passwd +# +# Handlers can detect if bodies are a Rack::Files, and use mechanisms +# like sendfile on the +path+. +# +# source://rack//lib/rack/files.rb#20 +class Rack::Files + # @return [Files] a new instance of Files + # + # source://rack//lib/rack/files.rb#27 + def initialize(root, headers = T.unsafe(nil), default_mime = T.unsafe(nil)); end + + # source://rack//lib/rack/files.rb#34 + def call(env); end + + # source://rack//lib/rack/files.rb#39 + def get(env); end + + # Returns the value of attribute root. + # + # source://rack//lib/rack/files.rb#25 + def root; end + + # source://rack//lib/rack/files.rb#68 + def serving(request, path); end + + private + + # source://rack//lib/rack/files.rb#190 + def fail(status, body, headers = T.unsafe(nil)); end + + # source://rack//lib/rack/files.rb#209 + def filesize(path); end + + # The MIME type for the contents of the file located at @path + # + # source://rack//lib/rack/files.rb#205 + def mime_type(path, default_mime); end +end + +# source://rack//lib/rack/files.rb#21 +Rack::Files::ALLOWED_VERBS = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/files.rb#22 +Rack::Files::ALLOW_HEADER = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/files.rb#121 +class Rack::Files::BaseIterator + # @return [BaseIterator] a new instance of BaseIterator + # + # source://rack//lib/rack/files.rb#124 + def initialize(path, ranges, options); end + + # source://rack//lib/rack/files.rb#144 + def bytesize; end + + # source://rack//lib/rack/files.rb#153 + def close; end + + # source://rack//lib/rack/files.rb#130 + def each; end + + # Returns the value of attribute options. + # + # source://rack//lib/rack/files.rb#122 + def options; end + + # Returns the value of attribute path. + # + # source://rack//lib/rack/files.rb#122 + def path; end + + # Returns the value of attribute ranges. + # + # source://rack//lib/rack/files.rb#122 + def ranges; end + + private + + # source://rack//lib/rack/files.rb#171 + def each_range_part(file, range); end + + # @return [Boolean] + # + # source://rack//lib/rack/files.rb#157 + def multipart?; end + + # source://rack//lib/rack/files.rb#161 + def multipart_heading(range); end +end + +# source://rack//lib/rack/files.rb#184 +class Rack::Files::Iterator < ::Rack::Files::BaseIterator + # source://rack//lib/rack/files.rb#122 + def to_path; end +end + +# source://rack//lib/rack/files.rb#23 +Rack::Files::MULTIPART_BOUNDARY = T.let(T.unsafe(nil), String) + +# Rack::ForwardRequest gets caught by Rack::Recursive and redirects +# the current request to the app at +url+. +# +# raise ForwardRequest.new("/not-found") +# +# source://rack//lib/rack/recursive.rb#14 +class Rack::ForwardRequest < ::Exception + # @return [ForwardRequest] a new instance of ForwardRequest + # + # source://rack//lib/rack/recursive.rb#17 + def initialize(url, env = T.unsafe(nil)); end + + # Returns the value of attribute env. + # + # source://rack//lib/rack/recursive.rb#15 + def env; end + + # Returns the value of attribute url. + # + # source://rack//lib/rack/recursive.rb#15 + def url; end +end + +# HTTP method verbs +# +# source://rack//lib/rack/constants.rb#28 +Rack::GET = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#33 +Rack::HEAD = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#7 +Rack::HTTPS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#16 +Rack::HTTP_COOKIE = T.let(T.unsafe(nil), String) + +# Request env keys +# +# source://rack//lib/rack/constants.rb#5 +Rack::HTTP_HOST = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#6 +Rack::HTTP_PORT = T.let(T.unsafe(nil), String) + +# Rack::Head returns an empty body for all HEAD requests. It leaves +# all other requests unchanged. +# +# source://rack//lib/rack/head.rb#9 +class Rack::Head + # @return [Head] a new instance of Head + # + # source://rack//lib/rack/head.rb#10 + def initialize(app); end + + # source://rack//lib/rack/head.rb#14 + def call(env); end +end + +# Rack::Headers is a Hash subclass that downcases all keys. It's designed +# to be used by rack applications that don't implement the Rack 3 SPEC +# (by using non-lowercase response header keys), automatically handling +# the downcasing of keys. +# +# source://rack//lib/rack/headers.rb#6 +class Rack::Headers < ::Hash + # source://rack//lib/rack/headers.rb#26 + def [](key); end + + # source://rack//lib/rack/headers.rb#30 + def []=(key, value); end + + # source://rack//lib/rack/headers.rb#35 + def assoc(key); end + + # @raise [TypeError] + # + # source://rack//lib/rack/headers.rb#39 + def compare_by_identity; end + + # source://rack//lib/rack/headers.rb#43 + def delete(key); end + + # source://rack//lib/rack/headers.rb#47 + def dig(key, *a); end + + # :nocov: + # + # source://rack//lib/rack/headers.rb#143 + def except(*a); end + + # source://rack//lib/rack/headers.rb#51 + def fetch(key, *default, &block); end + + # source://rack//lib/rack/headers.rb#56 + def fetch_values(*a); end + + # @return [Boolean] + # + # source://rack//lib/rack/headers.rb#60 + def has_key?(key); end + + # @return [Boolean] + # + # source://rack//lib/rack/headers.rb#60 + def include?(key); end + + # source://rack//lib/rack/headers.rb#67 + def invert; end + + # @return [Boolean] + # + # source://rack//lib/rack/headers.rb#60 + def key?(key); end + + # @return [Boolean] + # + # source://rack//lib/rack/headers.rb#60 + def member?(key); end + + # source://rack//lib/rack/headers.rb#73 + def merge(hash, &block); end + + # source://rack//lib/rack/headers.rb#102 + def merge!(hash, &block); end + + # source://rack//lib/rack/headers.rb#77 + def reject(&block); end + + # source://rack//lib/rack/headers.rb#83 + def replace(hash); end + + # source://rack//lib/rack/headers.rb#88 + def select(&block); end + + # :nocov: + # + # source://rack//lib/rack/headers.rb#121 + def slice(*a); end + + # source://rack//lib/rack/headers.rb#30 + def store(key, value); end + + # source://rack//lib/rack/headers.rb#94 + def to_proc; end + + # source://rack//lib/rack/headers.rb#127 + def transform_keys(&block); end + + # source://rack//lib/rack/headers.rb#131 + def transform_keys!; end + + # source://rack//lib/rack/headers.rb#98 + def transform_values(&block); end + + # source://rack//lib/rack/headers.rb#102 + def update(hash, &block); end + + # source://rack//lib/rack/headers.rb#114 + def values_at(*keys); end + + private + + # source://rack//lib/rack/headers.rb#150 + def downcase_key(key); end + + class << self + # source://rack//lib/rack/headers.rb#7 + def [](*items); end + end +end + +# source://rack//lib/rack/constants.rb#35 +Rack::LINK = T.let(T.unsafe(nil), String) + +# Rack::Lint validates your application and the requests and +# responses according to the Rack spec. +# +# source://rack//lib/rack/lint.rb#12 +class Rack::Lint + # @return [Lint] a new instance of Lint + # + # source://rack//lib/rack/lint.rb#13 + def initialize(app); end + + # AUTHORS: n.b. The trailing whitespace between paragraphs is important and + # should not be removed. The whitespace creates paragraphs in the RDoc + # output. + # + # This specification aims to formalize the Rack protocol. You + # can (and should) use Rack::Lint to enforce it. + # + # When you develop middleware, be sure to add a Lint before and + # after to catch all mistakes. + # + # = Rack applications + # + # A Rack application is a Ruby object (not a class) that + # responds to +call+. + # + # source://rack//lib/rack/lint.rb#34 + def call(env = T.unsafe(nil)); end +end + +# :stopdoc: +# +# source://rack//lib/rack/lint.rb#19 +class Rack::Lint::LintError < ::RuntimeError; end + +# source://rack//lib/rack/lint.rb#38 +class Rack::Lint::Wrapper + # @return [Wrapper] a new instance of Wrapper + # + # source://rack//lib/rack/lint.rb#39 + def initialize(app, env); end + + # ==== Streaming Body + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#855 + def call(stream); end + + # === The content-length + # + # source://rack//lib/rack/lint.rb#693 + def check_content_length(status, headers); end + + # === The content-type + # + # source://rack//lib/rack/lint.rb#677 + def check_content_type(status, headers); end + + # == The Environment + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#97 + def check_environment(env); end + + # === The Error Stream + # + # source://rack//lib/rack/lint.rb#491 + def check_error(error); end + + # source://rack//lib/rack/lint.rb#667 + def check_header_value(key, value); end + + # === The Headers + # + # source://rack//lib/rack/lint.rb#627 + def check_headers(headers); end + + # === Hijacking + # + # The hijacking interfaces provides a means for an application to take + # control of the HTTP connection. There are two distinct hijack + # interfaces: full hijacking where the application takes over the raw + # connection, and partial hijacking where the application takes over + # just the response body stream. In both cases, the application is + # responsible for closing the hijacked stream. + # + # Full hijacking only works with HTTP/1. Partial hijacking is functionally + # equivalent to streaming bodies, and is still optionally supported for + # backwards compatibility with older Rack versions. + # + # ==== Full Hijack + # + # Full hijack is used to completely take over an HTTP/1 connection. It + # occurs before any headers are written and causes the request to + # ignores any response generated by the application. + # + # It is intended to be used when applications need access to raw HTTP/1 + # connection. + # + # source://rack//lib/rack/lint.rb#551 + def check_hijack(env); end + + # ==== Partial Hijack + # + # Partial hijack is used for bi-directional streaming of the request and + # response body. It occurs after the status and headers are written by + # the server and causes the server to ignore the Body of the response. + # + # It is intended to be used when applications need bi-directional + # streaming. + # + # source://rack//lib/rack/lint.rb#579 + def check_hijack_response(headers, env); end + + # === The Input Stream + # + # The input stream is an IO-like object which contains the raw HTTP + # POST data. + # + # source://rack//lib/rack/lint.rb#387 + def check_input(input); end + + # == The Response + # + # === The Status + # + # source://rack//lib/rack/lint.rb#616 + def check_status(status); end + + # === The Body + # + # The Body is typically an +Array+ of +String+ instances, an enumerable + # that yields +String+ instances, a +Proc+ instance, or a File-like + # object. + # + # The Body must respond to +each+ or +call+. It may optionally respond + # to +to_path+ or +to_ary+. A Body that responds to +each+ is considered + # to be an Enumerable Body. A Body that responds to +call+ is considered + # to be a Streaming Body. + # + # A Body that responds to both +each+ and +call+ must be treated as an + # Enumerable Body, not a Streaming Body. If it responds to +each+, you + # must call +each+ and not +call+. If the Body doesn't respond to + # +each+, then you can assume it responds to +call+. + # + # The Body must either be consumed or returned. The Body is consumed by + # optionally calling either +each+ or +call+. + # Then, if the Body responds to +close+, it must be called to release + # any resources associated with the generation of the body. + # In other words, +close+ must always be called at least once; typically + # after the web server has sent the response to the client, but also in + # cases where the Rack application makes internal/virtual requests and + # discards the response. + # + # source://rack//lib/rack/lint.rb#744 + def close; end + + # ==== Enumerable Body + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#778 + def each; end + + # @return [Boolean] + # + # source://rack//lib/rack/lint.rb#826 + def respond_to?(name, *_arg1); end + + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#54 + def response; end + + # If the Body responds to +to_ary+, it must return an +Array+ whose + # contents are identical to that produced by calling +each+. + # Middleware may call +to_ary+ directly on the Body and return a new + # Body in its place. In other words, middleware can only process the + # Body directly if it responds to +to_ary+. If the Body responds to both + # +to_ary+ and +close+, its implementation of +to_ary+ must call + # +close+. + # + # source://rack//lib/rack/lint.rb#842 + def to_ary; end + + # source://rack//lib/rack/lint.rb#822 + def to_path; end + + # source://rack//lib/rack/lint.rb#706 + def verify_content_length(size); end + + # source://rack//lib/rack/lint.rb#760 + def verify_to_path; end +end + +# source://rack//lib/rack/lint.rb#820 +Rack::Lint::Wrapper::BODY_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/lint.rb#500 +class Rack::Lint::Wrapper::ErrorWrapper + # @return [ErrorWrapper] a new instance of ErrorWrapper + # + # source://rack//lib/rack/lint.rb#501 + def initialize(error); end + + # * +close+ must never be called on the error stream. + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#523 + def close(*args); end + + # * +flush+ must be called without arguments and must be called + # in order to make the error appear for sure. + # + # source://rack//lib/rack/lint.rb#518 + def flush; end + + # * +puts+ must be called with a single argument that responds to +to_s+. + # + # source://rack//lib/rack/lint.rb#506 + def puts(str); end + + # * +write+ must be called with a single argument that is a String. + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#511 + def write(str); end +end + +# source://rack//lib/rack/lint.rb#405 +class Rack::Lint::Wrapper::InputWrapper + # @return [InputWrapper] a new instance of InputWrapper + # + # source://rack//lib/rack/lint.rb#406 + def initialize(input); end + + # * +close+ can be called on the input stream to indicate that the + # any remaining input is not needed. + # + # source://rack//lib/rack/lint.rb#483 + def close(*args); end + + # * +each+ must be called without arguments and only yield Strings. + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#471 + def each(*args); end + + # * +gets+ must be called without arguments and return a string, + # or +nil+ on EOF. + # + # @raise [LintError] + # + # source://rack//lib/rack/lint.rb#412 + def gets(*args); end + + # * +read+ behaves like IO#read. + # Its signature is read([length, [buffer]]). + # + # If given, +length+ must be a non-negative Integer (>= 0) or +nil+, + # and +buffer+ must be a String and may not be nil. + # + # If +length+ is given and not nil, then this method reads at most + # +length+ bytes from the input stream. + # + # If +length+ is not given or nil, then this method reads + # all data until EOF. + # + # When EOF is reached, this method returns nil if +length+ is given + # and not nil, or "" if +length+ is not given or is nil. + # + # If +buffer+ is given, then the read data will be placed + # into +buffer+ instead of a newly created String object. + # + # source://rack//lib/rack/lint.rb#438 + def read(*args); end +end + +# source://rack//lib/rack/lint.rb#875 +class Rack::Lint::Wrapper::StreamWrapper + extend ::Forwardable + + # @return [StreamWrapper] a new instance of StreamWrapper + # + # source://rack//lib/rack/lint.rb#890 + def initialize(stream); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def <<(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def close(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def close_read(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def close_write(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def closed?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def flush(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def read(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def write(*args, **_arg1, &block); end +end + +# The semantics of these IO methods must be a best effort match to +# those of a normal Ruby IO or Socket object, using standard arguments +# and raising standard exceptions. Servers are encouraged to simply +# pass on real IO objects, although it is recognized that this approach +# is not directly compatible with HTTP/2. +# +# source://rack//lib/rack/lint.rb#883 +Rack::Lint::Wrapper::StreamWrapper::REQUIRED_METHODS = T.let(T.unsafe(nil), Array) + +# Rack::Lock locks every request inside a mutex, so that every request +# will effectively be executed synchronously. +# +# source://rack//lib/rack/lock.rb#8 +class Rack::Lock + # @return [Lock] a new instance of Lock + # + # source://rack//lib/rack/lock.rb#9 + def initialize(app, mutex = T.unsafe(nil)); end + + # source://rack//lib/rack/lock.rb#13 + def call(env); end + + private + + # source://rack//lib/rack/lock.rb#25 + def unlock; end +end + +# Sets up rack.logger to write to rack.errors stream +# +# source://rack//lib/rack/logger.rb#9 +class Rack::Logger + # @return [Logger] a new instance of Logger + # + # source://rack//lib/rack/logger.rb#10 + def initialize(app, level = T.unsafe(nil)); end + + # source://rack//lib/rack/logger.rb#14 + def call(env); end +end + +# Rack::MediaType parse media type and parameters out of content_type string +# +# source://rack//lib/rack/media_type.rb#6 +class Rack::MediaType + class << self + # The media type parameters provided in CONTENT_TYPE as a Hash, or + # an empty Hash if no CONTENT_TYPE or media-type parameters were + # provided. e.g., when the CONTENT_TYPE is "text/plain;charset=utf-8", + # this method responds with the following Hash: + # { 'charset' => 'utf-8' } + # + # source://rack//lib/rack/media_type.rb#26 + def params(content_type); end + + # The media type (type/subtype) portion of the CONTENT_TYPE header + # without any media type parameters. e.g., when CONTENT_TYPE is + # "text/plain;charset=utf-8", the media-type is "text/plain". + # + # For more information on the use of media types in HTTP, see: + # http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7 + # + # source://rack//lib/rack/media_type.rb#16 + def type(content_type); end + + private + + # source://rack//lib/rack/media_type.rb#38 + def strip_doublequotes(str); end + end +end + +# source://rack//lib/rack/media_type.rb#7 +Rack::MediaType::SPLIT_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/method_override.rb#8 +class Rack::MethodOverride + # @return [MethodOverride] a new instance of MethodOverride + # + # source://rack//lib/rack/method_override.rb#15 + def initialize(app); end + + # source://rack//lib/rack/method_override.rb#19 + def call(env); end + + # source://rack//lib/rack/method_override.rb#31 + def method_override(env); end + + private + + # source://rack//lib/rack/method_override.rb#44 + def allowed_methods; end + + # source://rack//lib/rack/method_override.rb#48 + def method_override_param(req); end +end + +# source://rack//lib/rack/method_override.rb#13 +Rack::MethodOverride::ALLOWED_METHODS = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/method_override.rb#9 +Rack::MethodOverride::HTTP_METHODS = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/method_override.rb#12 +Rack::MethodOverride::HTTP_METHOD_OVERRIDE_HEADER = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/method_override.rb#11 +Rack::MethodOverride::METHOD_OVERRIDE_PARAM_KEY = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/mime.rb#4 +module Rack::Mime + private + + # Returns true if the given value is a mime match for the given mime match + # specification, false otherwise. + # + # Rack::Mime.match?('text/html', 'text/*') => true + # Rack::Mime.match?('text/plain', '*') => true + # Rack::Mime.match?('text/html', 'application/json') => false + # + # @return [Boolean] + # + # source://rack//lib/rack/mime.rb#30 + def match?(value, matcher); end + + # Returns String with mime type if found, otherwise use +fallback+. + # +ext+ should be filename extension in the '.ext' format that + # File.extname(file) returns. + # +fallback+ may be any object + # + # Also see the documentation for MIME_TYPES + # + # Usage: + # Rack::Mime.mime_type('.foo') + # + # This is a shortcut for: + # Rack::Mime::MIME_TYPES.fetch('.foo', 'application/octet-stream') + # + # source://rack//lib/rack/mime.rb#18 + def mime_type(ext, fallback = T.unsafe(nil)); end + + class << self + # Returns true if the given value is a mime match for the given mime match + # specification, false otherwise. + # + # Rack::Mime.match?('text/html', 'text/*') => true + # Rack::Mime.match?('text/plain', '*') => true + # Rack::Mime.match?('text/html', 'application/json') => false + # + # @return [Boolean] + # + # source://rack//lib/rack/mime.rb#30 + def match?(value, matcher); end + + # Returns String with mime type if found, otherwise use +fallback+. + # +ext+ should be filename extension in the '.ext' format that + # File.extname(file) returns. + # +fallback+ may be any object + # + # Also see the documentation for MIME_TYPES + # + # Usage: + # Rack::Mime.mime_type('.foo') + # + # This is a shortcut for: + # Rack::Mime::MIME_TYPES.fetch('.foo', 'application/octet-stream') + # + # source://rack//lib/rack/mime.rb#18 + def mime_type(ext, fallback = T.unsafe(nil)); end + end +end + +# List of most common mime-types, selected various sources +# according to their usefulness in a webserving scope for Ruby +# users. +# +# To amend this list with your local mime.types list you can use: +# +# require 'webrick/httputils' +# list = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types') +# Rack::Mime::MIME_TYPES.merge!(list) +# +# N.B. On Ubuntu the mime.types file does not include the leading period, so +# users may need to modify the data before merging into the hash. +# +# source://rack//lib/rack/mime.rb#51 +Rack::Mime::MIME_TYPES = T.let(T.unsafe(nil), Hash) + +# Rack::MockRequest helps testing your Rack application without +# actually using HTTP. +# +# After performing a request on a URL with get/post/put/patch/delete, it +# returns a MockResponse with useful helper methods for effective +# testing. +# +# You can pass a hash with additional configuration to the +# get/post/put/patch/delete. +# :input:: A String or IO-like to be used as rack.input. +# :fatal:: Raise a FatalWarning if the app writes to rack.errors. +# :lint:: If true, wrap the application in a Rack::Lint. +# +# source://rack//lib/rack/mock_request.rb#23 +class Rack::MockRequest + # @return [MockRequest] a new instance of MockRequest + # + # source://rack//lib/rack/mock_request.rb#49 + def initialize(app); end + + # Make a DELETE request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#62 + def delete(uri, opts = T.unsafe(nil)); end + + # Make a GET request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#54 + def get(uri, opts = T.unsafe(nil)); end + + # Make a HEAD request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#64 + def head(uri, opts = T.unsafe(nil)); end + + # Make an OPTIONS request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#66 + def options(uri, opts = T.unsafe(nil)); end + + # Make a PATCH request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#60 + def patch(uri, opts = T.unsafe(nil)); end + + # Make a POST request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#56 + def post(uri, opts = T.unsafe(nil)); end + + # Make a PUT request and return a MockResponse. See #request. + # + # source://rack//lib/rack/mock_request.rb#58 + def put(uri, opts = T.unsafe(nil)); end + + # Make a request using the given request method for the given + # uri to the rack application and return a MockResponse. + # Options given are passed to MockRequest.env_for. + # + # source://rack//lib/rack/mock_request.rb#71 + def request(method = T.unsafe(nil), uri = T.unsafe(nil), opts = T.unsafe(nil)); end + + class << self + # Return the Rack environment used for a request to +uri+. + # All options that are strings are added to the returned environment. + # Options: + # :fatal :: Whether to raise an exception if request outputs to rack.errors + # :input :: The rack.input to set + # :http_version :: The SERVER_PROTOCOL to set + # :method :: The HTTP request method to use + # :params :: The params to use + # :script_name :: The SCRIPT_NAME to set + # + # source://rack//lib/rack/mock_request.rb#103 + def env_for(uri = T.unsafe(nil), opts = T.unsafe(nil)); end + + # For historical reasons, we're pinning to RFC 2396. + # URI::Parser = URI::RFC2396_Parser + # + # source://rack//lib/rack/mock_request.rb#89 + def parse_uri_rfc2396(uri); end + end +end + +# source://rack//lib/rack/mock_request.rb#44 +Rack::MockRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/mock_request.rb#27 +class Rack::MockRequest::FatalWarner + # source://rack//lib/rack/mock_request.rb#36 + def flush; end + + # @raise [FatalWarning] + # + # source://rack//lib/rack/mock_request.rb#28 + def puts(warning); end + + # source://rack//lib/rack/mock_request.rb#39 + def string; end + + # @raise [FatalWarning] + # + # source://rack//lib/rack/mock_request.rb#32 + def write(warning); end +end + +# source://rack//lib/rack/mock_request.rb#24 +class Rack::MockRequest::FatalWarning < ::RuntimeError; end + +# Rack::MockResponse provides useful helpers for testing your apps. +# Usually, you don't create the MockResponse on your own, but use +# MockRequest. +# +# source://rack//lib/rack/mock_response.rb#13 +class Rack::MockResponse < ::Rack::Response + # @return [MockResponse] a new instance of MockResponse + # + # source://rack//lib/rack/mock_response.rb#24 + def initialize(status, headers, body, errors = T.unsafe(nil)); end + + # source://rack//lib/rack/mock_response.rb#39 + def =~(other); end + + # source://rack//lib/rack/mock_response.rb#47 + def body; end + + # source://rack//lib/rack/mock_response.rb#73 + def cookie(name); end + + # Headers + # + # source://rack//lib/rack/mock_response.rb#19 + def cookies; end + + # @return [Boolean] + # + # source://rack//lib/rack/mock_response.rb#69 + def empty?; end + + # Errors + # + # source://rack//lib/rack/mock_response.rb#22 + def errors; end + + # Errors + # + # source://rack//lib/rack/mock_response.rb#22 + def errors=(_arg0); end + + # source://rack//lib/rack/mock_response.rb#43 + def match(other); end + + # Headers + # + # source://rack//lib/rack/mock_response.rb#19 + def original_headers; end + + private + + # source://rack//lib/rack/mock_response.rb#102 + def identify_cookie_attributes(cookie_filling); end + + # source://rack//lib/rack/mock_response.rb#79 + def parse_cookies_from_header; end + + class << self + def [](*_arg0); end + end +end + +# A multipart form data parser, adapted from IOWA. +# +# Usually, Rack::Request#POST takes care of calling this. +# +# source://rack//lib/rack/multipart/parser.rb#8 +module Rack::Multipart + class << self + # source://rack//lib/rack/multipart.rb#39 + def build_multipart(params, first = T.unsafe(nil)); end + + # source://rack//lib/rack/multipart.rb#35 + def extract_multipart(request, params = T.unsafe(nil)); end + + # source://rack//lib/rack/multipart.rb#17 + def parse_multipart(env, params = T.unsafe(nil)); end + end +end + +# source://rack//lib/rack/multipart/parser.rb#32 +Rack::Multipart::ATTRIBUTE = T.let(T.unsafe(nil), Regexp) + +# Updated definitions from RFC 2231 +# +# source://rack//lib/rack/multipart/parser.rb#31 +Rack::Multipart::ATTRIBUTE_CHAR = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#26 +Rack::Multipart::BROKEN = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#24 +Rack::Multipart::CONDISP = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#43 +Rack::Multipart::DISPPARM = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#21 +Rack::Multipart::EOL = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/multipart/parser.rb#39 +Rack::Multipart::EXTENDED_INITIAL_NAME = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#41 +Rack::Multipart::EXTENDED_INITIAL_PARAMETER = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#40 +Rack::Multipart::EXTENDED_INITIAL_VALUE = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#36 +Rack::Multipart::EXTENDED_OTHER_NAME = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#38 +Rack::Multipart::EXTENDED_OTHER_PARAMETER = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#37 +Rack::Multipart::EXTENDED_OTHER_VALUE = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#42 +Rack::Multipart::EXTENDED_PARAMETER = T.let(T.unsafe(nil), Regexp) + +# Use specific error class when parsing multipart request +# that ends early. +# +# source://rack//lib/rack/multipart/parser.rb#15 +class Rack::Multipart::EmptyContentError < ::EOFError; end + +# Base class for multipart exceptions that do not subclass from +# other exception classes for backwards compatibility. +# +# source://rack//lib/rack/multipart/parser.rb#19 +class Rack::Multipart::Error < ::StandardError; end + +# source://rack//lib/rack/multipart/generator.rb#7 +class Rack::Multipart::Generator + # @return [Generator] a new instance of Generator + # + # source://rack//lib/rack/multipart/generator.rb#8 + def initialize(params, first = T.unsafe(nil)); end + + # source://rack//lib/rack/multipart/generator.rb#16 + def dump; end + + private + + # source://rack//lib/rack/multipart/generator.rb#89 + def content_for_other(file, name); end + + # source://rack//lib/rack/multipart/generator.rb#77 + def content_for_tempfile(io, file, name); end + + # source://rack//lib/rack/multipart/generator.rb#52 + def flattened_params; end + + # @return [Boolean] + # + # source://rack//lib/rack/multipart/generator.rb#37 + def multipart?; end +end + +# source://rack//lib/rack/multipart/parser.rb#22 +Rack::Multipart::MULTIPART = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart.rb#14 +Rack::Multipart::MULTIPART_BOUNDARY = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/multipart/parser.rb#28 +Rack::Multipart::MULTIPART_CONTENT_DISPOSITION = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#29 +Rack::Multipart::MULTIPART_CONTENT_ID = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#27 +Rack::Multipart::MULTIPART_CONTENT_TYPE = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#9 +class Rack::Multipart::MultipartPartLimitError < ::Errno::EMFILE; end + +# source://rack//lib/rack/multipart/parser.rb#11 +class Rack::Multipart::MultipartTotalPartLimitError < ::StandardError; end + +# source://rack//lib/rack/multipart/parser.rb#46 +class Rack::Multipart::Parser + # @return [Parser] a new instance of Parser + # + # source://rack//lib/rack/multipart/parser.rb#205 + def initialize(boundary, tempfile, bufsize, query_parser); end + + # source://rack//lib/rack/multipart/parser.rb#220 + def parse(io); end + + # source://rack//lib/rack/multipart/parser.rb#243 + def result; end + + # Returns the value of attribute state. + # + # source://rack//lib/rack/multipart/parser.rb#203 + def state; end + + private + + # Scan until the we find the start or end of the boundary. + # If we find it, return the appropriate symbol for the start or + # end of the boundary. If we don't find the start or end of the + # boundary, clear the buffer and return nil. + # + # source://rack//lib/rack/multipart/parser.rb#346 + def consume_boundary; end + + # From WEBrick::HTTPUtils + # + # source://rack//lib/rack/multipart/parser.rb#255 + def dequote(str); end + + # source://rack//lib/rack/multipart/parser.rb#355 + def get_filename(head); end + + # source://rack//lib/rack/multipart/parser.rb#290 + def handle_consume_token; end + + # source://rack//lib/rack/multipart/parser.rb#427 + def handle_empty_content!(content); end + + # This handles the initial parser state. We read until we find the starting + # boundary, then we can transition to the next state. If we find the ending + # boundary, this is an invalid multipart upload, but keep scanning for opening + # boundary in that case. If no boundary found, we need to keep reading data + # and retry. It's highly unlikely the initial read will not consume the + # boundary. The client would have to deliberately craft a response + # with the opening boundary beyond the buffer size for that to happen. + # + # source://rack//lib/rack/multipart/parser.rb#274 + def handle_fast_forward; end + + # source://rack//lib/rack/multipart/parser.rb#323 + def handle_mime_body; end + + # source://rack//lib/rack/multipart/parser.rb#300 + def handle_mime_head; end + + # source://rack//lib/rack/multipart/parser.rb#261 + def read_data(io, outbuf); end + + # source://rack//lib/rack/multipart/parser.rb#393 + def tag_multipart_encoding(filename, content_type, name, body); end + + class << self + # source://rack//lib/rack/multipart/parser.rb#92 + def parse(io, content_length, content_type, tmpfile, bufsize, qp); end + + # source://rack//lib/rack/multipart/parser.rb#85 + def parse_boundary(content_type); end + end +end + +# source://rack//lib/rack/multipart/parser.rb#47 +Rack::Multipart::Parser::BUFSIZE = T.let(T.unsafe(nil), Integer) + +# source://rack//lib/rack/multipart/parser.rb#53 +class Rack::Multipart::Parser::BoundedIO + # @return [BoundedIO] a new instance of BoundedIO + # + # source://rack//lib/rack/multipart/parser.rb#54 + def initialize(io, content_length); end + + # source://rack//lib/rack/multipart/parser.rb#60 + def read(size, outbuf = T.unsafe(nil)); end +end + +# source://rack//lib/rack/multipart/parser.rb#390 +Rack::Multipart::Parser::CHARSET = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/multipart/parser.rb#112 +class Rack::Multipart::Parser::Collector + include ::Enumerable + + # @return [Collector] a new instance of Collector + # + # source://rack//lib/rack/multipart/parser.rb#148 + def initialize(tempfile); end + + # source://rack//lib/rack/multipart/parser.rb#154 + def each; end + + # source://rack//lib/rack/multipart/parser.rb#174 + def on_mime_body(mime_index, content); end + + # source://rack//lib/rack/multipart/parser.rb#178 + def on_mime_finish(mime_index); end + + # source://rack//lib/rack/multipart/parser.rb#158 + def on_mime_head(mime_index, head, filename, content_type, name); end + + private + + # source://rack//lib/rack/multipart/parser.rb#183 + def check_part_limits; end +end + +# source://rack//lib/rack/multipart/parser.rb#136 +class Rack::Multipart::Parser::Collector::BufferPart < ::Rack::Multipart::Parser::Collector::MimePart + # source://rack//lib/rack/multipart/parser.rb#138 + def close; end + + # @return [Boolean] + # + # source://rack//lib/rack/multipart/parser.rb#137 + def file?; end +end + +# source://rack//lib/rack/multipart/parser.rb#113 +class Rack::Multipart::Parser::Collector::MimePart < ::Struct + # @yield [data] + # + # source://rack//lib/rack/multipart/parser.rb#114 + def get_data; end +end + +# source://rack//lib/rack/multipart/parser.rb#141 +class Rack::Multipart::Parser::Collector::TempfilePart < ::Rack::Multipart::Parser::Collector::MimePart + # source://rack//lib/rack/multipart/parser.rb#143 + def close; end + + # @return [Boolean] + # + # source://rack//lib/rack/multipart/parser.rb#142 + def file?; end +end + +# source://rack//lib/rack/multipart/parser.rb#83 +Rack::Multipart::Parser::EMPTY = T.let(T.unsafe(nil), Rack::Multipart::Parser::MultipartInfo) + +# source://rack//lib/rack/multipart/parser.rb#82 +class Rack::Multipart::Parser::MultipartInfo < ::Struct + # Returns the value of attribute params + # + # @return [Object] the current value of params + def params; end + + # Sets the attribute params + # + # @param value [Object] the value to set the attribute params to. + # @return [Object] the newly set value + def params=(_); end + + # Returns the value of attribute tmp_files + # + # @return [Object] the current value of tmp_files + def tmp_files; end + + # Sets the attribute tmp_files + # + # @param value [Object] the value to set the attribute tmp_files to. + # @return [Object] the newly set value + def tmp_files=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rack//lib/rack/multipart/parser.rb#49 +Rack::Multipart::Parser::TEMPFILE_FACTORY = T.let(T.unsafe(nil), Proc) + +# source://rack//lib/rack/multipart/parser.rb#48 +Rack::Multipart::Parser::TEXT_PLAIN = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/multipart/parser.rb#35 +Rack::Multipart::REGULAR_PARAMETER = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#34 +Rack::Multipart::REGULAR_PARAMETER_NAME = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#44 +Rack::Multipart::RFC2183 = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#33 +Rack::Multipart::SECTION = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/parser.rb#23 +Rack::Multipart::TOKEN = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/multipart/uploaded_file.rb#8 +class Rack::Multipart::UploadedFile + # @return [UploadedFile] a new instance of UploadedFile + # + # source://rack//lib/rack/multipart/uploaded_file.rb#16 + def initialize(filepath = T.unsafe(nil), ct = T.unsafe(nil), bin = T.unsafe(nil), path: T.unsafe(nil), content_type: T.unsafe(nil), binary: T.unsafe(nil), filename: T.unsafe(nil), io: T.unsafe(nil)); end + + # The content type of the "uploaded" file + # + # source://rack//lib/rack/multipart/uploaded_file.rb#14 + def content_type; end + + # The content type of the "uploaded" file + # + # source://rack//lib/rack/multipart/uploaded_file.rb#14 + def content_type=(_arg0); end + + # source://rack//lib/rack/multipart/uploaded_file.rb#31 + def local_path; end + + # source://rack//lib/rack/multipart/uploaded_file.rb#40 + def method_missing(method_name, *args, &block); end + + # The filename, *not* including the path, of the "uploaded" file + # + # source://rack//lib/rack/multipart/uploaded_file.rb#11 + def original_filename; end + + # source://rack//lib/rack/multipart/uploaded_file.rb#31 + def path; end + + # @return [Boolean] + # + # source://rack//lib/rack/multipart/uploaded_file.rb#36 + def respond_to?(*args); end +end + +# source://rack//lib/rack/multipart/parser.rb#25 +Rack::Multipart::VALUE = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/null_logger.rb#6 +class Rack::NullLogger + # @return [NullLogger] a new instance of NullLogger + # + # source://rack//lib/rack/null_logger.rb#7 + def initialize(app); end + + # source://rack//lib/rack/null_logger.rb#45 + def <<(msg); end + + # source://rack//lib/rack/null_logger.rb#43 + def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#11 + def call(env); end + + # source://rack//lib/rack/null_logger.rb#42 + def close; end + + # source://rack//lib/rack/null_logger.rb#34 + def datetime_format; end + + # source://rack//lib/rack/null_logger.rb#39 + def datetime_format=(datetime_format); end + + # source://rack//lib/rack/null_logger.rb#17 + def debug(progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#27 + def debug!; end + + # @return [Boolean] + # + # source://rack//lib/rack/null_logger.rb#23 + def debug?; end + + # source://rack//lib/rack/null_logger.rb#19 + def error(progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#28 + def error!; end + + # @return [Boolean] + # + # source://rack//lib/rack/null_logger.rb#25 + def error?; end + + # source://rack//lib/rack/null_logger.rb#20 + def fatal(progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#29 + def fatal!; end + + # @return [Boolean] + # + # source://rack//lib/rack/null_logger.rb#26 + def fatal?; end + + # source://rack//lib/rack/null_logger.rb#35 + def formatter; end + + # source://rack//lib/rack/null_logger.rb#40 + def formatter=(formatter); end + + # source://rack//lib/rack/null_logger.rb#16 + def info(progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#30 + def info!; end + + # @return [Boolean] + # + # source://rack//lib/rack/null_logger.rb#22 + def info?; end + + # source://rack//lib/rack/null_logger.rb#32 + def level; end + + # source://rack//lib/rack/null_logger.rb#37 + def level=(level); end + + # source://rack//lib/rack/null_logger.rb#44 + def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#33 + def progname; end + + # source://rack//lib/rack/null_logger.rb#38 + def progname=(progname); end + + # source://rack//lib/rack/null_logger.rb#46 + def reopen(logdev = T.unsafe(nil)); end + + # source://rack//lib/rack/null_logger.rb#36 + def sev_threshold; end + + # source://rack//lib/rack/null_logger.rb#41 + def sev_threshold=(sev_threshold); end + + # source://rack//lib/rack/null_logger.rb#21 + def unknown(progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#18 + def warn(progname = T.unsafe(nil), &block); end + + # source://rack//lib/rack/null_logger.rb#31 + def warn!; end + + # @return [Boolean] + # + # source://rack//lib/rack/null_logger.rb#24 + def warn?; end +end + +# source://rack//lib/rack/constants.rb#34 +Rack::OPTIONS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#31 +Rack::PATCH = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#8 +Rack::PATH_INFO = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#29 +Rack::POST = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#30 +Rack::PUT = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#12 +Rack::QUERY_STRING = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/query_parser.rb#6 +class Rack::QueryParser + # @return [QueryParser] a new instance of QueryParser + # + # source://rack//lib/rack/query_parser.rb#33 + def initialize(params_class, _key_space_limit = T.unsafe(nil), param_depth_limit); end + + # source://rack//lib/rack/query_parser.rb#167 + def make_params; end + + # source://rack//lib/rack/query_parser.rb#171 + def new_depth_limit(param_depth_limit); end + + # normalize_params recursively expands parameters into structural types. If + # the structural types represented by two different parameter names are in + # conflict, a ParameterTypeError is raised. The depth argument is deprecated + # and should no longer be used, it is kept for backwards compatibility with + # earlier versions of rack. + # + # source://rack//lib/rack/query_parser.rb#95 + def normalize_params(params, name, v, _depth = T.unsafe(nil)); end + + # Returns the value of attribute param_depth_limit. + # + # source://rack//lib/rack/query_parser.rb#31 + def param_depth_limit; end + + # parse_nested_query expands a query string into structural types. Supported + # types are Arrays, Hashes and basic value types. It is possible to supply + # query strings with parameters of conflicting types, in this case a + # ParameterTypeError is raised. Users are encouraged to return a 400 in this + # case. + # + # source://rack//lib/rack/query_parser.rb#74 + def parse_nested_query(qs, separator = T.unsafe(nil)); end + + # Stolen from Mongrel, with some small modifications: + # Parses a query string by breaking it up at the '&'. You can also use this + # to parse cookies by changing the characters used in the second parameter + # (which defaults to '&'). + # + # source://rack//lib/rack/query_parser.rb#46 + def parse_query(qs, separator = T.unsafe(nil), &unescaper); end + + private + + # @raise [ParamsTooDeepError] + # + # source://rack//lib/rack/query_parser.rb#99 + def _normalize_params(params, name, v, depth); end + + # @return [Boolean] + # + # source://rack//lib/rack/query_parser.rb#181 + def params_hash_has_key?(hash, key); end + + # @return [Boolean] + # + # source://rack//lib/rack/query_parser.rb#177 + def params_hash_type?(obj); end + + # source://rack//lib/rack/query_parser.rb#193 + def unescape(string, encoding = T.unsafe(nil)); end + + class << self + # source://rack//lib/rack/query_parser.rb#23 + def make_default(_key_space_limit = T.unsafe(nil), param_depth_limit); end + end +end + +# source://rack//lib/rack/query_parser.rb#8 +Rack::QueryParser::COMMON_SEP = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/query_parser.rb#7 +Rack::QueryParser::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) + +# InvalidParameterError is the error that is raised when incoming structural +# parameters (parsed by parse_nested_query) contain invalid format or byte +# sequence. +# +# source://rack//lib/rack/query_parser.rb#17 +class Rack::QueryParser::InvalidParameterError < ::ArgumentError; end + +# ParameterTypeError is the error that is raised when incoming structural +# parameters (parsed by parse_nested_query) contain conflicting types. +# +# source://rack//lib/rack/query_parser.rb#12 +class Rack::QueryParser::ParameterTypeError < ::TypeError; end + +# source://rack//lib/rack/query_parser.rb#197 +class Rack::QueryParser::Params + # @return [Params] a new instance of Params + # + # source://rack//lib/rack/query_parser.rb#198 + def initialize; end + + # source://rack//lib/rack/query_parser.rb#203 + def [](key); end + + # source://rack//lib/rack/query_parser.rb#207 + def []=(key, value); end + + # @return [Boolean] + # + # source://rack//lib/rack/query_parser.rb#211 + def key?(key); end + + # Recursively unwraps nested `Params` objects and constructs an object + # of the same shape, but using the objects' internal representations + # (Ruby hashes) in place of the objects. The result is a hash consisting + # purely of Ruby primitives. + # + # Mutation warning! + # + # 1. This method mutates the internal representation of the `Params` + # objects in order to save object allocations. + # + # 2. The value you get back is a reference to the internal hash + # representation, not a copy. + # + # 3. Because the `Params` object's internal representation is mutable + # through the `#[]=` method, it is not thread safe. The result of + # getting the hash representation while another thread is adding a + # key to it is non-deterministic. + # + # source://rack//lib/rack/query_parser.rb#233 + def to_h; end + + # Recursively unwraps nested `Params` objects and constructs an object + # of the same shape, but using the objects' internal representations + # (Ruby hashes) in place of the objects. The result is a hash consisting + # purely of Ruby primitives. + # + # Mutation warning! + # + # 1. This method mutates the internal representation of the `Params` + # objects in order to save object allocations. + # + # 2. The value you get back is a reference to the internal hash + # representation, not a copy. + # + # 3. Because the `Params` object's internal representation is mutable + # through the `#[]=` method, it is not thread safe. The result of + # getting the hash representation while another thread is adding a + # key to it is non-deterministic. + # + # source://rack//lib/rack/query_parser.rb#233 + def to_params_hash; end +end + +# ParamsTooDeepError is the error that is raised when params are recursively +# nested over the specified limit. +# +# source://rack//lib/rack/query_parser.rb#21 +class Rack::QueryParser::ParamsTooDeepError < ::RangeError; end + +# source://rack//lib/rack/constants.rb#42 +Rack::RACK_ERRORS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#49 +Rack::RACK_HIJACK = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#44 +Rack::RACK_INPUT = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#50 +Rack::RACK_IS_HIJACK = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#43 +Rack::RACK_LOGGER = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#63 +Rack::RACK_METHODOVERRIDE_ORIGINAL_METHOD = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#52 +Rack::RACK_MULTIPART_BUFFER_SIZE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#53 +Rack::RACK_MULTIPART_TEMPFILE_FACTORY = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#51 +Rack::RACK_RECURSIVE_INCLUDE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#59 +Rack::RACK_REQUEST_COOKIE_HASH = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#60 +Rack::RACK_REQUEST_COOKIE_STRING = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#58 +Rack::RACK_REQUEST_FORM_ERROR = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#56 +Rack::RACK_REQUEST_FORM_HASH = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#55 +Rack::RACK_REQUEST_FORM_INPUT = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#57 +Rack::RACK_REQUEST_FORM_VARS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#61 +Rack::RACK_REQUEST_QUERY_HASH = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#62 +Rack::RACK_REQUEST_QUERY_STRING = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#54 +Rack::RACK_RESPONSE_FINISHED = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#45 +Rack::RACK_SESSION = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#46 +Rack::RACK_SESSION_OPTIONS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#47 +Rack::RACK_SHOWSTATUS_DETAIL = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#41 +Rack::RACK_TEMPFILES = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#48 +Rack::RACK_URL_SCHEME = T.let(T.unsafe(nil), String) + +# Rack environment variables +# +# source://rack//lib/rack/constants.rb#40 +Rack::RACK_VERSION = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/version.rb#28 +Rack::RELEASE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#9 +Rack::REQUEST_METHOD = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#10 +Rack::REQUEST_PATH = T.let(T.unsafe(nil), String) + +# Rack::Recursive allows applications called down the chain to +# include data from other applications (by using +# rack['rack.recursive.include'][...] or raise a +# ForwardRequest to redirect internally. +# +# source://rack//lib/rack/recursive.rb#36 +class Rack::Recursive + # @return [Recursive] a new instance of Recursive + # + # source://rack//lib/rack/recursive.rb#37 + def initialize(app); end + + # source://rack//lib/rack/recursive.rb#45 + def _call(env); end + + # source://rack//lib/rack/recursive.rb#41 + def call(env); end + + # source://rack//lib/rack/recursive.rb#52 + def include(env, path); end +end + +# High performant source reloader +# +# This class acts as Rack middleware. +# +# What makes it especially suited for use in a production environment is that +# any file will only be checked once and there will only be made one system +# call stat(2). +# +# Please note that this will not reload files in the background, it does so +# only when actively called. +# +# It is performing a check/reload cycle at the start of every request, but +# also respects a cool down time, during which nothing will be done. +# +# source://rack//lib/rack/reloader.rb#24 +class Rack::Reloader + # @return [Reloader] a new instance of Reloader + # + # source://rack//lib/rack/reloader.rb#25 + def initialize(app, cooldown = T.unsafe(nil), backend = T.unsafe(nil)); end + + # source://rack//lib/rack/reloader.rb#36 + def call(env); end + + # source://rack//lib/rack/reloader.rb#50 + def reload!(stderr = T.unsafe(nil)); end + + # A safe Kernel::load, issuing the hooks depending on the results + # + # source://rack//lib/rack/reloader.rb#58 + def safe_load(file, mtime, stderr = T.unsafe(nil)); end +end + +# source://rack//lib/rack/reloader.rb#68 +module Rack::Reloader::Stat + # Takes a relative or absolute +file+ name, a couple possible +paths+ that + # the +file+ might reside in. Returns the full path and File::Stat for the + # path. + # + # source://rack//lib/rack/reloader.rb#88 + def figure_path(file, paths); end + + # source://rack//lib/rack/reloader.rb#69 + def rotation; end + + # source://rack//lib/rack/reloader.rb#103 + def safe_stat(file); end +end + +# Rack::Request provides a convenient interface to a Rack +# environment. It is stateless, the environment +env+ passed to the +# constructor will be directly modified. +# +# req = Rack::Request.new(env) +# req.post? +# req.params["data"] +# +# source://rack//lib/rack/request.rb#16 +class Rack::Request + include ::Rack::Request::Env + include ::Rack::Request::Helpers + + # @return [Request] a new instance of Request + # + # source://rack//lib/rack/request.rb#62 + def initialize(env); end + + # source://rack//lib/rack/request.rb#76 + def delete_param(k); end + + # source://rack//lib/rack/request.rb#67 + def params; end + + # source://rack//lib/rack/request.rb#71 + def update_param(k, v); end + + class << self + # The priority when checking forwarded headers. The default + # is [:forwarded, :x_forwarded], which means, check the + # +Forwarded+ header first, followed by the appropriate + # X-Forwarded-* header. You can revert the priority by + # reversing the priority, or remove checking of either + # or both headers by removing elements from the array. + # + # This should be set as appropriate in your environment + # based on what reverse proxies are in use. If you are not + # using reverse proxies, you should probably use an empty + # array. + # + # source://rack//lib/rack/request.rb#31 + def forwarded_priority; end + + # The priority when checking forwarded headers. The default + # is [:forwarded, :x_forwarded], which means, check the + # +Forwarded+ header first, followed by the appropriate + # X-Forwarded-* header. You can revert the priority by + # reversing the priority, or remove checking of either + # or both headers by removing elements from the array. + # + # This should be set as appropriate in your environment + # based on what reverse proxies are in use. If you are not + # using reverse proxies, you should probably use an empty + # array. + # + # source://rack//lib/rack/request.rb#31 + def forwarded_priority=(_arg0); end + + # Returns the value of attribute ip_filter. + # + # source://rack//lib/rack/request.rb#18 + def ip_filter; end + + # Sets the attribute ip_filter + # + # @param value the value to set the attribute ip_filter to. + # + # source://rack//lib/rack/request.rb#18 + def ip_filter=(_arg0); end + + # The priority when checking either the X-Forwarded-Proto + # or X-Forwarded-Scheme header for the forwarded protocol. + # The default is [:proto, :scheme], to try the + # X-Forwarded-Proto header before the + # X-Forwarded-Scheme header. Rack 2 had behavior + # similar to [:scheme, :proto]. You can remove either or + # both of the entries in array to ignore that respective header. + # + # source://rack//lib/rack/request.rb#40 + def x_forwarded_proto_priority; end + + # The priority when checking either the X-Forwarded-Proto + # or X-Forwarded-Scheme header for the forwarded protocol. + # The default is [:proto, :scheme], to try the + # X-Forwarded-Proto header before the + # X-Forwarded-Scheme header. Rack 2 had behavior + # similar to [:scheme, :proto]. You can remove either or + # both of the entries in array to ignore that respective header. + # + # source://rack//lib/rack/request.rb#40 + def x_forwarded_proto_priority=(_arg0); end + end +end + +# source://rack//lib/rack/request.rb#60 +Rack::Request::ALLOWED_SCHEMES = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/request.rb#82 +module Rack::Request::Env + # source://rack//lib/rack/request.rb#86 + def initialize(env); end + + # Add a header that may have multiple values. + # + # Example: + # request.add_header 'Accept', 'image/png' + # request.add_header 'Accept', '*/*' + # + # assert_equal 'image/png,*/*', request.get_header('Accept') + # + # http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 + # + # source://rack//lib/rack/request.rb#129 + def add_header(key, v); end + + # Delete a request specific value for `name`. + # + # source://rack//lib/rack/request.rb#140 + def delete_header(name); end + + # Loops through each key / value pair in the request specific data. + # + # source://rack//lib/rack/request.rb#111 + def each_header(&block); end + + # The environment of the request. + # + # source://rack//lib/rack/request.rb#84 + def env; end + + # If a block is given, it yields to the block if the value hasn't been set + # on the request. + # + # source://rack//lib/rack/request.rb#106 + def fetch_header(name, &block); end + + # Get a request specific value for `name`. + # + # source://rack//lib/rack/request.rb#100 + def get_header(name); end + + # Predicate method to test to see if `name` has been set as request + # specific data + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#95 + def has_header?(name); end + + # Set a request specific value for `name` to `v` + # + # source://rack//lib/rack/request.rb#116 + def set_header(name, v); end + + private + + # source://rack//lib/rack/request.rb#144 + def initialize_copy(other); end +end + +# source://rack//lib/rack/request.rb#149 +module Rack::Request::Helpers + # Returns the data received in the query string. + # + # source://rack//lib/rack/request.rb#484 + def GET; end + + # Returns the data received in the request body. + # + # This method support both application/x-www-form-urlencoded and + # multipart/form-data. + # + # source://rack//lib/rack/request.rb#498 + def POST; end + + # shortcut for request.params[key] + # + # source://rack//lib/rack/request.rb#609 + def [](key); end + + # shortcut for request.params[key] = value + # + # Note that modifications will not be persisted in the env. Use update_param or delete_param if you want to destructively modify params. + # + # source://rack//lib/rack/request.rb#618 + def []=(key, value); end + + # source://rack//lib/rack/request.rb#596 + def accept_encoding; end + + # source://rack//lib/rack/request.rb#600 + def accept_language; end + + # The authority of the incoming request as defined by RFC3976. + # https://tools.ietf.org/html/rfc3986#section-3.2 + # + # In HTTP/1, this is the `host` header. + # In HTTP/2, this is the `:authority` pseudo-header. + # + # source://rack//lib/rack/request.rb#266 + def authority; end + + # source://rack//lib/rack/request.rb#579 + def base_url; end + + # source://rack//lib/rack/request.rb#190 + def body; end + + # The character set of the request body if a "charset" media type + # parameter was given, or nil if no "charset" was specified. Note + # that, per RFC2616, text/* media types that specify no explicit + # charset are to be considered ISO-8859-1. + # + # source://rack//lib/rack/request.rb#458 + def content_charset; end + + # source://rack//lib/rack/request.rb#199 + def content_length; end + + # source://rack//lib/rack/request.rb#308 + def content_type; end + + # source://rack//lib/rack/request.rb#293 + def cookies; end + + # Checks the HTTP request method (or verb) to see if it was of type DELETE + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#220 + def delete?; end + + # Destructively delete a parameter, whether it's in GET or POST. Returns the value of the deleted parameter. + # + # If the parameter is in both GET and POST, the POST value takes precedence since that's how #params works. + # + # env['rack.input'] is not touched. + # + # source://rack//lib/rack/request.rb#574 + def delete_param(k); end + + # Determine whether the request body contains form-data by checking + # the request content-type for one of the media-types: + # "application/x-www-form-urlencoded" or "multipart/form-data". The + # list of form-data media types can be modified through the + # +FORM_DATA_MEDIA_TYPES+ array. + # + # A request body is also assumed to contain form-data when no + # content-type header is provided and the request_method is POST. + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#470 + def form_data?; end + + # source://rack//lib/rack/request.rb#393 + def forwarded_authority; end + + # source://rack//lib/rack/request.rb#353 + def forwarded_for; end + + # source://rack//lib/rack/request.rb#374 + def forwarded_port; end + + # source://rack//lib/rack/request.rb#592 + def fullpath; end + + # Checks the HTTP request method (or verb) to see if it was of type GET + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#223 + def get?; end + + # Checks the HTTP request method (or verb) to see if it was of type HEAD + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#226 + def head?; end + + # Returns a formatted host, suitable for being used in a URI. + # + # source://rack//lib/rack/request.rb#333 + def host; end + + # The `HTTP_HOST` header. + # + # source://rack//lib/rack/request.rb#318 + def host_authority; end + + # source://rack//lib/rack/request.rb#322 + def host_with_port(authority = T.unsafe(nil)); end + + # Returns an address suitable for being to resolve to an address. + # In the case of a domain name or IPv4 address, the result is the same + # as +host+. In the case of IPv6 or future address formats, the square + # brackets are removed. + # + # source://rack//lib/rack/request.rb#341 + def hostname; end + + # source://rack//lib/rack/request.rb#414 + def ip; end + + # Checks the HTTP request method (or verb) to see if it was of type LINK + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#232 + def link?; end + + # source://rack//lib/rack/request.rb#200 + def logger; end + + # The media type (type/subtype) portion of the CONTENT_TYPE header + # without any media type parameters. e.g., when CONTENT_TYPE is + # "text/plain;charset=utf-8", the media-type is "text/plain". + # + # For more information on the use of media types in HTTP, see: + # http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7 + # + # source://rack//lib/rack/request.rb#441 + def media_type; end + + # The media type parameters provided in CONTENT_TYPE as a Hash, or + # an empty Hash if no CONTENT_TYPE or media-type parameters were + # provided. e.g., when the CONTENT_TYPE is "text/plain;charset=utf-8", + # this method responds with the following Hash: + # { 'charset' => 'utf-8' } + # + # source://rack//lib/rack/request.rb#450 + def media_type_params; end + + # Checks the HTTP request method (or verb) to see if it was of type OPTIONS + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#229 + def options?; end + + # The union of GET and POST data. + # + # Note that modifications will not be persisted in the env. Use update_param or delete_param if you want to destructively modify params. + # + # source://rack//lib/rack/request.rb#545 + def params; end + + # Determine whether the request body contains data by checking + # the request media_type against registered parse-data media-types + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#479 + def parseable_data?; end + + # Checks the HTTP request method (or verb) to see if it was of type PATCH + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#235 + def patch?; end + + # source://rack//lib/rack/request.rb#588 + def path; end + + # source://rack//lib/rack/request.rb#194 + def path_info; end + + # source://rack//lib/rack/request.rb#195 + def path_info=(s); end + + # source://rack//lib/rack/request.rb#345 + def port; end + + # Checks the HTTP request method (or verb) to see if it was of type POST + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#238 + def post?; end + + # Checks the HTTP request method (or verb) to see if it was of type PUT + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#241 + def put?; end + + # source://rack//lib/rack/request.rb#198 + def query_string; end + + # the referer of the client + # + # source://rack//lib/rack/request.rb#204 + def referer; end + + # the referer of the client + # + # source://rack//lib/rack/request.rb#204 + def referrer; end + + # source://rack//lib/rack/request.rb#197 + def request_method; end + + # source://rack//lib/rack/request.rb#249 + def scheme; end + + # source://rack//lib/rack/request.rb#191 + def script_name; end + + # source://rack//lib/rack/request.rb#192 + def script_name=(s); end + + # The authority as defined by the `SERVER_NAME` and `SERVER_PORT` + # variables. + # + # source://rack//lib/rack/request.rb#272 + def server_authority; end + + # source://rack//lib/rack/request.rb#285 + def server_name; end + + # source://rack//lib/rack/request.rb#289 + def server_port; end + + # source://rack//lib/rack/request.rb#207 + def session; end + + # source://rack//lib/rack/request.rb#213 + def session_options; end + + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#410 + def ssl?; end + + # Checks the HTTP request method (or verb) to see if it was of type TRACE + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#244 + def trace?; end + + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#604 + def trusted_proxy?(ip); end + + # Checks the HTTP request method (or verb) to see if it was of type UNLINK + # + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#247 + def unlink?; end + + # Destructively update a parameter, whether it's in GET and/or POST. Returns nil. + # + # The parameter is updated wherever it was previous defined, so GET, POST, or both. If it wasn't previously defined, it's inserted into GET. + # + # env['rack.input'] is not touched. + # + # source://rack//lib/rack/request.rb#554 + def update_param(k, v); end + + # Tries to return a remake of the original request URL as a string. + # + # source://rack//lib/rack/request.rb#584 + def url; end + + # source://rack//lib/rack/request.rb#201 + def user_agent; end + + # like Hash#values_at + # + # source://rack//lib/rack/request.rb#625 + def values_at(*keys); end + + # @return [Boolean] + # + # source://rack//lib/rack/request.rb#313 + def xhr?; end + + private + + # source://rack//lib/rack/request.rb#757 + def allowed_scheme(header); end + + # source://rack//lib/rack/request.rb#631 + def default_session; end + + # source://rack//lib/rack/request.rb#761 + def forwarded_priority; end + + # source://rack//lib/rack/request.rb#733 + def forwarded_scheme; end + + # Get an array of values set in the RFC 7239 `Forwarded` request header. + # + # source://rack//lib/rack/request.rb#659 + def get_http_forwarded(token); end + + # source://rack//lib/rack/request.rb#647 + def parse_http_accept_header(header); end + + # source://rack//lib/rack/request.rb#671 + def parse_multipart; end + + # source://rack//lib/rack/request.rb#667 + def parse_query(qs, d = T.unsafe(nil)); end + + # source://rack//lib/rack/request.rb#663 + def query_parser; end + + # source://rack//lib/rack/request.rb#724 + def reject_trusted_ip_addresses(ip_addresses); end + + # source://rack//lib/rack/request.rb#718 + def split_authority(authority); end + + # source://rack//lib/rack/request.rb#675 + def split_header(value); end + + # Assist with compatibility when processing `X-Forwarded-For`. + # + # source://rack//lib/rack/request.rb#634 + def wrap_ipv6(host); end + + # source://rack//lib/rack/request.rb#765 + def x_forwarded_proto_priority; end +end + +# source://rack//lib/rack/request.rb#703 +Rack::Request::Helpers::AUTHORITY = T.let(T.unsafe(nil), Regexp) + +# Default ports depending on scheme. Used to decide whether or not +# to include the port in a generated URI. +# +# source://rack//lib/rack/request.rb#168 +Rack::Request::Helpers::DEFAULT_PORTS = T.let(T.unsafe(nil), Hash) + +# The set of form-data media-types. Requests that do not indicate +# one of the media types present in this list will not be eligible +# for form-data / param parsing. +# +# source://rack//lib/rack/request.rb#153 +Rack::Request::Helpers::FORM_DATA_MEDIA_TYPES = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/request.rb#728 +Rack::Request::Helpers::FORWARDED_SCHEME_HEADERS = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/request.rb#176 +Rack::Request::Helpers::HTTP_FORWARDED = T.let(T.unsafe(nil), String) + +# The address of the client which connected to the proxy. +# +# source://rack//lib/rack/request.rb#171 +Rack::Request::Helpers::HTTP_X_FORWARDED_FOR = T.let(T.unsafe(nil), String) + +# The contents of the host/:authority header sent to the proxy. +# +# source://rack//lib/rack/request.rb#174 +Rack::Request::Helpers::HTTP_X_FORWARDED_HOST = T.let(T.unsafe(nil), String) + +# The port used to connect to the proxy. +# +# source://rack//lib/rack/request.rb#185 +Rack::Request::Helpers::HTTP_X_FORWARDED_PORT = T.let(T.unsafe(nil), String) + +# The protocol used to connect to the proxy. +# +# source://rack//lib/rack/request.rb#182 +Rack::Request::Helpers::HTTP_X_FORWARDED_PROTO = T.let(T.unsafe(nil), String) + +# The value of the scheme sent to the proxy. +# +# source://rack//lib/rack/request.rb#179 +Rack::Request::Helpers::HTTP_X_FORWARDED_SCHEME = T.let(T.unsafe(nil), String) + +# Another way for specifying https scheme was used. +# +# source://rack//lib/rack/request.rb#188 +Rack::Request::Helpers::HTTP_X_FORWARDED_SSL = T.let(T.unsafe(nil), String) + +# The set of media-types. Requests that do not indicate +# one of the media types present in this list will not be eligible +# for param parsing like soap attachments or generic multiparts +# +# source://rack//lib/rack/request.rb#161 +Rack::Request::Helpers::PARSEABLE_DATA_MEDIA_TYPES = T.let(T.unsafe(nil), Array) + +# Rack::Response provides a convenient interface to create a Rack +# response. +# +# It allows setting of headers and cookies, and provides useful +# defaults (an OK response with empty headers and body). +# +# You can use Response#write to iteratively generate your response, +# but note that this is buffered by Rack::Response until you call +# +finish+. +finish+ however can take a block inside which calls to +# +write+ are synchronous with the Rack response. +# +# Your application's +call+ should end returning Response#finish. +# +# source://rack//lib/rack/response.rb#23 +class Rack::Response + include ::Rack::Response::Helpers + + # Initialize the response object with the specified +body+, +status+ + # and +headers+. + # + # If the +body+ is +nil+, construct an empty response object with internal + # buffering. + # + # If the +body+ responds to +to_str+, assume it's a string-like object and + # construct a buffered response object containing using that string as the + # initial contents of the buffer. + # + # Otherwise it is expected +body+ conforms to the normal requirements of a + # Rack response body, typically implementing one of +each+ (enumerable + # body) or +call+ (streaming body). + # + # The +status+ defaults to +200+ which is the "OK" HTTP status code. You + # can provide any other valid status code. + # + # The +headers+ must be a +Hash+ of key-value header pairs which conform to + # the Rack specification for response headers. The key must be a +String+ + # instance and the value can be either a +String+ or +Array+ instance. + # + # @return [Response] a new instance of Response + # @yield [_self] + # @yieldparam _self [Rack::Response] the object that the method was called on + # + # source://rack//lib/rack/response.rb#61 + def initialize(body = T.unsafe(nil), status = T.unsafe(nil), headers = T.unsafe(nil)); end + + # @raise [ArgumentError] + # + # source://rack//lib/rack/response.rb#163 + def [](key); end + + # @raise [ArgumentError] + # + # source://rack//lib/rack/response.rb#167 + def []=(key, value); end + + # Returns the value of attribute body. + # + # source://rack//lib/rack/response.rb#31 + def body; end + + # Sets the attribute body + # + # @param value the value to set the attribute body to. + # + # source://rack//lib/rack/response.rb#31 + def body=(_arg0); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#101 + def chunked?; end + + # source://rack//lib/rack/response.rb#151 + def close; end + + # @raise [ArgumentError] + # + # source://rack//lib/rack/response.rb#171 + def delete_header(key); end + + # source://rack//lib/rack/response.rb#131 + def each(&callback); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#155 + def empty?; end + + # Generate a response array consistent with the requirements of the SPEC. + # which is suitable to be returned from the middleware `#call(env)` method. + # + # @return [Array] a 3-tuple suitable of `[status, headers, body]` + # + # source://rack//lib/rack/response.rb#113 + def finish(&block); end + + # @raise [ArgumentError] + # + # source://rack//lib/rack/response.rb#163 + def get_header(key); end + + # @raise [ArgumentError] + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#159 + def has_header?(key); end + + # Deprecated, use headers instead. + # + # source://rack//lib/rack/response.rb#35 + def header; end + + # Returns the value of attribute headers. + # + # source://rack//lib/rack/response.rb#32 + def headers; end + + # Returns the value of attribute length. + # + # source://rack//lib/rack/response.rb#31 + def length; end + + # Sets the attribute length + # + # @param value the value to set the attribute length to. + # + # source://rack//lib/rack/response.rb#31 + def length=(_arg0); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#105 + def no_entity_body?; end + + # source://rack//lib/rack/response.rb#96 + def redirect(target, status = T.unsafe(nil)); end + + # @raise [ArgumentError] + # + # source://rack//lib/rack/response.rb#167 + def set_header(key, value); end + + # Returns the value of attribute status. + # + # source://rack//lib/rack/response.rb#31 + def status; end + + # Sets the attribute status + # + # @param value the value to set the attribute status to. + # + # source://rack//lib/rack/response.rb#31 + def status=(_arg0); end + + # Generate a response array consistent with the requirements of the SPEC. + # which is suitable to be returned from the middleware `#call(env)` method. + # For *response + # + # @return [Array] a 3-tuple suitable of `[status, headers, body]` + # + # source://rack//lib/rack/response.rb#113 + def to_a(&block); end + + # Append to body and update content-length. + # + # NOTE: Do not mix #write and direct #body access! + # + # source://rack//lib/rack/response.rb#145 + def write(chunk); end + + class << self + # source://rack//lib/rack/response.rb#24 + def [](status, headers, body); end + end +end + +# source://rack//lib/rack/response.rb#28 +Rack::Response::CHUNKED = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/response.rb#179 +module Rack::Response::Helpers + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#190 + def accepted?; end + + # Add a header that may have multiple values. + # + # Example: + # response.add_header 'vary', 'accept-encoding' + # response.add_header 'vary', 'cookie' + # + # assert_equal 'accept-encoding,cookie', response.get_header('vary') + # + # http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 + # + # @raise [ArgumentError] + # + # source://rack//lib/rack/response.rb#218 + def add_header(key, value); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#193 + def bad_request?; end + + # Specify that the content should be cached. + # + # @option directive + # @param duration [Integer] The number of seconds until the cache expires. + # @param directive [Hash] a customizable set of options + # + # source://rack//lib/rack/response.rb#306 + def cache!(duration = T.unsafe(nil), directive: T.unsafe(nil)); end + + # source://rack//lib/rack/response.rb#289 + def cache_control; end + + # source://rack//lib/rack/response.rb#293 + def cache_control=(value); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#185 + def client_error?; end + + # source://rack//lib/rack/response.rb#256 + def content_length; end + + # Get the content type of the response. + # + # source://rack//lib/rack/response.rb#239 + def content_type; end + + # Set the content type of the response. + # + # source://rack//lib/rack/response.rb#244 + def content_type=(content_type); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#189 + def created?; end + + # source://rack//lib/rack/response.rb#273 + def delete_cookie(key, value = T.unsafe(nil)); end + + # Specifies that the content shouldn't be cached. Overrides `cache!` if already called. + # + # source://rack//lib/rack/response.rb#298 + def do_not_cache!; end + + # source://rack//lib/rack/response.rb#313 + def etag; end + + # source://rack//lib/rack/response.rb#317 + def etag=(value); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#195 + def forbidden?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#205 + def include?(header); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#182 + def informational?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#180 + def invalid?; end + + # source://rack//lib/rack/response.rb#261 + def location; end + + # source://rack//lib/rack/response.rb#265 + def location=(location); end + + # source://rack//lib/rack/response.rb#248 + def media_type; end + + # source://rack//lib/rack/response.rb#252 + def media_type_params; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#197 + def method_not_allowed?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#192 + def moved_permanently?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#191 + def no_content?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#198 + def not_acceptable?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#196 + def not_found?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#188 + def ok?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#200 + def precondition_failed?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#203 + def redirect?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#184 + def redirection?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#199 + def request_timeout?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#186 + def server_error?; end + + # source://rack//lib/rack/response.rb#269 + def set_cookie(key, value); end + + # source://rack//lib/rack/response.rb#281 + def set_cookie_header; end + + # source://rack//lib/rack/response.rb#285 + def set_cookie_header=(value); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#183 + def successful?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#194 + def unauthorized?; end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#201 + def unprocessable?; end + + protected + + # source://rack//lib/rack/response.rb#351 + def append(chunk); end + + # source://rack//lib/rack/response.rb#323 + def buffered_body!; end +end + +# source://rack//lib/rack/response.rb#365 +class Rack::Response::Raw + include ::Rack::Response::Helpers + + # @return [Raw] a new instance of Raw + # + # source://rack//lib/rack/response.rb#371 + def initialize(status, headers); end + + # source://rack//lib/rack/response.rb#388 + def delete_header(key); end + + # source://rack//lib/rack/response.rb#380 + def get_header(key); end + + # @return [Boolean] + # + # source://rack//lib/rack/response.rb#376 + def has_header?(key); end + + # Returns the value of attribute headers. + # + # source://rack//lib/rack/response.rb#368 + def headers; end + + # source://rack//lib/rack/response.rb#384 + def set_header(key, value); end + + # Returns the value of attribute status. + # + # source://rack//lib/rack/response.rb#369 + def status; end + + # Sets the attribute status + # + # @param value the value to set the attribute status to. + # + # source://rack//lib/rack/response.rb#369 + def status=(_arg0); end +end + +# source://rack//lib/rack/response.rb#29 +Rack::Response::STATUS_WITH_NO_ENTITY_BODY = T.let(T.unsafe(nil), Hash) + +# Class which can make any IO object rewindable, including non-rewindable ones. It does +# this by buffering the data into a tempfile, which is rewindable. +# +# Don't forget to call #close when you're done. This frees up temporary resources that +# RewindableInput uses, though it does *not* close the original IO object. +# +# source://rack//lib/rack/rewindable_input.rb#14 +class Rack::RewindableInput + # @return [RewindableInput] a new instance of RewindableInput + # + # source://rack//lib/rack/rewindable_input.rb#29 + def initialize(io); end + + # Closes this RewindableInput object without closing the originally + # wrapped IO object. Cleans up any temporary resources that this RewindableInput + # has created. + # + # This method may be called multiple times. It does nothing on subsequent calls. + # + # source://rack//lib/rack/rewindable_input.rb#65 + def close; end + + # source://rack//lib/rack/rewindable_input.rb#45 + def each(&block); end + + # source://rack//lib/rack/rewindable_input.rb#35 + def gets; end + + # source://rack//lib/rack/rewindable_input.rb#40 + def read(*args); end + + # source://rack//lib/rack/rewindable_input.rb#50 + def rewind; end + + # source://rack//lib/rack/rewindable_input.rb#55 + def size; end + + private + + # @return [Boolean] + # + # source://rack//lib/rack/rewindable_input.rb#109 + def filesystem_has_posix_semantics?; end + + # source://rack//lib/rack/rewindable_input.rb#78 + def make_rewindable; end +end + +# Makes rack.input rewindable, for compatibility with applications and middleware +# designed for earlier versions of Rack (where rack.input was required to be +# rewindable). +# +# source://rack//lib/rack/rewindable_input.rb#18 +class Rack::RewindableInput::Middleware + # @return [Middleware] a new instance of Middleware + # + # source://rack//lib/rack/rewindable_input.rb#19 + def initialize(app); end + + # source://rack//lib/rack/rewindable_input.rb#23 + def call(env); end +end + +# Sets an "x-runtime" response header, indicating the response +# time of the request, in seconds +# +# You can put it right before the application to see the processing +# time, or before all the other middlewares to include time for them, +# too. +# +# source://rack//lib/rack/runtime.rb#12 +class Rack::Runtime + # @return [Runtime] a new instance of Runtime + # + # source://rack//lib/rack/runtime.rb#16 + def initialize(app, name = T.unsafe(nil)); end + + # source://rack//lib/rack/runtime.rb#22 + def call(env); end +end + +# source://rack//lib/rack/runtime.rb#13 +Rack::Runtime::FORMAT_STRING = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/runtime.rb#14 +Rack::Runtime::HEADER_NAME = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#11 +Rack::SCRIPT_NAME = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#14 +Rack::SERVER_NAME = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#15 +Rack::SERVER_PORT = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#13 +Rack::SERVER_PROTOCOL = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#24 +Rack::SET_COOKIE = T.let(T.unsafe(nil), String) + +# = Sendfile +# +# The Sendfile middleware intercepts responses whose body is being +# served from a file and replaces it with a server specific x-sendfile +# header. The web server is then responsible for writing the file contents +# to the client. This can dramatically reduce the amount of work required +# by the Ruby backend and takes advantage of the web server's optimized file +# delivery code. +# +# In order to take advantage of this middleware, the response body must +# respond to +to_path+ and the request must include an x-sendfile-type +# header. Rack::Files and other components implement +to_path+ so there's +# rarely anything you need to do in your application. The x-sendfile-type +# header is typically set in your web servers configuration. The following +# sections attempt to document +# +# === Nginx +# +# Nginx supports the x-accel-redirect header. This is similar to x-sendfile +# but requires parts of the filesystem to be mapped into a private URL +# hierarchy. +# +# The following example shows the Nginx configuration required to create +# a private "/files/" area, enable x-accel-redirect, and pass the special +# x-sendfile-type and x-accel-mapping headers to the backend: +# +# location ~ /files/(.*) { +# internal; +# alias /var/www/$1; +# } +# +# location / { +# proxy_redirect off; +# +# proxy_set_header Host $host; +# proxy_set_header X-Real-IP $remote_addr; +# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +# +# proxy_set_header x-sendfile-type x-accel-redirect; +# proxy_set_header x-accel-mapping /var/www/=/files/; +# +# proxy_pass http://127.0.0.1:8080/; +# } +# +# Note that the x-sendfile-type header must be set exactly as shown above. +# The x-accel-mapping header should specify the location on the file system, +# followed by an equals sign (=), followed name of the private URL pattern +# that it maps to. The middleware performs a simple substitution on the +# resulting path. +# +# See Also: https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile +# +# === lighttpd +# +# Lighttpd has supported some variation of the x-sendfile header for some +# time, although only recent version support x-sendfile in a reverse proxy +# configuration. +# +# $HTTP["host"] == "example.com" { +# proxy-core.protocol = "http" +# proxy-core.balancer = "round-robin" +# proxy-core.backends = ( +# "127.0.0.1:8000", +# "127.0.0.1:8001", +# ... +# ) +# +# proxy-core.allow-x-sendfile = "enable" +# proxy-core.rewrite-request = ( +# "x-sendfile-type" => (".*" => "x-sendfile") +# ) +# } +# +# See Also: http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModProxyCore +# +# === Apache +# +# x-sendfile is supported under Apache 2.x using a separate module: +# +# https://tn123.org/mod_xsendfile/ +# +# Once the module is compiled and installed, you can enable it using +# XSendFile config directive: +# +# RequestHeader Set x-sendfile-type x-sendfile +# ProxyPassReverse / http://localhost:8001/ +# XSendFile on +# +# === Mapping parameter +# +# The third parameter allows for an overriding extension of the +# x-accel-mapping header. Mappings should be provided in tuples of internal to +# external. The internal values may contain regular expression syntax, they +# will be matched with case indifference. +# +# source://rack//lib/rack/sendfile.rb#104 +class Rack::Sendfile + # @return [Sendfile] a new instance of Sendfile + # + # source://rack//lib/rack/sendfile.rb#105 + def initialize(app, variation = T.unsafe(nil), mappings = T.unsafe(nil)); end + + # source://rack//lib/rack/sendfile.rb#113 + def call(env); end + + private + + # source://rack//lib/rack/sendfile.rb#154 + def map_accel_path(env, path); end + + # source://rack//lib/rack/sendfile.rb#148 + def variation(env); end +end + +# Rack::ShowExceptions catches all exceptions raised from the app it +# wraps. It shows a useful backtrace with the sourcefile and +# clickable context, the whole Rack environment and the request +# data. +# +# Be careful when you use this on public-facing sites as it could +# reveal information helpful to attackers. +# +# source://rack//lib/rack/show_exceptions.rb#19 +class Rack::ShowExceptions + # @return [ShowExceptions] a new instance of ShowExceptions + # + # source://rack//lib/rack/show_exceptions.rb#22 + def initialize(app); end + + # source://rack//lib/rack/show_exceptions.rb#26 + def call(env); end + + # source://rack//lib/rack/show_exceptions.rb#61 + def dump_exception(exception); end + + # source://rack//lib/rack/show_exceptions.rb#112 + def h(obj); end + + # @return [Boolean] + # + # source://rack//lib/rack/show_exceptions.rb#52 + def prefers_plaintext?(env); end + + # source://rack//lib/rack/show_exceptions.rb#72 + def pretty(env, exception); end + + # source://rack//lib/rack/show_exceptions.rb#108 + def template; end + + private + + # @return [Boolean] + # + # source://rack//lib/rack/show_exceptions.rb#56 + def accepts_html?(env); end +end + +# source://rack//lib/rack/show_exceptions.rb#20 +Rack::ShowExceptions::CONTEXT = T.let(T.unsafe(nil), Integer) + +# source://rack//lib/rack/show_exceptions.rb#127 +Rack::ShowExceptions::TEMPLATE = T.let(T.unsafe(nil), ERB) + +# Rack::ShowStatus catches all empty responses and replaces them +# with a site explaining the error. +# +# Additional details can be put into rack.showstatus.detail +# and will be shown as HTML. If such details exist, the error page +# is always rendered, even if the reply was not empty. +# +# source://rack//lib/rack/show_status.rb#18 +class Rack::ShowStatus + # @return [ShowStatus] a new instance of ShowStatus + # + # source://rack//lib/rack/show_status.rb#19 + def initialize(app); end + + # source://rack//lib/rack/show_status.rb#24 + def call(env); end + + # source://rack//lib/rack/show_status.rb#54 + def h(obj); end +end + +# source://rack//lib/rack/show_status.rb#69 +Rack::ShowStatus::TEMPLATE = T.let(T.unsafe(nil), String) + +# The Rack::Static middleware intercepts requests for static files +# (javascript files, images, stylesheets, etc) based on the url prefixes or +# route mappings passed in the options, and serves them using a Rack::Files +# object. This allows a Rack stack to serve both static and dynamic content. +# +# Examples: +# +# Serve all requests beginning with /media from the "media" folder located +# in the current directory (ie media/*): +# +# use Rack::Static, :urls => ["/media"] +# +# Same as previous, but instead of returning 404 for missing files under +# /media, call the next middleware: +# +# use Rack::Static, :urls => ["/media"], :cascade => true +# +# Serve all requests beginning with /css or /images from the folder "public" +# in the current directory (ie public/css/* and public/images/*): +# +# use Rack::Static, :urls => ["/css", "/images"], :root => "public" +# +# Serve all requests to / with "index.html" from the folder "public" in the +# current directory (ie public/index.html): +# +# use Rack::Static, :urls => {"/" => 'index.html'}, :root => 'public' +# +# Serve all requests normally from the folder "public" in the current +# directory but uses index.html as default route for "/" +# +# use Rack::Static, :urls => [""], :root => 'public', :index => +# 'index.html' +# +# Set custom HTTP Headers for based on rules: +# +# use Rack::Static, :root => 'public', +# :header_rules => [ +# [rule, {header_field => content, header_field => content}], +# [rule, {header_field => content}] +# ] +# +# Rules for selecting files: +# +# 1) All files +# Provide the :all symbol +# :all => Matches every file +# +# 2) Folders +# Provide the folder path as a string +# '/folder' or '/folder/subfolder' => Matches files in a certain folder +# +# 3) File Extensions +# Provide the file extensions as an array +# ['css', 'js'] or %w(css js) => Matches files ending in .css or .js +# +# 4) Regular Expressions / Regexp +# Provide a regular expression +# %r{\.(?:css|js)\z} => Matches files ending in .css or .js +# /\.(?:eot|ttf|otf|woff2|woff|svg)\z/ => Matches files ending in +# the most common web font formats (.eot, .ttf, .otf, .woff2, .woff, .svg) +# Note: This Regexp is available as a shortcut, using the :fonts rule +# +# 5) Font Shortcut +# Provide the :fonts symbol +# :fonts => Uses the Regexp rule stated right above to match all common web font endings +# +# Rule Ordering: +# Rules are applied in the order that they are provided. +# List rather general rules above special ones. +# +# Complete example use case including HTTP header rules: +# +# use Rack::Static, :root => 'public', +# :header_rules => [ +# # Cache all static files in public caches (e.g. Rack::Cache) +# # as well as in the browser +# [:all, {'cache-control' => 'public, max-age=31536000'}], +# +# # Provide web fonts with cross-origin access-control-headers +# # Firefox requires this when serving assets using a Content Delivery Network +# [:fonts, {'access-control-allow-origin' => '*'}] +# ] +# +# source://rack//lib/rack/static.rb#92 +class Rack::Static + # @return [Static] a new instance of Static + # + # source://rack//lib/rack/static.rb#93 + def initialize(app, options = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rack//lib/rack/static.rb#109 + def add_index_root?(path); end + + # Convert HTTP header rules to HTTP headers + # + # source://rack//lib/rack/static.rb#166 + def applicable_rules(path); end + + # source://rack//lib/rack/static.rb#125 + def call(env); end + + # source://rack//lib/rack/static.rb#121 + def can_serve(path); end + + # source://rack//lib/rack/static.rb#113 + def overwrite_file_path(path); end + + # source://rack//lib/rack/static.rb#117 + def route_file(path); end +end + +# source://rack//lib/rack/constants.rb#37 +Rack::TRACE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#25 +Rack::TRANSFER_ENCODING = T.let(T.unsafe(nil), String) + +# Middleware tracks and cleans Tempfiles created throughout a request (i.e. Rack::Multipart) +# Ideas/strategy based on posts by Eric Wong and Charles Oliver Nutter +# https://groups.google.com/forum/#!searchin/rack-devel/temp/rack-devel/brK8eh-MByw/sw61oJJCGRMJ +# +# source://rack//lib/rack/tempfile_reaper.rb#11 +class Rack::TempfileReaper + # @return [TempfileReaper] a new instance of TempfileReaper + # + # source://rack//lib/rack/tempfile_reaper.rb#12 + def initialize(app); end + + # source://rack//lib/rack/tempfile_reaper.rb#16 + def call(env); end +end + +# source://rack//lib/rack/constants.rb#36 +Rack::UNLINK = T.let(T.unsafe(nil), String) + +# Rack::URLMap takes a hash mapping urls or paths to apps, and +# dispatches accordingly. Support for HTTP/1.1 host names exists if +# the URLs start with http:// or https://. +# +# URLMap modifies the SCRIPT_NAME and PATH_INFO such that the part +# relevant for dispatch is in the SCRIPT_NAME, and the rest in the +# PATH_INFO. This should be taken care of when you need to +# reconstruct the URL in order to create links. +# +# URLMap dispatches in such a way that the longest paths are tried +# first, since they are most specific. +# +# source://rack//lib/rack/urlmap.rb#20 +class Rack::URLMap + # @return [URLMap] a new instance of URLMap + # + # source://rack//lib/rack/urlmap.rb#21 + def initialize(map = T.unsafe(nil)); end + + # source://rack//lib/rack/urlmap.rb#48 + def call(env); end + + # source://rack//lib/rack/urlmap.rb#25 + def remap(map); end + + private + + # @return [Boolean] + # + # source://rack//lib/rack/urlmap.rb#87 + def casecmp?(v1, v2); end +end + +# Rack::Utils contains a grab-bag of useful methods for writing web +# applications adopted from all kinds of Ruby libraries. +# +# source://rack//lib/rack/utils.rb#19 +module Rack::Utils + private + + # source://rack//lib/rack/utils.rb#254 + def add_cookie_to_header(header, key, value); end + + # source://rack//lib/rack/utils.rb#389 + def add_remove_cookie_to_header(header, key, value = T.unsafe(nil)); end + + # Return best accept value to use, based on the algorithm + # in RFC 2616 Section 14. If there are multiple best + # matches (same specificity and quality), the value returned + # is arbitrary. + # + # source://rack//lib/rack/utils.rb#173 + def best_q_match(q_value_header, available_mimes); end + + # source://rack//lib/rack/utils.rb#127 + def build_nested_query(value, prefix = T.unsafe(nil)); end + + # source://rack//lib/rack/utils.rb#117 + def build_query(params); end + + # Parses the "Range:" header, if present, into an array of Range objects. + # Returns nil if the header is missing or syntactically invalid. + # Returns an empty array if none of the ranges are satisfiable. + # + # source://rack//lib/rack/utils.rb#431 + def byte_ranges(env, size); end + + # source://rack//lib/rack/utils.rb#632 + def clean_path_info(path_info); end + + # :nocov: + # + # source://rack//lib/rack/utils.rb#98 + def clock_time; end + + # source://rack//lib/rack/utils.rb#383 + def delete_cookie_header!(headers, key, value = T.unsafe(nil)); end + + # :call-seq: + # delete_set_cookie_header(key, value = {}) -> encoded string + # + # Generate an encoded string based on the given +key+ and +value+ using + # set_cookie_header for the purpose of causing the specified cookie to be + # deleted. The +value+ may be an instance of +Hash+ and can include + # attributes as outlined by set_cookie_header. The encoded cookie will have + # a +max_age+ of 0 seconds, an +expires+ date in the past and an empty + # +value+. When used with the +set-cookie+ header, it will cause the client + # to *remove* any matching cookie. + # + # delete_set_cookie_header("myname") + # # => "myname=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" + # + # source://rack//lib/rack/utils.rb#373 + def delete_set_cookie_header(key, value = T.unsafe(nil)); end + + # :call-seq: + # delete_set_cookie_header!(header, key, value = {}) -> header value + # + # Set an expired cookie in the specified headers with the given cookie + # +key+ and +value+ using delete_set_cookie_header. This causes + # the client to immediately delete the specified cookie. + # + # delete_set_cookie_header!(nil, "mycookie") + # # => "mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" + # + # If the header is non-nil, it will be modified in place. + # + # header = [] + # delete_set_cookie_header!(header, "mycookie") + # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] + # header + # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] + # + # source://rack//lib/rack/utils.rb#413 + def delete_set_cookie_header!(header, key, value = T.unsafe(nil)); end + + # URI escapes. (CGI style space to +) + # + # source://rack//lib/rack/utils.rb#38 + def escape(s); end + + # Escape ampersands, brackets and quotes to their HTML/XML entities. + # + # source://rack//lib/rack/utils.rb#198 + def escape_html(string); end + + # Like URI escaping, but with %20 instead of +. Strictly speaking this is + # true URI escaping. + # + # source://rack//lib/rack/utils.rb#44 + def escape_path(s); end + + # source://rack//lib/rack/utils.rb#156 + def forwarded_values(forwarded_header); end + + # source://rack//lib/rack/utils.rb#435 + def get_byte_ranges(http_range, size); end + + # source://rack//lib/rack/utils.rb#377 + def make_delete_cookie_header(header, key, value); end + + # :call-seq: + # parse_cookies(env) -> hash + # + # Parse cookies from the provided request environment using + # parse_cookies_header. Returns a map of cookie +key+ to cookie +value+. + # + # parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'}) + # # => {'myname' => 'myvalue'} + # + # source://rack//lib/rack/utils.rb#278 + def parse_cookies(env); end + + # :call-seq: + # parse_cookies_header(value) -> hash + # + # Parse cookies from the provided header +value+ according to RFC6265. The + # syntax for cookie headers only supports semicolons. Returns a map of + # cookie +key+ to cookie +value+. + # + # parse_cookies_header('myname=myvalue; max-age=0') + # # => {"myname"=>"myvalue", "max-age"=>"0"} + # + # source://rack//lib/rack/utils.rb#244 + def parse_cookies_header(value); end + + # source://rack//lib/rack/utils.rb#113 + def parse_nested_query(qs, d = T.unsafe(nil)); end + + # source://rack//lib/rack/utils.rb#109 + def parse_query(qs, d = T.unsafe(nil), &unescaper); end + + # source://rack//lib/rack/utils.rb#145 + def q_values(q_value_header); end + + # source://rack//lib/rack/utils.rb#424 + def rfc2822(time); end + + # :nocov: + # + # source://rack//lib/rack/utils.rb#472 + def secure_compare(a, b); end + + # source://rack//lib/rack/utils.rb#202 + def select_best_encoding(available_encodings, accept_encoding); end + + # :call-seq: + # set_cookie_header(key, value) -> encoded string + # + # Generate an encoded string using the provided +key+ and +value+ suitable + # for the +set-cookie+ header according to RFC6265. The +value+ may be an + # instance of either +String+ or +Hash+. + # + # If the cookie +value+ is an instance of +Hash+, it considers the following + # cookie attribute keys: +domain+, +max_age+, +expires+ (must be instance + # of +Time+), +secure+, +http_only+, +same_site+ and +value+. For more + # details about the interpretation of these fields, consult + # [RFC6265 Section 5.2](https://datatracker.ietf.org/doc/html/rfc6265#section-5.2). + # + # An extra cookie attribute +escape_key+ can be provided to control whether + # or not the cookie key is URL encoded. If explicitly set to +false+, the + # cookie key name will not be url encoded (escaped). The default is +true+. + # + # set_cookie_header("myname", "myvalue") + # # => "myname=myvalue" + # + # set_cookie_header("myname", {value: "myvalue", max_age: 10}) + # # => "myname=myvalue; max-age=10" + # + # source://rack//lib/rack/utils.rb#305 + def set_cookie_header(key, value); end + + # :call-seq: + # set_cookie_header!(headers, key, value) -> header value + # + # Append a cookie in the specified headers with the given cookie +key+ and + # +value+ using set_cookie_header. + # + # If the headers already contains a +set-cookie+ key, it will be converted + # to an +Array+ if not already, and appended to. + # + # source://rack//lib/rack/utils.rb#347 + def set_cookie_header!(headers, key, value); end + + # source://rack//lib/rack/utils.rb#622 + def status_code(status); end + + # Unescapes a URI escaped string with +encoding+. +encoding+ will be the + # target encoding of the string returned, and it defaults to UTF-8 + # + # source://rack//lib/rack/utils.rb#56 + def unescape(s, encoding = T.unsafe(nil)); end + + # Unescapes the **path** component of a URI. See Rack::Utils.unescape for + # unescaping query parameters or form components. + # + # source://rack//lib/rack/utils.rb#50 + def unescape_path(s); end + + # source://rack//lib/rack/utils.rb#649 + def valid_path?(path); end + + class << self + # source://rack//lib/rack/utils.rb#254 + def add_cookie_to_header(header, key, value); end + + # source://rack//lib/rack/utils.rb#389 + def add_remove_cookie_to_header(header, key, value = T.unsafe(nil)); end + + # Return best accept value to use, based on the algorithm + # in RFC 2616 Section 14. If there are multiple best + # matches (same specificity and quality), the value returned + # is arbitrary. + # + # source://rack//lib/rack/utils.rb#173 + def best_q_match(q_value_header, available_mimes); end + + # source://rack//lib/rack/utils.rb#127 + def build_nested_query(value, prefix = T.unsafe(nil)); end + + # source://rack//lib/rack/utils.rb#117 + def build_query(params); end + + # Parses the "Range:" header, if present, into an array of Range objects. + # Returns nil if the header is missing or syntactically invalid. + # Returns an empty array if none of the ranges are satisfiable. + # + # source://rack//lib/rack/utils.rb#431 + def byte_ranges(env, size); end + + # source://rack//lib/rack/utils.rb#632 + def clean_path_info(path_info); end + + # source://rack//lib/rack/utils.rb#98 + def clock_time; end + + # Returns the value of attribute default_query_parser. + # + # source://rack//lib/rack/utils.rb#28 + def default_query_parser; end + + # Sets the attribute default_query_parser + # + # @param value the value to set the attribute default_query_parser to. + # + # source://rack//lib/rack/utils.rb#28 + def default_query_parser=(_arg0); end + + # source://rack//lib/rack/utils.rb#383 + def delete_cookie_header!(headers, key, value = T.unsafe(nil)); end + + # :call-seq: + # delete_set_cookie_header(key, value = {}) -> encoded string + # + # Generate an encoded string based on the given +key+ and +value+ using + # set_cookie_header for the purpose of causing the specified cookie to be + # deleted. The +value+ may be an instance of +Hash+ and can include + # attributes as outlined by set_cookie_header. The encoded cookie will have + # a +max_age+ of 0 seconds, an +expires+ date in the past and an empty + # +value+. When used with the +set-cookie+ header, it will cause the client + # to *remove* any matching cookie. + # + # delete_set_cookie_header("myname") + # # => "myname=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" + # + # source://rack//lib/rack/utils.rb#373 + def delete_set_cookie_header(key, value = T.unsafe(nil)); end + + # :call-seq: + # delete_set_cookie_header!(header, key, value = {}) -> header value + # + # Set an expired cookie in the specified headers with the given cookie + # +key+ and +value+ using delete_set_cookie_header. This causes + # the client to immediately delete the specified cookie. + # + # delete_set_cookie_header!(nil, "mycookie") + # # => "mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" + # + # If the header is non-nil, it will be modified in place. + # + # header = [] + # delete_set_cookie_header!(header, "mycookie") + # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] + # header + # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] + # + # source://rack//lib/rack/utils.rb#413 + def delete_set_cookie_header!(header, key, value = T.unsafe(nil)); end + + # URI escapes. (CGI style space to +) + # + # source://rack//lib/rack/utils.rb#38 + def escape(s); end + + # Escape ampersands, brackets and quotes to their HTML/XML entities. + # + # source://rack//lib/rack/utils.rb#198 + def escape_html(string); end + + # Like URI escaping, but with %20 instead of +. Strictly speaking this is + # true URI escaping. + # + # source://rack//lib/rack/utils.rb#44 + def escape_path(s); end + + # source://rack//lib/rack/utils.rb#156 + def forwarded_values(forwarded_header); end + + # source://rack//lib/rack/utils.rb#435 + def get_byte_ranges(http_range, size); end + + # source://rack//lib/rack/utils.rb#88 + def key_space_limit; end + + # source://rack//lib/rack/utils.rb#93 + def key_space_limit=(v); end + + # source://rack//lib/rack/utils.rb#377 + def make_delete_cookie_header(header, key, value); end + + # Returns the value of attribute multipart_file_limit. + # + # source://rack//lib/rack/utils.rb#63 + def multipart_file_limit; end + + # Sets the attribute multipart_file_limit + # + # @param value the value to set the attribute multipart_file_limit to. + # + # source://rack//lib/rack/utils.rb#63 + def multipart_file_limit=(_arg0); end + + # Returns the value of attribute multipart_file_limit. + # multipart_part_limit is the original name of multipart_file_limit, but + # the limit only counts parts with filenames. + # + # source://rack//lib/rack/utils.rb#63 + def multipart_part_limit; end + + # Sets the attribute multipart_file_limit + # + # @param value the value to set the attribute multipart_file_limit to. + # + # source://rack//lib/rack/utils.rb#63 + def multipart_part_limit=(_arg0); end + + # Returns the value of attribute multipart_total_part_limit. + # + # source://rack//lib/rack/utils.rb#61 + def multipart_total_part_limit; end + + # Sets the attribute multipart_total_part_limit + # + # @param value the value to set the attribute multipart_total_part_limit to. + # + # source://rack//lib/rack/utils.rb#61 + def multipart_total_part_limit=(_arg0); end + + # source://rack//lib/rack/utils.rb#80 + def param_depth_limit; end + + # source://rack//lib/rack/utils.rb#84 + def param_depth_limit=(v); end + + # :call-seq: + # parse_cookies(env) -> hash + # + # Parse cookies from the provided request environment using + # parse_cookies_header. Returns a map of cookie +key+ to cookie +value+. + # + # parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'}) + # # => {'myname' => 'myvalue'} + # + # source://rack//lib/rack/utils.rb#278 + def parse_cookies(env); end + + # :call-seq: + # parse_cookies_header(value) -> hash + # + # Parse cookies from the provided header +value+ according to RFC6265. The + # syntax for cookie headers only supports semicolons. Returns a map of + # cookie +key+ to cookie +value+. + # + # parse_cookies_header('myname=myvalue; max-age=0') + # # => {"myname"=>"myvalue", "max-age"=>"0"} + # + # source://rack//lib/rack/utils.rb#244 + def parse_cookies_header(value); end + + # source://rack//lib/rack/utils.rb#113 + def parse_nested_query(qs, d = T.unsafe(nil)); end + + # source://rack//lib/rack/utils.rb#109 + def parse_query(qs, d = T.unsafe(nil), &unescaper); end + + # source://rack//lib/rack/utils.rb#145 + def q_values(q_value_header); end + + # source://rack//lib/rack/utils.rb#424 + def rfc2822(time); end + + # source://rack//lib/rack/utils.rb#472 + def secure_compare(a, b); end + + # source://rack//lib/rack/utils.rb#202 + def select_best_encoding(available_encodings, accept_encoding); end + + # :call-seq: + # set_cookie_header(key, value) -> encoded string + # + # Generate an encoded string using the provided +key+ and +value+ suitable + # for the +set-cookie+ header according to RFC6265. The +value+ may be an + # instance of either +String+ or +Hash+. + # + # If the cookie +value+ is an instance of +Hash+, it considers the following + # cookie attribute keys: +domain+, +max_age+, +expires+ (must be instance + # of +Time+), +secure+, +http_only+, +same_site+ and +value+. For more + # details about the interpretation of these fields, consult + # [RFC6265 Section 5.2](https://datatracker.ietf.org/doc/html/rfc6265#section-5.2). + # + # An extra cookie attribute +escape_key+ can be provided to control whether + # or not the cookie key is URL encoded. If explicitly set to +false+, the + # cookie key name will not be url encoded (escaped). The default is +true+. + # + # set_cookie_header("myname", "myvalue") + # # => "myname=myvalue" + # + # set_cookie_header("myname", {value: "myvalue", max_age: 10}) + # # => "myname=myvalue; max-age=10" + # + # source://rack//lib/rack/utils.rb#305 + def set_cookie_header(key, value); end + + # :call-seq: + # set_cookie_header!(headers, key, value) -> header value + # + # Append a cookie in the specified headers with the given cookie +key+ and + # +value+ using set_cookie_header. + # + # If the headers already contains a +set-cookie+ key, it will be converted + # to an +Array+ if not already, and appended to. + # + # source://rack//lib/rack/utils.rb#347 + def set_cookie_header!(headers, key, value); end + + # source://rack//lib/rack/utils.rb#622 + def status_code(status); end + + # Unescapes a URI escaped string with +encoding+. +encoding+ will be the + # target encoding of the string returned, and it defaults to UTF-8 + # + # source://rack//lib/rack/utils.rb#56 + def unescape(s, encoding = T.unsafe(nil)); end + + # Unescapes the **path** component of a URI. See Rack::Utils.unescape for + # unescaping query parameters or form components. + # + # source://rack//lib/rack/utils.rb#50 + def unescape_path(s); end + + # @return [Boolean] + # + # source://rack//lib/rack/utils.rb#649 + def valid_path?(path); end + end +end + +# source://rack//lib/rack/utils.rb#24 +Rack::Utils::COMMON_SEP = T.let(T.unsafe(nil), Hash) + +# Context allows the use of a compatible middleware at different points +# in a request handling stack. A compatible middleware must define +# #context which should take the arguments env and app. The first of which +# would be the request environment. The second of which would be the rack +# application that the request would be forwarded to. +# +# source://rack//lib/rack/utils.rb#495 +class Rack::Utils::Context + # @return [Context] a new instance of Context + # + # source://rack//lib/rack/utils.rb#498 + def initialize(app_f, app_r); end + + # Returns the value of attribute app. + # + # source://rack//lib/rack/utils.rb#496 + def app; end + + # source://rack//lib/rack/utils.rb#503 + def call(env); end + + # source://rack//lib/rack/utils.rb#511 + def context(env, app = T.unsafe(nil)); end + + # Returns the value of attribute for. + # + # source://rack//lib/rack/utils.rb#496 + def for; end + + # source://rack//lib/rack/utils.rb#507 + def recontext(app); end +end + +# source://rack//lib/rack/utils.rb#23 +Rack::Utils::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/utils.rb#186 +Rack::Utils::ESCAPE_HTML = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/utils.rb#195 +Rack::Utils::ESCAPE_HTML_PATTERN = T.let(T.unsafe(nil), Regexp) + +# Every standard HTTP code mapped to the appropriate message. +# Generated with: +# curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv | \ +# ruby -ne 'm = /^(\d{3}),(?!Unassigned|\(Unused\))([^,]+)/.match($_) and \ +# puts "#{m[1]} => \x27#{m[2].strip}\x27,"' +# +# source://rack//lib/rack/utils.rb#549 +Rack::Utils::HTTP_STATUS_CODES = T.let(T.unsafe(nil), Hash) + +# A wrapper around Headers +# header when set. +# +# @api private +# +# source://rack//lib/rack/utils.rb#520 +class Rack::Utils::HeaderHash < ::Hash + class << self + # @api private + # + # source://rack//lib/rack/utils.rb#521 + def [](headers); end + + # @api private + # @raise [TypeError] + # + # source://rack//lib/rack/utils.rb#539 + def allocate; end + + # @api private + # + # source://rack//lib/rack/utils.rb#532 + def new(hash = T.unsafe(nil)); end + end +end + +# source://rack//lib/rack/utils.rb#21 +Rack::Utils::InvalidParameterError = Rack::QueryParser::InvalidParameterError + +# source://rack//lib/rack/utils.rb#25 +Rack::Utils::KeySpaceConstrainedParams = Rack::QueryParser::Params + +# source://rack//lib/rack/utils.rb#647 +Rack::Utils::NULL_BYTE = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/utils.rb#630 +Rack::Utils::PATH_SEPS = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/utils.rb#20 +Rack::Utils::ParameterTypeError = Rack::QueryParser::ParameterTypeError + +# source://rack//lib/rack/utils.rb#22 +Rack::Utils::ParamsTooDeepError = Rack::QueryParser::ParamsTooDeepError + +# Responses with HTTP status codes that should not have an entity body +# +# source://rack//lib/rack/utils.rb#616 +Rack::Utils::STATUS_WITH_NO_ENTITY_BODY = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/utils.rb#618 +Rack::Utils::SYMBOL_TO_STATUS_CODE = T.let(T.unsafe(nil), Hash) + +# The Rack protocol version number implemented. +# +# source://rack//lib/rack/version.rb#16 +Rack::VERSION = T.let(T.unsafe(nil), Array) + +# source://rack//lib/rack/version.rb#19 +Rack::VERSION_STRING = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/rainbow@3.1.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/rainbow@3.1.1.rbi new file mode 100755 index 000000000..87f4c33ef --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rainbow@3.1.1.rbi @@ -0,0 +1,402 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rainbow` gem. +# Please instead update this file by running `bin/tapioca gem rainbow`. + +class Object < ::BasicObject + include ::Kernel + include ::PP::ObjectMixin + + private + + # source://rainbow//lib/rainbow/global.rb#23 + def Rainbow(string); end +end + +# source://rainbow//lib/rainbow/string_utils.rb#3 +module Rainbow + class << self + # source://rainbow//lib/rainbow/global.rb#10 + def enabled; end + + # source://rainbow//lib/rainbow/global.rb#14 + def enabled=(value); end + + # source://rainbow//lib/rainbow/global.rb#6 + def global; end + + # source://rainbow//lib/rainbow.rb#6 + def new; end + + # source://rainbow//lib/rainbow/global.rb#18 + def uncolor(string); end + end +end + +# source://rainbow//lib/rainbow/color.rb#4 +class Rainbow::Color + # Returns the value of attribute ground. + # + # source://rainbow//lib/rainbow/color.rb#5 + def ground; end + + class << self + # source://rainbow//lib/rainbow/color.rb#7 + def build(ground, values); end + + # source://rainbow//lib/rainbow/color.rb#40 + def parse_hex_color(hex); end + end +end + +# source://rainbow//lib/rainbow/color.rb#54 +class Rainbow::Color::Indexed < ::Rainbow::Color + # @return [Indexed] a new instance of Indexed + # + # source://rainbow//lib/rainbow/color.rb#57 + def initialize(ground, num); end + + # source://rainbow//lib/rainbow/color.rb#62 + def codes; end + + # Returns the value of attribute num. + # + # source://rainbow//lib/rainbow/color.rb#55 + def num; end +end + +# source://rainbow//lib/rainbow/color.rb#69 +class Rainbow::Color::Named < ::Rainbow::Color::Indexed + # @return [Named] a new instance of Named + # + # source://rainbow//lib/rainbow/color.rb#90 + def initialize(ground, name); end + + class << self + # source://rainbow//lib/rainbow/color.rb#82 + def color_names; end + + # source://rainbow//lib/rainbow/color.rb#86 + def valid_names; end + end +end + +# source://rainbow//lib/rainbow/color.rb#70 +Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash) + +# source://rainbow//lib/rainbow/color.rb#100 +class Rainbow::Color::RGB < ::Rainbow::Color::Indexed + # @return [RGB] a new instance of RGB + # + # source://rainbow//lib/rainbow/color.rb#107 + def initialize(ground, *values); end + + # Returns the value of attribute b. + # + # source://rainbow//lib/rainbow/color.rb#101 + def b; end + + # source://rainbow//lib/rainbow/color.rb#116 + def codes; end + + # Returns the value of attribute g. + # + # source://rainbow//lib/rainbow/color.rb#101 + def g; end + + # Returns the value of attribute r. + # + # source://rainbow//lib/rainbow/color.rb#101 + def r; end + + private + + # source://rainbow//lib/rainbow/color.rb#122 + def code_from_rgb; end + + class << self + # source://rainbow//lib/rainbow/color.rb#103 + def to_ansi_domain(value); end + end +end + +# source://rainbow//lib/rainbow/color.rb#129 +class Rainbow::Color::X11Named < ::Rainbow::Color::RGB + include ::Rainbow::X11ColorNames + + # @return [X11Named] a new instance of X11Named + # + # source://rainbow//lib/rainbow/color.rb#140 + def initialize(ground, name); end + + class << self + # source://rainbow//lib/rainbow/color.rb#132 + def color_names; end + + # source://rainbow//lib/rainbow/color.rb#136 + def valid_names; end + end +end + +# source://rainbow//lib/rainbow/null_presenter.rb#4 +class Rainbow::NullPresenter < ::String + # source://rainbow//lib/rainbow/null_presenter.rb#9 + def background(*_values); end + + # source://rainbow//lib/rainbow/null_presenter.rb#9 + def bg(*_values); end + + # source://rainbow//lib/rainbow/null_presenter.rb#49 + def black; end + + # source://rainbow//lib/rainbow/null_presenter.rb#33 + def blink; end + + # source://rainbow//lib/rainbow/null_presenter.rb#65 + def blue; end + + # source://rainbow//lib/rainbow/null_presenter.rb#17 + def bold; end + + # source://rainbow//lib/rainbow/null_presenter.rb#17 + def bright; end + + # source://rainbow//lib/rainbow/null_presenter.rb#5 + def color(*_values); end + + # source://rainbow//lib/rainbow/null_presenter.rb#45 + def cross_out; end + + # source://rainbow//lib/rainbow/null_presenter.rb#73 + def cyan; end + + # source://rainbow//lib/rainbow/null_presenter.rb#21 + def dark; end + + # source://rainbow//lib/rainbow/null_presenter.rb#21 + def faint; end + + # source://rainbow//lib/rainbow/null_presenter.rb#5 + def fg(*_values); end + + # source://rainbow//lib/rainbow/null_presenter.rb#5 + def foreground(*_values); end + + # source://rainbow//lib/rainbow/null_presenter.rb#57 + def green; end + + # source://rainbow//lib/rainbow/null_presenter.rb#41 + def hide; end + + # source://rainbow//lib/rainbow/null_presenter.rb#37 + def inverse; end + + # source://rainbow//lib/rainbow/null_presenter.rb#25 + def italic; end + + # source://rainbow//lib/rainbow/null_presenter.rb#69 + def magenta; end + + # source://rainbow//lib/rainbow/null_presenter.rb#81 + def method_missing(method_name, *args); end + + # source://rainbow//lib/rainbow/null_presenter.rb#53 + def red; end + + # source://rainbow//lib/rainbow/null_presenter.rb#13 + def reset; end + + # source://rainbow//lib/rainbow/null_presenter.rb#45 + def strike; end + + # source://rainbow//lib/rainbow/null_presenter.rb#29 + def underline; end + + # source://rainbow//lib/rainbow/null_presenter.rb#77 + def white; end + + # source://rainbow//lib/rainbow/null_presenter.rb#61 + def yellow; end + + private + + # @return [Boolean] + # + # source://rainbow//lib/rainbow/null_presenter.rb#89 + def respond_to_missing?(method_name, *args); end +end + +# source://rainbow//lib/rainbow/presenter.rb#8 +class Rainbow::Presenter < ::String + # Sets background color of this text. + # + # source://rainbow//lib/rainbow/presenter.rb#30 + def background(*values); end + + # Sets background color of this text. + # + # source://rainbow//lib/rainbow/presenter.rb#30 + def bg(*values); end + + # source://rainbow//lib/rainbow/presenter.rb#92 + def black; end + + # Turns on blinking attribute for this text (not well supported by terminal + # emulators). + # + # source://rainbow//lib/rainbow/presenter.rb#72 + def blink; end + + # source://rainbow//lib/rainbow/presenter.rb#108 + def blue; end + + # Turns on bright/bold for this text. + # + # source://rainbow//lib/rainbow/presenter.rb#45 + def bold; end + + # Turns on bright/bold for this text. + # + # source://rainbow//lib/rainbow/presenter.rb#45 + def bright; end + + # Sets color of this text. + # + # source://rainbow//lib/rainbow/presenter.rb#22 + def color(*values); end + + # source://rainbow//lib/rainbow/presenter.rb#86 + def cross_out; end + + # source://rainbow//lib/rainbow/presenter.rb#116 + def cyan; end + + # Turns on faint/dark for this text (not well supported by terminal + # emulators). + # + # source://rainbow//lib/rainbow/presenter.rb#53 + def dark; end + + # Turns on faint/dark for this text (not well supported by terminal + # emulators). + # + # source://rainbow//lib/rainbow/presenter.rb#53 + def faint; end + + # Sets color of this text. + # + # source://rainbow//lib/rainbow/presenter.rb#22 + def fg(*values); end + + # Sets color of this text. + # + # source://rainbow//lib/rainbow/presenter.rb#22 + def foreground(*values); end + + # source://rainbow//lib/rainbow/presenter.rb#100 + def green; end + + # Hides this text (set its color to the same as background). + # + # source://rainbow//lib/rainbow/presenter.rb#82 + def hide; end + + # Inverses current foreground/background colors. + # + # source://rainbow//lib/rainbow/presenter.rb#77 + def inverse; end + + # Turns on italic style for this text (not well supported by terminal + # emulators). + # + # source://rainbow//lib/rainbow/presenter.rb#61 + def italic; end + + # source://rainbow//lib/rainbow/presenter.rb#112 + def magenta; end + + # We take care of X11 color method call here. + # Such as #aqua, #ghostwhite. + # + # source://rainbow//lib/rainbow/presenter.rb#126 + def method_missing(method_name, *args); end + + # source://rainbow//lib/rainbow/presenter.rb#96 + def red; end + + # Resets terminal to default colors/backgrounds. + # + # It shouldn't be needed to use this method because all methods + # append terminal reset code to end of string. + # + # source://rainbow//lib/rainbow/presenter.rb#40 + def reset; end + + # source://rainbow//lib/rainbow/presenter.rb#86 + def strike; end + + # Turns on underline decoration for this text. + # + # source://rainbow//lib/rainbow/presenter.rb#66 + def underline; end + + # source://rainbow//lib/rainbow/presenter.rb#120 + def white; end + + # source://rainbow//lib/rainbow/presenter.rb#104 + def yellow; end + + private + + # @return [Boolean] + # + # source://rainbow//lib/rainbow/presenter.rb#134 + def respond_to_missing?(method_name, *args); end + + # source://rainbow//lib/rainbow/presenter.rb#140 + def wrap_with_sgr(codes); end +end + +# source://rainbow//lib/rainbow/presenter.rb#9 +Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash) + +# source://rainbow//lib/rainbow/string_utils.rb#4 +class Rainbow::StringUtils + class << self + # source://rainbow//lib/rainbow/string_utils.rb#17 + def uncolor(string); end + + # source://rainbow//lib/rainbow/string_utils.rb#5 + def wrap_with_sgr(string, codes); end + end +end + +# source://rainbow//lib/rainbow/wrapper.rb#7 +class Rainbow::Wrapper + # @return [Wrapper] a new instance of Wrapper + # + # source://rainbow//lib/rainbow/wrapper.rb#10 + def initialize(enabled = T.unsafe(nil)); end + + # Returns the value of attribute enabled. + # + # source://rainbow//lib/rainbow/wrapper.rb#8 + def enabled; end + + # Sets the attribute enabled + # + # @param value the value to set the attribute enabled to. + # + # source://rainbow//lib/rainbow/wrapper.rb#8 + def enabled=(_arg0); end + + # source://rainbow//lib/rainbow/wrapper.rb#14 + def wrap(string); end +end + +# source://rainbow//lib/rainbow/x11_color_names.rb#4 +module Rainbow::X11ColorNames; end + +# source://rainbow//lib/rainbow/x11_color_names.rb#5 +Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash) diff --git a/ruby-client-sdk/sorbet/rbi/gems/rake@13.0.6.rbi b/ruby-client-sdk/sorbet/rbi/gems/rake@13.0.6.rbi new file mode 100755 index 000000000..0202f06dc --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rake@13.0.6.rbi @@ -0,0 +1,3024 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rake` gem. +# Please instead update this file by running `bin/tapioca gem rake`. + +# :stopdoc: +# +# Some top level Constants. +# +# source://rake//lib/rake.rb#70 +FileList = Rake::FileList + +# -- +# This a FileUtils extension that defines several additional commands to be +# added to the FileUtils utility functions. +# +# source://rake//lib/rake/file_utils.rb#8 +module FileUtils + # Run a Ruby interpreter with the given arguments. + # + # Example: + # ruby %{-pe '$_.upcase!' ; rm # -rf /. + # + # If a block is given, upon command completion the block is called with an + # OK flag (true on a zero exit status) and a Process::Status object. + # Without a block a RuntimeError is raised when the command exits non-zero. + # + # Examples: + # + # sh 'ls -ltr' + # + # sh 'ls', 'file with spaces' + # + # # check exit status after command runs + # sh %{grep pattern file} do |ok, res| + # if !ok + # puts "pattern not found (status = #{res.exitstatus})" + # end + # end + # + # source://rake//lib/rake/file_utils.rb#43 + def sh(*cmd, &block); end + + # Split a file path into individual directory names. + # + # Example: + # split_all("a/b/c") => ['a', 'b', 'c'] + # + # source://rake//lib/rake/file_utils.rb#128 + def split_all(path); end + + private + + # source://rake//lib/rake/file_utils.rb#61 + def create_shell_runner(cmd); end + + # source://rake//lib/rake/file_utils.rb#86 + def set_verbose_option(options); end + + # source://rake//lib/rake/file_utils.rb#73 + def sh_show_command(cmd); end +end + +# source://rake//lib/rake/file_utils.rb#108 +FileUtils::LN_SUPPORTED = T.let(T.unsafe(nil), Array) + +# Path to the currently running Ruby program +# +# source://rake//lib/rake/file_utils.rb#10 +FileUtils::RUBY = T.let(T.unsafe(nil), String) + +# source://rake//lib/rake/ext/core.rb#2 +class Module + # Check for an existing method in the current class before extending. If + # the method already exists, then a warning is printed and the extension is + # not added. Otherwise the block is yielded and any definitions in the + # block will take effect. + # + # Usage: + # + # class String + # rake_extension("xyz") do + # def xyz + # ... + # end + # end + # end + # + # source://rake//lib/rake/ext/core.rb#18 + def rake_extension(method); end +end + +# source://rake//lib/rake.rb#24 +module Rake + extend ::FileUtils::StreamUtils_ + extend ::FileUtils + extend ::Rake::FileUtilsExt + + class << self + # Add files to the rakelib list + # + # source://rake//lib/rake/rake_module.rb#33 + def add_rakelib(*files); end + + # Current Rake Application + # + # source://rake//lib/rake/rake_module.rb#8 + def application; end + + # Set the current Rake application object. + # + # source://rake//lib/rake/rake_module.rb#13 + def application=(app); end + + # Yield each file or directory component. + # + # source://rake//lib/rake/file_list.rb#418 + def each_dir_parent(dir); end + + # Convert Pathname and Pathname-like objects to strings; + # leave everything else alone + # + # source://rake//lib/rake/file_list.rb#429 + def from_pathname(path); end + + # Load a rakefile. + # + # source://rake//lib/rake/rake_module.rb#28 + def load_rakefile(path); end + + # Return the original directory where the Rake application was started. + # + # source://rake//lib/rake/rake_module.rb#23 + def original_dir; end + + # source://rake//lib/rake/rake_module.rb#17 + def suggested_thread_count; end + + # Make +block_application+ the default rake application inside a block so + # you can load rakefiles into a different application. + # + # This is useful when you want to run rake tasks inside a library without + # running rake in a sub-shell. + # + # Example: + # + # Dir.chdir 'other/directory' + # + # other_rake = Rake.with_application do |rake| + # rake.load_rakefile + # end + # + # puts other_rake.tasks + # + # source://rake//lib/rake/rake_module.rb#54 + def with_application(block_application = T.unsafe(nil)); end + end +end + +# Rake main application object. When invoking +rake+ from the +# command line, a Rake::Application object is created and run. +# +# source://rake//lib/rake/application.rb#19 +class Rake::Application + include ::Rake::TaskManager + include ::Rake::TraceOutput + + # Initialize a Rake::Application object. + # + # @return [Application] a new instance of Application + # + # source://rake//lib/rake/application.rb#49 + def initialize; end + + # Add a file to the list of files to be imported. + # + # source://rake//lib/rake/application.rb#777 + def add_import(fn); end + + # Add a loader to handle imported files ending in the extension + # +ext+. + # + # source://rake//lib/rake/application.rb#139 + def add_loader(ext, loader); end + + # Collect the list of tasks on the command line. If no tasks are + # given, return a list containing only the default task. + # Environmental assignments are processed at this time as well. + # + # `args` is the list of arguments to peruse to get the list of tasks. + # It should be the command line that was given to rake, less any + # recognised command-line options, which OptionParser.parse will + # have taken care of already. + # + # source://rake//lib/rake/application.rb#758 + def collect_command_line_tasks(args); end + + # Default task name ("default"). + # (May be overridden by subclasses) + # + # source://rake//lib/rake/application.rb#772 + def default_task_name; end + + # Warn about deprecated usage. + # + # Example: + # Rake.application.deprecate("import", "Rake.import", caller.first) + # + # source://rake//lib/rake/application.rb#258 + def deprecate(old_usage, new_usage, call_site); end + + # source://rake//lib/rake/application.rb#222 + def display_cause_details(ex); end + + # Display the error message that caused the exception. + # + # source://rake//lib/rake/application.rb#206 + def display_error_message(ex); end + + # source://rake//lib/rake/application.rb#245 + def display_exception_backtrace(ex); end + + # source://rake//lib/rake/application.rb#214 + def display_exception_details(ex); end + + # source://rake//lib/rake/application.rb#229 + def display_exception_details_seen; end + + # source://rake//lib/rake/application.rb#237 + def display_exception_message_details(ex); end + + # Display the tasks and prerequisites + # + # source://rake//lib/rake/application.rb#381 + def display_prerequisites; end + + # Display the tasks and comments. + # + # source://rake//lib/rake/application.rb#298 + def display_tasks_and_comments; end + + # Calculate the dynamic width of the + # + # source://rake//lib/rake/application.rb#349 + def dynamic_width; end + + # source://rake//lib/rake/application.rb#353 + def dynamic_width_stty; end + + # source://rake//lib/rake/application.rb#357 + def dynamic_width_tput; end + + # Exit the program because of an unhandled exception. + # (may be overridden by subclasses) + # + # source://rake//lib/rake/application.rb#201 + def exit_because_of_exception(ex); end + + # source://rake//lib/rake/application.rb#678 + def find_rakefile_location; end + + # Read and handle the command line options. Returns the command line + # arguments that we didn't understand, which should (in theory) be just + # task names and env vars. + # + # source://rake//lib/rake/application.rb#644 + def handle_options(argv); end + + # @return [Boolean] + # + # source://rake//lib/rake/application.rb#233 + def has_cause?(ex); end + + # True if one of the files in RAKEFILES is in the current directory. + # If a match is found, it is copied into @rakefile. + # + # source://rake//lib/rake/application.rb#274 + def have_rakefile; end + + # Initialize the command line parameters and app name. + # + # source://rake//lib/rake/application.rb#88 + def init(app_name = T.unsafe(nil), argv = T.unsafe(nil)); end + + # Invokes a task with arguments that are extracted from +task_string+ + # + # source://rake//lib/rake/application.rb#157 + def invoke_task(task_string); end + + # Load the pending list of imported files. + # + # source://rake//lib/rake/application.rb#782 + def load_imports; end + + # Find the rakefile and then load it and any pending imports. + # + # source://rake//lib/rake/application.rb#102 + def load_rakefile; end + + # The name of the application (typically 'rake') + # + # source://rake//lib/rake/application.rb#24 + def name; end + + # Application options from the command line + # + # source://rake//lib/rake/application.rb#145 + def options; end + + # The original directory where rake was invoked. + # + # source://rake//lib/rake/application.rb#27 + def original_dir; end + + # source://rake//lib/rake/application.rb#163 + def parse_task_string(string); end + + # source://rake//lib/rake/application.rb#690 + def print_rakefile_directory(location); end + + # Similar to the regular Ruby +require+ command, but will check + # for *.rake files in addition to *.rb files. + # + # source://rake//lib/rake/application.rb#664 + def rake_require(file_name, paths = T.unsafe(nil), loaded = T.unsafe(nil)); end + + # Name of the actual rakefile used. + # + # source://rake//lib/rake/application.rb#30 + def rakefile; end + + # source://rake//lib/rake/application.rb#798 + def rakefile_location(backtrace = T.unsafe(nil)); end + + # source://rake//lib/rake/application.rb#695 + def raw_load_rakefile; end + + # Run the Rake application. The run method performs the following + # three steps: + # + # * Initialize the command line options (+init+). + # * Define the tasks (+load_rakefile+). + # * Run the top level tasks (+top_level+). + # + # If you wish to build a custom rake command, you should call + # +init+ on your application. Then define any tasks. Finally, + # call +top_level+ to run your top level tasks. + # + # source://rake//lib/rake/application.rb#79 + def run(argv = T.unsafe(nil)); end + + # Run the given block with the thread startup and shutdown. + # + # source://rake//lib/rake/application.rb#122 + def run_with_threads; end + + # source://rake//lib/rake/application.rb#807 + def set_default_options; end + + # Provide standard exception handling for the given block. + # + # source://rake//lib/rake/application.rb#185 + def standard_exception_handling; end + + # A list of all the standard options used in rake, suitable for + # passing to OptionParser. + # + # source://rake//lib/rake/application.rb#402 + def standard_rake_options; end + + # The directory path containing the system wide rakefiles. + # + # source://rake//lib/rake/application.rb#727 + def system_dir; end + + # Number of columns on the terminal + # + # source://rake//lib/rake/application.rb#33 + def terminal_columns; end + + # Number of columns on the terminal + # + # source://rake//lib/rake/application.rb#33 + def terminal_columns=(_arg0); end + + # source://rake//lib/rake/application.rb#337 + def terminal_width; end + + # Return the thread pool used for multithreaded processing. + # + # source://rake//lib/rake/application.rb#150 + def thread_pool; end + + # Run the top level tasks of a Rake application. + # + # source://rake//lib/rake/application.rb#109 + def top_level; end + + # List of the top level task names (task names from the command line). + # + # source://rake//lib/rake/application.rb#36 + def top_level_tasks; end + + # source://rake//lib/rake/application.rb#388 + def trace(*strings); end + + # source://rake//lib/rake/application.rb#370 + def truncate(string, width); end + + # We will truncate output if we are outputting to a TTY or if we've been + # given an explicit column width to honor + # + # @return [Boolean] + # + # source://rake//lib/rake/application.rb#293 + def truncate_output?; end + + # Override the detected TTY output state (mostly for testing) + # + # source://rake//lib/rake/application.rb#39 + def tty_output=(_arg0); end + + # True if we are outputting to TTY, false otherwise + # + # @return [Boolean] + # + # source://rake//lib/rake/application.rb#287 + def tty_output?; end + + # @return [Boolean] + # + # source://rake//lib/rake/application.rb#361 + def unix?; end + + # @return [Boolean] + # + # source://rake//lib/rake/application.rb#366 + def windows?; end + + private + + # source://rake//lib/rake/application.rb#721 + def glob(path, &block); end + + # Does the exception have a task invocation chain? + # + # @return [Boolean] + # + # source://rake//lib/rake/application.rb#267 + def has_chain?(exception); end + + # source://rake//lib/rake/application.rb#620 + def select_tasks_to_show(options, show_tasks, value); end + + # source://rake//lib/rake/application.rb#627 + def select_trace_output(options, trace_option, value); end + + # source://rake//lib/rake/application.rb#393 + def sort_options(options); end + + # source://rake//lib/rake/application.rb#744 + def standard_system_dir; end +end + +# source://rake//lib/rake/application.rb#41 +Rake::Application::DEFAULT_RAKEFILES = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/backtrace.rb#3 +module Rake::Backtrace + class << self + # source://rake//lib/rake/backtrace.rb#18 + def collapse(backtrace); end + end +end + +# source://rake//lib/rake/backtrace.rb#8 +Rake::Backtrace::SUPPRESSED_PATHS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/backtrace.rb#12 +Rake::Backtrace::SUPPRESSED_PATHS_RE = T.let(T.unsafe(nil), String) + +# source://rake//lib/rake/backtrace.rb#16 +Rake::Backtrace::SUPPRESS_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rake//lib/rake/backtrace.rb#4 +Rake::Backtrace::SYS_KEYS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/backtrace.rb#5 +Rake::Backtrace::SYS_PATHS = T.let(T.unsafe(nil), Array) + +# Mixin for creating easily cloned objects. +# +# source://rake//lib/rake/cloneable.rb#6 +module Rake::Cloneable + private + + # The hook that is invoked by 'clone' and 'dup' methods. + # + # source://rake//lib/rake/cloneable.rb#8 + def initialize_copy(source); end +end + +# source://rake//lib/rake/application.rb#13 +class Rake::CommandLineOptionError < ::StandardError; end + +# Based on a script at: +# http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed +# +# source://rake//lib/rake/cpu_counter.rb#6 +class Rake::CpuCounter + # source://rake//lib/rake/cpu_counter.rb#22 + def count; end + + # source://rake//lib/rake/cpu_counter.rb#11 + def count_with_default(default = T.unsafe(nil)); end + + class << self + # source://rake//lib/rake/cpu_counter.rb#7 + def count; end + end +end + +# DSL is a module that provides #task, #desc, #namespace, etc. Use this +# when you'd like to use rake outside the top level scope. +# +# For a Rakefile you run from the command line this module is automatically +# included. +# +# source://rake//lib/rake/dsl_definition.rb#14 +module Rake::DSL + include ::FileUtils::StreamUtils_ + include ::FileUtils + include ::Rake::FileUtilsExt + + private + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cd(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chmod(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chmod_R(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chown(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chown_R(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def copy(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp_lr(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp_r(*args, **options, &block); end + + # Describes the next rake task. Duplicate descriptions are discarded. + # Descriptions are shown with rake -T (up to the first + # sentence) and rake -D (the entire description). + # + # Example: + # desc "Run the Unit Tests" + # task test: [:build] + # # ... run tests + # end + # + # source://rake//lib/rake/dsl_definition.rb#165 + def desc(description); end + + # Declare a set of files tasks to create the given directories on + # demand. + # + # Example: + # directory "testdata/doc" + # + # source://rake//lib/rake/dsl_definition.rb#92 + def directory(*args, &block); end + + # Declare a file task. + # + # Example: + # file "config.cfg" => ["config.template"] do + # open("config.cfg", "w") do |outfile| + # open("config.template") do |infile| + # while line = infile.gets + # outfile.puts line + # end + # end + # end + # end + # + # source://rake//lib/rake/dsl_definition.rb#76 + def file(*args, &block); end + + # Declare a file creation task. + # (Mainly used for the directory command). + # + # source://rake//lib/rake/dsl_definition.rb#82 + def file_create(*args, &block); end + + # Import the partial Rakefiles +fn+. Imported files are loaded + # _after_ the current file is completely loaded. This allows the + # import statement to appear anywhere in the importing file, and yet + # allowing the imported files to depend on objects defined in the + # importing file. + # + # A common use of the import statement is to include files + # containing dependency declarations. + # + # See also the --rakelibdir command line option. + # + # Example: + # import ".depend", "my_rules" + # + # source://rake//lib/rake/dsl_definition.rb#183 + def import(*fns); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def install(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def link(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_s(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sf(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sr(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def makedirs(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkdir_p(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkpath(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def move(*args, **options, &block); end + + # Declare a task that performs its prerequisites in + # parallel. Multitasks does *not* guarantee that its prerequisites + # will execute in any given order (which is obvious when you think + # about it) + # + # Example: + # multitask deploy: %w[deploy_gem deploy_rdoc] + # + # source://rake//lib/rake/dsl_definition.rb#112 + def multitask(*args, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mv(*args, **options, &block); end + + # Create a new rake namespace and use it for evaluating the given + # block. Returns a NameSpace object that can be used to lookup + # tasks defined in the namespace. + # + # Example: + # + # ns = namespace "nested" do + # # the "nested:run" task + # task :run + # end + # task_run = ns[:run] # find :run in the given namespace. + # + # Tasks can also be defined in a namespace by using a ":" in the task + # name: + # + # task "nested:test" do + # # ... + # end + # + # source://rake//lib/rake/dsl_definition.rb#135 + def namespace(name = T.unsafe(nil), &block); end + + # source://rake//lib/rake/file_utils_ext.rb#77 + def nowrite(value = T.unsafe(nil)); end + + # source://rake//lib/rake/file_utils_ext.rb#123 + def rake_check_options(options, *optdecl); end + + # source://rake//lib/rake/file_utils_ext.rb#116 + def rake_output_message(message); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def remove(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_f(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_r(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_rf(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rmdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rmtree(*args, **options, &block); end + + # source://rake//lib/rake/file_utils.rb#100 + def ruby(*args, **options, &block); end + + # Declare a rule for auto-tasks. + # + # Example: + # rule '.o' => '.c' do |t| + # sh 'cc', '-o', t.name, t.source + # end + # + # source://rake//lib/rake/dsl_definition.rb#151 + def rule(*args, &block); end + + # source://rake//lib/rake/file_utils.rb#112 + def safe_ln(*args, **options); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def safe_unlink(*args, **options, &block); end + + # source://rake//lib/rake/file_utils.rb#43 + def sh(*cmd, &block); end + + # source://rake//lib/rake/file_utils.rb#128 + def split_all(path); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def symlink(*args, **options, &block); end + + # :call-seq: + # task(task_name) + # task(task_name: dependencies) + # task(task_name, arguments => dependencies) + # + # Declare a basic task. The +task_name+ is always the first argument. If + # the task name contains a ":" it is defined in that namespace. + # + # The +dependencies+ may be a single task name or an Array of task names. + # The +argument+ (a single name) or +arguments+ (an Array of names) define + # the arguments provided to the task. + # + # The task, argument and dependency names may be either symbols or + # strings. + # + # A task with a single dependency: + # + # task clobber: %w[clean] do + # rm_rf "html" + # end + # + # A task with an argument and a dependency: + # + # task :package, [:version] => :test do |t, args| + # # ... + # end + # + # To invoke this task from the command line: + # + # $ rake package[1.2.3] + # + # source://rake//lib/rake/dsl_definition.rb#59 + def task(*args, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def touch(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#53 + def verbose(value = T.unsafe(nil)); end + + # source://rake//lib/rake/file_utils_ext.rb#107 + def when_writing(msg = T.unsafe(nil)); end +end + +# Default Rakefile loader used by +import+. +# +# source://rake//lib/rake/default_loader.rb#5 +class Rake::DefaultLoader + # Loads a rakefile into the current application from +fn+ + # + # source://rake//lib/rake/default_loader.rb#10 + def load(fn); end +end + +# source://rake//lib/rake/early_time.rb#21 +Rake::EARLY = T.let(T.unsafe(nil), Rake::EarlyTime) + +# source://rake//lib/rake/task_arguments.rb#108 +Rake::EMPTY_TASK_ARGS = T.let(T.unsafe(nil), Rake::TaskArguments) + +# EarlyTime is a fake timestamp that occurs _before_ any other time value. +# +# source://rake//lib/rake/early_time.rb#5 +class Rake::EarlyTime + include ::Comparable + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # The EarlyTime always comes before +other+! + # + # source://rake//lib/rake/early_time.rb#12 + def <=>(other); end + + # source://rake//lib/rake/early_time.rb#16 + def to_s; end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# A FileCreationTask is a file task that when used as a dependency will be +# needed if and only if the file has not been created. Once created, it is +# not re-triggered if any of its dependencies are newer, nor does trigger +# any rebuilds of tasks that depend on it whenever it is updated. +# +# source://rake//lib/rake/file_creation_task.rb#12 +class Rake::FileCreationTask < ::Rake::FileTask + # Is this file task needed? Yes if it doesn't exist. + # + # @return [Boolean] + # + # source://rake//lib/rake/file_creation_task.rb#14 + def needed?; end + + # Time stamp for file creation task. This time stamp is earlier + # than any other time stamp. + # + # source://rake//lib/rake/file_creation_task.rb#20 + def timestamp; end +end + +# A FileList is essentially an array with a few helper methods defined to +# make file manipulation a bit easier. +# +# FileLists are lazy. When given a list of glob patterns for possible files +# to be included in the file list, instead of searching the file structures +# to find the files, a FileList holds the pattern for latter use. +# +# This allows us to define a number of FileList to match any number of +# files, but only search out the actual files when then FileList itself is +# actually used. The key is that the first time an element of the +# FileList/Array is requested, the pending patterns are resolved into a real +# list of file names. +# +# source://rake//lib/rake/file_list.rb#22 +class Rake::FileList + include ::Rake::Cloneable + + # Create a file list from the globbable patterns given. If you wish to + # perform multiple includes or excludes at object build time, use the + # "yield self" pattern. + # + # Example: + # file_list = FileList.new('lib/**/*.rb', 'test/test*.rb') + # + # pkg_files = FileList.new('lib/**/*') do |fl| + # fl.exclude(/\bCVS\b/) + # end + # + # @return [FileList] a new instance of FileList + # @yield [_self] + # @yieldparam _self [Rake::FileList] the object that the method was called on + # + # source://rake//lib/rake/file_list.rb#99 + def initialize(*patterns); end + + # source://rake//lib/rake/file_list.rb#68 + def &(*args, &block); end + + # Redefine * to return either a string or a new file list. + # + # source://rake//lib/rake/file_list.rb#193 + def *(other); end + + # source://rake//lib/rake/file_list.rb#68 + def +(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def -(*args, &block); end + + # source://rake//lib/rake/file_list.rb#203 + def <<(obj); end + + # source://rake//lib/rake/file_list.rb#77 + def <=>(*args, &block); end + + # A FileList is equal through array equality. + # + # source://rake//lib/rake/file_list.rb#171 + def ==(array); end + + # source://rake//lib/rake/file_list.rb#77 + def [](*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def []=(*args, &block); end + + # Add file names defined by glob patterns to the file list. If an array + # is given, add each element of the array. + # + # Example: + # file_list.include("*.java", "*.cfg") + # file_list.include %w( math.c lib.h *.o ) + # + # source://rake//lib/rake/file_list.rb#116 + def add(*filenames); end + + # source://rake//lib/rake/file_list.rb#77 + def all?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def any?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def append(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def assoc(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def at(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def bsearch(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def bsearch_index(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def chain(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def chunk(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def chunk_while(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def clear(*args, &block); end + + # Clear all the exclude patterns so that we exclude nothing. + # + # source://rake//lib/rake/file_list.rb#164 + def clear_exclude; end + + # source://rake//lib/rake/file_list.rb#68 + def collect(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def collect!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def collect_concat(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def combination(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def compact(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def compact!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def concat(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def count(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def cycle(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def deconstruct(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def delete(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def delete_at(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def delete_if(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def detect(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def difference(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def dig(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def drop(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def drop_while(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each_cons(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each_entry(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each_index(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each_slice(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each_with_index(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def each_with_object(*args, &block); end + + # Grep each of the files in the filelist using the given pattern. If a + # block is given, call the block on each matching line, passing the file + # name, line number, and the matching line of text. If no block is given, + # a standard emacs style file:linenumber:line message will be printed to + # standard out. Returns the number of matched items. + # + # source://rake//lib/rake/file_list.rb#293 + def egrep(pattern, *options); end + + # source://rake//lib/rake/file_list.rb#77 + def empty?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def entries(*args, &block); end + + # Register a list of file name patterns that should be excluded from the + # list. Patterns may be regular expressions, glob patterns or regular + # strings. In addition, a block given to exclude will remove entries that + # return true when given to the block. + # + # Note that glob patterns are expanded against the file system. If a file + # is explicitly added to a file list, but does not exist in the file + # system, then an glob pattern in the exclude list will not exclude the + # file. + # + # Examples: + # FileList['a.c', 'b.c'].exclude("a.c") => ['b.c'] + # FileList['a.c', 'b.c'].exclude(/^a/) => ['b.c'] + # + # If "a.c" is a file, then ... + # FileList['a.c', 'b.c'].exclude("a.*") => ['b.c'] + # + # If "a.c" is not a file, then ... + # FileList['a.c', 'b.c'].exclude("a.*") => ['a.c', 'b.c'] + # + # source://rake//lib/rake/file_list.rb#150 + def exclude(*patterns, &block); end + + # Should the given file name be excluded from the list? + # + # NOTE: This method was formerly named "exclude?", but Rails + # introduced an exclude? method as an array method and setup a + # conflict with file list. We renamed the method to avoid + # confusion. If you were using "FileList#exclude?" in your user + # code, you will need to update. + # + # @return [Boolean] + # + # source://rake//lib/rake/file_list.rb#364 + def excluded_from_list?(fn); end + + # Return a new file list that only contains file names from the current + # file list that exist on the file system. + # + # source://rake//lib/rake/file_list.rb#320 + def existing; end + + # Modify the current file list so that it contains only file name that + # exist on the file system. + # + # source://rake//lib/rake/file_list.rb#326 + def existing!; end + + # Return a new FileList with String#ext method applied to + # each member of the array. + # + # This method is a shortcut for: + # + # array.collect { |item| item.ext(newext) } + # + # +ext+ is a user added method for the Array class. + # + # source://rake//lib/rake/file_list.rb#284 + def ext(newext = T.unsafe(nil)); end + + # source://rake//lib/rake/file_list.rb#77 + def fetch(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def fill(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def filter(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def filter!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def filter_map(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def find(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def find_all(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def find_index(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def first(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def flat_map(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def flatten(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def flatten!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def grep(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def grep_v(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def group_by(*args, &block); end + + # Return a new FileList with the results of running +gsub+ against each + # element of the original list. + # + # Example: + # FileList['lib/test/file', 'x/y'].gsub(/\//, "\\") + # => ['lib\\test\\file', 'x\\y'] + # + # source://rake//lib/rake/file_list.rb#253 + def gsub(pat, rep); end + + # Same as +gsub+ except that the original file list is modified. + # + # source://rake//lib/rake/file_list.rb#264 + def gsub!(pat, rep); end + + # source://rake//lib/rake/file_list.rb#391 + def import(array); end + + # Add file names defined by glob patterns to the file list. If an array + # is given, add each element of the array. + # + # Example: + # file_list.include("*.java", "*.cfg") + # file_list.include %w( math.c lib.h *.o ) + # + # source://rake//lib/rake/file_list.rb#116 + def include(*filenames); end + + # source://rake//lib/rake/file_list.rb#77 + def include?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def index(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def inject(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def insert(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def inspect(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def intersect?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def intersection(*args, &block); end + + # Lie about our class. + # + # @return [Boolean] + # + # source://rake//lib/rake/file_list.rb#187 + def is_a?(klass); end + + # source://rake//lib/rake/file_list.rb#77 + def join(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def keep_if(*args, &block); end + + # Lie about our class. + # + # @return [Boolean] + # + # source://rake//lib/rake/file_list.rb#187 + def kind_of?(klass); end + + # source://rake//lib/rake/file_list.rb#77 + def last(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def lazy(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def length(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def map(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def map!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def max(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def max_by(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def member?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def min(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def min_by(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def minmax(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def minmax_by(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def none?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def one?(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def pack(*args, &block); end + + # FileList version of partition. Needed because the nested arrays should + # be FileLists in this version. + # + # source://rake//lib/rake/file_list.rb#334 + def partition(&block); end + + # Apply the pathmap spec to each of the included file names, returning a + # new file list with the modified paths. (See String#pathmap for + # details.) + # + # source://rake//lib/rake/file_list.rb#272 + def pathmap(spec = T.unsafe(nil), &block); end + + # source://rake//lib/rake/file_list.rb#77 + def permutation(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def place(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def pop(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def prepend(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def product(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def push(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def rassoc(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def reduce(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def reject(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def reject!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def repeated_combination(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def repeated_permutation(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def replace(*args, &block); end + + # Resolve all the pending adds now. + # + # source://rake//lib/rake/file_list.rb#210 + def resolve; end + + # source://rake//lib/rake/file_list.rb#77 + def reverse(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def reverse!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def reverse_each(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def rindex(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def rotate(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def rotate!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def sample(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def select(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def select!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def shelljoin(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def shift(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def shuffle(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def shuffle!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def size(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def slice(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def slice!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def slice_after(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def slice_before(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def slice_when(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def sort(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def sort!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def sort_by(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def sort_by!(*args, &block); end + + # Return a new FileList with the results of running +sub+ against each + # element of the original list. + # + # Example: + # FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o'] + # + # source://rake//lib/rake/file_list.rb#242 + def sub(pat, rep); end + + # Same as +sub+ except that the original file list is modified. + # + # source://rake//lib/rake/file_list.rb#258 + def sub!(pat, rep); end + + # source://rake//lib/rake/file_list.rb#77 + def sum(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def take(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def take_while(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def tally(*args, &block); end + + # Return the internal array object. + # + # source://rake//lib/rake/file_list.rb#176 + def to_a; end + + # Return the internal array object. + # + # source://rake//lib/rake/file_list.rb#182 + def to_ary; end + + # source://rake//lib/rake/file_list.rb#77 + def to_h(*args, &block); end + + # Convert a FileList to a string by joining all elements with a space. + # + # source://rake//lib/rake/file_list.rb#344 + def to_s; end + + # source://rake//lib/rake/file_list.rb#77 + def to_set(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def transpose(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def union(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def uniq(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def uniq!(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def unshift(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def values_at(*args, &block); end + + # source://rake//lib/rake/file_list.rb#77 + def zip(*args, &block); end + + # source://rake//lib/rake/file_list.rb#68 + def |(*args, &block); end + + private + + # Add matching glob patterns. + # + # source://rake//lib/rake/file_list.rb#350 + def add_matching(pattern); end + + # source://rake//lib/rake/file_list.rb#220 + def resolve_add(fn); end + + # source://rake//lib/rake/file_list.rb#230 + def resolve_exclude; end + + class << self + # Create a new file list including the files listed. Similar to: + # + # FileList.new(*args) + # + # source://rake//lib/rake/file_list.rb#400 + def [](*args); end + + # Get a sorted list of files matching the pattern. This method + # should be preferred to Dir[pattern] and Dir.glob(pattern) because + # the files returned are guaranteed to be sorted. + # + # source://rake//lib/rake/file_list.rb#407 + def glob(pattern, *args); end + end +end + +# List of array methods (that are not in +Object+) that need to be +# delegated. +# +# source://rake//lib/rake/file_list.rb#44 +Rake::FileList::ARRAY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/file_list.rb#381 +Rake::FileList::DEFAULT_IGNORE_PATTERNS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/file_list.rb#387 +Rake::FileList::DEFAULT_IGNORE_PROCS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/file_list.rb#61 +Rake::FileList::DELEGATING_METHODS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/file_list.rb#86 +Rake::FileList::GLOB_PATTERN = T.let(T.unsafe(nil), Regexp) + +# List of additional methods that must be delegated. +# +# source://rake//lib/rake/file_list.rb#47 +Rake::FileList::MUST_DEFINE = T.let(T.unsafe(nil), Array) + +# List of methods that should not be delegated here (we define special +# versions of them explicitly below). +# +# source://rake//lib/rake/file_list.rb#51 +Rake::FileList::MUST_NOT_DEFINE = T.let(T.unsafe(nil), Array) + +# List of delegated methods that return new array values which need +# wrapping. +# +# source://rake//lib/rake/file_list.rb#55 +Rake::FileList::SPECIAL_RETURN = T.let(T.unsafe(nil), Array) + +# A FileTask is a task that includes time based dependencies. If any of a +# FileTask's prerequisites have a timestamp that is later than the file +# represented by this task, then the file must be rebuilt (using the +# supplied actions). +# +# source://rake//lib/rake/file_task.rb#12 +class Rake::FileTask < ::Rake::Task + # Is this file task needed? Yes if it doesn't exist, or if its time stamp + # is out of date. + # + # @return [Boolean] + # + # source://rake//lib/rake/file_task.rb#16 + def needed?; end + + # Time stamp for file task. + # + # source://rake//lib/rake/file_task.rb#21 + def timestamp; end + + private + + # Are there any prerequisites with a later time than the given time stamp? + # + # @return [Boolean] + # + # source://rake//lib/rake/file_task.rb#32 + def out_of_date?(stamp); end + + class << self + # Apply the scope to the task name according to the rules for this kind + # of task. File based tasks ignore the scope when creating the name. + # + # source://rake//lib/rake/file_task.rb#49 + def scope_name(scope, task_name); end + end +end + +# FileUtilsExt provides a custom version of the FileUtils methods +# that respond to the verbose and nowrite +# commands. +# +# source://rake//lib/rake/file_utils_ext.rb#10 +module Rake::FileUtilsExt + include ::FileUtils::StreamUtils_ + include ::FileUtils + extend ::FileUtils::StreamUtils_ + extend ::FileUtils + extend ::Rake::FileUtilsExt + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cd(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chmod(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chmod_R(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chown(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def chown_R(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def copy(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp_lr(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def cp_r(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def install(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def link(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_s(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sf(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def ln_sr(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def makedirs(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkdir_p(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mkpath(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def move(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def mv(*args, **options, &block); end + + # Get/set the nowrite flag controlling output from the FileUtils + # utilities. If verbose is true, then the utility method is + # echoed to standard output. + # + # Examples: + # nowrite # return the current value of the + # # nowrite flag + # nowrite(v) # set the nowrite flag to _v_. + # nowrite(v) { code } # Execute code with the nowrite flag set + # # temporarily to _v_. Return to the + # # original value when code is done. + # + # source://rake//lib/rake/file_utils_ext.rb#77 + def nowrite(value = T.unsafe(nil)); end + + # Check that the options do not contain options not listed in + # +optdecl+. An ArgumentError exception is thrown if non-declared + # options are found. + # + # @raise [ArgumentError] + # + # source://rake//lib/rake/file_utils_ext.rb#123 + def rake_check_options(options, *optdecl); end + + # Send the message to the default rake output (which is $stderr). + # + # source://rake//lib/rake/file_utils_ext.rb#116 + def rake_output_message(message); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def remove(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_f(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_r(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rm_rf(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rmdir(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def rmtree(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def safe_unlink(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def symlink(*args, **options, &block); end + + # source://rake//lib/rake/file_utils_ext.rb#34 + def touch(*args, **options, &block); end + + # Get/set the verbose flag controlling output from the FileUtils + # utilities. If verbose is true, then the utility method is + # echoed to standard output. + # + # Examples: + # verbose # return the current value of the + # # verbose flag + # verbose(v) # set the verbose flag to _v_. + # verbose(v) { code } # Execute code with the verbose flag set + # # temporarily to _v_. Return to the + # # original value when code is done. + # + # source://rake//lib/rake/file_utils_ext.rb#53 + def verbose(value = T.unsafe(nil)); end + + # Use this function to prevent potentially destructive ruby code + # from running when the :nowrite flag is set. + # + # Example: + # + # when_writing("Building Project") do + # project.build + # end + # + # The following code will build the project under normal + # conditions. If the nowrite(true) flag is set, then the example + # will print: + # + # DRYRUN: Building Project + # + # instead of actually building the project. + # + # source://rake//lib/rake/file_utils_ext.rb#107 + def when_writing(msg = T.unsafe(nil)); end + + class << self + # Returns the value of attribute nowrite_flag. + # + # source://rake//lib/rake/file_utils_ext.rb#14 + def nowrite_flag; end + + # Sets the attribute nowrite_flag + # + # @param value the value to set the attribute nowrite_flag to. + # + # source://rake//lib/rake/file_utils_ext.rb#14 + def nowrite_flag=(_arg0); end + + # Returns the value of attribute verbose_flag. + # + # source://rake//lib/rake/file_utils_ext.rb#14 + def verbose_flag; end + + # Sets the attribute verbose_flag + # + # @param value the value to set the attribute verbose_flag to. + # + # source://rake//lib/rake/file_utils_ext.rb#14 + def verbose_flag=(_arg0); end + end +end + +# source://rake//lib/rake/file_utils_ext.rb#17 +Rake::FileUtilsExt::DEFAULT = T.let(T.unsafe(nil), Object) + +# InvocationChain tracks the chain of task invocations to detect +# circular dependencies. +# +# source://rake//lib/rake/invocation_chain.rb#6 +class Rake::InvocationChain < ::Rake::LinkedList + # Append an invocation to the chain of invocations. It is an error + # if the invocation already listed. + # + # source://rake//lib/rake/invocation_chain.rb#15 + def append(invocation); end + + # Is the invocation already in the chain? + # + # @return [Boolean] + # + # source://rake//lib/rake/invocation_chain.rb#9 + def member?(invocation); end + + # Convert to string, ie: TOP => invocation => invocation + # + # source://rake//lib/rake/invocation_chain.rb#23 + def to_s; end + + private + + # source://rake//lib/rake/invocation_chain.rb#34 + def prefix; end + + class << self + # Class level append. + # + # source://rake//lib/rake/invocation_chain.rb#28 + def append(invocation, chain); end + end +end + +# source://rake//lib/rake/invocation_chain.rb#55 +Rake::InvocationChain::EMPTY = T.let(T.unsafe(nil), Rake::InvocationChain::EmptyInvocationChain) + +# Null object for an empty chain. +# +# source://rake//lib/rake/invocation_chain.rb#39 +class Rake::InvocationChain::EmptyInvocationChain < ::Rake::LinkedList::EmptyLinkedList + # source://rake//lib/rake/invocation_chain.rb#46 + def append(invocation); end + + # @return [Boolean] + # + # source://rake//lib/rake/invocation_chain.rb#42 + def member?(obj); end + + # source://rake//lib/rake/invocation_chain.rb#50 + def to_s; end +end + +# source://rake//lib/rake/invocation_exception_mixin.rb#3 +module Rake::InvocationExceptionMixin + # Return the invocation chain (list of Rake tasks) that were in + # effect when this exception was detected by rake. May be null if + # no tasks were active. + # + # source://rake//lib/rake/invocation_exception_mixin.rb#7 + def chain; end + + # Set the invocation chain in effect when this exception was + # detected. + # + # source://rake//lib/rake/invocation_exception_mixin.rb#13 + def chain=(value); end +end + +# source://rake//lib/rake/late_time.rb#17 +Rake::LATE = T.let(T.unsafe(nil), Rake::LateTime) + +# LateTime is a fake timestamp that occurs _after_ any other time value. +# +# source://rake//lib/rake/late_time.rb#4 +class Rake::LateTime + include ::Comparable + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # source://rake//lib/rake/late_time.rb#8 + def <=>(other); end + + # source://rake//lib/rake/late_time.rb#12 + def to_s; end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# Polylithic linked list structure used to implement several data +# structures in Rake. +# +# source://rake//lib/rake/linked_list.rb#6 +class Rake::LinkedList + include ::Enumerable + + # @return [LinkedList] a new instance of LinkedList + # + # source://rake//lib/rake/linked_list.rb#84 + def initialize(head, tail = T.unsafe(nil)); end + + # Lists are structurally equivalent. + # + # source://rake//lib/rake/linked_list.rb#25 + def ==(other); end + + # Polymorphically add a new element to the head of a list. The + # type of head node will be the same list type as the tail. + # + # source://rake//lib/rake/linked_list.rb#12 + def conj(item); end + + # For each item in the list. + # + # source://rake//lib/rake/linked_list.rb#48 + def each; end + + # Is the list empty? + # .make guards against a list being empty making any instantiated LinkedList + # object not empty by default + # You should consider overriding this method if you implement your own .make method + # + # @return [Boolean] + # + # source://rake//lib/rake/linked_list.rb#20 + def empty?; end + + # Returns the value of attribute head. + # + # source://rake//lib/rake/linked_list.rb#8 + def head; end + + # Same as +to_s+, but with inspected items. + # + # source://rake//lib/rake/linked_list.rb#42 + def inspect; end + + # Returns the value of attribute tail. + # + # source://rake//lib/rake/linked_list.rb#8 + def tail; end + + # Convert to string: LL(item, item...) + # + # source://rake//lib/rake/linked_list.rb#36 + def to_s; end + + class << self + # Cons a new head onto the tail list. + # + # source://rake//lib/rake/linked_list.rb#73 + def cons(head, tail); end + + # The standard empty list class for the given LinkedList class. + # + # source://rake//lib/rake/linked_list.rb#78 + def empty; end + + # Make a list out of the given arguments. This method is + # polymorphic + # + # source://rake//lib/rake/linked_list.rb#59 + def make(*args); end + end +end + +# source://rake//lib/rake/linked_list.rb#110 +Rake::LinkedList::EMPTY = T.let(T.unsafe(nil), Rake::LinkedList::EmptyLinkedList) + +# Represent an empty list, using the Null Object Pattern. +# +# When inheriting from the LinkedList class, you should implement +# a type specific Empty class as well. Make sure you set the class +# instance variable @parent to the associated list class (this +# allows conj, cons and make to work polymorphically). +# +# source://rake//lib/rake/linked_list.rb#95 +class Rake::LinkedList::EmptyLinkedList < ::Rake::LinkedList + # @return [EmptyLinkedList] a new instance of EmptyLinkedList + # + # source://rake//lib/rake/linked_list.rb#98 + def initialize; end + + # @return [Boolean] + # + # source://rake//lib/rake/linked_list.rb#101 + def empty?; end + + class << self + # source://rake//lib/rake/linked_list.rb#105 + def cons(head, tail); end + end +end + +# Same as a regular task, but the immediate prerequisites are done in +# parallel using Ruby threads. +# +# source://rake//lib/rake/multi_task.rb#7 +class Rake::MultiTask < ::Rake::Task + private + + # source://rake//lib/rake/multi_task.rb#10 + def invoke_prerequisites(task_args, invocation_chain); end +end + +# The NameSpace class will lookup task names in the scope defined by a +# +namespace+ command. +# +# source://rake//lib/rake/name_space.rb#6 +class Rake::NameSpace + # Create a namespace lookup object using the given task manager + # and the list of scopes. + # + # @return [NameSpace] a new instance of NameSpace + # + # source://rake//lib/rake/name_space.rb#12 + def initialize(task_manager, scope_list); end + + # Lookup a task named +name+ in the namespace. + # + # source://rake//lib/rake/name_space.rb#20 + def [](name); end + + # The scope of the namespace (a LinkedList) + # + # source://rake//lib/rake/name_space.rb#27 + def scope; end + + # Return the list of tasks defined in this and nested namespaces. + # + # source://rake//lib/rake/name_space.rb#34 + def tasks; end +end + +# Include PrivateReader to use +private_reader+. +# +# source://rake//lib/rake/private_reader.rb#5 +module Rake::PrivateReader + mixes_in_class_methods ::Rake::PrivateReader::ClassMethods + + class << self + # source://rake//lib/rake/private_reader.rb#7 + def included(base); end + end +end + +# source://rake//lib/rake/private_reader.rb#11 +module Rake::PrivateReader::ClassMethods + # Declare a list of private accessors + # + # source://rake//lib/rake/private_reader.rb#14 + def private_reader(*names); end +end + +# A Promise object represents a promise to do work (a chore) in the +# future. The promise is created with a block and a list of +# arguments for the block. Calling value will return the value of +# the promised chore. +# +# Used by ThreadPool. +# +# source://rake//lib/rake/promise.rb#11 +class Rake::Promise + # Create a promise to do the chore specified by the block. + # + # @return [Promise] a new instance of Promise + # + # source://rake//lib/rake/promise.rb#17 + def initialize(args, &block); end + + # source://rake//lib/rake/promise.rb#14 + def recorder; end + + # source://rake//lib/rake/promise.rb#14 + def recorder=(_arg0); end + + # Return the value of this promise. + # + # If the promised chore is not yet complete, then do the work + # synchronously. We will wait. + # + # source://rake//lib/rake/promise.rb#29 + def value; end + + # If no one else is working this promise, go ahead and do the chore. + # + # source://rake//lib/rake/promise.rb#42 + def work; end + + private + + # Perform the chore promised + # + # source://rake//lib/rake/promise.rb#57 + def chore; end + + # Are we done with the promise + # + # @return [Boolean] + # + # source://rake//lib/rake/promise.rb#83 + def complete?; end + + # free up these items for the GC + # + # source://rake//lib/rake/promise.rb#88 + def discard; end + + # Did the promise throw an error + # + # @return [Boolean] + # + # source://rake//lib/rake/promise.rb#78 + def error?; end + + # Do we have a result for the promise + # + # @return [Boolean] + # + # source://rake//lib/rake/promise.rb#73 + def result?; end + + # Record execution statistics if there is a recorder + # + # source://rake//lib/rake/promise.rb#94 + def stat(*args); end +end + +# source://rake//lib/rake/promise.rb#12 +Rake::Promise::NOT_SET = T.let(T.unsafe(nil), Object) + +# Exit status class for times the system just gives us a nil. +# +# source://rake//lib/rake/pseudo_status.rb#6 +class Rake::PseudoStatus + # @return [PseudoStatus] a new instance of PseudoStatus + # + # source://rake//lib/rake/pseudo_status.rb#9 + def initialize(code = T.unsafe(nil)); end + + # source://rake//lib/rake/pseudo_status.rb#17 + def >>(n); end + + # @return [Boolean] + # + # source://rake//lib/rake/pseudo_status.rb#25 + def exited?; end + + # source://rake//lib/rake/pseudo_status.rb#7 + def exitstatus; end + + # @return [Boolean] + # + # source://rake//lib/rake/pseudo_status.rb#21 + def stopped?; end + + # source://rake//lib/rake/pseudo_status.rb#13 + def to_i; end +end + +# Error indicating a recursion overflow error in task selection. +# +# source://rake//lib/rake/rule_recursion_overflow_error.rb#5 +class Rake::RuleRecursionOverflowError < ::StandardError + # @return [RuleRecursionOverflowError] a new instance of RuleRecursionOverflowError + # + # source://rake//lib/rake/rule_recursion_overflow_error.rb#6 + def initialize(*args); end + + # source://rake//lib/rake/rule_recursion_overflow_error.rb#11 + def add_target(target); end + + # source://rake//lib/rake/rule_recursion_overflow_error.rb#15 + def message; end +end + +# source://rake//lib/rake/scope.rb#3 +class Rake::Scope < ::Rake::LinkedList + # Path for the scope. + # + # source://rake//lib/rake/scope.rb#6 + def path; end + + # Path for the scope + the named path. + # + # source://rake//lib/rake/scope.rb#11 + def path_with_task_name(task_name); end + + # Trim +n+ innermost scope levels from the scope. In no case will + # this trim beyond the toplevel scope. + # + # source://rake//lib/rake/scope.rb#17 + def trim(n); end +end + +# Singleton null object for an empty scope. +# +# source://rake//lib/rake/scope.rb#41 +Rake::Scope::EMPTY = T.let(T.unsafe(nil), Rake::Scope::EmptyScope) + +# Scope lists always end with an EmptyScope object. See Null +# Object Pattern) +# +# source://rake//lib/rake/scope.rb#28 +class Rake::Scope::EmptyScope < ::Rake::LinkedList::EmptyLinkedList + # source://rake//lib/rake/scope.rb#31 + def path; end + + # source://rake//lib/rake/scope.rb#35 + def path_with_task_name(task_name); end +end + +# A Task is the basic unit of work in a Rakefile. Tasks have associated +# actions (possibly more than one) and a list of prerequisites. When +# invoked, a task will first ensure that all of its prerequisites have an +# opportunity to run and then it will execute its own actions. +# +# Tasks are not usually created directly using the new method, but rather +# use the +file+ and +task+ convenience methods. +# +# source://rake//lib/rake/task.rb#15 +class Rake::Task + # Create a task named +task_name+ with no actions or prerequisites. Use + # +enhance+ to add actions and prerequisites. + # + # @return [Task] a new instance of Task + # + # source://rake//lib/rake/task.rb#99 + def initialize(task_name, app); end + + # List of actions attached to a task. + # + # source://rake//lib/rake/task.rb#24 + def actions; end + + # Add a description to the task. The description can consist of an option + # argument list (enclosed brackets) and an optional comment. + # + # source://rake//lib/rake/task.rb#298 + def add_description(description); end + + # List of all unique prerequisite tasks including prerequisite tasks' + # prerequisites. + # Includes self when cyclic dependencies are found. + # + # source://rake//lib/rake/task.rb#77 + def all_prerequisite_tasks; end + + # Has this task already been invoked? Already invoked tasks + # will be skipped unless you reenable them. + # + # source://rake//lib/rake/task.rb#39 + def already_invoked; end + + # Application owning this task. + # + # source://rake//lib/rake/task.rb#27 + def application; end + + # Application owning this task. + # + # source://rake//lib/rake/task.rb#27 + def application=(_arg0); end + + # Argument description (nil if none). + # + # source://rake//lib/rake/task.rb#136 + def arg_description; end + + # Name of arguments for this task. + # + # source://rake//lib/rake/task.rb#141 + def arg_names; end + + # Clear the existing prerequisites, actions, comments, and arguments of a rake task. + # + # source://rake//lib/rake/task.rb#153 + def clear; end + + # Clear the existing actions on a rake task. + # + # source://rake//lib/rake/task.rb#168 + def clear_actions; end + + # Clear the existing arguments on a rake task. + # + # source://rake//lib/rake/task.rb#180 + def clear_args; end + + # Clear the existing comments on a rake task. + # + # source://rake//lib/rake/task.rb#174 + def clear_comments; end + + # Clear the existing prerequisites of a rake task. + # + # source://rake//lib/rake/task.rb#162 + def clear_prerequisites; end + + # First line (or sentence) of all comments. Multiple comments are + # separated by a "/". + # + # source://rake//lib/rake/task.rb#322 + def comment; end + + # source://rake//lib/rake/task.rb#304 + def comment=(comment); end + + # Enhance a task with prerequisites or actions. Returns self. + # + # source://rake//lib/rake/task.rb#115 + def enhance(deps = T.unsafe(nil), &block); end + + # Execute the actions associated with this task. + # + # source://rake//lib/rake/task.rb#270 + def execute(args = T.unsafe(nil)); end + + # Full collection of comments. Multiple comments are separated by + # newlines. + # + # source://rake//lib/rake/task.rb#316 + def full_comment; end + + # source://rake//lib/rake/task.rb#46 + def inspect; end + + # Return a string describing the internal state of a task. Useful for + # debugging. + # + # source://rake//lib/rake/task.rb#354 + def investigation; end + + # Invoke the task if it is needed. Prerequisites are invoked first. + # + # source://rake//lib/rake/task.rb#186 + def invoke(*args); end + + # Invoke all the prerequisites of a task. + # + # source://rake//lib/rake/task.rb#237 + def invoke_prerequisites(task_args, invocation_chain); end + + # Invoke all the prerequisites of a task in parallel. + # + # source://rake//lib/rake/task.rb#249 + def invoke_prerequisites_concurrently(task_args, invocation_chain); end + + # File/Line locations of each of the task definitions for this + # task (only valid if the task was defined with the detect + # location option set). + # + # source://rake//lib/rake/task.rb#35 + def locations; end + + # Name of the task, including any namespace qualifiers. + # + # source://rake//lib/rake/task.rb#122 + def name; end + + # Name of task with argument list description. + # + # source://rake//lib/rake/task.rb#127 + def name_with_args; end + + # Is this task needed? + # + # @return [Boolean] + # + # source://rake//lib/rake/task.rb#286 + def needed?; end + + # List of order only prerequisites for a task. + # + # source://rake//lib/rake/task.rb#21 + def order_only_prerequisites; end + + # List of prerequisites for a task. + # + # source://rake//lib/rake/task.rb#17 + def prereqs; end + + # List of prerequisite tasks + # + # source://rake//lib/rake/task.rb#61 + def prerequisite_tasks; end + + # List of prerequisites for a task. + # + # source://rake//lib/rake/task.rb#17 + def prerequisites; end + + # Reenable the task, allowing its tasks to be executed if the task + # is invoked again. + # + # source://rake//lib/rake/task.rb#147 + def reenable; end + + # Array of nested namespaces names used for task lookup by this task. + # + # source://rake//lib/rake/task.rb#30 + def scope; end + + # Set the names of the arguments for this task. +args+ should be + # an array of symbols, one for each argument name. + # + # source://rake//lib/rake/task.rb#348 + def set_arg_names(args); end + + # First source from a rule (nil if no sources) + # + # source://rake//lib/rake/task.rb#93 + def source; end + + # source://rake//lib/rake/task.rb#52 + def sources; end + + # List of sources for task. + # + # source://rake//lib/rake/task.rb#51 + def sources=(_arg0); end + + # Timestamp for this task. Basic tasks return the current time for their + # time stamp. Other tasks can be more sophisticated. + # + # source://rake//lib/rake/task.rb#292 + def timestamp; end + + # Return task name + # + # source://rake//lib/rake/task.rb#42 + def to_s; end + + # Add order only dependencies. + # + # source://rake//lib/rake/task.rb#379 + def |(deps); end + + protected + + # source://rake//lib/rake/task.rb#83 + def collect_prerequisites(seen); end + + # Same as invoke, but explicitly pass a call chain to detect + # circular dependencies. + # + # If multiple tasks depend on this + # one in parallel, they will all fail if the first execution of + # this task fails. + # + # source://rake//lib/rake/task.rb#197 + def invoke_with_call_chain(task_args, invocation_chain); end + + private + + # source://rake//lib/rake/task.rb#229 + def add_chain_to(exception, new_chain); end + + # source://rake//lib/rake/task.rb#308 + def add_comment(comment); end + + # Get the first sentence in a string. The sentence is terminated + # by the first period, exclamation mark, or the end of the line. + # Decimal points do not count as periods. + # + # source://rake//lib/rake/task.rb#341 + def first_sentence(string); end + + # Format the trace flags for display. + # + # source://rake//lib/rake/task.rb#261 + def format_trace_flags; end + + # source://rake//lib/rake/task.rb#65 + def lookup_prerequisite(prerequisite_name); end + + # Transform the list of comments as specified by the block and + # join with the separator. + # + # source://rake//lib/rake/task.rb#328 + def transform_comments(separator, &block); end + + class << self + # Return a task with the given name. If the task is not currently + # known, try to synthesize one from the defined rules. If no rules are + # found, but an existing file matches the task name, assume it is a file + # task with no dependencies or actions. + # + # source://rake//lib/rake/task.rb#404 + def [](task_name); end + + # Clear the task list. This cause rake to immediately forget all the + # tasks that have been assigned. (Normally used in the unit tests.) + # + # source://rake//lib/rake/task.rb#391 + def clear; end + + # Define a rule for synthesizing tasks. + # + # source://rake//lib/rake/task.rb#421 + def create_rule(*args, &block); end + + # Define a task given +args+ and an option block. If a rule with the + # given name already exists, the prerequisites and actions are added to + # the existing task. Returns the defined task. + # + # source://rake//lib/rake/task.rb#416 + def define_task(*args, &block); end + + # Format dependencies parameter to pass to task. + # + # source://rake//lib/rake/task.rb#373 + def format_deps(deps); end + + # Apply the scope to the task name according to the rules for + # this kind of task. Generic tasks will accept the scope as + # part of the name. + # + # source://rake//lib/rake/task.rb#428 + def scope_name(scope, task_name); end + + # TRUE if the task name is already defined. + # + # @return [Boolean] + # + # source://rake//lib/rake/task.rb#409 + def task_defined?(task_name); end + + # List of all defined tasks. + # + # source://rake//lib/rake/task.rb#396 + def tasks; end + end +end + +# Error indicating an ill-formed task declaration. +# +# source://rake//lib/rake/task_argument_error.rb#5 +class Rake::TaskArgumentError < ::ArgumentError; end + +# TaskArguments manage the arguments passed to a task. +# +# source://rake//lib/rake/task_arguments.rb#7 +class Rake::TaskArguments + include ::Enumerable + + # Create a TaskArgument object with a list of argument +names+ and a set + # of associated +values+. +parent+ is the parent argument object. + # + # @return [TaskArguments] a new instance of TaskArguments + # + # source://rake//lib/rake/task_arguments.rb#15 + def initialize(names, values, parent = T.unsafe(nil)); end + + # Find an argument value by name or index. + # + # source://rake//lib/rake/task_arguments.rb#44 + def [](index); end + + # Enumerates the arguments and their values + # + # source://rake//lib/rake/task_arguments.rb#56 + def each(&block); end + + # Retrieve the list of values not associated with named arguments + # + # source://rake//lib/rake/task_arguments.rb#32 + def extras; end + + # source://rake//lib/rake/task_arguments.rb#93 + def fetch(*args, &block); end + + # Returns true if +key+ is one of the arguments + # + # @return [Boolean] + # + # source://rake//lib/rake/task_arguments.rb#88 + def has_key?(key); end + + # source://rake//lib/rake/task_arguments.rb#79 + def inspect; end + + # Returns true if +key+ is one of the arguments + # + # @return [Boolean] + # + # source://rake//lib/rake/task_arguments.rb#88 + def key?(key); end + + # Returns the value of the given argument via method_missing + # + # source://rake//lib/rake/task_arguments.rb#66 + def method_missing(sym, *args); end + + # Argument names + # + # source://rake//lib/rake/task_arguments.rb#11 + def names; end + + # Create a new argument scope using the prerequisite argument + # names. + # + # source://rake//lib/rake/task_arguments.rb#38 + def new_scope(names); end + + # Retrieve the complete array of sequential values + # + # source://rake//lib/rake/task_arguments.rb#27 + def to_a; end + + # Returns a Hash of arguments and their values + # + # source://rake//lib/rake/task_arguments.rb#71 + def to_hash; end + + # source://rake//lib/rake/task_arguments.rb#75 + def to_s; end + + # Extracts the argument values at +keys+ + # + # source://rake//lib/rake/task_arguments.rb#61 + def values_at(*keys); end + + # Specify a hash of default values for task arguments. Use the + # defaults only if there is no specific value for the given + # argument. + # + # source://rake//lib/rake/task_arguments.rb#51 + def with_defaults(defaults); end + + protected + + # source://rake//lib/rake/task_arguments.rb#99 + def lookup(name); end +end + +# Base class for Task Libraries. +# +# source://rake//lib/rake/tasklib.rb#7 +class Rake::TaskLib + include ::Rake::Cloneable + include ::FileUtils::StreamUtils_ + include ::FileUtils + include ::Rake::FileUtilsExt + include ::Rake::DSL +end + +# The TaskManager module is a mixin for managing tasks. +# +# source://rake//lib/rake/task_manager.rb#5 +module Rake::TaskManager + # source://rake//lib/rake/task_manager.rb#9 + def initialize; end + + # Find a matching task for +task_name+. + # + # source://rake//lib/rake/task_manager.rb#54 + def [](task_name, scopes = T.unsafe(nil)); end + + # Clear all tasks in this application. + # + # source://rake//lib/rake/task_manager.rb#182 + def clear; end + + # source://rake//lib/rake/task_manager.rb#17 + def create_rule(*args, &block); end + + # Return the list of scope names currently active in the task + # manager. + # + # source://rake//lib/rake/task_manager.rb#222 + def current_scope; end + + # source://rake//lib/rake/task_manager.rb#23 + def define_task(task_class, *args, &block); end + + # If a rule can be found that matches the task name, enhance the + # task with the prerequisites and actions from the rule. Set the + # source attribute of the task appropriately for the rule. Return + # the enhanced task or nil of no rule was found. + # + # source://rake//lib/rake/task_manager.rb#151 + def enhance_with_matching_rule(task_name, level = T.unsafe(nil)); end + + # source://rake//lib/rake/task_manager.rb#68 + def generate_did_you_mean_suggestions(task_name); end + + # source://rake//lib/rake/task_manager.rb#62 + def generate_message_for_undefined_task(task_name); end + + # Evaluate the block in a nested namespace named +name+. Create + # an anonymous namespace if +name+ is nil. + # + # source://rake//lib/rake/task_manager.rb#228 + def in_namespace(name); end + + # Lookup a task. Return an existing task if found, otherwise + # create a task of the current type. + # + # source://rake//lib/rake/task_manager.rb#49 + def intern(task_class, task_name); end + + # Track the last comment made in the Rakefile. + # + # source://rake//lib/rake/task_manager.rb#7 + def last_description; end + + # Track the last comment made in the Rakefile. + # + # source://rake//lib/rake/task_manager.rb#7 + def last_description=(_arg0); end + + # Lookup a task, using scope and the scope hints in the task name. + # This method performs straight lookups without trying to + # synthesize file tasks or rules. Special scope names (e.g. '^') + # are recognized. If no scope argument is supplied, use the + # current scope. Return nil if the task cannot be found. + # + # source://rake//lib/rake/task_manager.rb#192 + def lookup(task_name, initial_scope = T.unsafe(nil)); end + + # Resolve the arguments for a task/rule. Returns a tuple of + # [task_name, arg_name_list, prerequisites, order_only_prerequisites]. + # + # source://rake//lib/rake/task_manager.rb#88 + def resolve_args(args); end + + # source://rake//lib/rake/task_manager.rb#81 + def synthesize_file_task(task_name); end + + # List of all defined tasks in this application. + # + # source://rake//lib/rake/task_manager.rb#168 + def tasks; end + + # List of all the tasks defined in the given scope (and its + # sub-scopes). + # + # source://rake//lib/rake/task_manager.rb#174 + def tasks_in_scope(scope); end + + private + + # Add a location to the locations field of the given task. + # + # source://rake//lib/rake/task_manager.rb#241 + def add_location(task); end + + # Attempt to create a rule given the list of prerequisites. + # + # source://rake//lib/rake/task_manager.rb#271 + def attempt_rule(task_name, task_pattern, args, extensions, block, level); end + + # Find the location that called into the dsl layer. + # + # source://rake//lib/rake/task_manager.rb#248 + def find_location; end + + # Generate an anonymous namespace name. + # + # source://rake//lib/rake/task_manager.rb#259 + def generate_name; end + + # Return the current description, clearing it in the process. + # + # source://rake//lib/rake/task_manager.rb#319 + def get_description(task); end + + # Lookup the task name + # + # source://rake//lib/rake/task_manager.rb#208 + def lookup_in_scope(name, scope); end + + # Make a list of sources from the list of file name extensions / + # translation procs. + # + # source://rake//lib/rake/task_manager.rb#293 + def make_sources(task_name, task_pattern, extensions); end + + # Resolve task arguments for a task or rule when there are + # dependencies declared. + # + # The patterns recognized by this argument resolving function are: + # + # task :t, order_only: [:e] + # task :t => [:d] + # task :t => [:d], order_only: [:e] + # task :t, [a] => [:d] + # task :t, [a] => [:d], order_only: [:e] + # + # source://rake//lib/rake/task_manager.rb#127 + def resolve_args_with_dependencies(args, hash); end + + # Resolve task arguments for a task or rule when there are no + # dependencies declared. + # + # The patterns recognized by this argument resolving function are: + # + # task :t + # task :t, [:a] + # + # source://rake//lib/rake/task_manager.rb#105 + def resolve_args_without_dependencies(args); end + + # source://rake//lib/rake/task_manager.rb#265 + def trace_rule(level, message); end + + class << self + # source://rake//lib/rake/task_manager.rb#326 + def record_task_metadata; end + + # source://rake//lib/rake/task_manager.rb#326 + def record_task_metadata=(_arg0); end + end +end + +# source://rake//lib/rake/thread_history_display.rb#6 +class Rake::ThreadHistoryDisplay + include ::Rake::PrivateReader + extend ::Rake::PrivateReader::ClassMethods + + # @return [ThreadHistoryDisplay] a new instance of ThreadHistoryDisplay + # + # source://rake//lib/rake/thread_history_display.rb#11 + def initialize(stats); end + + # source://rake//lib/rake/thread_history_display.rb#17 + def show; end + + private + + # source://rake//lib/rake/private_reader.rb#15 + def items; end + + # source://rake//lib/rake/thread_history_display.rb#35 + def rename(hash, key, renames); end + + # source://rake//lib/rake/private_reader.rb#15 + def stats; end + + # source://rake//lib/rake/private_reader.rb#15 + def threads; end +end + +# source://rake//lib/rake/thread_pool.rb#7 +class Rake::ThreadPool + # Creates a ThreadPool object. The +thread_count+ parameter is the size + # of the pool. + # + # @return [ThreadPool] a new instance of ThreadPool + # + # source://rake//lib/rake/thread_pool.rb#11 + def initialize(thread_count); end + + # Creates a future executed by the +ThreadPool+. + # + # The args are passed to the block when executing (similarly to + # Thread#new) The return value is an object representing + # a future which has been created and added to the queue in the + # pool. Sending #value to the object will sleep the + # current thread until the future is finished and will return the + # result (or raise an exception thrown from the future) + # + # source://rake//lib/rake/thread_pool.rb#33 + def future(*args, &block); end + + # Enable the gathering of history events. + # + # source://rake//lib/rake/thread_pool.rb#68 + def gather_history; end + + # Return a array of history events for the thread pool. + # + # History gathering must be enabled to be able to see the events + # (see #gather_history). Best to call this when the job is + # complete (i.e. after ThreadPool#join is called). + # + # source://rake//lib/rake/thread_pool.rb#77 + def history; end + + # Waits until the queue of futures is empty and all threads have exited. + # + # source://rake//lib/rake/thread_pool.rb#44 + def join; end + + # Return a hash of always collected statistics for the thread pool. + # + # source://rake//lib/rake/thread_pool.rb#84 + def statistics; end + + private + + # for testing only + # + # source://rake//lib/rake/thread_pool.rb#158 + def __queue__; end + + # processes one item on the queue. Returns true if there was an + # item to process, false if there was no item + # + # source://rake//lib/rake/thread_pool.rb#95 + def process_queue_item; end + + # source://rake//lib/rake/thread_pool.rb#111 + def safe_thread_count; end + + # source://rake//lib/rake/thread_pool.rb#117 + def start_thread; end + + # source://rake//lib/rake/thread_pool.rb#145 + def stat(event, data = T.unsafe(nil)); end +end + +# source://rake//lib/rake/trace_output.rb#3 +module Rake::TraceOutput + # Write trace output to output stream +out+. + # + # The write is done as a single IO call (to print) to lessen the + # chance that the trace output is interrupted by other tasks also + # producing output. + # + # source://rake//lib/rake/trace_output.rb#10 + def trace_on(out, *strings); end +end + +# source://rake//lib/rake/version.rb#3 +Rake::VERSION = T.let(T.unsafe(nil), String) + +# source://rake//lib/rake/version.rb#5 +module Rake::Version; end + +# source://rake//lib/rake/version.rb#6 +Rake::Version::BUILD = T.let(T.unsafe(nil), String) + +# source://rake//lib/rake/version.rb#6 +Rake::Version::MAJOR = T.let(T.unsafe(nil), String) + +# source://rake//lib/rake/version.rb#6 +Rake::Version::MINOR = T.let(T.unsafe(nil), String) + +# source://rake//lib/rake/version.rb#8 +Rake::Version::NUMBERS = T.let(T.unsafe(nil), Array) + +# source://rake//lib/rake/version.rb#6 +Rake::Version::OTHER = T.let(T.unsafe(nil), Array) + +# Win 32 interface methods for Rake. Windows specific functionality +# will be placed here to collect that knowledge in one spot. +# +# source://rake//lib/rake/win32.rb#7 +module Rake::Win32 + class << self + # Normalize a win32 path so that the slashes are all forward slashes. + # + # source://rake//lib/rake/win32.rb#45 + def normalize(path); end + + # The standard directory containing system wide rake files on + # Win 32 systems. Try the following environment variables (in + # order): + # + # * HOME + # * HOMEDRIVE + HOMEPATH + # * APPDATA + # * USERPROFILE + # + # If the above are not defined, the return nil. + # + # @raise [Win32HomeError] + # + # source://rake//lib/rake/win32.rb#30 + def win32_system_dir; end + + # True if running on a windows system. + # + # @return [Boolean] + # + # source://rake//lib/rake/win32.rb#16 + def windows?; end + end +end + +# Error indicating a problem in locating the home directory on a +# Win32 system. +# +# source://rake//lib/rake/win32.rb#11 +class Rake::Win32::Win32HomeError < ::RuntimeError; end + +# source://rake//lib/rake.rb#71 +RakeFileUtils = Rake::FileUtilsExt + +# source://rake//lib/rake/ext/string.rb#4 +class String + include ::Comparable + + # source://rake//lib/rake/ext/string.rb#14 + def ext(newext = T.unsafe(nil)); end + + # source://rake//lib/rake/ext/string.rb#138 + def pathmap(spec = T.unsafe(nil), &block); end + + protected + + # source://rake//lib/rake/ext/string.rb#27 + def pathmap_explode; end + + # source://rake//lib/rake/ext/string.rb#41 + def pathmap_partial(n); end + + # source://rake//lib/rake/ext/string.rb#59 + def pathmap_replace(patterns, &block); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/rbi@0.1.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/rbi@0.1.1.rbi new file mode 100755 index 000000000..e3cb51e7e --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rbi@0.1.1.rbi @@ -0,0 +1,2926 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rbi` gem. +# Please instead update this file by running `bin/tapioca gem rbi`. + +# source://rbi//lib/rbi/loc.rb#4 +module RBI; end + +# source://rbi//lib/rbi/model.rb#968 +class RBI::Arg < ::RBI::Node + # source://rbi//lib/rbi/model.rb#980 + sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } + def initialize(value, loc: T.unsafe(nil)); end + + # source://rbi//lib/rbi/model.rb#986 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#613 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#991 + sig { returns(::String) } + def to_s; end + + # source://rbi//lib/rbi/model.rb#972 + sig { returns(::String) } + def value; end +end + +# Attributes +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#349 +class RBI::Attr < ::RBI::NodeWithComments + include ::RBI::Indexable + + abstract! + + # source://rbi//lib/rbi/model.rb#374 + sig do + params( + name: ::Symbol, + names: T::Array[::Symbol], + visibility: ::RBI::Visibility, + sigs: T::Array[::RBI::Sig], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment] + ).void + end + def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#348 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#412 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # @abstract + # + # source://rbi//lib/rbi/model.rb#382 + sig { abstract.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/index.rb#113 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#420 + sig { override.params(other: ::RBI::Node).void } + def merge_with(other); end + + # source://rbi//lib/rbi/model.rb#356 + sig { returns(T::Array[::Symbol]) } + def names; end + + # source://rbi//lib/rbi/printer.rb#375 + sig { override.returns(T::Boolean) } + def oneline?; end + + # source://rbi//lib/rbi/model.rb#362 + sig { returns(T::Array[::RBI::Sig]) } + def sigs; end + + # source://rbi//lib/rbi/model.rb#359 + sig { returns(::RBI::Visibility) } + def visibility; end + + # @return [Visibility] + # + # source://rbi//lib/rbi/model.rb#359 + def visibility=(_arg0); end +end + +# source://rbi//lib/rbi/model.rb#385 +class RBI::AttrAccessor < ::RBI::Attr + # source://rbi//lib/rbi/model.rb#399 + sig do + params( + name: ::Symbol, + names: ::Symbol, + visibility: ::RBI::Visibility, + sigs: T::Array[::RBI::Sig], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::AttrAccessor).void) + ).void + end + def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#452 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#405 + sig { override.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/model.rb#411 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#417 +class RBI::AttrReader < ::RBI::Attr + # source://rbi//lib/rbi/model.rb#431 + sig do + params( + name: ::Symbol, + names: ::Symbol, + visibility: ::RBI::Visibility, + sigs: T::Array[::RBI::Sig], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::AttrReader).void) + ).void + end + def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#434 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#437 + sig { override.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/model.rb#443 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#449 +class RBI::AttrWriter < ::RBI::Attr + # source://rbi//lib/rbi/model.rb#463 + sig do + params( + name: ::Symbol, + names: ::Symbol, + visibility: ::RBI::Visibility, + sigs: T::Array[::RBI::Sig], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::AttrWriter).void) + ).void + end + def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#443 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#469 + sig { override.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/model.rb#475 + sig { override.returns(::String) } + def to_s; end +end + +# An arbitrary blank line that can be added both in trees and comments +# +# source://rbi//lib/rbi/model.rb#74 +class RBI::BlankLine < ::RBI::Comment + # source://rbi//lib/rbi/model.rb#78 + sig { params(loc: T.nilable(::RBI::Loc)).void } + def initialize(loc: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#217 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end +end + +# source://rbi//lib/rbi/model.rb#741 +class RBI::BlockParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#752 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::BlockParam).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#763 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#543 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#548 + sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#758 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#218 +class RBI::Class < ::RBI::Scope + # source://rbi//lib/rbi/model.rb#236 + sig do + params( + name: ::String, + superclass_name: T.nilable(::String), + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Class).void) + ).void + end + def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#376 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#244 + sig { override.returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/model.rb#222 + sig { returns(::String) } + def name; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#222 + def name=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#284 + sig { override.params(v: ::RBI::Printer).void } + def print_header(v); end + + # source://rbi//lib/rbi/model.rb#225 + sig { returns(T.nilable(::String)) } + def superclass_name; end + + # @return [String, nil] + # + # source://rbi//lib/rbi/model.rb#225 + def superclass_name=(_arg0); end +end + +# source://rbi//lib/rbi/model.rb#53 +class RBI::Comment < ::RBI::Node + # source://rbi//lib/rbi/model.rb#60 + sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } + def initialize(text, loc: T.unsafe(nil)); end + + # source://rbi//lib/rbi/model.rb#66 + sig { params(other: ::Object).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#197 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#57 + sig { returns(::String) } + def text; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#57 + def text=(_arg0); end +end + +# A tree showing incompatibles nodes +# +# Is rendered as a merge conflict between `left` and` right`: +# ~~~rb +# class Foo +# <<<<<<< left +# def m1; end +# def m2(a); end +# ======= +# def m1(a); end +# def m2; end +# >>>>>>> right +# end +# ~~~ +# +# source://rbi//lib/rbi/rewriters/merge_trees.rb#589 +class RBI::ConflictTree < ::RBI::Tree + # source://rbi//lib/rbi/rewriters/merge_trees.rb#596 + sig { params(left_name: ::String, right_name: ::String).void } + def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#607 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 + sig { returns(::RBI::Tree) } + def left; end + + # @return [Tree] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 + def right; end +end + +# Consts +# +# source://rbi//lib/rbi/model.rb#312 +class RBI::Const < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#327 + sig do + params( + name: ::String, + value: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Const).void) + ).void + end + def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/printer.rb#335 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#335 + sig { returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/index.rb#103 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#316 + sig { returns(::String) } + def name; end + + # source://rbi//lib/rbi/model.rb#342 + sig { override.returns(::String) } + def to_s; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#316 + def value; end +end + +# source://rbi//lib/rbi/model.rb#816 +class RBI::Extend < ::RBI::Mixin + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#828 + sig do + params( + name: ::String, + names: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Extend).void) + ).void + end + def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#502 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/index.rb#143 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#834 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#137 +class RBI::File + # source://rbi//lib/rbi/model.rb#156 + sig do + params( + strictness: T.nilable(::String), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(file: ::RBI::File).void) + ).void + end + def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#164 + sig { params(node: ::RBI::Node).void } + def <<(node); end + + # source://rbi//lib/rbi/printer.rb#105 + sig { params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#147 + sig { returns(T::Array[::RBI::Comment]) } + def comments; end + + # @return [Array] + # + # source://rbi//lib/rbi/model.rb#147 + def comments=(_arg0); end + + # source://rbi//lib/rbi/model.rb#169 + sig { returns(T::Boolean) } + def empty?; end + + # source://rbi//lib/rbi/printer.rb#129 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + max_line_length: T.nilable(::Integer) + ).void + end + def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end + + # source://rbi//lib/rbi/model.rb#141 + sig { returns(::RBI::Tree) } + def root; end + + # @return [Tree] + # + # source://rbi//lib/rbi/model.rb#141 + def root=(_arg0); end + + # source://rbi//lib/rbi/model.rb#144 + sig { returns(T.nilable(::String)) } + def strictness; end + + # @return [String, nil] + # + # source://rbi//lib/rbi/model.rb#144 + def strictness=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#135 + sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } + def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end +end + +# source://rbi//lib/rbi/formatter.rb#5 +class RBI::Formatter + # source://rbi//lib/rbi/formatter.rb#36 + sig do + params( + add_sig_templates: T::Boolean, + group_nodes: T::Boolean, + max_line_length: T.nilable(::Integer), + nest_singleton_methods: T::Boolean, + nest_non_public_methods: T::Boolean, + sort_nodes: T::Boolean + ).void + end + def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_methods: T.unsafe(nil), sort_nodes: T.unsafe(nil)); end + + # source://rbi//lib/rbi/formatter.rb#15 + sig { params(add_sig_templates: T::Boolean).returns(T::Boolean) } + def add_sig_templates=(add_sig_templates); end + + # source://rbi//lib/rbi/formatter.rb#59 + sig { params(file: ::RBI::File).void } + def format_file(file); end + + # source://rbi//lib/rbi/formatter.rb#64 + sig { params(tree: ::RBI::Tree).void } + def format_tree(tree); end + + # source://rbi//lib/rbi/formatter.rb#18 + sig { params(group_nodes: T::Boolean).returns(T::Boolean) } + def group_nodes=(group_nodes); end + + # source://rbi//lib/rbi/formatter.rb#24 + sig { returns(T.nilable(::Integer)) } + def max_line_length; end + + # @return [Integer, nil] + # + # source://rbi//lib/rbi/formatter.rb#24 + def max_line_length=(_arg0); end + + # source://rbi//lib/rbi/formatter.rb#21 + sig { params(nest_non_public_methods: T::Boolean).returns(T::Boolean) } + def nest_non_public_methods=(nest_non_public_methods); end + + # source://rbi//lib/rbi/formatter.rb#12 + sig { params(nest_singleton_methods: T::Boolean).returns(T::Boolean) } + def nest_singleton_methods=(nest_singleton_methods); end + + # source://rbi//lib/rbi/formatter.rb#53 + sig { params(file: ::RBI::File).returns(::String) } + def print_file(file); end + + # source://rbi//lib/rbi/formatter.rb#9 + sig { params(sort_nodes: T::Boolean).returns(T::Boolean) } + def sort_nodes=(sort_nodes); end +end + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#88 +class RBI::Group < ::RBI::Tree + # source://rbi//lib/rbi/rewriters/group_nodes.rb#95 + sig { params(kind: ::RBI::Group::Kind).void } + def initialize(kind); end + + # source://rbi//lib/rbi/printer.rb#838 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/group_nodes.rb#92 + sig { returns(::RBI::Group::Kind) } + def kind; end +end + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#100 +class RBI::Group::Kind < ::T::Enum + enums do + Mixins = new + RequiredAncestors = new + Helpers = new + TypeMembers = new + MixesInClassMethods = new + Sends = new + Attrs = new + TStructFields = new + TEnums = new + Inits = new + Methods = new + SingletonClasses = new + Consts = new + end +end + +# Sorbet's misc. +# +# source://rbi//lib/rbi/model.rb#1294 +class RBI::Helper < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1308 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Helper).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/printer.rb#825 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#520 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/index.rb#173 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#1298 + sig { returns(::String) } + def name; end + + # source://rbi//lib/rbi/model.rb#1315 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#793 +class RBI::Include < ::RBI::Mixin + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#805 + sig do + params( + name: ::String, + names: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Include).void) + ).void + end + def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#493 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/index.rb#133 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#811 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/index.rb#5 +class RBI::Index < ::RBI::Visitor + # source://rbi//lib/rbi/index.rb#21 + sig { void } + def initialize; end + + # source://rbi//lib/rbi/index.rb#32 + sig { params(id: ::String).returns(T::Array[::RBI::Node]) } + def [](id); end + + # source://rbi//lib/rbi/index.rb#37 + sig { params(nodes: ::RBI::Node).void } + def index(*nodes); end + + # source://rbi//lib/rbi/index.rb#27 + sig { returns(T::Array[::String]) } + def keys; end + + # source://rbi//lib/rbi/index.rb#42 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # source://rbi//lib/rbi/index.rb#59 + sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } + def index_node(node); end + + class << self + # source://rbi//lib/rbi/index.rb#13 + sig { params(node: ::RBI::Node).returns(::RBI::Index) } + def index(*node); end + end +end + +# A Node that can be refered to by a unique ID inside an index +# +# @abstract Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/index.rb#74 +module RBI::Indexable + interface! + + # Unique IDs that refer to this node. + # + # Some nodes can have multiple ids, for example an attribute accessor matches the ID of the + # getter and the setter. + # + # @abstract + # + # source://rbi//lib/rbi/index.rb#85 + sig { abstract.returns(T::Array[::String]) } + def index_ids; end +end + +# source://rbi//lib/rbi/model.rb#996 +class RBI::KwArg < ::RBI::Arg + # source://rbi//lib/rbi/model.rb#1009 + sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } + def initialize(keyword, value, loc: T.unsafe(nil)); end + + # source://rbi//lib/rbi/model.rb#1015 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#622 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#1000 + sig { returns(::String) } + def keyword; end + + # source://rbi//lib/rbi/model.rb#1020 + sig { returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#682 +class RBI::KwOptParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#697 + sig do + params( + name: ::String, + value: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::KwOptParam).void) + ).void + end + def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#709 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#513 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#518 + sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#704 + sig { override.returns(::String) } + def to_s; end + + # source://rbi//lib/rbi/model.rb#686 + sig { returns(::String) } + def value; end +end + +# source://rbi//lib/rbi/model.rb#655 +class RBI::KwParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#666 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::KwParam).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#677 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#498 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#503 + sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#672 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#714 +class RBI::KwRestParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#725 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::KwRestParam).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#736 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#528 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#533 + sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#731 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/loc.rb#5 +class RBI::Loc + # source://rbi//lib/rbi/loc.rb#38 + sig do + params( + file: T.nilable(::String), + begin_line: T.nilable(::Integer), + end_line: T.nilable(::Integer), + begin_column: T.nilable(::Integer), + end_column: T.nilable(::Integer) + ).void + end + def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end + + # @return [Integer, nil] + # + # source://rbi//lib/rbi/loc.rb#27 + def begin_column; end + + # source://rbi//lib/rbi/loc.rb#27 + sig { returns(T.nilable(::Integer)) } + def begin_line; end + + # @return [Integer, nil] + # + # source://rbi//lib/rbi/loc.rb#27 + def end_column; end + + # @return [Integer, nil] + # + # source://rbi//lib/rbi/loc.rb#27 + def end_line; end + + # source://rbi//lib/rbi/loc.rb#24 + sig { returns(T.nilable(::String)) } + def file; end + + # source://rbi//lib/rbi/loc.rb#56 + sig { returns(T.nilable(::String)) } + def source; end + + # source://rbi//lib/rbi/loc.rb#47 + sig { returns(::String) } + def to_s; end + + class << self + # source://rbi//lib/rbi/loc.rb#12 + sig { params(file: ::String, yarp_location: ::Prism::Location).returns(::RBI::Loc) } + def from_yarp(file, yarp_location); end + end +end + +# A tree that _might_ contain conflicts +# +# source://rbi//lib/rbi/rewriters/merge_trees.rb#330 +class RBI::MergeTree < ::RBI::Tree + # source://rbi//lib/rbi/rewriters/merge_trees.rb#344 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + conflicts: T::Array[::RBI::Rewriters::Merge::Conflict], + block: T.nilable(T.proc.params(node: ::RBI::Tree).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#334 + sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } + def conflicts; end +end + +# Methods and args +# +# source://rbi//lib/rbi/model.rb#483 +class RBI::Method < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#513 + sig do + params( + name: ::String, + params: T::Array[::RBI::Param], + is_singleton: T::Boolean, + visibility: ::RBI::Visibility, + sigs: T::Array[::RBI::Sig], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Method).void) + ).void + end + def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#533 + sig { params(param: ::RBI::Param).void } + def <<(param); end + + # source://rbi//lib/rbi/printer.rb#384 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#461 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#538 + sig { returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/index.rb#123 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/printer.rb#437 + sig { returns(T::Boolean) } + def inline_params?; end + + # source://rbi//lib/rbi/model.rb#493 + sig { returns(T::Boolean) } + def is_singleton; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#493 + def is_singleton=(_arg0); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#470 + sig { override.params(other: ::RBI::Node).void } + def merge_with(other); end + + # source://rbi//lib/rbi/model.rb#487 + sig { returns(::String) } + def name; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#487 + def name=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#432 + sig { override.returns(T::Boolean) } + def oneline?; end + + # source://rbi//lib/rbi/model.rb#490 + sig { returns(T::Array[::RBI::Param]) } + def params; end + + # source://rbi//lib/rbi/model.rb#499 + sig { returns(T::Array[::RBI::Sig]) } + def sigs; end + + # @return [Array] + # + # source://rbi//lib/rbi/model.rb#499 + def sigs=(_arg0); end + + # source://rbi//lib/rbi/model.rb#547 + sig { override.returns(::String) } + def to_s; end + + # source://rbi//lib/rbi/model.rb#496 + sig { returns(::RBI::Visibility) } + def visibility; end + + # @return [Visibility] + # + # source://rbi//lib/rbi/model.rb#496 + def visibility=(_arg0); end +end + +# source://rbi//lib/rbi/model.rb#1355 +class RBI::MixesInClassMethods < ::RBI::Mixin + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1367 + sig do + params( + name: ::String, + names: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::MixesInClassMethods).void) + ).void + end + def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/index.rb#153 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#1373 + sig { override.returns(::String) } + def to_s; end +end + +# Mixins +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#770 +class RBI::Mixin < ::RBI::NodeWithComments + abstract! + + # source://rbi//lib/rbi/model.rb#787 + sig do + params( + name: ::String, + names: T::Array[::String], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment] + ).void + end + def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#558 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#484 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#777 + sig { returns(T::Array[::String]) } + def names; end +end + +# source://rbi//lib/rbi/model.rb#190 +class RBI::Module < ::RBI::Scope + # source://rbi//lib/rbi/model.rb#204 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Module).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#385 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#211 + sig { override.returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/model.rb#194 + sig { returns(::String) } + def name; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#194 + def name=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#270 + sig { override.params(v: ::RBI::Printer).void } + def print_header(v); end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#5 +class RBI::Node + abstract! + + # source://rbi//lib/rbi/model.rb#18 + sig { params(loc: T.nilable(::RBI::Loc)).void } + def initialize(loc: T.unsafe(nil)); end + + # @abstract + # + # source://rbi//lib/rbi/printer.rb#146 + sig { abstract.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # Can `self` and `_other` be merged into a single definition? + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#287 + sig { params(_other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(_other); end + + # source://rbi//lib/rbi/model.rb#24 + sig { void } + def detach; end + + # source://rbi//lib/rbi/rewriters/group_nodes.rb#48 + sig { returns(::RBI::Group::Kind) } + def group_kind; end + + # source://rbi//lib/rbi/model.rb#15 + sig { returns(T.nilable(::RBI::Loc)) } + def loc; end + + # @return [Loc, nil] + # + # source://rbi//lib/rbi/model.rb#15 + def loc=(_arg0); end + + # Merge `self` and `other` into a single definition + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#293 + sig { params(other: ::RBI::Node).void } + def merge_with(other); end + + # source://rbi//lib/rbi/printer.rb#179 + sig { returns(T::Boolean) } + def oneline?; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#296 + sig { returns(T.nilable(::RBI::ConflictTree)) } + def parent_conflict_tree; end + + # source://rbi//lib/rbi/model.rb#46 + sig { returns(T.nilable(::RBI::Scope)) } + def parent_scope; end + + # source://rbi//lib/rbi/model.rb#12 + sig { returns(T.nilable(::RBI::Tree)) } + def parent_tree; end + + # @return [Tree, nil] + # + # source://rbi//lib/rbi/model.rb#12 + def parent_tree=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#156 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + max_line_length: T.nilable(::Integer) + ).void + end + def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#169 + sig { params(v: ::RBI::Printer).void } + def print_blank_line_before(v); end + + # source://rbi//lib/rbi/model.rb#33 + sig { params(node: ::RBI::Node).void } + def replace(node); end + + # source://rbi//lib/rbi/printer.rb#162 + sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } + def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#83 +class RBI::NodeWithComments < ::RBI::Node + abstract! + + # source://rbi//lib/rbi/model.rb#93 + sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/model.rb#99 + sig { returns(T::Array[::String]) } + def annotations; end + + # source://rbi//lib/rbi/model.rb#90 + sig { returns(T::Array[::RBI::Comment]) } + def comments; end + + # @return [Array] + # + # source://rbi//lib/rbi/model.rb#90 + def comments=(_arg0); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#311 + sig { override.params(other: ::RBI::Node).void } + def merge_with(other); end + + # source://rbi//lib/rbi/printer.rb#188 + sig { override.returns(T::Boolean) } + def oneline?; end +end + +# source://rbi//lib/rbi/model.rb#601 +class RBI::OptParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#616 + sig do + params( + name: ::String, + value: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::OptParam).void) + ).void + end + def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#623 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#468 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#473 + sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#605 + sig { returns(::String) } + def value; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#552 +class RBI::Param < ::RBI::NodeWithComments + abstract! + + # source://rbi//lib/rbi/model.rb#568 + sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#446 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#459 + sig { returns(T::Array[::String]) } + def comments_lines; end + + # source://rbi//lib/rbi/model.rb#559 + sig { returns(::String) } + def name; end + + # source://rbi//lib/rbi/printer.rb#451 + sig { params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#574 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/parser.rb#7 +class RBI::ParseError < ::StandardError + # source://rbi//lib/rbi/parser.rb#14 + sig { params(message: ::String, location: ::RBI::Loc).void } + def initialize(message, location); end + + # source://rbi//lib/rbi/parser.rb#11 + sig { returns(::RBI::Loc) } + def location; end +end + +# source://rbi//lib/rbi/parser.rb#53 +class RBI::Parser + # source://rbi//lib/rbi/parser.rb#88 + sig { params(path: ::String).returns(::RBI::Tree) } + def parse_file(path); end + + # source://rbi//lib/rbi/parser.rb#83 + sig { params(string: ::String).returns(::RBI::Tree) } + def parse_string(string); end + + private + + # source://rbi//lib/rbi/parser.rb#95 + sig { params(source: ::String, file: ::String).returns(::RBI::Tree) } + def parse(source, file:); end + + class << self + # source://rbi//lib/rbi/parser.rb#65 + sig { params(path: ::String).returns(::RBI::Tree) } + def parse_file(path); end + + # source://rbi//lib/rbi/parser.rb#70 + sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) } + def parse_files(paths); end + + # source://rbi//lib/rbi/parser.rb#60 + sig { params(string: ::String).returns(::RBI::Tree) } + def parse_string(string); end + + # source://rbi//lib/rbi/parser.rb#76 + sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) } + def parse_strings(strings); end + end +end + +# source://rbi//lib/rbi/parser.rb#746 +class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor + # source://rbi//lib/rbi/parser.rb#753 + sig { params(content: ::String, file: ::String).void } + def initialize(content, file:); end + + # source://rbi//lib/rbi/parser.rb#750 + sig { returns(::RBI::Sig) } + def current; end + + # source://rbi//lib/rbi/parser.rb#805 + sig { override.params(node: ::Prism::AssocNode).void } + def visit_assoc_node(node); end + + # source://rbi//lib/rbi/parser.rb#760 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end +end + +# source://rbi//lib/rbi/parser.rb#155 +class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor + # source://rbi//lib/rbi/parser.rb#165 + sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void } + def initialize(source, comments:, file:); end + + # source://rbi//lib/rbi/parser.rb#162 + sig { returns(T.nilable(::Prism::Node)) } + def last_node; end + + # source://rbi//lib/rbi/parser.rb#159 + sig { returns(::RBI::Tree) } + def tree; end + + # source://rbi//lib/rbi/parser.rb#178 + sig { override.params(node: T.nilable(::Prism::Node)).void } + def visit(node); end + + # source://rbi//lib/rbi/parser.rb#295 + sig { params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://rbi//lib/rbi/parser.rb#186 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://rbi//lib/rbi/parser.rb#212 + sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void } + def visit_constant_assign(node); end + + # source://rbi//lib/rbi/parser.rb#207 + sig { override.params(node: ::Prism::ConstantPathWriteNode).void } + def visit_constant_path_write_node(node); end + + # source://rbi//lib/rbi/parser.rb#202 + sig { override.params(node: ::Prism::ConstantWriteNode).void } + def visit_constant_write_node(node); end + + # source://rbi//lib/rbi/parser.rb#245 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://rbi//lib/rbi/parser.rb#257 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://rbi//lib/rbi/parser.rb#272 + sig { override.params(node: ::Prism::ProgramNode).void } + def visit_program_node(node); end + + # source://rbi//lib/rbi/parser.rb#281 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # Collect all the remaining comments within a node + # + # source://rbi//lib/rbi/parser.rb#420 + sig { params(node: ::Prism::Node).void } + def collect_dangling_comments(node); end + + # Collect all the remaining comments after visiting the tree + # + # source://rbi//lib/rbi/parser.rb#438 + sig { void } + def collect_orphan_comments; end + + # source://rbi//lib/rbi/parser.rb#461 + sig { returns(::RBI::Tree) } + def current_scope; end + + # source://rbi//lib/rbi/parser.rb#466 + sig { returns(T::Array[::RBI::Sig]) } + def current_sigs; end + + # source://rbi//lib/rbi/parser.rb#473 + sig { returns(T::Array[::RBI::Comment]) } + def current_sigs_comments; end + + # source://rbi//lib/rbi/parser.rb#480 + sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) } + def node_comments(node); end + + # source://rbi//lib/rbi/parser.rb#498 + sig { params(node: ::Prism::Comment).returns(::RBI::Comment) } + def parse_comment(node); end + + # source://rbi//lib/rbi/parser.rb#527 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) } + def parse_params(node); end + + # source://rbi//lib/rbi/parser.rb#503 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) } + def parse_send_args(node); end + + # source://rbi//lib/rbi/parser.rb#603 + sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) } + def parse_sig(node); end + + # source://rbi//lib/rbi/parser.rb#613 + sig do + params( + node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode) + ).returns(T.nilable(::RBI::Struct)) + end + def parse_struct(node); end + + # source://rbi//lib/rbi/parser.rb#663 + sig { params(send: ::Prism::CallNode).void } + def parse_tstruct_field(send); end + + # source://rbi//lib/rbi/parser.rb#700 + sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) } + def parse_visibility(name, node); end + + # source://rbi//lib/rbi/parser.rb#714 + sig { void } + def separate_header_comments; end + + # source://rbi//lib/rbi/parser.rb#724 + sig { void } + def set_root_tree_loc; end + + # source://rbi//lib/rbi/parser.rb#738 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } + def type_variable_definition?(node); end +end + +# source://rbi//lib/rbi/parser.rb#124 +class RBI::Parser::Visitor < ::Prism::Visitor + # source://rbi//lib/rbi/parser.rb#128 + sig { params(source: ::String, file: ::String).void } + def initialize(source, file:); end + + private + + # source://rbi//lib/rbi/parser.rb#138 + sig { params(node: ::Prism::Node).returns(::RBI::Loc) } + def node_loc(node); end + + # source://rbi//lib/rbi/parser.rb#143 + sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) } + def node_string(node); end + + # source://rbi//lib/rbi/parser.rb#150 + sig { params(node: ::Prism::Node).returns(::String) } + def node_string!(node); end +end + +# source://rbi//lib/rbi/printer.rb#5 +class RBI::Printer < ::RBI::Visitor + # source://rbi//lib/rbi/printer.rb#28 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + max_line_length: T.nilable(::Integer) + ).void + end + def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#15 + sig { returns(::Integer) } + def current_indent; end + + # source://rbi//lib/rbi/printer.rb#46 + sig { void } + def dedent; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/printer.rb#9 + def in_visibility_group; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/printer.rb#9 + def in_visibility_group=(_arg0); end + + # Printing + # + # source://rbi//lib/rbi/printer.rb#41 + sig { void } + def indent; end + + # source://rbi//lib/rbi/printer.rb#18 + sig { returns(T.nilable(::Integer)) } + def max_line_length; end + + # source://rbi//lib/rbi/printer.rb#12 + sig { returns(T.nilable(::RBI::Node)) } + def previous_node; end + + # Print a string without indentation nor `\n` at the end. + # + # source://rbi//lib/rbi/printer.rb#52 + sig { params(string: ::String).void } + def print(string); end + + # source://rbi//lib/rbi/printer.rb#9 + sig { returns(T::Boolean) } + def print_locs; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/printer.rb#9 + def print_locs=(_arg0); end + + # Print a string with indentation and `\n` at the end. + # + # source://rbi//lib/rbi/printer.rb#72 + sig { params(string: ::String).void } + def printl(string); end + + # Print a string without indentation but with a `\n` at the end. + # + # source://rbi//lib/rbi/printer.rb#58 + sig { params(string: T.nilable(::String)).void } + def printn(string = T.unsafe(nil)); end + + # Print a string with indentation but without a `\n` at the end. + # + # source://rbi//lib/rbi/printer.rb#65 + sig { params(string: T.nilable(::String)).void } + def printt(string = T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#83 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + # source://rbi//lib/rbi/printer.rb#90 + sig { override.params(nodes: T::Array[::RBI::Node]).void } + def visit_all(nodes); end + + # source://rbi//lib/rbi/printer.rb#78 + sig { params(file: ::RBI::File).void } + def visit_file(file); end +end + +# source://rbi//lib/rbi/model.rb#909 +class RBI::Private < ::RBI::Visibility + # source://rbi//lib/rbi/model.rb#919 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Private).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end +end + +# source://rbi//lib/rbi/model.rb#893 +class RBI::Protected < ::RBI::Visibility + # source://rbi//lib/rbi/model.rb#903 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Protected).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end +end + +# source://rbi//lib/rbi/model.rb#877 +class RBI::Public < ::RBI::Visibility + # source://rbi//lib/rbi/model.rb#887 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Public).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end +end + +# source://rbi//lib/rbi/model.rb#579 +class RBI::ReqParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#590 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::ReqParam).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#596 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end +end + +# source://rbi//lib/rbi/model.rb#1378 +class RBI::RequiresAncestor < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1391 + sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#870 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/index.rb#163 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#1382 + sig { returns(::String) } + def name; end + + # source://rbi//lib/rbi/model.rb#1397 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#628 +class RBI::RestParam < ::RBI::Param + # source://rbi//lib/rbi/model.rb#639 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::RestParam).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#650 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#483 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#488 + sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # source://rbi//lib/rbi/model.rb#645 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#5 +module RBI::Rewriters; end + +# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 +class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#10 + sig { params(with_todo_comment: T::Boolean).void } + def initialize(with_todo_comment: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#16 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#30 + sig { params(attr: ::RBI::Attr).void } + def add_attr_sig(attr); end + + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#45 + sig { params(method: ::RBI::Method).void } + def add_method_sig(method); end + + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#56 + sig { params(node: ::RBI::NodeWithComments).void } + def add_todo_comment(node); end +end + +# source://rbi//lib/rbi/rewriters/annotate.rb#6 +class RBI::Rewriters::Annotate < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/annotate.rb#10 + sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } + def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/annotate.rb#18 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # source://rbi//lib/rbi/rewriters/annotate.rb#31 + sig { params(node: ::RBI::NodeWithComments).void } + def annotate_node(node); end + + # source://rbi//lib/rbi/rewriters/annotate.rb#38 + sig { params(node: ::RBI::Node).returns(T::Boolean) } + def root?(node); end +end + +# source://rbi//lib/rbi/rewriters/deannotate.rb#6 +class RBI::Rewriters::Deannotate < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/deannotate.rb#10 + sig { params(annotation: ::String).void } + def initialize(annotation); end + + # source://rbi//lib/rbi/rewriters/deannotate.rb#16 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # source://rbi//lib/rbi/rewriters/deannotate.rb#27 + sig { params(node: ::RBI::NodeWithComments).void } + def deannotate_node(node); end +end + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#6 +class RBI::Rewriters::GroupNodes < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/group_nodes.rb#10 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end +end + +# Merge two RBI trees together +# +# Be this `Tree`: +# ~~~rb +# class Foo +# attr_accessor :a +# def m; end +# C = 10 +# end +# ~~~ +# +# Merged with this one: +# ~~~rb +# class Foo +# attr_reader :a +# def m(x); end +# C = 10 +# end +# ~~~ +# +# Compatible definitions are merged together while incompatible definitions are moved into a `ConflictTree`: +# ~~~rb +# class Foo +# <<<<<<< left +# attr_accessor :a +# def m; end +# ======= +# attr_reader :a +# def m(x); end +# >>>>>>> right +# C = 10 +# end +# ~~~ +# +# source://rbi//lib/rbi/rewriters/merge_trees.rb#39 +class RBI::Rewriters::Merge + # source://rbi//lib/rbi/rewriters/merge_trees.rb#70 + sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void } + def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#79 + sig { params(tree: ::RBI::Tree).void } + def merge(tree); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#67 + sig { returns(::RBI::MergeTree) } + def tree; end + + class << self + # source://rbi//lib/rbi/rewriters/merge_trees.rb#54 + sig do + params( + left: ::RBI::Tree, + right: ::RBI::Tree, + left_name: ::String, + right_name: ::String, + keep: ::RBI::Rewriters::Merge::Keep + ).returns(::RBI::MergeTree) + end + def merge_trees(left, right, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end + end +end + +# Used for logging / error displaying purpose +# +# source://rbi//lib/rbi/rewriters/merge_trees.rb#86 +class RBI::Rewriters::Merge::Conflict < ::T::Struct + const :left, ::RBI::Node + const :right, ::RBI::Node + const :left_name, ::String + const :right_name, ::String + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#95 + sig { returns(::String) } + def to_s; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# Merge adjacent conflict trees +# +# Transform this: +# ~~~rb +# class Foo +# <<<<<<< left +# def m1; end +# ======= +# def m1(a); end +# >>>>>>> right +# <<<<<<< left +# def m2(a); end +# ======= +# def m2; end +# >>>>>>> right +# end +# ~~~ +# +# Into this: +# ~~~rb +# class Foo +# <<<<<<< left +# def m1; end +# def m2(a); end +# ======= +# def m1(a); end +# def m2; end +# >>>>>>> right +# end +# ~~~ +# +# source://rbi//lib/rbi/rewriters/merge_trees.rb#245 +class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#252 + sig { override.params(nodes: T::Array[::RBI::Node]).void } + def visit_all(nodes); end + + private + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#273 + sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void } + def merge_conflict_trees(left, right); end +end + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#42 +class RBI::Rewriters::Merge::Keep < ::T::Enum + enums do + NONE = new + LEFT = new + RIGHT = new + end +end + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#100 +class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/merge_trees.rb#107 + sig do + params( + output: ::RBI::Tree, + left_name: ::String, + right_name: ::String, + keep: ::RBI::Rewriters::Merge::Keep + ).void + end + def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#104 + sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } + def conflicts; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#119 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#168 + sig { returns(::RBI::Tree) } + def current_scope; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 + sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } + def make_conflict_scope(left, right); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#192 + sig { params(left: ::RBI::Node, right: ::RBI::Node).void } + def make_conflict_tree(left, right); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#173 + sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } + def previous_definition(node); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#204 + sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) } + def replace_scope_header(left, right); end +end + +# source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#6 +class RBI::Rewriters::NestNonPublicMethods < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#10 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end +end + +# source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 +class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#10 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end +end + +# Remove all definitions existing in the index from the current tree +# +# Let's create an `Index` from two different `Tree`s: +# ~~~rb +# tree1 = Parse.parse_string(<<~RBI) +# class Foo +# def foo; end +# end +# RBI +# +# tree2 = Parse.parse_string(<<~RBI) +# FOO = 10 +# RBI +# +# index = Index.index(tree1, tree2) +# ~~~ +# +# We can use `RemoveKnownDefinitions` to remove the definitions found in the `index` from the `Tree` to clean: +# ~~~rb +# tree_to_clean = Parser.parse_string(<<~RBI) +# class Foo +# def foo; end +# def bar; end +# end +# FOO = 10 +# BAR = 42 +# RBI +# +# cleaned_tree, operations = RemoveKnownDefinitions.remove(tree_to_clean, index) +# +# assert_equal(<<~RBI, cleaned_tree) +# class Foo +# def bar; end +# end +# BAR = 42 +# RBI +# +# assert_equal(<<~OPERATIONS, operations.join("\n")) +# Deleted ::Foo#foo at -:2:2-2-16 (duplicate from -:2:2-2:16) +# Deleted ::FOO at -:5:0-5:8 (duplicate from -:1:0-1:8) +# OPERATIONS +# ~~~ +# +# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48 +class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#55 + sig { params(index: ::RBI::Index).void } + def initialize(index); end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#52 + sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } + def operations; end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#83 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#78 + sig { params(nodes: T::Array[::RBI::Node]).void } + def visit_all(nodes); end + + private + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#111 + sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) } + def can_delete_node?(node, previous); end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#129 + sig { params(node: ::RBI::Node, previous: ::RBI::Node).void } + def delete_node(node, previous); end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#102 + sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) } + def previous_definition_for(node); end + + class << self + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#70 + sig do + params( + tree: ::RBI::Tree, + index: ::RBI::Index + ).returns([::RBI::Tree, T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]]) + end + def remove(tree, index); end + end +end + +# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#134 +class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct + const :deleted_node, ::RBI::Node + const :duplicate_of, ::RBI::Node + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#141 + sig { returns(::String) } + def to_s; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://rbi//lib/rbi/rewriters/sort_nodes.rb#6 +class RBI::Rewriters::SortNodes < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#10 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#73 + sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } + def group_rank(kind); end + + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#94 + sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } + def node_name(node); end + + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#45 + sig { params(node: ::RBI::Node).returns(::Integer) } + def node_rank(node); end + + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#106 + sig { params(node: ::RBI::Node).void } + def sort_node_names!(node); end +end + +# Scopes +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#176 +class RBI::Scope < ::RBI::Tree + include ::RBI::Indexable + + abstract! + + # source://rbi//lib/rbi/printer.rb#242 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # Duplicate `self` scope without its body + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#356 + sig { returns(T.self_type) } + def dup_empty; end + + # @abstract + # + # source://rbi//lib/rbi/model.rb#182 + sig { abstract.returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/index.rb#93 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/printer.rb#256 + sig { params(v: ::RBI::Printer).void } + def print_body(v); end + + # @abstract + # + # source://rbi//lib/rbi/printer.rb#253 + sig { abstract.params(v: ::RBI::Printer).void } + def print_header(v); end + + # source://rbi//lib/rbi/model.rb#185 + sig { override.returns(::String) } + def to_s; end +end + +# A conflict between two scope headers +# +# Is rendered as a merge conflict between `left` and` right` for scope definitions: +# ~~~rb +# <<<<<<< left +# class Foo +# ======= +# module Foo +# >>>>>>> right +# def m1; end +# end +# ~~~ +# +# source://rbi//lib/rbi/rewriters/merge_trees.rb#628 +class RBI::ScopeConflict < ::RBI::Tree + # source://rbi//lib/rbi/rewriters/merge_trees.rb#642 + sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } + def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#651 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#632 + sig { returns(::RBI::Scope) } + def left; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#667 + sig { override.returns(T::Boolean) } + def oneline?; end + + # @return [Scope] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#632 + def right; end +end + +# Sends +# +# source://rbi//lib/rbi/model.rb#927 +class RBI::Send < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#945 + sig do + params( + method: ::String, + args: T::Array[::RBI::Arg], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Send).void) + ).void + end + def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#953 + sig { params(arg: ::RBI::Arg).void } + def <<(arg); end + + # source://rbi//lib/rbi/model.rb#958 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#592 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#934 + sig { returns(T::Array[::RBI::Arg]) } + def args; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#529 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/index.rb#193 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#931 + sig { returns(::String) } + def method; end + + # source://rbi//lib/rbi/model.rb#963 + sig { returns(::String) } + def to_s; end +end + +# Sorbet's sigs +# +# source://rbi//lib/rbi/model.rb#1027 +class RBI::Sig < ::RBI::Node + # source://rbi//lib/rbi/model.rb#1059 + sig do + params( + params: T::Array[::RBI::SigParam], + return_type: T.nilable(::String), + is_abstract: T::Boolean, + is_override: T::Boolean, + is_overridable: T::Boolean, + is_final: T::Boolean, + type_params: T::Array[::String], + checked: T.nilable(::Symbol), + loc: T.nilable(::RBI::Loc), + block: T.nilable(T.proc.params(node: ::RBI::Sig).void) + ).void + end + def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#1084 + sig { params(param: ::RBI::SigParam).void } + def <<(param); end + + # source://rbi//lib/rbi/model.rb#1089 + sig { params(other: ::Object).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#633 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#1043 + sig { returns(T.nilable(::Symbol)) } + def checked; end + + # @return [Symbol, nil] + # + # source://rbi//lib/rbi/model.rb#1043 + def checked=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#656 + sig { returns(T::Boolean) } + def inline_params?; end + + # source://rbi//lib/rbi/model.rb#1037 + sig { returns(T::Boolean) } + def is_abstract; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_abstract=(_arg0); end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_final; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_final=(_arg0); end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_overridable; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_overridable=(_arg0); end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_override; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#1037 + def is_override=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#651 + sig { override.returns(T::Boolean) } + def oneline?; end + + # source://rbi//lib/rbi/model.rb#1031 + sig { returns(T::Array[::RBI::SigParam]) } + def params; end + + # source://rbi//lib/rbi/model.rb#1034 + sig { returns(T.nilable(::String)) } + def return_type; end + + # @return [String, nil] + # + # source://rbi//lib/rbi/model.rb#1034 + def return_type=(_arg0); end + + # source://rbi//lib/rbi/model.rb#1040 + sig { returns(T::Array[::String]) } + def type_params; end + + private + + # source://rbi//lib/rbi/printer.rb#698 + sig { params(v: ::RBI::Printer).void } + def print_as_block(v); end + + # source://rbi//lib/rbi/printer.rb#674 + sig { params(v: ::RBI::Printer).void } + def print_as_line(v); end + + # source://rbi//lib/rbi/printer.rb#663 + sig { returns(T::Array[::String]) } + def sig_modifiers; end +end + +# source://rbi//lib/rbi/model.rb#1098 +class RBI::SigParam < ::RBI::NodeWithComments + # source://rbi//lib/rbi/model.rb#1113 + sig do + params( + name: ::String, + type: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::SigParam).void) + ).void + end + def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#1121 + sig { params(other: ::Object).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#751 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#764 + sig { returns(T::Array[::String]) } + def comments_lines; end + + # source://rbi//lib/rbi/model.rb#1102 + sig { returns(::String) } + def name; end + + # source://rbi//lib/rbi/printer.rb#756 + sig { params(v: ::RBI::Printer, last: T::Boolean).void } + def print_comment_leading_space(v, last:); end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#1102 + def type; end +end + +# source://rbi//lib/rbi/model.rb#251 +class RBI::SingletonClass < ::RBI::Scope + # source://rbi//lib/rbi/model.rb#261 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::SingletonClass).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#267 + sig { override.returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/printer.rb#321 + sig { override.params(v: ::RBI::Printer).void } + def print_header(v); end +end + +# source://rbi//lib/rbi/model.rb#272 +class RBI::Struct < ::RBI::Scope + # source://rbi//lib/rbi/model.rb#294 + sig do + params( + name: ::String, + members: T::Array[::Symbol], + keyword_init: T::Boolean, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(struct: ::RBI::Struct).void) + ).void + end + def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#303 + sig { override.returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/model.rb#282 + sig { returns(T::Boolean) } + def keyword_init; end + + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#282 + def keyword_init=(_arg0); end + + # source://rbi//lib/rbi/model.rb#279 + sig { returns(T::Array[::Symbol]) } + def members; end + + # @return [Array] + # + # source://rbi//lib/rbi/model.rb#279 + def members=(_arg0); end + + # source://rbi//lib/rbi/model.rb#276 + sig { returns(::String) } + def name; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#276 + def name=(_arg0); end + + # source://rbi//lib/rbi/printer.rb#300 + sig { override.params(v: ::RBI::Printer).void } + def print_header(v); end +end + +# Sorbet's T::Enum +# +# source://rbi//lib/rbi/model.rb#1239 +class RBI::TEnum < ::RBI::Class + # source://rbi//lib/rbi/model.rb#1250 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(klass: ::RBI::TEnum).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end +end + +# source://rbi//lib/rbi/model.rb#1256 +class RBI::TEnumBlock < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1270 + sig do + params( + names: T::Array[::String], + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::TEnumBlock).void) + ).void + end + def initialize(names = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#1282 + sig { params(name: ::String).void } + def <<(name); end + + # source://rbi//lib/rbi/printer.rb#795 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#1277 + sig { returns(T::Boolean) } + def empty?; end + + # source://rbi//lib/rbi/index.rb#223 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#556 + sig { override.params(other: ::RBI::Node).void } + def merge_with(other); end + + # source://rbi//lib/rbi/model.rb#1260 + sig { returns(T::Array[::String]) } + def names; end + + # source://rbi//lib/rbi/model.rb#1287 + sig { override.returns(::String) } + def to_s; end +end + +# Sorbet's T::Struct +# +# source://rbi//lib/rbi/model.rb#1128 +class RBI::TStruct < ::RBI::Class + # source://rbi//lib/rbi/model.rb#1139 + sig do + params( + name: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(klass: ::RBI::TStruct).void) + ).void + end + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end +end + +# source://rbi//lib/rbi/model.rb#1177 +class RBI::TStructConst < ::RBI::TStructField + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1190 + sig do + params( + name: ::String, + type: ::String, + default: T.nilable(::String), + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::TStructConst).void) + ).void + end + def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#547 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#1196 + sig { override.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/index.rb#203 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#1202 + sig { override.returns(::String) } + def to_s; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#1145 +class RBI::TStructField < ::RBI::NodeWithComments + abstract! + + # source://rbi//lib/rbi/model.rb#1166 + sig do + params( + name: ::String, + type: ::String, + default: T.nilable(::String), + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment] + ).void + end + def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/printer.rb#773 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#538 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#1155 + sig { returns(T.nilable(::String)) } + def default; end + + # @return [String, nil] + # + # source://rbi//lib/rbi/model.rb#1155 + def default=(_arg0); end + + # @abstract + # + # source://rbi//lib/rbi/model.rb#1174 + sig { abstract.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/model.rb#1152 + sig { returns(::String) } + def name; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#1152 + def name=(_arg0); end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#1152 + def type; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#1152 + def type=(_arg0); end +end + +# source://rbi//lib/rbi/model.rb#1207 +class RBI::TStructProp < ::RBI::TStructField + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1220 + sig do + params( + name: ::String, + type: ::String, + default: T.nilable(::String), + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::TStructProp).void) + ).void + end + def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#570 + sig { override.params(other: ::RBI::Node).returns(T::Boolean) } + def compatible_with?(other); end + + # source://rbi//lib/rbi/model.rb#1226 + sig { override.returns(T::Array[::String]) } + def fully_qualified_names; end + + # source://rbi//lib/rbi/index.rb#213 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#1232 + sig { override.returns(::String) } + def to_s; end +end + +# source://rbi//lib/rbi/model.rb#106 +class RBI::Tree < ::RBI::NodeWithComments + # source://rbi//lib/rbi/model.rb#119 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Tree).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/model.rb#126 + sig { params(node: ::RBI::Node).void } + def <<(node); end + + # source://rbi//lib/rbi/printer.rb#226 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#66 + sig { params(with_todo_comment: T::Boolean).void } + def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/annotate.rb#49 + sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } + def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#38 + sig do + params( + name: ::String, + superclass_name: T.nilable(::String), + block: T.nilable(T.proc.params(scope: ::RBI::Scope).void) + ).returns(::RBI::Scope) + end + def create_class(name, superclass_name: T.unsafe(nil), &block); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#45 + sig { params(name: ::String, value: ::String).void } + def create_constant(name, value:); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#55 + sig { params(name: ::String).void } + def create_extend(name); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#50 + sig { params(name: ::String).void } + def create_include(name); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#89 + sig do + params( + name: ::String, + parameters: T::Array[::RBI::TypedParam], + return_type: ::String, + class_method: T::Boolean, + visibility: ::RBI::Visibility, + comments: T::Array[::RBI::Comment] + ).void + end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#60 + sig { params(name: ::String).void } + def create_mixes_in_class_methods(name); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#25 + sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } + def create_module(name, &block); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#9 + sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } + def create_path(constant, &block); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#74 + sig do + params( + name: ::String, + type: ::String, + variance: ::Symbol, + fixed: T.nilable(::String), + upper: T.nilable(::String), + lower: T.nilable(::String) + ).void + end + def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/deannotate.rb#41 + sig { params(annotation: ::String).void } + def deannotate!(annotation); end + + # source://rbi//lib/rbi/model.rb#132 + sig { returns(T::Boolean) } + def empty?; end + + # source://rbi//lib/rbi/rewriters/group_nodes.rb#38 + sig { void } + def group_nodes!; end + + # source://rbi//lib/rbi/index.rb#68 + sig { returns(::RBI::Index) } + def index; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#324 + sig do + params( + other: ::RBI::Tree, + left_name: ::String, + right_name: ::String, + keep: ::RBI::Rewriters::Merge::Keep + ).returns(::RBI::MergeTree) + end + def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end + + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#46 + sig { void } + def nest_non_public_methods!; end + + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#36 + sig { void } + def nest_singleton_methods!; end + + # source://rbi//lib/rbi/model.rb#110 + sig { returns(T::Array[::RBI::Node]) } + def nodes; end + + # source://rbi//lib/rbi/printer.rb#233 + sig { override.returns(T::Boolean) } + def oneline?; end + + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#119 + sig { void } + def sort_nodes!; end + + private + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#116 + sig { params(node: ::RBI::Node).returns(::RBI::Node) } + def create_node(node); end + + # source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#111 + sig { returns(T::Hash[::String, ::RBI::Node]) } + def nodes_cache; end +end + +# source://rbi//lib/rbi/model.rb#1320 +class RBI::TypeMember < ::RBI::NodeWithComments + include ::RBI::Indexable + + # source://rbi//lib/rbi/model.rb#1335 + sig do + params( + name: ::String, + value: ::String, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::TypeMember).void) + ).void + end + def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi//lib/rbi/printer.rb#812 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#1343 + sig { returns(::String) } + def fully_qualified_name; end + + # source://rbi//lib/rbi/index.rb#183 + sig { override.returns(T::Array[::String]) } + def index_ids; end + + # source://rbi//lib/rbi/model.rb#1324 + sig { returns(::String) } + def name; end + + # source://rbi//lib/rbi/model.rb#1350 + sig { override.returns(::String) } + def to_s; end + + # @return [String] + # + # source://rbi//lib/rbi/model.rb#1324 + def value; end +end + +# source://rbi//lib/rbi/parser.rb#20 +class RBI::UnexpectedParserError < ::StandardError + # source://rbi//lib/rbi/parser.rb#27 + sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } + def initialize(parent_exception, last_location); end + + # source://rbi//lib/rbi/parser.rb#24 + sig { returns(::RBI::Loc) } + def last_location; end + + # source://rbi//lib/rbi/parser.rb#34 + sig { params(io: T.any(::IO, ::StringIO)).void } + def print_debug(io: T.unsafe(nil)); end +end + +# source://rbi//lib/rbi/version.rb#5 +RBI::VERSION = T.let(T.unsafe(nil), String) + +# Visibility +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/model.rb#841 +class RBI::Visibility < ::RBI::NodeWithComments + abstract! + + # source://rbi//lib/rbi/model.rb#851 + sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://rbi//lib/rbi/model.rb#857 + sig { params(other: ::RBI::Visibility).returns(T::Boolean) } + def ==(other); end + + # source://rbi//lib/rbi/printer.rb#579 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/model.rb#872 + sig { returns(T::Boolean) } + def private?; end + + # source://rbi//lib/rbi/model.rb#867 + sig { returns(T::Boolean) } + def protected?; end + + # source://rbi//lib/rbi/model.rb#862 + sig { returns(T::Boolean) } + def public?; end + + # source://rbi//lib/rbi/model.rb#848 + sig { returns(::Symbol) } + def visibility; end +end + +# source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#52 +class RBI::VisibilityGroup < ::RBI::Tree + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#59 + sig { params(visibility: ::RBI::Visibility).void } + def initialize(visibility); end + + # source://rbi//lib/rbi/printer.rb#848 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi//lib/rbi/printer.rb#861 + sig { override.returns(T::Boolean) } + def oneline?; end + + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#56 + sig { returns(::RBI::Visibility) } + def visibility; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://rbi//lib/rbi/visitor.rb#5 +class RBI::Visitor + abstract! + + # @abstract + # + # source://rbi//lib/rbi/visitor.rb#12 + sig { abstract.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + # source://rbi//lib/rbi/visitor.rb#15 + sig { params(nodes: T::Array[::RBI::Node]).void } + def visit_all(nodes); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/regexp_parser@2.8.2.rbi b/ruby-client-sdk/sorbet/rbi/gems/regexp_parser@2.8.2.rbi new file mode 100755 index 000000000..80a6a1f4c --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/regexp_parser@2.8.2.rbi @@ -0,0 +1,3749 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `regexp_parser` gem. +# Please instead update this file by running `bin/tapioca gem regexp_parser`. + +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#1 +module Regexp::Expression; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5 +class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def alternatives; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#9 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#6 +Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative + +# A sequence of expressions, used by Alternation as one of its alternatives. +# +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#3 +class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#10 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#2 +module Regexp::Expression::Anchor; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#18 +Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#20 +Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#3 +class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#5 +class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#11 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#8 +class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#12 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#19 +Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#21 +Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#22 +Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#6 +class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#13 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#9 +class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#14 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#11 +class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#15 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#16 +class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#16 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#14 +class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13 +class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#18 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#64 +module Regexp::Expression::Assertion; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#65 +class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#67 +class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#19 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#70 +class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#20 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#68 +class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71 +class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22 + def human_name; end +end + +# alias for symmetry between token symbol and Expression class name +# +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#74 +Regexp::Expression::Backref = Regexp::Expression::Backreference + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#2 +module Regexp::Expression::Backreference; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#3 +class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#155 + def match_length; end + + # Returns the value of attribute referenced_expression. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4 + def referenced_expression; end + + # Sets the attribute referenced_expression + # + # @param value the value to set the attribute referenced_expression to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4 + def referenced_expression=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#6 + def initialize_copy(orig); end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#140 + def referential?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 +class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base + # @return [Name] a new instance of Name + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#38 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#23 + def human_name; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#35 + def name; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#35 + def reference; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#50 +class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#24 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#62 +class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name + # @return [NameRecursionLevel] a new instance of NameRecursionLevel + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#65 + def initialize(token, options = T.unsafe(nil)); end + + # Returns the value of attribute recursion_level. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#63 + def recursion_level; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#24 +class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base + # @return [Number] a new instance of Number + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#28 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#25 + def human_name; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#25 + def number; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#25 + def reference; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#49 +class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#27 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#51 +class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#28 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#53 +class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::NumberRelative + # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#56 + def initialize(token, options = T.unsafe(nil)); end + + # Returns the value of attribute recursion_level. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#54 + def recursion_level; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#44 +class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number + # Returns the value of attribute effective_number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + def effective_number; end + + # Sets the attribute effective_number + # + # @param value the value to set the attribute effective_number to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + def effective_number=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#26 + def human_name; end + + # Returns the value of attribute effective_number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + def reference; end +end + +# source://regexp_parser//lib/regexp_parser/expression/base.rb#2 +class Regexp::Expression::Base + include ::Regexp::Expression::Shared + extend ::Regexp::Expression::Shared::ClassMethods + + # @return [Base] a new instance of Base + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + def =~(string, offset = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + def a?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + def ascii_classes?; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#60 + def attributes; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + def case_insensitive?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def custom_to_s_handling; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def custom_to_s_handling=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + def d?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + def default_classes?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + def extended?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + def free_spacing?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#47 + def greedy?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + def i?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + def ignore_case?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#51 + def lazy?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + def m?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + def match(string, offset = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + def match?(string); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + def matches?(string); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + def multiline?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + def nesting_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def parent; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def parent=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#56 + def possessive?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def pre_quantifier_decorations; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def pre_quantifier_decorations=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + def quantifier; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#17 + def quantify(*args); end + + # Deprecated. Prefer `#repetitions` which has a more uniform interface. + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#26 + def quantity; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#51 + def reluctant?; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#31 + def repetitions; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level=(_arg0); end + + # %l Level (depth) of the expression. Returns 'root' for the root + # expression, returns zero or higher for all others. + # + # %> Indentation at expression's level. + # + # %x Index of the expression at its depth. Available when using + # the sprintf_tree method only. + # + # %s Start offset within the whole expression. + # %e End offset within the whole expression. + # %S Length of expression. + # + # %o Coded offset and length, same as '@%s+%S' + # + # %y Type of expression. + # %k Token of expression. + # %i ID, same as '%y:%k' + # %c Class name + # + # %q Quantifier info, as {m[,M]} + # %Q Quantifier text + # + # %z Quantifier min + # %Z Quantifier max + # + # %t Base text of the expression (excludes quantifier, if any) + # %~t Full text if the expression is terminal, otherwise %i + # %T Full text of the expression (includes quantifier, if any) + # + # %b Basic info, same as '%o %i' + # %m Most info, same as '%b %q' + # %a All info, same as '%m %t' + # + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end + + # %l Level (depth) of the expression. Returns 'root' for the root + # expression, returns zero or higher for all others. + # + # %> Indentation at expression's level. + # + # %x Index of the expression at its depth. Available when using + # the sprintf_tree method only. + # + # %s Start offset within the whole expression. + # %e End offset within the whole expression. + # %S Length of expression. + # + # %o Coded offset and length, same as '@%s+%S' + # + # %y Type of expression. + # %k Token of expression. + # %i ID, same as '%y:%k' + # %c Class name + # + # %q Quantifier info, as {m[,M]} + # %Q Quantifier text + # + # %z Quantifier min + # %Z Quantifier max + # + # %t Base text of the expression (excludes quantifier, if any) + # %~t Full text if the expression is terminal, otherwise %i + # %T Full text of the expression (includes quantifier, if any) + # + # %b Basic info, same as '%o %i' + # %m Most info, same as '%b %q' + # %a All info, same as '%m %t' + # + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#60 + def to_h; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#9 + def to_re(format = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + def u?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + def unicode_classes?; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#21 + def unquantified_clone; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + def x?; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#2 +class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression + # @return [CharacterSet] a new instance of CharacterSet + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#9 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#19 + def close; end + + # Returns the value of attribute closed. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def closed; end + + # Sets the attribute closed + # + # @param value the value to set the attribute closed to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def closed=(_arg0); end + + # Returns the value of attribute closed. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def closed?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#15 + def negate; end + + # Returns the value of attribute negative. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negated?; end + + # Returns the value of attribute negative. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negative; end + + # Sets the attribute negative + # + # @param value the value to set the attribute negative to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negative=(_arg0); end + + # Returns the value of attribute negative. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negative?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#15 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#3 +class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#5 +class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#6 +Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#3 +class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#8 + def <<(exp); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#14 + def complete?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#16 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4 + def ts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#2 +module Regexp::Expression::CharacterType; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#5 +class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#32 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#3 +class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6 +class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#15 +class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#8 +class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#14 +class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#7 +class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#9 +class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#13 +class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#11 +class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#12 +class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#10 +class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#8 +class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#33 + def human_name; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#130 + def comment?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#2 +module Regexp::Expression::Conditional; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25 +class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#34 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#9 +class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + def match_length; end + + # Name or number of the referenced capturing group that determines state. + # Returns a String if reference is by name, Integer if by number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#14 + def reference; end + + # Returns the value of attribute referenced_expression. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10 + def referenced_expression; end + + # Sets the attribute referenced_expression + # + # @param value the value to set the attribute referenced_expression to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10 + def referenced_expression=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#19 + def initialize_copy(orig); end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#141 + def referential?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#27 +class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#30 + def <<(exp); end + + # @raise [TooManyBranches] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 + def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end + + # @raise [TooManyBranches] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 + def branch(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#50 + def branches; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#46 + def condition; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#41 + def condition=(exp); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#17 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#54 + def reference; end + + # Returns the value of attribute referenced_expression. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28 + def referenced_expression; end + + # Sets the attribute referenced_expression + # + # @param value the value to set the attribute referenced_expression to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28 + def referenced_expression=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#58 + def initialize_copy(orig); end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#142 + def referential?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#3 +class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error + # @return [TooManyBranches] a new instance of TooManyBranches + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#4 + def initialize; end +end + +# alias for symmetry between Token::* and Expression::* +# +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#101 +Regexp::Expression::Escape = Regexp::Expression::EscapeSequence + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#2 +module Regexp::Expression::EscapeSequence; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#63 +class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#64 + def char; end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#70 + def control_sequence_to_s(control_sequence); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#75 + def meta_char_to_codepoint(meta_char); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#27 +class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#28 +class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#3 +class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#9 + def char; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#4 + def codepoint; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#29 +class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#37 +class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#39 +class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base + # @raise [NoMethodError] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#40 + def char; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#48 + def chars; end + + # @raise [NoMethodError] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#44 + def codepoint; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#52 + def codepoints; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#164 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#81 +class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#82 + def codepoint; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#30 +class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#36 +class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#21 +class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#22 + def char; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#87 +class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#88 + def codepoint; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#93 +class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#94 + def codepoint; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#31 +class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#57 +class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#58 + def char; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#32 +class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#33 +class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#34 +class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#2 +class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + def match_length; end + + # @raise [Regexp::Parser::Error] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#3 + def quantify(*_args); end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#135 + def decorative?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#2 +module Regexp::Expression::Group; end + +# Special case. Absence group can match 0.. chars, irrespective of content. +# TODO: in theory, they *can* exclude match lengths with `.`: `(?~.{3})` +# +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#19 +class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#172 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#20 +class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#3 +class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#18 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#40 +class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#37 + def human_name; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + def identifier; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + def number; end + + # Sets the attribute number + # + # @param value the value to set the attribute number to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + def number=(_arg0); end + + # Returns the value of attribute number_at_level. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + def number_at_level; end + + # Sets the attribute number_at_level + # + # @param value the value to set the attribute number_at_level to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + def number_at_level=(_arg0); end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#126 + def capturing?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#60 +class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#20 + def parts; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#131 + def comment?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#136 + def decorative?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#45 +class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture + # @return [Named] a new instance of Named + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#49 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#38 + def human_name; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + def identifier; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + def name; end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#54 + def initialize_copy(orig); end +end + +# TODO: should split off OptionsSwitch in v3.0.0. Maybe even make it no +# longer inherit from Group because it is effectively a terminal expression. +# +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#23 +class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base + # Returns the value of attribute option_changes. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#24 + def option_changes; end + + # Sets the attribute option_changes + # + # @param value the value to set the attribute option_changes to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#24 + def option_changes=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#31 + def quantify(*args); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#26 + def initialize_copy(orig); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#6 +class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base + # @return [Passive] a new instance of Passive + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#9 + def initialize(*_arg0); end + + # Sets the attribute implicit + # + # @param value the value to set the attribute implicit to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#7 + def implicit=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#14 + def implicit?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#19 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#2 +module Regexp::Expression::Keep; end + +# TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression +# that contains all expressions to its left. +# +# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#5 +class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/literal.rb#2 +class Regexp::Expression::Literal < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#40 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#105 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#85 +Regexp::Expression::MatchLength = Regexp::MatchLength + +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#14 +Regexp::Expression::Nonposixclass = Regexp::Expression::PosixClass + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#121 +Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty + +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2 +class Regexp::Expression::PosixClass < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#7 + def name; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3 + def negative?; end +end + +# alias for symmetry between token symbol and Expression class name +# +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#13 +Regexp::Expression::Posixclass = Regexp::Expression::PosixClass + +# alias for symmetry between token symbol and Expression class name +# +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#120 +Regexp::Expression::Property = Regexp::Expression::UnicodeProperty + +# TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and +# call super in #initialize, but raise in #quantifier= and #quantify, +# or introduce an Expression::Quantifiable intermediate class. +# Or actually allow chaining as a more concise but tricky solution than PR#69. +# +# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#6 +class Regexp::Expression::Quantifier + include ::Regexp::Expression::Shared + extend ::Regexp::Expression::Shared::ClassMethods + + # @return [Quantifier] a new instance of Quantifier + # + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 + def initialize(*args); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def custom_to_s_handling; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def custom_to_s_handling=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + def greedy?; end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + def lazy?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#42 + def max; end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#38 + def min; end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#46 + def mode; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + def nesting_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def parent; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def parent=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + def possessive?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def pre_quantifier_decorations; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def pre_quantifier_decorations=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + def quantifier; end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + def reluctant?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#19 + def to_h; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#52 + def deprecated_old_init(token, text, _min, _max, _mode = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#64 + def derived_data; end +end + +# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 +Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#2 +class Regexp::Expression::Root < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#41 + def human_name; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#3 + def build(options = T.unsafe(nil)); end + end +end + +# A sequence of expressions. Differs from a Subexpressions by how it handles +# quantifiers, as it applies them to its last element instead of itself as +# a whole subexpression. +# +# Used as the base class for the Alternation alternatives, Conditional +# branches, and CharacterSet::Intersection intersected sequences. +# +# source://regexp_parser//lib/regexp_parser/expression/sequence.rb#8 +class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#27 + def quantify(token, *args); end + + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23 + def ts; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#10 + def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end + end +end + +# abstract class +# +# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#3 +class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#12 + def <<(exp); end + + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#16 + def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def operands; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def operator; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#22 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def sequences; end + + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8 + def ts; end +end + +# alias for symmetry between token symbol and Expression class name +# +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#25 +Regexp::Expression::Set = Regexp::Expression::CharacterSet + +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#2 +module Regexp::Expression::Shared + mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods + + # Deep-compare two expressions for equality. + # + # When changing the conditions, please make sure to update + # #pretty_print_instance_variables so that it includes all relevant values. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + def ==(other); end + + # Deep-compare two expressions for equality. + # + # When changing the conditions, please make sure to update + # #pretty_print_instance_variables so that it includes all relevant values. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + def ===(other); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#51 + def base_length; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#124 + def capturing?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#96 + def coded_offset; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#128 + def comment?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#133 + def decorative?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#47 + def ends_at(include_quantifier = T.unsafe(nil)); end + + # Deep-compare two expressions for equality. + # + # When changing the conditions, please make sure to update + # #pretty_print_instance_variables so that it includes all relevant values. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + def eql?(other); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#55 + def full_length; end + + # default implementation, e.g. "atomic group", "hex escape", "word type", .. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#4 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#3 + def inspect; end + + # Test if this expression has the given test_token, and optionally a given + # test_type. + # + # # Any expressions + # exp.is? :* # always returns true + # + # # is it a :capture + # exp.is? :capture + # + # # is it a :character and a :set + # exp.is? :character, :set + # + # # is it a :meta :dot + # exp.is? :dot, :meta + # + # # is it a :meta or :escape :dot + # exp.is? :dot, [:meta, :escape] + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36 + def is?(test_token, test_type = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#100 + def nesting_level=(lvl); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#92 + def offset; end + + # Test if this expression matches an entry in the given scope spec. + # + # A scope spec can be one of: + # + # . An array: Interpreted as a set of tokens, tested for inclusion + # of the expression's token. + # + # . A hash: Where the key is interpreted as the expression type + # and the value is either a symbol or an array. In this + # case, when the scope is a hash, one_of? calls itself to + # evaluate the key's value. + # + # . A symbol: matches the expression's token or type, depending on + # the level of the call. If one_of? is called directly with + # a symbol then it will always be checked against the + # type of the expression. If it's being called for a value + # from a hash, it will be checked against the token of the + # expression. + # + # # any expression + # exp.one_of?(:*) # always true + # + # # like exp.type?(:group) + # exp.one_of?(:group) + # + # # any expression of type meta + # exp.one_of?(:meta => :*) + # + # # meta dots and alternations + # exp.one_of?(:meta => [:dot, :alternation]) + # + # # meta dots and any set tokens + # exp.one_of?({meta: [:dot], set: :*}) + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#75 + def one_of?(scope, top = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#111 + def optional?; end + + # default implementation + # + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#4 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#84 + def pre_quantifier_decoration(expression_format = T.unsafe(nil)); end + + # Make pretty-print work despite #inspect implementation. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#12 + def pretty_print(q); end + + # Called by pretty_print (ruby/pp) and #inspect. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#17 + def pretty_print_instance_variables; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#115 + def quantified?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#106 + def quantifier=(qtf); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#88 + def quantifier_affix(expression_format = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#138 + def referential?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#43 + def starts_at; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#120 + def terminal?; end + + # #to_s reproduces the original source, as an unparser would. + # + # It takes an optional format argument. + # + # Example: + # + # lit = Regexp::Parser.parse(/a +/x)[0] + # + # lit.to_s # => 'a+' # default; with quantifier + # lit.to_s(:full) # => 'a+' # default; with quantifier + # lit.to_s(:base) # => 'a' # without quantifier + # lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72 + def to_s(format = T.unsafe(nil)); end + + # #to_s reproduces the original source, as an unparser would. + # + # It takes an optional format argument. + # + # Example: + # + # lit = Regexp::Parser.parse(/a +/x)[0] + # + # lit.to_s # => 'a+' # default; with quantifier + # lit.to_s(:full) # => 'a+' # default; with quantifier + # lit.to_s(:base) # => 'a' # without quantifier + # lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72 + def to_str(format = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#37 + def token_class; end + + # Test if this expression has the given test_type, which can be either + # a symbol or an array of symbols to check against the expression's type. + # + # # is it a :group expression + # exp.type? :group + # + # # is it a :set, or :meta + # exp.type? [:set, :meta] + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#13 + def type?(test_type); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#18 + def init_from_token_and_options(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#32 + def initialize_copy(orig); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#10 + def intersperse(expressions, separator); end + + class << self + # @private + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#5 + def included(mod); end + end +end + +# filled in ./methods/*.rb +# +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#3 +module Regexp::Expression::Shared::ClassMethods + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#125 + def capturing?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#129 + def comment?; end + + # Convenience method to init a valid Expression without a Regexp::Token + # + # @raise [ArgumentError] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#5 + def construct(params = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#15 + def construct_defaults; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#134 + def decorative?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#139 + def referential?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#121 + def terminal?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#25 + def token_class; end +end + +# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#2 +class Regexp::Expression::Subexpression < ::Regexp::Expression::Base + include ::Enumerable + + # @return [Subexpression] a new instance of Subexpression + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#20 + def <<(exp); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def [](*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def at(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#33 + def dig(*indices); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def each(*args, &block); end + + # Traverses the expression, passing each recursive child to the + # given block. + # If the block takes two arguments, the indices of the children within + # their parents are also passed to it. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#8 + def each_expression(include_self = T.unsafe(nil), &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def empty?(*args, &block); end + + # Returns the value of attribute expressions. + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def expressions; end + + # Sets the attribute expressions + # + # @param value the value to set the attribute expressions to. + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def expressions=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#50 + def extract_quantifier_target(quantifier_description); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def fetch(*args, &block); end + + # Returns a new array with the results of calling the given block once + # for every expression. If a block is not given, returns an array with + # each expression and its level index as an array. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#56 + def flat_map(include_self = T.unsafe(nil), &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def index(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#118 + def inner_match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def join(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def last(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def length(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#111 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#21 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#39 + def te; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#43 + def to_h; end + + # Traverses the subexpression (depth-first, pre-order) and calls the given + # block for each expression with three arguments; the traversal event, + # the expression, and the index of the expression within its parent. + # + # The event argument is passed as follows: + # + # - For subexpressions, :enter upon entering the subexpression, and + # :exit upon exiting it. + # + # - For terminal expressions, :visit is called once. + # + # Returns self. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32 + def traverse(include_self = T.unsafe(nil), &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + def values_at(*args, &block); end + + # Traverses the subexpression (depth-first, pre-order) and calls the given + # block for each expression with three arguments; the traversal event, + # the expression, and the index of the expression within its parent. + # + # The event argument is passed as follows: + # + # - For subexpressions, :enter upon entering the subexpression, and + # :exit upon exiting it. + # + # - For terminal expressions, :visit is called once. + # + # Returns self. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32 + def walk(include_self = T.unsafe(nil), &block); end + + protected + + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#66 + def each_expression_with_index(&block); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#73 + def each_expression_without_index(&block); end + + private + + # Override base method to clone the expressions as well. + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#13 + def initialize_copy(orig); end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#122 + def terminal?; end + end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#2 +module Regexp::Expression::UnicodeProperty; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112 +class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17 +class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 +class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35 +class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 +class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#36 +class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3 +class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8 + def name; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 + def negative?; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#12 + def shortcut; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 +class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#116 +class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 +class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101 +module Regexp::Expression::UnicodeProperty::Codepoint; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104 +class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 +class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 +class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#106 +class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108 +class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#107 +class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109 +class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 +class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 +class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#114 +class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 +class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38 +module Regexp::Expression::UnicodeProperty::Letter; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41 +class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 +class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 +class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#44 +class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46 +class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47 +class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#45 +class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 +class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 +class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50 +module Regexp::Expression::UnicodeProperty::Mark; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53 +class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 +class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#54 +class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57 +class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#55 +class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56 +class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#33 +class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60 +module Regexp::Expression::UnicodeProperty::Number; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#63 +class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 +class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#64 +class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65 +class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66 +class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 +class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 +class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69 +module Regexp::Expression::UnicodeProperty::Punctuation; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72 +class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 +class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#76 +class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 +class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 +class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78 +class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#77 +class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 +class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79 +class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#115 +class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82 +module Regexp::Expression::UnicodeProperty::Separator; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#85 +class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 +class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87 +class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88 +class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#86 +class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 +class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91 +module Regexp::Expression::UnicodeProperty::Symbol; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94 +class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 +class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#96 +class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#95 +class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97 +class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98 +class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#28 +class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 +class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 +class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#30 +class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11 +class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#42 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#12 + def merge(exp); end +end + +# A very thin wrapper around the scanner that breaks quantified literal runs, +# collects emitted tokens into an array, calculates their nesting depth, and +# normalizes tokens for the parser, and checks if they are implemented by the +# given syntax flavor. +# +# source://regexp_parser//lib/regexp_parser/lexer.rb#5 +class Regexp::Lexer + # source://regexp_parser//lib/regexp_parser/lexer.rb#71 + def emit(token); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#20 + def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end + + private + + # source://regexp_parser//lib/regexp_parser/lexer.rb#91 + def ascend(type, token); end + + # Returns the value of attribute block. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def block; end + + # Sets the attribute block + # + # @param value the value to set the attribute block to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def block=(_arg0); end + + # if a codepoint list is followed by a quantifier, that quantifier applies + # to the last codepoint, e.g. /\u{61 62 63}{3}/ =~ 'abccc' + # c.f. #break_literal. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#143 + def break_codepoint_list(token); end + + # called by scan to break a literal run that is longer than one character + # into two separate tokens when it is followed by a quantifier + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#123 + def break_literal(token); end + + # Returns the value of attribute collect_tokens. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def collect_tokens; end + + # Sets the attribute collect_tokens + # + # @param value the value to set the attribute collect_tokens to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def collect_tokens=(_arg0); end + + # Returns the value of attribute conditional_nesting. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def conditional_nesting; end + + # Sets the attribute conditional_nesting + # + # @param value the value to set the attribute conditional_nesting to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def conditional_nesting=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#106 + def descend(type, token); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#162 + def merge_condition(current, last); end + + # Returns the value of attribute nesting. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def nesting; end + + # Sets the attribute nesting + # + # @param value the value to set the attribute nesting to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def nesting=(_arg0); end + + # Returns the value of attribute preprev_token. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def preprev_token; end + + # Sets the attribute preprev_token + # + # @param value the value to set the attribute preprev_token to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def preprev_token=(_arg0); end + + # Returns the value of attribute prev_token. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def prev_token; end + + # Sets the attribute prev_token + # + # @param value the value to set the attribute prev_token to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def prev_token=(_arg0); end + + # Returns the value of attribute set_nesting. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def set_nesting; end + + # Sets the attribute set_nesting + # + # @param value the value to set the attribute set_nesting to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def set_nesting=(_arg0); end + + # Returns the value of attribute shift. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def shift; end + + # Sets the attribute shift + # + # @param value the value to set the attribute shift to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def shift=(_arg0); end + + # Returns the value of attribute tokens. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def tokens; end + + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + def tokens=(_arg0); end + + class << self + # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end + end +end + +# source://regexp_parser//lib/regexp_parser/lexer.rb#12 +Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/lexer.rb#14 +Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/lexer.rb#7 +Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#1 +class Regexp::MatchLength + include ::Enumerable + + # @return [MatchLength] a new instance of MatchLength + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#9 + def initialize(exp, opts = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#24 + def each(opts = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#35 + def endless_each; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#44 + def fixed?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#40 + def include?(length); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#60 + def inspect; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#52 + def max; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#48 + def min; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#56 + def minmax; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#65 + def to_re; end + + private + + # Returns the value of attribute base_max. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_max; end + + # Sets the attribute base_max + # + # @param value the value to set the attribute base_max to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_max=(_arg0); end + + # Returns the value of attribute base_min. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_min; end + + # Sets the attribute base_min + # + # @param value the value to set the attribute base_min to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_min=(_arg0); end + + # Returns the value of attribute exp_class. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def exp_class; end + + # Sets the attribute exp_class + # + # @param value the value to set the attribute exp_class to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def exp_class=(_arg0); end + + # Returns the value of attribute max_rep. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def max_rep; end + + # Sets the attribute max_rep + # + # @param value the value to set the attribute max_rep to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def max_rep=(_arg0); end + + # Returns the value of attribute min_rep. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def min_rep; end + + # Sets the attribute min_rep + # + # @param value the value to set the attribute min_rep to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def min_rep=(_arg0); end + + # Returns the value of attribute reify. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def reify; end + + # Sets the attribute reify + # + # @param value the value to set the attribute reify to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def reify=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#74 + def test_regexp; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#4 + def of(obj); end + end +end + +# source://regexp_parser//lib/regexp_parser/version.rb#2 +class Regexp::Parser + include ::Regexp::Expression + + # source://regexp_parser//lib/regexp_parser/parser.rb#25 + def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + + private + + # source://regexp_parser//lib/regexp_parser/parser.rb#573 + def active_opts; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#99 + def anchor(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#262 + def assign_effective_number(exp); end + + # Assigns referenced expressions to refering expressions, e.g. if there is + # an instance of Backreference::Number, its #referenced_expression is set to + # the instance of Group::Capture that it refers to via its number. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#580 + def assign_referenced_expressions; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#227 + def backref(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#202 + def captured_group_count_at_level; end + + # Returns the value of attribute captured_group_counts. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def captured_group_counts; end + + # Sets the attribute captured_group_counts + # + # @param value the value to set the attribute captured_group_counts to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def captured_group_counts=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#569 + def close_completed_character_set_range; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#210 + def close_group; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#537 + def close_set; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#269 + def conditional(token); end + + # Returns the value of attribute conditional_nesting. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def conditional_nesting; end + + # Sets the attribute conditional_nesting + # + # @param value the value to set the attribute conditional_nesting to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def conditional_nesting=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#206 + def count_captured_group; end + + # @yield [node] + # + # source://regexp_parser//lib/regexp_parser/parser.rb#216 + def decrease_nesting; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#305 + def escape(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#60 + def extract_options(input, options); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#349 + def free_space(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#114 + def group(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#508 + def increase_group_level(exp); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#548 + def intersection(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#360 + def keep(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#364 + def literal(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#368 + def meta(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#533 + def negate_set; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#299 + def nest(exp); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#294 + def nest_conditional(exp); end + + # Returns the value of attribute nesting. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def nesting; end + + # Sets the attribute nesting + # + # @param value the value to set the attribute nesting to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def nesting=(_arg0); end + + # Returns the value of attribute node. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def node; end + + # Sets the attribute node + # + # @param value the value to set the attribute node to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def node=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#165 + def open_group(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#526 + def open_set(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#130 + def options_group(token); end + + # Returns the value of attribute options_stack. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def options_stack; end + + # Sets the attribute options_stack + # + # @param value the value to set the attribute options_stack to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def options_stack=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#76 + def parse_token(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#390 + def posixclass(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#397 + def property(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#478 + def quantifier(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#541 + def range(token); end + + # Returns the value of attribute root. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def root; end + + # Sets the attribute root + # + # @param value the value to set the attribute root to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def root=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#379 + def sequence_operation(klass, token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#514 + def set(token); end + + # Returns the value of attribute switching_options. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def switching_options; end + + # Sets the attribute switching_options + # + # @param value the value to set the attribute switching_options to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def switching_options=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#198 + def total_captured_group_count; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#552 + def type(token); end + + class << self + # source://regexp_parser//lib/regexp_parser/parser.rb#21 + def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + end +end + +# source://regexp_parser//lib/regexp_parser/parser.rb#128 +Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array) + +# base class for all gem-specific errors +# +# source://regexp_parser//lib/regexp_parser/error.rb#3 +class Regexp::Parser::Error < ::StandardError; end + +# source://regexp_parser//lib/regexp_parser/parser.rb#127 +Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/parser.rb#7 +class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end + +# source://regexp_parser//lib/regexp_parser/parser.rb#394 +Regexp::Parser::UP = Regexp::Expression::UnicodeProperty + +# source://regexp_parser//lib/regexp_parser/parser.rb#395 +Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty + +# source://regexp_parser//lib/regexp_parser/parser.rb#15 +class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError + # @return [UnknownTokenError] a new instance of UnknownTokenError + # + # source://regexp_parser//lib/regexp_parser/parser.rb#16 + def initialize(type, token); end +end + +# source://regexp_parser//lib/regexp_parser/parser.rb#9 +class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError + # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError + # + # source://regexp_parser//lib/regexp_parser/parser.rb#10 + def initialize(type, token); end +end + +# source://regexp_parser//lib/regexp_parser/version.rb#3 +Regexp::Parser::VERSION = T.let(T.unsafe(nil), String) + +# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#3 +class Regexp::Scanner + # Emits an array with the details of the scanned pattern + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2405 + def emit(type, token, text); end + + # only public for #||= to work on ruby <= 2.5 + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2430 + def literal_run; end + + # only public for #||= to work on ruby <= 2.5 + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2430 + def literal_run=(_arg0); end + + # @raise [PrematureEndError] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#24 + def scan(input_object, options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end + + private + + # Appends one or more characters to the literal buffer, to be emitted later + # by a call to emit_literal. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2467 + def append_literal(data, ts, te); end + + # Returns the value of attribute block. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def block; end + + # Sets the attribute block + # + # @param value the value to set the attribute block to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def block=(_arg0); end + + # Returns the value of attribute char_pos. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def char_pos; end + + # Sets the attribute char_pos + # + # @param value the value to set the attribute char_pos to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def char_pos=(_arg0); end + + # Returns the value of attribute collect_tokens. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def collect_tokens; end + + # Sets the attribute collect_tokens + # + # @param value the value to set the attribute collect_tokens to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def collect_tokens=(_arg0); end + + # Returns the value of attribute conditional_stack. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def conditional_stack; end + + # Sets the attribute conditional_stack + # + # @param value the value to set the attribute conditional_stack to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def conditional_stack=(_arg0); end + + # Copy from ts to te from data as text + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2461 + def copy(data, ts, te); end + + # Emits the literal run collected by calls to the append_literal method. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2472 + def emit_literal; end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2507 + def emit_meta_control_sequence(data, ts, te, token); end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2478 + def emit_options(text); end + + # Returns the value of attribute free_spacing. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def free_spacing; end + + # Sets the attribute free_spacing + # + # @param value the value to set the attribute free_spacing to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def free_spacing=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2440 + def free_spacing?(input_object, options); end + + # Returns the value of attribute group_depth. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def group_depth; end + + # Sets the attribute group_depth + # + # @param value the value to set the attribute group_depth to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def group_depth=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2452 + def in_group?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2456 + def in_set?; end + + # Returns the value of attribute prev_token. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def prev_token; end + + # Sets the attribute prev_token + # + # @param value the value to set the attribute prev_token to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def prev_token=(_arg0); end + + # Returns the value of attribute set_depth. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def set_depth; end + + # Sets the attribute set_depth + # + # @param value the value to set the attribute set_depth to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def set_depth=(_arg0); end + + # Returns the value of attribute spacing_stack. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def spacing_stack; end + + # Sets the attribute spacing_stack + # + # @param value the value to set the attribute spacing_stack to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def spacing_stack=(_arg0); end + + # Returns the value of attribute tokens. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def tokens; end + + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2434 + def tokens=(_arg0); end + + class << self + # source://regexp_parser//lib/regexp_parser/scanner.rb#2391 + def long_prop_map; end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2395 + def parse_prop_map(name); end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2399 + def posix_classes; end + + # Scans the given regular expression text, or Regexp object and collects the + # emitted token into an array that gets returned at the end. If a block is + # given, it gets called for each emitted token. + # + # This method may raise errors if a syntax error is encountered. + # -------------------------------------------------------------------------- + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#20 + def scan(input_object, options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end + + # lazy-load property maps when first needed + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2387 + def short_prop_map; end + end +end + +# Invalid back reference. Used for name a number refs/calls. +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#44 +class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError + # @return [InvalidBackrefError] a new instance of InvalidBackrefError + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#45 + def initialize(what, reason); end +end + +# Invalid group. Used for named groups. +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#29 +class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError + # @return [InvalidGroupError] a new instance of InvalidGroupError + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#30 + def initialize(what, reason); end +end + +# Invalid groupOption. Used for inline options. +# TODO: should become InvalidGroupOptionError in v3.0.0 for consistency +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#37 +class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError + # @return [InvalidGroupOption] a new instance of InvalidGroupOption + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#38 + def initialize(option, text); end +end + +# Invalid sequence format. Used for escape sequences, mainly. +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#22 +class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError + # @return [InvalidSequenceError] a new instance of InvalidSequenceError + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#23 + def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end +end + +# Unexpected end of pattern +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#3 +class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError + # @return [PrematureEndError] a new instance of PrematureEndError + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#4 + def initialize(where = T.unsafe(nil)); end +end + +# General scanner error (catch all) +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#5 +class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end + +# The POSIX class name was not recognized by the scanner. +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#58 +class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError + # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#59 + def initialize(text, _); end +end + +# The property name was not recognized by the scanner. +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#51 +class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError + # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#52 + def initialize(name, _); end +end + +# Base for all scanner validation errors +# +# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#3 +class Regexp::Scanner::ValidationError < ::Regexp::Scanner::ScannerError + class << self + # Centralizes and unifies the handling of validation related errors. + # + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#5 + def for(type, problem, reason = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#9 + def types; end + end +end + +# After loading all the tokens the map is full. Extract all tokens and types +# into the All and Types constants. +# +# source://regexp_parser//lib/regexp_parser/syntax.rb#3 +module Regexp::Syntax + private + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#61 + def comparable(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#44 + def const_missing(const_name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#51 + def fallback_version_class(version); end + + # Returns the syntax specification class for the given syntax + # version name. The special names 'any' and '*' return Syntax::Any. + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + def for(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + def new(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#57 + def specified_versions; end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + def supported?(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + def version_class(version); end + + class << self + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#61 + def comparable(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#44 + def const_missing(const_name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#51 + def fallback_version_class(version); end + + # Returns the syntax specification class for the given syntax + # version name. The special names 'any' and '*' return Syntax::Any. + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + def for(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + def new(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#57 + def specified_versions; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + def supported?(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + def version_class(version); end + end +end + +# A syntax that always returns true, passing all tokens as implemented. This +# is useful during development, testing, and should be useful for some types +# of transformations as well. +# +# source://regexp_parser//lib/regexp_parser/syntax/any.rb#5 +class Regexp::Syntax::Any < ::Regexp::Syntax::Base + class << self + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/any.rb#8 + def implements?(_type, _token); end + end +end + +# A lookup map of supported types and tokens in a given syntax +# +# source://regexp_parser//lib/regexp_parser/syntax/base.rb#9 +class Regexp::Syntax::Base + include ::Regexp::Syntax::Token + + # TODO: drop this backwards compatibility code in v3.0.0, do `private :new` + # + # @return [Base] a new instance of Base + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#99 + def initialize; end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#104 + def method_missing(name, *args); end + + private + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#115 + def respond_to_missing?(name, include_private = T.unsafe(nil)); end + + class << self + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#46 + def added_features; end + + # @raise [NotImplementedError] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + def check!(type, token); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + def check?(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#26 + def excludes(type, tokens); end + + # Returns the value of attribute features. + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + def features; end + + # Sets the attribute features + # + # @param value the value to set the attribute features to. + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + def features=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#36 + def implementations(type); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#21 + def implements(type, tokens); end + + # @raise [NotImplementedError] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + def implements!(type, token); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + def implements?(type, token); end + + # automatically inherit features through the syntax class hierarchy + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#16 + def inherited(subclass); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#54 + def normalize(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#74 + def normalize_backref(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#65 + def normalize_group(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#50 + def removed_features; end + end +end + +# source://regexp_parser//lib/regexp_parser/syntax/versions.rb#8 +Regexp::Syntax::CURRENT = Regexp::Syntax::V3_2_0 + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6 +class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError + # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#7 + def initialize(name); end +end + +# source://regexp_parser//lib/regexp_parser/syntax/base.rb#2 +class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError + # @return [NotImplementedError] a new instance of NotImplementedError + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#3 + def initialize(syntax, type, token); end +end + +# source://regexp_parser//lib/regexp_parser/syntax.rb#4 +class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#3 +module Regexp::Syntax::Token; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#42 +Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array) + +# alias for symmetry between Token::* and Expression::* +# +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#15 +module Regexp::Syntax::Token::Alternation; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#16 +Regexp::Syntax::Token::Alternation::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#17 +Regexp::Syntax::Token::Alternation::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#3 +module Regexp::Syntax::Token::Anchor; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#9 +Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#4 +Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#5 +Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#7 +Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#6 +Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#10 +Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#3 +module Regexp::Syntax::Token::Assertion; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#7 +Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#4 +Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#5 +Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#8 +Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol) + +# alias for symmetry between token symbol and Expression class name +# +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#31 +Regexp::Syntax::Token::Backref = Regexp::Syntax::Token::Backreference + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#3 +module Regexp::Syntax::Token::Backreference; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#15 +Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#7 +Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#6 +Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#5 +Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#4 +Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#9 +Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#16 +Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#11 +Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#13 +Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#3 +module Regexp::Syntax::Token::CharacterSet; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#7 +Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#4 +Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#5 +Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#8 +Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#3 +module Regexp::Syntax::Token::CharacterType; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#10 +Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#4 +Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#8 +Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#5 +Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#6 +Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#11 +Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#3 +module Regexp::Syntax::Token::Conditional; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#9 +Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#6 +Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#4 +Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#7 +Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#11 +Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#3 +module Regexp::Syntax::Token::Escape; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#8 +Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#24 +Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#4 +Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#6 +Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#20 +Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#13 +Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#22 +Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#25 +Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#11 +Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array) + +# alias for symmetry between Token::* and Expression::* +# +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#31 +Regexp::Syntax::Token::EscapeSequence = Regexp::Syntax::Token::Escape + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#11 +module Regexp::Syntax::Token::FreeSpace; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#12 +Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#13 +Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#3 +module Regexp::Syntax::Token::Group; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#17 +Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#8 +Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#4 +Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#10 +Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#5 +Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#7 +Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#9 +Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#18 +Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#12 +Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#15 +Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#3 +module Regexp::Syntax::Token::Keep; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#6 +Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#4 +Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#7 +Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#6 +module Regexp::Syntax::Token::Literal; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#7 +Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#8 +Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#4 +Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#3 +module Regexp::Syntax::Token::Meta; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#8 +Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#5 +Regexp::Syntax::Token::Meta::Alternation = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#4 +Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#6 +Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#9 +Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#3 +module Regexp::Syntax::Token::PosixClass; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#9 +Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#7 +Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#11 +Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#4 +Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#10 +Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol) + +# alias for symmetry between token symbol and Token module name +# +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731 +Regexp::Syntax::Token::Property = Regexp::Syntax::Token::UnicodeProperty + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3 +module Regexp::Syntax::Token::Quantifier; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#29 +Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#4 +Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#22 +Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#26 +Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#24 +Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#23 +Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#16 +Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#10 +Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#30 +Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#28 +Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array) + +# alias for symmetry between token symbol and Token module name +# +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#14 +Regexp::Syntax::Token::Set = Regexp::Syntax::Token::CharacterSet + +# Type is the same as Backreference so keeping it here, for now. +# +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#20 +module Regexp::Syntax::Token::SubexpressionCall; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#24 +Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#21 +Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#22 +Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#43 +Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#3 +module Regexp::Syntax::Token::UnicodeProperty; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#64 +Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#40 +Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#44 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#46 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#48 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#50 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#52 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#54 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#56 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#58 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#60 +Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62 +Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#721 +Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13 +module Regexp::Syntax::Token::UnicodeProperty::Category; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#36 +Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#33 +Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#14 +Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#17 +Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#20 +Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#23 +Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#30 +Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#27 +Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#6 +Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#9 +Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#133 +Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#66 +Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#120 +Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#125 +Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129 +Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 +Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#694 +Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702 +Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724 +Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11 +Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#332 +Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#135 +Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#231 +Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#237 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#247 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#273 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#282 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#291 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#298 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#308 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#315 +Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322 +Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#723 +Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#692 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#334 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#433 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#561 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#596 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#609 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#623 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#633 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#647 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#659 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#670 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#708 +Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#709 +Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#710 +Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#711 +Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#712 +Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#713 +Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#714 +Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#715 +Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#716 +Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#717 +Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#718 +Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#719 +Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12 +class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError + # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#13 + def initialize(name); end +end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.8.6.rb#1 +class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.1.rb#1 +class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.3.rb#1 +class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.0.0.rb#1 +class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.2.0.rb#1 +class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.3.0.rb#1 +class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.0.rb#1 +class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.1.rb#1 +class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.5.0.rb#1 +class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.0.rb#1 +class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.2.rb#1 +class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.3.rb#1 +class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.1.0.rb#1 +class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.2.0.rb#1 +class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#4 +Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#2 +Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#3 +Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://regexp_parser//lib/regexp_parser/token.rb#2 +Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/token.rb#13 +class Regexp::Token < ::Struct + def conditional_level; end + def conditional_level=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#20 + def length; end + + def level; end + def level=(_); end + + # Returns the value of attribute next. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def next; end + + # Sets the attribute next + # + # @param value the value to set the attribute next to. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def next=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/token.rb#16 + def offset; end + + # Returns the value of attribute previous. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def previous; end + + # Sets the attribute previous + # + # @param value the value to set the attribute previous to. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def previous=(_arg0); end + + def set_level; end + def set_level=(_); end + def te; end + def te=(_); end + def text; end + def text=(_); end + def token; end + def token=(_); end + def ts; end + def ts=(_); end + def type; end + def type=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/rexml@3.2.6.rbi b/ruby-client-sdk/sorbet/rbi/gems/rexml@3.2.6.rbi new file mode 100755 index 000000000..c8d67b58d --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rexml@3.2.6.rbi @@ -0,0 +1,4781 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rexml` gem. +# Please instead update this file by running `bin/tapioca gem rexml`. + +# This class needs: +# * Documentation +# * Work! Not all types of attlists are intelligently parsed, so we just +# spew back out what we get in. This works, but it would be better if +# we formatted the output ourselves. +# +# AttlistDecls provide *just* enough support to allow namespace +# declarations. If you need some sort of generalized support, or have an +# interesting idea about how to map the hideous, terrible design of DTD +# AttlistDecls onto an intuitive Ruby interface, let me know. I'm desperate +# for anything to make DTDs more palateable. +# +# source://rexml//lib/rexml/attlistdecl.rb#18 +class REXML::AttlistDecl < ::REXML::Child + include ::Enumerable + + # Create an AttlistDecl, pulling the information from a Source. Notice + # that this isn't very convenient; to create an AttlistDecl, you basically + # have to format it yourself, and then have the initializer parse it. + # Sorry, but for the foreseeable future, DTD support in REXML is pretty + # weak on convenience. Have I mentioned how much I hate DTDs? + # + # @return [AttlistDecl] a new instance of AttlistDecl + # + # source://rexml//lib/rexml/attlistdecl.rb#29 + def initialize(source); end + + # Access the attlist attribute/value pairs. + # value = attlist_decl[ attribute_name ] + # + # source://rexml//lib/rexml/attlistdecl.rb#38 + def [](key); end + + # Iterate over the key/value pairs: + # attlist_decl.each { |attribute_name, attribute_value| ... } + # + # source://rexml//lib/rexml/attlistdecl.rb#50 + def each(&block); end + + # What is this? Got me. + # + # source://rexml//lib/rexml/attlistdecl.rb#22 + def element_name; end + + # Whether an attlist declaration includes the given attribute definition + # if attlist_decl.include? "xmlns:foobar" + # + # @return [Boolean] + # + # source://rexml//lib/rexml/attlistdecl.rb#44 + def include?(key); end + + # source://rexml//lib/rexml/attlistdecl.rb#59 + def node_type; end + + # Write out exactly what we got in. + # + # source://rexml//lib/rexml/attlistdecl.rb#55 + def write(out, indent = T.unsafe(nil)); end +end + +# Defines an Element Attribute; IE, a attribute=value pair, as in: +# . Attributes can be in their own +# namespaces. General users of REXML will not interact with the +# Attribute class much. +# +# source://rexml//lib/rexml/attribute.rb#10 +class REXML::Attribute + include ::REXML::Node + include ::REXML::XMLTokens + include ::REXML::Namespace + + # Constructor. + # FIXME: The parser doesn't catch illegal characters in attributes + # + # first:: + # Either: an Attribute, which this new attribute will become a + # clone of; or a String, which is the name of this attribute + # second:: + # If +first+ is an Attribute, then this may be an Element, or nil. + # If nil, then the Element parent of this attribute is the parent + # of the +first+ Attribute. If the first argument is a String, + # then this must also be a String, and is the content of the attribute. + # If this is the content, it must be fully normalized (contain no + # illegal characters). + # parent:: + # Ignored unless +first+ is a String; otherwise, may be the Element + # parent of this attribute, or nil. + # + # + # Attribute.new( attribute_to_clone ) + # Attribute.new( attribute_to_clone, parent_element ) + # Attribute.new( "attr", "attr_value" ) + # Attribute.new( "attr", "attr_value", parent_element ) + # + # @return [Attribute] a new instance of Attribute + # + # source://rexml//lib/rexml/attribute.rb#42 + def initialize(first, second = T.unsafe(nil), parent = T.unsafe(nil)); end + + # Returns true if other is an Attribute and has the same name and value, + # false otherwise. + # + # source://rexml//lib/rexml/attribute.rb#106 + def ==(other); end + + # Returns a copy of this attribute + # + # source://rexml//lib/rexml/attribute.rb#163 + def clone; end + + # source://rexml//lib/rexml/attribute.rb#132 + def doctype; end + + # The element to which this attribute belongs + # + # source://rexml//lib/rexml/attribute.rb#15 + def element; end + + # Sets the element of which this object is an attribute. Normally, this + # is not directly called. + # + # Returns this attribute + # + # source://rexml//lib/rexml/attribute.rb#171 + def element=(element); end + + # Creates (and returns) a hash from both the name and value + # + # source://rexml//lib/rexml/attribute.rb#111 + def hash; end + + # source://rexml//lib/rexml/attribute.rb#197 + def inspect; end + + # Returns the namespace URL, if defined, or nil otherwise + # + # e = Element.new("el") + # e.add_namespace("ns", "http://url") + # e.add_attribute("ns:a", "b") + # e.add_attribute("nsx:a", "c") + # e.attribute("ns:a").namespace # => "http://url" + # e.attribute("nsx:a").namespace # => nil + # + # This method always returns "" for no namespace attribute. Because + # the default namespace doesn't apply to attribute names. + # + # From https://www.w3.org/TR/xml-names/#uniqAttrs + # + # > the default namespace does not apply to attribute names + # + # e = REXML::Element.new("el") + # e.add_namespace("", "http://example.com/") + # e.namespace # => "http://example.com/" + # e.add_attribute("a", "b") + # e.attribute("a").namespace # => "" + # + # source://rexml//lib/rexml/attribute.rb#95 + def namespace(arg = T.unsafe(nil)); end + + # source://rexml//lib/rexml/attribute.rb#193 + def node_type; end + + # The normalized value of this attribute. That is, the attribute with + # entities intact. + # + # source://rexml//lib/rexml/attribute.rb#157 + def normalized=(new_normalized); end + + # Returns the namespace of the attribute. + # + # e = Element.new( "elns:myelement" ) + # e.add_attribute( "nsa:a", "aval" ) + # e.add_attribute( "b", "bval" ) + # e.attributes.get_attribute( "a" ).prefix # -> "nsa" + # e.attributes.get_attribute( "b" ).prefix # -> "" + # a = Attribute.new( "x", "y" ) + # a.prefix # -> "" + # + # source://rexml//lib/rexml/attribute.rb#70 + def prefix; end + + # Removes this Attribute from the tree, and returns true if successful + # + # This method is usually not called directly. + # + # source://rexml//lib/rexml/attribute.rb#184 + def remove; end + + # Returns the attribute value, with entities replaced + # + # source://rexml//lib/rexml/attribute.rb#140 + def to_s; end + + # Returns this attribute out as XML source, expanding the name + # + # a = Attribute.new( "x", "y" ) + # a.to_string # -> "x='y'" + # b = Attribute.new( "ns:x", "y" ) + # b.to_string # -> "ns:x='y'" + # + # source://rexml//lib/rexml/attribute.rb#121 + def to_string; end + + # Returns the UNNORMALIZED value of this attribute. That is, entities + # have been expanded to their values + # + # source://rexml//lib/rexml/attribute.rb#149 + def value; end + + # Writes this attribute (EG, puts 'key="value"' to the output) + # + # source://rexml//lib/rexml/attribute.rb#189 + def write(output, indent = T.unsafe(nil)); end + + # source://rexml//lib/rexml/attribute.rb#203 + def xpath; end +end + +# A class that defines the set of Attributes of an Element and provides +# operations for accessing elements in that set. +# +# source://rexml//lib/rexml/element.rb#2141 +class REXML::Attributes < ::Hash + # :call-seq: + # new(element) + # + # Creates and returns a new \REXML::Attributes object. + # The element given by argument +element+ is stored, + # but its own attributes are not modified: + # + # ele = REXML::Element.new('foo') + # attrs = REXML::Attributes.new(ele) + # attrs.object_id == ele.attributes.object_id # => false + # + # Other instance methods in class \REXML::Attributes may refer to: + # + # - +element.document+. + # - +element.prefix+. + # - +element.expanded_name+. + # + # @return [Attributes] a new instance of Attributes + # + # source://rexml//lib/rexml/element.rb#2160 + def initialize(element); end + + # :call-seq: + # add(attribute) -> attribute + # + # Adds attribute +attribute+, replacing the previous + # attribute of the same name if it exists; + # returns +attribute+: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs # => {"att"=>{"foo"=>foo:att='1', "bar"=>bar:att='2', ""=>att='<'}} + # attrs.add(REXML::Attribute.new('foo:att', '2')) # => foo:att='2' + # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' + # attrs.include?('baz') # => true + # + # source://rexml//lib/rexml/element.rb#2537 + def <<(attribute); end + + # :call-seq: + # [name] -> attribute_value or nil + # + # Returns the value for the attribute given by +name+, + # if it exists; otherwise +nil+. + # The value returned is the unnormalized attribute value, + # with entities expanded: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.elements['//ele'] # => + # ele.attributes['att'] # => "<" + # ele.attributes['bar:att'] # => "2" + # ele.attributes['nosuch'] # => nil + # + # Related: get_attribute (returns an \Attribute object). + # + # source://rexml//lib/rexml/element.rb#2185 + def [](name); end + + # :call-seq: + # [name] = value -> value + # + # When +value+ is non-+nil+, + # assigns that to the attribute for the given +name+, + # overwriting the previous value if it exists: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs['foo:att'] = '2' # => "2" + # attrs['baz:att'] = '3' # => "3" + # + # When +value+ is +nil+, deletes the attribute if it exists: + # + # attrs['baz:att'] = nil + # attrs.include?('baz:att') # => false + # + # source://rexml//lib/rexml/element.rb#2369 + def []=(name, value); end + + # :call-seq: + # add(attribute) -> attribute + # + # Adds attribute +attribute+, replacing the previous + # attribute of the same name if it exists; + # returns +attribute+: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs # => {"att"=>{"foo"=>foo:att='1', "bar"=>bar:att='2', ""=>att='<'}} + # attrs.add(REXML::Attribute.new('foo:att', '2')) # => foo:att='2' + # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' + # attrs.include?('baz') # => true + # + # source://rexml//lib/rexml/element.rb#2537 + def add(attribute); end + + # :call-seq: + # delete(name) -> element + # delete(attribute) -> element + # + # Removes a specified attribute if it exists; + # returns the attributes' element. + # + # When string argument +name+ is given, + # removes the attribute of that name if it exists: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs.delete('foo:att') # => + # attrs.delete('foo:att') # => + # + # When attribute argument +attribute+ is given, + # removes that attribute if it exists: + # + # attr = REXML::Attribute.new('bar:att', '2') + # attrs.delete(attr) # => # => + # attrs.delete(attr) # => # => + # + # source://rexml//lib/rexml/element.rb#2490 + def delete(attribute); end + + # :call-seq: + # delete_all(name) -> array_of_removed_attributes + # + # Removes all attributes matching the given +name+; + # returns an array of the removed attributes: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs.delete_all('att') # => [att='<'] + # + # source://rexml//lib/rexml/element.rb#2559 + def delete_all(name); end + + # :call-seq: + # each {|expanded_name, value| ... } + # + # Calls the given block with each expanded-name/value pair: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # ele.attributes.each do |expanded_name, value| + # p [expanded_name, value] + # end + # + # Output: + # + # ["foo:att", "1"] + # ["bar:att", "2"] + # ["att", "<"] + # + # source://rexml//lib/rexml/element.rb#2287 + def each; end + + # :call-seq: + # each_attribute {|attr| ... } + # + # Calls the given block with each \REXML::Attribute object: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # ele.attributes.each_attribute do |attr| + # p [attr.class, attr] + # end + # + # Output: + # + # [REXML::Attribute, foo:att='1'] + # [REXML::Attribute, bar:att='2'] + # [REXML::Attribute, att='<'] + # + # source://rexml//lib/rexml/element.rb#2254 + def each_attribute; end + + # :call-seq: + # get_attribute(name) -> attribute_object or nil + # + # Returns the \REXML::Attribute object for the given +name+: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs.get_attribute('foo:att') # => foo:att='1' + # attrs.get_attribute('foo:att').class # => REXML::Attribute + # attrs.get_attribute('bar:att') # => bar:att='2' + # attrs.get_attribute('att') # => att='<' + # attrs.get_attribute('nosuch') # => nil + # + # source://rexml//lib/rexml/element.rb#2313 + def get_attribute(name); end + + # :call-seq: + # get_attribute_ns(namespace, name) + # + # Returns the \REXML::Attribute object among the attributes + # that matches the given +namespace+ and +name+: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes + # attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1' + # attrs.get_attribute_ns('http://foo', 'nosuch') # => nil + # + # source://rexml//lib/rexml/element.rb#2585 + def get_attribute_ns(namespace, name); end + + # :call-seq: + # length + # + # Returns the count of attributes: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # ele.attributes.length # => 3 + # + # source://rexml//lib/rexml/element.rb#2225 + def length; end + + # :call-seq: + # namespaces + # + # Returns a hash of name/value pairs for the namespaces: + # + # xml_string = '' + # d = REXML::Document.new(xml_string) + # d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"} + # + # source://rexml//lib/rexml/element.rb#2446 + def namespaces; end + + # :call-seq: + # prefixes -> array_of_prefix_strings + # + # Returns an array of prefix strings in the attributes. + # The array does not include the default + # namespace declaration, if one exists. + # + # xml_string = '' + # d = REXML::Document.new(xml_string) + # d.root.attributes.prefixes # => ["x", "y"] + # + # source://rexml//lib/rexml/element.rb#2421 + def prefixes; end + + # :call-seq: + # length + # + # Returns the count of attributes: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # ele.attributes.length # => 3 + # + # source://rexml//lib/rexml/element.rb#2225 + def size; end + + # :call-seq: + # to_a -> array_of_attribute_objects + # + # Returns an array of \REXML::Attribute objects representing + # the attributes: + # + # xml_string = <<-EOT + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # ele = d.root.elements['//ele'] # => + # attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<'] + # attrs.first.class # => REXML::Attribute + # + # source://rexml//lib/rexml/element.rb#2207 + def to_a; end +end + +# source://rexml//lib/rexml/cdata.rb#5 +class REXML::CData < ::REXML::Text + # Constructor. CData is data between + # + # _Examples_ + # CData.new( source ) + # CData.new( "Here is some CDATA" ) + # CData.new( "Some unprocessed data", respect_whitespace_TF, parent_element ) + # + # @return [CData] a new instance of CData + # + # source://rexml//lib/rexml/cdata.rb#16 + def initialize(first, whitespace = T.unsafe(nil), parent = T.unsafe(nil)); end + + # Make a copy of this object + # + # _Examples_ + # c = CData.new( "Some text" ) + # d = c.clone + # d.to_s # -> "Some text" + # + # source://rexml//lib/rexml/cdata.rb#26 + def clone; end + + # Returns the content of this CData object + # + # _Examples_ + # c = CData.new( "Some text" ) + # c.to_s # -> "Some text" + # + # source://rexml//lib/rexml/cdata.rb#35 + def to_s; end + + # source://rexml//lib/rexml/cdata.rb#39 + def value; end + + # == DEPRECATED + # See the rexml/formatters package + # + # Generates XML output of this object + # + # output:: + # Where to write the string. Defaults to $stdout + # indent:: + # The amount to indent this node by + # transitive:: + # Ignored + # ie_hack:: + # Ignored + # + # _Examples_ + # c = CData.new( " Some text " ) + # c.write( $stdout ) #-> + # + # source://rexml//lib/rexml/cdata.rb#60 + def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end +end + +# A Child object is something contained by a parent, and this class +# contains methods to support that. Most user code will not use this +# class directly. +# +# source://rexml//lib/rexml/child.rb#9 +class REXML::Child + include ::REXML::Node + + # Constructor. Any inheritors of this class should call super to make + # sure this method is called. + # parent:: + # if supplied, the parent of this child will be set to the + # supplied value, and self will be added to the parent + # + # @return [Child] a new instance of Child + # + # source://rexml//lib/rexml/child.rb#18 + def initialize(parent = T.unsafe(nil)); end + + # This doesn't yet handle encodings + # + # source://rexml//lib/rexml/child.rb#91 + def bytes; end + + # Returns:: the document this child belongs to, or nil if this child + # belongs to no document + # + # source://rexml//lib/rexml/child.rb#85 + def document; end + + # source://rexml//lib/rexml/node.rb#11 + def next_sibling; end + + # Sets the next sibling of this child. This can be used to insert a child + # after some other child. + # a = Element.new("a") + # b = a.add_element("b") + # c = Element.new("c") + # b.next_sibling = c + # # => + # + # source://rexml//lib/rexml/child.rb#68 + def next_sibling=(other); end + + # The Parent of this object + # + # source://rexml//lib/rexml/child.rb#11 + def parent; end + + # Sets the parent of this child to the supplied argument. + # + # other:: + # Must be a Parent object. If this object is the same object as the + # existing parent of this child, no action is taken. Otherwise, this + # child is removed from the current parent (if one exists), and is added + # to the new parent. + # Returns:: The parent added + # + # source://rexml//lib/rexml/child.rb#52 + def parent=(other); end + + # source://rexml//lib/rexml/node.rb#17 + def previous_sibling; end + + # Sets the previous sibling of this child. This can be used to insert a + # child before some other child. + # a = Element.new("a") + # b = a.add_element("b") + # c = Element.new("c") + # b.previous_sibling = c + # # => + # + # source://rexml//lib/rexml/child.rb#79 + def previous_sibling=(other); end + + # Removes this child from the parent. + # + # Returns:: self + # + # source://rexml//lib/rexml/child.rb#37 + def remove; end + + # Replaces this object with another object. Basically, calls + # Parent.replace_child + # + # Returns:: self + # + # source://rexml//lib/rexml/child.rb#29 + def replace_with(child); end +end + +# Represents an XML comment; that is, text between \ +# +# source://rexml//lib/rexml/comment.rb#7 +class REXML::Comment < ::REXML::Child + include ::Comparable + + # Constructor. The first argument can be one of three types: + # argument. If Comment, the argument is duplicated. If + # Source, the argument is scanned for a comment. + # should be nil, not supplied, or a Parent to be set as the parent + # of this object + # + # @param first If String, the contents of this comment are set to the + # @param second If the first argument is a Source, this argument + # @return [Comment] a new instance of Comment + # + # source://rexml//lib/rexml/comment.rb#24 + def initialize(first, second = T.unsafe(nil)); end + + # Compares this Comment to another; the contents of the comment are used + # in the comparison. + # + # source://rexml//lib/rexml/comment.rb#63 + def <=>(other); end + + # Compares this Comment to another; the contents of the comment are used + # in the comparison. + # + # source://rexml//lib/rexml/comment.rb#70 + def ==(other); end + + # source://rexml//lib/rexml/comment.rb#33 + def clone; end + + # source://rexml//lib/rexml/comment.rb#75 + def node_type; end + + # The content text + # + # source://rexml//lib/rexml/comment.rb#14 + def string; end + + # The content text + # + # source://rexml//lib/rexml/comment.rb#14 + def string=(_arg0); end + + # The content text + # + # source://rexml//lib/rexml/comment.rb#14 + def to_s; end + + # == DEPRECATED + # See REXML::Formatters + # + # output:: + # Where to write the string + # indent:: + # An integer. If -1, no indenting will be used; otherwise, the + # indentation will be this number of spaces, and children will be + # indented an additional amount. + # transitive:: + # Ignored by this class. The contents of comments are never modified. + # ie_hack:: + # Needed for conformity to the child API, but not used by this class. + # + # source://rexml//lib/rexml/comment.rb#50 + def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end +end + +# source://rexml//lib/rexml/xpath_parser.rb#11 +module REXML::DClonable; end + +# This is an abstract class. You never use this directly; it serves as a +# parent class for the specific declarations. +# +# source://rexml//lib/rexml/doctype.rb#242 +class REXML::Declaration < ::REXML::Child + # @return [Declaration] a new instance of Declaration + # + # source://rexml//lib/rexml/doctype.rb#243 + def initialize(src); end + + # source://rexml//lib/rexml/doctype.rb#248 + def to_s; end + + # == DEPRECATED + # See REXML::Formatters + # + # source://rexml//lib/rexml/doctype.rb#255 + def write(output, indent); end +end + +# Represents an XML DOCTYPE declaration; that is, the contents of . DOCTYPES can be used to declare the DTD of a document, as well as +# being used to declare entities used in the document. +# +# source://rexml//lib/rexml/doctype.rb#51 +class REXML::DocType < ::REXML::Parent + include ::REXML::XMLTokens + + # Constructor + # + # dt = DocType.new( 'foo', '-//I/Hate/External/IDs' ) + # # + # dt = DocType.new( doctype_to_clone ) + # # Incomplete. Shallow clone of doctype + # + # +Note+ that the constructor: + # + # Doctype.new( Source.new( "" ) ) + # + # is _deprecated_. Do not use it. It will probably disappear. + # + # @return [DocType] a new instance of DocType + # + # source://rexml//lib/rexml/doctype.rb#80 + def initialize(first, parent = T.unsafe(nil)); end + + # source://rexml//lib/rexml/doctype.rb#185 + def add(child); end + + # source://rexml//lib/rexml/doctype.rb#125 + def attribute_of(element, attribute); end + + # source://rexml//lib/rexml/doctype.rb#115 + def attributes_of(element); end + + # source://rexml//lib/rexml/doctype.rb#135 + def clone; end + + # source://rexml//lib/rexml/doctype.rb#173 + def context; end + + # name is the name of the doctype + # external_id is the referenced DTD, if given + # + # source://rexml//lib/rexml/doctype.rb#66 + def entities; end + + # source://rexml//lib/rexml/doctype.rb#181 + def entity(name); end + + # name is the name of the doctype + # external_id is the referenced DTD, if given + # + # source://rexml//lib/rexml/doctype.rb#66 + def external_id; end + + # name is the name of the doctype + # external_id is the referenced DTD, if given + # + # source://rexml//lib/rexml/doctype.rb#66 + def name; end + + # name is the name of the doctype + # external_id is the referenced DTD, if given + # + # source://rexml//lib/rexml/doctype.rb#66 + def namespaces; end + + # source://rexml//lib/rexml/doctype.rb#111 + def node_type; end + + # Retrieves a named notation. Only notations declared in the internal + # DTD subset can be retrieved. + # + # Method contributed by Henrik Martensson + # + # source://rexml//lib/rexml/doctype.rb#229 + def notation(name); end + + # This method returns a list of notations that have been declared in the + # _internal_ DTD subset. Notations in the external DTD subset are not + # listed. + # + # Method contributed by Henrik Martensson + # + # source://rexml//lib/rexml/doctype.rb#221 + def notations; end + + # This method retrieves the public identifier identifying the document's + # DTD. + # + # Method contributed by Henrik Martensson + # + # source://rexml//lib/rexml/doctype.rb#195 + def public; end + + # This method retrieves the system identifier identifying the document's DTD + # + # Method contributed by Henrik Martensson + # + # source://rexml//lib/rexml/doctype.rb#207 + def system; end + + # output:: + # Where to write the string + # indent:: + # An integer. If -1, no indentation will be used; otherwise, the + # indentation will be this number of spaces, and children will be + # indented an additional amount. + # transitive:: + # Ignored + # ie_hack:: + # Ignored + # + # source://rexml//lib/rexml/doctype.rb#149 + def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end +end + +# Represents an XML document. +# +# A document may have: +# +# - A single child that may be accessed via method #root. +# - An XML declaration. +# - A document type. +# - Processing instructions. +# +# == In a Hurry? +# +# If you're somewhat familiar with XML +# and have a particular task in mind, +# you may want to see the +# {tasks pages}[../doc/rexml/tasks/tocs/master_toc_rdoc.html], +# and in particular, the +# {tasks page for documents}[../doc/rexml/tasks/tocs/document_toc_rdoc.html]. +# +# source://rexml//lib/rexml/document.rb#35 +class REXML::Document < ::REXML::Element + # :call-seq: + # new(string = nil, context = {}) -> new_document + # new(io_stream = nil, context = {}) -> new_document + # new(document = nil, context = {}) -> new_document + # + # Returns a new \REXML::Document object. + # + # When no arguments are given, + # returns an empty document: + # + # d = REXML::Document.new + # d.to_s # => "" + # + # When argument +string+ is given, it must be a string + # containing a valid XML document: + # + # xml_string = 'FooBar' + # d = REXML::Document.new(xml_string) + # d.to_s # => "FooBar" + # + # When argument +io_stream+ is given, it must be an \IO object + # that is opened for reading, and when read must return a valid XML document: + # + # File.write('t.xml', xml_string) + # d = File.open('t.xml', 'r') do |io| + # REXML::Document.new(io) + # end + # d.to_s # => "FooBar" + # + # When argument +document+ is given, it must be an existing + # document object, whose context and attributes (but not children) + # are cloned into the new document: + # + # d = REXML::Document.new(xml_string) + # d.children # => [ ... ] + # d.context = {raw: :all, compress_whitespace: :all} + # d.add_attributes({'bar' => 0, 'baz' => 1}) + # d1 = REXML::Document.new(d) + # d1.children # => [] + # d1.context # => {:raw=>:all, :compress_whitespace=>:all} + # d1.attributes # => {"bar"=>bar='0', "baz"=>baz='1'} + # + # When argument +context+ is given, it must be a hash + # containing context entries for the document; + # see {Element Context}[../doc/rexml/context_rdoc.html]: + # + # context = {raw: :all, compress_whitespace: :all} + # d = REXML::Document.new(xml_string, context) + # d.context # => {:raw=>:all, :compress_whitespace=>:all} + # + # @return [Document] a new instance of Document + # + # source://rexml//lib/rexml/document.rb#92 + def initialize(source = T.unsafe(nil), context = T.unsafe(nil)); end + + # :call-seq: + # add(xml_decl) -> self + # add(doc_type) -> self + # add(object) -> self + # + # Adds an object to the document; returns +self+. + # + # When argument +xml_decl+ is given, + # it must be an REXML::XMLDecl object, + # which becomes the XML declaration for the document, + # replacing the previous XML declaration if any: + # + # d = REXML::Document.new + # d.xml_decl.to_s # => "" + # d.add(REXML::XMLDecl.new('2.0')) + # d.xml_decl.to_s # => "" + # + # When argument +doc_type+ is given, + # it must be an REXML::DocType object, + # which becomes the document type for the document, + # replacing the previous document type, if any: + # + # d = REXML::Document.new + # d.doctype.to_s # => "" + # d.add(REXML::DocType.new('foo')) + # d.doctype.to_s # => "" + # + # When argument +object+ (not an REXML::XMLDecl or REXML::DocType object) + # is given it is added as the last child: + # + # d = REXML::Document.new + # d.add(REXML::Element.new('foo')) + # d.to_s # => "" + # + # source://rexml//lib/rexml/document.rb#170 + def <<(child); end + + # :call-seq: + # add(xml_decl) -> self + # add(doc_type) -> self + # add(object) -> self + # + # Adds an object to the document; returns +self+. + # + # When argument +xml_decl+ is given, + # it must be an REXML::XMLDecl object, + # which becomes the XML declaration for the document, + # replacing the previous XML declaration if any: + # + # d = REXML::Document.new + # d.xml_decl.to_s # => "" + # d.add(REXML::XMLDecl.new('2.0')) + # d.xml_decl.to_s # => "" + # + # When argument +doc_type+ is given, + # it must be an REXML::DocType object, + # which becomes the document type for the document, + # replacing the previous document type, if any: + # + # d = REXML::Document.new + # d.doctype.to_s # => "" + # d.add(REXML::DocType.new('foo')) + # d.doctype.to_s # => "" + # + # When argument +object+ (not an REXML::XMLDecl or REXML::DocType object) + # is given it is added as the last child: + # + # d = REXML::Document.new + # d.add(REXML::Element.new('foo')) + # d.to_s # => "" + # + # source://rexml//lib/rexml/document.rb#170 + def add(child); end + + # :call-seq: + # add_element(name_or_element = nil, attributes = nil) -> new_element + # + # Adds an element to the document by calling REXML::Element.add_element: + # + # REXML::Element.add_element(name_or_element, attributes) + # + # source://rexml//lib/rexml/document.rb#209 + def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end + + # :call-seq: + # clone -> new_document + # + # Returns the new document resulting from executing + # Document.new(self). See Document.new. + # + # source://rexml//lib/rexml/document.rb#120 + def clone; end + + # :call-seq: + # doctype -> doc_type or nil + # + # Returns the DocType object for the document, if it exists, otherwise +nil+: + # + # d = REXML::Document.new('') + # d.doctype.class # => REXML::DocType + # d = REXML::Document.new('') + # d.doctype.class # => nil + # + # source://rexml//lib/rexml/document.rb#241 + def doctype; end + + # source://rexml//lib/rexml/document.rb#442 + def document; end + + # :call-seq: + # encoding -> encoding_string + # + # Returns the XMLDecl encoding of the document, + # + # d = REXML::Document.new('') + # d.encoding # => "UTF-16" + # d = REXML::Document.new('') + # d.encoding # => "UTF-8" + # + # source://rexml//lib/rexml/document.rb#290 + def encoding; end + + # Returns the value of attribute entity_expansion_count. + # + # source://rexml//lib/rexml/document.rb#433 + def entity_expansion_count; end + + # :call-seq: + # expanded_name -> empty_string + # + # Returns an empty string. + # + # source://rexml//lib/rexml/document.rb#129 + def expanded_name; end + + # :call-seq: + # expanded_name -> empty_string + # + # Returns an empty string. + # d = doc_type + # d ? d.name : "UNDEFINED" + # + # source://rexml//lib/rexml/document.rb#129 + def name; end + + # :call-seq: + # node_type -> :document + # + # Returns the symbol +:document+. + # + # source://rexml//lib/rexml/document.rb#110 + def node_type; end + + # source://rexml//lib/rexml/document.rb#435 + def record_entity_expansion; end + + # :call-seq: + # root -> root_element or nil + # + # Returns the root element of the document, if it exists, otherwise +nil+: + # + # d = REXML::Document.new('') + # d.root # => + # d = REXML::Document.new('') + # d.root # => nil + # + # source://rexml//lib/rexml/document.rb#225 + def root; end + + # :call-seq: + # stand_alone? + # + # Returns the XMLDecl standalone value of the document as a string, + # if it has been set, otherwise the default standalone value: + # + # d = REXML::Document.new('') + # d.stand_alone? # => "yes" + # d = REXML::Document.new('') + # d.stand_alone? # => nil + # + # @return [Boolean] + # + # source://rexml//lib/rexml/document.rb#305 + def stand_alone?; end + + # :call-seq: + # version -> version_string + # + # Returns the XMLDecl version of this document as a string, + # if it has been set, otherwise the default version: + # + # d = REXML::Document.new('') + # d.version # => "2.0" + # d = REXML::Document.new('') + # d.version # => "1.0" + # + # source://rexml//lib/rexml/document.rb#275 + def version; end + + # :call-seq: + # doc.write(output=$stdout, indent=-1, transtive=false, ie_hack=false, encoding=nil) + # doc.write(options={:output => $stdout, :indent => -1, :transtive => false, :ie_hack => false, :encoding => nil}) + # + # Write the XML tree out, optionally with indent. This writes out the + # entire XML document, including XML declarations, doctype declarations, + # and processing instructions (if any are given). + # + # A controversial point is whether Document should always write the XML + # declaration () whether or not one is given by the + # user (or source document). REXML does not write one if one was not + # specified, because it adds unnecessary bandwidth to applications such + # as XML-RPC. + # + # Accept Nth argument style and options Hash style as argument. + # The recommended style is options Hash style for one or more + # arguments case. + # + # _Examples_ + # Document.new("").write + # + # output = "" + # Document.new("").write(output) + # + # output = "" + # Document.new("").write(:output => output, :indent => 2) + # + # See also the classes in the rexml/formatters package for the proper way + # to change the default formatting of XML output. + # + # _Examples_ + # + # output = "" + # tr = Transitive.new + # tr.write(Document.new(""), output) + # + # output:: + # output an object which supports '<< string'; this is where the + # document will be written. + # indent:: + # An integer. If -1, no indenting will be used; otherwise, the + # indentation will be twice this number of spaces, and children will be + # indented an additional amount. For a value of 3, every item will be + # indented 3 more levels, or 6 more spaces (2 * 3). Defaults to -1 + # transitive:: + # If transitive is true and indent is >= 0, then the output will be + # pretty-printed in such a way that the added whitespace does not affect + # the absolute *value* of the document -- that is, it leaves the value + # and number of Text nodes in the document unchanged. + # ie_hack:: + # This hack inserts a space before the /> on empty tags to address + # a limitation of Internet Explorer. Defaults to false + # Encoding name as String. Change output encoding to specified encoding + # instead of encoding in XML declaration. + # Defaults to nil. It means encoding in XML declaration is used. + # + # source://rexml//lib/rexml/document.rb#365 + def write(*arguments); end + + # :call-seq: + # xml_decl -> xml_decl + # + # Returns the XMLDecl object for the document, if it exists, + # otherwise the default XMLDecl object: + # + # d = REXML::Document.new('') + # d.xml_decl.class # => REXML::XMLDecl + # d.xml_decl.to_s # => "" + # d = REXML::Document.new('') + # d.xml_decl.class # => REXML::XMLDecl + # d.xml_decl.to_s # => "" + # + # source://rexml//lib/rexml/document.rb#258 + def xml_decl; end + + private + + # source://rexml//lib/rexml/document.rb#447 + def build(source); end + + class << self + # Get the entity expansion limit. By default the limit is set to 10000. + # + # Deprecated. Use REXML::Security.entity_expansion_limit= instead. + # + # source://rexml//lib/rexml/document.rb#415 + def entity_expansion_limit; end + + # Set the entity expansion limit. By default the limit is set to 10000. + # + # Deprecated. Use REXML::Security.entity_expansion_limit= instead. + # + # source://rexml//lib/rexml/document.rb#408 + def entity_expansion_limit=(val); end + + # Get the entity expansion limit. By default the limit is set to 10240. + # + # Deprecated. Use REXML::Security.entity_expansion_text_limit instead. + # + # source://rexml//lib/rexml/document.rb#429 + def entity_expansion_text_limit; end + + # Set the entity expansion limit. By default the limit is set to 10240. + # + # Deprecated. Use REXML::Security.entity_expansion_text_limit= instead. + # + # source://rexml//lib/rexml/document.rb#422 + def entity_expansion_text_limit=(val); end + + # source://rexml//lib/rexml/document.rb#401 + def parse_stream(source, listener); end + end +end + +# An \REXML::Element object represents an XML element. +# +# An element: +# +# - Has a name (string). +# - May have a parent (another element). +# - Has zero or more children +# (other elements, text, CDATA, processing instructions, and comments). +# - Has zero or more siblings +# (other elements, text, CDATA, processing instructions, and comments). +# - Has zero or more named attributes. +# +# == In a Hurry? +# +# If you're somewhat familiar with XML +# and have a particular task in mind, +# you may want to see the +# {tasks pages}[../doc/rexml/tasks/tocs/master_toc_rdoc.html], +# and in particular, the +# {tasks page for elements}[../doc/rexml/tasks/tocs/element_toc_rdoc.html]. +# +# === Name +# +# An element has a name, which is initially set when the element is created: +# +# e = REXML::Element.new('foo') +# e.name # => "foo" +# +# The name may be changed: +# +# e.name = 'bar' +# e.name # => "bar" +# +# +# === \Parent +# +# An element may have a parent. +# +# Its parent may be assigned explicitly when the element is created: +# +# e0 = REXML::Element.new('foo') +# e1 = REXML::Element.new('bar', e0) +# e1.parent # => ... +# +# Note: the representation of an element always shows the element's name. +# If the element has children, the representation indicates that +# by including an ellipsis (...). +# +# The parent may be assigned explicitly at any time: +# +# e2 = REXML::Element.new('baz') +# e1.parent = e2 +# e1.parent # => +# +# When an element is added as a child, its parent is set automatically: +# +# e1.add_element(e0) +# e0.parent # => ... +# +# For an element that has no parent, method +parent+ returns +nil+. +# +# === Children +# +# An element has zero or more children. +# The children are an ordered collection +# of all objects whose parent is the element itself. +# +# The children may include any combination of elements, text, comments, +# processing instructions, and CDATA. +# (This example keeps things clean by controlling whitespace +# via a +context+ setting.) +# +# xml_string = <<-EOT +# +# +# text 0 +# +# +# +# +# text 1 +# +# +# +# +# EOT +# context = {ignore_whitespace_nodes: :all, compress_whitespace: :all} +# d = REXML::Document.new(xml_string, context) +# root = d.root +# root.children.size # => 10 +# root.each {|child| p "#{child.class}: #{child}" } +# +# Output: +# +# "REXML::Element: " +# "REXML::Text: \n text 0\n " +# "REXML::Comment: comment 0" +# "REXML::Instruction: " +# "REXML::CData: cdata 0" +# "REXML::Element: " +# "REXML::Text: \n text 1\n " +# "REXML::Comment: comment 1" +# "REXML::Instruction: " +# "REXML::CData: cdata 1" +# +# A child may be added using inherited methods +# Parent#insert_before or Parent#insert_after: +# +# xml_string = '' +# d = REXML::Document.new(xml_string) +# root = d.root +# c = d.root[1] # => +# root.insert_before(c, REXML::Element.new('b')) +# root.to_a # => [, , , ] +# +# A child may be replaced using Parent#replace_child: +# +# root.replace_child(c, REXML::Element.new('x')) +# root.to_a # => [, , , ] +# +# A child may be removed using Parent#delete: +# +# x = root[2] # => +# root.delete(x) +# root.to_a # => [, , ] +# +# === Siblings +# +# An element has zero or more siblings, +# which are the other children of the element's parent. +# +# In the example above, element +ele_1+ is between a CDATA sibling +# and a text sibling: +# +# ele_1 = root[5] # => +# ele_1.previous_sibling # => "cdata 0" +# ele_1.next_sibling # => "\n text 1\n " +# +# === \Attributes +# +# An element has zero or more named attributes. +# +# A new element has no attributes: +# +# e = REXML::Element.new('foo') +# e.attributes # => {} +# +# Attributes may be added: +# +# e.add_attribute('bar', 'baz') +# e.add_attribute('bat', 'bam') +# e.attributes.size # => 2 +# e['bar'] # => "baz" +# e['bat'] # => "bam" +# +# An existing attribute may be modified: +# +# e.add_attribute('bar', 'bad') +# e.attributes.size # => 2 +# e['bar'] # => "bad" +# +# An existing attribute may be deleted: +# +# e.delete_attribute('bar') +# e.attributes.size # => 1 +# e['bar'] # => nil +# +# == What's Here +# +# To begin with, what's elsewhere? +# +# \Class \REXML::Element inherits from its ancestor classes: +# +# - REXML::Child +# - REXML::Parent +# +# \REXML::Element itself and its ancestors also include modules: +# +# - {Enumerable}[https://docs.ruby-lang.org/en/master/Enumerable.html] +# - REXML::Namespace +# - REXML::Node +# - REXML::XMLTokens +# +# === Methods for Creating an \Element +# +# ::new:: Returns a new empty element. +# #clone:: Returns a clone of another element. +# +# === Methods for Attributes +# +# {[attribute_name]}[#method-i-5B-5D]:: Returns an attribute value. +# #add_attribute:: Adds a new attribute. +# #add_attributes:: Adds multiple new attributes. +# #attribute:: Returns the attribute value for a given name and optional namespace. +# #delete_attribute:: Removes an attribute. +# +# === Methods for Children +# +# {[index]}[#method-i-5B-5D]:: Returns the child at the given offset. +# #add_element:: Adds an element as the last child. +# #delete_element:: Deletes a child element. +# #each_element:: Calls the given block with each child element. +# #each_element_with_attribute:: Calls the given block with each child element +# that meets given criteria, +# which can include the attribute name. +# #each_element_with_text:: Calls the given block with each child element +# that meets given criteria, +# which can include text. +# #get_elements:: Returns an array of element children that match a given xpath. +# +# === Methods for \Text Children +# +# #add_text:: Adds a text node to the element. +# #get_text:: Returns a text node that meets specified criteria. +# #text:: Returns the text string from the first node that meets specified criteria. +# #texts:: Returns an array of the text children of the element. +# #text=:: Adds, removes, or replaces the first text child of the element +# +# === Methods for Other Children +# +# #cdatas:: Returns an array of the cdata children of the element. +# #comments:: Returns an array of the comment children of the element. +# #instructions:: Returns an array of the instruction children of the element. +# +# === Methods for Namespaces +# +# #add_namespace:: Adds a namespace to the element. +# #delete_namespace:: Removes a namespace from the element. +# #namespace:: Returns the string namespace URI for the element. +# #namespaces:: Returns a hash of all defined namespaces in the element. +# #prefixes:: Returns an array of the string prefixes (names) +# of all defined namespaces in the element +# +# === Methods for Querying +# +# #document:: Returns the document, if any, that the element belongs to. +# #root:: Returns the most distant element (not document) ancestor of the element. +# #root_node:: Returns the most distant ancestor of the element. +# #xpath:: Returns the string xpath to the element +# relative to the most distant parent +# #has_attributes?:: Returns whether the element has attributes. +# #has_elements?:: Returns whether the element has elements. +# #has_text?:: Returns whether the element has text. +# #next_element:: Returns the next sibling that is an element. +# #previous_element:: Returns the previous sibling that is an element. +# #raw:: Returns whether raw mode is set for the element. +# #whitespace:: Returns whether whitespace is respected for the element. +# #ignore_whitespace_nodes:: Returns whether whitespace nodes +# are to be ignored for the element. +# #node_type:: Returns symbol :element. +# +# === One More Method +# +# #inspect:: Returns a string representation of the element. +# +# === Accessors +# +# #elements:: Returns the REXML::Elements object for the element. +# #attributes:: Returns the REXML::Attributes object for the element. +# #context:: Returns or sets the context hash for the element. +# +# source://rexml//lib/rexml/element.rb#279 +class REXML::Element < ::REXML::Parent + include ::REXML::XMLTokens + include ::REXML::Namespace + + # :call-seq: + # Element.new(name = 'UNDEFINED', parent = nil, context = nil) -> new_element + # Element.new(element, parent = nil, context = nil) -> new_element + # + # Returns a new \REXML::Element object. + # + # When no arguments are given, + # returns an element with name 'UNDEFINED': + # + # e = REXML::Element.new # => + # e.class # => REXML::Element + # e.name # => "UNDEFINED" + # + # When only argument +name+ is given, + # returns an element of the given name: + # + # REXML::Element.new('foo') # => + # + # When only argument +element+ is given, it must be an \REXML::Element object; + # returns a shallow copy of the given element: + # + # e0 = REXML::Element.new('foo') + # e1 = REXML::Element.new(e0) # => + # + # When argument +parent+ is also given, it must be an REXML::Parent object: + # + # e = REXML::Element.new('foo', REXML::Parent.new) + # e.parent # => #]> + # + # When argument +context+ is also given, it must be a hash + # representing the context for the element; + # see {Element Context}[../doc/rexml/context_rdoc.html]: + # + # e = REXML::Element.new('foo', nil, {raw: :all}) + # e.context # => {:raw=>:all} + # + # @return [Element] a new instance of Element + # + # source://rexml//lib/rexml/element.rb#327 + def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end + + # :call-seq: + # [index] -> object + # [attr_name] -> attr_value + # [attr_sym] -> attr_value + # + # With integer argument +index+ given, + # returns the child at offset +index+, or +nil+ if none: + # + # d = REXML::Document.new '>textmore' + # root = d.root + # (0..root.size).each do |index| + # node = root[index] + # p "#{index}: #{node} (#{node.class})" + # end + # + # Output: + # + # "0: (REXML::Element)" + # "1: text (REXML::Text)" + # "2: (REXML::Element)" + # "3: more (REXML::Text)" + # "4: (REXML::Element)" + # "5: (NilClass)" + # + # With string argument +attr_name+ given, + # returns the string value for the given attribute name if it exists, + # otherwise +nil+: + # + # d = REXML::Document.new('') + # root = d.root + # root['attr'] # => "value" + # root['nosuch'] # => nil + # + # With symbol argument +attr_sym+ given, + # returns [attr_sym.to_s]: + # + # root[:attr] # => "value" + # root[:nosuch] # => nil + # + # source://rexml//lib/rexml/element.rb#1245 + def [](name_or_index); end + + # :call-seq: + # add_attribute(name, value) -> value + # add_attribute(attribute) -> attribute + # + # Adds an attribute to this element, overwriting any existing attribute + # by the same name. + # + # With string argument +name+ and object +value+ are given, + # adds the attribute created with that name and value: + # + # e = REXML::Element.new + # e.add_attribute('attr', 'value') # => "value" + # e['attr'] # => "value" + # e.add_attribute('attr', 'VALUE') # => "VALUE" + # e['attr'] # => "VALUE" + # + # With only attribute object +attribute+ given, + # adds the given attribute: + # + # a = REXML::Attribute.new('attr', 'value') + # e.add_attribute(a) # => attr='value' + # e['attr'] # => "value" + # a = REXML::Attribute.new('attr', 'VALUE') + # e.add_attribute(a) # => attr='VALUE' + # e['attr'] # => "VALUE" + # + # source://rexml//lib/rexml/element.rb#1349 + def add_attribute(key, value = T.unsafe(nil)); end + + # :call-seq: + # add_attributes(hash) -> hash + # add_attributes(array) + # + # Adds zero or more attributes to the element; + # returns the argument. + # + # If hash argument +hash+ is given, + # each key must be a string; + # adds each attribute created with the key/value pair: + # + # e = REXML::Element.new + # h = {'foo' => 'bar', 'baz' => 'bat'} + # e.add_attributes(h) + # + # If argument +array+ is given, + # each array member must be a 2-element array [name, value]; + # each name must be a string: + # + # e = REXML::Element.new + # a = [['foo' => 'bar'], ['baz' => 'bat']] + # e.add_attributes(a) + # + # source://rexml//lib/rexml/element.rb#1380 + def add_attributes(hash); end + + # :call-seq: + # add_element(name, attributes = nil) -> new_element + # add_element(element, attributes = nil) -> element + # + # Adds a child element, optionally setting attributes + # on the added element; returns the added element. + # + # With string argument +name+, creates a new element with that name + # and adds the new element as a child: + # + # e0 = REXML::Element.new('foo') + # e0.add_element('bar') + # e0[0] # => + # + # + # With argument +name+ and hash argument +attributes+, + # sets attributes on the new element: + # + # e0.add_element('baz', {'bat' => '0', 'bam' => '1'}) + # e0[1] # => + # + # With element argument +element+, adds that element as a child: + # + # e0 = REXML::Element.new('foo') + # e1 = REXML::Element.new('bar') + # e0.add_element(e1) + # e0[0] # => + # + # With argument +element+ and hash argument +attributes+, + # sets attributes on the added element: + # + # e0.add_element(e1, {'bat' => '0', 'bam' => '1'}) + # e0[1] # => + # + # source://rexml//lib/rexml/element.rb#731 + def add_element(element, attrs = T.unsafe(nil)); end + + # :call-seq: + # add_namespace(prefix, uri = nil) -> self + # + # Adds a namespace to the element; returns +self+. + # + # With the single argument +prefix+, + # adds a namespace using the given +prefix+ and the namespace URI: + # + # e = REXML::Element.new('foo') + # e.add_namespace('bar') + # e.namespaces # => {"xmlns"=>"bar"} + # + # With both arguments +prefix+ and +uri+ given, + # adds a namespace using both arguments: + # + # e.add_namespace('baz', 'bat') + # e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"} + # + # source://rexml//lib/rexml/element.rb#654 + def add_namespace(prefix, uri = T.unsafe(nil)); end + + # :call-seq: + # add_text(string) -> nil + # add_text(text_node) -> self + # + # Adds text to the element. + # + # When string argument +string+ is given, returns +nil+. + # + # If the element has no child text node, + # creates a \REXML::Text object using the string, + # honoring the current settings for whitespace and raw, + # then adds that node to the element: + # + # d = REXML::Document.new('') + # a = d.root + # a.add_text('foo') + # a.to_a # => [, "foo"] + # + # If the element has child text nodes, + # appends the string to the _last_ text node: + # + # d = REXML::Document.new('foobar') + # a = d.root + # a.add_text('baz') + # a.to_a # => ["foo", , "barbaz"] + # a.add_text('baz') + # a.to_a # => ["foo", , "barbazbaz"] + # + # When text node argument +text_node+ is given, + # appends the node as the last text node in the element; + # returns +self+: + # + # d = REXML::Document.new('foobar') + # a = d.root + # a.add_text(REXML::Text.new('baz')) + # a.to_a # => ["foo", , "bar", "baz"] + # a.add_text(REXML::Text.new('baz')) + # a.to_a # => ["foo", , "bar", "baz", "baz"] + # + # source://rexml//lib/rexml/element.rb#1146 + def add_text(text); end + + # :call-seq: + # attribute(name, namespace = nil) + # + # Returns the string value for the given attribute name. + # + # With only argument +name+ given, + # returns the value of the named attribute if it exists, otherwise +nil+: + # + # xml_string = <<-EOT + # + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # root = d.root + # a = root[1] # => + # a.attribute('attr') # => attr='value' + # a.attribute('nope') # => nil + # + # With arguments +name+ and +namespace+ given, + # returns the value of the named attribute if it exists, otherwise +nil+: + # + # xml_string = "" + # document = REXML::Document.new(xml_string) + # document.root.attribute("x") # => x='x' + # document.root.attribute("x", "a") # => a:x='a:x' + # + # source://rexml//lib/rexml/element.rb#1286 + def attribute(name, namespace = T.unsafe(nil)); end + + # Mechanisms for accessing attributes and child elements of this + # element. + # + # source://rexml//lib/rexml/element.rb#286 + def attributes; end + + # :call-seq: + # cdatas -> array_of_cdata_children + # + # Returns a frozen array of the REXML::CData children of the element: + # + # xml_string = <<-EOT + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # cds = d.root.cdatas # => ["foo", "bar"] + # cds.frozen? # => true + # cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData] + # + # source://rexml//lib/rexml/element.rb#1424 + def cdatas; end + + # :call-seq: + # clone -> new_element + # + # Returns a shallow copy of the element, containing the name and attributes, + # but not the parent or children: + # + # e = REXML::Element.new('foo') + # e.add_attributes({'bar' => 0, 'baz' => 1}) + # e.clone # => + # + # source://rexml//lib/rexml/element.rb#391 + def clone; end + + # :call-seq: + # comments -> array_of_comment_children + # + # Returns a frozen array of the REXML::Comment children of the element: + # + # xml_string = <<-EOT + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # cs = d.root.comments + # cs.frozen? # => true + # cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment] + # cs.map {|c| c.to_s } # => ["foo", "bar"] + # + # source://rexml//lib/rexml/element.rb#1445 + def comments; end + + # The context holds information about the processing environment, such as + # whitespace handling. + # + # source://rexml//lib/rexml/element.rb#289 + def context; end + + # The context holds information about the processing environment, such as + # whitespace handling. + # + # source://rexml//lib/rexml/element.rb#289 + def context=(_arg0); end + + # :call-seq: + # delete_attribute(name) -> removed_attribute or nil + # + # Removes a named attribute if it exists; + # returns the removed attribute if found, otherwise +nil+: + # + # e = REXML::Element.new('foo') + # e.add_attribute('bar', 'baz') + # e.delete_attribute('bar') # => + # e.delete_attribute('bar') # => nil + # + # source://rexml//lib/rexml/element.rb#1399 + def delete_attribute(key); end + + # :call-seq: + # delete_element(index) -> removed_element or nil + # delete_element(element) -> removed_element or nil + # delete_element(xpath) -> removed_element or nil + # + # Deletes a child element. + # + # When 1-based integer argument +index+ is given, + # removes and returns the child element at that offset if it exists; + # indexing does not include text nodes; + # returns +nil+ if the element does not exist: + # + # d = REXML::Document.new 'text' + # a = d.root # => ... + # a.delete_element(1) # => + # a.delete_element(1) # => + # a.delete_element(1) # => nil + # + # When element argument +element+ is given, + # removes and returns that child element if it exists, + # otherwise returns +nil+: + # + # d = REXML::Document.new 'text' + # a = d.root # => ... + # c = a[2] # => + # a.delete_element(c) # => + # a.delete_element(c) # => nil + # + # When xpath argument +xpath+ is given, + # removes and returns the element at xpath if it exists, + # otherwise returns +nil+: + # + # d = REXML::Document.new 'text' + # a = d.root # => ... + # a.delete_element('//c') # => + # a.delete_element('//c') # => nil + # + # source://rexml//lib/rexml/element.rb#777 + def delete_element(element); end + + # :call-seq: + # delete_namespace(namespace = 'xmlns') -> self + # + # Removes a namespace from the element. + # + # With no argument, removes the default namespace: + # + # d = REXML::Document.new "" + # d.to_s # => "" + # d.root.delete_namespace # => + # d.to_s # => "" + # + # With argument +namespace+, removes the specified namespace: + # + # d.root.delete_namespace('foo') + # d.to_s # => "" + # + # Does nothing if no such namespace is found: + # + # d.root.delete_namespace('nosuch') + # d.to_s # => "" + # + # source://rexml//lib/rexml/element.rb#686 + def delete_namespace(namespace = T.unsafe(nil)); end + + # :call-seq: + # document -> document or nil + # + # If the element is part of a document, returns that document: + # + # d = REXML::Document.new('') + # top_element = d.first + # child = top_element.first + # top_element.document == d # => true + # child.document == d # => true + # + # If the element is not part of a document, returns +nil+: + # + # REXML::Element.new.document # => nil + # + # For a document, returns +self+: + # + # d.document == d # => true + # + # Related: #root, #root_node. + # + # source://rexml//lib/rexml/element.rb#478 + def document; end + + # :call-seq: + # each_element {|e| ... } + # + # Calls the given block with each child element: + # + # d = REXML::Document.new 'bbd' + # a = d.root + # a.each_element {|e| p e } + # + # Output: + # + # ... + # ... + # ... + # + # + # source://rexml//lib/rexml/element.rb#929 + def each_element(xpath = T.unsafe(nil), &block); end + + # :call-seq: + # each_element_with_attribute(attr_name, value = nil, max = 0, xpath = nil) {|e| ... } + # + # Calls the given block with each child element that meets given criteria. + # + # When only string argument +attr_name+ is given, + # calls the block with each child element that has that attribute: + # + # d = REXML::Document.new '' + # a = d.root + # a.each_element_with_attribute('id') {|e| p e } + # + # Output: + # + # + # + # + # + # With argument +attr_name+ and string argument +value+ given, + # calls the block with each child element that has that attribute + # with that value: + # + # a.each_element_with_attribute('id', '1') {|e| p e } + # + # Output: + # + # + # + # + # With arguments +attr_name+, +value+, and integer argument +max+ given, + # calls the block with at most +max+ child elements: + # + # a.each_element_with_attribute('id', '1', 1) {|e| p e } + # + # Output: + # + # + # + # With all arguments given, including +xpath+, + # calls the block with only those child elements + # that meet the first three criteria, + # and also match the given +xpath+: + # + # a.each_element_with_attribute('id', '1', 2, '//d') {|e| p e } + # + # Output: + # + # + # + # source://rexml//lib/rexml/element.rb#846 + def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end + + # :call-seq: + # each_element_with_text(text = nil, max = 0, xpath = nil) {|e| ... } + # + # Calls the given block with each child element that meets given criteria. + # + # With no arguments, calls the block with each child element that has text: + # + # d = REXML::Document.new 'bbd' + # a = d.root + # a.each_element_with_text {|e| p e } + # + # Output: + # + # ... + # ... + # ... + # + # With the single string argument +text+, + # calls the block with each element that has exactly that text: + # + # a.each_element_with_text('b') {|e| p e } + # + # Output: + # + # ... + # ... + # + # With argument +text+ and integer argument +max+, + # calls the block with at most +max+ elements: + # + # a.each_element_with_text('b', 1) {|e| p e } + # + # Output: + # + # ... + # + # With all arguments given, including +xpath+, + # calls the block with only those child elements + # that meet the first two criteria, + # and also match the given +xpath+: + # + # a.each_element_with_text('b', 2, '//c') {|e| p e } + # + # Output: + # + # ... + # + # source://rexml//lib/rexml/element.rb#903 + def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end + + # Mechanisms for accessing attributes and child elements of this + # element. + # + # source://rexml//lib/rexml/element.rb#286 + def elements; end + + # :call-seq: + # get_elements(xpath) + # + # Returns an array of the elements that match the given +xpath+: + # + # xml_string = <<-EOT + # + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # d.root.get_elements('//a') # => [ ... , ] + # + # source://rexml//lib/rexml/element.rb#948 + def get_elements(xpath); end + + # :call-seq: + # get_text(xpath = nil) -> text_node or nil + # + # Returns the first text node child in a specified element, if it exists, + # +nil+ otherwise. + # + # With no argument, returns the first text node from +self+: + # + # d = REXML::Document.new "

some text this is bold! more text

" + # d.root.get_text.class # => REXML::Text + # d.root.get_text # => "some text " + # + # With argument +xpath+, returns the first text node from the element + # that matches +xpath+: + # + # d.root.get_text(1) # => "this is bold!" + # + # source://rexml//lib/rexml/element.rb#1052 + def get_text(path = T.unsafe(nil)); end + + # :call-seq: + # has_attributes? -> true or false + # + # Returns +true+ if the element has attributes, +false+ otherwise: + # + # d = REXML::Document.new('
') + # a, b = *d.root + # a.has_attributes? # => true + # b.has_attributes? # => false + # + # @return [Boolean] + # + # source://rexml//lib/rexml/element.rb#1319 + def has_attributes?; end + + # :call-seq: + # has_elements? + # + # Returns +true+ if the element has one or more element children, + # +false+ otherwise: + # + # d = REXML::Document.new 'text' + # a = d.root # => ... + # a.has_elements? # => true + # b = a[0] # => + # b.has_elements? # => false + # + # @return [Boolean] + # + # source://rexml//lib/rexml/element.rb#793 + def has_elements?; end + + # :call-seq: + # has_text? -> true or false + # + # Returns +true+ if the element has one or more text noded, + # +false+ otherwise: + # + # d = REXML::Document.new 'text' + # a = d.root + # a.has_text? # => true + # b = a[0] + # b.has_text? # => false + # + # @return [Boolean] + # + # source://rexml//lib/rexml/element.rb#1001 + def has_text?; end + + # :call-seq: + # ignore_whitespace_nodes + # + # Returns +true+ if whitespace nodes are ignored for the element. + # + # See {Element Context}[../doc/rexml/context_rdoc.html]. + # + # source://rexml//lib/rexml/element.rb#516 + def ignore_whitespace_nodes; end + + # :call-seq: + # inspect -> string + # + # Returns a string representation of the element. + # + # For an element with no attributes and no children, shows the element name: + # + # REXML::Element.new.inspect # => "" + # + # Shows attributes, if any: + # + # e = REXML::Element.new('foo') + # e.add_attributes({'bar' => 0, 'baz' => 1}) + # e.inspect # => "" + # + # Shows an ellipsis (...), if there are child elements: + # + # e.add_element(REXML::Element.new('bar')) + # e.add_element(REXML::Element.new('baz')) + # e.inspect # => " ... " + # + # source://rexml//lib/rexml/element.rb#366 + def inspect; end + + # :call-seq: + # instructions -> array_of_instruction_children + # + # Returns a frozen array of the REXML::Instruction children of the element: + # + # xml_string = <<-EOT + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # is = d.root.instructions + # is.frozen? # => true + # is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction] + # is.map {|i| i.to_s } # => ["", ""] + # + # source://rexml//lib/rexml/element.rb#1466 + def instructions; end + + # :call-seq: + # namespace(prefix = nil) -> string_uri or nil + # + # Returns the string namespace URI for the element, + # possibly deriving from one of its ancestors. + # + # xml_string = <<-EOT + # + # + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # b = d.elements['//b'] + # b.namespace # => "1" + # b.namespace('y') # => "2" + # b.namespace('nosuch') # => nil + # + # source://rexml//lib/rexml/element.rb#621 + def namespace(prefix = T.unsafe(nil)); end + + # :call-seq: + # namespaces -> array_of_namespace_names + # + # Returns a hash of all defined namespaces + # in the element and its ancestors: + # + # xml_string = <<-EOT + # + # + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string) + # d.elements['//a'].namespaces # => {"x"=>"1", "y"=>"2"} + # d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"} + # d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"} + # + # source://rexml//lib/rexml/element.rb#594 + def namespaces; end + + # :call-seq: + # next_element + # + # Returns the next sibling that is an element if it exists, + # +niL+ otherwise: + # + # d = REXML::Document.new 'text' + # d.root.elements['b'].next_element #-> + # d.root.elements['c'].next_element #-> nil + # + # source://rexml//lib/rexml/element.rb#962 + def next_element; end + + # :call-seq: + # node_type -> :element + # + # Returns symbol :element: + # + # d = REXML::Document.new('') + # a = d.root # => + # a.node_type # => :element + # + # source://rexml//lib/rexml/element.rb#1167 + def node_type; end + + # :call-seq: + # prefixes -> array_of_namespace_prefixes + # + # Returns an array of the string prefixes (names) of all defined namespaces + # in the element and its ancestors: + # + # xml_string = <<-EOT + # + # + # + # + # + # + # EOT + # d = REXML::Document.new(xml_string, {compress_whitespace: :all}) + # d.elements['//a'].prefixes # => ["x", "y"] + # d.elements['//b'].prefixes # => ["x", "y"] + # d.elements['//c'].prefixes # => ["x", "y", "z"] + # + # source://rexml//lib/rexml/element.rb#568 + def prefixes; end + + # :call-seq: + # previous_element + # + # Returns the previous sibling that is an element if it exists, + # +niL+ otherwise: + # + # d = REXML::Document.new 'text' + # d.root.elements['c'].previous_element #-> + # d.root.elements['b'].previous_element #-> nil + # + # source://rexml//lib/rexml/element.rb#978 + def previous_element; end + + # :call-seq: + # raw + # + # Returns +true+ if raw mode is set for the element. + # + # See {Element Context}[../doc/rexml/context_rdoc.html]. + # + # The evaluation is tested against +expanded_name+, and so is namespace + # sensitive. + # + # source://rexml//lib/rexml/element.rb#536 + def raw; end + + # :call-seq: + # root -> element + # + # Returns the most distant _element_ (not document) ancestor of the element: + # + # d = REXML::Document.new('') + # top_element = d.first + # child = top_element.first + # top_element.root == top_element # => true + # child.root == top_element # => true + # + # For a document, returns the topmost element: + # + # d.root == top_element # => true + # + # Related: #root_node, #document. + # + # source://rexml//lib/rexml/element.rb#451 + def root; end + + # :call-seq: + # root_node -> document or element + # + # Returns the most distant ancestor of +self+. + # + # When the element is part of a document, + # returns the root node of the document. + # Note that the root node is different from the document element; + # in this example +a+ is document element and the root node is its parent: + # + # d = REXML::Document.new('') + # top_element = d.first # => ... + # child = top_element.first # => ... + # d.root_node == d # => true + # top_element.root_node == d # => true + # child.root_node == d # => true + # + # When the element is not part of a document, but does have ancestor elements, + # returns the most distant ancestor element: + # + # e0 = REXML::Element.new('foo') + # e1 = REXML::Element.new('bar') + # e1.parent = e0 + # e2 = REXML::Element.new('baz') + # e2.parent = e1 + # e2.root_node == e0 # => true + # + # When the element has no ancestor elements, + # returns +self+: + # + # e = REXML::Element.new('foo') + # e.root_node == e # => true + # + # Related: #root, #document. + # + # source://rexml//lib/rexml/element.rb#430 + def root_node; end + + # :call-seq: + # text(xpath = nil) -> text_string or nil + # + # Returns the text string from the first text node child + # in a specified element, if it exists, +nil+ otherwise. + # + # With no argument, returns the text from the first text node in +self+: + # + # d = REXML::Document.new "

some text this is bold! more text

" + # d.root.text.class # => String + # d.root.text # => "some text " + # + # With argument +xpath+, returns text from the first text node + # in the element that matches +xpath+: + # + # d.root.text(1) # => "this is bold!" + # + # Note that an element may have multiple text nodes, + # possibly separated by other non-text children, as above. + # Even so, the returned value is the string text from the first such node. + # + # Note also that the text note is retrieved by method get_text, + # and so is always normalized text. + # + # source://rexml//lib/rexml/element.rb#1029 + def text(path = T.unsafe(nil)); end + + # :call-seq: + # text = string -> string + # text = nil -> nil + # + # Adds, replaces, or removes the first text node child in the element. + # + # With string argument +string+, + # creates a new \REXML::Text node containing that string, + # honoring the current settings for whitespace and row, + # then places the node as the first text child in the element; + # returns +string+. + # + # If the element has no text child, the text node is added: + # + # d = REXML::Document.new '
' + # d.root.text = 'foo' #-> 'foo' + # + # If the element has a text child, it is replaced: + # + # d.root.text = 'bar' #-> 'bar' + # + # With argument +nil+, removes the first text child: + # + # d.root.text = nil #-> '' + # + # source://rexml//lib/rexml/element.rb#1088 + def text=(text); end + + # :call-seq: + # texts -> array_of_text_children + # + # Returns a frozen array of the REXML::Text children of the element: + # + # xml_string = 'textmore' + # d = REXML::Document.new(xml_string) + # ts = d.root.texts + # ts.frozen? # => true + # ts.map {|t| t.class } # => [REXML::Text, REXML::Text] + # ts.map {|t| t.to_s } # => ["text", "more"] + # + # source://rexml//lib/rexml/element.rb#1482 + def texts; end + + # :call-seq: + # whitespace + # + # Returns +true+ if whitespace is respected for this element, + # +false+ otherwise. + # + # See {Element Context}[../doc/rexml/context_rdoc.html]. + # + # The evaluation is tested against the element's +expanded_name+, + # and so is namespace-sensitive. + # + # source://rexml//lib/rexml/element.rb#493 + def whitespace; end + + # == DEPRECATED + # See REXML::Formatters + # + # Writes out this element, and recursively, all children. + # output:: + # output an object which supports '<< string'; this is where the + # document will be written. + # indent:: + # An integer. If -1, no indenting will be used; otherwise, the + # indentation will be this number of spaces, and children will be + # indented an additional amount. Defaults to -1 + # transitive:: + # If transitive is true and indent is >= 0, then the output will be + # pretty-printed in such a way that the added whitespace does not affect + # the parse tree of the document + # ie_hack:: + # This hack inserts a space before the /> on empty tags to address + # a limitation of Internet Explorer. Defaults to false + # + # out = '' + # doc.write( out ) #-> doc is written to the string 'out' + # doc.write( $stdout ) #-> doc written to the console + # + # source://rexml//lib/rexml/element.rb#1508 + def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end + + # :call-seq: + # xpath -> string_xpath + # + # Returns the string xpath to the element + # relative to the most distant parent: + # + # d = REXML::Document.new('') + # a = d.root # => ... + # b = a[0] # => ... + # c = b[0] # => + # d.xpath # => "" + # a.xpath # => "/a" + # b.xpath # => "/a/b" + # c.xpath # => "/a/b/c" + # + # If there is no parent, returns the expanded name of the element: + # + # e = REXML::Element.new('foo') + # e.xpath # => "foo" + # + # source://rexml//lib/rexml/element.rb#1191 + def xpath; end + + private + + # source://rexml//lib/rexml/element.rb#1525 + def __to_xpath_helper(node); end + + # A private helper method + # + # source://rexml//lib/rexml/element.rb#1540 + def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end +end + +# source://rexml//lib/rexml/doctype.rb#261 +class REXML::ElementDecl < ::REXML::Declaration + # @return [ElementDecl] a new instance of ElementDecl + # + # source://rexml//lib/rexml/doctype.rb#262 + def initialize(src); end +end + +# A class which provides filtering of children for Elements, and +# XPath search support. You are expected to only encounter this class as +# the element.elements object. Therefore, you are +# _not_ expected to instantiate this yourself. +# +# xml_string = <<-EOT +# +# +# +# Everyday Italian +# Giada De Laurentiis +# 2005 +# 30.00 +# +# +# Harry Potter +# J K. Rowling +# 2005 +# 29.99 +# +# +# XQuery Kick Start +# James McGovern +# Per Bothner +# Kurt Cagle +# James Linn +# Vaidyanathan Nagarajan +# 2003 +# 49.99 +# +# +# Learning XML +# Erik T. Ray +# 2003 +# 39.95 +# +# +# EOT +# d = REXML::Document.new(xml_string) +# elements = d.root.elements +# elements # => # ... > +# +# source://rexml//lib/rexml/element.rb#1595 +class REXML::Elements + include ::Enumerable + + # :call-seq: + # new(parent) -> new_elements_object + # + # Returns a new \Elements object with the given +parent+. + # Does _not_ assign parent.elements = self: + # + # d = REXML::Document.new(xml_string) + # eles = REXML::Elements.new(d.root) + # eles # => # ... > + # eles == d.root.elements # => false + # + # @return [Elements] a new instance of Elements + # + # source://rexml//lib/rexml/element.rb#1608 + def initialize(parent); end + + # :call-seq: + # add -> new_element + # add(name) -> new_element + # add(element) -> element + # + # Adds an element; returns the element added. + # + # With no argument, creates and adds a new element. + # The new element has: + # + # - No name. + # - \Parent from the \Elements object. + # - Context from the that parent. + # + # Example: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # parent = elements.parent # => ... + # parent.context = {raw: :all} + # elements.size # => 4 + # new_element = elements.add # => + # elements.size # => 5 + # new_element.name # => nil + # new_element.parent # => ... + # new_element.context # => {:raw=>:all} + # + # With string argument +name+, creates and adds a new element. + # The new element has: + # + # - Name +name+. + # - \Parent from the \Elements object. + # - Context from the that parent. + # + # Example: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # parent = elements.parent # => ... + # parent.context = {raw: :all} + # elements.size # => 4 + # new_element = elements.add('foo') # => + # elements.size # => 5 + # new_element.name # => "foo" + # new_element.parent # => ... + # new_element.context # => {:raw=>:all} + # + # With argument +element+, + # creates and adds a clone of the given +element+. + # The new element has name, parent, and context from the given +element+. + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.size # => 4 + # e0 = REXML::Element.new('foo') + # e1 = REXML::Element.new('bar', e0, {raw: :all}) + # element = elements.add(e1) # => + # elements.size # => 5 + # element.name # => "bar" + # element.parent # => ... + # element.context # => {:raw=>:all} + # + # source://rexml//lib/rexml/element.rb#1925 + def <<(element = T.unsafe(nil)); end + + # :call-seq: + # elements[index] -> element or nil + # elements[xpath] -> element or nil + # elements[n, name] -> element or nil + # + # Returns the first \Element object selected by the arguments, + # if any found, or +nil+ if none found. + # + # Notes: + # - The +index+ is 1-based, not 0-based, so that: + # - The first element has index 1 + # - The _nth_ element has index +n+. + # - The selection ignores non-\Element nodes. + # + # When the single argument +index+ is given, + # returns the element given by the index, if any; otherwise, +nil+: + # + # d = REXML::Document.new(xml_string) + # eles = d.root.elements + # eles # => # ... > + # eles[1] # => ... + # eles.size # => 4 + # eles[4] # => ... + # eles[5] # => nil + # + # The node at this index is not an \Element, and so is not returned: + # + # eles = d.root.first.first # => ... </> + # eles.to_a # => ["Everyday Italian"] + # eles[1] # => nil + # + # When the single argument +xpath+ is given, + # returns the first element found via that +xpath+, if any; otherwise, +nil+: + # + # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>> + # eles['/bookstore'] # => <bookstore> ... </> + # eles['//book'] # => <book category='cooking'> ... </> + # eles['//book [@category="children"]'] # => <book category='children'> ... </> + # eles['/nosuch'] # => nil + # eles['//nosuch'] # => nil + # eles['//book [@category="nosuch"]'] # => nil + # eles['.'] # => <bookstore> ... </> + # eles['..'].class # => REXML::Document + # + # With arguments +n+ and +name+ given, + # returns the _nth_ found element that has the given +name+, + # or +nil+ if there is no such _nth_ element: + # + # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>> + # eles[1, 'book'] # => <book category='cooking'> ... </> + # eles[4, 'book'] # => <book category='web' cover='paperback'> ... </> + # eles[5, 'book'] # => nil + # + # source://rexml//lib/rexml/element.rb#1680 + def [](index, name = T.unsafe(nil)); end + + # :call-seq: + # elements[] = index, replacement_element -> replacement_element or nil + # + # Replaces or adds an element. + # + # When <tt>eles[index]</tt> exists, replaces it with +replacement_element+ + # and returns +replacement_element+: + # + # d = REXML::Document.new(xml_string) + # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>> + # eles[1] # => <book category='cooking'> ... </> + # eles[1] = REXML::Element.new('foo') + # eles[1] # => <foo/> + # + # Does nothing (or raises an exception) + # if +replacement_element+ is not an \Element: + # eles[2] # => <book category='web' cover='paperback'> ... </> + # eles[2] = REXML::Text.new('bar') + # eles[2] # => <book category='web' cover='paperback'> ... </> + # + # When <tt>eles[index]</tt> does not exist, + # adds +replacement_element+ to the element and returns + # + # d = REXML::Document.new(xml_string) + # eles = d.root.elements # => #<REXML::Elements @element=<bookstore> ... </>> + # eles.size # => 4 + # eles[50] = REXML::Element.new('foo') # => <foo/> + # eles.size # => 5 + # eles[5] # => <foo/> + # + # Does nothing (or raises an exception) + # if +replacement_element+ is not an \Element: + # + # eles[50] = REXML::Text.new('bar') # => "bar" + # eles.size # => 5 + # + # source://rexml//lib/rexml/element.rb#1735 + def []=(index, element); end + + # :call-seq: + # add -> new_element + # add(name) -> new_element + # add(element) -> element + # + # Adds an element; returns the element added. + # + # With no argument, creates and adds a new element. + # The new element has: + # + # - No name. + # - \Parent from the \Elements object. + # - Context from the that parent. + # + # Example: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # parent = elements.parent # => <bookstore> ... </> + # parent.context = {raw: :all} + # elements.size # => 4 + # new_element = elements.add # => </> + # elements.size # => 5 + # new_element.name # => nil + # new_element.parent # => <bookstore> ... </> + # new_element.context # => {:raw=>:all} + # + # With string argument +name+, creates and adds a new element. + # The new element has: + # + # - Name +name+. + # - \Parent from the \Elements object. + # - Context from the that parent. + # + # Example: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # parent = elements.parent # => <bookstore> ... </> + # parent.context = {raw: :all} + # elements.size # => 4 + # new_element = elements.add('foo') # => <foo/> + # elements.size # => 5 + # new_element.name # => "foo" + # new_element.parent # => <bookstore> ... </> + # new_element.context # => {:raw=>:all} + # + # With argument +element+, + # creates and adds a clone of the given +element+. + # The new element has name, parent, and context from the given +element+. + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.size # => 4 + # e0 = REXML::Element.new('foo') + # e1 = REXML::Element.new('bar', e0, {raw: :all}) + # element = elements.add(e1) # => <bar/> + # elements.size # => 5 + # element.name # => "bar" + # element.parent # => <bookstore> ... </> + # element.context # => {:raw=>:all} + # + # source://rexml//lib/rexml/element.rb#1925 + def add(element = T.unsafe(nil)); end + + # :call-seq: + # collect(xpath = nil) {|element| ... } -> array + # + # Iterates over the elements; returns the array of block return values. + # + # With no argument, iterates over all elements: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.collect {|element| element.size } # => [9, 9, 17, 9] + # + # With argument +xpath+, iterates over elements that match + # the given +xpath+: + # + # xpath = '//book [@category="web"]' + # elements.collect(xpath) {|element| element.size } # => [17, 9] + # + # source://rexml//lib/rexml/element.rb#1988 + def collect(xpath = T.unsafe(nil)); end + + # :call-seq: + # delete(index) -> removed_element or nil + # delete(element) -> removed_element or nil + # delete(xpath) -> removed_element or nil + # + # Removes an element; returns the removed element, or +nil+ if none removed. + # + # With integer argument +index+ given, + # removes the child element at that offset: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.size # => 4 + # elements[2] # => <book category='children'> ... </> + # elements.delete(2) # => <book category='children'> ... </> + # elements.size # => 3 + # elements[2] # => <book category='web'> ... </> + # elements.delete(50) # => nil + # + # With element argument +element+ given, + # removes that child element: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # ele_1, ele_2, ele_3, ele_4 = *elements + # elements.size # => 4 + # elements[2] # => <book category='children'> ... </> + # elements.delete(ele_2) # => <book category='children'> ... </> + # elements.size # => 3 + # elements[2] # => <book category='web'> ... </> + # elements.delete(ele_2) # => nil + # + # With string argument +xpath+ given, + # removes the first element found via that xpath: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.delete('//book') # => <book category='cooking'> ... </> + # elements.delete('//book [@category="children"]') # => <book category='children'> ... </> + # elements.delete('//nosuch') # => nil + # + # source://rexml//lib/rexml/element.rb#1825 + def delete(element); end + + # :call-seq: + # delete_all(xpath) + # + # Removes all elements found via the given +xpath+; + # returns the array of removed elements, if any, else +nil+. + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.size # => 4 + # deleted_elements = elements.delete_all('//book [@category="web"]') + # deleted_elements.size # => 2 + # elements.size # => 2 + # deleted_elements = elements.delete_all('//book') + # deleted_elements.size # => 2 + # elements.size # => 0 + # elements.delete_all('//book') # => [] + # + # source://rexml//lib/rexml/element.rb#1851 + def delete_all(xpath); end + + # :call-seq: + # each(xpath = nil) {|element| ... } -> self + # + # Iterates over the elements. + # + # With no argument, calls the block with each element: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.each {|element| p element } + # + # Output: + # + # <book category='cooking'> ... </> + # <book category='children'> ... </> + # <book category='web'> ... </> + # <book category='web' cover='paperback'> ... </> + # + # With argument +xpath+, calls the block with each element + # that matches the given +xpath+: + # + # elements.each('//book [@category="web"]') {|element| p element } + # + # Output: + # + # <book category='web'> ... </> + # <book category='web' cover='paperback'> ... </> + # + # source://rexml//lib/rexml/element.rb#1967 + def each(xpath = T.unsafe(nil)); end + + # :call-seq: + # empty? -> true or false + # + # Returns +true+ if there are no children, +false+ otherwise. + # + # d = REXML::Document.new('') + # d.elements.empty? # => true + # d = REXML::Document.new(xml_string) + # d.elements.empty? # => false + # + # @return [Boolean] + # + # source://rexml//lib/rexml/element.rb#1755 + def empty?; end + + # :call-seq: + # index(element) + # + # Returns the 1-based index of the given +element+, if found; + # otherwise, returns -1: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # ele_1, ele_2, ele_3, ele_4 = *elements + # elements.index(ele_4) # => 4 + # elements.delete(ele_3) + # elements.index(ele_4) # => 3 + # elements.index(ele_3) # => -1 + # + # source://rexml//lib/rexml/element.rb#1773 + def index(element); end + + # :call-seq: + # inject(xpath = nil, initial = nil) -> object + # + # Calls the block with elements; returns the last block return value. + # + # With no argument, iterates over the elements, calling the block + # <tt>elements.size - 1</tt> times. + # + # - The first call passes the first and second elements. + # - The second call passes the first block return value and the third element. + # - The third call passes the second block return value and the fourth element. + # - And so on. + # + # In this example, the block returns the passed element, + # which is then the object argument to the next call: + # + # d = REXML::Document.new(xml_string) + # elements = d.root.elements + # elements.inject do |object, element| + # p [elements.index(object), elements.index(element)] + # element + # end + # + # Output: + # + # [1, 2] + # [2, 3] + # [3, 4] + # + # With the single argument +xpath+, calls the block only with + # elements matching that xpath: + # + # elements.inject('//book [@category="web"]') do |object, element| + # p [elements.index(object), elements.index(element)] + # element + # end + # + # Output: + # + # [3, 4] + # + # With argument +xpath+ given as +nil+ + # and argument +initial+ also given, + # calls the block once for each element. + # + # - The first call passes the +initial+ and the first element. + # - The second call passes the first block return value and the second element. + # - The third call passes the second block return value and the third element. + # - And so on. + # + # In this example, the first object index is <tt>-1</tt> + # + # elements.inject(nil, 'Initial') do |object, element| + # p [elements.index(object), elements.index(element)] + # element + # end + # + # Output: + # + # [-1, 1] + # [1, 2] + # [2, 3] + # [3, 4] + # + # In this form the passed object can be used as an accumulator: + # + # elements.inject(nil, 0) do |total, element| + # total += element.size + # end # => 44 + # + # With both arguments +xpath+ and +initial+ are given, + # calls the block only with elements matching that xpath: + # + # elements.inject('//book [@category="web"]', 0) do |total, element| + # total += element.size + # end # => 26 + # + # source://rexml//lib/rexml/element.rb#2073 + def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end + + # :call-seq: + # parent + # + # Returns the parent element cited in creating the \Elements object. + # This element is also the default starting point for searching + # in the \Elements object. + # + # d = REXML::Document.new(xml_string) + # elements = REXML::Elements.new(d.root) + # elements.parent == d.root # => true + # + # source://rexml//lib/rexml/element.rb#1623 + def parent; end + + # :call-seq: + # size -> integer + # + # Returns the count of \Element children: + # + # d = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>' + # d.root.elements.size # => 3 # Three elements. + # d.root.size # => 6 # Three elements plus three text nodes.. + # + # source://rexml//lib/rexml/element.rb#2097 + def size; end + + # :call-seq: + # to_a(xpath = nil) -> array_of_elements + # + # Returns an array of element children (not including non-element children). + # + # With no argument, returns an array of all element children: + # + # d = REXML::Document.new '<a>sean<b/>elliott<c/></a>' + # elements = d.root.elements + # elements.to_a # => [<b/>, <c/>] # Omits non-element children. + # children = d.root.children + # children # => ["sean", <b/>, "elliott", <c/>] # Includes non-element children. + # + # With argument +xpath+, returns an array of element children + # that match the xpath: + # + # elements.to_a('//c') # => [<c/>] + # + # source://rexml//lib/rexml/element.rb#2121 + def to_a(xpath = T.unsafe(nil)); end + + private + + # Private helper class. Removes quotes from quoted strings + # + # source://rexml//lib/rexml/element.rb#2129 + def literalize(name); end +end + +# source://rexml//lib/rexml/encoding.rb#4 +module REXML::Encoding + # source://rexml//lib/rexml/encoding.rb#29 + def decode(string); end + + # source://rexml//lib/rexml/encoding.rb#25 + def encode(string); end + + # ID ---> Encoding name + # + # source://rexml//lib/rexml/encoding.rb#6 + def encoding; end + + # source://rexml//lib/rexml/encoding.rb#7 + def encoding=(encoding); end + + private + + # source://rexml//lib/rexml/encoding.rb#34 + def find_encoding(name); end +end + +# source://rexml//lib/rexml/entity.rb#7 +class REXML::Entity < ::REXML::Child + include ::REXML::XMLTokens + + # Create a new entity. Simple entities can be constructed by passing a + # name, value to the constructor; this creates a generic, plain entity + # reference. For anything more complicated, you have to pass a Source to + # the constructor with the entity definition, or use the accessor methods. + # +WARNING+: There is no validation of entity state except when the entity + # is read from a stream. If you start poking around with the accessors, + # you can easily create a non-conformant Entity. + # + # e = Entity.new( 'amp', '&' ) + # + # @return [Entity] a new instance of Entity + # + # source://rexml//lib/rexml/entity.rb#33 + def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end + + # Returns the value of attribute external. + # + # source://rexml//lib/rexml/entity.rb#22 + def external; end + + # Returns the value of attribute name. + # + # source://rexml//lib/rexml/entity.rb#22 + def name; end + + # Returns the value of attribute ndata. + # + # source://rexml//lib/rexml/entity.rb#22 + def ndata; end + + # Returns the value of this entity unprocessed -- raw. This is the + # normalized value; that is, with all %ent; and &ent; entities intact + # + # source://rexml//lib/rexml/entity.rb#85 + def normalized; end + + # source://rexml//lib/rexml/entity.rb#138 + def parent=(other); end + + # Returns the value of attribute pubid. + # + # source://rexml//lib/rexml/entity.rb#22 + def pubid; end + + # Returns the value of attribute ref. + # + # source://rexml//lib/rexml/entity.rb#22 + def ref; end + + # Returns this entity as a string. See write(). + # + # source://rexml//lib/rexml/entity.rb#119 + def to_s; end + + # Evaluates to the unnormalized value of this entity; that is, replacing + # all entities -- both %ent; and &ent; entities. This differs from + # +value()+ in that +value+ only replaces %ent; entities. + # + # source://rexml//lib/rexml/entity.rb#73 + def unnormalized; end + + # Returns the value of this entity. At the moment, only internal entities + # are processed. If the value contains internal references (IE, + # %blah;), those are replaced with their values. IE, if the doctype + # contains: + # <!ENTITY % foo "bar"> + # <!ENTITY yada "nanoo %foo; nanoo> + # then: + # doctype.entity('yada').value #-> "nanoo bar nanoo" + # + # source://rexml//lib/rexml/entity.rb#134 + def value; end + + # Write out a fully formed, correct entity definition (assuming the Entity + # object itself is valid.) + # + # out:: + # An object implementing <TT><<</TT> to which the entity will be + # output + # indent:: + # *DEPRECATED* and ignored + # + # source://rexml//lib/rexml/entity.rb#97 + def write(out, indent = T.unsafe(nil)); end + + private + + # source://rexml//lib/rexml/entity.rb#144 + def resolve_value; end + + class << self + # Evaluates whether the given string matches an entity definition, + # returning true if so, and false otherwise. + # + # @return [Boolean] + # + # source://rexml//lib/rexml/entity.rb#66 + def matches?(string); end + end +end + +# source://rexml//lib/rexml/doctype.rb#267 +class REXML::ExternalEntity < ::REXML::Child + # @return [ExternalEntity] a new instance of ExternalEntity + # + # source://rexml//lib/rexml/doctype.rb#268 + def initialize(src); end + + # source://rexml//lib/rexml/doctype.rb#272 + def to_s; end + + # source://rexml//lib/rexml/doctype.rb#275 + def write(output, indent); end +end + +# source://rexml//lib/rexml/formatters/default.rb#5 +class REXML::Formatters::Default + # Prints out the XML document with no formatting -- except if ie_hack is + # set. + # + # ie_hack:: + # If set to true, then inserts whitespace before the close of an empty + # tag, so that IE's bad XML parser doesn't choke. + # + # @return [Default] a new instance of Default + # + # source://rexml//lib/rexml/formatters/default.rb#12 + def initialize(ie_hack = T.unsafe(nil)); end + + # Writes the node to some output. + # + # node:: + # The node to write + # output:: + # A class implementing <TT><<</TT>. Pass in an Output object to + # change the output encoding. + # + # source://rexml//lib/rexml/formatters/default.rb#23 + def write(node, output); end + + protected + + # source://rexml//lib/rexml/formatters/default.rb#98 + def write_cdata(node, output); end + + # source://rexml//lib/rexml/formatters/default.rb#92 + def write_comment(node, output); end + + # source://rexml//lib/rexml/formatters/default.rb#61 + def write_document(node, output); end + + # source://rexml//lib/rexml/formatters/default.rb#65 + def write_element(node, output); end + + # source://rexml//lib/rexml/formatters/default.rb#104 + def write_instruction(node, output); end + + # source://rexml//lib/rexml/formatters/default.rb#88 + def write_text(node, output); end +end + +# Pretty-prints an XML document. This destroys whitespace in text nodes +# and will insert carriage returns and indentations. +# +# TODO: Add an option to print attributes on new lines +# +# source://rexml//lib/rexml/formatters/pretty.rb#10 +class REXML::Formatters::Pretty < ::REXML::Formatters::Default + # Create a new pretty printer. + # + # output:: + # An object implementing '<<(String)', to which the output will be written. + # indentation:: + # An integer greater than 0. The indentation of each level will be + # this number of spaces. If this is < 1, the behavior of this object + # is undefined. Defaults to 2. + # ie_hack:: + # If true, the printer will insert whitespace before closing empty + # tags, thereby allowing Internet Explorer's XML parser to + # function. Defaults to false. + # + # @return [Pretty] a new instance of Pretty + # + # source://rexml//lib/rexml/formatters/pretty.rb#30 + def initialize(indentation = T.unsafe(nil), ie_hack = T.unsafe(nil)); end + + # If compact is set to true, then the formatter will attempt to use as + # little space as possible + # + # source://rexml//lib/rexml/formatters/pretty.rb#14 + def compact; end + + # If compact is set to true, then the formatter will attempt to use as + # little space as possible + # + # source://rexml//lib/rexml/formatters/pretty.rb#14 + def compact=(_arg0); end + + # The width of a page. Used for formatting text + # + # source://rexml//lib/rexml/formatters/pretty.rb#16 + def width; end + + # The width of a page. Used for formatting text + # + # source://rexml//lib/rexml/formatters/pretty.rb#16 + def width=(_arg0); end + + protected + + # source://rexml//lib/rexml/formatters/pretty.rb#102 + def write_cdata(node, output); end + + # source://rexml//lib/rexml/formatters/pretty.rb#97 + def write_comment(node, output); end + + # source://rexml//lib/rexml/formatters/pretty.rb#107 + def write_document(node, output); end + + # source://rexml//lib/rexml/formatters/pretty.rb#39 + def write_element(node, output); end + + # source://rexml//lib/rexml/formatters/pretty.rb#88 + def write_text(node, output); end + + private + + # source://rexml//lib/rexml/formatters/pretty.rb#124 + def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end + + # source://rexml//lib/rexml/formatters/pretty.rb#129 + def wrap(string, width); end +end + +# A Source that wraps an IO. See the Source class for method +# documentation +# +# source://rexml//lib/rexml/source.rb#159 +class REXML::IOSource < ::REXML::Source + # block_size has been deprecated + # + # @return [IOSource] a new instance of IOSource + # + # source://rexml//lib/rexml/source.rb#163 + def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end + + # source://rexml//lib/rexml/source.rb#215 + def consume(pattern); end + + # @return the current line in the source + # + # source://rexml//lib/rexml/source.rb#244 + def current_line; end + + # @return [Boolean] + # + # source://rexml//lib/rexml/source.rb#235 + def empty?; end + + # source://rexml//lib/rexml/source.rb#219 + def match(pattern, cons = T.unsafe(nil)); end + + # source://rexml//lib/rexml/source.rb#239 + def position; end + + # source://rexml//lib/rexml/source.rb#207 + def read; end + + # source://rexml//lib/rexml/source.rb#184 + def scan(pattern, cons = T.unsafe(nil)); end + + private + + # source://rexml//lib/rexml/source.rb#286 + def encoding_updated; end + + # source://rexml//lib/rexml/source.rb#266 + def readline; end +end + +# Represents an XML Instruction; IE, <? ... ?> +# TODO: Add parent arg (3rd arg) to constructor +# +# source://rexml//lib/rexml/instruction.rb#9 +class REXML::Instruction < ::REXML::Child + # Constructs a new Instruction + # the target of this instruction is set to this. If an Instruction, + # then the Instruction is shallowly cloned (target and content are + # copied). + # be a Parent if the target argument is a Source. Otherwise, this + # String is set as the content of this instruction. + # + # @param target can be one of a number of things. If String, then + # @param content Must be either a String, or a Parent. Can only + # @return [Instruction] a new instance of Instruction + # + # source://rexml//lib/rexml/instruction.rb#25 + def initialize(target, content = T.unsafe(nil)); end + + # of the other matches the target and content of this object. + # + # @return true if other is an Instruction, and the content and target + # + # source://rexml//lib/rexml/instruction.rb#65 + def ==(other); end + + # source://rexml//lib/rexml/instruction.rb#44 + def clone; end + + # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?> + # content is everything else. + # + # source://rexml//lib/rexml/instruction.rb#15 + def content; end + + # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?> + # content is everything else. + # + # source://rexml//lib/rexml/instruction.rb#15 + def content=(_arg0); end + + # source://rexml//lib/rexml/instruction.rb#75 + def inspect; end + + # source://rexml//lib/rexml/instruction.rb#71 + def node_type; end + + # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?> + # content is everything else. + # + # source://rexml//lib/rexml/instruction.rb#15 + def target; end + + # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?> + # content is everything else. + # + # source://rexml//lib/rexml/instruction.rb#15 + def target=(_arg0); end + + # == DEPRECATED + # See the rexml/formatters package + # + # source://rexml//lib/rexml/instruction.rb#51 + def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end +end + +# Adds named attributes to an object. +# +# source://rexml//lib/rexml/namespace.rb#7 +module REXML::Namespace + include ::REXML::XMLTokens + + # The name of the object, valid if set + # + # source://rexml//lib/rexml/namespace.rb#9 + def expanded_name; end + + # Fully expand the name, even if the prefix wasn't specified in the + # source file. + # + # source://rexml//lib/rexml/namespace.rb#57 + def fully_expanded_name; end + + # Compares names optionally WITH namespaces + # + # @return [Boolean] + # + # source://rexml//lib/rexml/namespace.rb#43 + def has_name?(other, ns = T.unsafe(nil)); end + + # The name of the object, valid if set + # + # source://rexml//lib/rexml/namespace.rb#9 + def name; end + + # Sets the name and the expanded name + # + # source://rexml//lib/rexml/namespace.rb#17 + def name=(name); end + + # The expanded name of the object, valid if name is set + # + # source://rexml//lib/rexml/namespace.rb#11 + def prefix; end + + # The expanded name of the object, valid if name is set + # + # source://rexml//lib/rexml/namespace.rb#11 + def prefix=(_arg0); end +end + +# source://rexml//lib/rexml/namespace.rb#13 +REXML::Namespace::NAME_WITHOUT_NAMESPACE = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/doctype.rb#280 +class REXML::NotationDecl < ::REXML::Child + # @return [NotationDecl] a new instance of NotationDecl + # + # source://rexml//lib/rexml/doctype.rb#282 + def initialize(name, middle, pub, sys); end + + # This method retrieves the name of the notation. + # + # Method contributed by Henrik Martensson + # + # source://rexml//lib/rexml/doctype.rb#307 + def name; end + + # Returns the value of attribute public. + # + # source://rexml//lib/rexml/doctype.rb#281 + def public; end + + # Sets the attribute public + # + # @param value the value to set the attribute public to. + # + # source://rexml//lib/rexml/doctype.rb#281 + def public=(_arg0); end + + # Returns the value of attribute system. + # + # source://rexml//lib/rexml/doctype.rb#281 + def system; end + + # Sets the attribute system + # + # @param value the value to set the attribute system to. + # + # source://rexml//lib/rexml/doctype.rb#281 + def system=(_arg0); end + + # source://rexml//lib/rexml/doctype.rb#290 + def to_s; end + + # source://rexml//lib/rexml/doctype.rb#300 + def write(output, indent = T.unsafe(nil)); end +end + +# source://rexml//lib/rexml/output.rb#5 +class REXML::Output + include ::REXML::Encoding + + # @return [Output] a new instance of Output + # + # source://rexml//lib/rexml/output.rb#10 + def initialize(real_IO, encd = T.unsafe(nil)); end + + # source://rexml//lib/rexml/output.rb#22 + def <<(content); end + + # Returns the value of attribute encoding. + # + # source://rexml//lib/rexml/output.rb#8 + def encoding; end + + # source://rexml//lib/rexml/output.rb#26 + def to_s; end +end + +# A parent has children, and has methods for accessing them. The Parent +# class is never encountered except as the superclass for some other +# object. +# +# source://rexml//lib/rexml/parent.rb#8 +class REXML::Parent < ::REXML::Child + include ::Enumerable + + # Constructor + # + # @param parent if supplied, will be set as the parent of this object + # @return [Parent] a new instance of Parent + # + # source://rexml//lib/rexml/parent.rb#13 + def initialize(parent = T.unsafe(nil)); end + + # source://rexml//lib/rexml/parent.rb#18 + def <<(object); end + + # Fetches a child at a given index + # + # @param index the Integer index of the child to fetch + # + # source://rexml//lib/rexml/parent.rb#57 + def [](index); end + + # Set an index entry. See Array.[]= + # + # @param index the index of the element to set + # @param opt either the object to set, or an Integer length + # @param child if opt is an Integer, this is the child to set + # @return the parent (self) + # + # source://rexml//lib/rexml/parent.rb#70 + def []=(*args); end + + # source://rexml//lib/rexml/parent.rb#18 + def add(object); end + + # source://rexml//lib/rexml/parent.rb#115 + def children; end + + # Deeply clones this object. This creates a complete duplicate of this + # Parent, including all descendants. + # + # source://rexml//lib/rexml/parent.rb#148 + def deep_clone; end + + # source://rexml//lib/rexml/parent.rb#32 + def delete(object); end + + # source://rexml//lib/rexml/parent.rb#47 + def delete_at(index); end + + # source://rexml//lib/rexml/parent.rb#43 + def delete_if(&block); end + + # source://rexml//lib/rexml/parent.rb#39 + def each(&block); end + + # source://rexml//lib/rexml/parent.rb#39 + def each_child(&block); end + + # source://rexml//lib/rexml/parent.rb#51 + def each_index(&block); end + + # Fetches the index of a given child + # of this parent. + # + # @param child the child to get the index of + # @return the index of the child, or nil if the object is not a child + # + # source://rexml//lib/rexml/parent.rb#123 + def index(child); end + + # Inserts an child after another child + # child2 will be inserted after child1 in the child list of the parent. + # If an xpath, child2 will be inserted after the first child to match + # the xpath. + # + # @param child1 this is either an xpath or an Element. If an Element, + # @param child2 the child to insert + # @return the parent (self) + # + # source://rexml//lib/rexml/parent.rb#102 + def insert_after(child1, child2); end + + # Inserts an child before another child + # child2 will be inserted before child1 in the child list of the parent. + # If an xpath, child2 will be inserted before the first child to match + # the xpath. + # + # @param child1 this is either an xpath or an Element. If an Element, + # @param child2 the child to insert + # @return the parent (self) + # + # source://rexml//lib/rexml/parent.rb#82 + def insert_before(child1, child2); end + + # @return the number of children of this parent + # + # source://rexml//lib/rexml/parent.rb#130 + def length; end + + # @return [Boolean] + # + # source://rexml//lib/rexml/parent.rb#162 + def parent?; end + + # source://rexml//lib/rexml/parent.rb#18 + def push(object); end + + # Replaces one child with another, making sure the nodelist is correct + # Child) + # + # @param to_replace the child to replace (must be a Child) + # @param replacement the child to insert into the nodelist (must be a + # + # source://rexml//lib/rexml/parent.rb#140 + def replace_child(to_replace, replacement); end + + # @return the number of children of this parent + # + # source://rexml//lib/rexml/parent.rb#130 + def size; end + + # source://rexml//lib/rexml/parent.rb#115 + def to_a; end + + # source://rexml//lib/rexml/parent.rb#27 + def unshift(object); end +end + +# source://rexml//lib/rexml/parseexception.rb#3 +class REXML::ParseException < ::RuntimeError + # @return [ParseException] a new instance of ParseException + # + # source://rexml//lib/rexml/parseexception.rb#6 + def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end + + # source://rexml//lib/rexml/parseexception.rb#48 + def context; end + + # Returns the value of attribute continued_exception. + # + # source://rexml//lib/rexml/parseexception.rb#4 + def continued_exception; end + + # Sets the attribute continued_exception + # + # @param value the value to set the attribute continued_exception to. + # + # source://rexml//lib/rexml/parseexception.rb#4 + def continued_exception=(_arg0); end + + # source://rexml//lib/rexml/parseexception.rb#43 + def line; end + + # Returns the value of attribute parser. + # + # source://rexml//lib/rexml/parseexception.rb#4 + def parser; end + + # Sets the attribute parser + # + # @param value the value to set the attribute parser to. + # + # source://rexml//lib/rexml/parseexception.rb#4 + def parser=(_arg0); end + + # source://rexml//lib/rexml/parseexception.rb#38 + def position; end + + # Returns the value of attribute source. + # + # source://rexml//lib/rexml/parseexception.rb#4 + def source; end + + # Sets the attribute source + # + # @param value the value to set the attribute source to. + # + # source://rexml//lib/rexml/parseexception.rb#4 + def source=(_arg0); end + + # source://rexml//lib/rexml/parseexception.rb#13 + def to_s; end +end + +# = Using the Pull Parser +# <em>This API is experimental, and subject to change.</em> +# parser = PullParser.new( "<a>text<b att='val'/>txet</a>" ) +# while parser.has_next? +# res = parser.next +# puts res[1]['att'] if res.start_tag? and res[0] == 'b' +# end +# See the PullEvent class for information on the content of the results. +# The data is identical to the arguments passed for the various events to +# the StreamListener API. +# +# Notice that: +# parser = PullParser.new( "<a>BAD DOCUMENT" ) +# while parser.has_next? +# res = parser.next +# raise res[1] if res.error? +# end +# +# Nat Price gave me some good ideas for the API. +# +# source://rexml//lib/rexml/parsers/baseparser.rb#29 +class REXML::Parsers::BaseParser + # @return [BaseParser] a new instance of BaseParser + # + # source://rexml//lib/rexml/parsers/baseparser.rb#115 + def initialize(source); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#120 + def add_listener(listener); end + + # Returns true if there are no more events + # + # @return [Boolean] + # + # source://rexml//lib/rexml/parsers/baseparser.rb#146 + def empty?; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#438 + def entity(reference, entities); end + + # Returns true if there are more events. Synonymous with !empty? + # + # @return [Boolean] + # + # source://rexml//lib/rexml/parsers/baseparser.rb#151 + def has_next?; end + + # Escapes all possible entities + # + # source://rexml//lib/rexml/parsers/baseparser.rb#449 + def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end + + # Peek at the +depth+ event in the stack. The first element on the stack + # is at depth 0. If +depth+ is -1, will parse to the end of the input + # stream and return the last event, which is always :end_document. + # Be aware that this causes the stream to be parsed up to the +depth+ + # event, so you can effectively pre-parse the entire document (pull the + # entire thing into memory) using this method. + # + # source://rexml//lib/rexml/parsers/baseparser.rb#167 + def peek(depth = T.unsafe(nil)); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#136 + def position; end + + # Returns the next event. This is a +PullEvent+ object. + # + # source://rexml//lib/rexml/parsers/baseparser.rb#182 + def pull; end + + # Returns the value of attribute source. + # + # source://rexml//lib/rexml/parsers/baseparser.rb#124 + def source; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#126 + def stream=(source); end + + # Unescapes all possible entities + # + # source://rexml//lib/rexml/parsers/baseparser.rb#465 + def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end + + # Push an event back on the head of the stream. This method + # has (theoretically) infinite depth. + # + # source://rexml//lib/rexml/parsers/baseparser.rb#157 + def unshift(token); end + + private + + # @return [Boolean] + # + # source://rexml//lib/rexml/parsers/baseparser.rb#495 + def need_source_encoding_update?(xml_declaration_encoding); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#589 + def parse_attributes(prefixes, curr_ns); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#514 + def parse_id(base_error_message, accept_external_id:, accept_public_id:); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#542 + def parse_id_invalid_details(accept_external_id:, accept_public_id:); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#501 + def parse_name(base_error_message); end + + # source://rexml//lib/rexml/parsers/baseparser.rb#580 + def process_instruction; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#190 + def pull_event; end +end + +# source://rexml//lib/rexml/parsers/baseparser.rb#102 +REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#103 +REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#104 +REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#38 +REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#37 +REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String) + +# source://rexml//lib/rexml/parsers/streamparser.rb#6 +class REXML::Parsers::StreamParser + # @return [StreamParser] a new instance of StreamParser + # + # source://rexml//lib/rexml/parsers/streamparser.rb#7 + def initialize(source, listener); end + + # source://rexml//lib/rexml/parsers/streamparser.rb#13 + def add_listener(listener); end + + # source://rexml//lib/rexml/parsers/streamparser.rb#17 + def parse; end +end + +# source://rexml//lib/rexml/parsers/treeparser.rb#7 +class REXML::Parsers::TreeParser + # @return [TreeParser] a new instance of TreeParser + # + # source://rexml//lib/rexml/parsers/treeparser.rb#8 + def initialize(source, build_context = T.unsafe(nil)); end + + # source://rexml//lib/rexml/parsers/treeparser.rb#13 + def add_listener(listener); end + + # source://rexml//lib/rexml/parsers/treeparser.rb#17 + def parse; end +end + +# You don't want to use this class. Really. Use XPath, which is a wrapper +# for this class. Believe me. You don't want to poke around in here. +# There is strange, dark magic at work in this code. Beware. Go back! Go +# back while you still can! +# +# source://rexml//lib/rexml/parsers/xpathparser.rb#12 +class REXML::Parsers::XPathParser + include ::REXML::XMLTokens + + # source://rexml//lib/rexml/parsers/xpathparser.rb#42 + def abbreviate(path_or_parsed); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#132 + def expand(path_or_parsed); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#16 + def namespaces=(namespaces); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#21 + def parse(path); end + + # For backward compatibility + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#174 + def preciate_to_string(parsed, &block); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#36 + def predicate(path); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#174 + def predicate_to_path(parsed, &block); end + + private + + # | AdditiveExpr ('+' | '-') MultiplicativeExpr + # | MultiplicativeExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#505 + def AdditiveExpr(path, parsed); end + + # | AndExpr S 'and' S EqualityExpr + # | EqualityExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#438 + def AndExpr(path, parsed); end + + # | EqualityExpr ('=' | '!=') RelationalExpr + # | RelationalExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#457 + def EqualityExpr(path, parsed); end + + # | FilterExpr Predicate + # | PrimaryExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#608 + def FilterExpr(path, parsed); end + + # | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')' + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#663 + def FunctionCall(rest, parsed); end + + # LocationPath + # | RelativeLocationPath + # | '/' RelativeLocationPath? + # | '//' RelativeLocationPath + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#243 + def LocationPath(path, parsed); end + + # | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr + # | UnaryExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#528 + def MultiplicativeExpr(path, parsed); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#343 + def NodeTest(path, parsed); end + + # | OrExpr S 'or' S AndExpr + # | AndExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#419 + def OrExpr(path, parsed); end + + # | LocationPath + # | FilterExpr ('/' | '//') RelativeLocationPath + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#590 + def PathExpr(path, parsed); end + + # Filters the supplied nodeset on the predicate(s) + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#395 + def Predicate(path, parsed); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#626 + def PrimaryExpr(path, parsed); end + + # | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr + # | AdditiveExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#480 + def RelationalExpr(path, parsed); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#267 + def RelativeLocationPath(path, parsed); end + + # | '-' UnaryExpr + # | UnionExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#553 + def UnaryExpr(path, parsed); end + + # | UnionExpr '|' PathExpr + # | PathExpr + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#571 + def UnionExpr(path, parsed); end + + # get_group( '[foo]bar' ) -> ['bar', '[foo]'] + # + # source://rexml//lib/rexml/parsers/xpathparser.rb#676 + def get_group(string); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#694 + def parse_args(string); end + + # source://rexml//lib/rexml/parsers/xpathparser.rb#224 + def quote_literal(literal); end +end + +# source://rexml//lib/rexml/parsers/xpathparser.rb#339 +REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp) + +# Returns a 1-1 map of the nodeset +# The contents of the resulting array are either: +# true/false, if a positive match +# String, if a name match +# NodeTest +# | ('*' | NCNAME ':' '*' | QNAME) NameTest +# | '*' ':' NCNAME NameTest since XPath 2.0 +# | NODE_TYPE '(' ')' NodeType +# | PI '(' LITERAL ')' PI +# | '[' expr ']' Predicate +# +# source://rexml//lib/rexml/parsers/xpathparser.rb#338 +REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/doctype.rb#10 +class REXML::ReferenceWriter + # @return [ReferenceWriter] a new instance of ReferenceWriter + # + # source://rexml//lib/rexml/doctype.rb#11 + def initialize(id_type, public_id_literal, system_literal, context = T.unsafe(nil)); end + + # source://rexml//lib/rexml/doctype.rb#25 + def write(output); end +end + +# A Source can be searched for patterns, and wraps buffers and other +# objects and provides consumption of text +# +# source://rexml//lib/rexml/source.rb#31 +class REXML::Source + include ::REXML::Encoding + + # Constructor + # value, overriding all encoding detection + # + # @param arg must be a String, and should be a valid XML document + # @param encoding if non-null, sets the encoding of the source to this + # @return [Source] a new instance of Source + # + # source://rexml//lib/rexml/source.rb#43 + def initialize(arg, encoding = T.unsafe(nil)); end + + # The current buffer (what we're going to read next) + # + # source://rexml//lib/rexml/source.rb#34 + def buffer; end + + # source://rexml//lib/rexml/source.rb#87 + def consume(pattern); end + + # @return the current line in the source + # + # source://rexml//lib/rexml/source.rb#117 + def current_line; end + + # @return [Boolean] true if the Source is exhausted + # + # source://rexml//lib/rexml/source.rb#108 + def empty?; end + + # Returns the value of attribute encoding. + # + # source://rexml//lib/rexml/source.rb#37 + def encoding; end + + # Inherited from Encoding + # Overridden to support optimized en/decoding + # + # source://rexml//lib/rexml/source.rb#56 + def encoding=(enc); end + + # The line number of the last consumed text + # + # source://rexml//lib/rexml/source.rb#36 + def line; end + + # source://rexml//lib/rexml/source.rb#101 + def match(pattern, cons = T.unsafe(nil)); end + + # source://rexml//lib/rexml/source.rb#91 + def match_to(char, pattern); end + + # source://rexml//lib/rexml/source.rb#95 + def match_to_consume(char, pattern); end + + # source://rexml//lib/rexml/source.rb#112 + def position; end + + # source://rexml//lib/rexml/source.rb#84 + def read; end + + # Scans the source for a given pattern. Note, that this is not your + # usual scan() method. For one thing, the pattern argument has some + # requirements; for another, the source can be consumed. You can easily + # confuse this method. Originally, the patterns were easier + # to construct and this method more robust, because this method + # generated search regexps on the fly; however, this was + # computationally expensive and slowed down the entire REXML package + # considerably, since this is by far the most commonly called method. + # /^\s*(#{your pattern, with no groups})(.*)/. The first group + # will be returned; the second group is used if the consume flag is + # set. + # everything after it in the Source. + # pattern is not found. + # + # @param pattern must be a Regexp, and must be in the form of + # @param consume if true, the pattern returned will be consumed, leaving + # @return the pattern, if found, or nil if the Source is empty or the + # + # source://rexml//lib/rexml/source.rb#77 + def scan(pattern, cons = T.unsafe(nil)); end + + private + + # source://rexml//lib/rexml/source.rb#125 + def detect_encoding; end + + # source://rexml//lib/rexml/source.rb#146 + def encoding_updated; end +end + +# Represents text nodes in an XML document +# +# source://rexml//lib/rexml/text.rb#11 +class REXML::Text < ::REXML::Child + include ::Comparable + + # Constructor + # +arg+ if a String, the content is set to the String. If a Text, + # the object is shallowly cloned. + # + # +respect_whitespace+ (boolean, false) if true, whitespace is + # respected + # + # +parent+ (nil) if this is a Parent object, the parent + # will be set to this. + # + # +raw+ (nil) This argument can be given three values. + # If true, then the value of used to construct this object is expected to + # contain no unescaped XML markup, and REXML will not change the text. If + # this value is false, the string may contain any characters, and REXML will + # escape any and all defined entities whose values are contained in the + # text. If this value is nil (the default), then the raw value of the + # parent will be used as the raw value for this node. If there is no raw + # value for the parent, and no value is supplied, the default is false. + # Use this field if you have entities defined for some text, and you don't + # want REXML to escape that text in output. + # Text.new( "<&", false, nil, false ) #-> "<&" + # Text.new( "<&", false, nil, false ) #-> "&lt;&amp;" + # Text.new( "<&", false, nil, true ) #-> Parse exception + # Text.new( "<&", false, nil, true ) #-> "<&" + # # Assume that the entity "s" is defined to be "sean" + # # and that the entity "r" is defined to be "russell" + # Text.new( "sean russell" ) #-> "&s; &r;" + # Text.new( "sean russell", false, nil, true ) #-> "sean russell" + # + # +entity_filter+ (nil) This can be an array of entities to match in the + # supplied text. This argument is only useful if +raw+ is set to false. + # Text.new( "sean russell", false, nil, false, ["s"] ) #-> "&s; russell" + # Text.new( "sean russell", false, nil, true, ["s"] ) #-> "sean russell" + # In the last example, the +entity_filter+ argument is ignored. + # + # +illegal+ INTERNAL USE ONLY + # + # @return [Text] a new instance of Text + # + # source://rexml//lib/rexml/text.rb#94 + def initialize(arg, respect_whitespace = T.unsafe(nil), parent = T.unsafe(nil), raw = T.unsafe(nil), entity_filter = T.unsafe(nil), illegal = T.unsafe(nil)); end + + # Appends text to this text node. The text is appended in the +raw+ mode + # of this text node. + # + # +returns+ the text itself to enable method chain like + # 'text << "XXX" << "YYY"'. + # + # source://rexml//lib/rexml/text.rb#194 + def <<(to_append); end + + # +other+ a String or a Text + # +returns+ the result of (to_s <=> arg.to_s) + # + # source://rexml//lib/rexml/text.rb#203 + def <=>(other); end + + # source://rexml//lib/rexml/text.rb#184 + def clone; end + + # source://rexml//lib/rexml/text.rb#207 + def doctype; end + + # @return [Boolean] + # + # source://rexml//lib/rexml/text.rb#179 + def empty?; end + + # source://rexml//lib/rexml/text.rb#278 + def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end + + # source://rexml//lib/rexml/text.rb#233 + def inspect; end + + # source://rexml//lib/rexml/text.rb#175 + def node_type; end + + # source://rexml//lib/rexml/text.rb#125 + def parent=(parent); end + + # If +raw+ is true, then REXML leaves the value alone + # + # source://rexml//lib/rexml/text.rb#21 + def raw; end + + # If +raw+ is true, then REXML leaves the value alone + # + # source://rexml//lib/rexml/text.rb#21 + def raw=(_arg0); end + + # Returns the string value of this text node. This string is always + # escaped, meaning that it is a valid XML text node string, and all + # entities that can be escaped, have been inserted. This method respects + # the entity filter set in the constructor. + # + # # Assume that the entity "s" is defined to be "sean", and that the + # # entity "r" is defined to be "russell" + # t = Text.new( "< & sean russell", false, nil, false, ['s'] ) + # t.to_s #-> "< & &s; russell" + # t = Text.new( "< & &s; russell", false, nil, false ) + # t.to_s #-> "< & &s; russell" + # u = Text.new( "sean russell", false, nil, true ) + # u.to_s #-> "sean russell" + # + # source://rexml//lib/rexml/text.rb#228 + def to_s; end + + # Returns the string value of this text. This is the text without + # entities, as it might be used programmatically, or printed to the + # console. This ignores the 'raw' attribute setting, and any + # entity_filter. + # + # # Assume that the entity "s" is defined to be "sean", and that the + # # entity "r" is defined to be "russell" + # t = Text.new( "< & sean russell", false, nil, false, ['s'] ) + # t.value #-> "< & sean russell" + # t = Text.new( "< & &s; russell", false, nil, false ) + # t.value #-> "< & sean russell" + # u = Text.new( "sean russell", false, nil, true ) + # u.value #-> "sean russell" + # + # source://rexml//lib/rexml/text.rb#250 + def value; end + + # Sets the contents of this text node. This expects the text to be + # unnormalized. It returns self. + # + # e = Element.new( "a" ) + # e.add_text( "foo" ) # <a>foo</a> + # e[0].value = "bar" # <a>bar</a> + # e[0].value = "<a>" # <a><a></a> + # + # source://rexml//lib/rexml/text.rb#261 + def value=(val); end + + # source://rexml//lib/rexml/text.rb#267 + def wrap(string, width, addnewline = T.unsafe(nil)); end + + # == DEPRECATED + # See REXML::Formatters + # + # source://rexml//lib/rexml/text.rb#293 + def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end + + # Writes out text, substituting special characters beforehand. + # +out+ A String, IO, or any other object supporting <<( String ) + # +input+ the text to substitute and the write out + # + # z=utf8.unpack("U*") + # ascOut="" + # z.each{|r| + # if r < 0x100 + # ascOut.concat(r.chr) + # else + # ascOut.concat(sprintf("&#x%x;", r)) + # end + # } + # puts ascOut + # + # source://rexml//lib/rexml/text.rb#325 + def write_with_substitution(out, input); end + + # FIXME + # This probably won't work properly + # + # source://rexml//lib/rexml/text.rb#305 + def xpath; end + + private + + # source://rexml//lib/rexml/text.rb#338 + def clear_cache; end + + class << self + # check for illegal characters + # + # source://rexml//lib/rexml/text.rb#131 + def check(string, pattern, doctype); end + + # source://rexml//lib/rexml/text.rb#407 + def expand(ref, doctype, filter); end + + # Escapes all possible entities + # + # source://rexml//lib/rexml/text.rb#370 + def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end + + # Reads text, substituting entities + # + # source://rexml//lib/rexml/text.rb#344 + def read_with_substitution(input, illegal = T.unsafe(nil)); end + + # Unescapes all possible entities + # + # source://rexml//lib/rexml/text.rb#394 + def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end + end +end + +# source://rexml//lib/rexml/undefinednamespaceexception.rb#4 +class REXML::UndefinedNamespaceException < ::REXML::ParseException + # @return [UndefinedNamespaceException] a new instance of UndefinedNamespaceException + # + # source://rexml//lib/rexml/undefinednamespaceexception.rb#5 + def initialize(prefix, source, parser); end +end + +# source://rexml//lib/rexml/validation/validationexception.rb#4 +class REXML::Validation::ValidationException < ::RuntimeError + # @return [ValidationException] a new instance of ValidationException + # + # source://rexml//lib/rexml/validation/validationexception.rb#5 + def initialize(msg); end +end + +# NEEDS DOCUMENTATION +# +# source://rexml//lib/rexml/xmldecl.rb#8 +class REXML::XMLDecl < ::REXML::Child + include ::REXML::Encoding + + # @return [XMLDecl] a new instance of XMLDecl + # + # source://rexml//lib/rexml/xmldecl.rb#20 + def initialize(version = T.unsafe(nil), encoding = T.unsafe(nil), standalone = T.unsafe(nil)); end + + # source://rexml//lib/rexml/xmldecl.rb#56 + def ==(other); end + + # source://rexml//lib/rexml/xmldecl.rb#39 + def clone; end + + # source://rexml//lib/rexml/xmldecl.rb#102 + def dowrite; end + + # source://rexml//lib/rexml/xmldecl.rb#76 + def encoding=(enc); end + + # source://rexml//lib/rexml/xmldecl.rb#106 + def inspect; end + + # source://rexml//lib/rexml/xmldecl.rb#69 + def node_type; end + + # source://rexml//lib/rexml/xmldecl.rb#98 + def nowrite; end + + # source://rexml//lib/rexml/encoding.rb#7 + def old_enc=(encoding); end + + # Returns the value of attribute standalone. + # + # source://rexml//lib/rexml/xmldecl.rb#17 + def stand_alone?; end + + # Returns the value of attribute standalone. + # + # source://rexml//lib/rexml/xmldecl.rb#17 + def standalone; end + + # Sets the attribute standalone + # + # @param value the value to set the attribute standalone to. + # + # source://rexml//lib/rexml/xmldecl.rb#17 + def standalone=(_arg0); end + + # Returns the value of attribute version. + # + # source://rexml//lib/rexml/xmldecl.rb#17 + def version; end + + # Sets the attribute version + # + # @param value the value to set the attribute version to. + # + # source://rexml//lib/rexml/xmldecl.rb#17 + def version=(_arg0); end + + # indent:: + # Ignored. There must be no whitespace before an XML declaration + # transitive:: + # Ignored + # ie_hack:: + # Ignored + # + # source://rexml//lib/rexml/xmldecl.rb#49 + def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end + + # Returns the value of attribute writeencoding. + # + # source://rexml//lib/rexml/xmldecl.rb#18 + def writeencoding; end + + # Returns the value of attribute writethis. + # + # source://rexml//lib/rexml/xmldecl.rb#18 + def writethis; end + + # source://rexml//lib/rexml/xmldecl.rb#63 + def xmldecl(version, encoding, standalone); end + + private + + # source://rexml//lib/rexml/xmldecl.rb#111 + def content(enc); end + + class << self + # Only use this if you do not want the XML declaration to be written; + # this object is ignored by the XML writer. Otherwise, instantiate your + # own XMLDecl and add it to the document. + # + # Note that XML 1.1 documents *must* include an XML declaration + # + # source://rexml//lib/rexml/xmldecl.rb#92 + def default; end + end +end + +# @private +# +# source://rexml//lib/rexml/xpath_parser.rb#959 +class REXML::XPathNode + # @return [XPathNode] a new instance of XPathNode + # + # source://rexml//lib/rexml/xpath_parser.rb#961 + def initialize(node, context = T.unsafe(nil)); end + + # Returns the value of attribute context. + # + # source://rexml//lib/rexml/xpath_parser.rb#960 + def context; end + + # source://rexml//lib/rexml/xpath_parser.rb#970 + def position; end + + # Returns the value of attribute raw_node. + # + # source://rexml//lib/rexml/xpath_parser.rb#960 + def raw_node; end +end + +# You don't want to use this class. Really. Use XPath, which is a wrapper +# for this class. Believe me. You don't want to poke around in here. +# There is strange, dark magic at work in this code. Beware. Go back! Go +# back while you still can! +# +# source://rexml//lib/rexml/xpath_parser.rb#54 +class REXML::XPathParser + include ::REXML::XMLTokens + + # @return [XPathParser] a new instance of XPathParser + # + # source://rexml//lib/rexml/xpath_parser.rb#60 + def initialize(strict: T.unsafe(nil)); end + + # source://rexml//lib/rexml/xpath_parser.rb#94 + def []=(variable_name, value); end + + # Performs a depth-first (document order) XPath search, and returns the + # first match. This is the fastest, lightest way to return a single result. + # + # FIXME: This method is incomplete! + # + # source://rexml//lib/rexml/xpath_parser.rb#103 + def first(path_stack, node); end + + # source://rexml//lib/rexml/xpath_parser.rb#84 + def get_first(path, nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#139 + def match(path_stack, nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#69 + def namespaces=(namespaces = T.unsafe(nil)); end + + # source://rexml//lib/rexml/xpath_parser.rb#79 + def parse(path, nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#89 + def predicate(path, nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#74 + def variables=(vars = T.unsafe(nil)); end + + private + + # source://rexml//lib/rexml/xpath_parser.rb#775 + def child(nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#916 + def compare(a, operator, b); end + + # source://rexml//lib/rexml/xpath_parser.rb#678 + def descendant(nodeset, include_self); end + + # source://rexml//lib/rexml/xpath_parser.rb#689 + def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end + + # source://rexml//lib/rexml/xpath_parser.rb#938 + def each_unnode(nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#637 + def enter(tag, *args); end + + # source://rexml//lib/rexml/xpath_parser.rb#815 + def equality_relational_compare(set1, op, set2); end + + # source://rexml//lib/rexml/xpath_parser.rb#591 + def evaluate_predicate(expression, nodesets); end + + # Expr takes a stack of path elements and a set of nodes (either a Parent + # or an Array and returns an Array of matching nodes + # + # source://rexml//lib/rexml/xpath_parser.rb#175 + def expr(path_stack, nodeset, context = T.unsafe(nil)); end + + # source://rexml//lib/rexml/xpath_parser.rb#582 + def filter_nodeset(nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#745 + def following(node); end + + # source://rexml//lib/rexml/xpath_parser.rb#756 + def following_node_of(node); end + + # Returns a String namespace for a node, given a prefix + # The rules are: + # + # 1. Use the supplied namespace mapping first. + # 2. If no mapping was supplied, use the context node to look up the namespace + # + # source://rexml//lib/rexml/xpath_parser.rb#163 + def get_namespace(node, prefix); end + + # source://rexml//lib/rexml/xpath_parser.rb#642 + def leave(tag, *args); end + + # source://rexml//lib/rexml/xpath_parser.rb#763 + def next_sibling_node(node); end + + # source://rexml//lib/rexml/xpath_parser.rb#477 + def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end + + # source://rexml//lib/rexml/xpath_parser.rb#802 + def norm(b); end + + # source://rexml//lib/rexml/xpath_parser.rb#890 + def normalize_compare_values(a, operator, b); end + + # Builds a nodeset of all of the preceding nodes of the supplied node, + # in reverse document order + # preceding:: includes every element in the document that precedes this node, + # except for ancestors + # + # source://rexml//lib/rexml/xpath_parser.rb#708 + def preceding(node); end + + # source://rexml//lib/rexml/xpath_parser.rb#730 + def preceding_node_of(node); end + + # Reorders an array of nodes so that they are in document order + # It tries to do this efficiently. + # + # FIXME: I need to get rid of this, but the issue is that most of the XPath + # interpreter functions as a filter, which means that we lose context going + # in and out of function calls. If I knew what the index of the nodes was, + # I wouldn't have to do this. Maybe add a document IDX for each node? + # Problems with mutable documents. Or, rewrite everything. + # + # source://rexml//lib/rexml/xpath_parser.rb#655 + def sort(array_of_nodes, order); end + + # source://rexml//lib/rexml/xpath_parser.rb#441 + def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rexml//lib/rexml/xpath_parser.rb#154 + def strict?; end + + # source://rexml//lib/rexml/xpath_parser.rb#630 + def trace(*args); end + + # source://rexml//lib/rexml/xpath_parser.rb#950 + def unnode(nodeset); end + + # source://rexml//lib/rexml/xpath_parser.rb#877 + def value_type(value); end +end + +# source://rexml//lib/rexml/xpath_parser.rb#58 +REXML::XPathParser::DEBUG = T.let(T.unsafe(nil), FalseClass) diff --git a/ruby-client-sdk/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi new file mode 100755 index 000000000..5f2de83a8 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi @@ -0,0 +1,6985 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-ast` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-ast`. + +class Parser::Source::Range + include ::RuboCop::AST::Ext::Range +end + +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#3 +module RuboCop; end + +# ... +# +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#4 +module RuboCop::AST + extend ::RuboCop::AST::RuboCopCompatibility +end + +# A node extension for `alias` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `alias` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#8 +class RuboCop::AST::AliasNode < ::RuboCop::AST::Node + # Returns the new identifier as specified by the `alias`. + # + # @return [SymbolNode] the new identifier + # + # source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#19 + def new_identifier; end + + # Returns the old identifier as specified by the `alias`. + # + # @return [SymbolNode] the old identifier + # + # source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#12 + def old_identifier; end +end + +# A node extension for `op_asgn` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#8 +class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode + # The operator being used for assignment as a symbol. + # + # @return [Symbol] the assignment operator + # + # source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#12 + def operator; end +end + +# A node extension for `until` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `until` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#8 +class RuboCop::AST::AndNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BinaryOperatorNode + include ::RuboCop::AST::PredicateOperatorNode + + # Returns the alternate operator of the `and` as a string. + # Returns `and` for `&&` and vice versa. + # + # @return [String] the alternate of the `and` operator + # + # source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#16 + def alternate_operator; end + + # Returns the inverse keyword of the `and` node as a string. + # Returns `||` for `&&` and `or` for `and`. + # + # @return [String] the inverse of the `and` operator + # + # source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#24 + def inverse_operator; end +end + +# A node extension for `arg`, `optarg`, `restarg`, `kwarg`, `kwoptarg`, +# `kwrestarg`, `blockarg`, `shadowarg` and `forward_arg` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all `arg` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#9 +class RuboCop::AST::ArgNode < ::RuboCop::AST::Node + # Checks whether the argument has a default value + # + # @return [Boolean] whether the argument has a default value + # + # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#29 + def default?; end + + # Returns the default value of the argument, if any. + # + # @return [Node, nil] the default value of the argument + # + # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#20 + def default_value; end + + # Returns the name of an argument. + # + # @return [Symbol, nil] the name of the argument + # + # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#13 + def name; end +end + +# A node extension for `args` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `args` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#8 +class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node + include ::RuboCop::AST::CollectionNode + + # Yield each argument from the collection. + # Arguments can be inside `mlhs` nodes in the case of destructuring, so this + # flattens the collection to just `arg`, `optarg`, `restarg`, `kwarg`, + # `kwoptarg`, `kwrestarg`, `blockarg`, `forward_arg` and `shadowarg`. + # + # @return [Array<Node>] array of argument nodes. + # + # source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#34 + def argument_list; end + + # It returns true if arguments are empty and delimiters do not exist. + # @example: + # # true + # def x; end + # x { } + # -> {} + # + # # false + # def x(); end + # def x a; end + # x { || } + # -> () {} + # -> a {} + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#24 + def empty_and_without_delimiters?; end +end + +# A node extension for `array` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `array` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#8 +class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node + # Checks whether the `array` literal is delimited by either percent or + # square brackets + # + # brackets + # + # @return [Boolean] whether the array is enclosed in percent or square + # + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#60 + def bracketed?; end + + # @deprecated Use `values.each` (a.k.a. `children.each`) + # + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#21 + def each_value(&block); end + + # Checks whether the `array` literal is delimited by percent brackets. + # + # @overload percent_literal? + # @overload percent_literal? + # @return [Boolean] whether the array is enclosed in percent brackets + # + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#47 + def percent_literal?(type = T.unsafe(nil)); end + + # Checks whether the `array` literal is delimited by square brackets. + # + # @return [Boolean] whether the array is enclosed in square brackets + # + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#32 + def square_brackets?; end + + # Returns an array of all value nodes in the `array` literal. + # + # @return [Array<Node>] an array of value nodes + # + # source://ast/2.4.2/lib/ast/node.rb#56 + def values; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#9 +RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash) + +# A node extension for `lvasgn`, `ivasgn`, `cvasgn`, and `gvasgn` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#8 +class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node + # The expression being assigned to the variable. + # + # @return [Node] the expression being assigned. + # + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#19 + def expression; end + + # The name of the variable being assigned as a symbol. + # + # @return [Symbol] the name of the variable being assigned + # + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12 + def name; end +end + +# Common functionality for primitive literal nodes: `sym`, `str`, +# `int`, `float`, ... +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7 +module RuboCop::AST::BasicLiteralNode + # Returns the value of the literal. + # + # @return [mixed] the value of the literal + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#11 + def value; end +end + +# Common functionality for nodes that are binary operations: +# `or`, `and` ... +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#7 +module RuboCop::AST::BinaryOperatorNode + # Returns all of the conditions, including nested conditions, + # of the binary operation. + # + # operation and the let and right hand side of any nested binary + # operators + # + # @return [Array<Node>] the left and right hand side of the binary + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#28 + def conditions; end + + # Returns the left hand side node of the binary operation. + # + # @return [Node] the left hand side of the binary operation + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#11 + def lhs; end + + # Returns the right hand side node of the binary operation. + # + # @return [Node] the right hand side of the binary operation + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#18 + def rhs; end +end + +# A node extension for `block` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `send` nodes within RuboCop. +# +# A `block` node is essentially a method send with a block. Parser nests +# the `send` node inside the `block` node. +# +# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#11 +class RuboCop::AST::BlockNode < ::RuboCop::AST::Node + include ::RuboCop::AST::MethodIdentifierPredicates + + # Returns a collection of all descendants of this node that are + # argument type nodes. See `ArgsNode#argument_list` for details. + # + # @return [Array<Node>] + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#42 + def argument_list; end + + # The arguments of this block. + # Note that if the block has destructured arguments, `arguments` will + # return a `mlhs` node, whereas `argument_list` will return only + # actual argument nodes. + # + # @return [Array<Node>] + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#30 + def arguments; end + + # Checks whether this block takes any arguments. + # + # @return [Boolean] whether this `block` node takes any arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#67 + def arguments?; end + + # The body of this block. + # + # @return [Node, nil] the body of the `block` node or `nil` + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#53 + def body; end + + # Checks whether the `block` literal is delimited by curly braces. + # + # @return [Boolean] whether the `block` literal is enclosed in braces + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#74 + def braces?; end + + # The closing delimiter for this `block` literal. + # + # @return [String] the closing delimiter for the `block` literal + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#102 + def closing_delimiter; end + + # The delimiters for this `block` literal. + # + # @return [Array<String>] the delimiters for the `block` literal + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#88 + def delimiters; end + + # Checks whether the `block` literal is delimited by `do`-`end` keywords. + # + # @return [Boolean] whether the `block` literal is enclosed in `do`-`end` + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#81 + def keywords?; end + + # Checks whether this `block` literal belongs to a lambda. + # + # @return [Boolean] whether the `block` literal belongs to a lambda + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#125 + def lambda?; end + + # The name of the dispatched method as a symbol. + # + # @return [Symbol] the name of the dispatched method + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#60 + def method_name; end + + # Checks whether this is a multiline block. This is overridden here + # because the general version in `Node` does not work for `block` nodes. + # + # @return [Boolean] whether the `block` literal is on a several lines + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#118 + def multiline?; end + + # The opening delimiter for this `block` literal. + # + # @return [String] the opening delimiter for the `block` literal + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#95 + def opening_delimiter; end + + # The `send` node associated with this block. + # + # @return [SendNode] the `send` node associated with the `block` node + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#20 + def send_node; end + + # Checks whether this is a single line block. This is overridden here + # because the general version in `Node` does not work for `block` nodes. + # + # @return [Boolean] whether the `block` literal is on a single line + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#110 + def single_line?; end + + # Checks whether this node body is a void context. + # + # @return [Boolean] whether the `block` node body is a void context + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#132 + def void_context?; end + + private + + # Numbered arguments of this `numblock`. + # + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#139 + def numbered_arguments; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#14 +RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array) + +# A node extension for `break` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `break` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/break_node.rb#8 +class RuboCop::AST::BreakNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::WrappedArguments +end + +# `RuboCop::AST::Builder` is an AST builder that is utilized to let `Parser` +# generate ASTs with {RuboCop::AST::Node}. +# +# @example +# buffer = Parser::Source::Buffer.new('(string)') +# buffer.source = 'puts :foo' +# +# builder = RuboCop::AST::Builder.new +# require 'parser/ruby25' +# parser = Parser::Ruby25.new(builder) +# root_node = parser.parse(buffer) +# +# source://rubocop-ast//lib/rubocop/ast/builder.rb#16 +class RuboCop::AST::Builder < ::Parser::Builders::Default + # Generates {Node} from the given information. + # + # @return [Node] the generated node + # + # source://rubocop-ast//lib/rubocop/ast/builder.rb#98 + def n(type, children, source_map); end + + # TODO: Figure out what to do about literal encoding handling... + # More details here https://github.com/whitequark/parser/issues/283 + # + # source://rubocop-ast//lib/rubocop/ast/builder.rb#104 + def string_value(token); end + + private + + # source://rubocop-ast//lib/rubocop/ast/builder.rb#110 + def node_klass(type); end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/builder.rb#21 +RuboCop::AST::Builder::NODE_MAP = T.let(T.unsafe(nil), Hash) + +# A node extension for `case_match` nodes. This will be used in place of +# a plain node when the builder constructs the AST, making its methods +# available to all `case_match` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#8 +class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConditionalNode + + # Returns an array of all the when branches in the `case` statement. + # + # and the `else` (if any). Note that these bodies could be nil. + # + # @return [Array<Node, nil>] an array of the bodies of the `in` branches + # + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#38 + def branches; end + + # @deprecated Use `in_pattern_branches.each` + # + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#19 + def each_in_pattern(&block); end + + # Checks whether this case statement has an `else` branch. + # + # @return [Boolean] whether the `case` statement has an `else` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#59 + def else?; end + + # Returns the else branch of the `case` statement, if any. + # + # @return [Node] the else branch node of the `case` statement + # @return [EmptyElse] the empty else branch node of the `case` statement + # @return [nil] if the case statement does not have an else branch. + # + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#52 + def else_branch; end + + # Returns an array of all the `in` pattern branches in the `case` statement. + # + # @return [Array<InPatternNode>] an array of `in_pattern` nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#30 + def in_pattern_branches; end + + # Returns the keyword of the `case` statement as a string. + # + # @return [String] the keyword of the `case` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#14 + def keyword; end +end + +# A node extension for `case` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `case` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#8 +class RuboCop::AST::CaseNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConditionalNode + + # Returns an array of all the when branches in the `case` statement. + # + # and the else (if any). Note that these bodies could be nil. + # + # @return [Array<Node, nil>] an array of the bodies of the when branches + # + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#38 + def branches; end + + # @deprecated Use `when_branches.each` + # + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#19 + def each_when(&block); end + + # Checks whether this case statement has an `else` branch. + # + # @return [Boolean] whether the `case` statement has an `else` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#55 + def else?; end + + # Returns the else branch of the `case` statement, if any. + # + # @return [Node] the else branch node of the `case` statement + # @return [nil] if the case statement does not have an else branch. + # + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#48 + def else_branch; end + + # Returns the keyword of the `case` statement as a string. + # + # @return [String] the keyword of the `case` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#14 + def keyword; end + + # Returns an array of all the when branches in the `case` statement. + # + # @return [Array<WhenNode>] an array of `when` nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#30 + def when_branches; end +end + +# A node extension for `casgn` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8 +class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node + # The expression being assigned to the variable. + # + # @return [Node] the expression being assigned. + # + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#26 + def expression; end + + # The name of the variable being assigned as a symbol. + # + # @return [Symbol] the name of the variable being assigned + # + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#19 + def name; end + + # The namespace of the constant being assigned. + # + # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...) + # + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12 + def namespace; end +end + +# A node extension for `class` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `class` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#8 +class RuboCop::AST::ClassNode < ::RuboCop::AST::Node + # The body of this `class` node. + # + # @return [Node, nil] the body of the class + # + # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#26 + def body; end + + # The identifier for this `class` node. + # + # @return [Node] the identifier of the class + # + # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#12 + def identifier; end + + # The parent class for this `class` node. + # + # @return [Node, nil] the parent class of the class + # + # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#19 + def parent_class; end +end + +# A mixin that helps give collection nodes array polymorphism. +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6 +module RuboCop::AST::CollectionNode + extend ::Forwardable + + # source://forwardable/1.3.3/forwardable.rb#231 + def &(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def *(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def +(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def -(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def <<(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def [](*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def []=(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def all?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def any?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def append(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def assoc(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def at(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def bsearch(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def bsearch_index(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def chain(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def chunk(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def chunk_while(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def clear(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def collect(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def collect!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def collect_concat(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def combination(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def compact(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def compact!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def concat(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def count(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def cycle(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def deconstruct(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def delete(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def delete_at(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def delete_if(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def detect(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def difference(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def dig(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def drop(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def drop_while(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_cons(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_entry(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_index(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_slice(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_with_index(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_with_object(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def empty?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def entries(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def fetch(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def fill(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def filter(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def filter!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def filter_map(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def find(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def find_all(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def find_index(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def first(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def flat_map(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def flatten(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def flatten!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def grep(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def grep_v(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def group_by(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def include?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def index(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def inject(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def insert(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def intersect?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def intersection(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def join(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def keep_if(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def last(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def lazy(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def length(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def map(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def map!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def max(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def max_by(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def member?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def min(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def min_by(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def minmax(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def minmax_by(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def none?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def one?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def pack(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def partition(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def permutation(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def place(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def pop(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def prepend(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def product(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def push(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def rassoc(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def reduce(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def reject(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def reject!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def repeated_combination(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def repeated_permutation(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def replace(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def reverse(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def reverse!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def reverse_each(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def rindex(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def rotate(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def rotate!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sample(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def select(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def select!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def shelljoin(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def shift(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def shuffle(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def shuffle!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def size(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def slice(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def slice!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def slice_after(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def slice_before(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def slice_when(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sort(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sort!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sort_by(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sort_by!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sum(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def take(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def take_while(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def tally(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def to_ary(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def to_h(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def to_set(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def transpose(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def union(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def uniq(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def uniq!(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def unshift(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def values_at(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def zip(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def |(*args, **_arg1, &block); end +end + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9 +RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array) + +# Common functionality for nodes that have conditions: +# `if`, `while`, `until`, `case`. +# This currently doesn't include `when` nodes, because they have multiple +# conditions, and need to be checked for that. +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#9 +module RuboCop::AST::ConditionalNode + # Returns the body associated with the condition. This works together with + # each node's custom destructuring method to select the correct part of + # the node. + # + # @note For `if` nodes, this is the truthy branch. + # @return [Node, nil] the body of the node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#40 + def body; end + + # Returns the condition of the node. This works together with each node's + # custom destructuring method to select the correct part of the node. + # + # @return [Node, nil] the condition of the node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#29 + def condition; end + + # Checks whether the condition of the node is written on more than + # one line. + # + # @return [Boolean] whether the condition is on more than one line + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#21 + def multiline_condition?; end + + # Checks whether the condition of the node is written on a single line. + # + # @return [Boolean] whether the condition is on a single line + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#13 + def single_line_condition?; end +end + +# A node extension for `const` nodes. +# +# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6 +class RuboCop::AST::ConstNode < ::RuboCop::AST::Node + # @return [Boolean] if the constant starts with `::` (aka s(:cbase)) + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#26 + def absolute?; end + + # @return [Boolean] if the constant is a Module / Class, according to the standard convention. + # Note: some classes might have uppercase in which case this method + # returns false + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 + def class_name?; end + + # Yield nodes for the namespace + # + # For `::Foo::Bar::BAZ` => yields: + # s(:cbase), then + # s(:const, :Foo), then + # s(:const, s(:const, :Foo), :Bar) + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#43 + def each_path(&block); end + + # @return [Boolean] if the constant is a Module / Class, according to the standard convention. + # Note: some classes might have uppercase in which case this method + # returns false + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 + def module_name?; end + + # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...) + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#8 + def namespace; end + + # @return [Boolean] if the constant does not start with `::` (aka s(:cbase)) + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#33 + def relative?; end + + # @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar + # + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#13 + def short_name; end +end + +# A node extension for `csend` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `csend` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#8 +class RuboCop::AST::CsendNode < ::RuboCop::AST::SendNode + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#9 + def send_type?; end +end + +# A node extension for `def` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `def` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#8 +class RuboCop::AST::DefNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::MethodIdentifierPredicates + + # Checks whether this method definition node forwards its arguments + # as per the feature added in Ruby 2.7. + # + # @note This is written in a way that may support lead arguments + # which are rumored to be added in a later version of Ruby. + # @return [Boolean] whether the `def` node uses argument forwarding + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#26 + def argument_forwarding?; end + + # An array containing the arguments of the method definition. + # + # @return [Array<Node>] the arguments of the method definition + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#40 + def arguments; end + + # The body of the method definition. + # + # @note this can be either a `begin` node, if the method body contains + # multiple expressions, or any other node, if it contains a single + # expression. + # @return [Node] the body of the method definition + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#51 + def body; end + + # @return [Boolean] if the definition is without an `end` or not. + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#63 + def endless?; end + + # The name of the defined method as a symbol. + # + # @return [Symbol] the name of the defined method + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#33 + def method_name; end + + # The receiver of the method definition, if any. + # + # @return [Node, nil] the receiver of the method definition, or `nil`. + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#58 + def receiver; end + + # Checks whether this node body is a void context. + # + # @return [Boolean] whether the `def` node body is a void context + # + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#15 + def void_context?; end +end + +# A node extension for `defined?` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `send` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#8 +class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # source://ast/2.4.2/lib/ast/node.rb#56 + def arguments; end + + # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12 + def node_parts; end +end + +# Common functionality for primitive literal nodes: `sym`, `str`, +# `int`, `float`, ... +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#7 +module RuboCop::AST::Descendence + # Returns an array of child nodes. + # This is a shorthand for `node.each_child_node.to_a`. + # + # @return [Array<Node>] an array of child nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#38 + def child_nodes; end + + # Returns an array of descendant nodes. + # This is a shorthand for `node.each_descendant.to_a`. + # + # @return [Array<Node>] an array of descendant nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#72 + def descendants; end + + # Calls the given block for each child node. + # If no block is given, an `Enumerator` is returned. + # + # Note that this is different from `node.children.each { |child| ... }` + # which yields all children including non-node elements. + # + # @overload each_child_node + # @overload each_child_node + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # @yieldparam node [Node] each child node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#22 + def each_child_node(*types); end + + # Calls the given block for each descendant node with depth first order. + # If no block is given, an `Enumerator` is returned. + # + # @overload each_descendant + # @overload each_descendant + # @overload each_descendant + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # @yieldparam node [Node] each descendant node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#60 + def each_descendant(*types, &block); end + + # Calls the given block for the receiver and each descendant node in + # depth-first order. + # If no block is given, an `Enumerator` is returned. + # + # This method would be useful when you treat the receiver node as the root + # of a tree and want to iterate over all nodes in the tree. + # + # @overload each_node + # @overload each_node + # @overload each_node + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # @yieldparam node [Node] each node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#95 + def each_node(*types, &block); end + + protected + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#107 + def visit_descendants(types, &block); end +end + +# A node extension for `dstr` nodes. This will be used +# in place of a plain node when the builder constructs the AST, making +# its methods available to all `dstr` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#8 +class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode + # source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#9 + def value; end +end + +# A node extension for `ensure` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `ensure` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#8 +class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node + # Returns the body of the `ensure` clause. + # + # @return [Node, nil] The body of the `ensure`. + # + # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12 + def body; end +end + +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5 +module RuboCop::AST::Ext; end + +# Extensions to Parser::AST::Range +# +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#7 +module RuboCop::AST::Ext::Range + # If `exclude_end` is `true`, then the range will be exclusive. + # + # Assume that `node` corresponds to the following array literal: + # + # [ + # :foo, + # :bar + # ] + # + # node.loc.begin.line_span # => 1..1 + # node.source_range.line_span(exclude_end: true) # => 1...4 + # + # @return [Range] the range of line numbers for the node + # + # source://rubocop-ast//lib/rubocop/ast/ext/range.rb#20 + def line_span(exclude_end: T.unsafe(nil)); end +end + +# Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6- +# +# source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7 +module RuboCop::AST::Ext::RangeMinMax; end + +# A node extension for `float` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available to +# all `float` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/float_node.rb#8 +class RuboCop::AST::FloatNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BasicLiteralNode + include ::RuboCop::AST::NumericNode +end + +# A node extension for `for` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `for` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#8 +class RuboCop::AST::ForNode < ::RuboCop::AST::Node + # Returns the body of the `for` loop. + # + # @return [Node, nil] The body of the `for` loop. + # + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#48 + def body; end + + # Returns the collection the `for` loop is iterating over. + # + # @return [Node] The collection the `for` loop is iterating over + # + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#41 + def collection; end + + # Checks whether the `for` node has a `do` keyword. + # + # @return [Boolean] whether the `for` node has a `do` keyword + # + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#19 + def do?; end + + # Returns the keyword of the `for` statement as a string. + # + # @return [String] the keyword of the `until` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#12 + def keyword; end + + # Returns the iteration variable of the `for` loop. + # + # @return [Node] The iteration variable of the `for` loop + # + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#34 + def variable; end + + # Checks whether this node body is a void context. + # Always `true` for `for`. + # + # @return [true] whether the `for` node body is a void context + # + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#27 + def void_context?; end +end + +# A node extension for `forward-args` nodes. This will be used in place +# of a plain node when the builder constructs the AST, making its methods +# available to all `forward-args` nodes within RuboCop. +# +# Not used with modern emitters: +# +# $ ruby-parse -e "def foo(...); end" +# (def :foo +# (args +# (forward-arg)) nil) +# $ ruby-parse --legacy -e "->(foo) { bar }" +# (def :foo +# (forward-args) nil) +# +# Note the extra 's' with legacy form. +# +# The main RuboCop runs in legacy mode; this node is only used +# if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true` +# +# source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#23 +class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node + include ::RuboCop::AST::CollectionNode + + # Node wraps itself in an array to be compatible with other + # enumerable argument types. + # + # source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#28 + def to_a; end +end + +# Common functionality for nodes that can be used as hash elements: +# `pair`, `kwsplat` +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#7 +module RuboCop::AST::HashElementNode + # Returns the delta between this element's delimiter and the argument's. + # + # @note Pairs with different delimiter styles return a delta of 0 + # @return [Integer] the delta between the two delimiters + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#61 + def delimiter_delta(other); end + + # Returns the key of this `hash` element. + # + # @note For keyword splats, this returns the whole node + # @return [Node] the key of the hash element + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#13 + def key; end + + # Returns the delta between this pair's key and the argument pair's. + # + # @note Keys on the same line always return a delta of 0 + # @note Keyword splats always return a delta of 0 for right alignment + # @param alignment [Symbol] whether to check the left or right side + # @return [Integer] the delta between the two keys + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#43 + def key_delta(other, alignment = T.unsafe(nil)); end + + # Checks whether this `hash` element is on the same line as `other`. + # + # @note A multiline element is considered to be on the same line if it + # shares any of its lines with `other` + # @return [Boolean] whether this element is on the same line as `other` + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#32 + def same_line?(other); end + + # Returns the value of this `hash` element. + # + # @note For keyword splats, this returns the whole node + # @return [Node] the value of the hash element + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#22 + def value; end + + # Returns the delta between this element's value and the argument's. + # + # @note Keyword splats always return a delta of 0 + # @return [Integer] the delta between the two values + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#52 + def value_delta(other); end +end + +# A helper class for comparing the positions of different parts of a +# `pair` node. +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#67 +class RuboCop::AST::HashElementNode::HashElementDelta + # @raise [ArgumentError] + # @return [HashElementDelta] a new instance of HashElementDelta + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#68 + def initialize(first, second); end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#89 + def delimiter_delta; end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#75 + def key_delta(alignment = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#82 + def value_delta; end + + private + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#106 + def delta(first, second, alignment = T.unsafe(nil)); end + + # Returns the value of attribute first. + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#98 + def first; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#117 + def keyword_splat?; end + + # Returns the value of attribute second. + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#98 + def second; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#100 + def valid_argument_types?; end +end + +# A node extension for `hash` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `hash` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#8 +class RuboCop::AST::HashNode < ::RuboCop::AST::Node + # Checks whether the `hash` literal is delimited by curly braces. + # + # @return [Boolean] whether the `hash` literal is enclosed in braces + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#117 + def braces?; end + + # Calls the given block for each `key` node in the `hash` literal. + # If no block is given, an `Enumerator` is returned. + # + # @note `kwsplat` nodes are ignored. + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#59 + def each_key(&block); end + + # Calls the given block for each `pair` node in the `hash` literal. + # If no block is given, an `Enumerator` is returned. + # + # @note `kwsplat` nodes are ignored. + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#33 + def each_pair; end + + # Calls the given block for each `value` node in the `hash` literal. + # If no block is given, an `Enumerator` is returned. + # + # @note `kwsplat` nodes are ignored. + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#83 + def each_value(&block); end + + # Checks whether the `hash` node contains any `pair`- or `kwsplat` nodes. + # + # @return[Boolean] whether the `hash` is empty + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#22 + def empty?; end + + # Returns an array of all the keys in the `hash` literal. + # + # @note `kwsplat` nodes are ignored. + # @return [Array<Node>] an array of keys in the `hash` literal + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#48 + def keys; end + + # Checks whether this `hash` uses a mix of hash rocket and colon + # delimiters for its pairs. + # + # @note `kwsplat` nodes are ignored. + # @return [Boolean] whether the `hash` uses mixed delimiters + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#110 + def mixed_delimiters?; end + + # Returns an array of all the key value pairs in the `hash` literal. + # + # ignored. + # + # @note this may be different from children as `kwsplat` nodes are + # @return [Array<PairNode>] an array of `pair` nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#15 + def pairs; end + + # Checks whether any of the key value pairs in the `hash` literal are on + # the same line. + # + # @note A multiline `pair` is considered to be on the same line if it + # shares any of its lines with another `pair` + # @note `kwsplat` nodes are ignored. + # @return [Boolean] whether any `pair` nodes are on the same line + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#100 + def pairs_on_same_line?; end + + # Returns an array of all the values in the `hash` literal. + # + # @note `kwsplat` nodes are ignored. + # @return [Array<Node>] an array of values in the `hash` literal + # + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#72 + def values; end +end + +# A node extension for `if` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `if` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#8 +class RuboCop::AST::IfNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConditionalNode + include ::RuboCop::AST::ModifierNode + + # Returns an array of all the branches in the conditional statement. + # + # @return [Array<Node>] an array of branch nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#147 + def branches; end + + # @deprecated Use `branches.each` + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#164 + def each_branch(&block); end + + # Checks whether the `if` node has an `else` clause. + # + # @note This returns `true` for nodes containing an `elsif` clause. + # This is legacy behavior, and many cops rely on it. + # @return [Boolean] whether the node has an `else` clause + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#42 + def else?; end + + # Returns the branch of the `if` node that gets evaluated when its + # condition is falsey. + # + # @note This is normalized for `unless` nodes. + # @return [Node] the falsey branch node of the `if` node + # @return [nil] when there is no else branch + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#126 + def else_branch; end + + # Checks whether the `if` is an `elsif`. Parser handles these by nesting + # `if` nodes in the `else` branch. + # + # @return [Boolean] whether the node is an `elsif` + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#32 + def elsif?; end + + # Checks whether the `if` node has at least one `elsif` branch. Returns + # true if this `if` node itself is an `elsif`. + # + # @return [Boolean] whether the `if` node has at least one `elsif` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#104 + def elsif_conditional?; end + + # Checks whether this node is an `if` statement. (This is not true of + # ternary operators and `unless` statements.) + # + # @return [Boolean] whether the node is an `if` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#16 + def if?; end + + # Returns the branch of the `if` node that gets evaluated when its + # condition is truthy. + # + # @note This is normalized for `unless` nodes. + # @return [Node] the truthy branch node of the `if` node + # @return [nil] if the truthy branch is empty + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#115 + def if_branch; end + + # Returns the inverse keyword of the `if` node as a string. Returns `if` + # for `unless` nodes and vice versa. Returns an empty string for ternary + # operators. + # + # @return [String] the inverse keyword of the `if` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#66 + def inverse_keyword; end + + # Returns the keyword of the `if` statement as a string. Returns an empty + # string for ternary operators. + # + # @return [String] the keyword of the `if` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#57 + def keyword; end + + # Checks whether the `if` node is in a modifier form, i.e. a condition + # trailing behind an expression. Only `if` and `unless` nodes without + # other branches can be modifiers. + # + # @return [Boolean] whether the `if` node is a modifier + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#80 + def modifier_form?; end + + # Chacks whether the `if` node has nested `if` nodes in any of its + # branches. + # + # @note This performs a shallow search. + # @return [Boolean] whether the `if` node contains nested conditionals + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#90 + def nested_conditional?; end + + # Custom destructuring method. This is used to normalize the branches + # for `if` and `unless` nodes, to aid comparisons and conversions. + # + # @return [Array<Node>] the different parts of the `if` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#134 + def node_parts; end + + # Checks whether the `if` node is a ternary operator. + # + # @return [Boolean] whether the `if` node is a ternary operator + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49 + def ternary?; end + + # Checks whether this node is an `unless` statement. (This is not true + # of ternary operators and `if` statements.) + # + # @return [Boolean] whether the node is an `unless` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#24 + def unless?; end +end + +# A node extension for `in` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `in` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#8 +class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node + # Returns the body of the `in` node. + # + # @return [Node, nil] the body of the `in` node + # + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#33 + def body; end + + # Returns the index of the `in` branch within the `case` statement. + # + # @return [Integer] the index of the `in` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#19 + def branch_index; end + + # Returns a node of the pattern in the `in` branch. + # + # @return [Node] a pattern node + # + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#12 + def pattern; end + + # Checks whether the `in` node has a `then` keyword. + # + # @return [Boolean] whether the `in` node has a `then` keyword + # + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#26 + def then?; end +end + +# Used for modern support only! +# Not as thoroughly tested as legacy equivalent +# +# $ ruby-parse -e "foo[:bar]" +# (index +# (send nil :foo) +# (sym :bar)) +# $ ruby-parse --legacy -e "foo[:bar]" +# (send +# (send nil :foo) :[] +# (sym :bar)) +# +# The main RuboCop runs in legacy mode; this node is only used +# if user `AST::Builder.modernize` or `AST::Builder.emit_index=true` +# +# source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#19 +class RuboCop::AST::IndexNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::RestArguments + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#29 + def assignment_method?; end + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#24 + def attribute_accessor?; end + + # For similarity with legacy mode + # + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#34 + def method_name; end + + private + + # An array containing the arguments of the dispatched method. + # + # @return [Array<Node>] the arguments of the dispatched method + # + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#43 + def first_argument_index; end +end + +# Used for modern support only! +# Not as thoroughly tested as legacy equivalent +# +# $ ruby-parse -e "foo[:bar] = :baz" +# (indexasgn +# (send nil :foo) +# (sym :bar) +# (sym :baz)) +# $ ruby-parse --legacy -e "foo[:bar] = :baz" +# (send +# (send nil :foo) :[]= +# (sym :bar) +# (sym :baz)) +# +# The main RuboCop runs in legacy mode; this node is only used +# if user `AST::Builder.modernize` or `AST::Builder.emit_index=true` +# +# source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#21 +class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::RestArguments + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#31 + def assignment_method?; end + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#26 + def attribute_accessor?; end + + # For similarity with legacy mode + # + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#36 + def method_name; end + + private + + # An array containing the arguments of the dispatched method. + # + # @return [Array<Node>] the arguments of the dispatched method + # + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#45 + def first_argument_index; end +end + +# A node extension for `int` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available to +# all `int` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/int_node.rb#8 +class RuboCop::AST::IntNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BasicLiteralNode + include ::RuboCop::AST::NumericNode +end + +# A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in +# place of a plain node when the builder constructs the AST, making its methods available to +# all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#8 +class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node + include ::RuboCop::AST::HashElementNode + + # This is used for duck typing with `pair` nodes which also appear as + # `hash` elements. + # + # @return [false] + # + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#26 + def colon?; end + + # This is used for duck typing with `pair` nodes which also appear as + # `hash` elements. + # + # @return [false] + # + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#18 + def hash_rocket?; end + + # This provides `forwarded_kwrestarg` node to return true to be compatible with `kwsplat` node. + # + # @return [true] + # + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#48 + def kwsplat_type?; end + + # Custom destructuring method. This is used to normalize the branches + # for `pair` and `kwsplat` nodes, to add duck typing to `hash` elements. + # + # @return [Array<KeywordSplatNode>] the different parts of the `kwsplat` + # + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#41 + def node_parts; end + + # Returns the operator for the `kwsplat` as a string. + # + # @return [String] the double splat operator + # + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#33 + def operator; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#11 +RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String) + +# Used for modern support only: +# Not as thoroughly tested as legacy equivalent +# +# $ ruby-parse -e "->(foo) { bar }" +# (block +# (lambda) +# (args +# (arg :foo)) +# (send nil :bar)) +# $ ruby-parse --legacy -e "->(foo) { bar }" +# (block +# (send nil :lambda) +# (args +# (arg :foo)) +# (send nil :bar)) +# +# The main RuboCop runs in legacy mode; this node is only used +# if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true` +# +# source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#23 +class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::RestArguments + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#43 + def assignment_method?; end + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#38 + def attribute_accessor?; end + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#28 + def lambda?; end + + # For similarity with legacy mode + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#33 + def lambda_literal?; end + + # For similarity with legacy mode + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#53 + def method_name; end + + # For similarity with legacy mode + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#48 + def receiver; end + + private + + # For similarity with legacy mode + # + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#60 + def first_argument_index; end +end + +# Common functionality for nodes that are a kind of method dispatch: +# `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`, +# and (modern only): `index`, `indexasgn`, `lambda` +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#8 +module RuboCop::AST::MethodDispatchNode + include ::RuboCop::AST::MethodIdentifierPredicates + extend ::RuboCop::AST::NodePattern::Macros + + # Checks whether the dispatched method is an access modifier. + # + # @return [Boolean] whether the dispatched method is an access modifier + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#64 + def access_modifier?; end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#273 + def adjacent_def_modifier?(param0 = T.unsafe(nil)); end + + # Checks whether this node is an arithmetic operation + # + # @return [Boolean] whether the dispatched method is an arithmetic + # operation + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#175 + def arithmetic_operation?; end + + # Checks whether the dispatched method is a setter method. + # + # @return [Boolean] whether the dispatched method is a setter + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 + def assignment?; end + + # Checks whether the dispatched method is a bare access modifier that + # affects all methods defined after the macro. + # + # @return [Boolean] whether the dispatched method is a bare + # access modifier + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#73 + def bare_access_modifier?; end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#278 + def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end + + # Checks whether this is a binary operation. + # + # @example + # + # foo + bar + # @return [Boolean] whether this method is a binary operation + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#248 + def binary_operation?; end + + # Whether this method dispatch has an explicit block. + # + # @return [Boolean] whether the dispatched method has a block + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#167 + def block_literal?; end + + # The `block` or `numblock` node associated with this method dispatch, if any. + # + # @return [BlockNode, nil] the `block` or `numblock` node associated with this method + # call or `nil` + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46 + def block_node; end + + # Checks whether the name of the dispatched method matches the argument + # and has an implicit receiver. + # + # @param name [Symbol, String] the method name to check for + # @return [Boolean] whether the method name matches the argument + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#100 + def command?(name); end + + # Checks whether the *explicit* receiver of this method dispatch is a + # `const` node. + # + # @return [Boolean] whether the receiver of this method dispatch + # is a `const` node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#152 + def const_receiver?; end + + # Checks if this node is part of a chain of `def` or `defs` modifiers. + # + # or `nil` if it isn't a def modifier + # + # @example + # + # private def foo; end + # @return [Node | nil] returns the `def|defs` node this is a modifier for, + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#199 + def def_modifier(node = T.unsafe(nil)); end + + # Checks if this node is part of a chain of `def` or `defs` modifiers. + # + # See also `def_modifier` that returns the node or `nil` + # + # @example + # + # private def foo; end + # @return [Boolean] whether the `def|defs` node is a modifier or not. + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#187 + def def_modifier?(node = T.unsafe(nil)); end + + # Checks whether the dispatched method uses a dot to connect the + # receiver and the method name. + # + # This is useful for comparison operators, which can be called either + # with or without a dot, i.e. `foo == bar` or `foo.== bar`. + # + # @return [Boolean] whether the method was called with a connecting dot + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#119 + def dot?; end + + # Checks whether the dispatched method uses a double colon to connect the + # receiver and the method name. + # + # @return [Boolean] whether the method was called with a connecting dot + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#127 + def double_colon?; end + + # Checks whether the method dispatch is the implicit form of `#call`, + # e.g. `foo.(bar)`. + # + # @return [Boolean] whether the method is the implicit form of `#call` + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#160 + def implicit_call?; end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#257 + def in_macro_scope?(param0 = T.unsafe(nil)); end + + # Checks whether this is a lambda. Some versions of parser parses + # non-literal lambdas as a method send. + # + # @return [Boolean] whether this method is a lambda + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213 + def lambda?; end + + # Checks whether this is a lambda literal (stabby lambda.) + # + # @example + # + # -> (foo) { bar } + # @return [Boolean] whether this method is a lambda literal + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224 + def lambda_literal?; end + + # Checks whether the dispatched method is a macro method. A macro method + # is defined as a method that sits in a class, module, or block body and + # has an implicit receiver. + # + # @note This does not include DSLs that use nested blocks, like RSpec + # @return [Boolean] whether the dispatched method is a macro method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#57 + def macro?; end + + # The name of the dispatched method as a symbol. + # + # @return [Symbol] the name of the dispatched method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#27 + def method_name; end + + # Checks whether the dispatched method is a non-bare access modifier that + # affects only the method it receives. + # + # @return [Boolean] whether the dispatched method is a non-bare + # access modifier + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#82 + def non_bare_access_modifier?; end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#283 + def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end + + # The receiving node of the method dispatch. + # + # @return [Node, nil] the receiver of the dispatched method or `nil` + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#20 + def receiver; end + + # Checks whether the dispatched method uses a safe navigation operator to + # connect the receiver and the method name. + # + # @return [Boolean] whether the method was called with a connecting dot + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#135 + def safe_navigation?; end + + # The source range for the method name or keyword that dispatches this call. + # + # @return [Parser::Source::Range] the source range for the method name or keyword + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#34 + def selector; end + + # Checks whether the *explicit* receiver of this method dispatch is + # `self`. + # + # @return [Boolean] whether the receiver of this method dispatch is `self` + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#143 + def self_receiver?; end + + # Checks whether the dispatched method is a setter method. + # + # @return [Boolean] whether the dispatched method is a setter + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 + def setter_method?; end + + # Checks whether the dispatched method is a bare `private` or `protected` + # access modifier that affects all methods defined after the macro. + # + # @return [Boolean] whether the dispatched method is a bare + # `private` or `protected` access modifier + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#91 + def special_modifier?; end + + # Checks whether this is a unary operation. + # + # @example + # + # -foo + # @return [Boolean] whether this method is a unary operation + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#235 + def unary_operation?; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#12 +RuboCop::AST::MethodDispatchNode::ARITHMETIC_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#14 +RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array) + +# Common predicates for nodes that reference method identifiers: +# `send`, `csend`, `def`, `defs`, `super`, `zsuper` +# +# @note this mixin expects `#method_name` and `#receiver` to be implemented +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#9 +module RuboCop::AST::MethodIdentifierPredicates + # Checks whether the method is an assignment method. + # + # @return [Boolean] whether the method is an assignment + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#142 + def assignment_method?; end + + # Checks whether the method is a bang method. + # + # @return [Boolean] whether the method is a bang method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#171 + def bang_method?; end + + # Checks whether the method is a camel case method, + # e.g. `Integer()`. + # + # @return [Boolean] whether the method is a camel case method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#179 + def camel_case_method?; end + + # Checks whether the method is a comparison method. + # + # @return [Boolean] whether the method is a comparison + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#135 + def comparison_method?; end + + # Checks whether the *explicit* receiver of node is a `const` node. + # + # @return [Boolean] whether the receiver of this node is a `const` node + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#193 + def const_receiver?; end + + # Checks whether the method is an Enumerable method. + # + # @return [Boolean] whether the method is an Enumerable method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#157 + def enumerable_method?; end + + # Checks whether the method is an enumerator method. + # + # @return [Boolean] whether the method is an enumerator + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#149 + def enumerator_method?; end + + # Checks whether the method name matches the argument. + # + # @param name [Symbol, String] the method name to check for + # @return [Boolean] whether the method name matches the argument + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#79 + def method?(name); end + + # Checks whether this is a negation method, i.e. `!` or keyword `not`. + # + # @return [Boolean] whether this method is a negation method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#200 + def negation_method?; end + + # Checks whether the method is a nonmutating Array method. + # + # @return [Boolean] whether the method is a nonmutating Array method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#114 + def nonmutating_array_method?; end + + # Checks whether the method is a nonmutating binary operator method. + # + # @return [Boolean] whether the method is a nonmutating binary operator method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#93 + def nonmutating_binary_operator_method?; end + + # Checks whether the method is a nonmutating Hash method. + # + # @return [Boolean] whether the method is a nonmutating Hash method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#121 + def nonmutating_hash_method?; end + + # Checks whether the method is a nonmutating operator method. + # + # @return [Boolean] whether the method is a nonmutating operator method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#107 + def nonmutating_operator_method?; end + + # Checks whether the method is a nonmutating String method. + # + # @return [Boolean] whether the method is a nonmutating String method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#128 + def nonmutating_string_method?; end + + # Checks whether the method is a nonmutating unary operator method. + # + # @return [Boolean] whether the method is a nonmutating unary operator method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#100 + def nonmutating_unary_operator_method?; end + + # Checks whether the method is an operator method. + # + # @return [Boolean] whether the method is an operator + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#86 + def operator_method?; end + + # Checks whether the method is a predicate method. + # + # @return [Boolean] whether the method is a predicate method + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#164 + def predicate_method?; end + + # Checks whether this is a prefix bang method, e.g. `!foo`. + # + # @return [Boolean] whether this method is a prefix bang + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#214 + def prefix_bang?; end + + # Checks whether this is a prefix not method, e.g. `not foo`. + # + # @return [Boolean] whether this method is a prefix not + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#207 + def prefix_not?; end + + # Checks whether the *explicit* receiver of this node is `self`. + # + # @return [Boolean] whether the receiver of this node is `self` + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#186 + def self_receiver?; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#16 +RuboCop::AST::MethodIdentifierPredicates::ENUMERABLE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#10 +RuboCop::AST::MethodIdentifierPredicates::ENUMERATOR_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#32 +RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#24 +RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_BINARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#48 +RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#28 +RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#59 +RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_STRING_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#26 +RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) + +# http://phrogz.net/programmingruby/language.html#table_18.4 +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20 +RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set) + +# Common functionality for nodes that can be used as modifiers: +# `if`, `while`, `until` +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#7 +module RuboCop::AST::ModifierNode + # Checks whether the node is in a modifier form, i.e. a condition + # trailing behind an expression. + # + # @return [Boolean] whether the node is a modifier + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#12 + def modifier_form?; end +end + +# A node extension for `module` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `module` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#8 +class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node + # The body of this `module` node. + # + # @return [Node, nil] the body of the module + # + # source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#19 + def body; end + + # The identifier for this `module` node. + # + # @return [Node] the identifier of the module + # + # source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#12 + def identifier; end +end + +# A node extension for `next` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `next` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/next_node.rb#8 +class RuboCop::AST::NextNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::WrappedArguments +end + +# `RuboCop::AST::Node` is a subclass of `Parser::AST::Node`. It provides +# access to parent nodes and an object-oriented way to traverse an AST with +# the power of `Enumerable`. +# +# It has predicate methods for every node type, like this: +# +# @example +# node.send_type? # Equivalent to: `node.type == :send` +# node.op_asgn_type? # Equivalent to: `node.type == :op_asgn` +# +# # Non-word characters (other than a-zA-Z0-9_) in type names are omitted. +# node.defined_type? # Equivalent to: `node.type == :defined?` +# +# # Find the first lvar node under the receiver node. +# lvar_node = node.each_descendant.find(&:lvar_type?) +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#21 +class RuboCop::AST::Node < ::Parser::AST::Node + include ::RuboCop::AST::Sexp + include ::RuboCop::AST::Descendence + extend ::RuboCop::AST::NodePattern::Macros + + # @return [Node] a new instance of Node + # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#92 + def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def __ENCODING___type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def __FILE___type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def __LINE___type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def alias_type?; end + + # Returns an array of ancestor nodes. + # This is a shorthand for `node.each_ancestor.to_a`. + # + # @return [Array<Node>] an array of ancestor nodes + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#247 + def ancestors; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def and_asgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def and_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def arg_expr_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def arg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def args_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#464 + def argument?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#468 + def argument_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def array_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def array_pattern_with_tail_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def array_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#416 + def assignment?; end + + # Some cops treat the shovel operator as a kind of assignment. + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#355 + def assignment_or_similar?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def back_ref_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#420 + def basic_conditional?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#363 + def basic_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def begin_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def block_pass_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def block_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def blockarg_expr_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def blockarg_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#472 + def boolean_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def break_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#456 + def call_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def case_match_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def case_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def casgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def cbase_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#460 + def chained?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#512 + def class_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#530 + def class_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def class_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#144 + def complete!; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#149 + def complete?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def complex_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#424 + def conditional?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#293 + def const_name; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def const_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def const_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def csend_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def cvar_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def cvasgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def def_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#314 + def defined_module; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#319 + def defined_module_name; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def defined_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def defs_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def dstr_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def dsym_type?; end + + # Calls the given block for each ancestor node from parent to root. + # If no block is given, an `Enumerator` is returned. + # + # @overload each_ancestor + # @overload each_ancestor + # @overload each_ancestor + # @return [self] if a block is given + # @return [Enumerator] if no block is given + # @yieldparam node [Node] each ancestor node + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#235 + def each_ancestor(*types, &block); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def eflipflop_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def empty_else_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#349 + def empty_source?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def ensure_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#408 + def equals_asgn?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def erange_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def false_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#371 + def falsey_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def find_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#261 + def first_line; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def float_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def for_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forward_arg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forward_args_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forwarded_args_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forwarded_kwrestarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forwarded_restarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#509 + def global_const?(param0 = T.unsafe(nil), param1); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#484 + def guard_clause?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def gvar_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def gvasgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def hash_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def hash_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def ident_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def if_guard_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def if_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def iflipflop_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#379 + def immutable_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def in_match_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def in_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def index_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def indexasgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def int_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def irange_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def ivar_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def ivasgn_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#437 + def keyword?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwargs_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwbegin_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwnilarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwoptarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwrestarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def kwsplat_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#503 + def lambda?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#506 + def lambda_or_proc?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def lambda_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#265 + def last_line; end + + # Use is discouraged, this is a potentially slow method and can lead + # to even slower algorithms + # + # @return [Node, nil] the left (aka previous) sibling + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#187 + def left_sibling; end + + # Use is discouraged, this is a potentially slow method and can lead + # to even slower algorithms + # + # @return [Array<Node>] the left (aka previous) siblings + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#197 + def left_siblings; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#269 + def line_count; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#359 + def literal?; end + + # NOTE: `loop { }` is a normal method call and thus not a loop keyword. + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#433 + def loop_keyword?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def lvar_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def lvasgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def masgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_alt_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_as_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_current_line_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#491 + def match_guard_clause?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_nil_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_pattern_p_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_rest_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_var_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_with_lvasgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def match_with_trailing_comma_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def mlhs_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#537 + def module_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def module_type?; end + + # Predicates + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#341 + def multiline?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#375 + def mutable_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#671 + def new_class_or_module_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def next_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def nil_type?; end + + # Common destructuring method. This can be used to normalize + # destructuring for different variations of the node. + # Some node types override this with their own custom + # destructuring method. + # + # @return [Array<Node>] the different parts of the ndde + # + # source://ast/2.4.2/lib/ast/node.rb#56 + def node_parts; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#275 + def nonempty_line_count; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def not_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def nth_ref_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def numargs_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def numblock_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#476 + def numeric_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def objc_kwarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def objc_restarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def objc_varargs_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def op_asgn_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#448 + def operator_keyword?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def optarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def or_asgn_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def or_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def pair_type?; end + + # Returns the parent node, or `nil` if the receiver is a root node. + # + # @return [Node, nil] the parent node or `nil` + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#126 + def parent; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#135 + def parent?; end + + # Searching the AST + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#325 + def parent_module_name; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#452 + def parenthesized_call?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def pin_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#428 + def post_condition_loop?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def postexe_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def preexe_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#496 + def proc?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def procarg0_type?; end + + # Some expressions are evaluated for their value, some for their side + # effects, and some for both. + # If we know that expressions are useful only for their return values, + # and have no side effects, that means we can reorder them, change the + # number of times they are evaluated, or replace them with other + # expressions which are equivalent in value. + # So, is evaluation of this node free of side effects? + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#582 + def pure?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#480 + def range_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def rational_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#286 + def receiver(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#386 + def recursive_basic_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#386 + def recursive_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def redo_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#404 + def reference?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def regexp_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def regopt_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def resbody_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def rescue_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def restarg_expr_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def restarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def retry_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def return_type?; end + + # Use is discouraged, this is a potentially slow method and can lead + # to even slower algorithms + # + # @return [Node, nil] the right (aka next) sibling + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#178 + def right_sibling; end + + # Use is discouraged, this is a potentially slow method and can lead + # to even slower algorithms + # + # @return [Array<Node>] the right (aka next) siblings + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#206 + def right_siblings; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#140 + def root?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def sclass_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def self_type?; end + + # Most nodes are of 'send' type, so this method is defined + # separately to make this check as fast as possible. + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#119 + def send_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def shadowarg_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#412 + def shorthand_asgn?; end + + # Returns the index of the receiver node in its siblings. (Sibling index + # uses zero based numbering.) + # Use is discouraged, this is a potentially slow method. + # + # @return [Integer, nil] the index of the receiver node in its siblings + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#171 + def sibling_index; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#345 + def single_line?; end + + # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}` + # + # @return [String, nil] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#253 + def source; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#279 + def source_length; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#257 + def source_range; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#444 + def special_keyword?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def splat_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#291 + def str_content(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def str_type?; end + + # @deprecated Use `:class_constructor?` + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#525 + def struct_constructor?(param0 = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def super_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def sym_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def true_type?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#367 + def truthy_literal?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def undef_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def unless_guard_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def until_post_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def until_type?; end + + # Override `AST::Node#updated` so that `AST::Processor` does not try to + # mutate our ASTs. Since we keep references from children to parents and + # not just the other way around, we cannot update an AST and share + # identical subtrees. Rather, the entire AST must be copied any time any + # part of it is changed. + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#160 + def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end + + # Some expressions are evaluated for their value, some for their side + # effects, and some for both + # If we know that an expression is useful only for its side effects, that + # means we can transform it in ways which preserve the side effects, but + # change the return value + # So, does the return value of this node matter? If we changed it to + # `(...; nil)`, might that affect anything? + # + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#551 + def value_used?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#400 + def variable?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def when_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def while_post_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def while_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def xstr_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def yield_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def zsuper_type?; end + + protected + + # source://rubocop-ast//lib/rubocop/ast/node.rb#130 + def parent=(node); end + + private + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#610 + def begin_value_used?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#621 + def case_if_value_used?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#305 + def defined_module0(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#615 + def for_value_used?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#657 + def parent_module_name_for_block(ancestor); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#645 + def parent_module_name_for_sclass(sclass_node); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#632 + def parent_module_name_part(node); end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#600 + def visit_ancestors(types); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#627 + def while_until_value_used?; end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#80 +RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#55 +RuboCop::AST::Node::ASSIGNMENTS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#58 +RuboCop::AST::Node::BASIC_CONDITIONALS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#42 +RuboCop::AST::Node::BASIC_LITERALS = T.let(T.unsafe(nil), Set) + +# <=> isn't included here, because it doesn't return a boolean. +# +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#28 +RuboCop::AST::Node::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#39 +RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#60 +RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node.rb#87 +RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array) + +# source://rubocop-ast//lib/rubocop/ast/node.rb#88 +RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#50 +RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#35 +RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#47 +RuboCop::AST::Node::IMMUTABLE_LITERALS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#70 +RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#37 +RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node.rb#83 +RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node.rb#84 +RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#64 +RuboCop::AST::Node::LOOP_TYPES = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#44 +RuboCop::AST::Node::MUTABLE_LITERALS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#76 +RuboCop::AST::Node::OPERATOR_KEYWORDS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#62 +RuboCop::AST::Node::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#68 +RuboCop::AST::Node::REFERENCES = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#53 +RuboCop::AST::Node::SHORTHAND_ASSIGNMENTS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#78 +RuboCop::AST::Node::SPECIAL_KEYWORDS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#31 +RuboCop::AST::Node::TRUTHY_LITERALS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node.rb#66 +RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set) + +# This class performs a pattern-matching operation on an AST node. +# +# Detailed syntax: /docs/modules/ROOT/pages/node_pattern.adoc +# +# Initialize a new `NodePattern` with `NodePattern.new(pattern_string)`, then +# pass an AST node to `NodePattern#match`. Alternatively, use one of the class +# macros in `NodePattern::Macros` to define your own pattern-matching method. +# +# If the match fails, `nil` will be returned. If the match succeeds, the +# return value depends on whether a block was provided to `#match`, and +# whether the pattern contained any "captures" (values which are extracted +# from a matching AST.) +# +# - With block: #match yields the captures (if any) and passes the return +# value of the block through. +# - With no block, but one capture: the capture is returned. +# - With no block, but multiple captures: captures are returned as an array. +# - With no block and no captures: #match returns `true`. +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5 +class RuboCop::AST::NodePattern + include ::RuboCop::AST::NodePattern::MethodDefiner + extend ::Forwardable + + # @return [NodePattern] a new instance of NodePattern + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#77 + def initialize(str, compiler: T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 + def ==(other); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#107 + def as_json(_options = T.unsafe(nil)); end + + # Returns the value of attribute ast. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 + def ast; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def captures(*args, **_arg1, &block); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111 + def encode_with(coder); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 + def eql?(other); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119 + def freeze; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#115 + def init_with(coder); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#103 + def marshal_dump; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99 + def marshal_load(pattern); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#85 + def match(*args, **rest, &block); end + + # Returns the value of attribute match_code. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 + def match_code; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def named_parameters(*args, **_arg1, &block); end + + # Returns the value of attribute pattern. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 + def pattern; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def positional_parameters(*args, **_arg1, &block); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95 + def to_s; end + + class << self + # Yields its argument and any descendants, depth-first. + # + # @yield [element] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#59 + def descend(element, &block); end + end +end + +# Responsible to build the AST nodes for `NodePattern` +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#10 +class RuboCop::AST::NodePattern::Builder + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#17 + def emit_atom(type, value); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#29 + def emit_call(type, selector, args = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#11 + def emit_capture(capture_token, node); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#25 + def emit_list(type, _begin, children, _end); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#41 + def emit_subsequence(node_list); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#21 + def emit_unary_op(type, _operator = T.unsafe(nil), *children); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#34 + def emit_union(begin_t, pattern_lists, end_t); end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#53 + def n(type, *args); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#49 + def optimizable_as_set?(children); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#57 + def union_children(pattern_lists); end +end + +# A NodePattern comment, simplified version of ::Parser::Source::Comment +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#7 +class RuboCop::AST::NodePattern::Comment + # @param range [Parser::Source::Range] + # @return [Comment] a new instance of Comment + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#14 + def initialize(range); end + + # Compares comments. Two comments are equal if they + # correspond to the same source range. + # + # @param other [Object] + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#31 + def ==(other); end + + # @return [String] a human-readable representation of this comment + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#39 + def inspect; end + + # Returns the value of attribute location. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 + def loc; end + + # Returns the value of attribute location. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 + def location; end + + # @return [String] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#20 + def text; end +end + +# The top-level compiler holding the global state +# Defers work to its subcompilers +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11 +class RuboCop::AST::NodePattern::Compiler + extend ::Forwardable + + # @return [Compiler] a new instance of Compiler + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15 + def initialize; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def bind(*args, **_arg1, &block); end + + # Returns the value of attribute binding. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + def binding; end + + # Returns the value of attribute captures. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + def captures; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#42 + def compile_as_atom(node); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#46 + def compile_as_node_pattern(node, **options); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#50 + def compile_sequence(sequence, var:); end + + # Enumerates `enum` while keeping track of state across + # union branches (captures and unification). + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#38 + def each_union(enum, &block); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#74 + def freeze; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#31 + def named_parameter(name); end + + # Returns the value of attribute named_parameters. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + def named_parameters; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#70 + def next_capture; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#54 + def parser; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#26 + def positional_parameter(number); end + + # Returns the value of attribute positional_parameters. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + def positional_parameters; end + + # Utilities + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#60 + def with_temp_variables(*names, &block); end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#81 + def enforce_same_captures(enum); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#96 + def new_capture; end +end + +# Generates code that evaluates to a value (Ruby object) +# This value responds to `===`. +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#12 +class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#28 + def visit_const; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32 + def visit_named_parameter; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + def visit_number; end + + # Assumes other types are node patterns. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#46 + def visit_other_type; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36 + def visit_positional_parameter; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + def visit_regexp; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40 + def visit_set; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + def visit_string; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + def visit_symbol; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#15 + def visit_unify; end +end + +# Holds the list of bound variable names +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#8 +class RuboCop::AST::NodePattern::Compiler::Binding + # @return [Binding] a new instance of Binding + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#9 + def initialize; end + + # Yields the first time a given name is bound + # + # @return [String] bound variable name + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16 + def bind(name); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#30 + def union_bind(enum); end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#69 + def forbid(names); end +end + +# Variant of the Compiler with tracing information for nodes +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#10 +class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler + # @return [Debug] a new instance of Debug + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123 + def initialize; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def comments(*args, **_arg1, &block); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128 + def named_parameters; end + + # Returns the value of attribute node_ids. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#33 + def node_ids; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132 + def parser; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def tokens(*args, **_arg1, &block); end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36 +class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer + # @api private + # @return [Colorizer] a new instance of Colorizer + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 + def initialize(pattern, compiler: T.unsafe(nil)); end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + def compiler; end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + def node_pattern; end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + def pattern; end + + # @api private + # @return [Node] the Ruby AST + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#103 + def test(ruby, trace: T.unsafe(nil)); end + + private + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#111 + def ruby_ast(ruby); end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#116 + def ruby_parser; end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#37 +RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#92 +RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug + +# Result of a NodePattern run against a particular AST +# Consider constructor is private +# +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 +class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct + # @api private + # @return [Hash] a map for {character_position => color} + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#56 + def color_map(color_scheme = T.unsafe(nil)); end + + # @api private + # @return [String] a Rainbow colorized version of ruby + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 + def colorize(color_scheme = T.unsafe(nil)); end + + # Returns the value of attribute colorizer + # + # @return [Object] the current value of colorizer + def colorizer; end + + # Sets the attribute colorizer + # + # @param value [Object] the value to set the attribute colorizer to. + # @return [Object] the newly set value + def colorizer=(_); end + + # @api private + # @return [Hash] a map for {node => matched?}, depth-first + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#66 + def match_map; end + + # @api private + # @return [Boolean] a value of `Trace#matched?` or `:not_visitable` + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#74 + def matched?(node); end + + # Returns the value of attribute returned + # + # @return [Object] the current value of returned + def returned; end + + # Sets the attribute returned + # + # @param value [Object] the value to set the attribute returned to. + # @return [Object] the newly set value + def returned=(_); end + + # Returns the value of attribute ruby_ast + # + # @return [Object] the current value of ruby_ast + def ruby_ast; end + + # Sets the attribute ruby_ast + # + # @param value [Object] the value to set the attribute ruby_ast to. + # @return [Object] the newly set value + def ruby_ast=(_); end + + # Returns the value of attribute trace + # + # @return [Object] the current value of trace + def trace; end + + # Sets the attribute trace + # + # @param value [Object] the value to set the attribute trace to. + # @return [Object] the newly set value + def trace=(_); end + + private + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#87 + def ast; end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#81 + def color_map_for(node, color); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139 +module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#140 + def do_compile; end + + private + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#150 + def node_id; end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#146 + def tracer(kind); end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156 +class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler + include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#161 +class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler + include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler +end + +# Compiled node pattern requires a named parameter `trace`, +# which should be an instance of this class +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#13 +class RuboCop::AST::NodePattern::Compiler::Debug::Trace + # @return [Trace] a new instance of Trace + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#14 + def initialize; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#18 + def enter(node_id); end + + # return nil (not visited), false (not matched) or true (matched) + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#28 + def matched?(node_id); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#23 + def success(node_id); end +end + +# Compiles code that evalues to true or false +# for a given value `var` (typically a RuboCop::AST::Node) +# or it's `node.type` if `seq_head` is true +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#13 +class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler + # @return [NodePatternSubcompiler] a new instance of NodePatternSubcompiler + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#16 + def initialize(compiler, var: T.unsafe(nil), access: T.unsafe(nil), seq_head: T.unsafe(nil)); end + + # Returns the value of attribute access. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 + def access; end + + # Returns the value of attribute seq_head. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 + def seq_head; end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#119 + def access_element; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#123 + def access_node; end + + # @param [Array<Node>, nil] + # @return [String, nil] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#113 + def compile_args(arg_list, first: T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#129 + def compile_guard_clause; end + + # Compiling helpers + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#107 + def compile_value_match(value); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#133 + def multiple_access(kind); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#30 + def visit_ascend; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#58 + def visit_capture; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#37 + def visit_descend; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#84 + def visit_function_call; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#73 + def visit_intersection; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#25 + def visit_negation; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#88 + def visit_node_type; end + + # Assumes other types are atoms. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#100 + def visit_other_type; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#80 + def visit_predicate; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#92 + def visit_sequence; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#49 + def visit_unify; end + + # Lists + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#64 + def visit_union; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#45 + def visit_wildcard; end +end + +# Compiles terms within a sequence to code that evalues to true or false. +# Compilation of the nodes that can match only a single term is deferred to +# `NodePatternSubcompiler`; only nodes that can match multiple terms are +# compiled here. +# Assumes the given `var` is a `::RuboCop::AST::Node` +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17 +class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler + # Calls `compile_sequence`; the actual `compile` method + # will be used for the different terms of the sequence. + # The only case of re-entrant call to `compile` is `visit_capture` + # + # @return [SequenceSubcompiler] a new instance of SequenceSubcompiler + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#25 + def initialize(compiler, sequence:, var:); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#31 + def compile_sequence; end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 + def in_sync; end + + protected + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#226 + def compile_terms(children = T.unsafe(nil), last_arity = T.unsafe(nil)); end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 + def cur_index; end + + # yield `sync_code` iff not already in sync + # + # @yield [code] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#242 + def sync; end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + def compile(node); end + + # Compilation helpers + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#165 + def compile_and_advance(term); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#128 + def compile_any_order_branches(matched_var); end + + # @return [Array<String>] Else code, and init code (if any) + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#137 + def compile_any_order_else; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#180 + def compile_captured_repetition(child_code, child_captures); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#119 + def compile_case(when_branches, else_code); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#361 + def compile_child_nb_guard(arity_range); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#319 + def compile_cur_index; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#325 + def compile_index(cur = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#353 + def compile_loop(term); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#347 + def compile_loop_advance(to = T.unsafe(nil)); end + + # Assumes `@cur_index` is already updated + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#198 + def compile_matched(kind); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#304 + def compile_max_matched; end + + # @return [String] code that evaluates to `false` if the matched arity is too small + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#270 + def compile_min_check; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#285 + def compile_remaining; end + + # @return [Hash] of {subcompiler => code} + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#373 + def compile_union_forks; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#313 + def empty_loop; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#214 + def handle_prev; end + + # Modifies in place `forks` + # Syncs our state + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#400 + def merge_forks!(forks); end + + # Modifies in place `forks` to insure that `cur_{child|index}_var` are ok + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#384 + def preserve_union_start(forks); end + + # E.g. For sequence `(_ _? <_ _>)`, arities are: 1, 0..1, 2 + # and remaining arities are: 3..4, 2..3, 2..2, 0..0 + # + # @return [Array<Range>] total arities (as Ranges) of remaining children nodes + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#259 + def remaining_arities(children, last_arity); end + + # returns truthy iff `@cur_index` switched to relative from end mode (i.e. < 0) + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#341 + def use_index_from_end; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#88 + def visit_any_order; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#150 + def visit_capture; end + + # Single node patterns are all handled here + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#62 + def visit_other_type; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#78 + def visit_repetition; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#159 + def visit_rest; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#104 + def visit_union; end + + # NOTE: assumes `@cur_index != :seq_head`. Node types using `within_loop` must + # have `def in_sequence_head; :raise; end` + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#333 + def within_loop; end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18 +RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#19 +RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.unsafe(nil), Proc) + +# Base class for subcompilers +# Implements visitor pattern +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#12 +class RuboCop::AST::NodePattern::Compiler::Subcompiler + # @return [Subcompiler] a new instance of Subcompiler + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#15 + def initialize(compiler); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + def compile(node); end + + # Returns the value of attribute compiler. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#13 + def compiler; end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#34 + def do_compile; end + + # Returns the value of attribute node. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#32 + def node; end + + class << self + # @private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#47 + def inherited(base); end + + # @private + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#42 + def method_added(method); end + + # Returns the value of attribute registry. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#40 + def registry; end + end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#53 +class RuboCop::AST::NodePattern::Invalid < ::StandardError; end + +# Lexer class for `NodePattern` +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#18 +class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex + # @return [Lexer] a new instance of Lexer + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#31 + def initialize(source); end + + # Returns the value of attribute comments. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 + def comments; end + + # Returns the value of attribute source_buffer. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 + def source_buffer; end + + # Returns the value of attribute tokens. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 + def tokens; end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#60 + def do_parse; end + + # @return [token] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#40 + def emit(type); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#48 + def emit_comment; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#52 + def emit_regexp; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#64 + def token(type, value); end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#19 +RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::ScanError + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#21 +RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash) + +# The generated lexer RuboCop::AST::NodePattern::LexerRex +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#23 +class RuboCop::AST::NodePattern::LexerRex + # Yields on the current action. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#69 + def action; end + + # The file name / path + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#43 + def filename; end + + # The file name / path + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#43 + def filename=(_arg0); end + + # The current location in the parse. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104 + def location; end + + # The StringScanner for this lexer. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + def match; end + + # The match groups for the current scan. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#60 + def matches; end + + # Lex the next token. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113 + def next_token; end + + # Parse the given string. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84 + def parse(str); end + + # Read in and parse the file at +path+. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94 + def parse_file(path); end + + # The current scanner class. Must be overridden in subclasses. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77 + def scanner_class; end + + # The StringScanner for this lexer. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + def ss; end + + # The StringScanner for this lexer. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + def ss=(_arg0); end + + # The current lexical state. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#53 + def state; end + + # The current lexical state. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#53 + def state=(_arg0); end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#31 +RuboCop::AST::NodePattern::LexerRex::CALL = T.let(T.unsafe(nil), Regexp) + +# :stopdoc: +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#27 +RuboCop::AST::NodePattern::LexerRex::CONST_NAME = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#29 +RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp) + +# :startdoc: +# :stopdoc: +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#36 +class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#30 +RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#33 +RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#32 +RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#28 +RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#37 +class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end + +# Helpers for defining methods based on a pattern string +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#28 +module RuboCop::AST::NodePattern::Macros + # Define a method which applies a pattern to an AST node + # + # The new method will return nil if the node does not match. + # If the node matches, and a block is provided, the new method will + # yield to the block (passing any captures as block arguments). + # If the node matches, and no block is provided, the new method will + # return the captures, or `true` if there were none. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#36 + def def_node_matcher(method_name, pattern_str, **keyword_defaults); end + + # Define a method which recurses over the descendants of an AST node, + # checking whether any of them match the provided pattern + # + # If the method name ends with '?', the new method will return `true` + # as soon as it finds a descendant which matches. Otherwise, it will + # yield all descendants which match. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#46 + def def_node_search(method_name, pattern_str, **keyword_defaults); end +end + +# Functionality to turn `match_code` into methods/lambda +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#7 +module RuboCop::AST::NodePattern::MethodDefiner + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#37 + def as_lambda; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#27 + def compile_as_lambda; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#8 + def def_node_matcher(base, method_name, **defaults); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#21 + def def_node_search(base, method_name, **defaults); end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#139 + def compile_init; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#50 + def def_helper(base, method_name, **defaults); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#114 + def emit_keyword_list(forwarding: T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#132 + def emit_lambda_code; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#125 + def emit_method_code; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#63 + def emit_node_search(method_name); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#74 + def emit_node_search_body(method_name, prelude:, on_match:); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#110 + def emit_param_list; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#119 + def emit_params(*first, forwarding: T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#100 + def emit_retval; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#89 + def emit_yield_capture(when_no_capture = T.unsafe(nil), yield_with: T.unsafe(nil)); end + + # This method minimizes the closure for our method + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#44 + def wrapping_block(method_name, **defaults); end +end + +# Base class for AST Nodes of a `NodePattern` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7 +class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node + include ::RuboCop::AST::Descendence + extend ::Forwardable + + # Note: `arity.end` may be `Float::INFINITY` + # + # @return [Integer, Range] An Integer for fixed length terms, otherwise a Range. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#29 + def arity; end + + # @return [Range] arity as a Range + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#69 + def arity_range; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#23 + def capture?; end + + # @return [Node] most nodes have only one child + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#48 + def child; end + + # @return [Array<Node>] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#43 + def children_nodes; end + + # @return [Array<Node>, nil] replace node with result, or `nil` if no change requested. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#34 + def in_sequence_head; end + + # that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`) + # + # @return [Boolean] returns true for nodes having a Ruby literal equivalent + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#64 + def matches_within_set?; end + + # @return [Integer] nb of captures of that node and its descendants + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#53 + def nb_captures; end + + # To be overridden by subclasses + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#19 + def rest?; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78 + def source_range; end + + # @return [Boolean] returns whether it matches a variable number of elements + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#58 + def variadic?; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#74 + def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end +end + +# Node class for `<int str ...>` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#180 +class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node + include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#198 + def arity; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190 + def ends_with_rest?; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194 + def rest_node; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186 + def term_nodes; end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#183 +RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) + +# Node class for `$something` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97 +class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node + # source://forwardable/1.3.3/forwardable.rb#231 + def arity(*args, **_arg1, &block); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101 + def capture?; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#109 + def in_sequence_head; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105 + def nb_captures; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def rest?(*args, **_arg1, &block); end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86 +module RuboCop::AST::NodePattern::Node::ForbidInSeqHead + # @raise [NodePattern::Invalid] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#87 + def in_sequence_head; end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#140 +RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82 +RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash) + +# Registry +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#250 +RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#12 +RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set) + +# Node class for `predicate?(:arg, :list)` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131 +class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136 + def arg_list; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132 + def method_name; end +end + +# Node class for `int+` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#143 +class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node + include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#156 + def arity; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146 + def operator; end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#150 +RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash) + +# Node class for `...` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162 +class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170 + def arity; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#174 + def in_sequence_head; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166 + def rest?; end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#163 +RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range) + +# Node class for `(type first second ...)` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#118 +class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node + include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead + + # @return [Sequence] a new instance of Sequence + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#121 + def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end +end + +# A list (potentially empty) of nodes; part of a Union +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#206 +class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node + include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#209 + def arity; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#214 + def in_sequence_head; end +end + +# Node class for `{ ... }` +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224 +class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#225 + def arity; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#232 + def in_sequence_head; end +end + +# Parser for NodePattern +# Note: class reopened in `parser.racc` +# +# Doc on how this fits in the compiling process: +# /docs/modules/ROOT/pages/node_pattern.adoc +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12 +class RuboCop::AST::NodePattern::Parser < ::Racc::Parser + extend ::Forwardable + + # @return [Parser] a new instance of Parser + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19 + def initialize(builder = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#333 + def _reduce_10(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#337 + def _reduce_11(val, _values); end + + # reduce 12 omitted + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#343 + def _reduce_13(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#347 + def _reduce_14(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#351 + def _reduce_15(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#355 + def _reduce_16(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#359 + def _reduce_17(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#363 + def _reduce_18(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#367 + def _reduce_19(val, _values); end + + # reduce 1 omitted + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#301 + def _reduce_2(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#371 + def _reduce_20(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#375 + def _reduce_21(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#379 + def _reduce_22(val, _values); end + + # reduce 24 omitted + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#387 + def _reduce_25(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#393 + def _reduce_26(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#305 + def _reduce_3(val, _values); end + + # reduce 32 omitted + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#413 + def _reduce_33(val, _values); end + + # reduce 36 omitted + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#423 + def _reduce_37(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#427 + def _reduce_38(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#431 + def _reduce_39(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#309 + def _reduce_4(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#435 + def _reduce_40(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#439 + def _reduce_41(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#443 + def _reduce_42(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#447 + def _reduce_43(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#451 + def _reduce_44(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#455 + def _reduce_45(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#459 + def _reduce_46(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#313 + def _reduce_5(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#317 + def _reduce_6(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#321 + def _reduce_7(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#325 + def _reduce_8(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#329 + def _reduce_9(val, _values); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463 + def _reduce_none(val, _values); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_atom(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_call(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_capture(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_list(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_unary_op(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def emit_union(*args, **_arg1, &block); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40 + def inspect; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def next_token(*args, **_arg1, &block); end + + # (Similar API to `parser` gem) + # Parses a source and returns the AST. + # + # @param source_buffer [Parser::Source::Buffer, String] The source buffer to parse. + # @return [NodePattern::Node] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#31 + def parse(source); end + + private + + # @raise [NodePattern::Invalid] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#50 + def enforce_unary(node); end + + # Overrides Racc::Parser's method: + # + # @raise [NodePattern::Invalid] + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#59 + def on_error(token, val, _vstack); end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#16 +RuboCop::AST::NodePattern::Parser::Builder = RuboCop::AST::NodePattern::Builder + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#17 +RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227 +RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#293 +RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#243 +RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) + +# Overrides Parser to use `WithMeta` variants and provide additional methods +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#8 +class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser + # Returns the value of attribute comments. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#98 + def comments; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#100 + def do_parse; end + + # Returns the value of attribute tokens. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#98 + def tokens; end +end + +# Overrides Builder to emit nodes with locations +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#39 +class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#40 + def emit_atom(type, token); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#61 + def emit_call(type, selector_t, args = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#55 + def emit_list(type, begin_t, children, end_t); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#49 + def emit_unary_op(type, operator_t = T.unsafe(nil), *children); end + + private + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#81 + def join_exprs(left_expr, right_expr); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#75 + def loc(token_or_range); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#71 + def n(type, children, source_map); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#85 + def source_map(token_or_range, begin_t: T.unsafe(nil), end_t: T.unsafe(nil), operator_t: T.unsafe(nil), selector_t: T.unsafe(nil)); end +end + +# Overrides Lexer to token locations and comments +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#10 +class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer + # @return [Lexer] a new instance of Lexer + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#13 + def initialize(str_or_buffer); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#27 + def emit_comment; end + + # @return [::Parser::Source::Range] last match's position + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#33 + def pos; end + + # Returns the value of attribute source_buffer. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#11 + def source_buffer; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#23 + def token(type, value); end +end + +# Utility to assign a set of values to a constant +# +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#7 +module RuboCop::AST::NodePattern::Sets + class << self + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#31 + def [](set); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#15 + def name(set); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#22 + def uniq(name); end + end +end + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#14 +RuboCop::AST::NodePattern::Sets::MAX = T.let(T.unsafe(nil), Integer) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#8 +RuboCop::AST::NodePattern::Sets::REGISTRY = T.let(T.unsafe(nil), Hash) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_0_1 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_INSTANCE_EVAL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ENV = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FILE_DIR = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FILE_FILETEST = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_GETHOSTBYADDR_GETHOSTBYNAME = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_LENGTH_SIZE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION_RUBY2_KEYWORDS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_NEW_COMPILE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_EMPTY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_READ_BINREAD = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET__EQUAL_EQL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___2 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___3 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___4 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___5 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___6 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET____ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET____2 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET____ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET____ETC_4 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55 +RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String) + +# Common functionality for primitive numeric nodes: `int`, `float`, ... +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6 +module RuboCop::AST::NumericNode + # Checks whether this is literal has a sign. + # + # @example + # + # +42 + # @return [Boolean] whether this literal has a sign. + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#17 + def sign?; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#7 +RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp) + +# A node extension for `op_asgn` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#8 +class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node + # @return [AsgnNode] the assignment node + # + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10 + def assignment_node; end + + # The expression being assigned to the variable. + # + # @return [Node] the expression being assigned. + # + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#31 + def expression; end + + # The name of the variable being assigned as a symbol. + # + # @return [Symbol] the name of the variable being assigned + # + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#17 + def name; end + + # The operator being used for assignment as a symbol. + # + # @return [Symbol] the assignment operator + # + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#24 + def operator; end +end + +# A node extension for `op_asgn` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#8 +class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode + # The operator being used for assignment as a symbol. + # + # @return [Symbol] the assignment operator + # + # source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#12 + def operator; end +end + +# A node extension for `or` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `or` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#8 +class RuboCop::AST::OrNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BinaryOperatorNode + include ::RuboCop::AST::PredicateOperatorNode + + # Returns the alternate operator of the `or` as a string. + # Returns `or` for `||` and vice versa. + # + # @return [String] the alternate of the `or` operator + # + # source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#16 + def alternate_operator; end + + # Returns the inverse keyword of the `or` node as a string. + # Returns `and` for `or` and `&&` for `||`. + # + # @return [String] the inverse of the `or` operator + # + # source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#24 + def inverse_operator; end +end + +# A node extension for `pair` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `pair` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#8 +class RuboCop::AST::PairNode < ::RuboCop::AST::Node + include ::RuboCop::AST::HashElementNode + + # Checks whether the `pair` uses a colon delimiter. + # + # @return [Boolean] whether this `pair` uses a colon delimiter + # + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#30 + def colon?; end + + # Returns the delimiter of the `pair` as a string. Returns `=>` for a + # colon delimited `pair` and `:` for a hash rocket delimited `pair`. + # + # @param with_spacing [Boolean] whether to include spacing + # @return [String] the delimiter of the `pair` + # + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#39 + def delimiter(*deprecated, with_spacing: T.unsafe(nil)); end + + # Checks whether the `pair` uses a hash rocket delimiter. + # + # @return [Boolean] whether this `pair` uses a hash rocket delimiter + # + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#23 + def hash_rocket?; end + + # Returns the inverse delimiter of the `pair` as a string. + # + # @param with_spacing [Boolean] whether to include spacing + # @return [String] the inverse delimiter of the `pair` + # + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#51 + def inverse_delimiter(*deprecated, with_spacing: T.unsafe(nil)); end + + # Checks whether the `pair` uses hash value omission. + # + # @return [Boolean] whether this `pair` uses hash value omission + # + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#69 + def value_omission?; end + + # Checks whether the value starts on its own line. + # + # @return [Boolean] whether the value in the `pair` starts its own line + # + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#62 + def value_on_new_line?; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#15 +RuboCop::AST::PairNode::COLON = T.let(T.unsafe(nil), String) + +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#11 +RuboCop::AST::PairNode::HASH_ROCKET = T.let(T.unsafe(nil), String) + +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#17 +RuboCop::AST::PairNode::SPACED_COLON = T.let(T.unsafe(nil), String) + +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#13 +RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String) + +# Requires implementing `arguments`. +# +# Common functionality for nodes that are parameterized: +# `send`, `super`, `zsuper`, `def`, `defs` +# and (modern only): `index`, `indexasgn`, `lambda` +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#10 +module RuboCop::AST::ParameterizedNode + # Checks whether this node has any arguments. + # + # @return [Boolean] whether this node has any arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#40 + def arguments?; end + + # Whether the last argument of the node is a block pass, + # i.e. `&block`. + # + # @return [Boolean] whether the last argument of the node is a block pass + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#58 + def block_argument?; end + + # A shorthand for getting the first argument of the node. + # Equivalent to `arguments.first`. + # + # @return [Node, nil] the first argument of the node, + # or `nil` if there are no arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#24 + def first_argument; end + + # A shorthand for getting the last argument of the node. + # Equivalent to `arguments.last`. + # + # @return [Node, nil] the last argument of the node, + # or `nil` if there are no arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#33 + def last_argument; end + + # Checks whether this node's arguments are wrapped in parentheses. + # + # @return [Boolean] whether this node's arguments are + # wrapped in parentheses + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#15 + def parenthesized?; end + + # Checks whether any argument of the node is a splat + # argument, i.e. `*splat`. + # + # @return [Boolean] whether the node is a splat argument + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 + def rest_argument?; end + + # Checks whether any argument of the node is a splat + # argument, i.e. `*splat`. + # + # @return [Boolean] whether the node is a splat argument + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 + def splat_argument?; end +end + +# A specialized `ParameterizedNode`. +# Requires implementing `first_argument_index` +# Implements `arguments` as `children[first_argument_index..-1]` +# and optimizes other calls +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#83 +module RuboCop::AST::ParameterizedNode::RestArguments + include ::RuboCop::AST::ParameterizedNode + + # @return [Array<Node>] arguments, if any + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#89 + def arguments; end + + # Checks whether this node has any arguments. + # + # @return [Boolean] whether this node has any arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#119 + def arguments?; end + + # A shorthand for getting the first argument of the node. + # Equivalent to `arguments.first`. + # + # @return [Node, nil] the first argument of the node, + # or `nil` if there are no arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#103 + def first_argument; end + + # A shorthand for getting the last argument of the node. + # Equivalent to `arguments.last`. + # + # @return [Node, nil] the last argument of the node, + # or `nil` if there are no arguments + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#112 + def last_argument; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#86 +RuboCop::AST::ParameterizedNode::RestArguments::EMPTY_ARGUMENTS = T.let(T.unsafe(nil), Array) + +# A specialized `ParameterizedNode` for node that have a single child +# containing either `nil`, an argument, or a `begin` node with all the +# arguments +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#66 +module RuboCop::AST::ParameterizedNode::WrappedArguments + include ::RuboCop::AST::ParameterizedNode + + # @return [Array] The arguments of the node. + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#69 + def arguments; end +end + +# Common functionality for nodes that are predicates: +# `or`, `and` ... +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#7 +module RuboCop::AST::PredicateOperatorNode + # Checks whether this is a logical operator. + # + # @return [Boolean] whether this is a logical operator + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#27 + def logical_operator?; end + + # Returns the operator as a string. + # + # @return [String] the operator + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#20 + def operator; end + + # Checks whether this is a semantic operator. + # + # @return [Boolean] whether this is a semantic operator + # + # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#34 + def semantic_operator?; end +end + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8 +RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12 +RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10 +RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String) + +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14 +RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String) + +# A node extension for `procarg0` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all `arg` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#8 +class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode + # Returns the name of an argument. + # + # @return [Symbol, nil] the name of the argument + # + # source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#12 + def name; end +end + +# ProcessedSource contains objects which are generated by Parser +# and other information such as disabled lines for cops. +# It also provides a convenient way to access source lines. +# +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#11 +class RuboCop::AST::ProcessedSource + # @return [ProcessedSource] a new instance of ProcessedSource + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#26 + def initialize(source, ruby_version, path = T.unsafe(nil)); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#63 + def [](*args); end + + # Returns the value of attribute ast. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def ast; end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41 + def ast_with_comments; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#102 + def blank?; end + + # Returns the value of attribute buffer. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def buffer; end + + # Raw source checksum for tracking infinite loops. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#74 + def checksum; end + + # @return [Comment, nil] the comment at that line, if any. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107 + def comment_at_line(line); end + + # Consider using `each_comment_in_lines` instead + # + # @deprecated use contains_comment? + # @return [Boolean] if any of the lines in the given `source_range` has a comment. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129 + def commented?(source_range); end + + # Returns the value of attribute comments. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def comments; end + + # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use. + # + # @deprecated Use `each_comment_in_lines` + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#137 + def comments_before_line(line); end + + # Consider using `each_comment_in_lines` instead + # + # @return [Boolean] if any of the lines in the given `source_range` has a comment. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129 + def contains_comment?(source_range); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151 + def current_line(token); end + + # Returns the value of attribute diagnostics. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def diagnostics; end + + # @deprecated Use `comments.each` + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#79 + def each_comment(&block); end + + # Enumerates on the comments contained with the given `line_range` + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117 + def each_comment_in_lines(line_range); end + + # @deprecated Use `tokens.each` + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89 + def each_token(&block); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98 + def file_path; end + + # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find` + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84 + def find_comment(&block); end + + # @deprecated Use `tokens.find` + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94 + def find_token(&block); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#172 + def first_token_of(range_or_node); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#155 + def following_line(token); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176 + def last_token_of(range_or_node); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#159 + def line_indentation(line_number); end + + # @return [Boolean] if the given line number has a comment. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112 + def line_with_comment?(line); end + + # Returns the source lines, line break characters removed, excluding a + # possible __END__ and everything that comes after. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#49 + def lines; end + + # Returns the value of attribute parser_error. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def parser_error; end + + # Returns the value of attribute path. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def path; end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147 + def preceding_line(token); end + + # Returns the value of attribute raw_source. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def raw_source; end + + # Returns the value of attribute ruby_version. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def ruby_version; end + + # The tokens list is always sorted by token position, except for cases when heredoc + # is passed as a method argument. In this case tokens are interleaved by + # heredoc contents' tokens. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#183 + def sorted_tokens; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#141 + def start_with?(string); end + + # Returns the value of attribute tokens. + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 + def tokens; end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#166 + def tokens_within(range_or_node); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#67 + def valid_syntax?; end + + private + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#190 + def comment_index; end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#278 + def create_parser(ruby_version); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#294 + def first_token_index(range_or_node); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#299 + def last_token_index(range_or_node); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#196 + def parse(source, ruby_version); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#230 + def parser_class(ruby_version); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#304 + def source_range(range_or_node); end + + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#213 + def tokenize(parser); end + + class << self + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + def from_file(path, ruby_version); end + end +end + +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15 +RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13 +RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String) + +# A node extension for `irange` and `erange` nodes. This will be used in +# place of a plain node when the builder constructs the AST, making its +# methods available to all `irange` and `erange` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#8 +class RuboCop::AST::RangeNode < ::RuboCop::AST::Node + # source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#9 + def begin; end + + # source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#13 + def end; end +end + +# A node extension for `regexp` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `regexp` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#8 +class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node + # @return [String] a string of regexp content + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#37 + def content; end + + # @return [Bool] if char is one of the delimiters + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#57 + def delimiter?(char); end + + # @return [String] the regexp delimiters (without %r) + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#52 + def delimiters; end + + # @return [Bool] if regexp uses the extended regopt + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#72 + def extended?; end + + # @return [Bool] if regexp uses the fixed-encoding regopt + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#92 + def fixed_encoding?; end + + # @return [Bool] if regexp uses the ignore-case regopt + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#77 + def ignore_case?; end + + # @return [Bool] if regexp contains interpolation + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#62 + def interpolation?; end + + # @return [Bool] if regexp uses the multiline regopt + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#67 + def multiline_mode?; end + + # @return [Bool] if regexp uses the no-encoding regopt + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#87 + def no_encoding?; end + + # NOTE: The 'o' option is ignored. + # + # @return [Integer] the Regexp option bits as returned by Regexp#options + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#32 + def options; end + + # @return [Bool] if the regexp is a %r{...} literal (using any delimiters) + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#47 + def percent_r_literal?; end + + # @return [RuboCop::AST::Node] a regopt node + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#25 + def regopt; end + + # @return [Bool] if regexp uses the single-interpolation regopt + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#82 + def single_interpolation?; end + + # @return [Bool] if the regexp is a /.../ literal + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#42 + def slash_literal?; end + + # @return [Regexp] a regexp of this node + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#20 + def to_regexp; end + + private + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#98 + def regopt_include?(option); end +end + +# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#9 +RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash) + +# A node extension for `resbody` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `resbody` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#8 +class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node + # Returns the body of the `rescue` clause. + # + # @return [Node, nil] The body of the `resbody`. + # + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#12 + def body; end + + # Returns the index of the `resbody` branch within the exception handling statement. + # + # @return [Integer] the index of the `resbody` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#40 + def branch_index; end + + # Returns the exception variable of the `rescue` clause. + # + # @return [Node, nil] The exception variable of the `resbody`. + # + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#33 + def exception_variable; end + + # Returns an array of all the exceptions in the `rescue` clause. + # + # @return [Array<Node>] an array of exception nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#19 + def exceptions; end +end + +# A node extension for `rescue` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `rescue` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#8 +class RuboCop::AST::RescueNode < ::RuboCop::AST::Node + # Returns the body of the rescue node. + # + # @return [Node, nil] The body of the rescue node. + # + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#12 + def body; end + + # Returns an array of all the rescue branches in the exception handling statement. + # + # and the else (if any). Note that these bodies could be nil. + # + # @return [Array<Node, nil>] an array of the bodies of the rescue branches + # + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#27 + def branches; end + + # Checks whether this exception handling statement has an `else` branch. + # + # @return [Boolean] whether the exception handling statement has an `else` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#44 + def else?; end + + # Returns the else branch of the exception handling statement, if any. + # + # @return [Node] the else branch node of the exception handling statement + # @return [nil] if the exception handling statement does not have an else branch. + # + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#37 + def else_branch; end + + # Returns an array of all the rescue branches in the exception handling statement. + # + # @return [Array<ResbodyNode>] an array of `resbody` nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#19 + def resbody_branches; end +end + +# A node extension for `return` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `return` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/return_node.rb#8 +class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::WrappedArguments +end + +# Responsible for compatibility with main gem +# +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#8 +module RuboCop::AST::RuboCopCompatibility + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#13 + def rubocop_loaded; end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#9 +RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Hash) + +# A node extension for `sclass` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `sclass` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#8 +class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node + # The body of this `sclass` node. + # + # @return [Node, nil] the body of the class + # + # source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#19 + def body; end + + # The identifier for this `sclass` node. (Always `self`.) + # + # @return [Node] the identifier of the class + # + # source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#12 + def identifier; end +end + +# A node extension for `send` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `send` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#8 +class RuboCop::AST::SendNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::ParameterizedNode::RestArguments + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#13 + def attribute_accessor?(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#18 + def send_type?; end + + private + + # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#24 + def first_argument_index; end +end + +# This module provides a shorthand method to create a {Node} like +# `Parser::AST::Sexp`. +# +# @see https://www.rubydoc.info/gems/ast/AST/Sexp +# +# source://rubocop-ast//lib/rubocop/ast/sexp.rb#9 +module RuboCop::AST::Sexp + # Creates a {Node} with type `type` and children `children`. + # + # source://rubocop-ast//lib/rubocop/ast/sexp.rb#11 + def s(type, *children); end +end + +# A node extension for `str`, `dstr`, and `xstr` nodes. This will be used +# in place of a plain node when the builder constructs the AST, making +# its methods available to all `str` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#8 +class RuboCop::AST::StrNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BasicLiteralNode + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11 + def character_literal?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#15 + def heredoc?; end +end + +# A node extension for `super`- and `zsuper` nodes. This will be used in +# place of a plain node when the builder constructs the AST, making its +# methods available to all `super`- and `zsuper` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#8 +class RuboCop::AST::SuperNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # source://ast/2.4.2/lib/ast/node.rb#56 + def arguments; end + + # Custom destructuring method. This can be used to normalize + # destructuring for different variations of the node. + # + # @return [Array] the different parts of the `super` node + # + # source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#16 + def node_parts; end +end + +# A node extension for `sym` nodes. This will be used in place of a +# plain node when the builder constructs the AST, making its methods +# available to all `sym` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/symbol_node.rb#8 +class RuboCop::AST::SymbolNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BasicLiteralNode +end + +# A basic wrapper around Parser's tokens. +# +# source://rubocop-ast//lib/rubocop/ast/token.rb#6 +class RuboCop::AST::Token + # @return [Token] a new instance of Token + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#17 + def initialize(pos, type, text); end + + # source://rubocop-ast//lib/rubocop/ast/token.rb#32 + def begin_pos; end + + # source://rubocop-ast//lib/rubocop/ast/token.rb#28 + def column; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#101 + def comma?; end + + # Type Predicates + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#57 + def comment?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#105 + def dot?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#117 + def end?; end + + # source://rubocop-ast//lib/rubocop/ast/token.rb#36 + def end_pos; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#121 + def equal_sign?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#65 + def left_array_bracket?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#81 + def left_brace?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#73 + def left_bracket?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#85 + def left_curly_brace?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#93 + def left_parens?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#69 + def left_ref_bracket?; end + + # source://rubocop-ast//lib/rubocop/ast/token.rb#24 + def line; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#125 + def new_line?; end + + # Returns the value of attribute pos. + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#9 + def pos; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#109 + def regexp_dots?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#113 + def rescue_modifier?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#77 + def right_bracket?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#89 + def right_curly_brace?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#97 + def right_parens?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#61 + def semicolon?; end + + # Checks if there is whitespace after token + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#45 + def space_after?; end + + # Checks if there is whitespace before token + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#50 + def space_before?; end + + # Returns the value of attribute text. + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#9 + def text; end + + # source://rubocop-ast//lib/rubocop/ast/token.rb#40 + def to_s; end + + # Returns the value of attribute type. + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#9 + def type; end + + class << self + # source://rubocop-ast//lib/rubocop/ast/token.rb#11 + def from_parser_token(parser_token); end + end +end + +# source://rubocop-ast//lib/rubocop/ast/token.rb#7 +RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array) + +# Provides methods for traversing an AST. +# Does not transform an AST; for that, use Parser::AST::Processor. +# Override methods to perform custom processing. Remember to call `super` +# if you want to recursively process descendant nodes. +# +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#9 +module RuboCop::AST::Traversal + extend ::RuboCop::AST::Traversal::CallbackCompiler + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#173 + def on_(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on___ENCODING__(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on___FILE__(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on___LINE__(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_alias(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_and(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_and_asgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_arg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_arg_expr(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_args(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_array(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_array_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_array_pattern_with_tail(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_back_ref(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_begin(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#151 + def on_block(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 + def on_block_pass(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_blockarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_break(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_case(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_case_match(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#146 + def on_casgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_cbase(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#147 + def on_class(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_complex(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + def on_const(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_const_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 + def on_csend(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_cvar(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + def on_cvasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + def on_def(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_defined?(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#153 + def on_defs(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_dstr(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_dsym(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_eflipflop(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_empty_else(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_ensure(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_erange(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_false(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_find_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_float(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_for(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forward_arg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forward_args(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forwarded_args(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forwarded_kwrestarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forwarded_restarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_gvar(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + def on_gvasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_hash(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_hash_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#150 + def on_if(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_if_guard(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_iflipflop(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_in_match(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_in_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_index(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_indexasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_int(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_irange(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_ivar(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + def on_ivasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_kwarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_kwargs(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_kwbegin(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_kwnilarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + def on_kwoptarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124 + def on_kwrestarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 + def on_kwsplat(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_lambda(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_lvar(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + def on_lvasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_masgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_match_alt(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_match_as(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_match_current_line(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_match_nil_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_match_pattern(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_match_pattern_p(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 + def on_match_rest(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_match_var(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_match_with_lvasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_match_with_trailing_comma(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_mlhs(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + def on_module(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_mrasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_next(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_nil(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_not(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_nth_ref(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#152 + def on_numblock(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#149 + def on_op_asgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + def on_optarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_or(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_or_asgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_pair(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_pin(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 + def on_postexe(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 + def on_preexe(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_procarg0(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_rasgn(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_rational(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_redo(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_regexp(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135 + def on_regopt(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_resbody(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_rescue(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124 + def on_restarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_retry(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_return(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + def on_sclass(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_self(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 + def on_send(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_shadowarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 + def on_splat(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_str(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_super(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + def on_sym(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_true(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_undef(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + def on_unless_guard(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + def on_until(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_until_post(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + def on_when(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + def on_while(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_while_post(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_xstr(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + def on_yield(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_zsuper(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#17 + def walk(node); end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#25 +module RuboCop::AST::Traversal::CallbackCompiler + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#61 + def arity_check(range); end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#52 + def body(signature, prelude); end + + # @api private + # + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#35 + def def_callback(type, *signature, arity: T.unsafe(nil), arity_check: T.unsafe(nil), body: T.unsafe(nil)); end +end + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#26 +RuboCop::AST::Traversal::CallbackCompiler::SEND = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#29 +RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash) + +# Only for debugging. +# +# @api private +# +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#12 +class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end + +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#100 +RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#15 +RuboCop::AST::Traversal::TYPE_TO_METHOD = T.let(T.unsafe(nil), Hash) + +# A node extension for `until` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `until` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#8 +class RuboCop::AST::UntilNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConditionalNode + include ::RuboCop::AST::ModifierNode + + # Checks whether the `until` node has a `do` keyword. + # + # @return [Boolean] whether the `until` node has a `do` keyword + # + # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#30 + def do?; end + + # Returns the inverse keyword of the `until` node as a string. + # Returns `while` for `until` nodes and vice versa. + # + # @return [String] the inverse keyword of the `until` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#23 + def inverse_keyword; end + + # Returns the keyword of the `until` statement as a string. + # + # @return [String] the keyword of the `until` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#15 + def keyword; end +end + +# source://rubocop-ast//lib/rubocop/ast/version.rb#5 +module RuboCop::AST::Version; end + +# source://rubocop-ast//lib/rubocop/ast/version.rb#6 +RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String) + +# A node extension for `when` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `when` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#8 +class RuboCop::AST::WhenNode < ::RuboCop::AST::Node + # Returns the body of the `when` node. + # + # @return [Node, nil] the body of the `when` node + # + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#42 + def body; end + + # Returns the index of the `when` branch within the `case` statement. + # + # @return [Integer] the index of the `when` branch + # + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#28 + def branch_index; end + + # Returns an array of all the conditions in the `when` branch. + # + # @return [Array<Node>] an array of condition nodes + # + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#12 + def conditions; end + + # @deprecated Use `conditions.each` + # + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#17 + def each_condition(&block); end + + # Checks whether the `when` node has a `then` keyword. + # + # @return [Boolean] whether the `when` node has a `then` keyword + # + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#35 + def then?; end +end + +# A node extension for `while` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `while` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#8 +class RuboCop::AST::WhileNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConditionalNode + include ::RuboCop::AST::ModifierNode + + # Checks whether the `until` node has a `do` keyword. + # + # @return [Boolean] whether the `until` node has a `do` keyword + # + # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#30 + def do?; end + + # Returns the inverse keyword of the `while` node as a string. + # Returns `until` for `while` nodes and vice versa. + # + # @return [String] the inverse keyword of the `while` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#23 + def inverse_keyword; end + + # Returns the keyword of the `while` statement as a string. + # + # @return [String] the keyword of the `while` statement + # + # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#15 + def keyword; end +end + +# A node extension for `yield` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `yield` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#8 +class RuboCop::AST::YieldNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ParameterizedNode + include ::RuboCop::AST::MethodIdentifierPredicates + include ::RuboCop::AST::MethodDispatchNode + + # source://ast/2.4.2/lib/ast/node.rb#56 + def arguments; end + + # Custom destructuring method. This can be used to normalize + # destructuring for different variations of the node. + # + # @return [Array] the different parts of the `send` node + # + # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#16 + def node_parts; end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/rubocop@1.57.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/rubocop@1.57.1.rbi new file mode 100755 index 000000000..4115bacee --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/rubocop@1.57.1.rbi @@ -0,0 +1,56791 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop` gem. +# Please instead update this file by running `bin/tapioca gem rubocop`. + +class Parser::Source::Comment + include ::RuboCop::Ext::Comment +end + +class Parser::Source::Range + include ::RuboCop::Ext::Range +end + +class Regexp::Expression::Base + include ::RuboCop::Ext::RegexpParser::Expression::Base +end + +class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression + include ::RuboCop::Ext::RegexpParser::Expression::CharacterSet +end + +class Regexp::Expression::Quantifier + include ::RuboCop::Ext::RegexpParser::Expression::Base +end + +# source://rubocop//lib/rubocop/version.rb#3 +module RuboCop; end + +class RuboCop::AST::ProcessedSource + include ::RuboCop::Ext::ProcessedSource +end + +class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node + include ::RuboCop::Ext::RegexpNode +end + +# This is a class that reads optional command line arguments to rubocop from environment variable. +# +# @api private +# +# source://rubocop//lib/rubocop/arguments_env.rb#6 +class RuboCop::ArgumentsEnv + class << self + # @api private + # + # source://rubocop//lib/rubocop/arguments_env.rb#7 + def read_as_arguments; end + end +end + +# This is a class that reads optional command line arguments to rubocop from .rubocop file. +# +# @api private +# +# source://rubocop//lib/rubocop/arguments_file.rb#6 +class RuboCop::ArgumentsFile + class << self + # @api private + # + # source://rubocop//lib/rubocop/arguments_file.rb#7 + def read_as_arguments; end + end +end + +# The CLI is a class responsible of handling all the command line interface +# logic. +# +# source://rubocop//lib/rubocop/cli.rb#8 +class RuboCop::CLI + # @return [CLI] a new instance of CLI + # + # source://rubocop//lib/rubocop/cli.rb#24 + def initialize; end + + # Returns the value of attribute config_store. + # + # source://rubocop//lib/rubocop/cli.rb#22 + def config_store; end + + # Returns the value of attribute options. + # + # source://rubocop//lib/rubocop/cli.rb#22 + def options; end + + # Entry point for the application logic. Here we + # do the command line arguments processing and inspect + # the target files. + # + # + # @api public + # @param args [Array<String>] command line arguments + # @return [Integer] UNIX exit code + # + # source://rubocop//lib/rubocop/cli.rb#39 + def run(args = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cli.rb#152 + def act_on_options; end + + # source://rubocop//lib/rubocop/cli.rb#189 + def apply_default_formatter; end + + # source://rubocop//lib/rubocop/cli.rb#121 + def execute_runners; end + + # @raise [Finished] + # + # source://rubocop//lib/rubocop/cli.rb#178 + def handle_exiting_options; end + + # source://rubocop//lib/rubocop/cli.rb#140 + def parallel_by_default!; end + + # source://rubocop//lib/rubocop/cli.rb#76 + def profile_if_needed; end + + # source://rubocop//lib/rubocop/cli.rb#109 + def require_gem(name); end + + # source://rubocop//lib/rubocop/cli.rb#117 + def run_command(name); end + + # source://rubocop//lib/rubocop/cli.rb#169 + def set_options_to_config_loader; end + + # source://rubocop//lib/rubocop/cli.rb#129 + def suggest_extensions; end + + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/cli.rb#133 + def validate_options_vs_config; end +end + +# Home of subcommands in the CLI. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command.rb#7 +module RuboCop::CLI::Command + class << self + # Find the command with a given name and run it in an environment. + # + # @api private + # + # source://rubocop//lib/rubocop/cli/command.rb#10 + def run(env, name); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cli/command.rb#16 + def class_for(name); end + end +end + +# Generate a configuration file acting as a TODO list. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#8 +class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#21 + def run; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#97 + def add_formatter; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#105 + def add_inheritance_from_auto_generated_file(config_file); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#101 + def execute_runner; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#126 + def existing_configuration(config_file); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#59 + def line_length_cop(config); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#47 + def line_length_enabled?(config); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#55 + def max_line_length(config); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#30 + def maybe_run_line_length_cop; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#148 + def options_config_in_root?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#63 + def options_has_only_flag?; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#139 + def relative_path_to_todo_from_options_config; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#90 + def reset_config_and_auto_gen_file; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#81 + def run_all_cops(line_length_contents); end + + # Do an initial run with only Layout/LineLength so that cops that + # depend on Layout/LineLength:Max get the correct value for that + # parameter. + # + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#70 + def run_line_length_cop; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#51 + def same_max_line_length?(config1, config2); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#42 + def skip_line_length_cop(reason); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#132 + def write_config_file(file_name, file_string, rubocop_yml_contents); end +end + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#11 +RuboCop::CLI::Command::AutoGenerateConfig::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#14 +RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1 = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#18 +RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_DISABLED = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#17 +RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#19 +RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#15 +RuboCop::CLI::Command::AutoGenerateConfig::PHASE_2 = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#12 +RuboCop::CLI::Command::AutoGenerateConfig::YAML_OPTIONAL_DOC_START = T.let(T.unsafe(nil), Regexp) + +# A subcommand in the CLI. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/base.rb#8 +class RuboCop::CLI::Command::Base + # @api private + # @return [Base] a new instance of Base + # + # source://rubocop//lib/rubocop/cli/command/base.rb#26 + def initialize(env); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/base.rb#9 + def env; end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/cli/command/base.rb#21 + def by_command_name(name); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/base.rb#14 + def command_name; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/base.rb#14 + def command_name=(_arg0); end + + # @api private + # @private + # + # source://rubocop//lib/rubocop/cli/command/base.rb#16 + def inherited(subclass); end + end +end + +# Run all the selected cops and report the result. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/execute_runner.rb#8 +class RuboCop::CLI::Command::ExecuteRunner < ::RuboCop::CLI::Command::Base + include ::RuboCop::Formatter::TextUtil + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#16 + def run; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#85 + def bug_tracker_uri; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#69 + def display_error_summary(errors); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#56 + def display_summary(runner); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#61 + def display_warning_summary(warnings); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#22 + def execute_runner(paths); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#91 + def maybe_print_corrected_source; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#42 + def with_redirect; end +end + +# Combination of short and long formatter names. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/execute_runner.rb#12 +RuboCop::CLI::Command::ExecuteRunner::INTEGRATION_FORMATTERS = T.let(T.unsafe(nil), Array) + +# Generate a .rubocop.yml file in the current directory. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#8 +class RuboCop::CLI::Command::InitDotfile < ::RuboCop::CLI::Command::Base + # @api private + # + # source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#13 + def run; end +end + +# @api private +# +# source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#9 +RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String) + +# Start Language Server Protocol of RuboCop. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/lsp.rb#10 +class RuboCop::CLI::Command::Lsp < ::RuboCop::CLI::Command::Base + # @api private + # + # source://rubocop//lib/rubocop/cli/command/lsp.rb#13 + def run; end +end + +# Shows the given cops, or all cops by default, and their configurations +# for the current directory. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/show_cops.rb#9 +class RuboCop::CLI::Command::ShowCops < ::RuboCop::CLI::Command::Base + # @api private + # @return [ShowCops] a new instance of ShowCops + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 + def initialize(env); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#19 + def run; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#67 + def config_lines(cop); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#63 + def cops_of_department(cops, department); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#25 + def print_available_cops; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#48 + def print_cop_details(cops); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#36 + def print_cops_of_department(registry, department, show_all); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#57 + def selected_cops_of_department(cops, department); end +end + +# Prints out url to documentation of provided cops +# or documentation base url by default. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#9 +class RuboCop::CLI::Command::ShowDocsUrl < ::RuboCop::CLI::Command::Base + # @api private + # @return [ShowDocsUrl] a new instance of ShowDocsUrl + # + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#12 + def initialize(env); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#18 + def run; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#38 + def cops_array; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#24 + def print_documentation_url; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#42 + def registry_hash; end +end + +# Suggest RuboCop extensions to install based on Gemfile dependencies. +# Only primary dependencies are evaluated, so if a dependency depends on a +# gem with an extension, it is not suggested. However, if an extension is +# a transitive dependency, it will not be suggested. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#11 +class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#17 + def run; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#73 + def all_extensions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#69 + def current_formatter; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#111 + def dependent_gems; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#87 + def extensions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#103 + def installed_and_not_loaded_extensions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#91 + def installed_extensions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#115 + def installed_gems; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#99 + def loaded_extensions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#107 + def lockfile; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#95 + def not_installed_extensions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#41 + def print_install_suggestions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#51 + def print_load_suggestions; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#60 + def print_opt_out_instruction; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#119 + def puts(*args); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#30 + def skip?; end +end + +# Combination of short and long formatter names. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#13 +RuboCop::CLI::Command::SuggestExtensions::INCLUDED_FORMATTERS = T.let(T.unsafe(nil), Array) + +# Display version. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/command/version.rb#8 +class RuboCop::CLI::Command::Version < ::RuboCop::CLI::Command::Base + # @api private + # + # source://rubocop//lib/rubocop/cli/command/version.rb#11 + def run; end +end + +# source://rubocop//lib/rubocop/cli.rb#13 +RuboCop::CLI::DEFAULT_PARALLEL_OPTIONS = T.let(T.unsafe(nil), Array) + +# Execution environment for a CLI command. +# +# @api private +# +# source://rubocop//lib/rubocop/cli/environment.rb#7 +class RuboCop::CLI::Environment + # @api private + # @return [Environment] a new instance of Environment + # + # source://rubocop//lib/rubocop/cli/environment.rb#10 + def initialize(options, config_store, paths); end + + # @api private + # + # source://rubocop//lib/rubocop/cli/environment.rb#8 + def config_store; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/environment.rb#8 + def options; end + + # @api private + # + # source://rubocop//lib/rubocop/cli/environment.rb#8 + def paths; end + + # Run a command in this environment. + # + # @api private + # + # source://rubocop//lib/rubocop/cli/environment.rb#17 + def run(name); end +end + +# source://rubocop//lib/rubocop/cli.rb#20 +class RuboCop::CLI::Finished < ::StandardError; end + +# source://rubocop//lib/rubocop/cli.rb#11 +RuboCop::CLI::STATUS_ERROR = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cli.rb#12 +RuboCop::CLI::STATUS_INTERRUPTED = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cli.rb#10 +RuboCop::CLI::STATUS_OFFENSES = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cli.rb#9 +RuboCop::CLI::STATUS_SUCCESS = T.let(T.unsafe(nil), Integer) + +# This class represents the cache config of the caching RuboCop runs. +# +# @api private +# +# source://rubocop//lib/rubocop/cache_config.rb#6 +class RuboCop::CacheConfig + class << self + # @api private + # + # source://rubocop//lib/rubocop/cache_config.rb#7 + def root_dir; end + end +end + +# Converts RuboCop objects to and from the serialization format JSON. +# +# @api private +# +# source://rubocop//lib/rubocop/cached_data.rb#8 +class RuboCop::CachedData + # @api private + # @return [CachedData] a new instance of CachedData + # + # source://rubocop//lib/rubocop/cached_data.rb#9 + def initialize(filename); end + + # @api private + # + # source://rubocop//lib/rubocop/cached_data.rb#13 + def from_json(text); end + + # @api private + # + # source://rubocop//lib/rubocop/cached_data.rb#17 + def to_json(offenses); end + + private + + # Restore an offense object loaded from a JSON file. + # + # @api private + # + # source://rubocop//lib/rubocop/cached_data.rb#47 + def deserialize_offenses(offenses); end + + # @api private + # + # source://rubocop//lib/rubocop/cached_data.rb#40 + def message(offense); end + + # @api private + # + # source://rubocop//lib/rubocop/cached_data.rb#23 + def serialize_offense(offense); end +end + +# and provides a way to check if each cop is enabled at arbitrary line. +# +# source://rubocop//lib/rubocop/comment_config.rb#6 +class RuboCop::CommentConfig + extend ::Forwardable + + # @return [CommentConfig] a new instance of CommentConfig + # + # source://rubocop//lib/rubocop/comment_config.rb#34 + def initialize(processed_source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/comment_config.rb#63 + def comment_only_line?(line_number); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def config(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/comment_config.rb#51 + def cop_disabled_line_ranges; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/comment_config.rb#39 + def cop_enabled_at_line?(cop, line_number); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/comment_config.rb#47 + def cop_opted_in?(cop); end + + # source://rubocop//lib/rubocop/comment_config.rb#55 + def extra_enabled_comments; end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/comment_config.rb#30 + def processed_source; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def registry(*args, **_arg1, &block); end + + private + + # source://rubocop//lib/rubocop/comment_config.rb#96 + def analyze; end + + # source://rubocop//lib/rubocop/comment_config.rb#124 + def analyze_cop(analysis, directive); end + + # source://rubocop//lib/rubocop/comment_config.rb#144 + def analyze_disabled(analysis, directive); end + + # source://rubocop//lib/rubocop/comment_config.rb#155 + def analyze_rest(analysis, directive); end + + # source://rubocop//lib/rubocop/comment_config.rb#135 + def analyze_single_line(analysis, directive); end + + # source://rubocop//lib/rubocop/comment_config.rb#164 + def cop_line_ranges(analysis); end + + # source://rubocop//lib/rubocop/comment_config.rb#170 + def each_directive; end + + # source://rubocop//lib/rubocop/comment_config.rb#69 + def extra_enabled_comments_with_names(extras:, names:); end + + # source://rubocop//lib/rubocop/comment_config.rb#190 + def handle_enable_all(directive, names, extras); end + + # Collect cops that have been disabled or enabled by name in a directive comment + # so that `Lint/RedundantCopEnableDirective` can register offenses correctly. + # + # source://rubocop//lib/rubocop/comment_config.rb#204 + def handle_switch(directive, names, extras); end + + # source://rubocop//lib/rubocop/comment_config.rb#115 + def inject_disabled_cops_directives(analyses); end + + # source://rubocop//lib/rubocop/comment_config.rb#183 + def non_comment_token_line_numbers; end + + # source://rubocop//lib/rubocop/comment_config.rb#83 + def opt_in_cops; end + + # source://rubocop//lib/rubocop/comment_config.rb#179 + def qualified_cop_name(cop_name); end +end + +# source://rubocop//lib/rubocop/comment_config.rb#9 +RuboCop::CommentConfig::CONFIG_DISABLED_LINE_RANGE_MIN = T.let(T.unsafe(nil), Float) + +# This class provides an API compatible with RuboCop::DirectiveComment +# to be used for cops that are disabled in the config file +# +# source://rubocop//lib/rubocop/comment_config.rb#13 +class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment + include ::RuboCop::Ext::Comment + + # @return [ConfigDisabledCopDirectiveComment] a new instance of ConfigDisabledCopDirectiveComment + # + # source://rubocop//lib/rubocop/comment_config.rb#21 + def initialize(cop_name); end + + # Returns the value of attribute line_number. + # + # source://rubocop//lib/rubocop/comment_config.rb#16 + def line_number; end + + # Returns the value of attribute loc. + # + # source://rubocop//lib/rubocop/comment_config.rb#16 + def loc; end + + # Returns the value of attribute text. + # + # source://rubocop//lib/rubocop/comment_config.rb#16 + def text; end +end + +# source://rubocop//lib/rubocop/comment_config.rb#19 +class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < ::Struct + # Returns the value of attribute line + # + # @return [Object] the current value of line + def line; end + + # Sets the attribute line + # + # @param value [Object] the value to set the attribute line to. + # @return [Object] the newly set value + def line=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/comment_config.rb#18 +class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct + # Returns the value of attribute expression + # + # @return [Object] the current value of expression + def expression; end + + # Sets the attribute expression + # + # @param value [Object] the value to set the attribute expression to. + # @return [Object] the newly set value + def expression=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/comment_config.rb#28 +class RuboCop::CommentConfig::CopAnalysis < ::Struct + # Returns the value of attribute line_ranges + # + # @return [Object] the current value of line_ranges + def line_ranges; end + + # Sets the attribute line_ranges + # + # @param value [Object] the value to set the attribute line_ranges to. + # @return [Object] the newly set value + def line_ranges=(_); end + + # Returns the value of attribute start_line_number + # + # @return [Object] the current value of start_line_number + def start_line_number; end + + # Sets the attribute start_line_number + # + # @param value [Object] the value to set the attribute start_line_number to. + # @return [Object] the newly set value + def start_line_number=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# This class represents the configuration of the RuboCop application +# and all its cops. A Config is associated with a YAML configuration +# file from which it was read. Several different Configs can be used +# during a run of the rubocop program, if files in several +# directories are inspected. +# +# source://rubocop//lib/rubocop/config.rb#14 +class RuboCop::Config + include ::RuboCop::PathUtil + include ::RuboCop::FileFinder + extend ::Forwardable + + # @return [Config] a new instance of Config + # + # source://rubocop//lib/rubocop/config.rb#32 + def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def [](*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def []=(*args, **_arg1, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#172 + def active_support_extensions_enabled?; end + + # source://rubocop//lib/rubocop/config.rb#98 + def add_excludes_from_higher_level(highest_config); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#195 + def allowed_camel_case_file?(file); end + + # Paths specified in configuration files starting with .rubocop are + # relative to the directory where that file is. Paths in other config files + # are relative to the current directory. This is so that paths in + # config/default.yml, for example, are not relative to RuboCop's config + # directory since that wouldn't work. + # + # source://rubocop//lib/rubocop/config.rb#239 + def base_dir_for_path_parameters; end + + # source://rubocop//lib/rubocop/config.rb#264 + def bundler_lock_file_path; end + + # source://rubocop//lib/rubocop/config.rb#53 + def check; end + + # @api private + # @return [Boolean] whether config for this badge has 'Include' or 'Exclude' keys + # + # source://rubocop//lib/rubocop/config.rb#144 + def clusivity_config_for_badge?(badge); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def delete(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config.rb#110 + def deprecation_check; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def dig(*args, **_arg1, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#164 + def disabled_new_cops?; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def each_key(*args, **_arg1, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#168 + def enabled_new_cops?; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def fetch(*args, **_arg1, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#217 + def file_to_exclude?(file); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#176 + def file_to_include?(file); end + + # source://rubocop//lib/rubocop/config.rb#160 + def for_all_cops; end + + # Note: the 'Enabled' attribute is same as that returned by `for_cop` + # + # @return [Config] for the given cop merged with that of its department (if any) + # + # source://rubocop//lib/rubocop/config.rb#130 + def for_badge(badge); end + + # Note: the 'Enabled' attribute is calculated according to the department's + # and 'AllCops' configuration; other attributes are not inherited. + # + # @return [Config] for the given cop / cop name. + # + # source://rubocop//lib/rubocop/config.rb#124 + def for_cop(cop); end + + # Note: the 'Enabled' attribute will be present only if specified + # at the department's level + # + # @return [Config] for the given department name. + # + # source://rubocop//lib/rubocop/config.rb#155 + def for_department(department_name); end + + # source://rubocop//lib/rubocop/config.rb#287 + def inspect; end + + # True if this is a config file that is shipped with RuboCop + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#78 + def internal?; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def key?(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def keys(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config.rb#49 + def loaded_features; end + + # Returns the value of attribute loaded_path. + # + # source://rubocop//lib/rubocop/config.rb#22 + def loaded_path; end + + # source://rubocop//lib/rubocop/config.rb#83 + def make_excludes_absolute; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def map(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def merge(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config.rb#230 + def path_relative_to_config(path); end + + # source://rubocop//lib/rubocop/config.rb#226 + def patterns_to_exclude; end + + # source://rubocop//lib/rubocop/config.rb#222 + def patterns_to_include; end + + # source://rubocop//lib/rubocop/config.rb#275 + def pending_cops; end + + # Returns true if there's a chance that an Include pattern matches hidden + # files, false if that's definitely not possible. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#209 + def possibly_include_hidden?; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def replace(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config.rb#73 + def signature; end + + # source://rubocop//lib/rubocop/config.rb#260 + def smart_loaded_path; end + + # source://rubocop//lib/rubocop/config.rb#249 + def target_rails_version; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def target_ruby_version(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def to_h(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def to_hash(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config.rb#69 + def to_s; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def transform_values(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def validate(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config.rb#60 + def validate_after_resolution; end + + private + + # source://rubocop//lib/rubocop/config.rb#322 + def department_of(qualified_cop_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config.rb#310 + def enable_cop?(qualified_cop_name, cop_options); end + + # source://rubocop//lib/rubocop/config.rb#297 + def read_rails_version_from_bundler_lock_file; end + + # source://rubocop//lib/rubocop/config.rb#293 + def target_rails_version_from_bundler_lock_file; end + + class << self + # source://rubocop//lib/rubocop/config.rb#24 + def create(hash, path, check: T.unsafe(nil)); end + end +end + +# source://rubocop//lib/rubocop/config.rb#19 +class RuboCop::Config::CopConfig < ::Struct + # Returns the value of attribute metadata + # + # @return [Object] the current value of metadata + def metadata; end + + # Sets the attribute metadata + # + # @param value [Object] the value to set the attribute metadata to. + # @return [Object] the newly set value + def metadata=(_); end + + # Returns the value of attribute name + # + # @return [Object] the current value of name + def name; end + + # Sets the attribute name + # + # @param value [Object] the value to set the attribute name to. + # @return [Object] the newly set value + def name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/config.rb#21 +RuboCop::Config::DEFAULT_RAILS_VERSION = T.let(T.unsafe(nil), Float) + +# This class has methods related to finding configuration path. +# +# @api private +# +# source://rubocop//lib/rubocop/config_finder.rb#8 +class RuboCop::ConfigFinder + extend ::RuboCop::FileFinder + + class << self + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#19 + def find_config_path(target_dir); end + + # Returns the path RuboCop inferred as the root of the project. No file + # searches will go past this directory. + # + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#26 + def project_root; end + + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#17 + def project_root=(_arg0); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#59 + def expand_path(path); end + + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#40 + def find_project_dotfile(target_dir); end + + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#32 + def find_project_root; end + + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#44 + def find_user_dotfile; end + + # @api private + # + # source://rubocop//lib/rubocop/config_finder.rb#52 + def find_user_xdg_config; end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_finder.rb#12 +RuboCop::ConfigFinder::DEFAULT_FILE = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/config_finder.rb#9 +RuboCop::ConfigFinder::DOTFILE = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/config_finder.rb#11 +RuboCop::ConfigFinder::RUBOCOP_HOME = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/config_finder.rb#10 +RuboCop::ConfigFinder::XDG_CONFIG = T.let(T.unsafe(nil), String) + +# This class represents the configuration of the RuboCop application +# and all its cops. A Config is associated with a YAML configuration +# file from which it was read. Several different Configs can be used +# during a run of the rubocop program, if files in several +# directories are inspected. +# +# source://rubocop//lib/rubocop/config_loader.rb#18 +class RuboCop::ConfigLoader + extend ::RuboCop::FileFinder + + class << self + # source://rubocop//lib/rubocop/config_loader.rb#138 + def add_excludes_from_files(config, config_file); end + + # Used to add features that were required inside a config or from + # the CLI using `--require`. + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader.rb#199 + def add_loaded_features(loaded_features); end + + # source://rubocop//lib/rubocop/config_loader.rb#81 + def add_missing_namespaces(path, hash); end + + # source://rubocop//lib/rubocop/config_loader.rb#42 + def clear_options; end + + # Returns the path of .rubocop.yml searching upwards in the + # directory structure starting at the given directory where the + # inspected file is. If no .rubocop.yml is found there, the + # user's home directory is checked. If there's no .rubocop.yml + # there either, the path to the default file is returned. + # + # source://rubocop//lib/rubocop/config_loader.rb#105 + def configuration_file_for(target_dir); end + + # source://rubocop//lib/rubocop/config_loader.rb#109 + def configuration_from_file(config_file, check: T.unsafe(nil)); end + + # Returns the value of attribute debug. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def debug; end + + # Sets the attribute debug + # + # @param value the value to set the attribute debug to. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def debug=(_arg0); end + + # Returns the value of attribute debug. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def debug?; end + + # source://rubocop//lib/rubocop/config_loader.rb#148 + def default_configuration; end + + # Sets the attribute default_configuration + # + # @param value the value to set the attribute default_configuration to. + # + # source://rubocop//lib/rubocop/config_loader.rb#36 + def default_configuration=(_arg0); end + + # Returns the value of attribute disable_pending_cops. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def disable_pending_cops; end + + # Sets the attribute disable_pending_cops + # + # @param value the value to set the attribute disable_pending_cops to. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def disable_pending_cops=(_arg0); end + + # Returns the value of attribute enable_pending_cops. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def enable_pending_cops; end + + # Sets the attribute enable_pending_cops + # + # @param value the value to set the attribute enable_pending_cops to. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def enable_pending_cops=(_arg0); end + + # Returns the value of attribute ignore_parent_exclusion. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def ignore_parent_exclusion; end + + # Sets the attribute ignore_parent_exclusion + # + # @param value the value to set the attribute ignore_parent_exclusion to. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def ignore_parent_exclusion=(_arg0); end + + # Returns the value of attribute ignore_parent_exclusion. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def ignore_parent_exclusion?; end + + # Returns the value of attribute ignore_unrecognized_cops. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def ignore_unrecognized_cops; end + + # Sets the attribute ignore_unrecognized_cops + # + # @param value the value to set the attribute ignore_unrecognized_cops to. + # + # source://rubocop//lib/rubocop/config_loader.rb#34 + def ignore_unrecognized_cops=(_arg0); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader.rb#156 + def inject_defaults!(project_root); end + + # source://rubocop//lib/rubocop/config_loader.rb#48 + def load_file(file, check: T.unsafe(nil)); end + + # @raise [TypeError] + # + # source://rubocop//lib/rubocop/config_loader.rb#68 + def load_yaml_configuration(absolute_path); end + + # Returns the value of attribute loaded_features. + # + # source://rubocop//lib/rubocop/config_loader.rb#37 + def loaded_features; end + + # Return a recursive merge of two hashes. That is, a normal hash merge, + # with the addition that any value that is a hash, and occurs in both + # arguments, will also be merged. And so on. + # + # source://rubocop//lib/rubocop/config_loader.rb#96 + def merge(base_hash, derived_hash); end + + # Merges the given configuration with the default one. + # + # source://rubocop//lib/rubocop/config_loader.rb#192 + def merge_with_default(config, config_file, unset_nil: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/config_loader.rb#129 + def pending_cops_only_qualified(pending_cops); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader.rb#133 + def possible_new_cops?(config); end + + # Returns the path RuboCop inferred as the root of the project. No file + # searches will go past this directory. + # + # @deprecated Use `RuboCop::ConfigFinder.project_root` instead. + # + # source://rubocop//lib/rubocop/config_loader.rb#167 + def project_root; end + + # source://rubocop//lib/rubocop/config_loader.rb#176 + def warn_on_pending_cops(pending_cops); end + + # source://rubocop//lib/rubocop/config_loader.rb#184 + def warn_pending_cop(cop); end + + private + + # source://rubocop//lib/rubocop/config_loader.rb#213 + def check_duplication(yaml_code, absolute_path); end + + # source://rubocop//lib/rubocop/config_loader.rb#205 + def file_path(file); end + + # Read the specified file, or exit with a friendly, concise message on + # stderr. Care is taken to use the standard OS exit code for a "file not + # found" error. + # + # source://rubocop//lib/rubocop/config_loader.rb#233 + def read_file(absolute_path); end + + # source://rubocop//lib/rubocop/config_loader.rb#209 + def resolver; end + + # source://rubocop//lib/rubocop/config_loader.rb#239 + def yaml_safe_load(yaml_code, filename); end + + # source://rubocop//lib/rubocop/config_loader.rb#249 + def yaml_safe_load!(yaml_code, filename); end + end +end + +# source://rubocop//lib/rubocop/config_loader.rb#21 +RuboCop::ConfigLoader::DEFAULT_FILE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/config_loader.rb#19 +RuboCop::ConfigLoader::DOTFILE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/config_loader.rb#20 +RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String) + +# A help class for ConfigLoader that handles configuration resolution. +# +# @api private +# +# source://rubocop//lib/rubocop/config_loader_resolver.rb#9 +class RuboCop::ConfigLoaderResolver + # When one .rubocop.yml file inherits from another .rubocop.yml file, the Include paths in the + # base configuration are relative to the directory where the base configuration file is. For the + # derived configuration, we need to make those paths relative to where the derived configuration + # file is. + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#45 + def fix_include_paths(base_config_path, hash, path, key, value); end + + # Return a recursive merge of two hashes. That is, a normal hash merge, + # with the addition that any value that is a hash, and occurs in both + # arguments, will also be merged. And so on. + # + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#99 + def merge(base_hash, derived_hash, **opts); end + + # Merges the given configuration with the default one. If + # AllCops:DisabledByDefault is true, it changes the Enabled params so that + # only cops from user configuration are enabled. If + # AllCops:EnabledByDefault is true, it changes the Enabled params so that + # only cops explicitly disabled in user configuration are disabled. + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#75 + def merge_with_default(config, config_file, unset_nil:); end + + # An `Enabled: true` setting in user configuration for a cop overrides an + # `Enabled: false` setting for its department. + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#119 + def override_department_setting_for_cops(base_hash, derived_hash); end + + # If a cop was previously explicitly enabled, but then superseded by the + # department being disabled, disable it. + # + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#136 + def override_enabled_for_disabled_departments(base_hash, derived_hash); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#19 + def resolve_inheritance(path, hash, file, debug); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#55 + def resolve_inheritance_from_gems(hash); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#10 + def resolve_requires(path, hash); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#208 + def base_configs(path, inherit_from, file); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#176 + def determine_inherit_mode(hash, key); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#152 + def disabled?(hash, department); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#156 + def duplicate_setting?(base_hash, derived_hash, key, inherited_file); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#268 + def gem_config_path(gem_name, relative_config_path); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#246 + def handle_disabled_by_default(config, new_default_configuration); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#220 + def inherited_file(path, inherit_from, file); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#204 + def merge_hashes?(base_hash, derived_hash, key); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#241 + def remote_file?(uri); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#196 + def should_merge?(mode, key); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#200 + def should_override?(mode, key); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#182 + def should_union?(derived_hash, base_hash, root_mode, key); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#264 + def transform(config, &block); end + + # @api private + # + # source://rubocop//lib/rubocop/config_loader_resolver.rb#165 + def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts); end +end + +# Raised when a RuboCop configuration file is not found. +# +# source://rubocop//lib/rubocop/config_loader.rb#10 +class RuboCop::ConfigNotFoundError < ::RuboCop::Error; end + +# This class handles obsolete configuration. +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/rule.rb#4 +class RuboCop::ConfigObsoletion + # @api private + # @return [ConfigObsoletion] a new instance of ConfigObsoletion + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#33 + def initialize(config); end + + # @api private + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#39 + def reject_obsolete!; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#19 + def rules; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#19 + def warnings; end + + private + + # Cop rules are keyed by the name of the original cop + # + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#69 + def load_cop_rules(rules); end + + # Parameter rules may apply to multiple cops and multiple parameters + # and are given as an array. Each combination is turned into a separate + # rule object. + # + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#82 + def load_parameter_rules(rules); end + + # Default rules for obsoletions are in config/obsoletion.yml + # Additional rules files can be added with `RuboCop::ConfigObsoletion.files << filename` + # + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#50 + def load_rules; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#95 + def obsoletions; end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#22 + def files; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#22 + def files=(_arg0); end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion.rb#24 + def legacy_cop_names; end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion.rb#8 +RuboCop::ConfigObsoletion::COP_RULE_CLASSES = T.let(T.unsafe(nil), Hash) + +# Encapsulation of a ConfigObsoletion rule for changing a parameter +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#7 +class RuboCop::ConfigObsoletion::ChangedEnforcedStyles < ::RuboCop::ConfigObsoletion::ParameterRule + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#14 + def message; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#10 + def violated?; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#28 + def value; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#8 +RuboCop::ConfigObsoletion::ChangedEnforcedStyles::BASE_MESSAGE = T.let(T.unsafe(nil), String) + +# Encapsulation of a ConfigObsoletion rule for changing a parameter +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#7 +class RuboCop::ConfigObsoletion::ChangedParameter < ::RuboCop::ConfigObsoletion::ParameterRule + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#10 + def message; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#8 +RuboCop::ConfigObsoletion::ChangedParameter::BASE_MESSAGE = T.let(T.unsafe(nil), String) + +# Base class for ConfigObsoletion rules relating to cops +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#7 +class RuboCop::ConfigObsoletion::CopRule < ::RuboCop::ConfigObsoletion::Rule + # @api private + # @return [CopRule] a new instance of CopRule + # + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#10 + def initialize(config, old_name); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#15 + def cop_rule?; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#19 + def message; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#8 + def old_name; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#28 + def violated?; end + + # Cop rules currently can only be failures, not warnings + # + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#24 + def warning?; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion.rb#7 +RuboCop::ConfigObsoletion::DEFAULT_RULES_FILE = T.let(T.unsafe(nil), String) + +# Encapsulation of a ConfigObsoletion rule for splitting a cop's +# functionality into multiple new cops. +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#8 +class RuboCop::ConfigObsoletion::ExtractedCop < ::RuboCop::ConfigObsoletion::CopRule + # @api private + # @return [ExtractedCop] a new instance of ExtractedCop + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#11 + def initialize(config, old_name, gem); end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#9 + def department; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#9 + def gem; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#23 + def rule_message; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#17 + def violated?; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#32 + def affected_cops; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#41 + def feature_loaded?; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion.rb#14 +RuboCop::ConfigObsoletion::PARAMETER_RULE_CLASSES = T.let(T.unsafe(nil), Hash) + +# Base class for ConfigObsoletion rules relating to parameters +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#7 +class RuboCop::ConfigObsoletion::ParameterRule < ::RuboCop::ConfigObsoletion::Rule + # @api private + # @return [ParameterRule] a new instance of ParameterRule + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#10 + def initialize(config, cop, parameter, metadata); end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 + def cop; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 + def metadata; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 + def parameter; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#17 + def parameter_rule?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#21 + def violated?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#25 + def warning?; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#39 + def alternative; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#43 + def alternatives; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#31 + def applies_to_current_ruby_version?; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#47 + def reason; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#51 + def severity; end +end + +# Encapsulation of a ConfigObsoletion rule for removing +# a previously defined cop. +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#8 +class RuboCop::ConfigObsoletion::RemovedCop < ::RuboCop::ConfigObsoletion::CopRule + # @api private + # @return [RemovedCop] a new instance of RemovedCop + # + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#13 + def initialize(config, old_name, metadata); end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#9 + def metadata; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#9 + def old_name; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#18 + def rule_message; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#36 + def alternatives; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#32 + def reason; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#11 +RuboCop::ConfigObsoletion::RemovedCop::BASE_MESSAGE = T.let(T.unsafe(nil), String) + +# Encapsulation of a ConfigObsoletion rule for renaming +# a cop or moving it to a new department. +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#8 +class RuboCop::ConfigObsoletion::RenamedCop < ::RuboCop::ConfigObsoletion::CopRule + # @api private + # @return [RenamedCop] a new instance of RenamedCop + # + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#11 + def initialize(config, old_name, new_name); end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#9 + def new_name; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#16 + def rule_message; end + + private + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#22 + def moved?; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#29 + def verb; end +end + +# Abstract base class for ConfigObsoletion rules +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/rule.rb#7 +class RuboCop::ConfigObsoletion::Rule + # @api private + # @return [Rule] a new instance of Rule + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#8 + def initialize(config); end + + # Does this rule relate to cops? + # + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#13 + def cop_rule?; end + + # Does this rule relate to parameters? + # + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#18 + def parameter_rule?; end + + # @api private + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#22 + def violated?; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#28 + def config; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#36 + def smart_loaded_path; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#30 + def to_sentence(collection, connector: T.unsafe(nil)); end +end + +# Encapsulation of a ConfigObsoletion rule for splitting a cop's +# functionality into multiple new cops. +# +# @api private +# +# source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#8 +class RuboCop::ConfigObsoletion::SplitCop < ::RuboCop::ConfigObsoletion::CopRule + # @api private + # @return [SplitCop] a new instance of SplitCop + # + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#11 + def initialize(config, old_name, metadata); end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#9 + def metadata; end + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#16 + def rule_message; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#22 + def alternatives; end +end + +# This class handles collecting the options for regenerating a TODO file. +# +# @api private +# +# source://rubocop//lib/rubocop/config_regeneration.rb#6 +class RuboCop::ConfigRegeneration + # Get options from the comment in the TODO file, and parse them as options + # + # @api private + # + # source://rubocop//lib/rubocop/config_regeneration.rb#12 + def options; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/config_regeneration.rb#29 + def generation_command; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/config_regeneration.rb#25 + def todo_exists?; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_regeneration.rb#7 +RuboCop::ConfigRegeneration::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/config_regeneration.rb#8 +RuboCop::ConfigRegeneration::COMMAND_REGEX = T.let(T.unsafe(nil), Regexp) + +# @api private +# +# source://rubocop//lib/rubocop/config_regeneration.rb#9 +RuboCop::ConfigRegeneration::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) + +# Handles caching of configurations and association of inspected +# ruby files to configurations. +# +# source://rubocop//lib/rubocop/config_store.rb#6 +class RuboCop::ConfigStore + # @return [ConfigStore] a new instance of ConfigStore + # + # source://rubocop//lib/rubocop/config_store.rb#10 + def initialize; end + + # If type (file/dir) is known beforehand, + # prefer using #for_file or #for_dir for improved performance + # + # source://rubocop//lib/rubocop/config_store.rb#52 + def for(file_or_dir); end + + # source://rubocop//lib/rubocop/config_store.rb#61 + def for_dir(dir); end + + # source://rubocop//lib/rubocop/config_store.rb#42 + def for_file(file); end + + # source://rubocop//lib/rubocop/config_store.rb#46 + def for_pwd; end + + # source://rubocop//lib/rubocop/config_store.rb#33 + def force_default_config!; end + + # source://rubocop//lib/rubocop/config_store.rb#28 + def options_config=(options_config); end + + # source://rubocop//lib/rubocop/config_store.rb#37 + def unvalidated; end + + # Returns the value of attribute validated. + # + # source://rubocop//lib/rubocop/config_store.rb#7 + def validated; end + + # Returns the value of attribute validated. + # + # source://rubocop//lib/rubocop/config_store.rb#7 + def validated?; end +end + +# Handles validation of configuration, for example cop names, parameter +# names, and Ruby versions. +# +# source://rubocop//lib/rubocop/config_validator.rb#8 +class RuboCop::ConfigValidator + extend ::Forwardable + + # @return [ConfigValidator] a new instance of ConfigValidator + # + # source://rubocop//lib/rubocop/config_validator.rb#27 + def initialize(config); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def for_all_cops(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def smart_loaded_path(*args, **_arg1, &block); end + + # source://rubocop//lib/rubocop/config_validator.rb#63 + def target_ruby_version; end + + # source://rubocop//lib/rubocop/config_validator.rb#33 + def validate; end + + # Validations that should only be run after all config resolving has + # taken place: + # * The target ruby version is only checked once the entire inheritance + # chain has been loaded so that only the final value is validated, and + # any obsolete but overridden values are ignored. + # + # source://rubocop//lib/rubocop/config_validator.rb#59 + def validate_after_resolution; end + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_validator.rb#67 + def validate_section_presence(name); end + + private + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_validator.rb#104 + def alert_about_unrecognized_cops(invalid_cop_names); end + + # source://rubocop//lib/rubocop/config_validator.rb#253 + def check_cop_config_value(hash, parent = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/config_validator.rb#77 + def check_obsoletions; end + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_validator.rb#84 + def check_target_ruby; end + + # source://rubocop//lib/rubocop/config_validator.rb#195 + def each_invalid_parameter(cop_name); end + + # source://rubocop//lib/rubocop/config_validator.rb#120 + def list_unknown_cops(invalid_cop_names); end + + # FIXME: Handling colors in exception messages like this is ugly. + # + # source://rubocop//lib/rubocop/config_validator.rb#266 + def msg_not_boolean(parent, key, value); end + + # source://rubocop//lib/rubocop/config_validator.rb#242 + def reject_conflicting_safe_settings; end + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_validator.rb#233 + def reject_mutually_exclusive_defaults; end + + # source://rubocop//lib/rubocop/config_validator.rb#142 + def suggestion(name); end + + # Returns the value of attribute target_ruby. + # + # source://rubocop//lib/rubocop/config_validator.rb#75 + def target_ruby; end + + # source://rubocop//lib/rubocop/config_validator.rb#207 + def validate_enforced_styles(valid_cop_names); end + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_validator.rb#169 + def validate_new_cops_parameter; end + + # source://rubocop//lib/rubocop/config_validator.rb#180 + def validate_parameter_names(valid_cop_names); end + + # source://rubocop//lib/rubocop/config_validator.rb#227 + def validate_support_and_has_list(name, formats, valid); end + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/config_validator.rb#158 + def validate_syntax_cop; end +end + +# @api private +# +# source://rubocop//lib/rubocop/config_validator.rb#12 +RuboCop::ConfigValidator::COMMON_PARAMS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/config_validator.rb#22 +RuboCop::ConfigValidator::CONFIG_CHECK_DEPARTMENTS = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/config_validator.rb#21 +RuboCop::ConfigValidator::CONFIG_CHECK_KEYS = T.let(T.unsafe(nil), Set) + +# @api private +# +# source://rubocop//lib/rubocop/config_validator.rb#14 +RuboCop::ConfigValidator::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/config_validator.rb#18 +RuboCop::ConfigValidator::NEW_COPS_VALUES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/util.rb#4 +module RuboCop::Cop; end + +# This module checks for nodes that should be aligned to the left or right. +# This amount is determined by the instance variable @column_delta. +# +# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#7 +module RuboCop::Cop::Alignment + private + + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#26 + def check_alignment(items, base_column = T.unsafe(nil)); end + + # Returns the value of attribute column_delta. + # + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#12 + def column_delta; end + + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#14 + def configured_indentation_width; end + + # @api public + # + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#58 + def display_column(range); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#45 + def each_bad_alignment(items, base_column); end + + # @deprecated Use processed_source.comment_at_line(line) + # + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#69 + def end_of_line_comment(line); end + + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#18 + def indentation(node); end + + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#22 + def offset(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#74 + def register_offense(offense_node, message_node); end + + # @api public + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#64 + def within?(inner, outer); end +end + +# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#10 +RuboCop::Cop::Alignment::SPACE = T.let(T.unsafe(nil), String) + +# This class does autocorrection of nodes that should just be moved to +# the left or to the right, amount being determined by the instance +# variable column_delta. +# +# source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#8 +class RuboCop::Cop::AlignmentCorrector + extend ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::Alignment + + class << self + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#29 + def align_end(corrector, processed_source, node, align_to); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#15 + def correct(corrector, processed_source, node, column_delta); end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#13 + def processed_source; end + + private + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#124 + def alignment_column(align_to); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#40 + def autocorrect_line(corrector, line_begin_pos, expr, column_delta, taboo_ranges); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#81 + def block_comment_within?(expr); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#87 + def calculate_range(expr, line_begin_pos, column_delta); end + + # Some special kinds of string literals are not composed of literal + # characters between two delimiters: + # - The source map of `?a` responds to :begin and :end but its end is + # nil. + # - The source map of `__FILE__` responds to neither :begin nor :end. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#75 + def delimited_string_literal?(node); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#110 + def each_line(expr); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#60 + def inside_string_range(node); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#54 + def inside_string_ranges(node); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#99 + def remove(range, corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#118 + def whitespace_range(node); end + end +end + +# This module encapsulates the ability to allow certain identifiers in a cop. +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#6 +module RuboCop::Cop::AllowedIdentifiers + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#9 + def allowed_identifier?(name); end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#13 + def allowed_identifiers; end +end + +# if a variable starts with a sigil it will be removed +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#7 +RuboCop::Cop::AllowedIdentifiers::SIGILS = T.let(T.unsafe(nil), String) + +# This module encapsulates the ability to allow certain methods when +# parsing. Even if the code is in offense, if it contains methods +# that are allowed. This module is equivalent to the IgnoredMethods module, +# which will be deprecated in RuboCop 2.0. +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#9 +module RuboCop::Cop::AllowedMethods + private + + # @api public + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#13 + def allowed_method?(name); end + + # @api public + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#21 + def allowed_methods; end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#29 + def cop_config_allowed_methods; end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#33 + def cop_config_deprecated_values; end + + # @api public + # @deprecated Use allowed_method? instead + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#13 + def ignored_method?(name); end +end + +# This module encapsulates the ability to ignore certain lines when +# parsing. +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#7 +module RuboCop::Cop::AllowedPattern + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 + def allowed_line?(line); end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#30 + def allowed_patterns; end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#46 + def cop_config_deprecated_methods_values; end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#40 + def cop_config_patterns_values; end + + # @deprecated Use allowed_line? instead + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 + def ignored_line?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#23 + def matches_allowed_pattern?(line); end + + # @deprecated Use matches_allowed_pattern?? instead + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#23 + def matches_ignored_pattern?(line); end +end + +# This module encapsulates the ability to allow certain receivers in a cop. +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#6 +module RuboCop::Cop::AllowedReceivers + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#7 + def allowed_receiver?(receiver); end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#29 + def allowed_receivers; end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#13 + def receiver_name(receiver); end +end + +# Error raised when an unqualified cop name is used that could +# refer to two or more cops under different departments +# +# source://rubocop//lib/rubocop/cop/registry.rb#7 +class RuboCop::Cop::AmbiguousCopName < ::RuboCop::Error + # @return [AmbiguousCopName] a new instance of AmbiguousCopName + # + # source://rubocop//lib/rubocop/cop/registry.rb#11 + def initialize(name, origin, badges); end +end + +# source://rubocop//lib/rubocop/cop/registry.rb#8 +RuboCop::Cop::AmbiguousCopName::MSG = T.let(T.unsafe(nil), String) + +# Representation of an annotation comment in source code (eg. `# TODO: blah blah blah`). +# +# source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#6 +class RuboCop::Cop::AnnotationComment + extend ::Forwardable + + # @param comment [Parser::Source::Comment] + # @param keywords [Array<String>] + # @return [AnnotationComment] a new instance of AnnotationComment + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#13 + def initialize(comment, keywords); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#19 + def annotation?; end + + # Returns the range bounds for just the annotation + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#31 + def bounds; end + + # Returns the value of attribute colon. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 + def colon; end + + # Returns the value of attribute comment. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 + def comment; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#23 + def correct?(colon:); end + + # Returns the value of attribute keyword. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 + def keyword; end + + # Returns the value of attribute margin. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 + def margin; end + + # Returns the value of attribute note. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 + def note; end + + # Returns the value of attribute space. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 + def space; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#67 + def just_keyword_of_sentence?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#63 + def keyword_appearance?; end + + # Returns the value of attribute keywords. + # + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#39 + def keywords; end + + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#53 + def regex; end + + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#41 + def split_comment(comment); end +end + +# source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#50 +RuboCop::Cop::AnnotationComment::KEYWORDS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) + +# Handles the `MinSize` configuration option for array-based cops +# `Style/SymbolArray` and `Style/WordArray`, which check for use of the +# relevant percent literal syntax such as `%i[...]` and `%w[...]` +# +# source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#8 +module RuboCop::Cop::ArrayMinSize + private + + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#19 + def array_style_detected(style, ary_size); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#11 + def below_array_length?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#38 + def largest_brackets_size(style, ary_size); end + + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#15 + def min_size_config; end + + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#48 + def smallest_percent_size(style, ary_size); end +end + +# Common code for ordinary arrays with [] that can be written with % +# syntax. +# +# source://rubocop//lib/rubocop/cop/mixin/array_syntax.rb#7 +module RuboCop::Cop::ArraySyntax + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/array_syntax.rb#10 + def bracketed_array_of?(element_type, node); end +end + +# extend this module to signal autocorrection support +# +# source://rubocop//lib/rubocop/cop/mixin/auto_corrector.rb#6 +module RuboCop::Cop::AutoCorrector + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/auto_corrector.rb#7 + def support_autocorrect?; end +end + +# This module encapsulates the logic for autocorrect behavior for a cop. +# +# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#6 +module RuboCop::Cop::AutocorrectLogic + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#7 + def autocorrect?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#31 + def autocorrect_enabled?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#15 + def autocorrect_requested?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#11 + def autocorrect_with_disable_uncorrectable?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#19 + def correctable?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#23 + def disable_uncorrectable?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#27 + def safe_autocorrect?; end + + private + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#46 + def disable_offense(offense_range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#113 + def disable_offense_at_end_of_line(range, eol_comment); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#117 + def disable_offense_before_and_after(range_by_lines); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#56 + def disable_offense_with_eol_or_surround_comment(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#109 + def max_line_length; end + + # Expand the given range to include all of any lines it covers. Does not + # include newline at end of the last line. + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#99 + def range_by_lines(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#90 + def range_of_first_line(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#67 + def surrounding_heredoc(offense_range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#78 + def surrounding_percent_array(offense_range); end +end + +# Identifier of all cops containing a department and cop name. +# +# All cops are identified by their badge. For example, the badge for +# `RuboCop::Cop::Layout::IndentationStyle` is `Layout/IndentationStyle`. +# Badges can be parsed as either `Department/CopName` or just `CopName` to +# allow for badge references in source files that omit the department for +# RuboCop to infer. +# +# source://rubocop//lib/rubocop/cop/badge.rb#12 +class RuboCop::Cop::Badge + # @return [Badge] a new instance of Badge + # + # source://rubocop//lib/rubocop/cop/badge.rb#34 + def initialize(class_name_parts); end + + # source://rubocop//lib/rubocop/cop/badge.rb#41 + def ==(other); end + + # Returns the value of attribute cop_name. + # + # source://rubocop//lib/rubocop/cop/badge.rb#13 + def cop_name; end + + # Returns the value of attribute department. + # + # source://rubocop//lib/rubocop/cop/badge.rb#13 + def department; end + + # Returns the value of attribute department_name. + # + # source://rubocop//lib/rubocop/cop/badge.rb#13 + def department_name; end + + # source://rubocop//lib/rubocop/cop/badge.rb#41 + def eql?(other); end + + # source://rubocop//lib/rubocop/cop/badge.rb#46 + def hash; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/badge.rb#51 + def match?(other); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/badge.rb#59 + def qualified?; end + + # source://rubocop//lib/rubocop/cop/badge.rb#55 + def to_s; end + + # source://rubocop//lib/rubocop/cop/badge.rb#63 + def with_department(department); end + + class << self + # source://rubocop//lib/rubocop/cop/badge.rb#27 + def camel_case(name_part); end + + # source://rubocop//lib/rubocop/cop/badge.rb#15 + def for(class_name); end + + # source://rubocop//lib/rubocop/cop/badge.rb#23 + def parse(identifier); end + end +end + +# A scaffold for concrete cops. +# +# The Cop::Base class is meant to be extended. +# +# Cops track offenses and can autocorrect them on the fly. +# +# A commissioner object is responsible for traversing the AST and invoking +# the specific callbacks on each cop. +# +# First the callback `on_new_investigation` is called; +# if a cop needs to do its own processing of the AST or depends on +# something else. +# +# Then callbacks like `on_def`, `on_send` (see AST::Traversal) are called +# with their respective nodes. +# +# Finally the callback `on_investigation_end` is called. +# +# Within these callbacks, cops are meant to call `add_offense` or +# `add_global_offense`. Use the `processed_source` method to +# get the currently processed source being investigated. +# +# In case of invalid syntax / unparsable content, +# the callback `on_other_file` is called instead of all the other +# `on_...` callbacks. +# +# Private methods are not meant for custom cops consumption, +# nor are any instance variables. +# +# source://rubocop//lib/rubocop/cop/base.rb#34 +class RuboCop::Cop::Base + include ::RuboCop::AST::Sexp + include ::RuboCop::PathUtil + include ::RuboCop::Cop::Util + include ::RuboCop::Cop::IgnoredNode + include ::RuboCop::Cop::AutocorrectLogic + extend ::RuboCop::AST::Sexp + extend ::RuboCop::AST::NodePattern::Macros + extend ::RuboCop::ExcludeLimit + + # @return [Base] a new instance of Base + # + # source://rubocop//lib/rubocop/cop/base.rb#129 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#239 + def active_support_extensions_enabled?; end + + # Adds an offense that has no particular location. + # No correction can be applied to global offenses + # + # source://rubocop//lib/rubocop/cop/base.rb#162 + def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end + + # Adds an offense on the specified range (or node with an expression) + # Unless that offense is disabled for this range, a corrector will be yielded + # to provide the cop the opportunity to autocorrect the offense. + # If message is not specified, the method `message` will be called. + # + # source://rubocop//lib/rubocop/cop/base.rb#172 + def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end + + # Called before any investigation + # + # @api private + # + # source://rubocop//lib/rubocop/cop/base.rb#295 + def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/base.rb#280 + def callbacks_needed; end + + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/cop/base.rb#43 + def config; end + + # source://rubocop//lib/rubocop/cop/base.rb#223 + def config_to_allow_offenses; end + + # source://rubocop//lib/rubocop/cop/base.rb#227 + def config_to_allow_offenses=(hash); end + + # Configuration Helpers + # + # source://rubocop//lib/rubocop/cop/base.rb#217 + def cop_config; end + + # source://rubocop//lib/rubocop/cop/base.rb#209 + def cop_name; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#251 + def excluded_file?(file); end + + # This method should be overridden when a cop's behavior depends + # on state that lives outside of these locations: + # + # (1) the file under inspection + # (2) the cop's source code + # (3) the config (eg a .rubocop.yml file) + # + # For example, some cops may want to look at other parts of + # the codebase being inspected to find violations. A cop may + # use the presence or absence of file `foo.rb` to determine + # whether a certain violation exists in `bar.rb`. + # + # Overriding this method allows the cop to indicate to RuboCop's + # ResultCache system when those external dependencies change, + # ie when the ResultCache should be invalidated. + # + # source://rubocop//lib/rubocop/cop/base.rb#205 + def external_dependency_checksum; end + + # source://rubocop//lib/rubocop/cop/base.rb#308 + def inspect; end + + # Gets called if no message is specified when calling `add_offense` or + # `add_global_offense` + # Cops are discouraged to override this; instead pass your message directly + # + # source://rubocop//lib/rubocop/cop/base.rb#156 + def message(_range = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/base.rb#209 + def name; end + + # @deprecated Make potential errors with previous API more obvious + # + # source://rubocop//lib/rubocop/cop/base.rb#271 + def offenses; end + + # Called after all on_... have been called + # When refining this method, always call `super` + # + # source://rubocop//lib/rubocop/cop/base.rb#143 + def on_investigation_end; end + + # Called before all on_... have been called + # When refining this method, always call `super` + # + # source://rubocop//lib/rubocop/cop/base.rb#137 + def on_new_investigation; end + + # Called instead of all on_... callbacks for unrecognized files / syntax errors + # When refining this method, always call `super` + # + # source://rubocop//lib/rubocop/cop/base.rb#149 + def on_other_file; end + + # There should be very limited reasons for a Cop to do it's own parsing + # + # source://rubocop//lib/rubocop/cop/base.rb#256 + def parse(source, path = T.unsafe(nil)); end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/base.rb#43 + def processed_source; end + + # Called between investigations + # + # @api private + # + # source://rubocop//lib/rubocop/cop/base.rb#262 + def ready; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#243 + def relevant_file?(file); end + + # source://rubocop//lib/rubocop/cop/base.rb#235 + def target_rails_version; end + + # source://rubocop//lib/rubocop/cop/base.rb#231 + def target_ruby_version; end + + private + + # source://rubocop//lib/rubocop/cop/base.rb#436 + def annotate(message); end + + # source://rubocop//lib/rubocop/cop/base.rb#320 + def apply_correction(corrector); end + + # @return [Symbol] offense status + # + # source://rubocop//lib/rubocop/cop/base.rb#400 + def attempt_correction(range, corrector); end + + # Reserved for Cop::Cop + # + # source://rubocop//lib/rubocop/cop/base.rb#316 + def callback_argument(range); end + + # Called to complete an investigation + # + # source://rubocop//lib/rubocop/cop/base.rb#349 + def complete_investigation; end + + # @return [Symbol, Corrector] offense status + # + # source://rubocop//lib/rubocop/cop/base.rb#374 + def correct(range); end + + # source://rubocop//lib/rubocop/cop/base.rb#334 + def current_corrector; end + + # Reserved for Commissioner: + # + # source://rubocop//lib/rubocop/cop/base.rb#326 + def current_offense_locations; end + + # source://rubocop//lib/rubocop/cop/base.rb#338 + def current_offenses; end + + # source://rubocop//lib/rubocop/cop/base.rb#330 + def currently_disabled_lines; end + + # source://rubocop//lib/rubocop/cop/base.rb#464 + def custom_severity; end + + # source://rubocop//lib/rubocop/cop/base.rb#460 + def default_severity; end + + # source://rubocop//lib/rubocop/cop/base.rb#414 + def disable_uncorrectable(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#450 + def enabled_line?(line_number); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#442 + def file_name_matches_any?(file, parameter, default_result); end + + # source://rubocop//lib/rubocop/cop/base.rb#432 + def find_message(range, message); end + + # source://rubocop//lib/rubocop/cop/base.rb#456 + def find_severity(_range, severity); end + + # source://rubocop//lib/rubocop/cop/base.rb#477 + def range_for_original(range); end + + # source://rubocop//lib/rubocop/cop/base.rb#421 + def range_from_node_or_range(node_or_range); end + + # source://rubocop//lib/rubocop/cop/base.rb#369 + def reset_investigation; end + + # @return [Symbol] offense status + # + # source://rubocop//lib/rubocop/cop/base.rb#389 + def use_corrector(range, corrector); end + + class << self + # List of cops that should not try to autocorrect at the same + # time as this cop + # + # @api public + # @return [Array<RuboCop::Cop::Base>] + # + # source://rubocop//lib/rubocop/cop/base.rb#59 + def autocorrect_incompatible_with; end + + # Naming + # + # source://rubocop//lib/rubocop/cop/base.rb#89 + def badge; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/base.rb#285 + def callbacks_needed; end + + # source://rubocop//lib/rubocop/cop/base.rb#93 + def cop_name; end + + # source://rubocop//lib/rubocop/cop/base.rb#97 + def department; end + + # Cops (other than builtin) are encouraged to implement this + # + # @api public + # @return [String, nil] + # + # source://rubocop//lib/rubocop/cop/base.rb#67 + def documentation_url; end + + # Call for abstract Cop classes + # + # source://rubocop//lib/rubocop/cop/base.rb#77 + def exclude_from_registry; end + + # @private + # + # source://rubocop//lib/rubocop/cop/base.rb#71 + def inherited(subclass); end + + # Override and return the Force class(es) you need to join + # + # source://rubocop//lib/rubocop/cop/base.rb#114 + def joining_forces; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#101 + def lint?; end + + # Returns true if the cop name or the cop namespace matches any of the + # given names. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#107 + def match?(given_names); end + + # Returns if class supports autocorrect. + # It is recommended to extend AutoCorrector instead of overriding + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#83 + def support_autocorrect?; end + + # Override if your cop should be called repeatedly for multiple investigations + # Between calls to `on_new_investigation` and `on_investigation_end`, + # the result of `processed_source` will remain constant. + # You should invalidate any caches that depend on the current `processed_source` + # in the `on_new_investigation` callback. + # If your cop does autocorrections, be aware that your instance may be called + # multiple times with the same `processed_source.path` but different content. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#125 + def support_multiple_source?; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/base.rb#360 + def builtin?; end + + # source://rubocop//lib/rubocop/cop/base.rb#342 + def restrict_on_send; end + end +end + +# source://rubocop//lib/rubocop/cop/base.rb#346 +RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array) + +# Reports of an investigation. +# Immutable +# Consider creation API private +# +# source://rubocop//lib/rubocop/cop/base.rb#48 +class RuboCop::Cop::Base::InvestigationReport < ::Struct + # Returns the value of attribute cop + # + # @return [Object] the current value of cop + def cop; end + + # Sets the attribute cop + # + # @param value [Object] the value to set the attribute cop to. + # @return [Object] the newly set value + def cop=(_); end + + # Returns the value of attribute corrector + # + # @return [Object] the current value of corrector + def corrector; end + + # Sets the attribute corrector + # + # @param value [Object] the value to set the attribute corrector to. + # @return [Object] the newly set value + def corrector=(_); end + + # Returns the value of attribute offenses + # + # @return [Object] the current value of offenses + def offenses; end + + # Sets the attribute offenses + # + # @param value [Object] the value to set the attribute offenses to. + # @return [Object] the newly set value + def offenses=(_); end + + # Returns the value of attribute processed_source + # + # @return [Object] the current value of processed_source + def processed_source; end + + # Sets the attribute processed_source + # + # @param value [Object] the value to set the attribute processed_source to. + # @return [Object] the newly set value + def processed_source=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# List of methods names to restrict calls for `on_send` / `on_csend` +# +# source://rubocop//lib/rubocop/cop/base.rb#51 +RuboCop::Cop::Base::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#5 +module RuboCop::Cop::Bundler; end + +# A Gem's requirements should be listed only once in a Gemfile. +# +# @example +# # bad +# gem 'rubocop' +# gem 'rubocop' +# +# # bad +# group :development do +# gem 'rubocop' +# end +# +# group :test do +# gem 'rubocop' +# end +# +# # good +# group :development, :test do +# gem 'rubocop' +# end +# +# # good +# gem 'rubocop', groups: [:development, :test] +# +# # good - conditional declaration +# if Dir.exist?(local) +# gem 'rubocop', path: local +# elsif ENV['RUBOCOP_VERSION'] == 'master' +# gem 'rubocop', git: 'https://github.com/rubocop/rubocop.git' +# else +# gem 'rubocop', '~> 0.90.0' +# end +# +# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#39 +class RuboCop::Cop::Bundler::DuplicatedGem < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#58 + def gem_declarations(param0); end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#45 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#67 + def conditional_declaration?(nodes); end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#60 + def duplicated_gem_nodes; end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#81 + def register_offense(node, gem_name, line_of_first_occurrence); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#75 + def within_conditional?(node, conditional_node); end +end + +# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#42 +RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) + +# A Gem group, or a set of groups, should be listed only once in a Gemfile. +# +# For example, if the values of `source`, `git`, `platforms`, or `path` +# surrounding `group` are different, no offense will be registered: +# +# [source,ruby] +# ----- +# platforms :ruby do +# group :default do +# gem 'openssl' +# end +# end +# +# platforms :jruby do +# group :default do +# gem 'jruby-openssl' +# end +# end +# ----- +# +# @example +# # bad +# group :development do +# gem 'rubocop' +# end +# +# group :development do +# gem 'rubocop-rails' +# end +# +# # bad (same set of groups declared twice) +# group :development, :test do +# gem 'rubocop' +# end +# +# group :test, :development do +# gem 'rspec' +# end +# +# # good +# group :development do +# gem 'rubocop' +# end +# +# group :development, :test do +# gem 'rspec' +# end +# +# # good +# gem 'rubocop', groups: [:development, :test] +# gem 'rspec', groups: [:development, :test] +# +# source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#58 +class RuboCop::Cop::Bundler::DuplicatedGroup < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#66 + def group_declarations(param0); end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#68 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#82 + def duplicated_group_nodes; end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#105 + def find_source_key(node); end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#115 + def group_attributes(node); end + + # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#94 + def register_offense(node, group_name, line_of_first_occurrence); end +end + +# source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#61 +RuboCop::Cop::Bundler::DuplicatedGroup::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#63 +RuboCop::Cop::Bundler::DuplicatedGroup::SOURCE_BLOCK_NAMES = T.let(T.unsafe(nil), Array) + +# Each gem in the Gemfile should have a comment explaining +# its purpose in the project, or the reason for its version +# or source. +# +# The optional "OnlyFor" configuration array +# can be used to only register offenses when the gems +# use certain options or have version specifiers. +# +# When "version_specifiers" is included, a comment +# will be enforced if the gem has any version specifier. +# +# When "restrictive_version_specifiers" is included, a comment +# will be enforced if the gem has a version specifier that +# holds back the version of the gem. +# +# For any other value in the array, a comment will be enforced for +# a gem if an option by the same name is present. +# A useful use case is to enforce a comment when using +# options that change the source of a gem: +# +# - `bitbucket` +# - `gist` +# - `git` +# - `github` +# - `source` +# +# For a full list of options supported by bundler, +# see https://bundler.io/man/gemfile.5.html +# . +# +# @example OnlyFor: [] (default) +# # bad +# +# gem 'foo' +# +# # good +# +# # Helpers for the foo things. +# gem 'foo' +# @example OnlyFor: ['version_specifiers'] +# # bad +# +# gem 'foo', '< 2.1' +# +# # good +# +# # Version 2.1 introduces breaking change baz +# gem 'foo', '< 2.1' +# @example OnlyFor: ['restrictive_version_specifiers'] +# # bad +# +# gem 'foo', '< 2.1' +# +# # good +# +# gem 'foo', '>= 1.0' +# +# # Version 2.1 introduces breaking change baz +# gem 'foo', '< 2.1' +# @example OnlyFor: ['version_specifiers', 'github'] +# # bad +# +# gem 'foo', github: 'some_account/some_fork_of_foo' +# +# gem 'bar', '< 2.1' +# +# # good +# +# # Using this fork because baz +# gem 'foo', github: 'some_account/some_fork_of_foo' +# +# # Version 2.1 introduces breaking change baz +# gem 'bar', '< 2.1' +# +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#83 +class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::VisibilityHelp + include ::RuboCop::Cop::DefNode + include ::RuboCop::Cop::GemDeclaration + + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#94 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#135 + def checked_options_present?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#109 + def commented?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#105 + def commented_any_descendant?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#159 + def contains_checked_options?(node); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#163 + def gem_options(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#130 + def ignored_gem?(node); end + + # The args node1 & node2 may represent a RuboCop::AST::Node + # or a Parser::Source::Comment. Both respond to #loc. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#116 + def precede?(node1, node2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#126 + def preceding_comment?(node1, node2); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#120 + def preceding_lines(node); end + + # Version specifications that restrict all updates going forward. This excludes versions + # like ">= 1.0" or "!= 2.0.3". + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#152 + def restrictive_version_specified_gem?(node); end + + # Besides the gem name, all other *positional* arguments to `gem` are version specifiers, + # as long as it has one we know there's at least one version specifier. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#145 + def version_specified_gem?(node); end +end + +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#88 +RuboCop::Cop::Bundler::GemComment::CHECKED_OPTIONS_CONFIG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#87 +RuboCop::Cop::Bundler::GemComment::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#91 +RuboCop::Cop::Bundler::GemComment::RESTRICTIVE_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#90 +RuboCop::Cop::Bundler::GemComment::RESTRICTIVE_VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#92 +RuboCop::Cop::Bundler::GemComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#89 +RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) + +# Verifies that a project contains Gemfile or gems.rb file and correct +# associated lock file based on the configuration. +# +# @example EnforcedStyle: Gemfile (default) +# # bad +# Project contains gems.rb and gems.locked files +# +# # bad +# Project contains Gemfile and gems.locked file +# +# # good +# Project contains Gemfile and Gemfile.lock +# @example EnforcedStyle: gems.rb +# # bad +# Project contains Gemfile and Gemfile.lock files +# +# # bad +# Project contains gems.rb and Gemfile.lock file +# +# # good +# Project contains gems.rb and gems.locked files +# +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#28 +class RuboCop::Cop::Bundler::GemFilename < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#43 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#88 + def expected_gemfile?(basename); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#80 + def gemfile_offense?(basename); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#93 + def gemfile_required?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#84 + def gems_rb_offense?(basename); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#97 + def gems_rb_required?; end + + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#58 + def register_gemfile_offense(file_path, basename); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#69 + def register_gems_rb_offense(file_path, basename); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#53 + def register_offense(file_path, basename); end +end + +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#40 +RuboCop::Cop::Bundler::GemFilename::GEMFILE_FILES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#41 +RuboCop::Cop::Bundler::GemFilename::GEMS_RB_FILES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#36 +RuboCop::Cop::Bundler::GemFilename::MSG_GEMFILE_MISMATCHED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#32 +RuboCop::Cop::Bundler::GemFilename::MSG_GEMFILE_REQUIRED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#38 +RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_MISMATCHED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#34 +RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_REQUIRED = T.let(T.unsafe(nil), String) + +# Enforce that Gem version specifications or a commit reference (branch, +# ref, or tag) are either required or forbidden. +# +# @example EnforcedStyle: required (default) +# # bad +# gem 'rubocop' +# +# # good +# gem 'rubocop', '~> 1.12' +# +# # good +# gem 'rubocop', '>= 1.10.0' +# +# # good +# gem 'rubocop', '>= 1.5.0', '< 1.10.0' +# +# # good +# gem 'rubocop', branch: 'feature-branch' +# +# # good +# gem 'rubocop', ref: '74b5bfbb2c4b6fd6cdbbc7254bd7084b36e0c85b' +# +# # good +# gem 'rubocop', tag: 'v1.17.0' +# @example EnforcedStyle: forbidden +# # good +# gem 'rubocop' +# +# # bad +# gem 'rubocop', '~> 1.12' +# +# # bad +# gem 'rubocop', '>= 1.10.0' +# +# # bad +# gem 'rubocop', '>= 1.5.0', '< 1.10.0' +# +# # bad +# gem 'rubocop', branch: 'feature-branch' +# +# # bad +# gem 'rubocop', ref: '74b5bfbb2c4b6fd6cdbbc7254bd7084b36e0c85b' +# +# # bad +# gem 'rubocop', tag: 'v1.17.0' +# +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#53 +class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::GemDeclaration + + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#67 + def includes_commit_reference?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#62 + def includes_version_specification?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#71 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#85 + def allowed_gem?(node); end + + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#89 + def allowed_gems; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#113 + def forbidden_offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#119 + def forbidden_style?; end + + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#93 + def message(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#103 + def offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#107 + def required_offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#123 + def required_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#127 + def version_specification?(expression); end +end + +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#58 +RuboCop::Cop::Bundler::GemVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#57 +RuboCop::Cop::Bundler::GemVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#59 +RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp) + +# Passing symbol arguments to `source` (e.g. `source :rubygems`) is +# deprecated because they default to using HTTP requests. Instead, specify +# `'https://rubygems.org'` if possible, or `'http://rubygems.org'` if not. +# +# When autocorrecting, this cop will replace symbol arguments with +# `'https://rubygems.org'`. +# +# This cop will not replace existing sources that use `http://`. This may +# be necessary where HTTPS is not available. For example, where using an +# internal gem server via an intranet, or where HTTPS is prohibited. +# However, you should strongly prefer `https://` where possible, as it is +# more secure. +# +# If you don't allow `http://`, please set `false` to `AllowHttpProtocol`. +# This option is `true` by default for safe autocorrection. +# +# @example +# # bad +# source :gemcutter +# source :rubygems +# source :rubyforge +# +# # good +# source 'https://rubygems.org' # strongly recommended +# @example AllowHttpProtocol: true (default) +# +# # good +# source 'http://rubygems.org' # use only if HTTPS is unavailable +# @example AllowHttpProtocol: false +# +# # bad +# source 'http://rubygems.org' +# +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#41 +class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#54 + def insecure_protocol_source?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#59 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#80 + def allow_http_protocol?; end +end + +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#45 +RuboCop::Cop::Bundler::InsecureProtocolSource::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#49 +RuboCop::Cop::Bundler::InsecureProtocolSource::MSG_HTTP_PROTOCOL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#51 +RuboCop::Cop::Bundler::InsecureProtocolSource::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Gems should be alphabetically sorted within groups. +# +# @example +# # bad +# gem 'rubocop' +# gem 'rspec' +# +# # good +# gem 'rspec' +# gem 'rubocop' +# +# # good +# gem 'rubocop' +# +# gem 'rspec' +# @example TreatCommentsAsGroupSeparators: true (default) +# # good +# # For code quality +# gem 'rubocop' +# # For tests +# gem 'rspec' +# @example TreatCommentsAsGroupSeparators: false +# # bad +# # For code quality +# gem 'rubocop' +# # For tests +# gem 'rspec' +# +# source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#35 +class RuboCop::Cop::Bundler::OrderedGems < ::RuboCop::Cop::Base + include ::RuboCop::Cop::OrderedGemNode + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#64 + def gem_declarations(param0); end + + # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#43 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#57 + def previous_declaration(node); end +end + +# source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#39 +RuboCop::Cop::Bundler::OrderedGems::MSG = T.let(T.unsafe(nil), String) + +# Common functionality for checking assignment nodes. +# +# source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#6 +module RuboCop::Cop::CheckAssignment + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_and_asgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_masgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_op_asgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + def on_or_asgn(node); end + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#19 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#29 + def extract_rhs(node); end + + class << self + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#29 + def extract_rhs(node); end + end +end + +# This mixin detects collections that are safe to "break" +# by inserting new lines. This is useful for breaking +# up long lines. +# +# Let's look at hashes as an example: +# +# We know hash keys are safe to break across lines. We can add +# linebreaks into hashes on lines longer than the specified maximum. +# Then in further passes cops can clean up the multi-line hash. +# For example, say the maximum line length is as indicated below: +# +# | +# v +# {foo: "0000000000", bar: "0000000000", baz: "0000000000"} +# +# In a LineLength autocorrection pass, a line is added before +# the first key that exceeds the column limit: +# +# {foo: "0000000000", bar: "0000000000", +# baz: "0000000000"} +# +# In a MultilineHashKeyLineBreaks pass, lines are inserted +# before all keys: +# +# {foo: "0000000000", +# bar: "0000000000", +# baz: "0000000000"} +# +# Then in future passes FirstHashElementLineBreak, +# MultilineHashBraceLayout, and TrailingCommaInHashLiteral will +# manipulate as well until we get: +# +# { +# foo: "0000000000", +# bar: "0000000000", +# baz: "0000000000", +# } +# +# (Note: Passes may not happen exactly in this sequence.) +# +# source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#44 +module RuboCop::Cop::CheckLineBreakable + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#45 + def extract_breakable_node(node, max); end + + private + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#200 + def all_on_same_line?(nodes); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#220 + def already_on_multiple_lines?(node); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#133 + def breakable_collection?(node, elements); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#187 + def children_could_be_broken_up?(children); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#150 + def contained_by_breakable_collection_on_same_line?(node); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#170 + def contained_by_multiline_collection_that_could_be_broken_up?(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#60 + def extract_breakable_node_from_elements(node, elements, max); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#72 + def extract_first_element_over_column_limit(node, elements, max); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#92 + def first_argument_is_heredoc?(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#207 + def process_args(args); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#117 + def safe_to_ignore?(node); end + + # If a send node contains a heredoc argument, splitting cannot happen + # after the heredoc or else it will cause a syntax error. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#101 + def shift_elements_for_heredoc_arg(node, elements, index); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#112 + def within_column_limit?(element, max, line); end +end + +# Common functionality for checking length of code segments. +# +# source://rubocop//lib/rubocop/cop/mixin/code_length.rb#6 +module RuboCop::Cop::CodeLength + extend ::RuboCop::ExcludeLimit + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#49 + def build_code_length_calculator(node); end + + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#31 + def check_code_length(node); end + + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#27 + def count_as_one; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#23 + def count_comments?; end + + # Returns true for lines that shall not be included in the count. + # + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#45 + def irrelevant_line(source_line); end + + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#19 + def max_length; end + + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#15 + def message(length, max_length); end +end + +# source://rubocop//lib/rubocop/cop/mixin/code_length.rb#9 +RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String) + +# Help methods for working with nodes containing comments. +# +# source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#6 +module RuboCop::Cop::CommentsHelp + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#25 + def comments_contain_disables?(node, cop_name); end + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#18 + def comments_in_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#14 + def contains_comments?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#7 + def source_range_with_comment(node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#44 + def begin_pos_with_comment(node); end + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#58 + def buffer; end + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#39 + def end_position_for(node); end + + # Returns the end line of a node, which might be a comment and not part of the AST + # End line is considered either the line at which another node starts, or + # the line at which the parent node ends. + # + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#66 + def find_end_line(node); end + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#54 + def start_line_position(node); end +end + +# Commissioner class is responsible for processing the AST and delegating +# work to the specified cops. +# +# source://rubocop//lib/rubocop/cop/commissioner.rb#7 +class RuboCop::Cop::Commissioner + include ::RuboCop::AST::Traversal + + # @return [Commissioner] a new instance of Commissioner + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#44 + def initialize(cops, forces = T.unsafe(nil), options = T.unsafe(nil)); end + + # Returns the value of attribute errors. + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#42 + def errors; end + + # @return [InvestigationReport] + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#79 + def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on___ENCODING__(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on___FILE__(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on___LINE__(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_alias(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_and_asgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_arg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_arg_expr(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_args(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_array_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_array_pattern_with_tail(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_back_ref(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_block_pass(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_blockarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_break(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_cbase(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_complex(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_const(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_const_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_cvar(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_defined?(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_dstr(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_dsym(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_eflipflop(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_empty_else(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_ensure(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_erange(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_false(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_find_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_float(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forward_arg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forward_args(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forwarded_args(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forwarded_kwrestarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forwarded_restarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_gvar(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_hash_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_if_guard(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_iflipflop(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_in_match(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_in_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_index(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_indexasgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_int(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_irange(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_ivar(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwargs(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwbegin(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwnilarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwoptarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwrestarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_kwsplat(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_lambda(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_lvar(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_masgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_alt(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_as(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_current_line(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_nil_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_pattern(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_pattern_p(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_rest(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_var(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_with_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_match_with_trailing_comma(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_mlhs(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_next(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_nil(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_not(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_nth_ref(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_op_asgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_optarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_or_asgn(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_pair(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_pin(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_postexe(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_preexe(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_procarg0(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_rational(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_redo(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_regexp(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_regopt(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_resbody(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_rescue(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_restarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_retry(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_return(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_sclass(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_self(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_shadowarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_splat(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_str(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_super(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_sym(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_true(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_undef(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_unless_guard(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_when(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_while_post(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_xstr(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_yield(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_zsuper(node); end + + private + + # source://rubocop//lib/rubocop/cop/commissioner.rb#98 + def begin_investigation(processed_source, offset:, original:); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#121 + def build_callbacks(cops); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#116 + def initialize_callbacks; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#159 + def invoke(callback, cops); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#163 + def invoke_with_argument(callback, cops, arg); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#112 + def reset; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#131 + def restrict_callbacks(callbacks); end + + # NOTE: mutates `callbacks` in place + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#149 + def restricted_map(callbacks); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#104 + def trigger_responding_cops(callback, node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#139 + def trigger_restricted_cops(event, node); end + + # Allow blind rescues here, since we're absorbing and packaging or + # re-raising exceptions that can be raised from within the individual + # cops' `#investigate` methods. + # + # source://rubocop//lib/rubocop/cop/commissioner.rb#170 + def with_cop_error_handling(cop, node = T.unsafe(nil)); end +end + +# How a Commissioner returns the results of the investigation +# as a list of Cop::InvestigationReport and any errors caught +# during the investigation. +# Immutable +# Consider creation API private +# +# source://rubocop//lib/rubocop/cop/commissioner.rb#18 +class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct + # Returns the value of attribute cop_reports + # + # @return [Object] the current value of cop_reports + def cop_reports; end + + # Sets the attribute cop_reports + # + # @param value [Object] the value to set the attribute cop_reports to. + # @return [Object] the newly set value + def cop_reports=(_); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#19 + def cops; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#27 + def correctors; end + + # Returns the value of attribute errors + # + # @return [Object] the current value of errors + def errors; end + + # Sets the attribute errors + # + # @param value [Object] the value to set the attribute errors to. + # @return [Object] the newly set value + def errors=(_); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#35 + def merge(investigation); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#31 + def offenses; end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#23 + def offenses_per_cop; end + + # Returns the value of attribute processed_source + # + # @return [Object] the current value of processed_source + def processed_source; end + + # Sets the attribute processed_source + # + # @param value [Object] the value to set the attribute processed_source to. + # @return [Object] the newly set value + def processed_source=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/cop/commissioner.rb#10 +RuboCop::Cop::Commissioner::RESTRICTED_CALLBACKS = T.let(T.unsafe(nil), Array) + +# This class does condition autocorrection +# +# source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#6 +class RuboCop::Cop::ConditionCorrector + class << self + # source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#8 + def correct_negative_condition(corrector, node); end + + private + + # source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#17 + def negated_condition(node); end + end +end + +# Handles `EnforcedStyle` configuration parameters. +# +# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#6 +module RuboCop::Cop::ConfigurableEnforcedStyle + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#88 + def alternative_style; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#96 + def alternative_styles; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#19 + def ambiguous_style_detected(*possibilities); end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + def conflicting_styles_detected; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#11 + def correct_style_detected; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#64 + def detected_style; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#68 + def detected_style=(style); end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + def no_acceptable_style!; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#56 + def no_acceptable_style?; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#7 + def opposite_style_detected; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#79 + def style; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#75 + def style_configured?; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#29 + def style_detected(detected); end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#107 + def style_parameter_name; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#100 + def supported_styles; end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#15 + def unexpected_style_detected(unexpected); end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + def unrecognized_style_detected; end +end + +# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#23 +RuboCop::Cop::ConfigurableEnforcedStyle::SYMBOL_TO_STRING_CACHE = T.let(T.unsafe(nil), Hash) + +# Shared functionality between mixins that enforce naming conventions +# +# source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#6 +module RuboCop::Cop::ConfigurableFormatting + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#9 + def check_name(node, name, name_range); end + + # A class emitter method is a singleton method in a class/module, where + # the method has the same name as a class defined in the class/module. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#29 + def class_emitter_method?(node, name); end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#17 + def report_opposing_styles(node, name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#23 + def valid_name?(node, name, given_style = T.unsafe(nil)); end +end + +# Handles `Max` configuration parameters, especially setting them to an +# appropriate value with --auto-gen-config. +# +# @deprecated Use `exclude_limit ParameterName` instead. +# +# source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#8 +module RuboCop::Cop::ConfigurableMax + private + + # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#11 + def max=(value); end + + # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#19 + def max_parameter_name; end +end + +# This module provides functionality for checking if names match the +# configured EnforcedStyle. +# +# source://rubocop//lib/rubocop/cop/mixin/configurable_naming.rb#7 +module RuboCop::Cop::ConfigurableNaming + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::ConfigurableFormatting +end + +# source://rubocop//lib/rubocop/cop/mixin/configurable_naming.rb#10 +RuboCop::Cop::ConfigurableNaming::FORMATS = T.let(T.unsafe(nil), Hash) + +# This module provides functionality for checking if numbering match the +# configured EnforcedStyle. +# +# source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#7 +module RuboCop::Cop::ConfigurableNumbering + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::ConfigurableFormatting +end + +# source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#11 +RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash) + +# Monkey-patch Cop for tests to provide easy access to messages and +# highlights. +# +# source://rubocop//lib/rubocop/cop/cop.rb#11 +class RuboCop::Cop::Cop < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/cop.rb#53 + def add_offense(node_or_range, location: T.unsafe(nil), message: T.unsafe(nil), severity: T.unsafe(nil), &block); end + + # Called before any investigation + # + # @api private + # + # source://rubocop//lib/rubocop/cop/cop.rb#103 + def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end + + # @deprecated + # + # source://rubocop//lib/rubocop/cop/cop.rb#82 + def corrections; end + + # source://rubocop//lib/rubocop/cop/cop.rb#70 + def find_location(node, loc); end + + # Returns the value of attribute offenses. + # + # source://rubocop//lib/rubocop/cop/cop.rb#12 + def offenses; end + + # Called after all on_... have been called + # + # source://rubocop//lib/rubocop/cop/cop.rb#96 + def on_investigation_end; end + + # Called before all on_... have been called + # + # source://rubocop//lib/rubocop/cop/cop.rb#90 + def on_new_investigation; end + + # @deprecated Use class method + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/cop.rb#76 + def support_autocorrect?; end + + private + + # source://rubocop//lib/rubocop/cop/cop.rb#121 + def apply_correction(corrector); end + + # Override Base + # + # source://rubocop//lib/rubocop/cop/cop.rb#117 + def callback_argument(_range); end + + # source://rubocop//lib/rubocop/cop/cop.rb#138 + def correction_lambda; end + + # source://rubocop//lib/rubocop/cop/cop.rb#144 + def dedupe_on_node(node); end + + # Just for legacy + # + # @yield [corrector] + # + # source://rubocop//lib/rubocop/cop/cop.rb#126 + def emulate_v0_callsequence(corrector); end + + # source://rubocop//lib/rubocop/cop/cop.rb#157 + def range_for_original(range); end + + # source://rubocop//lib/rubocop/cop/cop.rb#151 + def suppress_clobbering; end + + class << self + # @deprecated Use Registry.all + # + # source://rubocop//lib/rubocop/cop/cop.rb#44 + def all; end + + # source://rubocop//lib/rubocop/cop/cop.rb#29 + def joining_forces; end + + # @deprecated Use Registry.qualified_cop_name + # + # source://rubocop//lib/rubocop/cop/cop.rb#49 + def qualified_cop_name(name, origin); end + + # @deprecated Use Registry.global + # + # source://rubocop//lib/rubocop/cop/cop.rb#39 + def registry; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/cop.rb#25 + def support_autocorrect?; end + end +end + +# @deprecated +# +# source://rubocop//lib/rubocop/cop/cop.rb#17 +class RuboCop::Cop::Cop::Correction < ::Struct + # source://rubocop//lib/rubocop/cop/cop.rb#18 + def call(corrector); end + + # Returns the value of attribute cop + # + # @return [Object] the current value of cop + def cop; end + + # Sets the attribute cop + # + # @param value [Object] the value to set the attribute cop to. + # @return [Object] the newly set value + def cop=(_); end + + # Returns the value of attribute lambda + # + # @return [Object] the current value of lambda + def lambda; end + + # Sets the attribute lambda + # + # @param value [Object] the value to set the attribute lambda to. + # @return [Object] the newly set value + def lambda=(_); end + + # Returns the value of attribute node + # + # @return [Object] the current value of node + def node; end + + # Sets the attribute node + # + # @param value [Object] the value to set the attribute node to. + # @return [Object] the newly set value + def node=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# This class takes a source buffer and rewrite its source +# based on the different correction rules supplied. +# +# Important! +# The nodes modified by the corrections should be part of the +# AST of the source_buffer. +# +# source://rubocop//lib/rubocop/cop/corrector.rb#11 +class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter + # corrector = Corrector.new(cop) + # + # @param source [Parser::Source::Buffer, or anything + # leading to one via `(processed_source.)buffer`] + # @return [Corrector] a new instance of Corrector + # + # source://rubocop//lib/rubocop/cop/corrector.rb#32 + def initialize(source); end + + # Removes `size` characters from the beginning of the given range. + # If `size` is greater than the size of `range`, the removed region can + # overrun the end of `range`. + # + # @param range [Parser::Source::Range, RuboCop::AST::Node] or node + # @param size [Integer] + # + # source://rubocop//lib/rubocop/cop/corrector.rb#63 + def remove_leading(node_or_range, size); end + + # Removes `size` characters prior to the source range. + # + # @param range [Parser::Source::Range, RuboCop::AST::Node] or node + # @param size [Integer] + # + # source://rubocop//lib/rubocop/cop/corrector.rb#51 + def remove_preceding(node_or_range, size); end + + # Removes `size` characters from the end of the given range. + # If `size` is greater than the size of `range`, the removed region can + # overrun the beginning of `range`. + # + # @param range [Parser::Source::Range, RuboCop::AST::Node] or node + # @param size [Integer] + # + # source://rubocop//lib/rubocop/cop/corrector.rb#75 + def remove_trailing(node_or_range, size); end + + # Legacy + # + # source://parser/3.2.2.4/lib/parser/source/tree_rewriter.rb#252 + def rewrite; end + + # Swaps sources at the given ranges. + # + # @param node_or_range1 [Parser::Source::Range, RuboCop::AST::Node] + # @param node_or_range2 [Parser::Source::Range, RuboCop::AST::Node] + # + # source://rubocop//lib/rubocop/cop/corrector.rb#85 + def swap(node_or_range1, node_or_range2); end + + private + + # source://rubocop//lib/rubocop/cop/corrector.rb#119 + def check_range_validity(node_or_range); end + + # source://rubocop//lib/rubocop/cop/corrector.rb#104 + def to_range(node_or_range); end + + # source://rubocop//lib/rubocop/cop/corrector.rb#123 + def validate_buffer(buffer); end + + class << self + # Duck typing for get to a ::Parser::Source::Buffer + # + # source://rubocop//lib/rubocop/cop/corrector.rb#15 + def source_buffer(source); end + end +end + +# noop +# +# source://rubocop//lib/rubocop/cop/corrector.rb#12 +RuboCop::Cop::Corrector::NOOP_CONSUMER = T.let(T.unsafe(nil), Proc) + +# Common functionality for checking def nodes. +# +# source://rubocop//lib/rubocop/cop/mixin/def_node.rb#6 +module RuboCop::Cop::DefNode + include ::RuboCop::Cop::VisibilityHelp + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#21 + def non_public_modifier?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#12 + def non_public?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#16 + def preceding_non_public_modifier?(node); end +end + +# Helpers for builtin documentation +# +# source://rubocop//lib/rubocop/cop/documentation.rb#6 +module RuboCop::Cop::Documentation + private + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#24 + def base_url_for(cop_class, config); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#34 + def default_base_url; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#10 + def department_to_basename(department); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#15 + def url_for(cop_class, config = T.unsafe(nil)); end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#24 + def base_url_for(cop_class, config); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#34 + def default_base_url; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#10 + def department_to_basename(department); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#15 + def url_for(cop_class, config = T.unsafe(nil)); end + end +end + +# Common functionality for checking documentation. +# +# source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#6 +module RuboCop::Cop::DocumentationComment + extend ::RuboCop::AST::NodePattern::Macros + + private + + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#47 + def annotation_keywords; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#11 + def documentation_comment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#39 + def interpreter_directive_comment?(comment); end + + # The args node1 & node2 may represent a RuboCop::AST::Node + # or a Parser::Source::Comment. Both respond to #loc. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#31 + def precede?(node1, node2); end + + # The args node1 & node2 may represent a RuboCop::AST::Node + # or a Parser::Source::Comment. Both respond to #loc. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#25 + def preceding_comment?(node1, node2); end + + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#35 + def preceding_lines(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#43 + def rubocop_directive_comment?(comment); end +end + +# Common functionality for dealing with duplication. +# +# source://rubocop//lib/rubocop/cop/mixin/duplication.rb#6 +module RuboCop::Cop::Duplication + private + + # Returns the consecutive duplicates, leaving out the first instance of + # the duplicated elements. + # + # @param collection [Array] an array to return consecutive duplicates for + # @return [Array] the consecutive duplicates + # + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#31 + def consecutive_duplicates(collection); end + + # Returns all duplicates, including the first instance of the duplicated + # elements. + # + # @param collection [Array] an array to return duplicates for + # @return [Array] all the duplicates + # + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#22 + def duplicates(collection); end + + # Whether the `collection` contains any duplicates. + # + # @param collection [Array] an array to check for duplicates + # @return [Boolean] whether the array contains any duplicates + # + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#13 + def duplicates?(collection); end + + # Returns a hash of grouped duplicates. The key will be the first + # instance of the element, and the value an `array` of the initial + # element and all duplicate instances. + # + # @param collection [Array] an array to group duplicates for + # @return [Array] the grouped duplicates + # + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#41 + def grouped_duplicates(collection); end +end + +# This class autocorrects `#each` enumeration to `for` iteration. +# +# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#6 +class RuboCop::Cop::EachToForCorrector + extend ::RuboCop::AST::NodePattern::Macros + + # @return [EachToForCorrector] a new instance of EachToForCorrector + # + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#12 + def initialize(block_node); end + + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#18 + def call(corrector); end + + private + + # Returns the value of attribute argument_node. + # + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 + def argument_node; end + + # Returns the value of attribute block_node. + # + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 + def block_node; end + + # Returns the value of attribute collection_node. + # + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 + def collection_node; end + + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#26 + def correction; end + + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#36 + def offending_range; end + + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#44 + def replacement_range(end_pos); end +end + +# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#10 +RuboCop::Cop::EachToForCorrector::CORRECTION_WITHOUT_ARGUMENTS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#9 +RuboCop::Cop::EachToForCorrector::CORRECTION_WITH_ARGUMENTS = T.let(T.unsafe(nil), String) + +# This class does empty line autocorrection +# +# source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#6 +class RuboCop::Cop::EmptyLineCorrector + class << self + # source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#8 + def correct(corrector, node); end + + # source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#19 + def insert_before(corrector, node); end + end +end + +# Common code for empty parameter cops. +# +# source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#6 +module RuboCop::Cop::EmptyParameter + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#12 + def empty_arguments?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#16 + def check(node); end +end + +# Functions for checking the alignment of the `end` keyword. +# +# source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#6 +module RuboCop::Cop::EndKeywordAlignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#60 + def accept_end_kw_alignment?(end_loc); end + + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#50 + def add_offense_for_misalignment(node, align_with); end + + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#19 + def check_end_kw_alignment(node, align_ranges); end + + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#15 + def check_end_kw_in_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#75 + def line_break_before_keyword?(whole_expression, rhs); end + + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#35 + def matching_ranges(end_loc, align_ranges); end + + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#41 + def start_line_range(node); end + + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#65 + def style_parameter_name; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#69 + def variable_alignment?(whole_expression, rhs, end_alignment_style); end +end + +# source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#10 +RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String) + +# Common functionality for enforcing a specific superclass. +# +# IMPORTANT: RuboCop core depended on this module when it supported Rails department. +# Rails department has been extracted to RuboCop Rails gem. +# +# It will not be updated to `RuboCop::Cop::Base` v1 API to maintain compatibility +# with existing RuboCop Rails 2.8 or lower. +# +# @api private +# @deprecated This module is deprecated and will be removed by RuboCop 2.0. +# +# source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#15 +module RuboCop::Cop::EnforceSuperclass + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#35 + def on_class(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#39 + def on_send(node); end + + class << self + # @api private + # @private + # + # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#16 + def included(base); end + end +end + +# Common functionality for checking for a line break before the first +# element in a multi-line collection. +# +# source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#7 +module RuboCop::Cop::FirstElementLineBreak + private + + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#23 + def check_children_line_break(node, children, start = T.unsafe(nil), ignore_last: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#10 + def check_method_line_break(node, children, ignore_last: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#37 + def first_by_line(nodes); end + + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#41 + def last_line(nodes, ignore_last:); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#18 + def method_uses_parens?(node, limit); end +end + +# This class autocorrects `for` iteration to `#each` enumeration. +# +# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#6 +class RuboCop::Cop::ForToEachCorrector + extend ::RuboCop::AST::NodePattern::Macros + + # @return [ForToEachCorrector] a new instance of ForToEachCorrector + # + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#11 + def initialize(for_node); end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#17 + def call(corrector); end + + private + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#55 + def collection_end; end + + # Returns the value of attribute collection_node. + # + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23 + def collection_node; end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#29 + def collection_source; end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 + def correction; end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#43 + def end_position; end + + # Returns the value of attribute for_node. + # + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23 + def for_node; end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#51 + def keyword_begin; end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#63 + def offending_range; end + + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#67 + def replacement_range(end_pos); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#37 + def requires_parentheses?; end + + # Returns the value of attribute variable_node. + # + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23 + def variable_node; end +end + +# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#9 +RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String) + +# A scaffold for concrete forces. +# +# source://rubocop//lib/rubocop/cop/force.rb#6 +class RuboCop::Cop::Force + # @return [Force] a new instance of Force + # + # source://rubocop//lib/rubocop/cop/force.rb#22 + def initialize(cops); end + + # Returns the value of attribute cops. + # + # source://rubocop//lib/rubocop/cop/force.rb#7 + def cops; end + + # source://rubocop//lib/rubocop/cop/force.rb#38 + def investigate(_processed_source); end + + # source://rubocop//lib/rubocop/cop/force.rb#26 + def name; end + + # source://rubocop//lib/rubocop/cop/force.rb#30 + def run_hook(method_name, *args); end + + class << self + # source://rubocop//lib/rubocop/cop/force.rb#9 + def all; end + + # source://rubocop//lib/rubocop/cop/force.rb#18 + def force_name; end + + # @private + # + # source://rubocop//lib/rubocop/cop/force.rb#13 + def inherited(subclass); end + end +end + +# Common functionality for dealing with frozen string literals. +# +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#6 +module RuboCop::Cop::FrozenStringLiteral + private + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#35 + def frozen_heredoc?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#21 + def frozen_string_literal?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 + def frozen_string_literal_comment_exists?; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#66 + def frozen_string_literal_specified?; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#60 + def frozen_string_literals_disabled?; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#41 + def frozen_string_literals_enabled?; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#76 + def leading_comment_lines; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#72 + def leading_magic_comments; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#31 + def uninterpolated_string?(node); end + + class << self + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 + def frozen_string_literal_comment_exists?; end + end +end + +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#9 +RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#10 +RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_ENABLED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#11 +RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES_RUBY27 = T.let(T.unsafe(nil), Array) + +# Common functionality for checking gem declarations. +# +# source://rubocop//lib/rubocop/cop/mixin/gem_declaration.rb#6 +module RuboCop::Cop::GemDeclaration + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/gem_declaration.rb#10 + def gem_declaration?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#5 +module RuboCop::Cop::Gemspec; end + +# Enforce that gem dependency version specifications or a commit reference (branch, +# ref, or tag) are either required or forbidden. +# +# @example EnforcedStyle: required (default) +# +# # bad +# Gem::Specification.new do |spec| +# spec.add_dependency 'parser' +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.add_development_dependency 'parser' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_dependency 'parser', '>= 2.3.3.1', '< 3.0' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_development_dependency 'parser', '>= 2.3.3.1', '< 3.0' +# end +# @example EnforcedStyle: forbidden +# +# # bad +# Gem::Specification.new do |spec| +# spec.add_dependency 'parser', '>= 2.3.3.1', '< 3.0' +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.add_development_dependency 'parser', '>= 2.3.3.1', '< 3.0' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_dependency 'parser' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_development_dependency 'parser' +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#53 +class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::GemspecHelp + + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#67 + def add_dependency_method_declaration?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#78 + def includes_commit_reference?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#73 + def includes_version_specification?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#82 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#120 + def add_dependency_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#96 + def allowed_gem?(node); end + + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#100 + def allowed_gems; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#134 + def forbidden_offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#140 + def forbidden_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#114 + def match_block_variable_name?(receiver_name); end + + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#104 + def message(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#124 + def offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#128 + def required_offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#144 + def required_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#148 + def version_specification?(expression); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#61 +RuboCop::Cop::Gemspec::DependencyVersion::ADD_DEPENDENCY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#58 +RuboCop::Cop::Gemspec::DependencyVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#57 +RuboCop::Cop::Gemspec::DependencyVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#64 +RuboCop::Cop::Gemspec::DependencyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#59 +RuboCop::Cop::Gemspec::DependencyVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp) + +# Checks that deprecated attributes are not set in a gemspec file. +# Removing deprecated attributes allows the user to receive smaller packed gems. +# +# @example +# +# # bad +# Gem::Specification.new do |spec| +# spec.name = 'your_cool_gem_name' +# spec.test_files = Dir.glob('test/**/*') +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.name = 'your_cool_gem_name' +# spec.test_files += Dir.glob('test/**/*') +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.name = 'your_cool_gem_name' +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#28 +class RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#35 + def gem_specification(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#43 + def on_block(block_node); end + + private + + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#86 + def format_message_from; end + + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#63 + def node_and_method_name(node, attribute); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#72 + def use_deprecated_attributes?(node, block_parameter); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#32 +RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment::MSG = T.let(T.unsafe(nil), String) + +# Enforce that development dependencies for a gem are specified in +# `Gemfile`, rather than in the `gemspec` using +# `add_development_dependency`. Alternatively, using `EnforcedStyle: +# gemspec`, enforce that all dependencies are specified in `gemspec`, +# rather than in `Gemfile`. +# +# @example EnforcedStyle: Gemfile (default) +# # Specify runtime dependencies in your gemspec, +# # but all other dependencies in your Gemfile. +# +# # bad +# # example.gemspec +# s.add_development_dependency "foo" +# +# # good +# # Gemfile +# gem "foo" +# +# # good +# # gems.rb +# gem "foo" +# +# # good (with AllowedGems: ["bar"]) +# # example.gemspec +# s.add_development_dependency "bar" +# @example EnforcedStyle: gems.rb +# # Specify runtime dependencies in your gemspec, +# # but all other dependencies in your Gemfile. +# # +# # Identical to `EnforcedStyle: Gemfile`, but with a different error message. +# # Rely on Bundler/GemFilename to enforce the use of `Gemfile` vs `gems.rb`. +# +# # bad +# # example.gemspec +# s.add_development_dependency "foo" +# +# # good +# # Gemfile +# gem "foo" +# +# # good +# # gems.rb +# gem "foo" +# +# # good (with AllowedGems: ["bar"]) +# # example.gemspec +# s.add_development_dependency "bar" +# @example EnforcedStyle: gemspec +# # Specify all dependencies in your gemspec. +# +# # bad +# # Gemfile +# gem "foo" +# +# # good +# # example.gemspec +# s.add_development_dependency "foo" +# +# # good (with AllowedGems: ["bar"]) +# # Gemfile +# gem "bar" +# +# source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#70 +class RuboCop::Cop::Gemspec::DevelopmentDependencies < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#77 + def add_development_dependency?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#82 + def gem?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#86 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#97 + def forbidden_gem?(gem_name); end + + # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#101 + def message(_range); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#73 +RuboCop::Cop::Gemspec::DevelopmentDependencies::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#74 +RuboCop::Cop::Gemspec::DevelopmentDependencies::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# An attribute assignment method calls should be listed only once +# in a gemspec. +# +# Assigning to an attribute with the same name using `spec.foo =` will be +# an unintended usage. On the other hand, duplication of methods such +# as `spec.requirements`, `spec.add_runtime_dependency`, and others are +# permitted because it is the intended use of appending values. +# +# @example +# # bad +# Gem::Specification.new do |spec| +# spec.name = 'rubocop' +# spec.name = 'rubocop2' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.name = 'rubocop' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.requirements << 'libmagick, v6.0' +# spec.requirements << 'A good graphics card' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_runtime_dependency('parallel', '~> 1.10') +# spec.add_runtime_dependency('parser', '>= 2.3.3.1', '< 3.0') +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#37 +class RuboCop::Cop::Gemspec::DuplicatedAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::GemspecHelp + + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#45 + def assignment_method_declarations(param0); end + + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#50 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#68 + def duplicated_assignment_method_nodes; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#62 + def match_block_variable_name?(receiver_name); end + + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#76 + def register_offense(node, assignment, line_of_first_occurrence); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#41 +RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String) + +# Dependencies in the gemspec should be alphabetically sorted. +# +# @example +# # bad +# spec.add_dependency 'rubocop' +# spec.add_dependency 'rspec' +# +# # good +# spec.add_dependency 'rspec' +# spec.add_dependency 'rubocop' +# +# # good +# spec.add_dependency 'rubocop' +# +# spec.add_dependency 'rspec' +# +# # bad +# spec.add_development_dependency 'rubocop' +# spec.add_development_dependency 'rspec' +# +# # good +# spec.add_development_dependency 'rspec' +# spec.add_development_dependency 'rubocop' +# +# # good +# spec.add_development_dependency 'rubocop' +# +# spec.add_development_dependency 'rspec' +# +# # bad +# spec.add_runtime_dependency 'rubocop' +# spec.add_runtime_dependency 'rspec' +# +# # good +# spec.add_runtime_dependency 'rspec' +# spec.add_runtime_dependency 'rubocop' +# +# # good +# spec.add_runtime_dependency 'rubocop' +# +# spec.add_runtime_dependency 'rspec' +# @example TreatCommentsAsGroupSeparators: true (default) +# # good +# # For code quality +# spec.add_dependency 'rubocop' +# # For tests +# spec.add_dependency 'rspec' +# @example TreatCommentsAsGroupSeparators: false +# # bad +# # For code quality +# spec.add_dependency 'rubocop' +# # For tests +# spec.add_dependency 'rspec' +# +# source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#61 +class RuboCop::Cop::Gemspec::OrderedDependencies < ::RuboCop::Cop::Base + include ::RuboCop::Cop::OrderedGemNode + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#95 + def dependency_declarations(param0); end + + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#69 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#90 + def get_dependency_name(node); end + + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#84 + def previous_declaration(node); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#65 +RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String) + +# Requires a gemspec to have `rubygems_mfa_required` metadata set. +# +# This setting tells RubyGems that MFA (Multi-Factor Authentication) is +# required for accounts to be able perform privileged operations, such as +# (see RubyGems' documentation for the full list of privileged +# operations): +# +# * `gem push` +# * `gem yank` +# * `gem owner --add/remove` +# * adding or removing owners using gem ownership page +# +# This helps make your gem more secure, as users can be more +# confident that gem updates were pushed by maintainers. +# +# @example +# # bad +# Gem::Specification.new do |spec| +# # no `rubygems_mfa_required` metadata specified +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata = { +# 'rubygems_mfa_required' => 'true' +# } +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata['rubygems_mfa_required'] = 'true' +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.metadata = { +# 'rubygems_mfa_required' => 'false' +# } +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata = { +# 'rubygems_mfa_required' => 'true' +# } +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.metadata['rubygems_mfa_required'] = 'false' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.metadata['rubygems_mfa_required'] = 'true' +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#63 +class RuboCop::Cop::Gemspec::RequireMFA < ::RuboCop::Cop::Base + include ::RuboCop::Cop::GemspecHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#70 + def metadata(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#87 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#78 + def rubygems_mfa_required(param0); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#83 + def true_string?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#115 + def autocorrect(corrector, node, block_var, metadata); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#139 + def change_value(corrector, value); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#125 + def correct_metadata(corrector, metadata); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#133 + def insert_mfa_required(corrector, node, block_var); end + + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#108 + def mfa_value(metadata_value); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#67 +RuboCop::Cop::Gemspec::RequireMFA::MSG = T.let(T.unsafe(nil), String) + +# Checks that `required_ruby_version` in a gemspec file is set to a valid +# value (non-blank) and matches `TargetRubyVersion` as set in RuboCop's +# configuration for the gem. +# +# This ensures that RuboCop is using the same Ruby version as the gem. +# +# @example +# # When `TargetRubyVersion` of .rubocop.yml is `2.5`. +# +# # bad +# Gem::Specification.new do |spec| +# # no `required_ruby_version` specified +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.required_ruby_version = '>= 2.4.0' +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.required_ruby_version = '>= 2.6.0' +# end +# +# # bad +# Gem::Specification.new do |spec| +# spec.required_ruby_version = '' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.required_ruby_version = '>= 2.5.0' +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.required_ruby_version = '>= 2.5' +# end +# +# # accepted but not recommended +# Gem::Specification.new do |spec| +# spec.required_ruby_version = ['>= 2.5.0', '< 2.7.0'] +# end +# +# # accepted but not recommended, since +# # Ruby does not really follow semantic versioning +# Gem::Specification.new do |spec| +# spec.required_ruby_version = '~> 2.5' +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#55 +class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#70 + def defined_ruby_version(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#78 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#82 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#65 + def required_ruby_version?(param0); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#94 + def dynamic_version?(node); end + + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#100 + def extract_ruby_version(required_ruby_version); end + + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#116 + def not_equal_message(required_ruby_version, target_ruby_version); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#62 +RuboCop::Cop::Gemspec::RequiredRubyVersion::MISSING_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#59 +RuboCop::Cop::Gemspec::RequiredRubyVersion::NOT_EQUAL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#58 +RuboCop::Cop::Gemspec::RequiredRubyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that `RUBY_VERSION` constant is not used in gemspec. +# Using `RUBY_VERSION` is dangerous because value of the +# constant is determined by `rake release`. +# It's possible to have dependency based on ruby version used +# to execute `rake release` and not user's ruby version. +# +# @example +# +# # bad +# Gem::Specification.new do |spec| +# if RUBY_VERSION >= '3.0' +# spec.add_runtime_dependency 'gem_a' +# else +# spec.add_runtime_dependency 'gem_b' +# end +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_runtime_dependency 'gem_a' +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#28 +class RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage < ::RuboCop::Cop::Base + include ::RuboCop::Cop::GemspecHelp + + # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#36 + def on_const(node); end + + # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#34 + def ruby_version?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#44 + def gem_spec_with_ruby_version?(node); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#31 +RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage::MSG = T.let(T.unsafe(nil), String) + +# Common functionality for checking gem declarations. +# +# source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#6 +module RuboCop::Cop::GemspecHelp + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#20 + def gem_specification(param0); end + + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#10 + def gem_specification?(param0 = T.unsafe(nil)); end +end + +# Source and spec generator for new cops +# +# This generator will take a cop name and generate a source file +# and spec file when given a valid qualified cop name. +# +# @api private +# +# source://rubocop//lib/rubocop/cop/generator.rb#10 +class RuboCop::Cop::Generator + # @api private + # @raise [ArgumentError] + # @return [Generator] a new instance of Generator + # + # source://rubocop//lib/rubocop/cop/generator.rb#113 + def initialize(name, output: T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#133 + def inject_config(config_file_path: T.unsafe(nil), version_added: T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#129 + def inject_require(root_file_path: T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#146 + def todo; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#121 + def write_source; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#125 + def write_spec; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#160 + def badge; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#183 + def generate(template); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#175 + def generated_source; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#179 + def generated_spec; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#160 + def output; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#208 + def snake_case(camel_case_string); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#198 + def source_path; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#188 + def spec_path; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/generator.rb#162 + def write_unless_file_exists(path, contents); end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/generator.rb#109 +RuboCop::Cop::Generator::CONFIGURATION_ADDED_MESSAGE = T.let(T.unsafe(nil), String) + +# A class that injects a require directive into the root RuboCop file. +# It looks for other directives that require files in the same (cop) +# namespace and injects the provided one in alpha +# +# source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#9 +class RuboCop::Cop::Generator::ConfigurationInjector + # @return [ConfigurationInjector] a new instance of ConfigurationInjector + # + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#17 + def initialize(configuration_file_path:, badge:, version_added: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#24 + def inject; end + + private + + # Returns the value of attribute badge. + # + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + def badge; end + + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#41 + def configuration_entries; end + + # Returns the value of attribute configuration_file_path. + # + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + def configuration_file_path; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#59 + def cop_name_line?(yaml); end + + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#49 + def find_target_line; end + + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#45 + def new_configuration_entry; end + + # Returns the value of attribute output. + # + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + def output; end + + # Returns the value of attribute version_added. + # + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + def version_added; end +end + +# source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#10 +RuboCop::Cop::Generator::ConfigurationInjector::TEMPLATE = T.let(T.unsafe(nil), String) + +# A class that injects a require directive into the root RuboCop file. +# It looks for other directives that require files in the same (cop) +# namespace and injects the provided one in alpha +# +# source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#9 +class RuboCop::Cop::Generator::RequireFileInjector + # @return [RequireFileInjector] a new instance of RequireFileInjector + # + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#12 + def initialize(source_path:, root_file_path:, output: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#19 + def inject; end + + private + + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#64 + def injectable_require_directive; end + + # Returns the value of attribute output. + # + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + def output; end + + # Returns the value of attribute require_entries. + # + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + def require_entries; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#31 + def require_exists?; end + + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#68 + def require_path; end + + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#58 + def require_path_fragments(require_directive); end + + # Returns the value of attribute root_file_path. + # + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + def root_file_path; end + + # Returns the value of attribute source_path. + # + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + def source_path; end + + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#39 + def target_line; end + + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#35 + def updated_directives; end +end + +# source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#10 +RuboCop::Cop::Generator::RequireFileInjector::REQUIRE_PATH = T.let(T.unsafe(nil), Regexp) + +# @api private +# +# source://rubocop//lib/rubocop/cop/generator.rb#11 +RuboCop::Cop::Generator::SOURCE_TEMPLATE = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/cop/generator.rb#85 +RuboCop::Cop::Generator::SPEC_TEMPLATE = T.let(T.unsafe(nil), String) + +# Common functionality for checking hash alignment. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#6 +module RuboCop::Cop::HashAlignmentStyles; end + +# Handles calculation of deltas when the enforced style is 'key'. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#8 +class RuboCop::Cop::HashAlignmentStyles::KeyAlignment + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#9 + def checkable_layout?(_node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#20 + def deltas(first_pair, current_pair); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#13 + def deltas_for_first_pair(first_pair, _node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#34 + def separator_delta(pair); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#45 + def value_delta(pair); end +end + +# Handles calculation of deltas for `kwsplat` nodes. +# This is a special case that just ensures the kwsplat is aligned with the rest of the hash +# since a `kwsplat` does not have a key, separator or value. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#145 +class RuboCop::Cop::HashAlignmentStyles::KeywordSplatAlignment + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#146 + def deltas(first_pair, current_pair); end +end + +# Handles calculation of deltas when the enforced style is 'separator'. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#120 +class RuboCop::Cop::HashAlignmentStyles::SeparatorAlignment + include ::RuboCop::Cop::HashAlignmentStyles::ValueAlignment + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#123 + def deltas_for_first_pair(*_nodes); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#133 + def hash_rocket_delta(first_pair, current_pair); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#129 + def key_delta(first_pair, current_pair); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#137 + def value_delta(first_pair, current_pair); end +end + +# Handles calculation of deltas when the enforced style is 'table'. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#81 +class RuboCop::Cop::HashAlignmentStyles::TableAlignment + include ::RuboCop::Cop::HashAlignmentStyles::ValueAlignment + + # @return [TableAlignment] a new instance of TableAlignment + # + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#84 + def initialize; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#88 + def deltas_for_first_pair(first_pair, node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#106 + def hash_rocket_delta(first_pair, current_pair); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#102 + def key_delta(first_pair, current_pair); end + + # Returns the value of attribute max_key_width. + # + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 + def max_key_width; end + + # Sets the attribute max_key_width + # + # @param value the value to set the attribute max_key_width to. + # + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 + def max_key_width=(_arg0); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#110 + def value_delta(first_pair, current_pair); end +end + +# Common functionality for checking alignment of hash values. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#56 +module RuboCop::Cop::HashAlignmentStyles::ValueAlignment + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#57 + def checkable_layout?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#61 + def deltas(first_pair, current_pair); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#71 + def separator_delta(first_pair, current_pair, key_delta); end +end + +# This module checks for Ruby 3.1's hash value omission syntax. +# +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#7 +module RuboCop::Cop::HashShorthandSyntax + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 + def on_hash_for_mixed_shorthand(hash_node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#26 + def on_pair(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#122 + def brackets?(method_dispatch_node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#152 + def breakdown_value_types_of_hash(hash_node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#99 + def def_node_that_require_parentheses(node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176 + def each_omittable_value_pair(hash_value_type_breakdown, &block); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172 + def each_omitted_value_pair(hash_value_type_breakdown, &block); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#77 + def enforced_shorthand_syntax; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#114 + def find_ancestor_method_dispatch_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#164 + def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168 + def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#71 + def ignore_hash_shorthand_syntax?(pair_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#66 + def ignore_mixed_hash_shorthand_syntax?(hash_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#137 + def last_expression?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#145 + def method_dispatch_as_argument?(method_dispatch_node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#180 + def mixed_shorthand_syntax_check(hash_value_type_breakdown); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#196 + def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49 + def register_offense(node, message, replacement); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81 + def require_hash_value?(hash_key_source, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#90 + def require_hash_value_for_around_hash_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126 + def use_element_of_hash_literal_as_receiver?(ancestor, parent); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#131 + def use_modifier_form_without_parenthesized_method_call?(ancestor); end +end + +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#12 +RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_EXPLICIT_VALUE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#10 +RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11 +RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#206 +class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#215 + def first_argument; end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#219 + def last_argument; end + + # Returns the value of attribute node + # + # @return [Object] the current value of node + def node; end + + # Sets the attribute node + # + # @param value [Object] the value to set the attribute node to. + # @return [Object] the newly set value + def node=(_); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#207 + def selector; end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#9 +RuboCop::Cop::HashShorthandSyntax::EXPLICIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#8 +RuboCop::Cop::HashShorthandSyntax::OMIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) + +# Common functionality for Style/HashTransformKeys and +# Style/HashTransformValues +# +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#7 +module RuboCop::Cop::HashTransformMethod + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 + def array_receiver?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#17 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#34 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#27 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#108 + def execute_correction(corrector, node, correction); end + + # @abstract + # @raise [NotImplementedError] + # @return [Captures] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#83 + def extract_captures(_match); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#60 + def handle_possible_offense(node, match, match_desc); end + + # @abstract + # @raise [NotImplementedError] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#90 + def new_method_name; end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#41 + def on_bad_each_with_object(_node); end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#46 + def on_bad_hash_brackets_map(_node); end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#51 + def on_bad_map_to_h(_node); end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#56 + def on_bad_to_h(_node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#94 + def prepare_correction(node); end +end + +# Internal helper class to hold autocorrect data +# +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 +class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct + # Returns the value of attribute block_node + # + # @return [Object] the current value of block_node + def block_node; end + + # Sets the attribute block_node + # + # @param value [Object] the value to set the attribute block_node to. + # @return [Object] the newly set value + def block_node=(_); end + + # Returns the value of attribute leading + # + # @return [Object] the current value of leading + def leading; end + + # Sets the attribute leading + # + # @param value [Object] the value to set the attribute leading to. + # @return [Object] the newly set value + def leading=(_); end + + # Returns the value of attribute match + # + # @return [Object] the current value of match + def match; end + + # Sets the attribute match + # + # @param value [Object] the value to set the attribute match to. + # @return [Object] the newly set value + def match=(_); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#177 + def set_new_arg_name(transformed_argname, corrector); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#181 + def set_new_body_expression(transforming_body_expr, corrector); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#167 + def set_new_method_name(new_method_name, corrector); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#161 + def strip_prefix_and_suffix(node, corrector); end + + # Returns the value of attribute trailing + # + # @return [Object] the current value of trailing + def trailing; end + + # Sets the attribute trailing + # + # @param value [Object] the value to set the attribute trailing to. + # @return [Object] the newly set value + def trailing=(_); end + + class << self + def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#137 + def from_each_with_object(node, match); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#141 + def from_hash_brackets_map(node, match); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#145 + def from_map_to_h(node, match); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#157 + def from_to_h(node, match); end + + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Internal helper class to hold match data +# +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 +class RuboCop::Cop::HashTransformMethod::Captures < ::Struct + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#119 + def noop_transformation?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#124 + def transformation_uses_both_args?; end + + # Returns the value of attribute transformed_argname + # + # @return [Object] the current value of transformed_argname + def transformed_argname; end + + # Sets the attribute transformed_argname + # + # @param value [Object] the value to set the attribute transformed_argname to. + # @return [Object] the newly set value + def transformed_argname=(_); end + + # Returns the value of attribute transforming_body_expr + # + # @return [Object] the current value of transforming_body_expr + def transforming_body_expr; end + + # Sets the attribute transforming_body_expr + # + # @param value [Object] the value to set the attribute transforming_body_expr to. + # @return [Object] the newly set value + def transforming_body_expr=(_); end + + # Returns the value of attribute unchanged_body_expr + # + # @return [Object] the current value of unchanged_body_expr + def unchanged_body_expr; end + + # Sets the attribute unchanged_body_expr + # + # @param value [Object] the value to set the attribute unchanged_body_expr to. + # @return [Object] the newly set value + def unchanged_body_expr=(_); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#128 + def use_transformed_argname?; end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#10 +RuboCop::Cop::HashTransformMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Common functionality for working with heredoc strings. +# +# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#6 +module RuboCop::Cop::Heredoc + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + def on_dstr(node); end + + # @raise [NotImplementedError] + # + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#17 + def on_heredoc(_node); end + + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + def on_str(node); end + + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + def on_xstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#28 + def delimiter_string(node); end + + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#34 + def heredoc_type(node); end + + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#23 + def indent_level(str); end +end + +# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#7 +RuboCop::Cop::Heredoc::OPENING_DELIMITER = T.let(T.unsafe(nil), Regexp) + +# This class autocorrects `if...then` structures to a multiline `if` statement +# +# source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#6 +class RuboCop::Cop::IfThenCorrector + # @return [IfThenCorrector] a new instance of IfThenCorrector + # + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#9 + def initialize(if_node, indentation: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#14 + def call(corrector); end + + private + + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#50 + def branch_body_indentation; end + + # Returns the value of attribute if_node. + # + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#20 + def if_node; end + + # Returns the value of attribute indentation. + # + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#20 + def indentation; end + + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#22 + def replacement(node = T.unsafe(nil), indentation = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#36 + def rewrite_else_branch(else_branch, indentation); end +end + +# source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#7 +RuboCop::Cop::IfThenCorrector::DEFAULT_INDENTATION_WIDTH = T.let(T.unsafe(nil), Integer) + +# @deprecated IgnoredMethods class has been replaced with AllowedMethods. +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#40 +RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods + +# Handles adding and checking ignored nodes. +# +# source://rubocop//lib/rubocop/cop/ignored_node.rb#6 +module RuboCop::Cop::IgnoredNode + # source://rubocop//lib/rubocop/cop/ignored_node.rb#7 + def ignore_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/ignored_node.rb#24 + def ignored_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/ignored_node.rb#11 + def part_of_ignored_node?(node); end + + private + + # source://rubocop//lib/rubocop/cop/ignored_node.rb#31 + def ignored_nodes; end +end + +# @deprecated IgnoredPattern class has been replaced with AllowedPattern. +# +# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#54 +RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern + +# Common functionality for checking integer nodes. +# +# source://rubocop//lib/rubocop/cop/mixin/integer_node.rb#6 +module RuboCop::Cop::IntegerNode + private + + # source://rubocop//lib/rubocop/cop/mixin/integer_node.rb#9 + def integer_part(node); end +end + +# Common functionality for working with string interpolations. +# +# @abstract Subclasses are expected to implement {#on_interpolation}. +# +# source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#8 +module RuboCop::Cop::Interpolation + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + def on_dstr(node); end + + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + def on_dsym(node); end + + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#17 + def on_node_with_interpolations(node); end + + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + def on_regexp(node); end + + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + def on_xstr(node); end +end + +# This class autocorrects lambda literal to method notation. +# +# source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#6 +class RuboCop::Cop::LambdaLiteralToMethodCorrector + # @return [LambdaLiteralToMethodCorrector] a new instance of LambdaLiteralToMethodCorrector + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#7 + def initialize(block_node); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#13 + def call(corrector); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#118 + def arg_to_unparenthesized_call?; end + + # Returns the value of attribute arguments. + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 + def arguments; end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#102 + def arguments_begin_pos; end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#98 + def arguments_end_pos; end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#110 + def block_begin; end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#106 + def block_end; end + + # Returns the value of attribute block_node. + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 + def block_node; end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#59 + def insert_arguments(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#43 + def insert_separating_space(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#88 + def lambda_arg_string; end + + # Returns the value of attribute method. + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 + def method; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#92 + def needs_separating_space?; end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#53 + def remove_arguments(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#66 + def remove_leading_whitespace(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#74 + def remove_trailing_whitespace(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#36 + def remove_unparenthesized_whitespace(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#79 + def replace_delimiters(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#49 + def replace_selector(corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#114 + def selector_end; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#134 + def separating_space?; end +end + +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#5 +module RuboCop::Cop::Layout; end + +# Bare access modifiers (those not applying to specific methods) should be +# indented as deep as method definitions, or as deep as the class/module +# keyword, depending on configuration. +# +# @example EnforcedStyle: indent (default) +# # bad +# class Plumbus +# private +# def smooth; end +# end +# +# # good +# class Plumbus +# private +# def smooth; end +# end +# @example EnforcedStyle: outdent +# # bad +# class Plumbus +# private +# def smooth; end +# end +# +# # good +# class Plumbus +# private +# def smooth; end +# end +# +# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#35 +class RuboCop::Cop::Layout::AccessModifierIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + def on_sclass(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#54 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#58 + def check_body(body, node); end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#65 + def check_modifier(send_node, end_range); end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#88 + def expected_indent_offset; end + + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#84 + def message(range); end + + # An offset that is not expected, but correct if the configuration is + # changed. + # + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#94 + def unexpected_indent_offset; end +end + +# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#41 +RuboCop::Cop::Layout::AccessModifierIndentation::MSG = T.let(T.unsafe(nil), String) + +# Here we check if the arguments on a multi-line method +# definition are aligned. +# +# @example EnforcedStyle: with_first_argument (default) +# # good +# +# foo :bar, +# :baz, +# key: value +# +# foo( +# :bar, +# :baz, +# key: value +# ) +# +# # bad +# +# foo :bar, +# :baz, +# key: value +# +# foo( +# :bar, +# :baz, +# key: value +# ) +# @example EnforcedStyle: with_fixed_indentation +# # good +# +# foo :bar, +# :baz, +# key: value +# +# # bad +# +# foo :bar, +# :baz, +# key: value +# +# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#46 +class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#55 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#55 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#92 + def arguments_or_first_arg_pairs(node); end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#80 + def arguments_with_last_arg_pairs(node); end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#108 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#68 + def autocorrect_incompatible_with_other_cops?; end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#124 + def base_column(node, first_argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#144 + def enforce_hash_argument_with_separator?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#116 + def fixed_indentation?; end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#72 + def flattened_arguments(node); end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#152 + def hash_argument_config; end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#112 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#101 + def multiple_arguments?(node); end + + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#135 + def target_method_lineno(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#120 + def with_first_argument_style?; end +end + +# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#50 +RuboCop::Cop::Layout::ArgumentAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#52 +RuboCop::Cop::Layout::ArgumentAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) + +# Here we check if the elements of a multi-line array literal are +# aligned. +# +# @example EnforcedStyle: with_first_element (default) +# # good +# +# array = [1, 2, 3, +# 4, 5, 6] +# array = ['run', +# 'forrest', +# 'run'] +# +# # bad +# +# array = [1, 2, 3, +# 4, 5, 6] +# array = ['run', +# 'forrest', +# 'run'] +# @example EnforcedStyle: with_fixed_indentation +# # good +# +# array = [1, 2, 3, +# 4, 5, 6] +# +# # bad +# +# array = [1, 2, 3, +# 4, 5, 6] +# +# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#36 +class RuboCop::Cop::Layout::ArrayAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#46 + def on_array(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#55 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#67 + def base_column(node, args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#63 + def fixed_indentation?; end + + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#59 + def message(_range); end + + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#78 + def target_method_lineno(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#40 +RuboCop::Cop::Layout::ArrayAlignment::ALIGN_ELEMENTS_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#43 +RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of the first line of the +# right-hand-side of a multi-line assignment. +# +# The indentation of the remaining lines can be corrected with +# other cops such as `IndentationConsistency` and `EndAlignment`. +# +# @example +# # bad +# value = +# if foo +# 'bar' +# end +# +# # good +# value = +# if foo +# 'bar' +# end +# +# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#24 +class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CheckAssignment + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + private + + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#42 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#33 + def check_assignment(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#46 + def leftmost_multiple_assignment(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#29 +RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the end keyword of `begin` is aligned properly. +# +# Two modes are supported through the `EnforcedStyleAlignWith` configuration +# parameter. If it's set to `start_of_line` (which is the default), the +# `end` shall be aligned with the start of the line where the `begin` +# keyword is. If it's set to `begin`, the `end` shall be aligned with the +# `begin` keyword. +# +# `Layout/EndAlignment` cop aligns with keywords (e.g. `if`, `while`, `case`) +# by default. On the other hand, `||= begin` that this cop targets tends to +# align with the start of the line, it defaults to `EnforcedStyleAlignWith: start_of_line`. +# These style can be configured by each cop. +# +# @example EnforcedStyleAlignWith: start_of_line (default) +# # bad +# foo ||= begin +# do_something +# end +# +# # good +# foo ||= begin +# do_something +# end +# @example EnforcedStyleAlignWith: begin +# # bad +# foo ||= begin +# do_something +# end +# +# # good +# foo ||= begin +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#41 +class RuboCop::Cop::Layout::BeginEndAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::EndKeywordAlignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#48 + def on_kwbegin(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#63 + def alignment_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#59 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#54 + def check_begin_alignment(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#46 +RuboCop::Cop::Layout::BeginEndAlignment::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the end keywords are aligned properly for do +# end blocks. +# +# Three modes are supported through the `EnforcedStyleAlignWith` +# configuration parameter: +# +# `start_of_block` : the `end` shall be aligned with the +# start of the line where the `do` appeared. +# +# `start_of_line` : the `end` shall be aligned with the +# start of the line where the expression started. +# +# `either` (which is the default) : the `end` is allowed to be in either +# location. The autofixer will default to `start_of_line`. +# +# @example EnforcedStyleAlignWith: either (default) +# # bad +# +# foo.bar +# .each do +# baz +# end +# +# # good +# +# foo.bar +# .each do +# baz +# end +# @example EnforcedStyleAlignWith: start_of_block +# # bad +# +# foo.bar +# .each do +# baz +# end +# +# # good +# +# foo.bar +# .each do +# baz +# end +# @example EnforcedStyleAlignWith: start_of_line +# # bad +# +# foo.bar +# .each do +# baz +# end +# +# # good +# +# foo.bar +# .each do +# baz +# end +# +# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#66 +class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#74 + def block_end_align_target?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#89 + def style_parameter_name; end + + private + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#228 + def add_space_before(corrector, loc, delta); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#205 + def alt_start_msg(start_loc, source_line_column); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#155 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#105 + def block_end_align_target(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#123 + def check_block_alignment(start_node, block_node); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#178 + def compute_do_source_line_column(node, end_loc); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#220 + def compute_start_col(ancestor_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#119 + def disqualified_parent?(parent, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#115 + def end_align_target?(node, parent); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#168 + def format_message(start_loc, end_loc, do_source_line_column, error_source_line_column); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#215 + def format_source_line_column(source_line_column); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#197 + def loc_to_source_line_column(loc); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#136 + def register_offense(block_node, start_loc, end_loc, do_source_line_column); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#232 + def remove_space_before(corrector, end_pos, delta); end + + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#95 + def start_for_block_node(block_node); end +end + +# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#71 +RuboCop::Cop::Layout::BlockAlignment::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the end statement of a do..end block +# is on its own line. +# +# @example +# # bad +# blah do |i| +# foo(i) end +# +# # good +# blah do |i| +# foo(i) +# end +# +# # bad +# blah { |i| +# foo(i) } +# +# # good +# blah { |i| +# foo(i) +# } +# +# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#27 +class RuboCop::Cop::Layout::BlockEndNewline < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#66 + def last_heredoc_argument(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#62 + def message(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#76 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#49 + def register_offense(node, offense_range); end +end + +# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#31 +RuboCop::Cop::Layout::BlockEndNewline::MSG = T.let(T.unsafe(nil), String) + +# Checks how the `when` and ``in``s of a `case` expression +# are indented in relation to its `case` or `end` keyword. +# +# It will register a separate offense for each misaligned `when` and `in`. +# +# @example +# # If Layout/EndAlignment is set to keyword style (default) +# # *case* and *end* should always be aligned to same depth, +# # and therefore *when* should always be aligned to both - +# # regardless of configuration. +# +# # bad for all styles +# case n +# when 0 +# x * 2 +# else +# y / 3 +# end +# +# case n +# in pattern +# x * 2 +# else +# y / 3 +# end +# +# # good for all styles +# case n +# when 0 +# x * 2 +# else +# y / 3 +# end +# +# case n +# in pattern +# x * 2 +# else +# y / 3 +# end +# @example EnforcedStyle: case (default) +# # if EndAlignment is set to other style such as +# # start_of_line (as shown below), then *when* alignment +# # configuration does have an effect. +# +# # bad +# a = case n +# when 0 +# x * 2 +# else +# y / 3 +# end +# +# a = case n +# in pattern +# x * 2 +# else +# y / 3 +# end +# +# # good +# a = case n +# when 0 +# x * 2 +# else +# y / 3 +# end +# +# a = case n +# in pattern +# x * 2 +# else +# y / 3 +# end +# @example EnforcedStyle: end +# # bad +# a = case n +# when 0 +# x * 2 +# else +# y / 3 +# end +# +# a = case n +# in pattern +# x * 2 +# else +# y / 3 +# end +# +# # good +# a = case n +# when 0 +# x * 2 +# else +# y / 3 +# end +# +# a = case n +# in pattern +# x * 2 +# else +# y / 3 +# end +# +# source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#112 +class RuboCop::Cop::Layout::CaseIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#120 + def on_case(case_node); end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#127 + def on_case_match(case_match_node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#193 + def base_column(case_node, base); end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#150 + def check_when(when_node, branch_type); end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#182 + def detect_incorrect_style(when_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#136 + def end_and_last_conditional_same_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#146 + def enforced_style_end?; end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#169 + def incorrect_style(when_node, branch_type); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#161 + def indent_one_step?; end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#165 + def indentation_width; end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#207 + def replacement(node); end + + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#200 + def whitespace_range(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#118 +RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks if the code style follows the ExpectedOrder configuration: +# +# `Categories` allows us to map macro names into a category. +# +# Consider an example of code style that covers the following order: +# +# * Module inclusion (include, prepend, extend) +# * Constants +# * Associations (has_one, has_many) +# * Public attribute macros (attr_accessor, attr_writer, attr_reader) +# * Other macros (validates, validate) +# * Public class methods +# * Initializer +# * Public instance methods +# * Protected attribute macros (attr_accessor, attr_writer, attr_reader) +# * Protected instance methods +# * Private attribute macros (attr_accessor, attr_writer, attr_reader) +# * Private instance methods +# +# You can configure the following order: +# +# [source,yaml] +# ---- +# Layout/ClassStructure: +# ExpectedOrder: +# - module_inclusion +# - constants +# - association +# - public_attribute_macros +# - public_delegate +# - macros +# - public_class_methods +# - initializer +# - public_methods +# - protected_attribute_macros +# - protected_methods +# - private_attribute_macros +# - private_delegate +# - private_methods +# ---- +# +# Instead of putting all literals in the expected order, is also +# possible to group categories of macros. Visibility levels are handled +# automatically. +# +# [source,yaml] +# ---- +# Layout/ClassStructure: +# Categories: +# association: +# - has_many +# - has_one +# attribute_macros: +# - attr_accessor +# - attr_reader +# - attr_writer +# macros: +# - validates +# - validate +# module_inclusion: +# - include +# - prepend +# - extend +# ---- +# +# @example +# # bad +# # Expect extend be before constant +# class Person < ApplicationRecord +# has_many :orders +# ANSWER = 42 +# +# extend SomeModule +# include AnotherModule +# end +# +# # good +# class Person +# # extend and include go first +# extend SomeModule +# include AnotherModule +# +# # inner classes +# CustomError = Class.new(StandardError) +# +# # constants are next +# SOME_CONSTANT = 20 +# +# # afterwards we have public attribute macros +# attr_reader :name +# +# # followed by other macros (if any) +# validates :name +# +# # then we have public delegate macros +# delegate :to_s, to: :name +# +# # public class methods are next in line +# def self.some_method +# end +# +# # initialization goes between class methods and instance methods +# def initialize +# end +# +# # followed by other public instance methods +# def some_method +# end +# +# # protected attribute macros and methods go next +# protected +# +# attr_reader :protected_name +# +# def some_protected_method +# end +# +# # private attribute macros, delegate macros and methods +# # are grouped near the end +# private +# +# attr_reader :private_name +# +# delegate :some_private_delegate, to: :name +# +# def some_private_method +# end +# end +# +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#142 +class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base + include ::RuboCop::Cop::VisibilityHelp + include ::RuboCop::Cop::CommentsHelp + extend ::RuboCop::Cop::AutoCorrector + + # Validates code style on class declaration. + # Add offense when find a node out of expected order. + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#158 + def on_class(class_node); end + + # Validates code style on class declaration. + # Add offense when find a node out of expected order. + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#158 + def on_sclass(class_node); end + + private + + # Autocorrect by swapping between two nodes autocorrecting them + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#174 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#305 + def begin_pos_with_comment(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#328 + def buffer; end + + # Setting categories hash allow you to group methods in group to match + # in the {expected_order}. + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#340 + def categories; end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#234 + def class_elements(class_node); end + + # Classifies a node to match with something in the {expected_order} + # + # @param node to be analysed + # @return String when the node type is a `:block` then + # {classify} recursively with the first children + # @return String when the node type is a `:send` then {find_category} + # by method name + # @return String otherwise trying to {humanize_node} of the current node + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#194 + def classify(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#271 + def dynamic_constant?(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#295 + def end_position_for(node); end + + # Load expected order from `ExpectedOrder` config. + # Define new terms in the expected order by adding new {categories}. + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#334 + def expected_order; end + + # Categorize a node according to the {expected_order} + # Try to match {categories} values against the node's method_name given + # also its visibility. + # + # @param node to be analysed. + # @return [String] with the key category or the `method_name` as string + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#212 + def find_category(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#324 + def find_heredoc(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#262 + def humanize_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#246 + def ignore?(node, classification); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#253 + def ignore_for_autocorrect?(node, sibling); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#289 + def marked_as_private_constant?(node, name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#279 + def private_constant?(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#320 + def start_line_position(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#225 + def walk_over_nested_class_definition(class_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#316 + def whole_line_comment_at_line?(line); end +end + +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#147 +RuboCop::Cop::Layout::ClassStructure::HUMANIZED_NODE_TYPE = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#154 +RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of here document closings. +# +# @example +# +# # bad +# class Foo +# def bar +# <<~SQL +# 'Hi' +# SQL +# end +# end +# +# # good +# class Foo +# def bar +# <<~SQL +# 'Hi' +# SQL +# end +# end +# +# # bad +# +# # heredoc contents is before closing heredoc. +# foo arg, +# <<~EOS +# Hi +# EOS +# +# # good +# foo arg, +# <<~EOS +# Hi +# EOS +# +# # good +# foo arg, +# <<~EOS +# Hi +# EOS +# +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#48 +class RuboCop::Cop::Layout::ClosingHeredocIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Heredoc + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#57 + def on_heredoc(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#74 + def argument_indentation_correct?(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#82 + def closing_indentation(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#101 + def find_node_used_heredoc_argument(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#90 + def heredoc_closing(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#86 + def heredoc_opening(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#117 + def indent_level(source_line); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#94 + def indented_end(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#109 + def message(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#70 + def opening_indentation(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#53 +RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#54 +RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG_ARG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#52 +RuboCop::Cop::Layout::ClosingHeredocIndentation::SIMPLE_HEREDOC = T.let(T.unsafe(nil), String) + +# Checks the indentation of hanging closing parentheses in +# method calls, method definitions, and grouped expressions. A hanging +# closing parenthesis means `)` preceded by a line break. +# +# @example +# +# # bad +# some_method( +# a, +# b +# ) +# +# some_method( +# a, b +# ) +# +# some_method(a, b, c +# ) +# +# some_method(a, +# b, +# c +# ) +# +# some_method(a, +# x: 1, +# y: 2 +# ) +# +# # Scenario 1: When First Parameter Is On Its Own Line +# +# # good: when first param is on a new line, right paren is *always* +# # outdented by IndentationWidth +# some_method( +# a, +# b +# ) +# +# # good +# some_method( +# a, b +# ) +# +# # Scenario 2: When First Parameter Is On The Same Line +# +# # good: when all other params are also on the same line, outdent +# # right paren by IndentationWidth +# some_method(a, b, c +# ) +# +# # good: when all other params are on multiple lines, but are lined +# # up, align right paren with left paren +# some_method(a, +# b, +# c +# ) +# +# # good: when other params are not lined up on multiple lines, outdent +# # right paren by IndentationWidth +# some_method(a, +# x: 1, +# y: 2 +# ) +# +# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#71 +class RuboCop::Cop::Layout::ClosingParenthesisIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#84 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#157 + def all_elements_aligned?(elements); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#95 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#99 + def check(node, elements); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#107 + def check_for_elements(node, elements); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#125 + def check_for_no_elements(node); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#171 + def correct_column_candidates(node, left_paren); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#144 + def expected_column(left_paren, elements); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#167 + def first_argument_line(elements); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#187 + def line_break_after_left_paren?(left_paren, elements); end + + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#179 + def message(correct_column, left_paren, right_paren); end +end + +# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#77 +RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#75 +RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_INDENT = T.let(T.unsafe(nil), String) + +# Checks the indentation of comments. +# +# @example +# # bad +# # comment here +# def method_name +# end +# +# # comment here +# a = 'hello' +# +# # yet another comment +# if true +# true +# end +# +# # good +# # comment here +# def method_name +# end +# +# # comment here +# a = 'hello' +# +# # yet another comment +# if true +# true +# end +# @example AllowForAlignment: false (default) +# # bad +# a = 1 # A really long comment +# # spanning two lines. +# +# # good +# # A really long comment spanning one line. +# a = 1 +# @example AllowForAlignment: true +# # good +# a = 1 # A really long comment +# # spanning two lines. +# +# source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#48 +class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#55 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#61 + def autocorrect(corrector, comment); end + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#88 + def autocorrect_one(corrector, comment); end + + # Corrects all comment lines that occur immediately before the given + # comment and have the same indentation. This is to avoid a long chain + # of correcting, saving the file, parsing and inspecting again, and + # then correcting one more line, and so on. + # + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#71 + def autocorrect_preceding_comments(corrector, comment); end + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#92 + def check(comment, comment_index); end + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#145 + def correct_indentation(next_line); end + + # Returns true if: + # a) the cop is configured to allow extra indentation for alignment, and + # b) the currently inspected comment is aligned with the nearest preceding end-of-line + # comment. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#121 + def correctly_aligned_with_preceding_comment?(comment_index, column); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#156 + def less_indented?(line); end + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#140 + def line_after_comment(comment); end + + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#131 + def message(column, correct_comment_indentation); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#135 + def own_line_comment?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#82 + def should_correct?(preceding_comment, reference_comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#162 + def two_alternatives?(line); end +end + +# source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#52 +RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks for conditions that are not on the same line as +# if/while/until. +# +# @example +# +# # bad +# +# if +# some_condition +# do_something +# end +# @example +# +# # good +# +# if some_condition +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#25 +class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#31 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#37 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#37 + def on_while(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#44 + def check(node); end + + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#58 + def message(condition); end +end + +# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#29 +RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the end keywords of method definitions are +# aligned properly. +# +# Two modes are supported through the EnforcedStyleAlignWith configuration +# parameter. If it's set to `start_of_line` (which is the default), the +# `end` shall be aligned with the start of the line where the `def` +# keyword is. If it's set to `def`, the `end` shall be aligned with the +# `def` keyword. +# +# @example EnforcedStyleAlignWith: start_of_line (default) +# # bad +# +# private def foo +# end +# +# # good +# +# private def foo +# end +# @example EnforcedStyleAlignWith: def +# # bad +# +# private def foo +# end +# +# # good +# +# private def foo +# end +# +# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#36 +class RuboCop::Cop::Layout::DefEndAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::EndKeywordAlignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#48 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#63 + def autocorrect(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#41 +RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String) + +# Checks the . position in multi-line method calls. +# +# @example EnforcedStyle: leading (default) +# # bad +# something. +# method +# +# # good +# something +# .method +# @example EnforcedStyle: trailing +# # bad +# something +# .method +# +# # good +# something. +# method +# +# source://rubocop//lib/rubocop/cop/layout/dot_position.rb#25 +class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#49 + def autocorrect(corrector, dot, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#99 + def correct_dot_position_style?(dot_line, selector_line); end + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#126 + def end_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#122 + def heredoc?(node); end + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#114 + def last_heredoc_line(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#95 + def line_between?(first_line, second_line); end + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#64 + def message(dot); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#74 + def proper_dot_position?(node); end + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#106 + def receiver_end_line(node); end + + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#130 + def selector_range(node); end + + class << self + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#30 + def autocorrect_incompatible_with; end + end +end + +# Checks the alignment of else keywords. Normally they should +# be aligned with an if/unless/while/until/begin/def/rescue keyword, but there +# are special cases when they should follow the same rules as the +# alignment of end. +# +# @example +# # bad +# if something +# code +# else +# code +# end +# +# # bad +# if something +# code +# elsif something +# code +# end +# +# # good +# if something +# code +# else +# code +# end +# +# source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#32 +class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::EndKeywordAlignment + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::CheckAssignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#57 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#63 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#40 + def on_if(node, base = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#51 + def on_rescue(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#147 + def assignment_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#71 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#106 + def base_for_method_definition(node); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#80 + def base_range_of_if(node, base); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#89 + def base_range_of_rescue(node); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#131 + def check_alignment(base_range, else_range); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#115 + def check_assignment(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#75 + def check_nested(node, base); end +end + +# source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#38 +RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String) + +# Checks empty comment. +# +# @example +# # bad +# +# # +# class Foo +# end +# +# # good +# +# # +# # Description of `Foo` class. +# # +# class Foo +# end +# @example AllowBorderComment: true (default) +# # good +# +# def foo +# end +# +# ################# +# +# def bar +# end +# @example AllowBorderComment: false +# # bad +# +# def foo +# end +# +# ################# +# +# def bar +# end +# @example AllowMarginComment: true (default) +# # good +# +# # +# # Description of `Foo` class. +# # +# class Foo +# end +# @example AllowMarginComment: false +# # bad +# +# # +# # Description of `Foo` class. +# # +# class Foo +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#63 +class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#69 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#131 + def allow_border_comment?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#135 + def allow_margin_comment?; end + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#97 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#127 + def comment_text(comment); end + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#108 + def concat_consecutive_comments(comments); end + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#139 + def current_token(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#117 + def empty_comment_only?(comment_text); end + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#85 + def investigate(comments); end + + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#143 + def previous_token(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#67 +RuboCop::Cop::Layout::EmptyComment::MSG = T.let(T.unsafe(nil), String) + +# Enforces empty line after guard clause. +# +# This cop allows `# :nocov:` directive after guard clause because +# SimpleCov excludes code from the coverage report by wrapping it in `# :nocov:`: +# +# [source,ruby] +# ---- +# def foo +# # :nocov: +# return if condition +# # :nocov: +# bar +# end +# ---- +# +# Refer to SimpleCov's documentation for more details: +# https://github.com/simplecov-ruby/simplecov#ignoringskipping-code +# +# @example +# +# # bad +# def foo +# return if need_return? +# bar +# end +# +# # good +# def foo +# return if need_return? +# +# bar +# end +# +# # good +# def foo +# return if something? +# return if something_different? +# +# bar +# end +# +# # also good +# def foo +# if something? +# do_something +# return if need_return? +# end +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#54 +class RuboCop::Cop::Layout::EmptyLineAfterGuardClause < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::PathUtil + extend ::RuboCop::Cop::Util + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#63 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#84 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#106 + def contains_guard_clause?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#99 + def correct_style?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#181 + def heredoc?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#174 + def heredoc_line(node, heredoc_node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#148 + def last_heredoc_argument(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#162 + def last_heredoc_argument_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#199 + def multiple_statements_on_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#121 + def next_line_allowed_directive_comment?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#117 + def next_line_empty?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#110 + def next_line_empty_or_allowed_directive_comment?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#127 + def next_line_rescue_or_ensure?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#141 + def next_sibling_empty_or_guard_clause?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#132 + def next_sibling_parent_empty_or_else?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#191 + def offense_location(node); end + + # SimpleCov excludes code from the coverage report by wrapping it in `# :nocov:`: + # https://github.com/simplecov-ruby/simplecov#ignoringskipping-code + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#208 + def simplecov_directive_comment?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#185 + def use_heredoc_in_condition?(condition); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#60 +RuboCop::Cop::Layout::EmptyLineAfterGuardClause::END_OF_HEREDOC_LINE = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#59 +RuboCop::Cop::Layout::EmptyLineAfterGuardClause::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#61 +RuboCop::Cop::Layout::EmptyLineAfterGuardClause::SIMPLE_DIRECTIVE_COMMENT_PATTERN = T.let(T.unsafe(nil), Regexp) + +# Checks for a newline after the final magic comment. +# +# @example +# # good +# # frozen_string_literal: true +# +# # Some documentation for Person +# class Person +# # Some code +# end +# +# # bad +# # frozen_string_literal: true +# # Some documentation for Person +# class Person +# # Some code +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#23 +class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#29 + def on_new_investigation; end + + private + + # Find the last magic comment in the source file. + # + # Take all comments that precede the first line of code, select the + # magic comments, and return the last magic comment in the file. + # + # @return [Parser::Source::Comment] if magic comments exist before code + # @return [nil] otherwise + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#54 + def last_magic_comment(source); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43 + def offending_range(last_magic_comment); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#27 +RuboCop::Cop::Layout::EmptyLineAfterMagicComment::MSG = T.let(T.unsafe(nil), String) + +# Enforces empty line after multiline condition. +# +# @example +# # bad +# if multiline && +# condition +# do_something +# end +# +# # good +# if multiline && +# condition +# +# do_something +# end +# +# # bad +# case x +# when foo, +# bar +# do_something +# end +# +# # good +# case x +# when foo, +# bar +# +# do_something +# end +# +# # bad +# begin +# do_something +# rescue FooError, +# BarError +# handle_error +# end +# +# # good +# begin +# do_something +# rescue FooError, +# BarError +# +# handle_error +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#54 +class RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#82 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#60 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#93 + def on_rescue(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 + def on_while_post(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#127 + def autocorrect(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#105 + def check_condition(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#120 + def multiline_rescue_exceptions?(exception_nodes); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#116 + def multiline_when_condition?(when_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#112 + def next_line_empty?(line); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#58 +RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil), String) + +# Checks whether class/module/method definitions are +# separated by one or more empty lines. +# +# `NumberOfEmptyLines` can be an integer (default is 1) or +# an array (e.g. [1, 2]) to specify a minimum and maximum +# number of empty lines permitted. +# +# `AllowAdjacentOneLineDefs` configures whether adjacent +# one-line definitions are considered an offense. +# +# @example EmptyLineBetweenMethodDefs: true (default) +# # checks for empty lines between method definitions. +# +# # bad +# def a +# end +# def b +# end +# @example +# +# # good +# def a +# end +# +# def b +# end +# @example EmptyLineBetweenClassDefs: true (default) +# # checks for empty lines between class definitions. +# +# # bad +# class A +# end +# class B +# end +# def b +# end +# @example +# +# # good +# class A +# end +# +# class B +# end +# +# def b +# end +# @example EmptyLineBetweenModuleDefs: true (default) +# # checks for empty lines between module definitions. +# +# # bad +# module A +# end +# module B +# end +# def b +# end +# @example +# +# # good +# module A +# end +# +# module B +# end +# +# def b +# end +# @example AllowAdjacentOneLineDefs: true (default) +# +# # good +# class ErrorA < BaseError; end +# class ErrorB < BaseError; end +# class ErrorC < BaseError; end +# +# # good +# class ErrorA < BaseError; end +# +# class ErrorB < BaseError; end +# +# class ErrorC < BaseError; end +# @example AllowAdjacentOneLineDefs: false +# +# # bad +# class ErrorA < BaseError; end +# class ErrorB < BaseError; end +# class ErrorC < BaseError; end +# +# # good +# class ErrorA < BaseError; end +# +# class ErrorB < BaseError; end +# +# class ErrorC < BaseError; end +# +# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#108 +class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#145 + def autocorrect(corrector, prev_def, node, count); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#130 + def check_defs(nodes); end + + # We operate on `begin` nodes, instead of using `OnMethodDef`, + # so that we can walk over pairs of consecutive nodes and + # efficiently access a node's predecessor; #prev_node ends up + # doing a linear scan over siblings, so we don't want to call + # it on each def. + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#123 + def on_begin(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#290 + def allowance_range?; end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#274 + def autocorrect_insert_lines(corrector, newline_pos, count); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#267 + def autocorrect_remove_lines(corrector, newline_pos, count); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#227 + def blank_lines_count_between(first_def_node, second_def_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#171 + def candidate?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#191 + def class_candidate?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#255 + def def_end(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#163 + def def_location(correction_node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#247 + def def_start(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#178 + def empty_line_between_macros; end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#259 + def end_loc(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#205 + def expected_lines; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#223 + def line_count_allowed?(count); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#239 + def lines_between_defs(first_def_node, second_def_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#182 + def macro_candidate?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#235 + def maximum_empty_lines; end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#199 + def message(node, count: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#187 + def method_candidate?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#231 + def minimum_empty_lines; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#195 + def module_candidate?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#214 + def multiple_blank_lines_groups?(first_def_node, second_def_node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#281 + def node_type(node); end + + class << self + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#114 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#112 +RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String) + +# Checks for two or more consecutive blank lines. +# +# @example +# +# # bad - It has two empty lines. +# some_method +# # one empty line +# # two empty lines +# some_method +# +# # good +# some_method +# # one empty line +# some_method +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#21 +class RuboCop::Cop::Layout::EmptyLines < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#28 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#45 + def each_extra_empty_line(lines); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#63 + def exceeds_line_offset?(line_diff); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#67 + def previous_and_current_lines_empty?(line); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#26 +RuboCop::Cop::Layout::EmptyLines::LINE_OFFSET = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#25 +RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String) + +# Access modifiers should be surrounded by blank lines. +# +# @example EnforcedStyle: around (default) +# +# # bad +# class Foo +# def bar; end +# private +# def baz; end +# end +# +# # good +# class Foo +# def bar; end +# +# private +# +# def baz; end +# end +# @example EnforcedStyle: only_before +# +# # bad +# class Foo +# def bar; end +# private +# def baz; end +# end +# +# # good +# class Foo +# def bar; end +# +# private +# def baz; end +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#43 +class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # @return [EmptyLinesAroundAccessModifier] a new instance of EmptyLinesAroundAccessModifier + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#56 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#62 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#71 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#76 + def on_sclass(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#87 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#115 + def allowed_only_before_style?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#164 + def block_start?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#170 + def body_end?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#158 + def class_def?(line); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#124 + def correct_next_line_if_denied_style(corrector, node, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#154 + def empty_lines_around?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#104 + def expected_empty_lines?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#180 + def message(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#189 + def message_for_around_style(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#199 + def message_for_only_before_style(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#176 + def next_empty_line_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#148 + def next_line_empty?(last_send_line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#141 + def previous_line_empty?(send_line); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#137 + def previous_line_ignoring_comments(processed_source, send_line); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#48 +RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#52 +RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#49 +RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_AND_AFTER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#51 +RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#54 +RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks if empty lines exist around the arguments +# of a method invocation. +# +# @example +# # bad +# do_something( +# foo +# +# ) +# +# process(bar, +# +# baz: qux, +# thud: fred) +# +# some_method( +# +# [1,2,3], +# x: y +# ) +# +# # good +# do_something( +# foo +# ) +# +# process(bar, +# baz: qux, +# thud: fred) +# +# some_method( +# [1,2,3], +# x: y +# ) +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#41 +class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#65 + def empty_lines(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#71 + def extra_lines(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#93 + def inner_lines(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#84 + def line_numbers(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#97 + def outer_lines(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#78 + def processed_lines(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#61 + def receiver_and_method_call_on_different_lines?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#45 +RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), String) + +# Checks for a newline after an attribute accessor or a group of them. +# `alias` syntax and `alias_method`, `public`, `protected`, and `private` methods are allowed +# by default. These are customizable with `AllowAliasSyntax` and `AllowedMethods` options. +# +# @example +# # bad +# attr_accessor :foo +# def do_something +# end +# +# # good +# attr_accessor :foo +# +# def do_something +# end +# +# # good +# attr_accessor :foo +# attr_reader :bar +# attr_writer :baz +# attr :qux +# +# def do_something +# end +# @example AllowAliasSyntax: true (default) +# # good +# attr_accessor :foo +# alias :foo? :foo +# +# def do_something +# end +# @example AllowAliasSyntax: false +# # bad +# attr_accessor :foo +# alias :foo? :foo +# +# def do_something +# end +# +# # good +# attr_accessor :foo +# +# alias :foo? :foo +# +# def do_something +# end +# @example AllowedMethods: ['private'] +# # good +# attr_accessor :foo +# private :foo +# +# def do_something +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#63 +class RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::AllowedMethods + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#70 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#123 + def allow_alias?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#133 + def allow_alias_syntax?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#127 + def attribute_or_allowed_method?(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#83 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#107 + def next_line_empty?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#94 + def next_line_empty_or_enable_directive_comment?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#101 + def next_line_enable_directive_comment?(line); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#117 + def next_line_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#111 + def require_empty_line?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#68 +RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor::MSG = T.let(T.unsafe(nil), String) + +# Checks if empty lines exist around the bodies of begin-end +# blocks. +# +# @example +# +# # good +# +# begin +# # ... +# end +# +# # bad +# +# begin +# +# # ... +# +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#24 +class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Layout::EmptyLinesAroundBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#30 + def on_kwbegin(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#36 + def style; end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#28 +RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), String) + +# Checks if empty lines around the bodies of blocks match +# the configuration. +# +# @example EnforcedStyle: no_empty_lines (default) +# # good +# +# foo do |bar| +# # ... +# end +# @example EnforcedStyle: empty_lines +# # good +# +# foo do |bar| +# +# # ... +# +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#24 +class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Layout::EmptyLinesAroundBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 + def on_numblock(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#28 +RuboCop::Cop::Layout::EmptyLinesAroundBlockBody::KIND = T.let(T.unsafe(nil), String) + +# Common functionality for checking if presence/absence of empty lines +# around some kind of body matches the configuration. +# +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#8 +module RuboCop::Cop::Layout::EmptyLinesAroundBody + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#20 + def constant_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#23 + def empty_line_required?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#26 + def check(node, body, adjusted_first_line: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#81 + def check_beginning(style, first_line); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#67 + def check_both(style, first_line, last_line); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#108 + def check_deferred_empty_line(body); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#43 + def check_empty_lines_except_namespace(body, first_line, last_line); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#51 + def check_empty_lines_special(body, first_line, last_line); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#85 + def check_ending(style, last_line); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#98 + def check_line(style, line, msg); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#89 + def check_source(style, line_no, desc); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#159 + def deferred_message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#132 + def first_child_requires_empty_line?(body); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#140 + def first_empty_line_required_child(body); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#155 + def message(type, desc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#122 + def namespace?(body, with_one_child: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#148 + def previous_line_ignoring_comments(send_line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#163 + def valid_body_style?(body); end +end + +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#15 +RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_DEFERRED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#13 +RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_EXTRA = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#14 +RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), String) + +# Checks if empty lines around the bodies of classes match +# the configuration. +# +# @example EnforcedStyle: no_empty_lines (default) +# # good +# +# class Foo +# def bar +# # ... +# end +# end +# @example EnforcedStyle: empty_lines +# # good +# +# class Foo +# +# def bar +# # ... +# end +# +# end +# @example EnforcedStyle: empty_lines_except_namespace +# # good +# +# class Foo +# class Bar +# +# # ... +# +# end +# end +# @example EnforcedStyle: empty_lines_special +# # good +# class Foo +# +# def bar; end +# +# end +# @example EnforcedStyle: beginning_only +# # good +# +# class Foo +# +# def bar +# # ... +# end +# end +# @example EnforcedStyle: ending_only +# # good +# +# class Foo +# def bar +# # ... +# end +# +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#67 +class RuboCop::Cop::Layout::EmptyLinesAroundClassBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Layout::EmptyLinesAroundBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#73 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#79 + def on_sclass(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#71 +RuboCop::Cop::Layout::EmptyLinesAroundClassBody::KIND = T.let(T.unsafe(nil), String) + +# Checks if empty lines exist around the bodies of `begin` +# sections. This cop doesn't check empty lines at `begin` body +# beginning/end and around method definition body. +# `Style/EmptyLinesAroundBeginBody` or `Style/EmptyLinesAroundMethodBody` +# can be used for this purpose. +# +# @example +# +# # good +# +# begin +# do_something +# rescue +# do_something2 +# else +# do_something3 +# ensure +# do_something4 +# end +# +# # good +# +# def foo +# do_something +# rescue +# do_something2 +# end +# +# # bad +# +# begin +# do_something +# +# rescue +# +# do_something2 +# +# else +# +# do_something3 +# +# ensure +# +# do_something4 +# end +# +# # bad +# +# def foo +# do_something +# +# rescue +# +# do_something2 +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#61 +class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Layout::EmptyLinesAroundBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#74 + def on_kwbegin(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#81 + def check_body(body, line_of_def_or_kwbegin); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#108 + def keyword_locations(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#125 + def keyword_locations_in_ensure(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#121 + def keyword_locations_in_rescue(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#96 + def last_rescue_and_end_on_same_line(body); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#100 + def message(location, keyword); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#104 + def style; end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#65 +RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords::MSG = T.let(T.unsafe(nil), String) + +# Checks if empty lines exist around the bodies of methods. +# +# @example +# +# # good +# +# def foo +# # ... +# end +# +# # bad +# +# def bar +# +# # ... +# +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#23 +class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Layout::EmptyLinesAroundBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#36 + def style; end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#27 +RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), String) + +# Checks if empty lines around the bodies of modules match +# the configuration. +# +# @example EnforcedStyle: no_empty_lines (default) +# # good +# +# module Foo +# def bar +# # ... +# end +# end +# @example EnforcedStyle: empty_lines +# # good +# +# module Foo +# +# def bar +# # ... +# end +# +# end +# @example EnforcedStyle: empty_lines_except_namespace +# # good +# +# module Foo +# module Bar +# +# # ... +# +# end +# end +# @example EnforcedStyle: empty_lines_special +# # good +# module Foo +# +# def bar; end +# +# end +# +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#47 +class RuboCop::Cop::Layout::EmptyLinesAroundModuleBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Layout::EmptyLinesAroundBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#53 + def on_module(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#51 +RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), String) + +# Checks whether the end keywords are aligned properly. +# +# Three modes are supported through the `EnforcedStyleAlignWith` +# configuration parameter: +# +# If it's set to `keyword` (which is the default), the `end` +# shall be aligned with the start of the keyword (if, class, etc.). +# +# If it's set to `variable` the `end` shall be aligned with the +# left-hand-side of the variable assignment, if there is one. +# +# If it's set to `start_of_line`, the `end` shall be aligned with the +# start of the line where the matching keyword appears. +# +# This `Layout/EndAlignment` cop aligns with keywords (e.g. `if`, `while`, `case`) +# by default. On the other hand, `Layout/BeginEndAlignment` cop aligns with +# `EnforcedStyleAlignWith: start_of_line` by default due to `||= begin` tends +# to align with the start of the line. These style can be configured by each cop. +# +# @example EnforcedStyleAlignWith: keyword (default) +# # bad +# +# variable = if true +# end +# +# # good +# +# variable = if true +# end +# +# variable = +# if true +# end +# @example EnforcedStyleAlignWith: variable +# # bad +# +# variable = if true +# end +# +# # good +# +# variable = if true +# end +# +# variable = +# if true +# end +# @example EnforcedStyleAlignWith: start_of_line +# # bad +# +# variable = if true +# end +# +# puts(if true +# end) +# +# # good +# +# variable = if true +# end +# +# puts(if true +# end) +# +# variable = +# if true +# end +# +# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#75 +class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CheckAssignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::EndKeywordAlignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#105 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#105 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#81 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#93 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#89 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#85 + def on_sclass(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#101 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#97 + def on_while(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#161 + def alignment_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#172 + def alignment_node_for_variable_style(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#142 + def asgn_variable_align_with(outer_node, inner_node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#190 + def assignment_or_operator_method(node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#116 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#131 + def check_asgn_alignment(outer_node, inner_node); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#120 + def check_assignment(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#152 + def check_other_alignment(node); end +end + +# Checks for Windows-style line endings in the source code. +# +# @example EnforcedStyle: native (default) +# # The `native` style means that CR+LF (Carriage Return + Line Feed) is +# # enforced on Windows, and LF is enforced on other platforms. +# +# # bad +# puts 'Hello' # Return character is LF on Windows. +# puts 'Hello' # Return character is CR+LF on other than Windows. +# +# # good +# puts 'Hello' # Return character is CR+LF on Windows. +# puts 'Hello' # Return character is LF on other than Windows. +# @example EnforcedStyle: lf +# # The `lf` style means that LF (Line Feed) is enforced on +# # all platforms. +# +# # bad +# puts 'Hello' # Return character is CR+LF on all platforms. +# +# # good +# puts 'Hello' # Return character is LF on all platforms. +# @example EnforcedStyle: crlf +# # The `crlf` style means that CR+LF (Carriage Return + Line Feed) is +# # enforced on all platforms. +# +# # bad +# puts 'Hello' # Return character is LF on all platforms. +# +# # good +# puts 'Hello' # Return character is CR+LF on all platforms. +# +# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#40 +class RuboCop::Cop::Layout::EndOfLine < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#71 + def offense_message(line); end + + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#47 + def on_new_investigation; end + + # If there is no LF on the last line, we don't care if there's no CR. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#67 + def unimportant_missing_cr?(index, last_line, line); end + + private + + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#85 + def last_line(processed_source); end +end + +# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#44 +RuboCop::Cop::Layout::EndOfLine::MSG_DETECTED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#45 +RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String) + +# Checks for extra/unnecessary whitespace. +# +# @example +# +# # good if AllowForAlignment is true +# name = "RuboCop" +# # Some comment and an empty line +# +# website += "/rubocop/rubocop" unless cond +# puts "rubocop" if debug +# +# # bad for any configuration +# set_app("RuboCop") +# website = "https://github.com/rubocop/rubocop" +# +# # good only if AllowBeforeTrailingComments is true +# object.method(arg) # this is a comment +# +# # good even if AllowBeforeTrailingComments is false or not set +# object.method(arg) # this is a comment +# +# # good with either AllowBeforeTrailingComments or AllowForAlignment +# object.method(arg) # this is a comment +# another_object.method(arg) # this is another comment +# some_object.method(arg) # this is some comment +# +# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#31 +class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base + include ::RuboCop::Cop::PrecedingFollowingAlignment + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#39 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#176 + def align_column(asgn_token); end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#153 + def align_equal_sign(corrector, token, align_to); end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#143 + def align_equal_signs(range, corrector); end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#52 + def aligned_locations(locs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#109 + def aligned_tok?(token); end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#165 + def all_relevant_assignment_lines(line_number); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#185 + def allow_for_trailing_comments?; end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#78 + def check_assignment(token); end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#87 + def check_other(token1, token2, ast); end + + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#68 + def check_tokens(ast, token1, token2); end + + # @yield [range_between(start_pos, end_pos)] + # + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#97 + def extra_space_range(token1, token2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#139 + def force_equal_sign_alignment?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#117 + def ignored_range?(ast, start_pos); end + + # Returns an array of ranges that should not be reported. It's the + # extra spaces between the keys and values in a multiline hash, + # since those are handled by the Layout/HashAlignment cop. + # + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#124 + def ignored_ranges(ast); end +end + +# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#37 +RuboCop::Cop::Layout::ExtraSpacing::MSG_UNALIGNED_ASGN = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#36 +RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) + +# Checks the indentation of the first argument in a method call. +# Arguments after the first one are checked by `Layout/ArgumentAlignment`, +# not by this cop. +# +# For indenting the first parameter of method _definitions_, check out +# `Layout/FirstParameterIndentation`. +# +# This cop will respect `Layout/ArgumentAlignment` and will not work when +# `EnforcedStyle: with_fixed_indentation` is specified for `Layout/ArgumentAlignment`. +# +# @example +# +# # bad +# some_method( +# first_param, +# second_param) +# +# foo = some_method( +# first_param, +# second_param) +# +# foo = some_method(nested_call( +# nested_first_param), +# second_param) +# +# foo = some_method( +# nested_call( +# nested_first_param), +# second_param) +# +# some_method nested_call( +# nested_first_param), +# second_param +# @example EnforcedStyle: special_for_inner_method_call_in_parentheses (default) +# # Same as `special_for_inner_method_call` except that the special rule +# # only applies if the outer method call encloses its arguments in +# # parentheses. +# +# # good +# some_method( +# first_param, +# second_param) +# +# foo = some_method( +# first_param, +# second_param) +# +# foo = some_method(nested_call( +# nested_first_param), +# second_param) +# +# foo = some_method( +# nested_call( +# nested_first_param), +# second_param) +# +# some_method nested_call( +# nested_first_param), +# second_param +# @example EnforcedStyle: consistent +# # The first argument should always be indented one step more than the +# # preceding line. +# +# # good +# some_method( +# first_param, +# second_param) +# +# foo = some_method( +# first_param, +# second_param) +# +# foo = some_method(nested_call( +# nested_first_param), +# second_param) +# +# foo = some_method( +# nested_call( +# nested_first_param), +# second_param) +# +# some_method nested_call( +# nested_first_param), +# second_param +# @example EnforcedStyle: consistent_relative_to_receiver +# # The first argument should always be indented one level relative to +# # the parent that is receiving the argument +# +# # good +# some_method( +# first_param, +# second_param) +# +# foo = some_method( +# first_param, +# second_param) +# +# foo = some_method(nested_call( +# nested_first_param), +# second_param) +# +# foo = some_method( +# nested_call( +# nested_first_param), +# second_param) +# +# some_method nested_call( +# nested_first_param), +# second_params +# @example EnforcedStyle: special_for_inner_method_call +# # The first argument should normally be indented one step more than +# # the preceding line, but if it's a argument for a method call that +# # is itself a argument in a method call, then the inner argument +# # should be indented relative to the inner method. +# +# # good +# some_method( +# first_param, +# second_param) +# +# foo = some_method( +# first_param, +# second_param) +# +# foo = some_method(nested_call( +# nested_first_param), +# second_param) +# +# foo = some_method( +# nested_call( +# nested_first_param), +# second_param) +# +# some_method nested_call( +# nested_first_param), +# second_param +# +# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#147 +class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#222 + def eligible_method_call?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + def on_super(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#281 + def argument_alignment_config; end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#174 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#178 + def bare_operator?(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#198 + def base_indentation(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#226 + def base_range(send_node, arg_node); end + + # Returns the column of the given range. For single line ranges, this + # is simple. For ranges with line breaks, we look a the last code line. + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#238 + def column_of(range); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#259 + def comment_lines; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#277 + def enable_layout_first_method_argument_line_break?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#271 + def enforce_first_argument_with_fixed_indentation?; end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#182 + def message(arg_node); end + + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#267 + def on_new_investigation; end + + # Takes the line number of a given code line and returns a string + # containing the previous line that's not a comment line or a blank + # line. + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#250 + def previous_code_line(line_number); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#170 + def should_check?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#206 + def special_inner_call_indentation?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#153 +RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of the first element in an array literal +# where the opening bracket and the first element are on separate lines. +# The other elements' indentations are handled by the ArrayAlignment cop. +# +# By default, array literals that are arguments in a method call with +# parentheses, and where the opening square bracket of the array is on the +# same line as the opening parenthesis of the method call, shall have +# their first element indented one step (two spaces) more than the +# position inside the opening parenthesis. +# +# Other array literals shall have their first element indented one step +# more than the start of the line where the opening square bracket is. +# +# This default style is called 'special_inside_parentheses'. Alternative +# styles are 'consistent' and 'align_brackets'. Here are examples: +# +# @example EnforcedStyle: special_inside_parentheses (default) +# # The `special_inside_parentheses` style enforces that the first +# # element in an array literal where the opening bracket and first +# # element are on separate lines is indented one step (two spaces) more +# # than the position inside the opening parenthesis. +# +# #bad +# array = [ +# :value +# ] +# and_in_a_method_call([ +# :no_difference +# ]) +# +# #good +# array = [ +# :value +# ] +# but_in_a_method_call([ +# :its_like_this +# ]) +# @example EnforcedStyle: consistent +# # The `consistent` style enforces that the first element in an array +# # literal where the opening bracket and the first element are on +# # separate lines is indented the same as an array literal which is not +# # defined inside a method call. +# +# #bad +# # consistent +# array = [ +# :value +# ] +# but_in_a_method_call([ +# :its_like_this +# ]) +# +# #good +# array = [ +# :value +# ] +# and_in_a_method_call([ +# :no_difference +# ]) +# @example EnforcedStyle: align_brackets +# # The `align_brackets` style enforces that the opening and closing +# # brackets are indented to the same position. +# +# #bad +# # align_brackets +# and_now_for_something = [ +# :completely_different +# ] +# +# #good +# # align_brackets +# and_now_for_something = [ +# :completely_different +# ] +# +# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#82 +class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineElementIndentation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#95 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#95 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#104 + def autocorrect(corrector, node); end + + # Returns the description of what the correct indentation is based on. + # + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#142 + def base_description(indent_base_type); end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#108 + def brace_alignment_style; end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#112 + def check(array_node, left_parenthesis); end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#126 + def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#155 + def message(base_description); end + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#163 + def message_for_right_bracket(indent_base_type); end +end + +# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#88 +RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks for a line break before the first element in a +# multi-line array. +# +# @example +# +# # bad +# [ :a, +# :b] +# +# # good +# [ +# :a, +# :b] +# +# # good +# [:a, :b] +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# [ :a, { +# :b => :c +# }] +# +# # good +# [ +# :a, { +# :b => :c +# }] +# @example AllowMultilineFinalElement: true +# +# # good +# [:a, { +# :b => :c +# }] +# +# source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#43 +class RuboCop::Cop::Layout::FirstArrayElementLineBreak < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FirstElementLineBreak + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#49 + def on_array(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#57 + def assignment_on_same_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#62 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#47 +RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of the first key in a hash literal +# where the opening brace and the first key are on separate lines. The +# other keys' indentations are handled by the HashAlignment cop. +# +# By default, Hash literals that are arguments in a method call with +# parentheses, and where the opening curly brace of the hash is on the +# same line as the opening parenthesis of the method call, shall have +# their first key indented one step (two spaces) more than the position +# inside the opening parenthesis. +# +# Other hash literals shall have their first key indented one step more +# than the start of the line where the opening curly brace is. +# +# This default style is called 'special_inside_parentheses'. Alternative +# styles are 'consistent' and 'align_braces'. Here are examples: +# +# @example EnforcedStyle: special_inside_parentheses (default) +# # The `special_inside_parentheses` style enforces that the first key +# # in a hash literal where the opening brace and the first key are on +# # separate lines is indented one step (two spaces) more than the +# # position inside the opening parentheses. +# +# # bad +# hash = { +# key: :value +# } +# and_in_a_method_call({ +# no: :difference +# }) +# takes_multi_pairs_hash(x: { +# a: 1, +# b: 2 +# }, +# y: { +# c: 1, +# d: 2 +# }) +# +# # good +# special_inside_parentheses +# hash = { +# key: :value +# } +# but_in_a_method_call({ +# its_like: :this +# }) +# takes_multi_pairs_hash(x: { +# a: 1, +# b: 2 +# }, +# y: { +# c: 1, +# d: 2 +# }) +# @example EnforcedStyle: consistent +# # The `consistent` style enforces that the first key in a hash +# # literal where the opening brace and the first key are on +# # separate lines is indented the same as a hash literal which is not +# # defined inside a method call. +# +# # bad +# hash = { +# key: :value +# } +# but_in_a_method_call({ +# its_like: :this +# }) +# +# # good +# hash = { +# key: :value +# } +# and_in_a_method_call({ +# no: :difference +# }) +# @example EnforcedStyle: align_braces +# # The `align_brackets` style enforces that the opening and closing +# # braces are indented to the same position. +# +# # bad +# and_now_for_something = { +# completely: :different +# } +# takes_multi_pairs_hash(x: { +# a: 1, +# b: 2 +# }, +# y: { +# c: 1, +# d: 2 +# }) +# +# # good +# and_now_for_something = { +# completely: :different +# } +# takes_multi_pairs_hash(x: { +# a: 1, +# b: 2 +# }, +# y: { +# c: 1, +# d: 2 +# }) +# +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#113 +class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineElementIndentation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#122 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#233 + def argument_alignment_config; end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#137 + def autocorrect(corrector, node); end + + # Returns the description of what the correct indentation is based on. + # + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#191 + def base_description(indent_base_type); end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#141 + def brace_alignment_style; end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#145 + def check(hash_node, left_parenthesis); end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#184 + def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#164 + def check_right_brace(right_brace, first_pair, left_brace, left_parenthesis); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#227 + def enforce_first_argument_with_fixed_indentation?; end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#204 + def message(base_description); end + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#212 + def message_for_right_brace(indent_base_type); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#178 + def separator_style?(first_pair); end +end + +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#119 +RuboCop::Cop::Layout::FirstHashElementIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks for a line break before the first element in a +# multi-line hash. +# +# @example +# +# # bad +# { a: 1, +# b: 2} +# +# # good +# { +# a: 1, +# b: 2 } +# +# # good +# { +# a: 1, b: { +# c: 3 +# }} +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# { a: 1, b: { +# c: 3 +# }} +# @example AllowMultilineFinalElement: true +# +# # bad +# { a: 1, +# b: { +# c: 3 +# }} +# +# # good +# { a: 1, b: { +# c: 3 +# }} +# +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#46 +class RuboCop::Cop::Layout::FirstHashElementLineBreak < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FirstElementLineBreak + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#52 + def on_hash(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#62 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#50 +RuboCop::Cop::Layout::FirstHashElementLineBreak::MSG = T.let(T.unsafe(nil), String) + +# Checks for a line break before the first argument in a +# multi-line method call. +# +# @example +# +# # bad +# method(foo, bar, +# baz) +# +# # good +# method( +# foo, bar, +# baz) +# +# # ignored +# method foo, bar, +# baz +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# method(foo, bar, { +# baz: "a", +# qux: "b", +# }) +# +# # good +# method( +# foo, bar, { +# baz: "a", +# qux: "b", +# }) +# @example AllowMultilineFinalElement: true +# +# # bad +# method(foo, +# bar, +# { +# baz: "a", +# qux: "b", +# } +# ) +# +# # good +# method(foo, bar, { +# baz: "a", +# qux: "b", +# }) +# +# # good +# method( +# foo, +# bar, +# { +# baz: "a", +# qux: "b", +# } +# ) +# +# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#66 +class RuboCop::Cop::Layout::FirstMethodArgumentLineBreak < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FirstElementLineBreak + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#72 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#72 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#72 + def on_super(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#91 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#70 +RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), String) + +# Checks for a line break before the first parameter in a +# multi-line method parameter definition. +# +# @example +# +# # bad +# def method(foo, bar, +# baz) +# do_something +# end +# +# # good +# def method( +# foo, bar, +# baz) +# do_something +# end +# +# # ignored +# def method foo, +# bar +# do_something +# end +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# def method(foo, bar, baz = { +# :a => "b", +# }) +# do_something +# end +# +# # good +# def method( +# foo, bar, baz = { +# :a => "b", +# }) +# do_something +# end +# @example AllowMultilineFinalElement: true +# +# # good +# def method(foo, bar, baz = { +# :a => "b", +# }) +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#56 +class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FirstElementLineBreak + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#69 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#60 +RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of the first parameter in a method +# definition. Parameters after the first one are checked by +# Layout/ParameterAlignment, not by this cop. +# +# For indenting the first argument of method _calls_, check out +# Layout/FirstArgumentIndentation, which supports options related to +# nesting that are irrelevant for method _definitions_. +# +# @example +# +# # bad +# def some_method( +# first_param, +# second_param) +# 123 +# end +# @example EnforcedStyle: consistent (default) +# # The first parameter should always be indented one step more than the +# # preceding line. +# +# # good +# def some_method( +# first_param, +# second_param) +# 123 +# end +# @example EnforcedStyle: align_parentheses +# # The first parameter should always be indented one step more than the +# # opening parenthesis. +# +# # good +# def some_method( +# first_param, +# second_param) +# 123 +# end +# +# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#44 +class RuboCop::Cop::Layout::FirstParameterIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineElementIndentation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#63 + def autocorrect(corrector, node); end + + # Returns the description of what the correct indentation is based on. + # + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#83 + def base_description(_); end + + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#67 + def brace_alignment_style; end + + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#71 + def check(def_node); end + + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#91 + def message(base_description); end +end + +# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#50 +RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), String) + +# Check that the keys, separators, and values of a multi-line hash +# literal are aligned according to configuration. The configuration +# options are: +# +# * key (left align keys, one space before hash rockets and values) +# * separator (align hash rockets and colons, right align keys) +# * table (left align keys, hash rockets, and values) +# +# The treatment of hashes passed as the last argument to a method call +# can also be configured. The options are: +# +# * always_inspect +# * always_ignore +# * ignore_implicit (without curly braces) +# +# Alternatively you can specify multiple allowed styles. That's done by +# passing a list of styles to EnforcedStyles. +# +# @example EnforcedHashRocketStyle: key (default) +# # bad +# { +# :foo => bar, +# :ba => baz +# } +# { +# :foo => bar, +# :ba => baz +# } +# +# # good +# { +# :foo => bar, +# :ba => baz +# } +# @example EnforcedHashRocketStyle: separator +# # bad +# { +# :foo => bar, +# :ba => baz +# } +# { +# :foo => bar, +# :ba => baz +# } +# +# # good +# { +# :foo => bar, +# :ba => baz +# } +# @example EnforcedHashRocketStyle: table +# # bad +# { +# :foo => bar, +# :ba => baz +# } +# +# # good +# { +# :foo => bar, +# :ba => baz +# } +# @example EnforcedColonStyle: key (default) +# # bad +# { +# foo: bar, +# ba: baz +# } +# { +# foo: bar, +# ba: baz +# } +# +# # good +# { +# foo: bar, +# ba: baz +# } +# @example EnforcedColonStyle: separator +# # bad +# { +# foo: bar, +# ba: baz +# } +# +# # good +# { +# foo: bar, +# ba: baz +# } +# @example EnforcedColonStyle: table +# # bad +# { +# foo: bar, +# ba: baz +# } +# +# # good +# { +# foo: bar, +# ba: baz +# } +# @example EnforcedLastArgumentHashStyle: always_inspect (default) +# # Inspect both implicit and explicit hashes. +# +# # bad +# do_something(foo: 1, +# bar: 2) +# +# # bad +# do_something({foo: 1, +# bar: 2}) +# +# # good +# do_something(foo: 1, +# bar: 2) +# +# # good +# do_something( +# foo: 1, +# bar: 2 +# ) +# +# # good +# do_something({foo: 1, +# bar: 2}) +# +# # good +# do_something({ +# foo: 1, +# bar: 2 +# }) +# @example EnforcedLastArgumentHashStyle: always_ignore +# # Ignore both implicit and explicit hashes. +# +# # good +# do_something(foo: 1, +# bar: 2) +# +# # good +# do_something({foo: 1, +# bar: 2}) +# @example EnforcedLastArgumentHashStyle: ignore_implicit +# # Ignore only implicit hashes. +# +# # bad +# do_something({foo: 1, +# bar: 2}) +# +# # good +# do_something(foo: 1, +# bar: 2) +# @example EnforcedLastArgumentHashStyle: ignore_explicit +# # Ignore only explicit hashes. +# +# # bad +# do_something(foo: 1, +# bar: 2) +# +# # good +# do_something({foo: 1, +# bar: 2}) +# +# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#178 +class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::HashAlignmentStyles + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # Returns the value of attribute column_deltas. + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + def column_deltas; end + + # Sets the attribute column_deltas + # + # @param value the value to set the attribute column_deltas to. + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + def column_deltas=(_arg0); end + + # Returns the value of attribute offenses_by. + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + def offenses_by; end + + # Sets the attribute offenses_by + # + # @param value the value to set the attribute offenses_by to. + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + def offenses_by=(_arg0); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#208 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + def on_super(node); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + def on_yield(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#265 + def add_offenses; end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#371 + def adjust(corrector, delta, range); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#300 + def alignment_for(pair); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#314 + def alignment_for_colons; end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#310 + def alignment_for_hash_rockets; end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#390 + def argument_alignment_config; end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#233 + def argument_before_hash(hash_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#222 + def autocorrect_incompatible_with_other_cops?(node); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#283 + def check_delta(delta, node:, alignment:); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#246 + def check_pairs(node); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#337 + def correct_key_value(corrector, delta, key, value, separator); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#333 + def correct_no_value(corrector, key_delta, key); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#318 + def correct_node(corrector, node, delta); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#242 + def double_splat?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#384 + def enforce_first_argument_with_fixed_indentation?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#380 + def good_alignment?(column_deltas); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#291 + def ignore_hash_argument?(node); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#353 + def new_alignment(key); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#273 + def register_offenses_with_format(offenses, format); end + + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#237 + def reset!; end +end + +# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#183 +RuboCop::Cop::Layout::HashAlignment::MESSAGES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#193 +RuboCop::Cop::Layout::HashAlignment::SEPARATOR_ALIGNMENT_STYLES = T.let(T.unsafe(nil), Array) + +# Checks for the placement of the closing parenthesis +# in a method call that passes a HEREDOC string as an argument. +# It should be placed at the end of the line containing the +# opening HEREDOC tag. +# +# @example +# # bad +# +# foo(<<-SQL +# bar +# SQL +# ) +# +# foo(<<-SQL, 123, <<-NOSQL, +# bar +# SQL +# baz +# NOSQL +# ) +# +# foo( +# bar(<<-SQL +# baz +# SQL +# ), +# 123, +# ) +# +# # good +# +# foo(<<-SQL) +# bar +# SQL +# +# foo(<<-SQL, 123, <<-NOSQL) +# bar +# SQL +# baz +# NOSQL +# +# foo( +# bar(<<-SQL), +# baz +# SQL +# 123, +# ) +# +# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#53 +class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#184 + def add_correct_closing_paren(node, corrector); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#271 + def add_correct_external_trailing_comma(node, corrector); end + + # Autocorrection note: + # + # Commas are a bit tricky to handle when the method call is + # embedded in another expression. Here's an example: + # + # [ + # first_array_value, + # foo(<<-SQL, 123, 456, + # SELECT * FROM db + # SQL + # ), + # third_array_value, + # ] + # + # The "internal" trailing comma is after `456`. + # The "external" trailing comma is after `)`. + # + # To autocorrect, we remove the latter, and move the former up: + # + # [ + # first_array_value, + # foo(<<-SQL, 123, 456), + # SELECT * FROM db + # SQL + # third_array_value, + # ] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#107 + def autocorrect(corrector, node); end + + # Closing parenthesis helpers. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#162 + def end_keyword_before_closing_parenthesis?(parenthesized_send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#222 + def exist_argument_between_heredoc_end_and_closing_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#289 + def external_trailing_comma?(node); end + + # Returns nil if no trailing external comma. + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#294 + def external_trailing_comma_offset_from_loc_end(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#137 + def extract_heredoc(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#133 + def extract_heredoc_argument(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#230 + def find_most_bottom_of_heredoc_end(arguments); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#179 + def fix_closing_parenthesis(node, corrector); end + + # External trailing comma helpers. + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#266 + def fix_external_trailing_comma(node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#149 + def heredoc_node?(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#197 + def incorrect_parenthesis_removal_begin(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#213 + def incorrect_parenthesis_removal_end(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#244 + def internal_trailing_comma?(node); end + + # Returns nil if no trailing internal comma. + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#249 + def internal_trailing_comma_offset_from_last_arg(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#115 + def outermost_send_on_same_line(heredoc); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#188 + def remove_incorrect_closing_paren(node, corrector); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#277 + def remove_incorrect_external_trailing_comma(node, corrector); end + + # Internal trailing comma helpers. + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#238 + def remove_internal_trailing_comma(node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#207 + def safe_to_remove_line_containing_closing_paren?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#126 + def send_missing_closing_parens?(parent, child, heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#153 + def single_line_send_with_heredoc_receiver?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#305 + def space?(pos); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#168 + def subsequent_closing_parentheses_in_same_line?(outermost_send); end + + class << self + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#60 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#57 +RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of the here document bodies. The bodies +# are indented one step. +# +# Note: When ``Layout/LineLength``'s `AllowHeredoc` is false (not default), +# this cop does not add any offenses for long here documents to +# avoid `Layout/LineLength`'s offenses. +# +# @example +# # bad +# <<-RUBY +# something +# RUBY +# +# # good +# <<~RUBY +# something +# RUBY +# +# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#24 +class RuboCop::Cop::Layout::HeredocIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::Heredoc + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#36 + def on_heredoc(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#120 + def adjust_minus(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#115 + def adjust_squiggly(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#144 + def base_indent_level(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#155 + def heredoc_body(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#159 + def heredoc_end(node); end + + # Returns '~', '-' or nil + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#151 + def heredoc_indent_type(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#126 + def indented_body(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#133 + def indented_end(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#91 + def line_too_long?(node); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#103 + def longest_line(lines); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#111 + def max_line_length; end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#69 + def message(heredoc_indent_type); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#57 + def register_offense(node, heredoc_indent_type); end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#79 + def type_message(indentation_width, current_indent_type); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#107 + def unlimited_heredoc_length?; end + + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#87 + def width_message(indentation_width); end +end + +# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#32 +RuboCop::Cop::Layout::HeredocIndentation::TYPE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#34 +RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), String) + +# Checks for inconsistent indentation. +# +# The difference between `indented_internal_methods` and `normal` is +# that the `indented_internal_methods` style prescribes that in +# classes and modules the `protected` and `private` modifier keywords +# shall be indented the same as public methods and that protected and +# private members shall be indented one step more than the modifiers. +# Other than that, both styles mean that entities on the same logical +# depth shall have the same indentation. +# +# @example EnforcedStyle: normal (default) +# # bad +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# end +# +# # bad +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# +# protected +# +# def foo +# end +# +# private +# +# def bar +# end +# end +# +# # good +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# end +# +# # good +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# +# protected +# +# def foo +# end +# +# private +# +# def bar +# end +# end +# @example EnforcedStyle: indented_internal_methods +# # bad +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# end +# +# # bad +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# +# protected +# +# def foo +# end +# +# private +# +# def bar +# end +# end +# +# # good +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# end +# +# # good +# class A +# def test +# puts 'hello' +# puts 'world' +# end +# +# protected +# +# def foo +# end +# +# private +# +# def bar +# end +# end +# +# source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#121 +class RuboCop::Cop::Layout::IndentationConsistency < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#128 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#132 + def on_kwbegin(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#138 + def autocorrect(corrector, node); end + + # Not all nodes define `bare_access_modifier?` (for example, + # `RuboCop::AST::DefNode` does not), so we must check `send_type?` first + # to avoid a NoMethodError. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#145 + def bare_access_modifier?(node); end + + # Returns an integer representing the correct indentation, or nil to + # indicate that the correct indentation is that of the first child that + # is not an access modifier. + # + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#152 + def base_column_for_normal_style(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#172 + def check(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#187 + def check_indented_internal_methods_style(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#180 + def check_normal_style(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#126 +RuboCop::Cop::Layout::IndentationConsistency::MSG = T.let(T.unsafe(nil), String) + +# Checks that the indentation method is consistent. +# Either tabs only or spaces only are used for indentation. +# +# @example EnforcedStyle: spaces (default) +# # bad +# # This example uses a tab to indent bar. +# def foo +# bar +# end +# +# # good +# # This example uses spaces to indent bar. +# def foo +# bar +# end +# @example EnforcedStyle: tabs +# # bad +# # This example uses spaces to indent bar. +# def foo +# bar +# end +# +# # good +# # This example uses a tab to indent bar. +# def foo +# bar +# end +# +# source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#34 +class RuboCop::Cop::Layout::IndentationStyle < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#42 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#58 + def autocorrect(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#82 + def autocorrect_lambda_for_spaces(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#77 + def autocorrect_lambda_for_tabs(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#66 + def find_offense(line, lineno); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#88 + def in_string_literal?(ranges, tabs_range); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#109 + def message(_node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#92 + def string_literal_ranges(ast); end +end + +# source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#40 +RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String) + +# Checks for indentation that doesn't use the specified number +# of spaces. +# +# See also the IndentationConsistency cop which is the companion to this +# one. +# +# @example +# # bad +# class A +# def test +# puts 'hello' +# end +# end +# +# # good +# class A +# def test +# puts 'hello' +# end +# end +# @example AllowedPatterns: ['^\s*module'] +# # bad +# module A +# class B +# def test +# puts 'hello' +# end +# end +# end +# +# # good +# module A +# class B +# def test +# puts 'hello' +# end +# end +# end +# +# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#45 +class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::EndKeywordAlignment + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::CheckAssignment + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#57 + def access_modifier?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#138 + def on_case(case_node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#146 + def on_case_match(case_match); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#95 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#104 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#121 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#121 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#66 + def on_ensure(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#66 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#156 + def on_if(node, base = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#73 + def on_kwbegin(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#95 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#66 + def on_resbody(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#61 + def on_rescue(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#95 + def on_sclass(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#104 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#128 + def on_until(node, base = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#128 + def on_while(node, base = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#227 + def access_modifier_indentation_style; end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#165 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#235 + def check_assignment(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#255 + def check_if(node, body, else_clause, base_loc); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#268 + def check_indentation(base_loc, body_node, style = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#169 + def check_members(base, members); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#193 + def check_members_for_indented_internal_methods_style(members); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#199 + def check_members_for_normal_style(base, members); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#341 + def check_rescue?(rescue_node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#377 + def configured_indentation_width; end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#207 + def each_member(members); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#231 + def indentation_consistency_style; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#323 + def indentation_to_check?(base_loc, body_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#219 + def indented_internal_methods_style?; end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#381 + def leftmost_modifier_of(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#302 + def message(configured_indentation_width, indentation, name); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#360 + def offending_range(body_node, indentation); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#278 + def offense(body_node, indentation, style); end + + # Returns true if the given node is within another node that has + # already been marked for autocorrection by this cop. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#313 + def other_offense_in_same_range?(node); end + + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#181 + def select_check_member(member); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#345 + def skip_check?(base_loc, body_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#223 + def special_modifier?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#368 + def starts_with_access_modifier?(body_node); end +end + +# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#53 +RuboCop::Cop::Layout::IndentationWidth::MSG = T.let(T.unsafe(nil), String) + +# Checks for indentation of the first non-blank non-comment +# line in a file. +# +# @example +# # bad +# class A +# def foo; end +# end +# +# # good +# class A +# def foo; end +# end +# +# source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#20 +class RuboCop::Cop::Layout::InitialIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#26 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#36 + def first_token; end + + # @yield [range_between(space_range.begin_pos, token.begin_pos)] + # + # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#40 + def space_before(token); end +end + +# source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#24 +RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) + +# Checks whether comments have a leading space after the +# `#` denoting the start of the comment. The leading space is not +# required for some RDoc special syntax, like `#++`, `#--`, +# `#:nodoc`, `=begin`- and `=end` comments, "shebang" directives, +# or rackup options. +# +# @example +# +# # bad +# #Some comment +# +# # good +# # Some comment +# @example AllowDoxygenCommentStyle: false (default) +# +# # bad +# +# #** +# # Some comment +# # Another line of comment +# #* +# @example AllowDoxygenCommentStyle: true +# +# # good +# +# #** +# # Some comment +# # Another line of comment +# #* +# @example AllowGemfileRubyComment: false (default) +# +# # bad +# +# #ruby=2.7.0 +# #ruby-gemset=myproject +# @example AllowGemfileRubyComment: true +# +# # good +# +# #ruby=2.7.0 +# #ruby-gemset=myproject +# +# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#52 +class RuboCop::Cop::Layout::LeadingCommentSpace < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#58 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#95 + def allow_doxygen_comment?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#103 + def allow_gemfile_ruby_comment?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#79 + def allowed_on_first_line?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#99 + def doxygen_comment_style?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#107 + def gemfile?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#115 + def gemfile_ruby_comment?(comment); end + + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#75 + def hash_mark(expr); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#91 + def rackup_config_file?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#87 + def rackup_options?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#111 + def ruby_comment_in_gemfile?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#83 + def shebang?(comment); end +end + +# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#56 +RuboCop::Cop::Layout::LeadingCommentSpace::MSG = T.let(T.unsafe(nil), String) + +# Checks for unnecessary leading blank lines at the beginning +# of a file. +# +# @example +# +# # bad +# # (start of file) +# +# class Foo +# end +# +# # bad +# # (start of file) +# +# # a comment +# +# # good +# # (start of file) +# class Foo +# end +# +# # good +# # (start of file) +# # a comment +# +# source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#30 +class RuboCop::Cop::Layout::LeadingEmptyLines < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#35 + def on_new_investigation; end +end + +# source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#33 +RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String) + +# Checks that strings broken over multiple lines (by a backslash) contain +# trailing spaces instead of leading spaces (default) or leading spaces +# instead of trailing spaces. +# +# @example EnforcedStyle: trailing (default) +# # bad +# 'this text contains a lot of' \ +# ' spaces' +# +# # good +# 'this text contains a lot of ' \ +# 'spaces' +# +# # bad +# 'this text is too' \ +# ' long' +# +# # good +# 'this text is too ' \ +# 'long' +# @example EnforcedStyle: leading +# # bad +# 'this text contains a lot of ' \ +# 'spaces' +# +# # good +# 'this text contains a lot of' \ +# ' spaces' +# +# # bad +# 'this text is too ' \ +# 'long' +# +# # good +# 'this text is too' \ +# ' long' +# +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#43 +class RuboCop::Cop::Layout::LineContinuationLeadingSpace < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#54 + def on_dstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#113 + def autocorrect(corrector, offense_range, insert_pos, spaces); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#106 + def continuation?(line, line_num, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#138 + def enforced_style_leading?; end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#76 + def investigate(first_line, second_line, end_of_first_line); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#84 + def investigate_leading_style(first_line, second_line, end_of_first_line); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#95 + def investigate_trailing_style(first_line, second_line, end_of_first_line); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#118 + def leading_offense_range(end_of_first_line, matches); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#130 + def message(_range); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#72 + def raw_lines(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#124 + def trailing_offense_range(end_of_first_line, matches); end +end + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#49 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::LEADING_STYLE_OFFENSE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#47 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::LINE_1_ENDING = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#48 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::LINE_2_BEGINNING = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#50 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::TRAILING_STYLE_OFFENSE = T.let(T.unsafe(nil), Regexp) + +# Checks that the backslash of a line continuation is separated from +# preceding text by exactly one space (default) or zero spaces. +# +# @example EnforcedStyle: space (default) +# # bad +# 'a'\ +# 'b' \ +# 'c' +# +# # good +# 'a' \ +# 'b' \ +# 'c' +# @example EnforcedStyle: no_space +# # bad +# 'a' \ +# 'b' \ +# 'c' +# +# # good +# 'a'\ +# 'b'\ +# 'c' +# +# source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#30 +class RuboCop::Cop::Layout::LineContinuationSpacing < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#34 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#81 + def autocorrect(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#111 + def comment_ranges(comments); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#65 + def find_offensive_spacing(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#121 + def ignore_range?(backtick_range); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#91 + def ignored_literal_ranges(ast); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#125 + def ignored_ranges; end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#49 + def investigate(line, line_number); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#115 + def last_line(processed_source); end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#73 + def message(_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#130 + def no_space_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#134 + def space_style?; end +end + +# Checks the indentation of the next line after a line that ends with a string +# literal and a backslash. +# +# If `EnforcedStyle: aligned` is set, the concatenated string parts shall be aligned with the +# first part. There are some exceptions, such as implicit return values, where the +# concatenated string parts shall be indented regardless of `EnforcedStyle` configuration. +# +# If `EnforcedStyle: indented` is set, it's the second line that shall be indented one step +# more than the first line. Lines 3 and forward shall be aligned with line 2. +# +# @example +# # bad +# def some_method +# 'x' \ +# 'y' \ +# 'z' +# end +# +# my_hash = { +# first: 'a message' \ +# 'in two parts' +# } +# +# # good +# def some_method +# 'x' \ +# 'y' \ +# 'z' +# end +# @example EnforcedStyle: aligned (default) +# # bad +# puts 'x' \ +# 'y' +# +# my_hash = { +# first: 'a message' \ +# 'in two parts' +# } +# +# # good +# puts 'x' \ +# 'y' +# +# my_hash = { +# first: 'a message' \ +# 'in two parts' +# } +# @example EnforcedStyle: indented +# # bad +# result = 'x' \ +# 'y' +# +# my_hash = { +# first: 'a message' \ +# 'in two parts' +# } +# +# # good +# result = 'x' \ +# 'y' +# +# my_hash = { +# first: 'a message' \ +# 'in two parts' +# } +# +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#74 +class RuboCop::Cop::Layout::LineEndStringConcatenationIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#97 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#83 + def on_dstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#137 + def add_offense_and_correction(node, message); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#109 + def always_indented?(dstr_node); end + + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#128 + def base_column(child); end + + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#113 + def check_aligned(children, start_index); end + + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#122 + def check_indented(children); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#103 + def strings_concatenated_with_backslash?(dstr_node); end +end + +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#79 +RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#80 +RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::MSG_INDENT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#81 +RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_INDENTED = T.let(T.unsafe(nil), Array) + +# Checks the length of lines in the source code. +# The maximum length is configurable. +# The tab size is configured in the `IndentationWidth` +# of the `Layout/IndentationStyle` cop. +# It also ignores a shebang line by default. +# +# This cop has some autocorrection capabilities. +# It can programmatically shorten certain long lines by +# inserting line breaks into expressions that can be safely +# split across lines. These include arrays, hashes, and +# method calls with argument lists. +# +# If autocorrection is enabled, the following Layout cops +# are recommended to further format the broken lines. +# (Many of these are enabled by default.) +# +# * ArgumentAlignment +# * ArrayAlignment +# * BlockAlignment +# * BlockDelimiters +# * BlockEndNewline +# * ClosingParenthesisIndentation +# * FirstArgumentIndentation +# * FirstArrayElementIndentation +# * FirstHashElementIndentation +# * FirstParameterIndentation +# * HashAlignment +# * IndentationWidth +# * MultilineArrayLineBreaks +# * MultilineBlockLayout +# * MultilineHashBraceLayout +# * MultilineHashKeyLineBreaks +# * MultilineMethodArgumentLineBreaks +# * MultilineMethodParameterLineBreaks +# * ParameterAlignment +# +# Together, these cops will pretty print hashes, arrays, +# method calls, etc. For example, let's say the max columns +# is 25: +# +# @example +# +# # bad +# {foo: "0000000000", bar: "0000000000", baz: "0000000000"} +# +# # good +# {foo: "0000000000", +# bar: "0000000000", baz: "0000000000"} +# +# # good (with recommended cops enabled) +# { +# foo: "0000000000", +# bar: "0000000000", +# baz: "0000000000", +# } +# +# source://rubocop//lib/rubocop/cop/layout/line_length.rb#63 +class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CheckLineBreakable + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#94 + def on_investigation_end; end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + def on_potential_breakable_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#219 + def allow_heredoc?; end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#223 + def allowed_heredoc; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#183 + def allowed_line?(line, line_index); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#135 + def breakable_block_range(block_node); end + + # Returns the value of attribute breakable_range. + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#102 + def breakable_range; end + + # Sets the attribute breakable_range + # + # @param value the value to set the attribute breakable_range to. + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#102 + def breakable_range=(_arg0); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#143 + def breakable_range_after_semicolon(semicolon_token); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#156 + def breakable_range_by_line_index; end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#250 + def check_directive_line(line, line_index); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#125 + def check_for_breakable_block(block_node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#104 + def check_for_breakable_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#117 + def check_for_breakable_semicolons(processed_source); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#171 + def check_line(line, line_index); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#267 + def check_uri_line(line, line_index); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#204 + def excess_range(uri_range, line, line_index); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#227 + def extract_heredocs(ast); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#160 + def heredocs; end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#164 + def highlight_start(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#246 + def line_in_heredoc?(line_number); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#237 + def line_in_permitted_heredoc?(line_number); end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#215 + def max; end + + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#193 + def register_offense(loc, line, line_index, length: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#189 + def shebang?(line, line_index); end +end + +# source://rubocop//lib/rubocop/cop/layout/line_length.rb#72 +RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String) + +# Checks that the closing brace in an array literal is either +# on the same line as the last array element or on a new line. +# +# When using the `symmetrical` (default) style: +# +# If an array's opening brace is on the same line as the first element +# of the array, then the closing brace should be on the same line as +# the last element of the array. +# +# If an array's opening brace is on the line above the first element +# of the array, then the closing brace should be on the line below +# the last element of the array. +# +# When using the `new_line` style: +# +# The closing brace of a multi-line array literal must be on the line +# after the last element of the array. +# +# When using the `same_line` style: +# +# The closing brace of a multi-line array literal must be on the same +# line as the last element of the array. +# +# @example EnforcedStyle: symmetrical (default) +# # bad +# [ :a, +# :b +# ] +# +# # bad +# [ +# :a, +# :b ] +# +# # good +# [ :a, +# :b ] +# +# # good +# [ +# :a, +# :b +# ] +# @example EnforcedStyle: new_line +# # bad +# [ +# :a, +# :b ] +# +# # bad +# [ :a, +# :b ] +# +# # good +# [ :a, +# :b +# ] +# +# # good +# [ +# :a, +# :b +# ] +# @example EnforcedStyle: same_line +# # bad +# [ :a, +# :b +# ] +# +# # bad +# [ +# :a, +# :b +# ] +# +# # good +# [ +# :a, +# :b ] +# +# # good +# [ :a, +# :b ] +# +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#91 +class RuboCop::Cop::Layout::MultilineArrayBraceLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineLiteralBraceLayout + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#109 + def on_array(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#103 +RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#106 +RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#99 +RuboCop::Cop::Layout::MultilineArrayBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#95 +RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# Ensures that each item in a multi-line array +# starts on a separate line. +# +# @example +# +# # bad +# [ +# a, b, +# c +# ] +# +# # good +# [ +# a, +# b, +# c +# ] +# +# # good +# [ +# a, +# b, +# foo( +# bar +# ) +# ] +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# [a, b, foo( +# bar +# )] +# @example AllowMultilineFinalElement: true +# +# # good +# [a, b, foo( +# bar +# )] +# +# source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#47 +class RuboCop::Cop::Layout::MultilineArrayLineBreaks < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MultilineElementLineBreaks + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#53 + def on_array(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#59 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#51 +RuboCop::Cop::Layout::MultilineArrayLineBreaks::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the multiline assignments have a newline +# after the assignment operator. +# +# @example EnforcedStyle: new_line (default) +# # bad +# foo = if expression +# 'bar' +# end +# +# # good +# foo = +# if expression +# 'bar' +# end +# +# # good +# foo = +# begin +# compute +# rescue => e +# nil +# end +# @example EnforcedStyle: same_line +# # good +# foo = if expression +# 'bar' +# end +# @example SupportedTypes: ['block', 'case', 'class', 'if', 'kwbegin', 'module'] (default) +# # good +# foo = +# if expression +# 'bar' +# end +# +# # good +# foo = +# [1].map do |i| +# i + 1 +# end +# @example SupportedTypes: ['block'] +# # good +# foo = if expression +# 'bar' +# end +# +# # good +# foo = +# [1].map do |i| +# 'bar' * i +# end +# +# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#60 +class RuboCop::Cop::Layout::MultilineAssignmentLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CheckAssignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#72 + def check_assignment(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#81 + def check_by_enforced_style(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#90 + def check_new_line_offense(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#98 + def check_same_line_offense(node, rhs); end + + private + + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#111 + def supported_types; end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#66 +RuboCop::Cop::Layout::MultilineAssignmentLayout::NEW_LINE_OFFENSE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#69 +RuboCop::Cop::Layout::MultilineAssignmentLayout::SAME_LINE_OFFENSE = T.let(T.unsafe(nil), String) + +# Checks whether the multiline do end blocks have a newline +# after the start of the block. Additionally, it checks whether the block +# arguments, if any, are on the same line as the start of the +# block. Putting block arguments on separate lines, because the whole +# line would otherwise be too long, is accepted. +# +# @example +# # bad +# blah do |i| foo(i) +# bar(i) +# end +# +# # bad +# blah do +# |i| foo(i) +# bar(i) +# end +# +# # good +# blah do |i| +# foo(i) +# bar(i) +# end +# +# # bad +# blah { |i| foo(i) +# bar(i) +# } +# +# # good +# blah { |i| +# foo(i) +# bar(i) +# } +# +# # good +# blah { | +# long_list, +# of_parameters, +# that_would_not, +# fit_on_one_line +# | +# foo(i) +# bar(i) +# } +# +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#51 +class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#98 + def add_offense_for_expression(node, expr, msg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#75 + def args_on_beginning_line?(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#105 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#120 + def autocorrect_arguments(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#130 + def autocorrect_body(corrector, node, block_body); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#142 + def block_arg_string(node, args); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#90 + def characters_needed_for_space_and_pipes(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#154 + def include_trailing_comma?(args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#79 + def line_break_necessary_in_args?(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#83 + def needed_length_for_args(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#56 +RuboCop::Cop::Layout::MultilineBlockLayout::ARG_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#55 +RuboCop::Cop::Layout::MultilineBlockLayout::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#57 +RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Integer) + +# Checks that the closing brace in a hash literal is either +# on the same line as the last hash element, or a new line. +# +# When using the `symmetrical` (default) style: +# +# If a hash's opening brace is on the same line as the first element +# of the hash, then the closing brace should be on the same line as +# the last element of the hash. +# +# If a hash's opening brace is on the line above the first element +# of the hash, then the closing brace should be on the line below +# the last element of the hash. +# +# When using the `new_line` style: +# +# The closing brace of a multi-line hash literal must be on the line +# after the last element of the hash. +# +# When using the `same_line` style: +# +# The closing brace of a multi-line hash literal must be on the same +# line as the last element of the hash. +# +# @example EnforcedStyle: symmetrical (default) +# +# # bad +# { a: 1, +# b: 2 +# } +# # bad +# { +# a: 1, +# b: 2 } +# +# # good +# { a: 1, +# b: 2 } +# +# # good +# { +# a: 1, +# b: 2 +# } +# @example EnforcedStyle: new_line +# # bad +# { +# a: 1, +# b: 2 } +# +# # bad +# { a: 1, +# b: 2 } +# +# # good +# { a: 1, +# b: 2 +# } +# +# # good +# { +# a: 1, +# b: 2 +# } +# @example EnforcedStyle: same_line +# # bad +# { a: 1, +# b: 2 +# } +# +# # bad +# { +# a: 1, +# b: 2 +# } +# +# # good +# { +# a: 1, +# b: 2 } +# +# # good +# { a: 1, +# b: 2 } +# +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#91 +class RuboCop::Cop::Layout::MultilineHashBraceLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineLiteralBraceLayout + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#109 + def on_hash(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#103 +RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#106 +RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#99 +RuboCop::Cop::Layout::MultilineHashBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#95 +RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# Ensures that each key in a multi-line hash +# starts on a separate line. +# +# @example +# +# # bad +# { +# a: 1, b: 2, +# c: 3 +# } +# +# # good +# { +# a: 1, +# b: 2, +# c: 3 +# } +# +# # good +# { +# a: 1, +# b: { +# c: 3, +# } +# } +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# { a: 1, b: { +# c: 3, +# }} +# @example AllowMultilineFinalElement: true +# +# # good +# { a: 1, b: { +# c: 3, +# }} +# +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#46 +class RuboCop::Cop::Layout::MultilineHashKeyLineBreaks < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MultilineElementLineBreaks + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#52 + def on_hash(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#68 + def ignore_last_element?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#64 + def starts_with_curly_brace?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#50 +RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), String) + +# Ensures that each argument in a multi-line method call +# starts on a separate line. +# +# NOTE: This cop does not move the first argument, if you want that to +# be on a separate line, see `Layout/FirstMethodArgumentLineBreak`. +# +# @example +# +# # bad +# foo(a, b, +# c +# ) +# +# # bad +# foo(a, b, { +# foo: "bar", +# }) +# +# # good +# foo( +# a, +# b, +# c +# ) +# +# # good +# foo(a, b, c) +# @example AllowMultilineFinalElement: false (default) +# +# # good +# foo( +# a, +# b, +# { +# foo: "bar", +# } +# ) +# @example AllowMultilineFinalElement: true +# +# # good +# foo( +# a, +# b, +# { +# foo: "bar", +# } +# ) +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#56 +class RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MultilineElementLineBreaks + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#62 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#81 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#60 +RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(nil), String) + +# Checks that the closing brace in a method call is either +# on the same line as the last method argument, or a new line. +# +# When using the `symmetrical` (default) style: +# +# If a method call's opening brace is on the same line as the first +# argument of the call, then the closing brace should be on the same +# line as the last argument of the call. +# +# If an method call's opening brace is on the line above the first +# argument of the call, then the closing brace should be on the line +# below the last argument of the call. +# +# When using the `new_line` style: +# +# The closing brace of a multi-line method call must be on the line +# after the last argument of the call. +# +# When using the `same_line` style: +# +# The closing brace of a multi-line method call must be on the same +# line as the last argument of the call. +# +# @example EnforcedStyle: symmetrical (default) +# # bad +# foo(a, +# b +# ) +# +# # bad +# foo( +# a, +# b) +# +# # good +# foo(a, +# b) +# +# # good +# foo( +# a, +# b +# ) +# @example EnforcedStyle: new_line +# # bad +# foo( +# a, +# b) +# +# # bad +# foo(a, +# b) +# +# # good +# foo(a, +# b +# ) +# +# # good +# foo( +# a, +# b +# ) +# @example EnforcedStyle: same_line +# # bad +# foo(a, +# b +# ) +# +# # bad +# foo( +# a, +# b +# ) +# +# # good +# foo( +# a, +# b) +# +# # good +# foo(a, +# b) +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#91 +class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineLiteralBraceLayout + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#115 + def children(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#119 + def ignored_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#123 + def single_line_ignoring_receiver?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#103 +RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#106 +RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#99 +RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#95 +RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# Checks the indentation of the method name part in method calls +# that span more than one line. +# +# @example EnforcedStyle: aligned (default) +# # bad +# while myvariable +# .b +# # do something +# end +# +# # good +# while myvariable +# .b +# # do something +# end +# +# # good +# Thing.a +# .b +# .c +# @example EnforcedStyle: indented +# # good +# while myvariable +# .b +# +# # do something +# end +# @example EnforcedStyle: indented_relative_to_receiver +# # good +# while myvariable +# .a +# .b +# +# # do something +# end +# +# # good +# myvariable = Thing +# .a +# .b +# .c +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#49 +class RuboCop::Cop::Layout::MultilineMethodCallIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::MultilineExpressionIndentation + extend ::RuboCop::Cop::AutoCorrector + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#55 + def validate_config; end + + private + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#136 + def align_with_base_message(rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#152 + def alignment_base(node, rhs, given_style); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#67 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#140 + def base_source; end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#101 + def extra_indentation(given_style, parent); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#226 + def find_multiline_block_chain_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#237 + def first_call_has_a_dot(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#217 + def get_dot_right_above(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#113 + def message(node, lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#144 + def no_base_message(lhs, rhs, node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#87 + def offending_range(node, lhs, rhs, given_style); end + + # @yield [operation_rhs.first_argument] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#247 + def operation_rhs(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#257 + def operator_rhs?(node, receiver); end + + # a + # .b + # .c + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#193 + def receiver_alignment_base(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#131 + def relative_to_receiver_message(rhs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#71 + def relevant_node?(send_node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#75 + def right_hand_side(send_node); end + + # a.b + # .c + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#181 + def semantic_alignment_base(node, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#201 + def semantic_alignment_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#127 + def should_align_with_base?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#123 + def should_indent_relative_to_receiver?; end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#163 + def syntactic_alignment_base(lhs, rhs); end +end + +# Checks that the closing brace in a method definition is either +# on the same line as the last method parameter, or a new line. +# +# When using the `symmetrical` (default) style: +# +# If a method definition's opening brace is on the same line as the +# first parameter of the definition, then the closing brace should be +# on the same line as the last parameter of the definition. +# +# If an method definition's opening brace is on the line above the first +# parameter of the definition, then the closing brace should be on the +# line below the last parameter of the definition. +# +# When using the `new_line` style: +# +# The closing brace of a multi-line method definition must be on the line +# after the last parameter of the definition. +# +# When using the `same_line` style: +# +# The closing brace of a multi-line method definition must be on the same +# line as the last parameter of the definition. +# +# @example EnforcedStyle: symmetrical (default) +# # bad +# def foo(a, +# b +# ) +# end +# +# # bad +# def foo( +# a, +# b) +# end +# +# # good +# def foo(a, +# b) +# end +# +# # good +# def foo( +# a, +# b +# ) +# end +# @example EnforcedStyle: new_line +# # bad +# def foo( +# a, +# b) +# end +# +# # bad +# def foo(a, +# b) +# end +# +# # good +# def foo(a, +# b +# ) +# end +# +# # good +# def foo( +# a, +# b +# ) +# end +# @example EnforcedStyle: same_line +# # bad +# def foo(a, +# b +# ) +# end +# +# # bad +# def foo( +# a, +# b +# ) +# end +# +# # good +# def foo( +# a, +# b) +# end +# +# # good +# def foo(a, +# b) +# end +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#103 +class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineLiteralBraceLayout + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 + def on_defs(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#115 +RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#118 +RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#111 +RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#107 +RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) + +# Ensures that each parameter in a multi-line method definition +# starts on a separate line. +# +# NOTE: This cop does not move the first argument, if you want that to +# be on a separate line, see `Layout/FirstMethodParameterLineBreak`. +# +# @example +# +# # bad +# def foo(a, b, +# c +# ) +# end +# +# # good +# def foo( +# a, +# b, +# c +# ) +# end +# +# # good +# def foo( +# a, +# b = { +# foo: "bar", +# } +# ) +# end +# +# # good +# def foo(a, b, c) +# end +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# def foo(a, b = { +# foo: "bar", +# }) +# end +# @example AllowMultilineFinalElement: true +# +# # good +# def foo(a, b = { +# foo: "bar", +# }) +# end +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#57 +class RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MultilineElementLineBreaks + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63 + def on_def(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#71 + def ignore_last_element?; end +end + +# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#61 +RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(nil), String) + +# Checks the indentation of the right hand side operand in binary operations that +# span more than one line. +# +# The `aligned` style checks that operators are aligned if they are part of an `if` or `while` +# condition, an explicit `return` statement, etc. In other contexts, the second operand should +# be indented regardless of enforced style. +# +# @example EnforcedStyle: aligned (default) +# # bad +# if a + +# b +# something && +# something_else +# end +# +# # good +# if a + +# b +# something && +# something_else +# end +# @example EnforcedStyle: indented +# # bad +# if a + +# b +# something && +# something_else +# end +# +# # good +# if a + +# b +# something && +# something_else +# end +# +# source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#43 +class RuboCop::Cop::Layout::MultilineOperationIndentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::MultilineExpressionIndentation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#49 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#53 + def on_or(node); end + + # @raise [ValidationError] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#57 + def validate_config; end + + private + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#68 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#78 + def check_and_or(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#110 + def message(node, lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#84 + def offending_range(node, lhs, rhs, given_style); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#72 + def relevant_node?(node); end + + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#121 + def right_hand_side(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#97 + def should_align?(node, rhs, given_style); end +end + +# Here we check if the parameters on a multi-line method call or +# definition are aligned. +# +# To set the alignment of the first argument, use the cop +# FirstParameterIndentation. +# +# @example EnforcedStyle: with_first_parameter (default) +# # good +# +# def foo(bar, +# baz) +# 123 +# end +# +# def foo( +# bar, +# baz +# ) +# 123 +# end +# +# # bad +# +# def foo(bar, +# baz) +# 123 +# end +# +# # bad +# +# def foo( +# bar, +# baz) +# 123 +# end +# @example EnforcedStyle: with_fixed_indentation +# # good +# +# def foo(bar, +# baz) +# 123 +# end +# +# def foo( +# bar, +# baz +# ) +# 123 +# end +# +# # bad +# +# def foo(bar, +# baz) +# 123 +# end +# +# # bad +# +# def foo( +# bar, +# baz) +# 123 +# end +# +# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#71 +class RuboCop::Cop::Layout::ParameterAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#81 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#81 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#90 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#102 + def base_column(node, args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#98 + def fixed_indentation?; end + + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#94 + def message(_node); end + + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#113 + def target_method_lineno(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#75 +RuboCop::Cop::Layout::ParameterAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#78 +RuboCop::Cop::Layout::ParameterAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) + +# Checks whether certain expressions, e.g. method calls, that could fit +# completely on a single line, are broken up into multiple lines unnecessarily. +# +# @example any configuration +# # bad +# foo( +# a, +# b +# ) +# +# puts 'string that fits on ' \ +# 'a single line' +# +# things +# .select { |thing| thing.cond? } +# .join('-') +# +# # good +# foo(a, b) +# +# puts 'string that fits on a single line' +# +# things.select { |thing| thing.cond? }.join('-') +# @example InspectBlocks: false (default) +# # good +# foo(a) do |x| +# puts x +# end +# @example InspectBlocks: true +# # bad +# foo(a) do |x| +# puts x +# end +# +# # good +# foo(a) { |x| puts x } +# +# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#45 +class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CheckAssignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#51 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#55 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#72 + def check_assignment(node, _rhs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120 + def comment_within?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#90 + def configured_to_not_be_inspected?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#114 + def convertible_block?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#68 + def end_with_percent_blank_string?(processed_source); end + + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#142 + def max_line_length; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#85 + def offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97 + def other_cop_takes_precedence?(node); end + + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#78 + def register_offense(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103 + def single_line_block_chain_enabled?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#107 + def suitable_as_single_line?(node); end + + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133 + def to_single_line(source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#128 + def too_long?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#49 +RuboCop::Cop::Layout::RedundantLineBreak::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the rescue and ensure keywords are aligned +# properly. +# +# @example +# +# # bad +# begin +# something +# rescue +# puts 'error' +# end +# +# # good +# begin +# something +# rescue +# puts 'error' +# end +# +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#24 +class RuboCop::Cop::Layout::RescueEnsureAlignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::EndKeywordAlignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#40 + def on_ensure(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#44 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#36 + def on_resbody(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#186 + def access_modifier?(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#163 + def access_modifier_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#149 + def aligned_with_leading_dot?(do_keyword_line, send_node_loc, rescue_keyword_column); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#136 + def aligned_with_line_break_method?(ancestor_node, node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#195 + def alignment_location(alignment_node); end + + # We will use ancestor or wrapper with access modifier. + # + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#116 + def alignment_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#95 + def alignment_source(node, starting_loc); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#132 + def ancestor_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#155 + def assignment_node(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#73 + def autocorrect(corrector, node, alignment_location); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#203 + def begin_end_alignment_style; end + + # Check alignment of node with rescue or ensure modifiers. + # + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#57 + def check(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#83 + def format_message(alignment_node, alignment_loc, kw_loc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#173 + def modifier?(node); end + + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#179 + def whitespace_range(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#34 +RuboCop::Cop::Layout::RescueEnsureAlignment::ALTERNATIVE_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#32 +RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#33 +RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES_WITH_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#29 +RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String) + +# Checks if method calls are chained onto single line blocks. It considers that a +# line break before the dot improves the readability of the code. +# +# @example +# # bad +# example.select { |item| item.cond? }.join('-') +# +# # good +# example.select { |item| item.cond? } +# .join('-') +# +# # good (not a concern for this cop) +# example.select do |item| +# item.cond? +# end.join('-') +# +# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#22 +class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#28 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#51 + def call_method_after_block?(node, dot_range, closing_block_delimiter_line_num); end + + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#35 + def offending_range(node); end + + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#57 + def selector_range(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#26 +RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String) + +# Checks for colon (:) not followed by some kind of space. +# N.B. this cop does not handle spaces after a ternary operator, which are +# instead handled by Layout/SpaceAroundOperators. +# +# @example +# # bad +# def f(a:, b:2); {a:3}; end +# +# # good +# def f(a:, b: 2); {a: 3}; end +# +# source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#16 +class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#29 + def on_kwoptarg(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#21 + def on_pair(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#43 + def followed_by_space?(colon); end + + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#39 + def register_offense(colon); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#19 +RuboCop::Cop::Layout::SpaceAfterColon::MSG = T.let(T.unsafe(nil), String) + +# Checks for comma (,) not followed by some kind of space. +# +# @example +# +# # bad +# [1,2] +# { foo:bar,} +# +# # good +# [1, 2] +# { foo:bar, } +# +# source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#17 +class RuboCop::Cop::Layout::SpaceAfterComma < ::RuboCop::Cop::Base + include ::RuboCop::Cop::SpaceAfterPunctuation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#26 + def kind(token); end + + # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#21 + def space_style_before_rcurly; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#32 + def before_semicolon?(token); end +end + +# Checks for space between a method name and a left parenthesis in defs. +# +# @example +# +# # bad +# def func (x) end +# def method= (y) end +# +# # good +# def func(x) end +# def method=(y) end +# +# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#17 +class RuboCop::Cop::Layout::SpaceAfterMethodName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 + def on_defs(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#21 +RuboCop::Cop::Layout::SpaceAfterMethodName::MSG = T.let(T.unsafe(nil), String) + +# Checks for space after `!`. +# +# @example +# # bad +# ! something +# +# # good +# !something +# +# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#14 +class RuboCop::Cop::Layout::SpaceAfterNot < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#21 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#33 + def whitespace_after_operator?(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#18 +RuboCop::Cop::Layout::SpaceAfterNot::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#19 +RuboCop::Cop::Layout::SpaceAfterNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for semicolon (;) not followed by some kind of space. +# +# @example +# # bad +# x = 1;y = 2 +# +# # good +# x = 1; y = 2 +# +# source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#14 +class RuboCop::Cop::Layout::SpaceAfterSemicolon < ::RuboCop::Cop::Base + include ::RuboCop::Cop::SpaceAfterPunctuation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#23 + def kind(token); end + + # source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#18 + def space_style_before_rcurly; end +end + +# Checks the spacing inside and after block parameters pipes. Line breaks +# inside parameter pipes are checked by `Layout/MultilineBlockLayout` and +# not by this cop. +# +# @example EnforcedStyleInsidePipes: no_space (default) +# # bad +# {}.each { | x, y |puts x } +# ->( x, y ) { puts x } +# +# # good +# {}.each { |x, y| puts x } +# ->(x, y) { puts x } +# @example EnforcedStyleInsidePipes: space +# # bad +# {}.each { |x, y| puts x } +# ->(x, y) { puts x } +# +# # good +# {}.each { | x, y | puts x } +# ->( x, y ) { puts x } +# +# source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#27 +class RuboCop::Cop::Layout::SpaceAroundBlockParameters < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#32 + def on_block(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#65 + def check_after_closing_pipe(arguments); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#125 + def check_arg(arg); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#103 + def check_closing_pipe_space(arguments, closing_pipe); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#121 + def check_each_arg(args); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#56 + def check_inside_pipes(arguments); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#150 + def check_no_space(space_begin_pos, space_end_pos, msg); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#73 + def check_no_space_style_inside_pipes(arguments); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#92 + def check_opening_pipe_space(arguments, opening_pipe); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#136 + def check_space(space_begin_pos, space_end_pos, range, msg, node = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#85 + def check_space_style_inside_pipes(arguments); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#113 + def last_end_pos_inside_pipes(arguments, range); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#44 + def pipes(arguments); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#48 + def pipes?(arguments); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#52 + def style_parameter_name; end +end + +# Checks that the equals signs in parameter default assignments +# have or don't have surrounding space depending on configuration. +# +# @example EnforcedStyle: space (default) +# # bad +# def some_method(arg1=:default, arg2=nil, arg3=[]) +# # do something... +# end +# +# # good +# def some_method(arg1 = :default, arg2 = nil, arg3 = []) +# # do something... +# end +# @example EnforcedStyle: no_space +# # bad +# def some_method(arg1 = :default, arg2 = nil, arg3 = []) +# # do something... +# end +# +# # good +# def some_method(arg1=:default, arg2=nil, arg3=[]) +# # do something... +# end +# +# source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#30 +class RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#38 + def on_optarg(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#67 + def autocorrect(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#46 + def check_optarg(arg, equals, value); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#58 + def incorrect_style_detected(arg, value); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#83 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#79 + def no_surrounding_space?(arg, equals); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#75 + def space_on_both_sides?(arg, equals); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#36 +RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe(nil), String) + +# Checks the spacing around the keywords. +# +# @example +# +# # bad +# something 'test'do|x| +# end +# +# while(something) +# end +# +# something = 123if test +# +# # good +# something 'test' do |x| +# end +# +# while (something) +# end +# +# something = 123 if test +# +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#27 +class RuboCop::Cop::Layout::SpaceAroundKeyword < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#40 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#44 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#48 + def on_break(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#52 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#56 + def on_case_match(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#156 + def on_defined?(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#60 + def on_ensure(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#64 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#68 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#72 + def on_if_guard(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#76 + def on_in_pattern(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#80 + def on_kwbegin(node); end + + # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby27`. + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#85 + def on_match_pattern(node); end + + # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby30`. + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#92 + def on_match_pattern_p(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#96 + def on_next(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#100 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#104 + def on_postexe(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#108 + def on_preexe(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#112 + def on_resbody(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#116 + def on_rescue(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#120 + def on_return(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#124 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#128 + def on_super(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#136 + def on_unless_guard(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#140 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#144 + def on_when(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#148 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#152 + def on_yield(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#132 + def on_zsuper(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#235 + def accept_left_parenthesis?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#239 + def accept_left_square_bracket?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#243 + def accept_namespace_operator?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#228 + def accepted_opening_delimiter?(range, char); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#162 + def check(node, locations, begin_keyword = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#177 + def check_begin(node, range, begin_keyword); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#183 + def check_end(node, range, begin_keyword); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#196 + def check_keyword(node, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#192 + def do?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#251 + def namespace_operator?(range, pos); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#255 + def preceded_by_operator?(node, _range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#247 + def safe_navigation_call?(range, pos); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#217 + def space_after_missing?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#210 + def space_before_missing?(range); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#36 +RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_PAREN = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#37 +RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_SQUARE_BRACKET = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#38 +RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#33 +RuboCop::Cop::Layout::SpaceAroundKeyword::DO = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#31 +RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_AFTER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#30 +RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_BEFORE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#35 +RuboCop::Cop::Layout::SpaceAroundKeyword::NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#34 +RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String) + +# Checks method call operators to not have spaces around them. +# +# @example +# # bad +# foo. bar +# foo .bar +# foo . bar +# foo. bar .buzz +# foo +# . bar +# . buzz +# foo&. bar +# foo &.bar +# foo &. bar +# foo &. bar&. buzz +# RuboCop:: Cop +# RuboCop:: Cop:: Base +# :: RuboCop::Cop +# +# # good +# foo.bar +# foo.bar.buzz +# foo +# .bar +# .buzz +# foo&.bar +# foo&.bar&.buzz +# RuboCop::Cop +# RuboCop::Cop::Base +# ::RuboCop::Cop +# +# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#37 +class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#53 + def on_const(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#87 + def check_space(begin_pos, end_pos); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#67 + def check_space_after_dot(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#81 + def check_space_after_double_colon(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#61 + def check_space_before_dot(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#43 +RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#41 +RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.unsafe(nil), Regexp) + +# Checks that operators have space around them, except for ** which +# should or shouldn't have surrounding space depending on configuration. +# It allows vertical alignment consisting of one or more whitespace +# around operators. +# +# This cop has `AllowForAlignment` option. When `true`, allows most +# uses of extra spacing if the intent is to align with an operator on +# the previous or next line, not counting empty lines or comment lines. +# +# @example +# # bad +# total = 3*4 +# "apple"+"juice" +# my_number = 38/4 +# +# # good +# total = 3 * 4 +# "apple" + "juice" +# my_number = 38 / 4 +# @example AllowForAlignment: true (default) +# # good +# { +# 1 => 2, +# 11 => 3 +# } +# @example AllowForAlignment: false +# # bad +# { +# 1 => 2, +# 11 => 3 +# } +# @example EnforcedStyleForExponentOperator: no_space (default) +# # bad +# a ** b +# +# # good +# a**b +# @example EnforcedStyleForExponentOperator: space +# # bad +# a**b +# +# # good +# a ** b +# +# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#53 +class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base + include ::RuboCop::Cop::PrecedingFollowingAlignment + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RationalLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_and_asgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_assignment(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 + def on_binary(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#111 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#78 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_masgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#135 + def on_match_pattern(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#127 + def on_op_asgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 + def on_or_asgn(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#70 + def on_pair(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#85 + def on_resbody(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#66 + def on_sclass(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#93 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#127 + def on_special_asgn(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#238 + def align_hash_cop_config; end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#181 + def autocorrect(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#165 + def check_operator(type, operator, right_operand); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#191 + def enclose_operator_with_space(corrector, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#218 + def excess_leading_space?(type, operator, with_space); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#233 + def excess_trailing_space?(right_operand, with_space); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#250 + def force_equal_sign_alignment?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#242 + def hash_table_style?; end + + # @yield [msg] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#176 + def offense(type, operator, with_space, right_operand); end + + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#204 + def offense_message(type, operator, with_space, right_operand); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#161 + def operator_with_regular_syntax?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#155 + def regular_operator?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#254 + def should_not_have_surrounding_space?(operator); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#246 + def space_around_exponent_operator?; end + + class << self + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#62 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#60 +RuboCop::Cop::Layout::SpaceAroundOperators::EXCESSIVE_SPACE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#59 +RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(nil), Array) + +# Checks that block braces have or don't have a space before the opening +# brace depending on configuration. +# +# @example EnforcedStyle: space (default) +# # bad +# foo.map{ |a| +# a.bar.to_s +# } +# +# # good +# foo.map { |a| +# a.bar.to_s +# } +# @example EnforcedStyle: no_space +# # bad +# foo.map { |a| +# a.bar.to_s +# } +# +# # good +# foo.map{ |a| +# a.bar.to_s +# } +# @example EnforcedStyleForEmptyBraces: space (default) +# # bad +# 7.times{} +# +# # good +# 7.times {} +# @example EnforcedStyleForEmptyBraces: no_space +# # bad +# 7.times {} +# +# # good +# 7.times{} +# +# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#44 +class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#124 + def autocorrect(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#144 + def block_delimiters_style; end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#83 + def check_empty(left_brace, space_plus_brace, used_style); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#100 + def check_non_empty(left_brace, space_plus_brace, used_style); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#140 + def conflict_with_block_delimiters?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#148 + def empty_braces?(loc); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#115 + def space_detected(left_brace, space_plus_brace); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#108 + def space_missing(left_brace); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#131 + def style_for_empty_braces; end + + class << self + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#52 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#50 +RuboCop::Cop::Layout::SpaceBeforeBlockBraces::DETECTED_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#49 +RuboCop::Cop::Layout::SpaceBeforeBlockBraces::MISSING_MSG = T.let(T.unsafe(nil), String) + +# Checks for space between the name of a receiver and a left +# brackets. +# +# @example +# +# # bad +# collection [index_or_key] +# +# # good +# collection[index_or_key] +# +# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#17 +class RuboCop::Cop::Layout::SpaceBeforeBrackets < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#24 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#48 + def dot_before_brackets?(node, receiver_end_pos, selector_begin_pos); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#35 + def offense_range(node, begin_pos); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#54 + def offense_range_for_assignment(node, begin_pos); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#67 + def reference_variable_with_brackets?(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#63 + def register_offense(range); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#21 +RuboCop::Cop::Layout::SpaceBeforeBrackets::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#22 +RuboCop::Cop::Layout::SpaceBeforeBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for comma (,) preceded by space. +# +# @example +# # bad +# [1 , 2 , 3] +# a(1 , 2) +# each { |a , b| } +# +# # good +# [1, 2, 3] +# a(1, 2) +# each { |a, b| } +# +# source://rubocop//lib/rubocop/cop/layout/space_before_comma.rb#19 +class RuboCop::Cop::Layout::SpaceBeforeComma < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SpaceBeforePunctuation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_before_comma.rb#23 + def kind(token); end +end + +# Checks for missing space between a token and a comment on the +# same line. +# +# @example +# # bad +# 1 + 1# this operation does ... +# +# # good +# 1 + 1 # this operation does ... +# +# source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#15 +class RuboCop::Cop::Layout::SpaceBeforeComment < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#20 + def on_new_investigation; end +end + +# source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#18 +RuboCop::Cop::Layout::SpaceBeforeComment::MSG = T.let(T.unsafe(nil), String) + +# Checks that exactly one space is used between a method name and the +# first argument for method calls without parentheses. +# +# Alternatively, extra spaces can be added to align the argument with +# something on a preceding or following line, if the AllowForAlignment +# config parameter is true. +# +# @example +# # bad +# something x +# something y, z +# something'hello' +# +# # good +# something x +# something y, z +# something 'hello' +# +# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#24 +class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Base + include ::RuboCop::Cop::PrecedingFollowingAlignment + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#55 + def expect_params_after_method_name?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#64 + def no_space_between_method_name_and_first_argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#51 + def regular_method_call_with_arguments?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#31 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#29 +RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String) + +# Checks for semicolon (;) preceded by space. +# +# @example +# # bad +# x = 1 ; y = 2 +# +# # good +# x = 1; y = 2 +# +# source://rubocop//lib/rubocop/cop/layout/space_before_semicolon.rb#14 +class RuboCop::Cop::Layout::SpaceBeforeSemicolon < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SpaceBeforePunctuation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_before_semicolon.rb#18 + def kind(token); end +end + +# Checks for spaces between `->` and opening parameter +# parenthesis (`(`) in lambda literals. +# +# @example EnforcedStyle: require_no_space (default) +# # bad +# a = -> (x, y) { x + y } +# +# # good +# a = ->(x, y) { x + y } +# @example EnforcedStyle: require_space +# # bad +# a = ->(x, y) { x + y } +# +# # good +# a = -> (x, y) { x + y } +# +# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#22 +class RuboCop::Cop::Layout::SpaceInLambdaLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#30 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#50 + def arrow_lambda_with_args?(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#72 + def lambda_arguments(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#65 + def range_of_offense(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#58 + def space_after_arrow(lambda_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#54 + def space_after_arrow?(lambda_node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#28 +RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_NO_SPACE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#27 +RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(nil), String) + +# Checks that brackets used for array literals have or don't have +# surrounding space depending on configuration. +# +# @example EnforcedStyle: no_space (default) +# # The `no_space` style enforces that array literals have +# # no surrounding space. +# +# # bad +# array = [ a, b, c, d ] +# +# # good +# array = [a, b, c, d] +# @example EnforcedStyle: space +# # The `space` style enforces that array literals have +# # surrounding space. +# +# # bad +# array = [a, b, c, d] +# +# # good +# array = [ a, b, c, d ] +# @example EnforcedStyle: compact +# # The `compact` style normally requires a space inside +# # array brackets, with the exception that successive left +# # or right brackets are collapsed together in nested arrays. +# +# # bad +# array = [ a, [ b, c ] ] +# array = [ +# [ a ], +# [ b, c ] +# ] +# +# # good +# array = [ a, [ b, c ]] +# array = [[ a ], +# [ b, c ]] +# @example EnforcedStyleForEmptyBrackets: no_space (default) +# # The `no_space` EnforcedStyleForEmptyBrackets style enforces that +# # empty array brackets do not contain spaces. +# +# # bad +# foo = [ ] +# bar = [ ] +# +# # good +# foo = [] +# bar = [] +# @example EnforcedStyleForEmptyBrackets: space +# # The `space` EnforcedStyleForEmptyBrackets style enforces that +# # empty array brackets contain exactly one space. +# +# # bad +# foo = [] +# bar = [ ] +# +# # good +# foo = [ ] +# bar = [ ] +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#70 +class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#78 + def on_array(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#109 + def array_brackets(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#95 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#217 + def compact(corrector, bracket, side); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#203 + def compact_corrections(corrector, node, left, right); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#195 + def compact_offense(node, token, side: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#157 + def compact_offenses(node, left, right, start_ok, end_ok); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#118 + def empty_config; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#126 + def end_has_own_line?(token); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#133 + def index_for(node, token); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#141 + def issue_offenses(node, left, right, start_ok, end_ok); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#137 + def line_and_column_for(token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#178 + def multi_dimensional_array?(node, token, side: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#189 + def next_to_bracket?(token, side: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#153 + def next_to_comment?(node, token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#122 + def next_to_newline?(node, token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#170 + def qualifies_for_compact?(node, token, side: T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#76 +RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#75 +RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::MSG = T.let(T.unsafe(nil), String) + +# Checks for unnecessary additional spaces inside array percent literals +# (i.e. %i/%w). +# +# Note that blank percent literals (e.g. `%i( )`) are checked by +# `Layout/SpaceInsidePercentLiteralDelimiters`. +# +# @example +# +# # bad +# %w(foo bar baz) +# # good +# %i(foo bar baz) +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#18 +class RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MatchRange + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#26 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#30 + def on_percent_literal(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#40 + def each_unnecessary_space_match(node, &blk); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#23 +RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#24 +RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_ITEMS_REGEX = T.let(T.unsafe(nil), Regexp) + +# Checks that block braces have or don't have surrounding space inside +# them on configuration. For blocks taking parameters, it checks that the +# left brace has or doesn't have trailing space depending on +# configuration. +# +# @example EnforcedStyle: space (default) +# # The `space` style enforces that block braces have +# # surrounding space. +# +# # bad +# some_array.each {puts e} +# +# # good +# some_array.each { puts e } +# @example EnforcedStyle: no_space +# # The `no_space` style enforces that block braces don't +# # have surrounding space. +# +# # bad +# some_array.each { puts e } +# +# # good +# some_array.each {puts e} +# @example EnforcedStyleForEmptyBraces: no_space (default) +# # The `no_space` EnforcedStyleForEmptyBraces style enforces that +# # block braces don't have a space in between when empty. +# +# # bad +# some_array.each { } +# some_array.each { } +# some_array.each { } +# +# # good +# some_array.each {} +# @example EnforcedStyleForEmptyBraces: space +# # The `space` EnforcedStyleForEmptyBraces style enforces that +# # block braces have at least a space in between when empty. +# +# # bad +# some_array.each {} +# +# # good +# some_array.each { } +# some_array.each { } +# some_array.each { } +# @example SpaceBeforeBlockParameters: true (default) +# # The SpaceBeforeBlockParameters style set to `true` enforces that +# # there is a space between `{` and `|`. Overrides `EnforcedStyle` +# # if there is a conflict. +# +# # bad +# [1, 2, 3].each {|n| n * 2 } +# +# # good +# [1, 2, 3].each { |n| n * 2 } +# @example SpaceBeforeBlockParameters: false +# # The SpaceBeforeBlockParameters style set to `false` enforces that +# # there is no space between `{` and `|`. Overrides `EnforcedStyle` +# # if there is a conflict. +# +# # bad +# [1, 2, 3].each { |n| n * 2 } +# +# # good +# [1, 2, 3].each {|n| n * 2 } +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#79 +class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#122 + def adjacent_braces(left_brace, right_brace); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#161 + def aligned_braces?(inner, right_brace, column); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#130 + def braces_with_contents_inside(node, inner); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#105 + def check_inside(node, left_brace, right_brace); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#137 + def check_left_brace(inner, left_brace, args_delimiter); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#145 + def check_right_brace(node, inner, left_brace, right_brace, single_line); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#165 + def inner_last_space_count(inner); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#157 + def multiline_block?(left_brace, right_brace); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#222 + def no_space(begin_pos, end_pos, msg); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#169 + def no_space_inside_left_brace(left_brace, args_delimiter); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#238 + def offense(begin_pos, end_pos, msg, style_param = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#201 + def pipe?(args_delimiter); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#230 + def space(begin_pos, end_pos, msg); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#186 + def space_inside_left_brace(left_brace, args_delimiter); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#205 + def space_inside_right_brace(inner, right_brace, column); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#253 + def style_for_empty_braces; end +end + +# Checks that braces used for hash literals have or don't have +# surrounding space depending on configuration. +# +# @example EnforcedStyle: space (default) +# # The `space` style enforces that hash literals have +# # surrounding space. +# +# # bad +# h = {a: 1, b: 2} +# +# # good +# h = { a: 1, b: 2 } +# @example EnforcedStyle: no_space +# # The `no_space` style enforces that hash literals have +# # no surrounding space. +# +# # bad +# h = { a: 1, b: 2 } +# +# # good +# h = {a: 1, b: 2} +# @example EnforcedStyle: compact +# # The `compact` style normally requires a space inside +# # hash braces, with the exception that successive left +# # braces or right braces are collapsed together in nested hashes. +# +# # bad +# h = { a: { b: 2 } } +# foo = { { a: 1 } => { b: { c: 2 } } } +# +# # good +# h = { a: { b: 2 }} +# foo = {{ a: 1 } => { b: { c: 2 }}} +# @example EnforcedStyleForEmptyBraces: no_space (default) +# # The `no_space` EnforcedStyleForEmptyBraces style enforces that +# # empty hash braces do not contain spaces. +# +# # bad +# foo = { } +# bar = { } +# baz = { +# } +# +# # good +# foo = {} +# bar = {} +# baz = {} +# @example EnforcedStyleForEmptyBraces: space +# # The `space` EnforcedStyleForEmptyBraces style enforces that +# # empty hash braces contain space. +# +# # bad +# foo = {} +# +# # good +# foo = { } +# foo = { } +# foo = { +# } +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#70 +class RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#78 + def on_hash(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#137 + def ambiguous_or_unexpected_style_detected(style, is_match); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#129 + def autocorrect(corrector, range); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#89 + def check(token1, token2); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#184 + def check_whitespace_only_hash(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#202 + def enforce_no_space_style_for_empty_braces?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#104 + def expect_space?(token1, token2); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#117 + def incorrect_style_detected(token1, token2, expect_space, is_empty_braces); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#150 + def message(brace, is_empty_braces, expect_space); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#145 + def offense?(token1, expect_space); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#196 + def range_inside_hash(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#176 + def range_of_space_to_the_left(range); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#168 + def range_of_space_to_the_right(range); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#160 + def space_range(token_range); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#76 +RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), String) + +# Checks for spaces inside ordinary round parentheses. +# +# @example EnforcedStyle: no_space (default) +# # The `no_space` style enforces that parentheses do not have spaces. +# +# # bad +# f( 3) +# g = (a + 3 ) +# f( ) +# +# # good +# f(3) +# g = (a + 3) +# f() +# @example EnforcedStyle: space +# # The `space` style enforces that parentheses have a space at the +# # beginning and end. +# # Note: Empty parentheses should not have spaces. +# +# # bad +# f(3) +# g = (a + 3) +# y( ) +# +# # good +# f( 3 ) +# g = ( a + 3 ) +# y() +# @example EnforcedStyle: compact +# # The `compact` style enforces that parentheses have a space at the +# # beginning with the exception that successive parentheses are allowed. +# # Note: Empty parentheses should not have spaces. +# +# # bad +# f(3) +# g = (a + 3) +# y( ) +# g( f( x ) ) +# g( f( x( 3 ) ), 5 ) +# g( ( ( 3 + 5 ) * f) ** x, 5 ) +# +# # good +# f( 3 ) +# g = ( a + 3 ) +# y() +# g( f( x )) +# g( f( x( 3 )), 5 ) +# g((( 3 + 5 ) * f ) ** x, 5 ) +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#57 +class RuboCop::Cop::Layout::SpaceInsideParens < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#66 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#161 + def can_be_ignored?(token1, token2); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#99 + def correct_extraneous_space(tokens); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#115 + def correct_extraneous_space_between_consecutive_parens(token1, token2); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#124 + def correct_extraneous_space_in_empty_parens(token1, token2); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#135 + def correct_missing_space(token1, token2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#153 + def left_parens?(token1, token2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#149 + def parens?(token1, token2); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#88 + def process_with_compact_style(tokens); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#81 + def process_with_space_style(tokens); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#157 + def right_parens?(token1, token2); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#63 +RuboCop::Cop::Layout::SpaceInsideParens::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#64 +RuboCop::Cop::Layout::SpaceInsideParens::MSG_SPACE = T.let(T.unsafe(nil), String) + +# Checks for unnecessary additional spaces inside the delimiters of +# %i/%w/%x literals. +# +# @example +# +# # bad +# %i( foo bar baz ) +# +# # good +# %i(foo bar baz) +# +# # bad +# %w( foo bar baz ) +# +# # good +# %w(foo bar baz) +# +# # bad +# %x( ls -l ) +# +# # good +# %x(ls -l) +# +# # bad +# %w( ) +# %w( +# ) +# +# # good +# %w() +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#36 +class RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MatchRange + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#45 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#53 + def on_percent_literal(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#49 + def on_xstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#60 + def add_offenses_for_blank_spaces(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#69 + def add_offenses_for_unnecessary_spaces(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#85 + def body_range(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#79 + def regex_matches(node, &blk); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#42 +RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::BEGIN_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#43 +RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::END_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#41 +RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::MSG = T.let(T.unsafe(nil), String) + +# Checks for spaces inside range literals. +# +# @example +# # bad +# 1 .. 3 +# +# # good +# 1..3 +# +# # bad +# 'a' .. 'z' +# +# # good +# 'a'..'z' +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#20 +class RuboCop::Cop::Layout::SpaceInsideRangeLiteral < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#29 + def on_erange(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#25 + def on_irange(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#35 + def check(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#23 +RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String) + +# Checks that reference brackets have or don't have +# surrounding space depending on configuration. +# +# @example EnforcedStyle: no_space (default) +# # The `no_space` style enforces that reference brackets have +# # no surrounding space. +# +# # bad +# hash[ :key ] +# array[ index ] +# +# # good +# hash[:key] +# array[index] +# @example EnforcedStyle: space +# # The `space` style enforces that reference brackets have +# # surrounding space. +# +# # bad +# hash[:key] +# array[index] +# +# # good +# hash[ :key ] +# array[ index ] +# @example EnforcedStyleForEmptyBrackets: no_space (default) +# # The `no_space` EnforcedStyleForEmptyBrackets style enforces that +# # empty reference brackets do not contain spaces. +# +# # bad +# foo[ ] +# foo[ ] +# foo[ +# ] +# +# # good +# foo[] +# @example EnforcedStyleForEmptyBrackets: space +# # The `space` EnforcedStyleForEmptyBrackets style enforces that +# # empty reference brackets contain exactly one space. +# +# # bad +# foo[] +# foo[ ] +# foo[ +# ] +# +# # good +# foo[ ] +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#60 +class RuboCop::Cop::Layout::SpaceInsideReferenceBrackets < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#70 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#92 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#121 + def closing_bracket(tokens, opening_bracket); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#137 + def empty_config; end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#110 + def left_ref_bracket(node, tokens); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#132 + def previous_token(current_token); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#104 + def reference_brackets(node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#66 +RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#65 +RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#68 +RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for whitespace within string interpolations. +# +# @example EnforcedStyle: no_space (default) +# # bad +# var = "This is the #{ space } example" +# +# # good +# var = "This is the #{no_space} example" +# @example EnforcedStyle: space +# # bad +# var = "This is the #{no_space} example" +# +# # good +# var = "This is the #{ space } example" +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#21 +class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Interpolation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#31 + def on_interpolation(begin_node); end + + private + + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#47 + def autocorrect(corrector, begin_node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#57 + def delimiters(begin_node); end +end + +# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#28 +RuboCop::Cop::Layout::SpaceInsideStringInterpolation::NO_SPACE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#29 +RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe(nil), String) + +# Looks for trailing blank lines and a final newline in the +# source code. +# +# @example EnforcedStyle: final_newline (default) +# # `final_newline` looks for one newline at the end of files. +# +# # bad +# class Foo; end +# +# # EOF +# +# # bad +# class Foo; end # EOF +# +# # good +# class Foo; end +# # EOF +# @example EnforcedStyle: final_blank_line +# # `final_blank_line` looks for one blank line followed by a new line +# # at the end of files. +# +# # bad +# class Foo; end +# # EOF +# +# # bad +# class Foo; end # EOF +# +# # good +# class Foo; end +# +# # EOF +# +# source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#40 +class RuboCop::Cop::Layout::TrailingEmptyLines < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#45 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#90 + def end_with_percent_blank_string?(processed_source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#80 + def ends_in_end?(processed_source); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#94 + def message(wanted_blank_lines, blank_lines); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#67 + def offense_detected(buffer, wanted_blank_lines, blank_lines, whitespace_at_end); end +end + +# Looks for trailing whitespace in the source code. +# +# @example +# # The line in this example contains spaces after the 0. +# # bad +# x = 0 +# +# # The line in this example ends directly after the 0. +# # good +# x = 0 +# @example AllowInHeredoc: false (default) +# # The line in this example contains spaces after the 0. +# # bad +# code = <<~RUBY +# x = 0 +# RUBY +# +# # ok +# code = <<~RUBY +# x = 0 #{} +# RUBY +# +# # good +# trailing_whitespace = ' ' +# code = <<~RUBY +# x = 0#{trailing_whitespace} +# RUBY +# @example AllowInHeredoc: true +# # The line in this example contains spaces after the 0. +# # good +# code = <<~RUBY +# x = 0 +# RUBY +# +# source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#42 +class RuboCop::Cop::Layout::TrailingWhitespace < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::Heredoc + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#57 + def on_heredoc(_node); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#49 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#112 + def extract_heredocs(ast); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#103 + def find_heredoc(line_number); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#108 + def heredocs; end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#125 + def offense_range(lineno, line); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#61 + def process_line(line, lineno); end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#75 + def process_line_in_heredoc(corrector, range, heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#99 + def skip_heredoc?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#95 + def static?(heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#86 + def whitespace_is_indentation?(range, level); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#90 + def whitespace_only?(range); end +end + +# source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#47 +RuboCop::Cop::Layout::TrailingWhitespace::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#5 +module RuboCop::Cop::Legacy; end + +# Legacy support for Corrector#corrections +# See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html +# +# source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#8 +class RuboCop::Cop::Legacy::CorrectionsProxy + # @return [CorrectionsProxy] a new instance of CorrectionsProxy + # + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#9 + def initialize(corrector); end + + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#13 + def <<(callable); end + + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#21 + def concat(corrections); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#17 + def empty?; end + + protected + + # Returns the value of attribute corrector. + # + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#31 + def corrector; end + + private + + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#35 + def suppress_clobbering; end +end + +# This class handles autocorrection for code that needs to be moved +# to new lines. +# +# source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#7 +class RuboCop::Cop::LineBreakCorrector + extend ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::TrailingBody + extend ::RuboCop::PathUtil + extend ::RuboCop::Cop::Util + + class << self + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#27 + def break_line_before(range:, node:, corrector:, configured_width:, indent_steps: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#15 + def correct_trailing_body(configured_width:, corrector:, node:, processed_source:); end + + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#35 + def move_comment(eol_comment:, node:, corrector:); end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#13 + def processed_source; end + + private + + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#45 + def remove_semicolon(node, corrector); end + + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#51 + def semicolon(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#58 + def trailing_class_definition?(token, body); end + end +end + +# Help methods for determining if a line is too long. +# +# source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#6 +module RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::Alignment + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#24 + def allow_uri?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#28 + def allowed_uri_position?(line, uri_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#15 + def directive_on_source_line?(line_index); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#72 + def extend_uri_end_position(line, end_position); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#36 + def find_excessive_uri_range(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#11 + def ignore_cop_directives?; end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#59 + def indentation_difference(line); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#32 + def line_length(line); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#105 + def line_length_without_directive(line); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#51 + def match_uris(string); end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#88 + def tab_indentation_width; end + + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#93 + def uri_regexp; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#98 + def valid_uri?(uri_ish_string); end +end + +# source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#5 +module RuboCop::Cop::Lint; end + +# Checks for mistyped shorthand assignments. +# +# @example +# # bad +# x =- y +# x =+ y +# x =* y +# x =! y +# +# # good +# x -= y # or x = -y +# x += y # or x = +y +# x *= y # or x = *y +# x != y # or x = !y +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#21 +class RuboCop::Cop::Lint::AmbiguousAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + def on_asgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + def on_lvasgn(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#44 + def rhs(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#28 +RuboCop::Cop::Lint::AmbiguousAssignment::MISTAKES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#24 +RuboCop::Cop::Lint::AmbiguousAssignment::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#26 +RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# Checks for ambiguous block association with method +# when param passed without parentheses. +# +# This cop can customize allowed methods with `AllowedMethods`. +# By default, there are no methods to allowed. +# +# @example +# +# # bad +# some_method a { |val| puts val } +# @example +# +# # good +# # With parentheses, there's no ambiguity. +# some_method(a { |val| puts val }) +# # or (different meaning) +# some_method(a) { |val| puts val } +# +# # good +# # Operator methods require no disambiguation +# foo == bar { |b| b.baz } +# +# # good +# # Lambda arguments require no disambiguation +# foo = ->(bar) { bar.baz } +# @example AllowedMethods: [] (default) +# +# # bad +# expect { do_something }.to change { object.attribute } +# @example AllowedMethods: [change] +# +# # good +# expect { do_something }.to change { object.attribute } +# @example AllowedPatterns: [] (default) +# +# # bad +# expect { do_something }.to change { object.attribute } +# @example AllowedPatterns: ['change'] +# +# # good +# expect { do_something }.to change { object.attribute } +# expect { do_something }.to not_change { object.attribute } +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#54 +class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#64 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#64 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#85 + def allowed_method_pattern?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#81 + def ambiguous_block_association?(send_node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#91 + def message(send_node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#97 + def wrap_in_parentheses(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#60 +RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String) + +# Checks for ambiguous operators in the first argument of a +# method invocation without parentheses. +# +# @example +# +# # bad +# +# # The `*` is interpreted as a splat operator but it could possibly be +# # a `*` method invocation (i.e. `do_something.*(some_array)`). +# do_something *some_array +# @example +# +# # good +# +# # With parentheses, there's no ambiguity. +# do_something(*some_array) +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#23 +class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#45 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#64 + def find_offense_node_by(diagnostic); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#82 + def message(diagnostic); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#92 + def offense_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#88 + def offense_position?(node, diagnostic); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#101 + def unary_operator?(node, diagnostic); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#41 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#26 +RuboCop::Cop::Lint::AmbiguousOperator::AMBIGUITIES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#36 +RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) + +# Looks for expressions containing multiple binary operators +# where precedence is ambiguous due to lack of parentheses. For example, +# in `1 + 2 * 3`, the multiplication will happen before the addition, but +# lexically it appears that the addition will happen first. +# +# The cop does not consider unary operators (ie. `!a` or `-b`) or comparison +# operators (ie. `a =~ b`) because those are not ambiguous. +# +# NOTE: Ranges are handled by `Lint/AmbiguousRange`. +# +# @example +# # bad +# a + b * c +# a || b && c +# a ** b + c +# +# # good (different precedence) +# a + (b * c) +# a || (b && c) +# (a ** b) + c +# +# # good (same precedence) +# a + b + c +# a * b / c % d +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#30 +class RuboCop::Cop::Lint::AmbiguousOperatorPrecedence < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#54 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#47 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#65 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#105 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#89 + def greater_precedence?(node1, node2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#85 + def operator?(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#97 + def operator_name(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#79 + def precedence(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#45 +RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::MSG = T.let(T.unsafe(nil), String) + +# See https://ruby-doc.org/core-3.0.2/doc/syntax/precedence_rdoc.html +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#34 +RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::PRECEDENCE = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#44 +RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for ambiguous ranges. +# +# Ranges have quite low precedence, which leads to unexpected behavior when +# using a range with other operators. This cop avoids that by making ranges +# explicit by requiring parenthesis around complex range boundaries (anything +# that is not a literal: numerics, strings, symbols, etc.). +# +# This cop can be configured with `RequireParenthesesForMethodChains` in order to +# specify whether method chains (including `self.foo`) should be wrapped in parens +# by this cop. +# +# NOTE: Regardless of this configuration, if a method receiver is a basic literal +# value, it will be wrapped in order to prevent the ambiguity of `1..2.to_a`. +# +# @example +# # bad +# x || 1..2 +# (x || 1..2) +# 1..2.to_a +# +# # good, unambiguous +# 1..2 +# 'a'..'z' +# :bar..:baz +# MyClass::MIN..MyClass::MAX +# @min..@max +# a..b +# -a..b +# +# # good, ambiguity removed +# x || (1..2) +# (x || 1)..2 +# (x || 1)..(y || 2) +# (1..2).to_a +# @example RequireParenthesesForMethodChains: false (default) +# # good +# a.foo..b.bar +# (a.foo)..(b.bar) +# @example RequireParenthesesForMethodChains: true +# # bad +# a.foo..b.bar +# +# # good +# (a.foo)..(b.bar) +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#59 +class RuboCop::Cop::Lint::AmbiguousRange < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#64 + def on_erange(node); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#64 + def on_irange(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#82 + def acceptable?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#89 + def acceptable_call?(node); end + + # @yield [range.begin] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#77 + def each_boundary(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#99 + def require_parentheses_for_method_chain?; end +end + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#62 +RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) + +# Checks for ambiguous regexp literals in the first argument of +# a method invocation without parentheses. +# +# @example +# +# # bad +# +# # This is interpreted as a method invocation with a regexp literal, +# # but it could possibly be `/` method invocations. +# # (i.e. `do_something./(pattern)./(i)`) +# do_something /pattern/i +# @example +# +# # good +# +# # With parentheses, there's no ambiguity. +# do_something(/pattern/i) +# +# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#24 +class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#31 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#56 + def find_offense_node(node, regexp_receiver); end + + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#49 + def find_offense_node_by(diagnostic); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#67 + def first_argument_is_regexp?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#71 + def method_chain_to_regexp_receiver?(node, regexp_receiver); end +end + +# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#27 +RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) + +# Checks for assignments in the conditions of +# if/while/until. +# +# `AllowSafeAssignment` option for safe assignment. +# By safe assignment we mean putting parentheses around +# an assignment to indicate "I know I'm using an assignment +# as a condition. It's not a mistake." +# +# @example +# # bad +# if some_var = true +# do_something +# end +# +# # good +# if some_var == true +# do_something +# end +# @example AllowSafeAssignment: true (default) +# # good +# if (some_var = true) +# do_something +# end +# @example AllowSafeAssignment: false +# # bad +# if (some_var = true) +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#41 +class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::SafeAssignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + def on_while(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#82 + def allowed_construct?(asgn_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#86 + def conditional_assignment?(asgn_node); end + + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#74 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#90 + def skip_children?(asgn_node); end + + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#96 + def traverse_node(node, &block); end +end + +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#53 +RuboCop::Cop::Lint::AssignmentInCondition::ASGN_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#50 +RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITHOUT_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#46 +RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) + +# `BigDecimal.new()` is deprecated since BigDecimal 1.3.3. +# This cop identifies places where `BigDecimal.new()` +# can be replaced by `BigDecimal()`. +# +# @example +# # bad +# BigDecimal.new(123.456, 3) +# +# # good +# BigDecimal(123.456, 3) +# +# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#17 +class RuboCop::Cop::Lint::BigDecimalNew < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#25 + def big_decimal_new(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#30 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#20 +RuboCop::Cop::Lint::BigDecimalNew::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#22 +RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for places where binary operator has identical operands. +# +# It covers arithmetic operators: `-`, `/`, `%`; +# comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, `<=`; +# bitwise operators: `|`, `^`, `&`; +# boolean operators: `&&`, `||` +# and "spaceship" operator - `<=>`. +# +# Simple arithmetic operations are allowed by this cop: `+`, `*`, `**`, `<<` and `>>`. +# Although these can be rewritten in a different way, it should not be necessary to +# do so. This does not include operations such as `-` or `/` where the result will +# always be the same (`x - x` will always be 0; `x / x` will always be 1), and +# thus are legitimate offenses. +# +# @example +# # bad +# x / x +# x.top >= x.top +# +# if a.x != 0 && a.x != 0 +# do_something +# end +# +# def child? +# left_child || left_child +# end +# +# # good +# x + x +# 1 << 1 +# +# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#48 +class RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#61 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#61 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#52 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#50 +RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::ALLOWED_MATH_OPERATORS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#49 +RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(nil), String) + +# Checks for `:true` and `:false` symbols. +# In most cases it would be a typo. +# +# @example +# +# # bad +# :true +# +# # good +# true +# @example +# +# # bad +# :false +# +# # good +# false +# +# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#29 +class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#35 + def boolean_symbol?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#37 + def on_sym(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#50 + def autocorrect(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#32 +RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) + +# Checks for circular argument references in optional keyword +# arguments and optional ordinal arguments. +# +# This cop mirrors a warning produced by MRI since 2.2. +# +# @example +# +# # bad +# +# def bake(pie: pie) +# pie.heat_up +# end +# @example +# +# # good +# +# def bake(pie:) +# pie.refrigerate +# end +# @example +# +# # good +# +# def bake(pie: self.pie) +# pie.feed_to(user) +# end +# @example +# +# # bad +# +# def cook(dry_ingredients = dry_ingredients) +# dry_ingredients.reduce(&:+) +# end +# @example +# +# # good +# +# def cook(dry_ingredients = self.dry_ingredients) +# dry_ingredients.combine +# end +# +# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#50 +class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#53 + def on_kwoptarg(node); end + + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#57 + def on_optarg(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#63 + def check_for_circular_argument_references(arg_name, arg_value); end +end + +# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#51 +RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String) + +# Do not define constants within a block, since the block's scope does not +# isolate or namespace the constant in any way. +# +# If you are trying to define that constant once, define it outside of +# the block instead, or use a variable or method if defining the constant +# in the outer scope would be problematic. +# +# For meta-programming, use `const_set`. +# +# @example +# # bad +# task :lint do +# FILES_TO_LINT = Dir['lib/*.rb'] +# end +# +# # bad +# describe 'making a request' do +# class TestRequest; end +# end +# +# # bad +# module M +# extend ActiveSupport::Concern +# included do +# LIST = [] +# end +# end +# +# # good +# task :lint do +# files_to_lint = Dir['lib/*.rb'] +# end +# +# # good +# describe 'making a request' do +# let(:test_request) { Class.new } +# # see also `stub_const` for RSpec +# end +# +# # good +# module M +# extend ActiveSupport::Concern +# included do +# const_set(:LIST, []) +# end +# end +# @example AllowedMethods: ['enums'] (default) +# # good +# +# # `enums` for Typed Enums via `T::Enum` in Sorbet. +# # https://sorbet.org/docs/tenum +# class TestEnum < T::Enum +# enums do +# Foo = new("foo") +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#64 +class RuboCop::Cop::Lint::ConstantDefinitionInBlock < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#70 + def constant_assigned_in_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#75 + def module_defined_in_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#79 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 + def on_module(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#94 + def method_name(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#67 +RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for overwriting an exception with an exception result by use `rescue =>`. +# +# You intended to write as `rescue StandardError`. +# However, you have written `rescue => StandardError`. +# In that case, the result of `rescue` will overwrite `StandardError`. +# +# @example +# +# # bad +# begin +# something +# rescue => StandardError +# end +# +# # good +# begin +# something +# rescue StandardError +# end +# +# source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#26 +class RuboCop::Cop::Lint::ConstantOverwrittenInRescue < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#41 + def on_resbody(node); end + + # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#33 + def overwritten_constant(param0 = T.unsafe(nil)); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#37 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#30 +RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), String) + +# Check that certain constants are fully qualified. +# +# This is not enabled by default because it would mark a lot of offenses +# unnecessarily. +# +# Generally, gems should fully qualify all constants to avoid conflicts with +# the code that uses the gem. Enable this cop without using `Only`/`Ignore` +# +# Large projects will over time end up with one or two constant names that +# are problematic because of a conflict with a library or just internally +# using the same name a namespace and a class. To avoid too many unnecessary +# offenses, Enable this cop with `Only: [The, Constant, Names, Causing, Issues]` +# +# NOTE: `Style/RedundantConstantBase` cop is disabled if this cop is enabled to prevent +# conflicting rules. Because it respects user configurations that want to enable +# this cop which is disabled by default. +# +# @example +# # By default checks every constant +# +# # bad +# User +# +# # bad +# User::Login +# +# # good +# ::User +# +# # good +# ::User::Login +# @example Only: ['Login'] +# # Restrict this cop to only being concerned about certain constants +# +# # bad +# Login +# +# # good +# ::Login +# +# # good +# User::Login +# @example Ignore: ['Login'] +# # Restrict this cop not being concerned about certain constants +# +# # bad +# User +# +# # good +# ::User::Login +# +# # good +# Login +# +# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#62 +class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#70 + def on_const(node); end + + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#66 + def unqualified_const?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#83 + def allowed_names; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#78 + def const_name?(name); end + + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#87 + def ignored_names; end +end + +# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#63 +RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) + +# Checks for debug calls (such as `debugger` or `binding.pry`) that should +# not be kept for production code. +# +# The cop can be configured using `DebuggerMethods`. By default, a number of gems +# debug entrypoints are configured (`Kernel`, `Byebug`, `Capybara`, `debug.rb`, +# `Pry`, `Rails`, `RubyJard`, and `WebConsole`). Additional methods can be added. +# +# Specific default groups can be disabled if necessary: +# +# [source,yaml] +# ---- +# Lint/Debugger: +# DebuggerMethods: +# WebConsole: ~ +# ---- +# +# You can also add your own methods by adding a new category: +# +# [source,yaml] +# ---- +# Lint/Debugger: +# DebuggerMethods: +# MyDebugger: +# MyDebugger.debug_this +# ---- +# +# @example +# +# # bad (ok during development) +# +# # using pry +# def some_method +# binding.pry +# do_something +# end +# @example +# +# # bad (ok during development) +# +# # using byebug +# def some_method +# byebug +# do_something +# end +# @example +# +# # good +# +# def some_method +# do_something +# end +# @example DebuggerMethods: [my_debugger] +# +# # bad (ok during development) +# +# def some_method +# my_debugger +# end +# +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#67 +class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#70 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#116 + def assumed_argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#95 + def assumed_usage_context?(node); end + + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#105 + def chained_method_name(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#89 + def debugger_method?(send_node); end + + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#82 + def debugger_methods; end + + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78 + def message(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#68 +RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of the deprecated class method usages. +# +# @example +# +# # bad +# File.exists?(some_path) +# Dir.exists?(some_path) +# iterator? +# attr :name, true +# attr :name, false +# ENV.freeze # Calling `Env.freeze` raises `TypeError` since Ruby 2.7. +# ENV.clone +# ENV.dup # Calling `Env.dup` raises `TypeError` since Ruby 3.1. +# Socket.gethostbyname(host) +# Socket.gethostbyaddr(host) +# +# # good +# File.exist?(some_path) +# Dir.exist?(some_path) +# block_given? +# attr_accessor :name +# attr_reader :name +# ENV # `ENV.freeze` cannot prohibit changes to environment variables. +# ENV.to_h +# ENV.to_h # `ENV.dup` cannot dup `ENV`, use `ENV.to_h` to get a copy of `ENV` as a hash. +# Addrinfo.getaddrinfo(nodename, service) +# Addrinfo.tcp(host, port).getnameinfo +# +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#33 +class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#53 + def deprecated_class_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#63 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#112 + def dir_env_file_const?(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#83 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#93 + def preferred_method(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#108 + def socket_const?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#50 +RuboCop::Cop::Lint::DeprecatedClassMethods::DIR_ENV_FILE_CONSTANTS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#36 +RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#41 +RuboCop::Cop::Lint::DeprecatedClassMethods::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#37 +RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for deprecated constants. +# +# It has `DeprecatedConstants` config. If there is an alternative method, you can set +# alternative value as `Alternative`. And you can set the deprecated version as +# `DeprecatedVersion`. These options can be omitted if they are not needed. +# +# DeprecatedConstants: +# 'DEPRECATED_CONSTANT': +# Alternative: 'alternative_value' +# DeprecatedVersion: 'deprecated_version' +# +# By default, `NIL`, `TRUE`, `FALSE`, `Net::HTTPServerException, `Random::DEFAULT`, +# `Struct::Group`, and `Struct::Passwd` are configured. +# +# @example +# +# # bad +# NIL +# TRUE +# FALSE +# Net::HTTPServerException +# Random::DEFAULT # Return value of Ruby 2 is `Random` instance, Ruby 3.0 is `Random` class. +# Struct::Group +# Struct::Passwd +# +# # good +# nil +# true +# false +# Net::HTTPClientException +# Random.new # `::DEFAULT` has been deprecated in Ruby 3, `.new` is compatible with Ruby 2. +# Etc::Group +# Etc::Passwd +# +# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#40 +class RuboCop::Cop::Lint::DeprecatedConstants < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#46 + def on_const(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#66 + def constant_name(node, nested_constant_name); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#82 + def deprecated_constants; end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#72 + def message(good, bad, deprecated_version); end +end + +# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#44 +RuboCop::Cop::Lint::DeprecatedConstants::DO_NOT_USE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#43 +RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), String) + +# Algorithmic constants for `OpenSSL::Cipher` and `OpenSSL::Digest` +# deprecated since OpenSSL version 2.2.0. Prefer passing a string +# instead. +# +# @example +# +# # Example for OpenSSL::Cipher instantiation. +# +# # bad +# OpenSSL::Cipher::AES.new(128, :GCM) +# +# # good +# OpenSSL::Cipher.new('aes-128-gcm') +# @example +# +# # Example for OpenSSL::Digest instantiation. +# +# # bad +# OpenSSL::Digest::SHA256.new +# +# # good +# OpenSSL::Digest.new('SHA256') +# @example +# +# # Example for ::Digest inherited class methods. +# +# # bad +# OpenSSL::Digest::SHA256.digest('foo') +# +# # good +# OpenSSL::Digest.digest('SHA256', 'foo') +# +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#40 +class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#49 + def algorithm_const(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#59 + def digest_const?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#63 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#110 + def algorithm_name(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#75 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#139 + def build_cipher_arguments(node, algorithm_name, no_arguments); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#102 + def correction_range(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#87 + def message(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#106 + def openssl_class(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#128 + def replacement_args(node); end + + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#120 + def sanitize_arguments(arguments); end +end + +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#44 +RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#46 +RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::NO_ARG_ALGORITHM = T.let(T.unsafe(nil), Array) + +# Checks constructors for disjunctive assignments (`||=`) that should +# be plain assignments. +# +# So far, this cop is only concerned with disjunctive assignment of +# instance variables. +# +# In ruby, an instance variable is nil until a value is assigned, so the +# disjunction is unnecessary. A plain assignment has the same effect. +# +# @example +# # bad +# def initialize +# @x ||= 1 +# end +# +# # good +# def initialize +# @x = 1 +# end +# +# source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#48 +class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#53 + def on_def(node); end + + private + + # @param node [DefNode] a constructor definition + # + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#60 + def check(node); end + + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#66 + def check_body(body); end + + # @param lines [Array] the logical lines of the constructor + # + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#78 + def check_body_lines(lines); end + + # Add an offense if the LHS of the given disjunctive assignment is + # an instance variable. + # + # For now, we only care about assignments to instance variables. + # + # @param node [Node] a disjunctive assignment + # + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#99 + def check_disjunctive_assignment(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#51 +RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil), String) + +# Checks that there are no repeated bodies +# within `if/unless`, `case-when`, `case-in` and `rescue` constructs. +# +# With `IgnoreLiteralBranches: true`, branches are not registered +# as offenses if they return a basic literal value (string, symbol, +# integer, float, rational, complex, `true`, `false`, or `nil`), or +# return an array, hash, regexp or range that only contains one of +# the above basic literal values. +# +# With `IgnoreConstantBranches: true`, branches are not registered +# as offenses if they return a constant value. +# +# @example +# # bad +# if foo +# do_foo +# do_something_else +# elsif bar +# do_foo +# do_something_else +# end +# +# # good +# if foo || bar +# do_foo +# do_something_else +# end +# +# # bad +# case x +# when foo +# do_foo +# when bar +# do_foo +# else +# do_something_else +# end +# +# # good +# case x +# when foo, bar +# do_foo +# else +# do_something_else +# end +# +# # bad +# begin +# do_something +# rescue FooError +# handle_error +# rescue BarError +# handle_error +# end +# +# # good +# begin +# do_something +# rescue FooError, BarError +# handle_error +# end +# @example IgnoreLiteralBranches: true +# # good +# case size +# when "small" then 100 +# when "medium" then 250 +# when "large" then 1000 +# else 250 +# end +# @example IgnoreConstantBranches: true +# # good +# case size +# when "small" then SMALL_SIZE +# when "medium" then MEDIUM_SIZE +# when "large" then LARGE_SIZE +# else MEDIUM_SIZE +# end +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#86 +class RuboCop::Cop::Lint::DuplicateBranch < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + def on_branching_statement(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + def on_rescue(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#117 + def branches(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#121 + def consider_branch?(branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#147 + def const_branch?(branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#132 + def ignore_constant_branches?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#128 + def ignore_literal_branches?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#136 + def literal_branch?(branch); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#103 + def offense_range(duplicate_branch); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#87 +RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) + +# Checks that there are no repeated conditions +# used in case 'when' expressions. +# +# @example +# +# # bad +# +# case x +# when 'first' +# do_something +# when 'first' +# do_something_else +# end +# @example +# +# # good +# +# case x +# when 'first' +# do_something +# when 'second' +# do_something_else +# end +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#30 +class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#33 + def on_case(case_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#31 +RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String) + +# Checks that there are no repeated conditions used in if 'elsif'. +# +# @example +# # bad +# if x == 1 +# do_something +# elsif x == 1 +# do_something_else +# end +# +# # good +# if x == 1 +# do_something +# elsif x == 2 +# do_something_else +# end +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#23 +class RuboCop::Cop::Lint::DuplicateElsifCondition < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#26 + def on_if(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#24 +RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String) + +# Checks for duplicated keys in hash literals. +# This cop considers both primitive types and constants for the hash keys. +# +# This cop mirrors a warning in Ruby 2.2. +# +# @example +# +# # bad +# +# hash = { food: 'apple', food: 'orange' } +# @example +# +# # good +# +# hash = { food: 'apple', other_food: 'orange' } +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#22 +class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Duplication + + # source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#27 + def on_hash(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#25 +RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) + +# Checks for duplicated magic comments. +# +# @example +# +# # bad +# +# # encoding: ascii +# # encoding: ascii +# +# # good +# +# # encoding: ascii +# +# # bad +# +# # frozen_string_literal: true +# # frozen_string_literal: true +# +# # good +# +# # frozen_string_literal: true +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#28 +class RuboCop::Cop::Lint::DuplicateMagicComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#35 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#51 + def magic_comment_lines; end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#65 + def register_offense(range); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#33 +RuboCop::Cop::Lint::DuplicateMagicComment::MSG = T.let(T.unsafe(nil), String) + +# Checks that there are no repeated patterns used in `in` keywords. +# +# @example +# +# # bad +# case x +# in 'first' +# do_something +# in 'first' +# do_something_else +# end +# +# # good +# case x +# in 'first' +# do_something +# in 'second' +# do_something_else +# end +# +# # bad - repeated alternate patterns with the same conditions don't depend on the order +# case x +# in foo | bar +# first_method +# in bar | foo +# second_method +# end +# +# # good +# case x +# in foo | bar +# first_method +# in bar | baz +# second_method +# end +# +# # bad - repeated hash patterns with the same conditions don't depend on the order +# case x +# in foo: a, bar: b +# first_method +# in bar: b, foo: a +# second_method +# end +# +# # good +# case x +# in foo: a, bar: b +# first_method +# in bar: b, baz: c +# second_method +# end +# +# # bad - repeated array patterns with elements in the same order +# case x +# in [foo, bar] +# first_method +# in [foo, bar] +# second_method +# end +# +# # good +# case x +# in [foo, bar] +# first_method +# in [bar, foo] +# second_method +# end +# +# # bad - repeated the same patterns and guard conditions +# case x +# in foo if bar +# first_method +# in foo if bar +# second_method +# end +# +# # good +# case x +# in foo if bar +# first_method +# in foo if baz +# second_method +# end +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#90 +class RuboCop::Cop::Lint::DuplicateMatchPattern < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#97 + def on_case_match(case_node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#108 + def pattern_identity(pattern); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#93 +RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) + +# Checks for duplicated instance (or singleton) method +# definitions. +# +# @example +# +# # bad +# +# def foo +# 1 +# end +# +# def foo +# 2 +# end +# @example +# +# # bad +# +# def foo +# 1 +# end +# +# alias foo bar +# @example +# +# # good +# +# def foo +# 1 +# end +# +# def bar +# 2 +# end +# @example +# +# # good +# +# def foo +# 1 +# end +# +# alias bar foo +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#52 +class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base + # @return [DuplicateMethods] a new instance of DuplicateMethods + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#57 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#98 + def alias_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#85 + def method_alias?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#89 + def on_alias(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#63 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#72 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#104 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#103 + def sym_name(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#117 + def check_const_receiver(node, name, const_name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#124 + def check_self_receiver(node, name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 + def found_attr(node, args, readable: T.unsafe(nil), writable: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#136 + def found_instance_method(node, name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#159 + def found_method(node, method_name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#149 + def found_sclass_method(node, name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#186 + def location(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#218 + def lookup_constant(node, const_name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#131 + def message_for_dup(node, method_name, key); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#178 + def method_key(node, method_name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#194 + def on_attr(node, attr_name, args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#250 + def possible_dsl?(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#236 + def qualified_name(enclosing, namespace, mod_name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#260 + def source_location(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#55 +RuboCop::Cop::Lint::DuplicateMethods::DEF_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#53 +RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#54 +RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for duplicate elements in Regexp character classes. +# +# @example +# +# # bad +# r = /[xyx]/ +# +# # bad +# r = /[0-9x0-9]/ +# +# # good +# r = /[xy]/ +# +# # good +# r = /[0-9x]/ +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#21 +class RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#37 + def each_repeated_character_class_element_loc(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#29 + def on_regexp(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#102 + def escaped_octal?(string); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#54 + def group_expressions(node, expressions); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#110 + def interpolation_locs(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#106 + def octal?(char); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#71 + def pop_octal_digits(current_child, expressions); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#89 + def skip_expression?(expr); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#80 + def source_range(children); end + + # Since we blank interpolations with a space for every char of the interpolation, we would + # mark every space (except the first) as duplicate if we do not skip regexp_parser nodes + # that are within an interpolation. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#96 + def within_interpolation?(node, child); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#25 +RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::MSG_REPEATED_ELEMENT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#27 +RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::OCTAL_DIGITS_AFTER_ESCAPE = T.let(T.unsafe(nil), Integer) + +# Checks for duplicate ``require``s and ``require_relative``s. +# +# @example +# # bad +# require 'foo' +# require 'bar' +# require 'foo' +# +# # good +# require 'foo' +# require 'bar' +# +# # good +# require 'foo' +# require_relative 'foo' +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#26 +class RuboCop::Cop::Lint::DuplicateRequire < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#39 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#45 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#35 + def require_call?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#30 +RuboCop::Cop::Lint::DuplicateRequire::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#31 +RuboCop::Cop::Lint::DuplicateRequire::REQUIRE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#32 +RuboCop::Cop::Lint::DuplicateRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Checks that there are no repeated exceptions +# used in 'rescue' expressions. +# +# @example +# # bad +# begin +# something +# rescue FirstException +# handle_exception +# rescue FirstException +# handle_other_exception +# end +# +# # good +# begin +# something +# rescue FirstException +# handle_exception +# rescue SecondException +# handle_other_exception +# end +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#28 +class RuboCop::Cop::Lint::DuplicateRescueException < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RescueNode + + # source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#33 + def on_rescue(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#31 +RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) + +# Checks if each_with_object is called with an immutable +# argument. Since the argument is the object that the given block shall +# make calls on to build something based on the enumerable that +# each_with_object iterates over, an immutable argument makes no sense. +# It's definitely a bug. +# +# @example +# +# # bad +# +# sum = numbers.each_with_object(0) { |e, a| a += e } +# @example +# +# # good +# +# num = 0 +# sum = numbers.each_with_object(num) { |e, a| a += e } +# +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#24 +class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 + def each_with_object?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#33 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#33 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25 +RuboCop::Cop::Lint::EachWithObjectArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#26 +RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for odd `else` block layout - like +# having an expression on the same line as the `else` keyword, +# which is usually a mistake. +# +# Its autocorrection tweaks layout to keep the syntax. So, this autocorrection +# is compatible correction for bad case syntax, but if your code makes a mistake +# with `elsif` and `else`, you will have to correct it manually. +# +# @example +# +# # bad +# +# if something +# # ... +# else do_this +# do_that +# end +# @example +# +# # good +# +# # This code is compatible with the bad case. It will be autocorrected like this. +# if something +# # ... +# else +# do_this +# do_that +# end +# +# # This code is incompatible with the bad case. +# # If `do_this` is a condition, `elsif` should be used instead of `else`. +# if something +# # ... +# elsif do_this +# do_that +# end +# +# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#43 +class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#50 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#81 + def autocorrect(corrector, node, first_else); end + + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#61 + def check(node); end + + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#71 + def check_else(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#48 +RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) + +# Checks for blocks without a body. +# Such empty blocks are typically an oversight or we should provide a comment +# to clarify what we're aiming for. +# +# Empty lambdas and procs are ignored by default. +# +# NOTE: For backwards compatibility, the configuration that allows/disallows +# empty lambdas and procs is called `AllowEmptyLambdas`, even though it also +# applies to procs. +# +# @example +# # bad +# items.each { |item| } +# +# # good +# items.each { |item| puts item } +# @example AllowComments: true (default) +# # good +# items.each do |item| +# # TODO: implement later (inner comment) +# end +# +# items.each { |item| } # TODO: implement later (inline comment) +# @example AllowComments: false +# # bad +# items.each do |item| +# # TODO: implement later (inner comment) +# end +# +# items.each { |item| } # TODO: implement later (inline comment) +# @example AllowEmptyLambdas: true (default) +# # good +# allow(subject).to receive(:callable).and_return(-> {}) +# +# placeholder = lambda do +# end +# (callable || placeholder).call +# +# proc { } +# +# Proc.new { } +# @example AllowEmptyLambdas: false +# # bad +# allow(subject).to receive(:callable).and_return(-> {}) +# +# placeholder = lambda do +# end +# (callable || placeholder).call +# +# proc { } +# +# Proc.new { } +# +# source://rubocop//lib/rubocop/cop/lint/empty_block.rb#63 +class RuboCop::Cop::Lint::EmptyBlock < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#66 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#76 + def allow_comment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#83 + def allow_empty_lambdas?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#87 + def comment_disables_cop?(comment); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_block.rb#64 +RuboCop::Cop::Lint::EmptyBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for classes and metaclasses without a body. +# Such empty classes and metaclasses are typically an oversight or we should provide a comment +# to be clearer what we're aiming for. +# +# @example +# # bad +# class Foo +# end +# +# class Bar +# class << self +# end +# end +# +# class << obj +# end +# +# # good +# class Foo +# def do_something +# # ... code +# end +# end +# +# class Bar +# class << self +# attr_reader :bar +# end +# end +# +# class << obj +# attr_reader :bar +# end +# @example AllowComments: false (default) +# # bad +# class Foo +# # TODO: implement later +# end +# +# class Bar +# class << self +# # TODO: implement later +# end +# end +# +# class << obj +# # TODO: implement later +# end +# @example AllowComments: true +# # good +# class Foo +# # TODO: implement later +# end +# +# class Bar +# class << self +# # TODO: implement later +# end +# end +# +# class << obj +# # TODO: implement later +# end +# +# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#72 +class RuboCop::Cop::Lint::EmptyClass < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#76 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#81 + def on_sclass(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#87 + def body_or_allowed_comment_lines?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#73 +RuboCop::Cop::Lint::EmptyClass::CLASS_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#74 +RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of `if`, `elsif` and `unless` branches without a body. +# +# NOTE: empty `else` branches are handled by `Style/EmptyElse`. +# +# @example +# # bad +# if condition +# end +# +# # bad +# unless condition +# end +# +# # bad +# if condition +# do_something +# elsif other_condition +# end +# +# # good +# if condition +# do_something +# end +# +# # good +# unless condition +# do_something +# end +# +# # good +# if condition +# do_something +# elsif other_condition +# do_something_else +# end +# @example AllowComments: true (default) +# # good +# if condition +# do_something +# elsif other_condition +# # noop +# end +# @example AllowComments: false +# # bad +# if condition +# do_something +# elsif other_condition +# # noop +# end +# +# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#63 +class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#70 + def on_if(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#156 + def all_branches_body_missing?(node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#83 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#142 + def branch_range(node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#104 + def correct_other_branches(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#162 + def deletion_range(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#137 + def else_branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#131 + def empty_elsif_branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#123 + def empty_if_branch?(node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#89 + def remove_comments(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#96 + def remove_empty_branch(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#116 + def require_other_branches_correction?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#68 +RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) + +# Checks for empty `ensure` blocks +# +# @example +# +# # bad +# +# def some_method +# do_something +# ensure +# end +# @example +# +# # bad +# +# begin +# do_something +# ensure +# end +# @example +# +# # good +# +# def some_method +# do_something +# ensure +# do_something_else +# end +# @example +# +# # good +# +# begin +# do_something +# ensure +# do_something_else +# end +# +# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#45 +class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#50 + def on_ensure(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#48 +RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of empty expressions. +# +# @example +# +# # bad +# +# foo = () +# if () +# bar +# end +# @example +# +# # good +# +# foo = (some_expression) +# if (some_expression) +# bar +# end +# +# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#25 +class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#28 + def on_begin(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#36 + def empty_expression?(begin_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#26 +RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) + +# Enforces that Ruby source files are not empty. +# +# @example +# # bad +# # Empty file +# +# # good +# # File containing non commented source lines +# @example AllowComments: true (default) +# # good +# # File consisting only of comments +# @example AllowComments: false +# # bad +# # File consisting only of comments +# +# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#23 +class RuboCop::Cop::Lint::EmptyFile < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#28 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#42 + def contains_only_comments?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#38 + def empty_file?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#34 + def offending?; end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#26 +RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of `in` pattern branches without a body. +# +# @example +# +# # bad +# case condition +# in [a] +# do_something +# in [a, b] +# end +# +# # good +# case condition +# in [a] +# do_something +# in [a, b] +# nil +# end +# @example AllowComments: true (default) +# +# # good +# case condition +# in [a] +# do_something +# in [a, b] +# # noop +# end +# @example AllowComments: false +# +# # bad +# case condition +# in [a] +# do_something +# in [a, b] +# # noop +# end +# +# source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#45 +class RuboCop::Cop::Lint::EmptyInPattern < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#53 + def on_case_match(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#49 +RuboCop::Cop::Lint::EmptyInPattern::MSG = T.let(T.unsafe(nil), String) + +# Checks for empty interpolation. +# +# @example +# +# # bad +# +# "result is #{}" +# @example +# +# # good +# +# "result is #{some_result}" +# +# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#19 +class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Interpolation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#25 + def on_interpolation(begin_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#23 +RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of `when` branches without a body. +# +# @example +# +# # bad +# case foo +# when bar +# do_something +# when baz +# end +# @example +# +# # good +# case condition +# when foo +# do_something +# when bar +# nil +# end +# @example AllowComments: true (default) +# +# # good +# case condition +# when foo +# do_something +# when bar +# # noop +# end +# @example AllowComments: false +# +# # bad +# case condition +# when foo +# do_something +# when bar +# # do nothing +# end +# +# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#47 +class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + + # source://rubocop//lib/rubocop/cop/lint/empty_when.rb#52 + def on_case(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#50 +RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) + +# Checks for `return` from an `ensure` block. +# `return` from an ensure block is a dangerous code smell as it +# will take precedence over any exception being raised, +# and the exception will be silently thrown away as if it were rescued. +# +# If you want to rescue some (or all) exceptions, best to do it explicitly +# +# @example +# +# # bad +# +# def foo +# do_something +# ensure +# cleanup +# return self +# end +# @example +# +# # good +# +# def foo +# do_something +# self +# ensure +# cleanup +# end +# +# # also good +# +# def foo +# begin +# do_something +# rescue SomeException +# # Let's ignore this exception +# end +# self +# ensure +# cleanup +# end +# +# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#47 +class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#53 + def on_ensure(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#51 +RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) + +# Emulates the following Ruby warnings in Ruby 2.6. +# +# [source,console] +# ---- +# $ cat example.rb +# ERB.new('hi', nil, '-', '@output_buffer') +# $ ruby -rerb example.rb +# example.rb:1: warning: Passing safe_level with the 2nd argument of ERB.new is +# deprecated. Do not use it, and specify other arguments as keyword arguments. +# example.rb:1: warning: Passing trim_mode with the 3rd argument of ERB.new is +# deprecated. Use keyword argument like ERB.new(str, trim_mode:...) instead. +# example.rb:1: warning: Passing eoutvar with the 4th argument of ERB.new is +# deprecated. Use keyword argument like ERB.new(str, eoutvar: ...) instead. +# ---- +# +# Now non-keyword arguments other than first one are softly deprecated +# and will be removed when Ruby 2.5 becomes EOL. +# `ERB.new` with non-keyword arguments is deprecated since ERB 2.2.0. +# Use `:trim_mode` and `:eoutvar` keyword arguments to `ERB.new`. +# This cop identifies places where `ERB.new(str, trim_mode, eoutvar)` can +# be replaced by `ERB.new(str, :trim_mode: trim_mode, eoutvar: eoutvar)`. +# +# @example +# # Target codes supports Ruby 2.6 and higher only +# # bad +# ERB.new(str, nil, '-', '@output_buffer') +# +# # good +# ERB.new(str, trim_mode: '-', eoutvar: '@output_buffer') +# +# # Target codes supports Ruby 2.5 and lower only +# # good +# ERB.new(str, nil, '-', '@output_buffer') +# +# # Target codes supports Ruby 2.6, 2.5 and lower +# # bad +# ERB.new(str, nil, '-', '@output_buffer') +# +# # good +# # Ruby standard library style +# # https://github.com/ruby/ruby/commit/3406c5d +# if ERB.instance_method(:initialize).parameters.assoc(:key) # Ruby 2.6+ +# ERB.new(str, trim_mode: '-', eoutvar: '@output_buffer') +# else +# ERB.new(str, nil, '-', '@output_buffer') +# end +# +# # good +# # Use `RUBY_VERSION` style +# if RUBY_VERSION >= '2.6' +# ERB.new(str, trim_mode: '-', eoutvar: '@output_buffer') +# else +# ERB.new(str, nil, '-', '@output_buffer') +# end +# +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#61 +class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#83 + def erb_new_with_non_keyword_arguments(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#88 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#153 + def arguments_range(node); end + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#108 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#123 + def build_kwargs(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#119 + def correct_arguments?(arguments); end + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#140 + def override_by_legacy_args(kwargs, node); end +end + +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#68 +RuboCop::Cop::Lint::ErbNewArguments::MESSAGES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#80 +RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for uses of flip-flop operator +# based on the Ruby Style Guide. +# +# Here is the history of flip-flops in Ruby. +# flip-flop operator is deprecated in Ruby 2.6.0 and +# the deprecation has been reverted by Ruby 2.7.0 and +# backported to Ruby 2.6. +# See: https://bugs.ruby-lang.org/issues/5400 +# +# @example +# # bad +# (1..20).each do |x| +# puts x if (x == 5) .. (x == 10) +# end +# +# # good +# (1..20).each do |x| +# puts x if (x >= 5) && (x <= 10) +# end +# +# source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#25 +class RuboCop::Cop::Lint::FlipFlop < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#32 + def on_eflipflop(node); end + + # source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#28 + def on_iflipflop(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#26 +RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of precise comparison of floating point numbers. +# +# Floating point values are inherently inaccurate, and comparing them for exact equality +# is almost never the desired semantics. Comparison via the `==/!=` operators checks +# floating-point value representation to be exactly the same, which is very unlikely +# if you perform any arithmetic operations involving precision loss. +# +# @example +# # bad +# x == 0.1 +# x != 0.1 +# +# # good - using BigDecimal +# x.to_d == 0.1.to_d +# +# # good +# (x - 0.1).abs < Float::EPSILON +# +# # good +# tolerance = 0.0001 +# (x - 0.1).abs < tolerance +# +# # Or some other epsilon based type of comparison: +# # https://www.embeddeduse.com/2019/08/26/qt-compare-two-floats/ +# +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#31 +class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#40 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#79 + def check_numeric_returning_method(node); end + + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#63 + def check_send(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#47 + def float?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#34 +RuboCop::Cop::Lint::FloatComparison::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#36 +RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#35 +RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#32 +RuboCop::Cop::Lint::FloatComparison::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#38 +RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies Float literals which are, like, really really really +# really really really really really big. Too big. No-one needs Floats +# that big. If you need a float that big, something is wrong with you. +# +# @example +# +# # bad +# +# float = 3.0e400 +# @example +# +# # good +# +# float = 42.9 +# +# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#21 +class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#24 + def on_float(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#22 +RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) + +# This lint sees if there is a mismatch between the number of +# expected fields for format/sprintf/#% and what is actually +# passed as arguments. +# +# In addition it checks whether different formats are used in the same +# format string. Do not mix numbered, unnumbered, and named formats in +# the same format string. +# +# @example +# +# # bad +# +# format('A value: %s and another: %i', a_value) +# @example +# +# # good +# +# format('A value: %s and another: %i', a_value, another) +# @example +# +# # bad +# +# format('Unnumbered format: %s and numbered: %2$s', a_value, another) +# @example +# +# # good +# +# format('Numbered format: %1$s and numbered %2$s', a_value, another) +# +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#37 +class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#100 + def called_on_string?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#49 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#137 + def count_format_matches(node); end + + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#119 + def count_matches(node); end + + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#141 + def count_percent_matches(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#129 + def countable_format?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#133 + def countable_percent?(node); end + + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#153 + def expected_fields_count(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#168 + def format?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#146 + def format_method?(name, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#64 + def format_string?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#115 + def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#68 + def invalid_format_string?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#91 + def matched_arguments_count?(expected, passed); end + + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#186 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#105 + def method_with_format_args?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#77 + def offending_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#176 + def percent?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#109 + def splat_args?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#172 + def sprintf?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#195 + def string_type?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#44 +RuboCop::Cop::Lint::FormatParameterMismatch::KERNEL = T.let(T.unsafe(nil), String) + +# http://rubular.com/r/CvpbxkcTzy +# +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#39 +RuboCop::Cop::Lint::FormatParameterMismatch::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#41 +RuboCop::Cop::Lint::FormatParameterMismatch::MSG_INVALID = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#47 +RuboCop::Cop::Lint::FormatParameterMismatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#45 +RuboCop::Cop::Lint::FormatParameterMismatch::SHOVEL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#46 +RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), Array) + +# Prefer using `Hash#compare_by_identity` rather than using `object_id` +# for hash keys. +# +# This cop looks for hashes being keyed by objects' `object_id`, using +# one of these methods: `key?`, `has_key?`, `fetch`, `[]` and `[]=`. +# +# @example +# # bad +# hash = {} +# hash[foo.object_id] = :bar +# hash.key?(baz.object_id) +# +# # good +# hash = {}.compare_by_identity +# hash[foo] = :bar +# hash.key?(baz) +# +# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#31 +class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37 + def id_as_hash_key?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#34 +RuboCop::Cop::Lint::HashCompareByIdentity::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#32 +RuboCop::Cop::Lint::HashCompareByIdentity::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the ordering of a method call where +# the receiver of the call is a HEREDOC. +# +# @example +# # bad +# <<-SQL +# bar +# SQL +# .strip_indent +# +# <<-SQL +# bar +# SQL +# .strip_indent +# .trim +# +# # good +# <<~SQL +# bar +# SQL +# +# <<~SQL.trim +# bar +# SQL +# +# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#31 +class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#97 + def all_on_same_line?(nodes); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#50 + def autocorrect(corrector, node, heredoc); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#77 + def call_after_heredoc_range(heredoc); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#107 + def call_end_pos(node); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#116 + def call_line_range(node); end + + # Returns nil if no range can be safely repositioned. + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#122 + def call_range_to_safely_reposition(node, heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#86 + def calls_on_multiple_lines?(node, _heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#82 + def correctly_positioned?(node, heredoc); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#111 + def heredoc_begin_line_range(heredoc); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#103 + def heredoc_end_pos(heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#73 + def heredoc_node?(node); end + + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#59 + def heredoc_node_descendent_receiver(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#67 + def send_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#146 + def trailing_comma?(call_source, call_line_source); end +end + +# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#35 +RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String) + +# Prefer `equal?` over `==` when comparing `object_id`. +# +# `Object#equal?` is provided to compare objects for identity, and in contrast +# `Object#==` is provided for the purpose of doing value comparison. +# +# @example +# # bad +# foo.object_id == bar.object_id +# +# # good +# foo.equal?(bar) +# +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#18 +class RuboCop::Cop::Lint::IdentityComparison < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#24 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#40 + def compare_between_object_id_by_double_equal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#44 + def object_id_method?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#21 +RuboCop::Cop::Lint::IdentityComparison::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#22 +RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for implicit string concatenation of string literals +# which are on the same line. +# +# @example +# +# # bad +# +# array = ['Item 1' 'Item 2'] +# @example +# +# # good +# +# array = ['Item 1Item 2'] +# array = ['Item 1' + 'Item 2'] +# array = [ +# 'Item 1' \ +# 'Item 2' +# ] +# +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#25 +class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#33 + def on_dstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#83 + def display_str(node); end + + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#50 + def each_bad_cons(node); end + + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#65 + def ending_delimiter(str); end + + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#91 + def str_content(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#75 + def string_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#79 + def string_literals?(node1, node2); end +end + +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#28 +RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_ARRAY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#30 +RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_METHOD = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#26 +RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), String) + +# Checks for `IO.select` that is incompatible with Fiber Scheduler since Ruby 3.0. +# +# When an array of IO objects waiting for an exception (the third argument of `IO.select`) +# is used as an argument, there is no alternative API, so offenses are not registered. +# +# NOTE: When the method is successful the return value of `IO.select` is `[[IO]]`, +# and the return value of `io.wait_readable` and `io.wait_writable` are `self`. +# They are not autocorrected when assigning a return value because these types are different. +# It's up to user how to handle the return value. +# +# @example +# +# # bad +# IO.select([io], [], [], timeout) +# +# # good +# io.wait_readable(timeout) +# +# # bad +# IO.select([], [io], [], timeout) +# +# # good +# io.wait_writable(timeout) +# +# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#34 +class RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#41 + def io_select(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#46 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#69 + def preferred_method(read, write, timeout); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#63 + def scheduler_compatible?(io1, io2); end +end + +# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#37 +RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#38 +RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for `private` or `protected` access modifiers which are +# applied to a singleton method. These access modifiers do not make +# singleton methods private/protected. `private_class_method` can be +# used for that. +# +# @example +# +# # bad +# +# class C +# private +# +# def self.method +# puts 'hi' +# end +# end +# @example +# +# # good +# +# class C +# def self.method +# puts 'hi' +# end +# +# private_class_method :method +# end +# @example +# +# # good +# +# class C +# class << self +# private +# +# def method +# puts 'hi' +# end +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 +class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#55 + def private_class_methods(param0); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#109 + def access_modifier?(node); end + + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#66 + def check_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#113 + def correct_visibility?(node, modifier, ignored_methods); end + + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#78 + def format_message(modifier); end + + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#91 + def ineffective_modifier(node, ignored_methods = T.unsafe(nil), modifier = T.unsafe(nil), &block); end + + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#74 + def private_class_method_names(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#51 +RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PRIVATE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 +RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PROTECTED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#49 +RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String) + +# Looks for error classes inheriting from `Exception`. +# It is configurable to suggest using either `StandardError` (default) or +# `RuntimeError` instead. +# +# @example EnforcedStyle: standard_error (default) +# # bad +# +# class C < Exception; end +# +# C = Class.new(Exception) +# +# # good +# +# class C < StandardError; end +# +# C = Class.new(StandardError) +# @example EnforcedStyle: runtime_error +# # bad +# +# class C < Exception; end +# +# C = Class.new(Exception) +# +# # good +# +# class C < RuntimeError; end +# +# C = Class.new(RuntimeError) +# +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#40 +class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#53 + def class_new_call?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#59 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#70 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#87 + def exception_class?(class_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#91 + def inherit_exception_class_with_omitted_namespace?(class_node); end + + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#83 + def message(node); end + + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#99 + def preferred_base_class; end +end + +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#44 +RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#45 +RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#50 +RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for interpolation in a single quoted string. +# +# @example +# +# # bad +# +# foo = 'something with #{interpolation} inside' +# @example +# +# # good +# +# foo = "something with #{interpolation} inside" +# +# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#25 +class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#31 + def on_str(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#42 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#53 + def heredoc?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#28 +RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String) + +# Checks uses of lambda without a literal block. +# It emulates the following warning in Ruby 3.0: +# +# $ ruby -vwe 'lambda(&proc {})' +# ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19] +# -e:1: warning: lambda without a literal block is deprecated; use the proc without +# lambda instead +# +# This way, proc object is never converted to lambda. +# Autocorrection replaces with compatible proc argument. +# +# @example +# +# # bad +# lambda(&proc { do_something }) +# lambda(&Proc.new { do_something }) +# +# # good +# proc { do_something } +# Proc.new { do_something } +# lambda { do_something } # If you use lambda. +# +# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#28 +class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#35 + def lambda_with_symbol_proc?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#39 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#31 +RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#32 +RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for literals used as the conditions or as +# operands in and/or expressions serving as the conditions of +# if/while/until/case-when/case-in. +# +# NOTE: Literals in `case-in` condition where the match variable is used in +# `in` are accepted as a pattern matching. +# +# @example +# +# # bad +# if 20 +# do_something +# end +# +# # bad +# if some_var && true +# do_something +# end +# +# # good +# if some_var && some_condition +# do_something +# end +# +# # good +# # When using a boolean value for an infinite loop. +# while true +# break if condition +# end +# +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#35 +class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#93 + def message(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#58 + def on_case(case_node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#73 + def on_case_match(case_match_node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#40 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#87 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#51 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#51 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#44 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#44 + def on_while_post(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#108 + def basic_literal?(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#138 + def check_case(case_node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#99 + def check_for_literal(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#120 + def check_node(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#147 + def condition(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#130 + def handle_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#116 + def primitive_array?(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#155 + def when_conditions_range(when_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#38 +RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) + +# Checks for interpolated literals. +# +# @example +# +# # bad +# +# "result is #{10}" +# @example +# +# # good +# +# "result is 10" +# +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#19 +class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Interpolation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#28 + def on_interpolation(begin_node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#62 + def autocorrected_value(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#108 + def autocorrected_value_for_array(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#114 + def autocorrected_value_for_hash(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#84 + def autocorrected_value_for_string(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#92 + def autocorrected_value_for_symbol(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#125 + def autocorrected_value_in_hash(node); end + + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#99 + def autocorrected_value_in_hash_for_symbol(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#155 + def ends_heredoc_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#163 + def in_array_percent_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#48 + def offending?(node); end + + # Does node print its own source when converted to a string? + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#146 + def prints_as_self?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#151 + def space_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#56 + def special_keyword?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#26 +RuboCop::Cop::Lint::LiteralInInterpolation::COMPOSITE = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#25 +RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of `begin...end while/until something`. +# +# @example +# +# # bad +# +# # using while +# begin +# do_something +# end while some_condition +# @example +# +# # bad +# +# # using until +# begin +# do_something +# end until some_condition +# @example +# +# # good +# +# # while replacement +# loop do +# do_something +# break unless some_condition +# end +# @example +# +# # good +# +# # until replacement +# loop do +# do_something +# break if some_condition +# end +# +# source://rubocop//lib/rubocop/cop/lint/loop.rb#50 +class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/loop.rb#59 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/lint/loop.rb#55 + def on_while_post(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/loop.rb#79 + def build_break_line(node); end + + # source://rubocop//lib/rubocop/cop/lint/loop.rb#75 + def keyword_and_condition_range(node); end + + # source://rubocop//lib/rubocop/cop/lint/loop.rb#65 + def register_offense(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/loop.rb#53 +RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) + +# cop disables on wide ranges of code, that latter contributors to +# a file wouldn't be aware of. +# +# @example +# # Lint/MissingCopEnableDirective: +# # MaximumRangeSize: .inf +# +# # good +# # rubocop:disable Layout/SpaceAroundOperators +# x= 0 +# # rubocop:enable Layout/SpaceAroundOperators +# # y = 1 +# # EOF +# +# # bad +# # rubocop:disable Layout/SpaceAroundOperators +# x= 0 +# # EOF +# @example +# # Lint/MissingCopEnableDirective: +# # MaximumRangeSize: 2 +# +# # good +# # rubocop:disable Layout/SpaceAroundOperators +# x= 0 +# # With the previous, there are 2 lines on which cop is disabled. +# # rubocop:enable Layout/SpaceAroundOperators +# +# # bad +# # rubocop:disable Layout/SpaceAroundOperators +# x= 0 +# x += 1 +# # Including this, that's 3 lines on which the cop is disabled. +# # rubocop:enable Layout/SpaceAroundOperators +# +# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#45 +class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#51 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#70 + def acceptable_range?(cop, line_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#104 + def department_enabled?(cop, comment); end + + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#64 + def each_missing_enable; end + + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#87 + def max_range; end + + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#91 + def message(cop, comment, type = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#48 +RuboCop::Cop::Lint::MissingCopEnableDirective::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#49 +RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), String) + +# Checks for the presence of constructors and lifecycle callbacks +# without calls to `super`. +# +# This cop does not consider `method_missing` (and `respond_to_missing?`) +# because in some cases it makes sense to overtake what is considered a +# missing method. In other cases, the theoretical ideal handling could be +# challenging or verbose for no actual gain. +# +# Autocorrection is not supported because the position of `super` cannot be +# determined automatically. +# +# `Object` and `BasicObject` are allowed by this cop because of their +# stateless nature. However, sometimes you might want to allow other parent +# classes from this cop, for example in the case of an abstract class that is +# not meant to be called with `super`. In those cases, you can use the +# `AllowedParentClasses` option to specify which classes should be allowed +# *in addition to* `Object` and `BasicObject`. +# +# @example +# # bad +# class Employee < Person +# def initialize(name, salary) +# @salary = salary +# end +# end +# +# # good +# class Employee < Person +# def initialize(name, salary) +# super(name) +# @salary = salary +# end +# end +# +# # bad +# Employee = Class.new(Person) do +# def initialize(name, salary) +# @salary = salary +# end +# end +# +# # good +# Employee = Class.new(Person) do +# def initialize(name, salary) +# super(name) +# @salary = salary +# end +# end +# +# # bad +# class Parent +# def self.inherited(base) +# do_something +# end +# end +# +# # good +# class Parent +# def self.inherited(base) +# super +# do_something +# end +# end +# +# # good +# class ClassWithNoParent +# def initialize +# do_something +# end +# end +# @example AllowedParentClasses: [MyAbstractClass] +# # good +# class MyConcreteClass < MyAbstractClass +# def initialize +# do_something +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#85 +class RuboCop::Cop::Lint::MissingSuper < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#99 + def class_new_block(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#105 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#115 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#149 + def allowed_class?(node); end + + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#153 + def allowed_classes; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#127 + def callback_method_def?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#133 + def contains_super?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#137 + def inside_class_with_stateful_parent?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#123 + def offender?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#96 +RuboCop::Cop::Lint::MissingSuper::CALLBACKS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#87 +RuboCop::Cop::Lint::MissingSuper::CALLBACK_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#91 +RuboCop::Cop::Lint::MissingSuper::CLASS_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#86 +RuboCop::Cop::Lint::MissingSuper::CONSTRUCTOR_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#92 +RuboCop::Cop::Lint::MissingSuper::METHOD_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#89 +RuboCop::Cop::Lint::MissingSuper::STATELESS_CLASSES = T.let(T.unsafe(nil), Array) + +# Checks for mixed-case character ranges since they include likely unintended characters. +# +# Offenses are registered for regexp character classes like `/[A-z]/` +# as well as range objects like `('A'..'z')`. +# +# NOTE: Range objects cannot be autocorrected. +# +# @example +# +# # bad +# r = /[A-z]/ +# +# # good +# r = /[A-Za-z]/ +# +# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#28 +class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#56 + def each_unsafe_regexp_range(node); end + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37 + def on_erange(node); end + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37 + def on_irange(node); end + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#48 + def on_regexp(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#72 + def build_source_range(range_start, range_end); end + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#76 + def range_for(char); end + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#82 + def range_pairs(expr); end + + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#102 + def rewrite_regexp_range(source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#92 + def skip_expression?(expr); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#96 + def skip_range?(range_start, range_end); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#86 + def unsafe_range?(range_start, range_end); end +end + +# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#32 +RuboCop::Cop::Lint::MixedCaseRange::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#35 +RuboCop::Cop::Lint::MixedCaseRange::RANGES = T.let(T.unsafe(nil), Array) + +# Do not mix named captures and numbered captures in a Regexp literal +# because numbered capture is ignored if they're mixed. +# Replace numbered captures with non-capturing groupings or +# named captures. +# +# @example +# # bad +# /(?<foo>FOO)(BAR)/ +# +# # good +# /(?<foo>FOO)(?<bar>BAR)/ +# +# # good +# /(?<foo>FOO)(?:BAR)/ +# +# # good +# /(FOO)(BAR)/ +# +# source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#24 +class RuboCop::Cop::Lint::MixedRegexpCaptureTypes < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#27 + def on_regexp(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#25 +RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String) + +# In math and Python, we can use `x < y < z` style comparison to compare +# multiple value. However, we can't use the comparison in Ruby. However, +# the comparison is not syntax error. This cop checks the bad usage of +# comparison operators. +# +# @example +# +# # bad +# x < y < z +# 10 <= x <= 20 +# +# # good +# x < y && y < z +# 10 <= x && x <= 20 +# +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#20 +class RuboCop::Cop::Lint::MultipleComparison < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#29 + def multiple_compare?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#33 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#24 +RuboCop::Cop::Lint::MultipleComparison::COMPARISON_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#23 +RuboCop::Cop::Lint::MultipleComparison::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#26 +RuboCop::Cop::Lint::MultipleComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#25 +RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe(nil), Array) + +# Checks for nested method definitions. +# +# @example +# +# # bad +# +# # `bar` definition actually produces methods in the same scope +# # as the outer `foo` method. Furthermore, the `bar` method +# # will be redefined every time `foo` is invoked. +# def foo +# def bar +# end +# end +# @example +# +# # good +# +# def foo +# bar = -> { puts 'hello' } +# bar.call +# end +# @example +# +# # good +# +# # `class_eval`, `instance_eval`, `module_eval`, `class_exec`, `instance_exec`, and +# # `module_exec` blocks are allowed by default. +# +# def foo +# self.class.class_eval do +# def bar +# end +# end +# end +# +# def foo +# self.class.module_exec do +# def bar +# end +# end +# end +# @example +# +# # good +# +# def foo +# class << self +# def bar +# end +# end +# end +# @example AllowedMethods: [] (default) +# # bad +# def do_something +# has_many :articles do +# def find_or_create_by_name(name) +# end +# end +# end +# @example AllowedMethods: ['has_many'] +# # bad +# def do_something +# has_many :articles do +# def find_or_create_by_name(name) +# end +# end +# end +# @example AllowedPatterns: [] (default) +# # bad +# def foo(obj) +# obj.do_baz do +# def bar +# end +# end +# end +# @example AllowedPatterns: ['baz'] +# # good +# def foo(obj) +# obj.do_baz do +# def bar +# end +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 +class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#133 + def eval_call?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#138 + def exec_call?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#103 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#103 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#126 + def allowed_method_name?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#121 + def scoping_method_call?(child); end +end + +# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#101 +RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# Checks for nested percent literals. +# +# @example +# +# # bad +# +# # The percent literal for nested_attributes is parsed as four tokens, +# # yielding the array [:name, :content, :"%i[incorrectly", :"nested]"]. +# attributes = { +# valid_attributes: %i[name content], +# nested_attributes: %i[name content %i[incorrectly nested]] +# } +# +# # good +# +# # Neither is incompatible with the bad case, but probably the intended code. +# attributes = { +# valid_attributes: %i[name content], +# nested_attributes: [:name, :content, %i[incorrectly nested]] +# } +# +# attributes = { +# valid_attributes: %i[name content], +# nested_attributes: [:name, :content, [:incorrectly, :nested]] +# } +# +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#32 +class RuboCop::Cop::Lint::NestedPercentLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + + # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#44 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#48 + def on_percent_literal(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#54 + def contains_percent_literals?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#35 +RuboCop::Cop::Lint::NestedPercentLiteral::MSG = T.let(T.unsafe(nil), String) + +# The array of regular expressions representing percent literals that, +# if found within a percent literal expression, will cause a +# NestedPercentLiteral violation to be emitted. +# +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#41 +RuboCop::Cop::Lint::NestedPercentLiteral::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#42 +RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) + +# Don't omit the accumulator when calling `next` in a `reduce` block. +# +# @example +# +# # bad +# +# result = (1..4).reduce(0) do |acc, i| +# next if i.odd? +# acc + i +# end +# @example +# +# # good +# +# result = (1..4).reduce(0) do |acc, i| +# next acc if i.odd? +# acc + i +# end +# +# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#25 +class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#51 + def on_block_body_of_reduce(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#56 + def on_numblock_body_of_reduce(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#60 + def parent_block_node(node); end + + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#64 + def parent_numblock_node(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#26 +RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of a `return` inside a `begin..end` block +# in assignment contexts. +# In this situation, the `return` will result in an exit from the current +# method, possibly leading to unexpected behavior. +# +# @example +# +# # bad +# +# @some_variable ||= begin +# return some_value if some_condition_is_met +# +# do_something +# end +# @example +# +# # good +# +# @some_variable ||= begin +# if some_condition_is_met +# some_value +# else +# do_something +# end +# end +# +# # good +# +# some_variable = if some_condition_is_met +# return if another_condition_is_met +# +# some_value +# else +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#43 +class RuboCop::Cop::Lint::NoReturnInBeginEndBlocks < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 + def on_op_asgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 + def on_or_asgn(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#44 +RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String) + +# Checks for non-atomic file operation. +# And then replace it with a nearly equivalent and atomic method. +# +# These can cause problems that are difficult to reproduce, +# especially in cases of frequent file operations in parallel, +# such as test runs with parallel_rspec. +# +# For examples: creating a directory if there is none, has the following problems +# +# An exception occurs when the directory didn't exist at the time of `exist?`, +# but someone else created it before `mkdir` was executed. +# +# Subsequent processes are executed without the directory that should be there +# when the directory existed at the time of `exist?`, +# but someone else deleted it shortly afterwards. +# +# @example +# # bad - race condition with another process may result in an error in `mkdir` +# unless Dir.exist?(path) +# FileUtils.mkdir(path) +# end +# +# # good - atomic and idempotent creation +# FileUtils.mkdir_p(path) +# +# # bad - race condition with another process may result in an error in `remove` +# if File.exist?(path) +# FileUtils.remove(path) +# end +# +# # good - atomic and idempotent removal +# FileUtils.rm_f(path) +# +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#44 +class RuboCop::Cop::Lint::NonAtomicFileOperation < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#76 + def explicit_not_force?(param0); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#71 + def force?(param0); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#80 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#66 + def receiver_and_method_name(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#61 + def send_exist_node(param0); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#97 + def allowable_use_with_if?(if_node); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#121 + def autocorrect(corrector, node, range); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#132 + def autocorrect_replace_method(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#151 + def force_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#159 + def force_method_name?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#155 + def force_option?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#91 + def if_node_child?(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#112 + def message_change_force_method(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#116 + def message_remove_file_exist_check(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#101 + def register_offense(node, exist_node); end + + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#139 + def replacement_method(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#50 +RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_FORCE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#51 +RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#49 +RuboCop::Cop::Lint::NonAtomicFileOperation::MSG_CHANGE_FORCE_METHOD = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#47 +RuboCop::Cop::Lint::NonAtomicFileOperation::MSG_REMOVE_FILE_EXIST_CHECK = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#54 +RuboCop::Cop::Lint::NonAtomicFileOperation::RECURSIVE_REMOVE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#52 +RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_FORCE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#53 +RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#55 +RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# `Dir[...]` and `Dir.glob(...)` do not make any guarantees about +# the order in which files are returned. The final order is +# determined by the operating system and file system. +# This means that using them in cases where the order matters, +# such as requiring files, can lead to intermittent failures +# that are hard to debug. To ensure this doesn't happen, +# always sort the list. +# +# `Dir.glob` and `Dir[]` sort globbed results by default in Ruby 3.0. +# So all bad cases are acceptable when Ruby 3.0 or higher are used. +# +# NOTE: This cop will be deprecated and removed when supporting only Ruby 3.0 and higher. +# +# @example +# +# # bad +# Dir["./lib/**/*.rb"].each do |file| +# require file +# end +# +# # good +# Dir["./lib/**/*.rb"].sort.each do |file| +# require file +# end +# +# # bad +# Dir.glob(Rails.root.join(__dir__, 'test', '*.rb')) do |file| +# require file +# end +# +# # good +# Dir.glob(Rails.root.join(__dir__, 'test', '*.rb')).sort.each do |file| +# require file +# end +# +# # bad +# Dir['./lib/**/*.rb'].each(&method(:require)) +# +# # good +# Dir['./lib/**/*.rb'].sort.each(&method(:require)) +# +# # bad +# Dir.glob(Rails.root.join('test', '*.rb'), &method(:require)) +# +# # good +# Dir.glob(Rails.root.join('test', '*.rb')).sort.each(&method(:require)) +# +# # good - Respect intent if `sort` keyword option is specified in Ruby 3.0 or higher. +# Dir.glob(Rails.root.join(__dir__, 'test', '*.rb'), sort: false).each(&method(:require)) +# +# source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#60 +class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#174 + def loop_variable(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#157 + def method_require?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#65 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#89 + def on_block_pass(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#77 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#147 + def unsorted_dir_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#152 + def unsorted_dir_each?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#168 + def unsorted_dir_each_pass?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#162 + def unsorted_dir_glob_pass?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#179 + def var_is_required?(param0, param1); end + + private + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#107 + def correct_block(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#117 + def correct_block_pass(corrector, node); end + + # Returns range of last argument including comma and whitespace. + # + # @return [Parser::Source::Range] + # + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#132 + def last_arg_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#138 + def unsorted_dir_loop?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#142 + def unsorted_dir_pass?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#63 +RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String) + +# Checks for non-local exits from iterators without a return +# value. It registers an offense under these conditions: +# +# * No value is returned, +# * the block is preceded by a method chain, +# * the block has arguments, +# * the method which receives the block is not `define_method` +# or `define_singleton_method`, +# * the return is not contained in an inner scope, e.g. a lambda or a +# method definition. +# +# @example +# +# class ItemApi +# rescue_from ValidationError do |e| # non-iteration block with arg +# return { message: 'validation error' } unless e.errors # allowed +# error_array = e.errors.map do |error| # block with method chain +# return if error.suppress? # warned +# return "#{error.param}: invalid" unless error.message # allowed +# "#{error.param}: #{error.message}" +# end +# { message: 'validation error', errors: error_array } +# end +# +# def update_items +# transaction do # block without arguments +# return unless update_necessary? # allowed +# find_each do |item| # block without method chain +# return if item.stock == 0 # false-negative... +# item.update!(foobar: true) +# end +# end +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#41 +class RuboCop::Cop::Lint::NonLocalExitFromIterator < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#77 + def chained_send?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#80 + def define_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#46 + def on_return(return_node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#72 + def return_value?(return_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#68 + def scoped_node?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#42 +RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) + +# Warns the usage of unsafe number conversions. Unsafe +# number conversion can cause unexpected error if auto type conversion +# fails. Cop prefer parsing with number class instead. +# +# Conversion with `Integer`, `Float`, etc. will raise an `ArgumentError` +# if given input that is not numeric (eg. an empty string), whereas +# `to_i`, etc. will try to convert regardless of input (`''.to_i => 0`). +# As such, this cop is disabled by default because it's not necessarily +# always correct to raise if a value is not numeric. +# +# NOTE: Some values cannot be converted properly using one of the `Kernel` +# method (for instance, `Time` and `DateTime` values are allowed by this +# cop by default). Similarly, Rails' duration methods do not work well +# with `Integer()` and can be allowed with `AllowedMethods`. By default, +# there are no methods to allowed. +# +# @example +# +# # bad +# +# '10'.to_i +# '10.2'.to_f +# '10'.to_c +# '1/3'.to_r +# ['1', '2', '3'].map(&:to_i) +# foo.try(:to_f) +# bar.send(:to_c) +# +# # good +# +# Integer('10', 10) +# Float('10.2') +# Complex('10') +# Rational('1/3') +# ['1', '2', '3'].map { |i| Integer(i, 10) } +# foo.try { |i| Float(i) } +# bar.send { |i| Complex(i) } +# @example AllowedMethods: [] (default) +# +# # bad +# 10.minutes.to_i +# @example AllowedMethods: [minutes] +# +# # good +# 10.minutes.to_i +# @example AllowedPatterns: [] (default) +# +# # bad +# 10.minutes.to_i +# @example AllowedPatterns: ['min*'] +# +# # good +# 10.minutes.to_i +# @example IgnoredClasses: [Time, DateTime] (default) +# +# # good +# Time.now.to_datetime.to_i +# +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#73 +class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#103 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#93 + def to_method(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#98 + def to_method_symbol(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#160 + def allow_receiver?(receiver); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#172 + def allowed_method_name?(name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#182 + def conversion_method?(method_name); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#146 + def correct_method(node, receiver); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#150 + def correct_sym_method(to_method); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#129 + def handle_as_symbol(node); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#110 + def handle_conversion_method(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#190 + def ignored_class?(name); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#186 + def ignored_classes; end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155 + def remove_parentheses(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#176 + def top_receiver(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#89 +RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#79 +RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHOD_CLASS_MAPPING = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#90 +RuboCop::Cop::Lint::NumberConversion::METHODS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#85 +RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of numbered parameter assignment. +# It emulates the following warning in Ruby 2.7: +# +# $ ruby -ve '_1 = :value' +# ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19] +# -e:1: warning: `_1' is reserved for numbered parameter; consider another name +# +# Assigning to a numbered parameter (from `_1` to `_9`) causes an error in Ruby 3.0. +# +# $ ruby -ve '_1 = :value' +# ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19] +# -e:1: _1 is reserved for numbered parameter +# +# NOTE: The parametered parameters are from `_1` to `_9`. This cop checks `_0`, and over `_10` +# as well to prevent confusion. +# +# @example +# +# # bad +# _1 = :value +# +# # good +# non_numbered_parameter_name = :value +# +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#30 +class RuboCop::Cop::Lint::NumberedParameterAssignment < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#35 + def on_lvasgn(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#32 +RuboCop::Cop::Lint::NumberedParameterAssignment::LVAR_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#33 +RuboCop::Cop::Lint::NumberedParameterAssignment::NUMBERED_PARAMETER_RANGE = T.let(T.unsafe(nil), Range) + +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#31 +RuboCop::Cop::Lint::NumberedParameterAssignment::NUM_PARAM_MSG = T.let(T.unsafe(nil), String) + +# Checks for unintended or-assignment to a constant. +# +# Constants should always be assigned in the same location. And its value +# should always be the same. If constants are assigned in multiple +# locations, the result may vary depending on the order of `require`. +# +# @example +# +# # bad +# CONST ||= 1 +# +# # good +# CONST = 1 +# +# source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#24 +class RuboCop::Cop::Lint::OrAssignmentToConstant < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#29 + def on_or_asgn(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#27 +RuboCop::Cop::Lint::OrAssignmentToConstant::MSG = T.let(T.unsafe(nil), String) + +# Checks the proper ordering of magic comments and whether +# a magic comment is not placed before a shebang. +# +# @example +# # bad +# +# # frozen_string_literal: true +# # encoding: ascii +# p [''.frozen?, ''.encoding] #=> [true, #<Encoding:UTF-8>] +# +# # good +# +# # encoding: ascii +# # frozen_string_literal: true +# p [''.frozen?, ''.encoding] #=> [true, #<Encoding:US-ASCII>] +# +# # good +# +# #!/usr/bin/env ruby +# # encoding: ascii +# # frozen_string_literal: true +# p [''.frozen?, ''.encoding] #=> [true, #<Encoding:US-ASCII>] +# +# source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#32 +class RuboCop::Cop::Lint::OrderedMagicComments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#38 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#55 + def autocorrect(corrector, encoding_line, frozen_string_literal_line); end + + # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#63 + def magic_comment_lines; end +end + +# source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#36 +RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) + +# Looks for references of Regexp captures that are out of range +# and thus always returns nil. +# +# @example +# +# /(foo)bar/ =~ 'foobar' +# +# # bad - always returns nil +# +# puts $2 # => nil +# +# # good +# +# puts $1 # => foo +# +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#38 +class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55 + def after_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#71 + def on_in_pattern(node); end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#51 + def on_match_with_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#47 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#77 + def on_nth_ref(node); end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#65 + def on_when(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#102 + def check_regexp(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#122 + def nth_ref_receiver?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#113 + def regexp_first_argument?(send_node); end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#93 + def regexp_patterns(in_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#118 + def regexp_receiver?(send_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#39 +RuboCop::Cop::Lint::OutOfRangeRegexpRef::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#42 +RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_ARGUMENT_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#44 +RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_CAPTURE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#41 +RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_RECEIVER_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#45 +RuboCop::Cop::Lint::OutOfRangeRegexpRef::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Checks for space between the name of a called method and a left +# parenthesis. +# +# @example +# +# # bad +# do_something (foo) +# +# # good +# do_something(foo) +# do_something (2 + 3) * 4 +# do_something (foo * bar).baz +# +# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#18 +class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#61 + def chained_calls?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#49 + def first_argument_block_type?(first_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#57 + def first_argument_starts_with_left_parenthesis?(node); end + + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#86 + def space_range(expr, space_length); end + + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#70 + def spaces_before_left_parenthesis(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#66 + def ternary_expression?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#39 + def valid_context?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#53 + def valid_first_argument?(first_arg); end +end + +# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#22 +RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), String) + +# Checks for quotes and commas in %w, e.g. `%w('foo', "bar")` +# +# It is more likely that the additional characters are unintended (for +# example, mistranslating an array of literals to percent string notation) +# rather than meant to be part of the resulting strings. +# +# @example +# +# # bad +# +# %w('foo', "bar") +# @example +# +# # good +# +# %w(foo bar) +# +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#33 +class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#44 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#48 + def on_percent_literal(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#65 + def contains_quotes_or_commas?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#38 +RuboCop::Cop::Lint::PercentStringArray::LEADING_QUOTE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#41 +RuboCop::Cop::Lint::PercentStringArray::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#37 +RuboCop::Cop::Lint::PercentStringArray::QUOTES_AND_COMMAS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#39 +RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Regexp) + +# Checks for colons and commas in %i, e.g. `%i(:foo, :bar)` +# +# It is more likely that the additional characters are unintended (for +# example, mistranslating an array of literals to percent string notation) +# rather than meant to be part of the resulting symbols. +# +# @example +# +# # bad +# +# %i(:foo, :bar) +# @example +# +# # good +# +# %i(foo bar) +# +# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#23 +class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#30 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#34 + def on_percent_literal(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#42 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#52 + def contains_colons_or_commas?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#62 + def non_alphanumeric_literal?(literal); end +end + +# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#27 +RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) + +# Checks for `raise` or `fail` statements which are +# raising `Exception` class. +# +# You can specify a module name that will be an implicit namespace +# using `AllowedImplicitNamespaces` option. The cop cause a false positive +# for namespaced `Exception` when a namespace is omitted. This option can +# prevent the false positive by specifying a namespace to be omitted for +# `Exception`. Alternatively, make `Exception` a fully qualified class +# name with an explicit namespace. +# +# @example +# # bad +# raise Exception, 'Error message here' +# +# # good +# raise StandardError, 'Error message here' +# @example AllowedImplicitNamespaces: ['Gem'] +# # good +# module Gem +# def self.foo +# raise Exception # This exception means `Gem::Exception`. +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#34 +class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#41 + def exception?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#46 + def exception_new_with_message?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#51 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#85 + def allow_implicit_namespaces; end + + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#57 + def check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#73 + def implicit_namespace?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#37 +RuboCop::Cop::Lint::RaiseException::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#38 +RuboCop::Cop::Lint::RaiseException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for `rand(1)` calls. +# Such calls always return `0`. +# +# @example +# +# # bad +# +# rand 1 +# Kernel.rand(-1) +# rand 1.0 +# rand(-1.0) +# @example +# +# # good +# +# 0 # just use 0 instead +# +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#23 +class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#32 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#28 + def rand_one?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#40 + def message(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#24 +RuboCop::Cop::Lint::RandOne::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#25 +RuboCop::Cop::Lint::RandOne::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# removed without causing any offenses to be reported. It's implemented +# as a cop in that it inherits from the Cop base class and calls +# add_offense. The unusual part of its implementation is that it doesn't +# have any on_* methods or an investigate method. This means that it +# doesn't take part in the investigation phase when the other cops do +# their work. Instead, it waits until it's called in a later stage of the +# execution. The reason it can't be implemented as a normal cop is that +# it depends on the results of all other cops to do its work. +# +# @example +# # bad +# # rubocop:disable Layout/LineLength +# x += 1 +# # rubocop:enable Layout/LineLength +# +# # good +# x += 1 +# +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#28 +class RuboCop::Cop::Lint::RedundantCopDisableDirective < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # @return [RedundantCopDisableDirective] a new instance of RedundantCopDisableDirective + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#37 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil), offenses = T.unsafe(nil)); end + + # Returns the value of attribute offenses_to_check. + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 + def offenses_to_check; end + + # Sets the attribute offenses_to_check + # + # @param value the value to set the attribute offenses_to_check to. + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 + def offenses_to_check=(_arg0); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#42 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#323 + def add_department_marker(department); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#229 + def add_offense_for_entire_comment(comment, cops); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#244 + def add_offense_for_some_cops(comment, cops); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#219 + def add_offenses(redundant_cops); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#306 + def all_cop_names; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#190 + def all_disabled?(comment); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#69 + def comment_range_with_surrounding_space(directive_comment_range, line_comment_range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#57 + def cop_disabled_line_ranges; end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#264 + def cop_range(comment, cop); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#210 + def department_disabled?(cop, comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#315 + def department_marker?(department); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#293 + def describe(cop); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#215 + def directive_count(comment); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#92 + def directive_range_in_list(range, ranges); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#61 + def disabled_ranges; end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#132 + def each_already_disabled(cop, line_ranges); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#113 + def each_line_range(cop, line_ranges); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#106 + def each_redundant_disable(&block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#310 + def ends_its_line?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#202 + def expected_final_disable?(cop, line_range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#166 + def find_redundant_all(range, next_range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#161 + def find_redundant_cop(cop, range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#176 + def find_redundant_department(cop, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#182 + def followed_ranges?(range, next_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#194 + def ignore_offense?(line_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#258 + def leave_free_comment?(comment, range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#271 + def matching_range(haystack, needle); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#302 + def message(cop_names); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#65 + def previous_line_blank?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#186 + def range_with_offense?(range, offenses = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#319 + def remove_department_marker(department); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#279 + def trailing_range?(ranges, range); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#32 +RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#33 +RuboCop::Cop::Lint::RedundantCopDisableDirective::DEPARTMENT_MARKER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#287 +RuboCop::Cop::Lint::RedundantCopDisableDirective::SIMILAR_COP_NAMES_CACHE = T.let(T.unsafe(nil), Hash) + +# removed. +# +# that cop checks whether any cop was actually enabled. +# +# @example +# # bad +# foo = 1 +# # rubocop:enable Layout/LineLength +# +# # good +# foo = 1 +# @example +# # bad +# # rubocop:disable Style/StringLiterals +# foo = "1" +# # rubocop:enable Style/StringLiterals +# baz +# # rubocop:enable all +# +# # good +# # rubocop:disable Style/StringLiterals +# foo = "1" +# # rubocop:enable all +# baz +# +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#37 +class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#44 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#120 + def all_or_name(name); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#76 + def comment_start(comment); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#80 + def cop_name_indention(comment, name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#124 + def department?(directive, name); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#71 + def range_of_offense(comment, name); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#95 + def range_to_remove(begin_pos, end_pos, comment); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#84 + def range_with_comma(comment, name); end + + # If the list of cops is comma-separated, but without a empty space after the comma, + # we should **not** remove the prepending empty space, thus begin_pos += 1 + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#114 + def range_with_comma_after(comment, start, begin_pos, end_pos); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#108 + def range_with_comma_before(start, begin_pos, end_pos); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#53 + def register_offense(comment, cop_names); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#42 +RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), String) + +# Sort globbed results by default in Ruby 3.0. +# This cop checks for redundant `sort` method to `Dir.glob` and `Dir[]`. +# +# @example +# +# # bad +# Dir.glob('./lib/**/*.rb').sort.each do |file| +# end +# +# Dir['./lib/**/*.rb'].sort.each do |file| +# end +# +# # good +# Dir.glob('./lib/**/*.rb').each do |file| +# end +# +# Dir['./lib/**/*.rb'].each do |file| +# end +# +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#30 +class RuboCop::Cop::Lint::RedundantDirGlobSort < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#40 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#56 + def multiple_argument?(glob_method); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#38 +RuboCop::Cop::Lint::RedundantDirGlobSort::GLOB_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#36 +RuboCop::Cop::Lint::RedundantDirGlobSort::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#37 +RuboCop::Cop::Lint::RedundantDirGlobSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant quantifiers inside Regexp literals. +# +# It is always allowed when interpolation is used in a regexp literal, +# because it's unknown what kind of string will be expanded as a result: +# +# [source,ruby] +# ---- +# /(?:a*#{interpolation})?/x +# ---- +# +# @example +# # bad +# /(?:x+)+/ +# +# # good +# /(?:x)+/ +# +# # good +# /(?:x+)/ +# +# # bad +# /(?:x+)?/ +# +# # good +# /(?:x)*/ +# +# # good +# /(?:x*)/ +# +# source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#34 +class RuboCop::Cop::Lint::RedundantRegexpQuantifiers < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#42 + def on_regexp(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#83 + def character_set?(expr); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#61 + def each_redundantly_quantified_pair(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#87 + def mergeable_quantifier(expr); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#103 + def merged_quantifier(exp1, exp2); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#119 + def message(group, child, replacement); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#115 + def quantifier_range(group, child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#75 + def redundant_group?(expr); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#79 + def redundantly_quantifiable?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#38 +RuboCop::Cop::Lint::RedundantRegexpQuantifiers::MSG_REDUNDANT_QUANTIFIER = T.let(T.unsafe(nil), String) + +# Checks for unnecessary `require` statement. +# +# The following features are unnecessary `require` statement because +# they are already loaded. e.g. Ruby 2.2: +# +# ruby -ve 'p $LOADED_FEATURES.reject { |feature| %r|/| =~ feature }' +# ruby 2.2.8p477 (2017-09-14 revision 59906) [x86_64-darwin13] +# ["enumerator.so", "rational.so", "complex.so", "thread.rb"] +# +# Below are the features that each `TargetRubyVersion` targets. +# +# * 2.0+ ... `enumerator` +# * 2.1+ ... `thread` +# * 2.2+ ... Add `rational` and `complex` above +# * 2.5+ ... Add `pp` above +# * 2.7+ ... Add `ruby2_keywords` above +# * 3.1+ ... Add `fiber` above +# * 3.2+ ... `set` +# +# This cop target those features. +# +# @example +# # bad +# require 'unloaded_feature' +# require 'thread' +# +# # good +# require 'unloaded_feature' +# +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#38 +class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#61 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#57 + def pp_const?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#51 + def redundant_require_statement?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#91 + def need_to_require_pp?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#80 + def redundant_feature?(feature_name); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#42 +RuboCop::Cop::Lint::RedundantRequireStatement::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#45 +RuboCop::Cop::Lint::RedundantRequireStatement::PRETTY_PRINT_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#43 +RuboCop::Cop::Lint::RedundantRequireStatement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#44 +RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T.unsafe(nil), Array) + +# Checks for redundant safe navigation calls. +# Use cases where a constant, named in camel case for classes and modules is `nil` are rare, +# and an offense is not detected when the receiver is a snake case constant. +# +# For all receivers, the `instance_of?`, `kind_of?`, `is_a?`, `eql?`, `respond_to?`, +# and `equal?` methods are checked by default. +# These are customizable with `AllowedMethods` option. +# +# The `AllowedMethods` option specifies nil-safe methods, +# in other words, it is a method that is allowed to skip safe navigation. +# Note that the `AllowedMethod` option is not an option that specifies methods +# for which to suppress (allow) this cop's check. +# +# In the example below, the safe navigation operator (`&.`) is unnecessary +# because `NilClass` has methods like `respond_to?` and `is_a?`. +# +# @example +# # bad +# CamelCaseConst&.do_something +# +# # bad +# do_something if attrs&.respond_to?(:[]) +# +# # good +# do_something if attrs.respond_to?(:[]) +# +# # bad +# while node&.is_a?(BeginNode) +# node = node.parent +# end +# +# # good +# CamelCaseConst.do_something +# +# # good +# while node.is_a?(BeginNode) +# node = node.parent +# end +# +# # good - without `&.` this will always return `true` +# foo&.respond_to?(:to_a) +# @example AllowedMethods: [nil_safe_method] +# # bad +# do_something if attrs&.nil_safe_method(:[]) +# +# # good +# do_something if attrs.nil_safe_method(:[]) +# do_something if attrs&.not_nil_safe_method(:[]) +# +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#61 +class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#78 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#73 + def respond_to_nil_specific_method?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#91 + def check?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#101 + def condition?(parent, node); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#66 +RuboCop::Cop::Lint::RedundantSafeNavigation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#68 +RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#70 +RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) + +# Checks for unneeded usages of splat expansion +# +# @example +# +# # bad +# a = *[1, 2, 3] +# a = *'a' +# a = *1 +# ['a', 'b', *%w(c d e), 'f', 'g'] +# +# # good +# c = [1, 2, 3] +# a = *c +# a, b = *c +# a, *b = *c +# a = *1..10 +# a = ['a'] +# ['a', 'b', 'c', 'd', 'e', 'f', 'g'] +# +# # bad +# do_something(*['foo', 'bar', 'baz']) +# +# # good +# do_something('foo', 'bar', 'baz') +# +# # bad +# begin +# foo +# rescue *[StandardError, ApplicationError] +# bar +# end +# +# # good +# begin +# foo +# rescue StandardError, ApplicationError +# bar +# end +# +# # bad +# case foo +# when *[1, 2, 3] +# bar +# else +# baz +# end +# +# # good +# case foo +# when 1, 2, 3 +# bar +# else +# baz +# end +# @example AllowPercentLiteralArrayArgument: true (default) +# +# # good +# do_something(*%w[foo bar baz]) +# @example AllowPercentLiteralArrayArgument: false +# +# # bad +# do_something(*%w[foo bar baz]) +# +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#71 +class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#83 + def array_new?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#91 + def literal_expansion(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#95 + def on_splat(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#203 + def allow_percent_literal_array_argument?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#131 + def array_new_inside_array_literal?(array_new_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#155 + def array_splat?(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#112 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#159 + def method_argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#163 + def part_of_an_array?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#170 + def redundant_brackets?(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#118 + def redundant_splat_expansion(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#178 + def remove_brackets(array); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#138 + def replacement_range_and_content(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#196 + def use_percent_literal_array_argument?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#75 +RuboCop::Cop::Lint::RedundantSplatExpansion::ARRAY_PARAM_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#80 +RuboCop::Cop::Lint::RedundantSplatExpansion::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#74 +RuboCop::Cop::Lint::RedundantSplatExpansion::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#79 +RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_I = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#77 +RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_W = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#78 +RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_I = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#76 +RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), String) + +# Checks for string conversion in string interpolation, `print`, `puts`, and `warn` arguments, +# which is redundant. +# +# @example +# +# # bad +# +# "result is #{something.to_s}" +# print something.to_s +# puts something.to_s +# warn something.to_s +# @example +# +# # good +# +# "result is #{something}" +# print something +# puts something +# warn something +# +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#27 +class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Interpolation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#38 + def on_interpolation(begin_node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#46 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#36 + def to_s_without_args?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#58 + def register_offense(node, context); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#31 +RuboCop::Cop::Lint::RedundantStringCoercion::MSG_DEFAULT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#32 +RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#33 +RuboCop::Cop::Lint::RedundantStringCoercion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant `with_index`. +# +# @example +# # bad +# ary.each_with_index do |v| +# v +# end +# +# # good +# ary.each do |v| +# v +# end +# +# # bad +# ary.each.with_index do |v| +# v +# end +# +# # good +# ary.each do |v| +# v +# end +# +# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#29 +class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#56 + def redundant_with_index?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#66 + def message(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#74 + def with_index_range(send); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#33 +RuboCop::Cop::Lint::RedundantWithIndex::MSG_EACH_WITH_INDEX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#34 +RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) + +# Checks for redundant `with_object`. +# +# @example +# # bad +# ary.each_with_object([]) do |v| +# v +# end +# +# # good +# ary.each do |v| +# v +# end +# +# # bad +# ary.each.with_object([]) do |v| +# v +# end +# +# # good +# ary.each do |v| +# v +# end +# +# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#29 +class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#56 + def redundant_with_object?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#65 + def message(node); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#73 + def with_object_range(send); end +end + +# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#33 +RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#34 +RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) + +# Checks if `include` or `prepend` is called in `refine` block. +# These methods are deprecated and should be replaced with `Refinement#import_methods`. +# +# It emulates deprecation warnings in Ruby 3.1. +# +# @example +# +# # bad +# refine Foo do +# include Bar +# end +# +# # bad +# refine Foo do +# prepend Bar +# end +# +# # good +# refine Foo do +# import_methods Bar +# end +# +# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#34 +class RuboCop::Cop::Lint::RefinementImportMethods < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#42 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#37 +RuboCop::Cop::Lint::RefinementImportMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#38 +RuboCop::Cop::Lint::RefinementImportMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for regexp literals used as `match-current-line`. +# If a regexp literal is in condition, the regexp matches `$_` implicitly. +# +# @example +# # bad +# if /foo/ +# do_something +# end +# +# # good +# if /foo/ =~ $_ +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#19 +class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#26 + def on_match_current_line(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#23 +RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) + +# Checks for expressions where there is a call to a predicate +# method with at least one argument, where no parentheses are used around +# the parameter list, and a boolean operator, && or ||, is used in the +# last argument. +# +# The idea behind warning for these constructs is that the user might +# be under the impression that the return value from the method call is +# an operand of &&/||. +# +# @example +# +# # bad +# +# if day.is? :tuesday && month == :jan +# # ... +# end +# @example +# +# # good +# +# if day.is?(:tuesday) && month == :jan +# # ... +# end +# +# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#30 +class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#35 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#35 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#58 + def check_predicate(predicate, node); end + + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#48 + def check_ternary(ternary, node); end +end + +# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#33 +RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) + +# Checks that a range literal is enclosed in parentheses when the end of the range is +# at a line break. +# +# NOTE: The following is maybe intended for `(42..)`. But, compatible is `42..do_something`. +# So, this cop does not provide autocorrection because it is left to user. +# +# [source,ruby] +# ---- +# case condition +# when 42.. +# do_something +# end +# ---- +# +# @example +# +# # bad - Represents `(1..42)`, not endless range. +# 1.. +# 42 +# +# # good - It's incompatible, but your intentions when using endless range may be: +# (1..) +# 42 +# +# # good +# 1..42 +# +# # good +# (1..42) +# +# # good +# (1.. +# 42) +# +# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#40 +class RuboCop::Cop::Lint::RequireRangeParentheses < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 + def on_erange(node); end + + # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 + def on_irange(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#41 +RuboCop::Cop::Lint::RequireRangeParentheses::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses a file requiring itself with `require_relative`. +# +# @example +# +# # bad +# +# # foo.rb +# require_relative 'foo' +# require_relative 'bar' +# +# # good +# +# # foo.rb +# require_relative 'bar' +# +# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#21 +class RuboCop::Cop::Lint::RequireRelativeSelfPath < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#28 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#44 + def remove_ext(file_path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#40 + def same_file?(file_path, required_feature); end +end + +# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#25 +RuboCop::Cop::Lint::RequireRelativeSelfPath::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#26 +RuboCop::Cop::Lint::RequireRelativeSelfPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for `rescue` blocks targeting the Exception class. +# +# @example +# +# # bad +# +# begin +# do_something +# rescue Exception +# handle_exception +# end +# @example +# +# # good +# +# begin +# do_something +# rescue ArgumentError +# handle_exception +# end +# +# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#27 +class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#30 + def on_resbody(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#39 + def targets_exception?(rescue_arg_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#28 +RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) + +# Check for arguments to `rescue` that will result in a `TypeError` +# if an exception is raised. +# +# @example +# # bad +# begin +# bar +# rescue nil +# baz +# end +# +# # bad +# def foo +# bar +# rescue 1, 'a', "#{b}", 0.0, [], {} +# baz +# end +# +# # good +# begin +# bar +# rescue +# baz +# end +# +# # good +# def foo +# bar +# rescue NameError +# baz +# end +# +# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#37 +class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#60 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#44 + def on_resbody(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#71 + def correction(*exceptions); end + + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#82 + def invalid_exceptions(exceptions); end + + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#78 + def valid_exceptions(exceptions); end +end + +# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#42 +RuboCop::Cop::Lint::RescueType::INVALID_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#40 +RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of a return with a value in a context +# where the value will be ignored. (initialize and setter methods) +# +# @example +# +# # bad +# def initialize +# foo +# return :qux if bar? +# baz +# end +# +# def foo=(bar) +# return 42 +# end +# @example +# +# # good +# def initialize +# foo +# return if bar? +# baz +# end +# +# def foo=(bar) +# return +# end +# +# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#34 +class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#37 + def on_return(return_node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#53 + def non_void_context(return_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#35 +RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) + +# The safe navigation operator returns nil if the receiver is +# nil. If you chain an ordinary method call after a safe +# navigation operator, it raises NoMethodError. We should use a +# safe navigation operator after a safe navigation operator. +# This cop checks for the problem outlined above. +# +# @example +# +# # bad +# +# x&.foo.bar +# x&.foo + bar +# x&.foo[bar] +# @example +# +# # good +# +# x&.foo&.bar +# x&.foo || bar +# +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#26 +class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::NilMethods + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#37 + def bad_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#44 + def on_send(node); end + + private + + # @param offense_range [Parser::Source::Range] + # @param send_node [RuboCop::AST::SendNode] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#63 + def add_safe_navigation_operator(offense_range:, send_node:); end + + # @param corrector [RuboCop::Cop::Corrector] + # @param offense_range [Parser::Source::Range] + # @param send_node [RuboCop::AST::SendNode] + # + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#82 + def autocorrect(corrector, offense_range:, send_node:); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#91 + def brackets?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#95 + def require_parentheses?(send_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#33 +RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#34 +RuboCop::Cop::Lint::SafeNavigationChain::PLUS_MINUS_METHODS = T.let(T.unsafe(nil), Array) + +# Check to make sure that if safe navigation is used for a method +# call in an `&&` or `||` condition that safe navigation is used for all +# method calls on that same object. +# +# @example +# # bad +# foo&.bar && foo.baz +# +# # bad +# foo.bar || foo&.baz +# +# # bad +# foo&.bar && (foobar.baz || foo.baz) +# +# # good +# foo.bar && foo.baz +# +# # good +# foo&.bar || foo&.baz +# +# # good +# foo&.bar && (foobar.baz || foo&.baz) +# +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#29 +class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::NilMethods + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#42 + def check(node); end + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#36 + def on_csend(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#61 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#67 + def location(node, unsafe_method_call); end + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#71 + def top_conditional_ancestor(node); end + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#82 + def unsafe_method_calls(method_calls, safe_nav_receiver); end +end + +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#34 +RuboCop::Cop::Lint::SafeNavigationConsistency::MSG = T.let(T.unsafe(nil), String) + +# Checks to make sure safe navigation isn't used with `empty?` in +# a conditional. +# +# While the safe navigation operator is generally a good idea, when +# checking `foo&.empty?` in a conditional, `foo` being `nil` will actually +# do the opposite of what the author intends. +# +# @example +# # bad +# return if foo&.empty? +# return unless foo&.empty? +# +# # good +# return if foo && foo.empty? +# return unless foo && foo.empty? +# +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#22 +class RuboCop::Cop::Lint::SafeNavigationWithEmpty < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#32 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#28 + def safe_navigation_empty_in_conditional?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#25 +RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String) + +# Checks if a file which has a shebang line as +# its first line is granted execute permission. +# +# @example +# # bad +# +# # A file which has a shebang line as its first line is not +# # granted execute permission. +# +# #!/usr/bin/env ruby +# puts 'hello, world' +# +# # good +# +# # A file which has a shebang line as its first line is +# # granted execute permission. +# +# #!/usr/bin/env ruby +# puts 'hello, world' +# +# # good +# +# # A file which has not a shebang line as its first line is not +# # granted execute permission. +# +# puts 'hello, world' +# +# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#33 +class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#39 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#55 + def autocorrect(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#59 + def executable?(processed_source); end + + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#66 + def format_message_from(processed_source); end +end + +# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#36 +RuboCop::Cop::Lint::ScriptPermission::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#37 +RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) + +# Checks for self-assignments. +# +# @example +# # bad +# foo = foo +# foo, bar = foo, bar +# Foo = Foo +# +# # good +# foo = bar +# foo, bar = bar, foo +# Foo = Bar +# +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#19 +class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53 + def on_and_asgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#41 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#49 + def on_masgn(node); end + + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53 + def on_or_asgn(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#61 + def multiple_self_assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#71 + def rhs_matches_lhs?(rhs, lhs); end +end + +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#22 +RuboCop::Cop::Lint::SelfAssignment::ASSIGNMENT_TYPE_TO_RHS_TYPE = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#20 +RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) + +# Checks for `send`, `public_send`, and `__send__` methods +# when using mix-in. +# +# `include` and `prepend` methods were private methods until Ruby 2.0, +# they were mixed-in via `send` method. This cop uses Ruby 2.1 or +# higher style that can be called by public methods. +# And `extend` method that was originally a public method is also targeted +# for style unification. +# +# @example +# # bad +# Foo.send(:include, Bar) +# Foo.send(:prepend, Bar) +# Foo.send(:extend, Bar) +# +# # bad +# Foo.public_send(:include, Bar) +# Foo.public_send(:prepend, Bar) +# Foo.public_send(:extend, Bar) +# +# # bad +# Foo.__send__(:include, Bar) +# Foo.__send__(:prepend, Bar) +# Foo.__send__(:extend, Bar) +# +# # good +# Foo.include Bar +# Foo.prepend Bar +# Foo.extend Bar +# +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#36 +class RuboCop::Cop::Lint::SendWithMixinArgument < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#53 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#46 + def send_with_mixin_argument?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#67 + def bad_location(node); end + + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#73 + def message(method, module_name, bad_method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#77 + def mixin_method?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#41 +RuboCop::Cop::Lint::SendWithMixinArgument::MIXIN_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#40 +RuboCop::Cop::Lint::SendWithMixinArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#43 +RuboCop::Cop::Lint::SendWithMixinArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#42 +RuboCop::Cop::Lint::SendWithMixinArgument::SEND_METHODS = T.let(T.unsafe(nil), Array) + +# Checks for shadowed arguments. +# +# This cop has `IgnoreImplicitReferences` configuration option. +# It means argument shadowing is used in order to pass parameters +# to zero arity `super` when `IgnoreImplicitReferences` is `true`. +# +# @example +# +# # bad +# do_something do |foo| +# foo = 42 +# puts foo +# end +# +# def do_something(foo) +# foo = 42 +# puts foo +# end +# +# # good +# do_something do |foo| +# foo = foo + 42 +# puts foo +# end +# +# def do_something(foo) +# foo = foo + 42 +# puts foo +# end +# +# def do_something(foo) +# puts foo +# end +# @example IgnoreImplicitReferences: false (default) +# +# # bad +# def do_something(foo) +# foo = 42 +# super +# end +# +# def do_something(foo) +# foo = super +# bar +# end +# @example IgnoreImplicitReferences: true +# +# # good +# def do_something(foo) +# foo = 42 +# super +# end +# +# def do_something(foo) +# foo = super +# bar +# end +# +# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#66 +class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#76 + def after_leaving_scope(scope, _variable_table); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#70 + def uses_var?(param0, param1); end + + private + + # Get argument references without assignments' references + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#160 + def argument_references(argument); end + + # Find the first argument assignment, which doesn't reference the + # argument at the rhs. If the assignment occurs inside a branch or + # block, it is impossible to tell whether it's executed, so precise + # shadowing location is not known. + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#120 + def assignment_without_argument_usage(argument); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#82 + def check_argument(argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#170 + def ignore_implicit_references?; end + + # Check whether the given node is nested into block or conditional. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#151 + def node_within_block_or_conditional?(node, stop_search_node); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#143 + def reference_pos(node); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#95 + def shadowing_assignment(argument); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#72 + def joining_forces; end + end +end + +# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#67 +RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) + +# Checks for a rescued exception that get shadowed by a +# less specific exception being rescued before a more specific +# exception is rescued. +# +# An exception is considered shadowed if it is rescued after its +# ancestor is, or if it and its ancestor are both rescued in the +# same `rescue` statement. In both cases, the more specific rescue is +# unnecessary because it is covered by rescuing the less specific +# exception. (ie. `rescue Exception, StandardError` has the same behavior +# whether `StandardError` is included or not, because all ``StandardError``s +# are rescued by `rescue Exception`). +# +# @example +# +# # bad +# +# begin +# something +# rescue Exception +# handle_exception +# rescue StandardError +# handle_standard_error +# end +# +# # bad +# begin +# something +# rescue Exception, StandardError +# handle_error +# end +# +# # good +# +# begin +# something +# rescue StandardError +# handle_standard_error +# rescue Exception +# handle_exception +# end +# +# # good, however depending on runtime environment. +# # +# # This is a special case for system call errors. +# # System dependent error code depends on runtime environment. +# # For example, whether `Errno::EAGAIN` and `Errno::EWOULDBLOCK` are +# # the same error code or different error code depends on environment. +# # This good case is for `Errno::EAGAIN` and `Errno::EWOULDBLOCK` with +# # the same error code. +# begin +# something +# rescue Errno::EAGAIN, Errno::EWOULDBLOCK +# handle_standard_error +# end +# +# source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#61 +class RuboCop::Cop::Lint::ShadowedException < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RescueNode + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#67 + def on_rescue(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#101 + def compare_exceptions(exception, other_exception); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#94 + def contains_multiple_levels_of_exceptions?(group); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#119 + def evaluate_exceptions(group); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#152 + def find_shadowing_rescue(rescues); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#84 + def offense_range(rescues); end + + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#90 + def rescued_groups_for(rescues); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#137 + def sorted?(rescued_groups); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#115 + def system_call_err?(error); end +end + +# source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#65 +RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of local variable names from an outer scope +# in block arguments or block-local variables. This mirrors the warning +# given by `ruby -cw` prior to Ruby 2.6: +# "shadowing outer local variable - foo". +# +# NOTE: Shadowing of variables in block passed to `Ractor.new` is allowed +# because `Ractor` should not access outer variables. +# eg. following style is encouraged: +# +# [source,ruby] +# ---- +# worker_id, pipe = env +# Ractor.new(worker_id, pipe) do |worker_id, pipe| +# end +# ---- +# +# @example +# +# # bad +# +# def some_method +# foo = 1 +# +# 2.times do |foo| # shadowing outer `foo` +# do_something(foo) +# end +# end +# @example +# +# # good +# +# def some_method +# foo = 1 +# +# 2.times do |bar| +# do_something(bar) +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 +class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#57 + def before_declaring_variable(variable, variable_table); end + + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#93 + def find_conditional_node_from_ascendant(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#100 + def node_or_its_ascendant_conditional?(node); end + + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 + def ractor_block?(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#69 + def same_conditions_node_different_branch?(variable, outer_local_variable); end + + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#83 + def variable_node(variable); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 + def joining_forces; end + end +end + +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#46 +RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String) + +# Checks unexpected overrides of the `Struct` built-in methods +# via `Struct.new`. +# +# @example +# # bad +# Bad = Struct.new(:members, :clone, :count) +# b = Bad.new([], true, 1) +# b.members #=> [] (overriding `Struct#members`) +# b.clone #=> true (overriding `Object#clone`) +# b.count #=> 1 (overriding `Enumerable#count`) +# +# # good +# Good = Struct.new(:id, :name) +# g = Good.new(1, "foo") +# g.members #=> [:id, :name] +# g.clone #=> #<struct Good id=1, name="foo"> +# g.count #=> 2 +# +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#24 +class RuboCop::Cop::Lint::StructNewOverride < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#38 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#33 + def struct_new(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#25 +RuboCop::Cop::Lint::StructNewOverride::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#27 +RuboCop::Cop::Lint::StructNewOverride::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#30 +RuboCop::Cop::Lint::StructNewOverride::STRUCT_MEMBER_NAME_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#29 +RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil), Array) + +# Checks for `rescue` blocks with no body. +# +# @example +# +# # bad +# def some_method +# do_something +# rescue +# end +# +# # bad +# begin +# do_something +# rescue +# end +# +# # good +# def some_method +# do_something +# rescue +# handle_exception +# end +# +# # good +# begin +# do_something +# rescue +# handle_exception +# end +# @example AllowComments: true (default) +# +# # good +# def some_method +# do_something +# rescue +# # do nothing +# end +# +# # good +# begin +# do_something +# rescue +# # do nothing +# end +# @example AllowComments: false +# +# # bad +# def some_method +# do_something +# rescue +# # do nothing +# end +# +# # bad +# begin +# do_something +# rescue +# # do nothing +# end +# @example AllowNil: true (default) +# +# # good +# def some_method +# do_something +# rescue +# nil +# end +# +# # good +# begin +# do_something +# rescue +# # do nothing +# end +# +# # good +# do_something rescue nil +# @example AllowNil: false +# +# # bad +# def some_method +# do_something +# rescue +# nil +# end +# +# # bad +# begin +# do_something +# rescue +# nil +# end +# +# # bad +# do_something rescue nil +# +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#105 +class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#108 + def on_resbody(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#118 + def comment_between_rescue_and_end?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#126 + def nil_body?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#106 +RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of literal strings converted to +# a symbol where a literal symbol could be used instead. +# +# There are two possible styles for this cop. +# `strict` (default) will register an offense for any incorrect usage. +# `consistent` additionally requires hashes to use the same style for +# every symbol key (ie. if any symbol key needs to be quoted it requires +# all keys to be quoted). +# +# @example +# # bad +# 'string'.to_sym +# :symbol.to_sym +# 'underscored_string'.to_sym +# :'underscored_symbol' +# 'hyphenated-string'.to_sym +# +# # good +# :string +# :symbol +# :underscored_string +# :underscored_symbol +# :'hyphenated-string' +# @example EnforcedStyle: strict (default) +# +# # bad +# { +# 'a': 1, +# "b": 2, +# 'c-d': 3 +# } +# +# # good (don't quote keys that don't require quoting) +# { +# a: 1, +# b: 2, +# 'c-d': 3 +# } +# @example EnforcedStyle: consistent +# +# # bad +# { +# a: 1, +# 'b-c': 2 +# } +# +# # good (quote all keys if any need quoting) +# { +# 'a': 1, +# 'b-c': 2 +# } +# +# # good (no quoting required) +# { +# a: 1, +# b: 2 +# } +# +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#66 +class RuboCop::Cop::Lint::SymbolConversion < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::SymbolHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#100 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#76 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#83 + def on_sym(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#142 + def correct_hash_key(node); end + + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#161 + def correct_inconsistent_hash_keys(keys); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#134 + def in_alias?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#138 + def in_percent_literal_array?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#121 + def properly_quoted?(source, value); end + + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#117 + def register_offense(node, correction:, message: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#130 + def requires_quotes?(sym_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#71 +RuboCop::Cop::Lint::SymbolConversion::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#72 +RuboCop::Cop::Lint::SymbolConversion::MSG_CONSISTENCY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#74 +RuboCop::Cop::Lint::SymbolConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Repacks Parser's diagnostics/errors +# into RuboCop's offenses. +# +# source://rubocop//lib/rubocop/cop/lint/syntax.rb#8 +class RuboCop::Cop::Lint::Syntax < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#9 + def on_other_file; end + + private + + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#19 + def add_offense_from_diagnostic(diagnostic, ruby_version); end + + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#26 + def add_offense_from_error(error); end + + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#31 + def beautify_message(message); end + + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#37 + def find_severity(_range, _severity); end +end + +# Ensures that `to_enum`/`enum_for`, called for the current method, +# has correct arguments. +# +# @example +# # bad +# def foo(x, y = 1) +# return to_enum(__callee__, x) # `y` is missing +# end +# +# # good +# def foo(x, y = 1) +# # Alternatives to `__callee__` are `__method__` and `:foo`. +# return to_enum(__callee__, x, y) +# end +# +# # good +# def foo(x, y = 1) +# # It is also allowed if it is wrapped in some method like Sorbet. +# return to_enum(T.must(__callee__), x, y) +# end +# +# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#27 +class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#33 + def enum_conversion_call?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#38 + def method_name?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#47 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#43 + def passing_keyword_arg?(param0 = T.unsafe(nil), param1); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#78 + def argument_match?(send_arg, def_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#63 + def arguments_match?(arguments, def_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#28 +RuboCop::Cop::Lint::ToEnumArguments::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#30 +RuboCop::Cop::Lint::ToEnumArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks to make sure `#to_json` includes an optional argument. +# When overriding `#to_json`, callers may invoke JSON +# generation via `JSON.generate(your_obj)`. Since `JSON#generate` allows +# for an optional argument, your method should too. +# +# @example +# class Point +# attr_reader :x, :y +# +# # bad, incorrect arity +# def to_json +# JSON.generate([x, y]) +# end +# +# # good, preserving args +# def to_json(*args) +# JSON.generate([x, y], *args) +# end +# +# # good, discarding args +# def to_json(*_args) +# JSON.generate([x, y]) +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/to_json.rb#31 +class RuboCop::Cop::Lint::ToJSON < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/to_json.rb#36 + def on_def(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/to_json.rb#34 +RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String) + +# Checks for top level return with arguments. If there is a +# top-level return statement with an argument, then the argument is +# always ignored. This is detected automatically since Ruby 2.7. +# +# @example +# # bad +# return 1 +# +# # good +# return +# +# source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#16 +class RuboCop::Cop::Lint::TopLevelReturnWithArgument < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#21 + def on_return(return_node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#35 + def remove_arguments(corrector, return_node); end + + # This cop works by validating the ancestors of the return node. A + # top-level return node's ancestors should not be of block, def, or + # defs type. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#42 + def top_level_return?(return_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#31 + def top_level_return_with_any_argument?(return_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#19 +RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), String) + +# Checks for trailing commas in attribute declarations, such as +# `#attr_reader`. Leaving a trailing comma will nullify the next method +# definition by overriding it with a getter method. +# +# @example +# +# # bad +# class Foo +# attr_reader :foo, +# +# def bar +# puts "Unreachable." +# end +# end +# +# # good +# class Foo +# attr_reader :foo +# +# def bar +# puts "No problem!" +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#30 +class RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#36 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#46 + def trailing_comma_range(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#34 +RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration::MSG = T.let(T.unsafe(nil), String) + +# Checks for "triple quotes" (strings delimited by any odd number +# of quotes greater than 1). +# +# Ruby allows multiple strings to be implicitly concatenated by just +# being adjacent in a statement (ie. `"foo""bar" == "foobar"`). This sometimes +# gives the impression that there is something special about triple quotes, but +# in fact it is just extra unnecessary quotes and produces the same string. Each +# pair of quotes produces an additional concatenated empty string, so the result +# is still only the "actual" string within the delimiters. +# +# NOTE: Although this cop is called triple quotes, the same behavior is present +# for strings delimited by 5, 7, etc. quotation marks. +# +# @example +# # bad +# """ +# A string +# """ +# +# # bad +# ''' +# A string +# ''' +# +# # good +# " +# A string +# " +# +# # good +# <<STRING +# A string +# STRING +# +# # good (but not the same spacing as the bad case) +# 'A string' +# +# source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#42 +class RuboCop::Cop::Lint::TripleQuotes < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#47 + def on_dstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#65 + def empty_str_nodes(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#45 +RuboCop::Cop::Lint::TripleQuotes::MSG = T.let(T.unsafe(nil), String) + +# Checks for underscore-prefixed variables that are actually +# used. +# +# Since block keyword arguments cannot be arbitrarily named at call +# sites, the `AllowKeywordBlockArguments` will allow use of underscore- +# prefixed block keyword arguments. +# +# @example AllowKeywordBlockArguments: false (default) +# +# # bad +# +# [1, 2, 3].each do |_num| +# do_something(_num) +# end +# +# query(:sales) do |_id:, revenue:, cost:| +# {_id: _id, profit: revenue - cost} +# end +# +# # good +# +# [1, 2, 3].each do |num| +# do_something(num) +# end +# +# [1, 2, 3].each do |_num| +# do_something # not using `_num` +# end +# @example AllowKeywordBlockArguments: true +# +# # good +# +# query(:sales) do |_id:, revenue:, cost:| +# {_id: _id, profit: revenue - cost} +# end +# +# source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#43 +class RuboCop::Cop::Lint::UnderscorePrefixedVariableName < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#50 + def after_leaving_scope(scope, _variable_table); end + + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#54 + def check_variable(variable); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#72 + def allowed_keyword_block_argument?(variable); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#46 + def joining_forces; end + end +end + +# source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#44 +RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), String) + +# Checks for a block that is known to need more positional +# block arguments than are given (by default this is configured for +# `Enumerable` methods needing 2 arguments). Optional arguments are allowed, +# although they don't generally make sense as the default value will +# be used. Blocks that have no receiver, or take splatted arguments +# (ie. `*args`) are always accepted. +# +# Keyword arguments (including `**kwargs`) do not get counted towards +# this, as they are not used by the methods in question. +# +# Method names and their expected arity can be configured like this: +# +# [source,yaml] +# ---- +# Methods: +# inject: 2 +# reduce: 2 +# ---- +# +# @example +# # bad +# values.reduce {} +# values.min { |a| a } +# values.sort { |a; b| a + b } +# +# # good +# values.reduce { |memo, obj| memo << obj } +# values.min { |a, b| a <=> b } +# values.sort { |*x| x[0] <=> x[1] } +# +# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#41 +class RuboCop::Cop::Lint::UnexpectedBlockArity < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#63 + def acceptable?(node); end + + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#75 + def arg_count(node); end + + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#71 + def expected_arity(method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#67 + def included_method?(name); end + + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#59 + def methods; end +end + +# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#42 +RuboCop::Cop::Lint::UnexpectedBlockArity::MSG = T.let(T.unsafe(nil), String) + +# Checks for using Fixnum or Bignum constant. +# +# @example +# +# # bad +# +# 1.is_a?(Fixnum) +# 1.is_a?(Bignum) +# @example +# +# # good +# +# 1.is_a?(Integer) +# +# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#20 +class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#26 + def fixnum_or_bignum_const(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#30 + def on_const(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#23 +RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) + +# Looks for `reduce` or `inject` blocks where the value returned (implicitly or +# explicitly) does not include the accumulator. A block is considered valid as +# long as at least one return value includes the accumulator. +# +# If the accumulator is not included in the return value, then the entire +# block will just return a transformation of the last element value, and +# could be rewritten as such without a loop. +# +# Also catches instances where an index of the accumulator is returned, as +# this may change the type of object being retained. +# +# NOTE: For the purpose of reducing false positives, this cop only flags +# returns in `reduce` blocks where the element is the only variable in +# the expression (since we will not be able to tell what other variables +# relate to via static analysis). +# +# @example +# +# # bad +# (1..4).reduce(0) do |acc, el| +# el * 2 +# end +# +# # bad, may raise a NoMethodError after the first iteration +# %w(a b c).reduce({}) do |acc, letter| +# acc[letter] = true +# end +# +# # good +# (1..4).reduce(0) do |acc, el| +# acc + el * 2 +# end +# +# # good, element is returned but modified using the accumulator +# values.reduce do |acc, el| +# el << acc +# el +# end +# +# # good, returns the accumulator instead of the index +# %w(a b c).reduce({}) do |acc, letter| +# acc[letter] = true +# acc +# end +# +# # good, at least one branch returns the accumulator +# values.reduce(nil) do |result, value| +# break result if something? +# value +# end +# +# # good, recursive +# keys.reduce(self) { |result, key| result[key] } +# +# # ignored as the return value cannot be determined +# enum.reduce do |acc, el| +# x = foo(acc, el) +# bar(x) +# end +# +# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#65 +class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#78 + def accumulator_index?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#83 + def element_modified?(param0, param1); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#104 + def expression_values(param0); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#93 + def lvar_used?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#70 + def reduce_with_block?(param0 = T.unsafe(nil)); end + + private + + # Determine if a return value is acceptable for the purposes of this cop + # If it is an expression containing the accumulator, it is acceptable + # Otherwise, it is only unacceptable if it contains the iterated element, since we + # otherwise do not have enough information to prevent false positives. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#190 + def acceptable_return?(return_val, element_name); end + + # Exclude `begin` nodes inside a `dstr` from being collected by `return_values` + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#198 + def allowed_type?(parent_node); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#158 + def block_arg_name(node, index); end + + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#141 + def check_return_values(block_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#175 + def potential_offense?(return_values, block_body, element_name, accumulator_name); end + + # Return values in a block are either the value given to next, + # the last line of a multiline block, or the only line of the block + # + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#127 + def return_values(block_body_node); end + + # Look for an index of the accumulator being returned, except where the index + # is the element. + # This is always an offense, in order to try to catch potential exceptions + # due to type mismatches + # + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#166 + def returned_accumulator_index(return_values, accumulator_name, element_name); end + + # If the accumulator is used in any return value, the node is acceptable since + # the accumulator has a chance to change each iteration + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#182 + def returns_accumulator_anywhere?(return_values, accumulator_name); end +end + +# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#66 +RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#67 +RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil), String) + +# Checks for unreachable code. +# The check are based on the presence of flow of control +# statement in non-final position in `begin` (implicit) blocks. +# +# @example +# +# # bad +# +# def some_method +# return +# do_something +# end +# +# # bad +# +# def some_method +# if cond +# return +# else +# return +# end +# do_something +# end +# @example +# +# # good +# +# def some_method +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#37 +class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#55 + def flow_command?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#40 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#40 + def on_kwbegin(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#87 + def check_case(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#81 + def check_if(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#65 + def flow_expression?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#38 +RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) + +# Checks for loops that will have at most one iteration. +# +# A loop that can never reach the second iteration is a possible error in the code. +# In rare cases where only one iteration (or at most one iteration) is intended behavior, +# the code should be refactored to use `if` conditionals. +# +# NOTE: Block methods that are used with ``Enumerable``s are considered to be loops. +# +# `AllowedPatterns` can be used to match against the block receiver in order to allow +# code that would otherwise be registered as an offense (eg. `times` used not in an +# `Enumerable` context). +# +# @example +# # bad +# while node +# do_something(node) +# node = node.parent +# break +# end +# +# # good +# while node +# do_something(node) +# node = node.parent +# end +# +# # bad +# def verify_list(head) +# item = head +# begin +# if verify(item) +# return true +# else +# return false +# end +# end while(item) +# end +# +# # good +# def verify_list(head) +# item = head +# begin +# if verify(item) +# item = item.next +# else +# return false +# end +# end while(item) +# +# true +# end +# +# # bad +# def find_something(items) +# items.each do |item| +# if something?(item) +# return item +# else +# raise NotFoundError +# end +# end +# end +# +# # good +# def find_something(items) +# items.each do |item| +# if something?(item) +# return item +# end +# end +# raise NotFoundError +# end +# +# # bad +# 2.times { raise ArgumentError } +# @example AllowedPatterns: ['(exactly|at_least|at_most)\(\d+\)\.times'] (default) +# +# # good +# exactly(2).times { raise StandardError } +# +# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#86 +class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#143 + def break_command?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#104 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + def on_while_post(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#153 + def break_statement?(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#119 + def check(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#176 + def check_case(node); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#170 + def check_if(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#194 + def conditional_continue_keyword?(break_statement); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#110 + def loop_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#184 + def preceded_by_continue_statement?(break_statement); end + + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#130 + def statements(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#90 +RuboCop::Cop::Lint::UnreachableLoop::CONTINUE_KEYWORDS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#89 +RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String) + +# Common functionality for cops handling unused arguments. +# +# source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#7 +module RuboCop::Cop::Lint::UnusedArgument + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#10 + def after_leaving_scope(scope, _variable_table); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#16 + def check_argument(variable); end +end + +# Checks for unused block arguments. +# +# @example +# # bad +# do_something do |used, unused| +# puts used +# end +# +# do_something do |bar| +# puts :foo +# end +# +# define_method(:foo) do |bar| +# puts :baz +# end +# +# # good +# do_something do |used, _unused| +# puts used +# end +# +# do_something do +# puts :foo +# end +# +# define_method(:foo) do |_bar| +# puts :baz +# end +# @example IgnoreEmptyBlocks: true (default) +# # good +# do_something { |unused| } +# @example IgnoreEmptyBlocks: false +# # bad +# do_something { |unused| } +# @example AllowUnusedKeywordArguments: false (default) +# # bad +# do_something do |unused: 42| +# foo +# end +# @example AllowUnusedKeywordArguments: true +# # good +# do_something do |unused: 42| +# foo +# end +# +# source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#55 +class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Lint::UnusedArgument + extend ::RuboCop::Cop::AutoCorrector + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#162 + def allow_unused_keyword_arguments?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#81 + def allowed_block?(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#85 + def allowed_keyword_argument?(variable); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#99 + def augment_message(message, variable); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#65 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#69 + def check_argument(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#149 + def define_method_call?(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#156 + def empty_block?(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#166 + def ignore_empty_blocks?; end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#89 + def message(variable); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#132 + def message_for_lambda(variable, all_arguments); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#120 + def message_for_normal_block(variable, all_arguments); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#144 + def message_for_underscore_prefix(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#77 + def used_block_local?(variable); end + + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#112 + def variable_type(variable); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#59 + def joining_forces; end + end +end + +# Checks for unused method arguments. +# +# @example +# # bad +# def some_method(used, unused, _unused_but_allowed) +# puts used +# end +# +# # good +# def some_method(used, _unused, _unused_but_allowed) +# puts used +# end +# @example AllowUnusedKeywordArguments: false (default) +# # bad +# def do_something(used, unused: 42) +# used +# end +# @example AllowUnusedKeywordArguments: true +# # good +# def do_something(used, unused: 42) +# used +# end +# @example IgnoreEmptyMethods: true (default) +# # good +# def do_something(unused) +# end +# @example IgnoreEmptyMethods: false +# # bad +# def do_something(unused) +# end +# @example IgnoreNotImplementedMethods: true (default) +# # good +# def do_something(unused) +# raise NotImplementedError +# end +# +# def do_something_else(unused) +# fail "TODO" +# end +# @example IgnoreNotImplementedMethods: false +# # bad +# def do_something(unused) +# raise NotImplementedError +# end +# +# def do_something_else(unused) +# fail "TODO" +# end +# +# source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#61 +class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Lint::UnusedArgument + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#66 + def not_implemented?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#81 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#85 + def check_argument(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#93 + def ignored_method?(body); end + + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#98 + def message(variable); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#71 + def autocorrect_incompatible_with; end + + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#75 + def joining_forces; end + end +end + +# Identifies places where `URI.escape` can be replaced by +# `CGI.escape`, `URI.encode_www_form`, or `URI.encode_www_form_component` +# depending on your specific use case. +# Also this cop identifies places where `URI.unescape` can be replaced by +# `CGI.unescape`, `URI.decode_www_form`, +# or `URI.decode_www_form_component` depending on your specific use case. +# +# @example +# # bad +# URI.escape('http://example.com') +# URI.encode('http://example.com') +# +# # good +# CGI.escape('http://example.com') +# URI.encode_www_form([['example', 'param'], ['lang', 'en']]) +# URI.encode_www_form(page: 10, locale: 'en') +# URI.encode_www_form_component('http://example.com') +# +# # bad +# URI.unescape(enc_uri) +# URI.decode(enc_uri) +# +# # good +# CGI.unescape(enc_uri) +# URI.decode_www_form(enc_uri) +# URI.decode_www_form_component(enc_uri) +# +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#32 +class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#57 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#51 + def uri_escape_unescape?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#33 +RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_ESCAPE = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#38 +RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_UNESCAPE = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#47 +RuboCop::Cop::Lint::UriEscapeUnescape::METHOD_NAMES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#44 +RuboCop::Cop::Lint::UriEscapeUnescape::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#48 +RuboCop::Cop::Lint::UriEscapeUnescape::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `URI.regexp` is obsolete and should +# not be used. Instead, use `URI::DEFAULT_PARSER.make_regexp`. +# +# @example +# # bad +# URI.regexp('http://example.com') +# +# # good +# URI::DEFAULT_PARSER.make_regexp('http://example.com') +# +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#16 +class RuboCop::Cop::Lint::UriRegexp < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#23 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#19 +RuboCop::Cop::Lint::UriRegexp::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#21 +RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#20 +RuboCop::Cop::Lint::UriRegexp::URI_CONSTANTS = T.let(T.unsafe(nil), Array) + +# Checks for redundant access modifiers, including those with no +# code, those which are repeated, and leading `public` modifiers in a +# class or module body. Conditionally-defined methods are considered as +# always being defined, and thus access modifiers guarding such methods +# are not redundant. +# +# This cop has `ContextCreatingMethods` option. The default setting value +# is an empty array that means no method is specified. +# This setting is an array of methods which, when called, are known to +# create its own context in the module's current access context. +# +# It also has `MethodCreatingMethods` option. The default setting value +# is an empty array that means no method is specified. +# This setting is an array of methods which, when called, are known to +# create other methods in the module's current access context. +# +# @example +# # bad +# class Foo +# public # this is redundant (default access is public) +# +# def method +# end +# end +# +# # bad +# class Foo +# # The following is redundant (methods defined on the class' +# # singleton class are not affected by the private modifier) +# private +# +# def self.method3 +# end +# end +# +# # bad +# class Foo +# protected +# +# define_method(:method2) do +# end +# +# protected # this is redundant (repeated from previous modifier) +# +# [1,2,3].each do |i| +# define_method("foo#{i}") do +# end +# end +# end +# +# # bad +# class Foo +# private # this is redundant (no following methods are defined) +# end +# +# # good +# class Foo +# private # this is not redundant (a method is defined) +# +# def method2 +# end +# end +# +# # good +# class Foo +# # The following is not redundant (conditionally defined methods are +# # considered as always defining a method) +# private +# +# if condition? +# def method +# end +# end +# end +# +# # good +# class Foo +# protected # this is not redundant (a method is defined) +# +# define_method(:method2) do +# end +# end +# @example ContextCreatingMethods: concerning +# # Lint/UselessAccessModifier: +# # ContextCreatingMethods: +# # - concerning +# +# # good +# require 'active_support/concern' +# class Foo +# concerning :Bar do +# def some_public_method +# end +# +# private +# +# def some_private_method +# end +# end +# +# # this is not redundant because `concerning` created its own context +# private +# +# def some_other_private_method +# end +# end +# @example MethodCreatingMethods: delegate +# # Lint/UselessAccessModifier: +# # MethodCreatingMethods: +# # - delegate +# +# # good +# require 'active_support/core_ext/module/delegation' +# class Foo +# # this is not redundant because `delegate` creates methods +# private +# +# delegate :method_a, to: :method_b +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#127 +class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#166 + def class_or_instance_eval?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#161 + def dynamic_method_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + def on_sclass(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#156 + def static_method_definition?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#182 + def access_modifier?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#280 + def any_context_creating_methods?(child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#257 + def any_method_definition?(child); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#149 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#196 + def check_child_nodes(node, unused, cur_vis); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#226 + def check_new_visibility(node, unused, new_vis, cur_vis); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#170 + def check_node(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#186 + def check_scope(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#215 + def check_send_node(node, cur_vis, unused); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#274 + def eval_call?(child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#247 + def included_block?(block_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#251 + def method_definition?(child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#270 + def start_of_new_scope?(child); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#131 +RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) + +# Checks for every useless assignment to local variable in every +# scope. +# The basic idea for this cop was from the warning of `ruby -cw`: +# +# [source,console] +# ---- +# assigned but unused variable - foo +# ---- +# +# Currently this cop has advanced logic that detects unreferenced +# reassignments and properly handles varied cases such as branch, loop, +# rescue, ensure, etc. +# +# NOTE: Given the assignment `foo = 1, bar = 2`, removing unused variables +# can lead to a syntax error, so this case is not autocorrected. +# +# @example +# +# # bad +# +# def some_method +# some_var = 1 +# do_something +# end +# @example +# +# # good +# +# def some_method +# some_var = 1 +# do_something(some_var) +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#45 +class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#56 + def after_leaving_scope(scope, _variable_table); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#162 + def autocorrect(corrector, assignment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#103 + def chained_assignment?(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#61 + def check_for_unused_assignments(variable); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#146 + def collect_variable_like_names(scope); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#79 + def message_for_useless_assignment(assignment); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#107 + def message_specification(assignment, variable); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#117 + def multiple_assignment_message(variable_name); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#85 + def offense_range(assignment); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#122 + def operator_assignment_message(scope, assignment); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#179 + def remove_exception_assignment_part(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#203 + def remove_local_variable_assignment_part(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#192 + def remove_trailing_character_from_operator(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#188 + def rename_variable_with_underscore(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#196 + def replace_named_capture_group_with_non_capturing_group(corrector, node, variable_name); end + + # TODO: More precise handling (rescue, ensure, nested begin, etc.) + # + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#136 + def return_value_node_of_scope(scope); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#93 + def sequential_assignment?(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#129 + def similar_name_message(variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#155 + def variable_like_method_invocation?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#52 + def joining_forces; end + end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#50 +RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) + +# Checks for useless `else` in `begin..end` without `rescue`. +# +# NOTE: This syntax is no longer valid on Ruby 2.6 or higher. +# +# @example +# +# # bad +# +# begin +# do_something +# else +# do_something_else # This will never be run. +# end +# @example +# +# # good +# +# begin +# do_something +# rescue +# handle_errors +# else +# do_something_else +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#31 +class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#34 + def on_new_investigation; end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#32 +RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) + +# Checks for useless method definitions, specifically: empty constructors +# and methods just delegating to `super`. +# +# @example +# # bad +# def initialize +# super +# end +# +# def method +# super +# end +# +# # good - with default arguments +# def initialize(x = Object.new) +# super +# end +# +# # good +# def initialize +# super +# initialize_internals +# end +# +# def method(*args) +# super(:extra_arg, *args) +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#38 +class RuboCop::Cop::Lint::UselessMethodDefinition < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#65 + def delegating?(node, def_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#57 + def method_definition_with_modifier?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#61 + def use_rest_or_optional_args?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#41 +RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# Checks for useless `rescue`s, which only reraise rescued exceptions. +# +# @example +# # bad +# def foo +# do_something +# rescue +# raise +# end +# +# # bad +# def foo +# do_something +# rescue => e +# raise # or 'raise e', or 'raise $!', or 'raise $ERROR_INFO' +# end +# +# # good +# def foo +# do_something +# rescue +# do_cleanup +# raise +# end +# +# # bad (latest rescue) +# def foo +# do_something +# rescue ArgumentError +# # noop +# rescue +# raise +# end +# +# # good (not the latest rescue) +# def foo +# do_something +# rescue ArgumentError +# raise +# rescue +# # noop +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#49 +class RuboCop::Cop::Lint::UselessRescue < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#52 + def on_rescue(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#83 + def exception_objects(resbody_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#60 + def only_reraising?(resbody_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#75 + def use_exception_variable_in_ensure?(resbody_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#50 +RuboCop::Cop::Lint::UselessRescue::MSG = T.let(T.unsafe(nil), String) + +# Looks for `ruby2_keywords` calls for methods that do not need it. +# +# `ruby2_keywords` should only be called on methods that accept an argument splat +# (`\*args`) but do not explicit keyword arguments (`k:` or `k: true`) or +# a keyword splat (`**kwargs`). +# +# @example +# # good (splat argument without keyword arguments) +# ruby2_keywords def foo(*args); end +# +# # bad (no arguments) +# ruby2_keywords def foo; end +# +# # good +# def foo; end +# +# # bad (positional argument) +# ruby2_keywords def foo(arg); end +# +# # good +# def foo(arg); end +# +# # bad (double splatted argument) +# ruby2_keywords def foo(**args); end +# +# # good +# def foo(**args); end +# +# # bad (keyword arguments) +# ruby2_keywords def foo(i:, j:); end +# +# # good +# def foo(i:, j:); end +# +# # bad (splat argument with keyword arguments) +# ruby2_keywords def foo(*args, i:, j:); end +# +# # good +# def foo(*args, i:, j:); end +# +# # bad (splat argument with double splat) +# ruby2_keywords def foo(*args, **kwargs); end +# +# # good +# def foo(*args, **kwargs); end +# +# # bad (ruby2_keywords given a symbol) +# def foo; end +# ruby2_keywords :foo +# +# # good +# def foo; end +# +# # bad (ruby2_keywords with dynamic method) +# define_method(:foo) { |arg| } +# ruby2_keywords :foo +# +# # good +# define_method(:foo) { |arg| } +# +# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#66 +class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base + # Looks for statically or dynamically defined methods with a given name + # + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#72 + def method_definition(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#79 + def on_send(node); end + + private + + # `ruby2_keywords` is only allowed if there's a `restarg` and no keyword arguments + # + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#118 + def allowed_arguments(arguments); end + + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#109 + def find_method_definition(node, method_name); end + + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#91 + def inspect_def(node, def_node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#97 + def inspect_sym(node, sym_node); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#67 +RuboCop::Cop::Lint::UselessRuby2Keywords::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#68 +RuboCop::Cop::Lint::UselessRuby2Keywords::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for setter call to local variable as the final +# expression of a function definition. +# +# @example +# +# # bad +# +# def something +# x = Something.new +# x.attr = 5 +# end +# @example +# +# # good +# +# def something +# x = Something.new +# x.attr = 5 +# x +# end +# +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#35 +class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#41 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#41 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#63 + def setter_call_to_local_variable?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#67 + def last_expression(body); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#39 +RuboCop::Cop::Lint::UselessSetterCall::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#38 +RuboCop::Cop::Lint::UselessSetterCall::MSG = T.let(T.unsafe(nil), String) + +# This class tracks variable assignments in a method body +# and if a variable contains object passed as argument at the end of +# the method. +# +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#76 +class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker + # @return [MethodVariableTracker] a new instance of MethodVariableTracker + # + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#77 + def initialize(body_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#163 + def constructor?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#82 + def contain_local_object?(variable_name); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#152 + def process_assignment(asgn_node, rhs_node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#100 + def process_assignment_node(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#142 + def process_binary_operator_assignment(op_asgn_node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#133 + def process_logical_operator_assignment(asgn_node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#114 + def process_multiple_assignment(masgn_node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#92 + def scan(node, &block); end +end + +# Checks for uses of `Integer#times` that will never yield +# (when the integer <= 0) or that will only ever yield once +# (`1.times`). +# +# @example +# # bad +# -5.times { do_something } +# 0.times { do_something } +# 1.times { do_something } +# 1.times { |i| do_something(i) } +# +# # good +# do_something +# do_something(1) +# +# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#24 +class RuboCop::Cop::Lint::UselessTimes < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#37 + def block_arg(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#42 + def block_reassigns_arg?(param0, param1); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#46 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#32 + def times_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#62 + def autocorrect(corrector, count, node, proc_name); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#84 + def autocorrect_block(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#80 + def autocorrect_block_pass(corrector, node, proc_name); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#94 + def fix_indentation(source, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#72 + def never_process?(count, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#106 + def own_line?(node); end + + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#76 + def remove_node(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#28 +RuboCop::Cop::Lint::UselessTimes::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#29 +RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for operators, variables, literals, lambda, proc and nonmutating +# methods used in void context. +# +# @example CheckForMethodsWithNoSideEffects: false (default) +# # bad +# def some_method +# some_num * 10 +# do_something +# end +# +# def some_method(some_var) +# some_var +# do_something +# end +# @example CheckForMethodsWithNoSideEffects: true +# # bad +# def some_method(some_array) +# some_array.sort +# do_something(some_array) +# end +# +# # good +# def some_method +# do_something +# some_num * 10 +# end +# +# def some_method(some_var) +# do_something +# some_var +# end +# +# def some_method(some_array) +# some_array.sort! +# do_something(some_array) +# end +# +# source://rubocop//lib/rubocop/cop/lint/void.rb#43 +class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/void.rb#80 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#71 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#80 + def on_kwbegin(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#71 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/lint/void.rb#194 + def autocorrect_nonmutating_send(corrector, node, suggestion); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#190 + def autocorrect_void_expression(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#178 + def autocorrect_void_op(corrector, node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#87 + def check_begin(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#93 + def check_expression(expr); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#128 + def check_literal(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#152 + def check_nonmutating(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#136 + def check_self(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#113 + def check_var(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#144 + def check_void_expression(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#104 + def check_void_op(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/void.rb#170 + def in_void_context?(node); end +end + +# source://rubocop//lib/rubocop/cop/lint/void.rb#55 +RuboCop::Cop::Lint::Void::BINARY_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#52 +RuboCop::Cop::Lint::Void::EXPRESSION_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#50 +RuboCop::Cop::Lint::Void::LIT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#66 +RuboCop::Cop::Lint::Void::METHODS_REPLACEABLE_BY_EACH = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#68 +RuboCop::Cop::Lint::Void::NONMUTATING_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#59 +RuboCop::Cop::Lint::Void::NONMUTATING_METHODS_WITH_BANG_VERSION = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#53 +RuboCop::Cop::Lint::Void::NONMUTATING_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#57 +RuboCop::Cop::Lint::Void::OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#48 +RuboCop::Cop::Lint::Void::OP_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#51 +RuboCop::Cop::Lint::Void::SELF_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#56 +RuboCop::Cop::Lint::Void::UNARY_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#49 +RuboCop::Cop::Lint::Void::VAR_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/void.rb#58 +RuboCop::Cop::Lint::Void::VOID_CONTEXT_TYPES = T.let(T.unsafe(nil), Array) + +# Common functionality for obtaining source ranges from regexp matches +# +# source://rubocop//lib/rubocop/cop/mixin/match_range.rb#6 +module RuboCop::Cop::MatchRange + include ::RuboCop::Cop::RangeHelp + + private + + # Return a new `Range` covering the first matching group number for each + # match of `regex` inside `range` + # + # source://rubocop//lib/rubocop/cop/mixin/match_range.rb#13 + def each_match_range(range, regex); end + + # For a `match` inside `range`, return a new `Range` covering the match + # + # source://rubocop//lib/rubocop/cop/mixin/match_range.rb#18 + def match_range(range, match); end +end + +# Message Annotator class annotates a basic offense message +# based on params passed into initializer. +# +# #=> 'Cop/CopName: message (http://example.org/styleguide)' +# +# @example +# RuboCop::Cop::MessageAnnotator.new( +# config, cop_name, cop_config, @options +# ).annotate('message') +# @see #initialize +# +# source://rubocop//lib/rubocop/cop/message_annotator.rb#15 +class RuboCop::Cop::MessageAnnotator + # @option cop_config + # @option cop_config + # @option cop_config + # @option options + # @option options + # @option options + # @option options + # @param config [RuboCop::Config] Check configs for all cops + # @note Message Annotator specifically checks the + # following config options for_all_cops + # :StyleGuideBaseURL [String] URL for styleguide + # :DisplayStyleGuide [Boolean] Include styleguide and reference URLs + # :ExtraDetails [Boolean] Include cop details + # :DisplayCopNames [Boolean] Include cop name + # @param cop_name [String] for specific cop name + # @param cop_config [Hash] configs for specific cop, from config#for_cop + # @param options [Hash, nil] optional + # @return [MessageAnnotator] a new instance of MessageAnnotator + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#47 + def initialize(config, cop_name, cop_config, options); end + + # Returns the annotated message, + # based on params passed into initializer + # + # @return [String] annotated message + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#58 + def annotate(message); end + + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + def config; end + + # Returns the value of attribute cop_config. + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + def cop_config; end + + # Returns the value of attribute cop_name. + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + def cop_name; end + + # Returns the value of attribute options. + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + def options; end + + # source://rubocop//lib/rubocop/cop/message_annotator.rb#68 + def urls; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#111 + def debug?; end + + # source://rubocop//lib/rubocop/cop/message_annotator.rb#124 + def details; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#115 + def display_cop_names?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#98 + def display_style_guide?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#107 + def extra_details?; end + + # source://rubocop//lib/rubocop/cop/message_annotator.rb#102 + def reference_urls; end + + # Returns the base style guide URL from AllCops or the specific department + # + # @return [String] style guide URL + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#91 + def style_guide_base_url; end + + # source://rubocop//lib/rubocop/cop/message_annotator.rb#74 + def style_guide_url; end + + class << self + # Returns the value of attribute style_guide_urls. + # + # source://rubocop//lib/rubocop/cop/message_annotator.rb#21 + def style_guide_urls; end + end +end + +# This module handles measurement and reporting of complexity in methods. +# +# @api private +# +# source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#8 +module RuboCop::Cop::MethodComplexity + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount + extend ::RuboCop::AST::NodePattern::Macros + extend ::RuboCop::ExcludeLimit + + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#37 + def define_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 + def on_block(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 + def on_def(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 + def on_defs(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 + def on_numblock(node); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#42 + def check_complexity(node, method_name); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#61 + def complexity(body); end +end + +# Common code for cops that deal with preferred methods. +# +# source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#6 +module RuboCop::Cop::MethodPreference + private + + # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#25 + def default_cop_config; end + + # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#9 + def preferred_method(method); end + + # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#13 + def preferred_methods; end +end + +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#5 +module RuboCop::Cop::Metrics; end + +# Checks that the ABC size of methods is not higher than the +# configured maximum. The ABC size is based on assignments, branches +# (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric +# and https://en.wikipedia.org/wiki/ABC_Software_Metric. +# +# Interpreting ABC size: +# +# * <= 17 satisfactory +# * 18..30 unsatisfactory +# * > 30 dangerous +# +# You can have repeated "attributes" calls count as a single "branch". +# For this purpose, attributes are any method with no argument; no attempt +# is meant to distinguish actual `attr_reader` from other methods. +# +# This cop also takes into account `AllowedMethods` (defaults to `[]`) +# And `AllowedPatterns` (defaults to `[]`) +# +# @example CountRepeatedAttributes: false (default is true) +# +# # `model` and `current_user`, referenced 3 times each, +# # are each counted as only 1 branch each if +# # `CountRepeatedAttributes` is set to 'false' +# +# def search +# @posts = model.active.visible_by(current_user) +# .search(params[:q]) +# @posts = model.some_process(@posts, current_user) +# @posts = model.another_process(@posts, current_user) +# +# render 'pages/search/page' +# end +# +# source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#39 +class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount + include ::RuboCop::Cop::MethodComplexity + + private + + # source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#47 + def complexity(node); end +end + +# source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#42 +RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) + +# Checks if the length of a block exceeds some maximum value. +# Comment lines can optionally be ignored. +# The maximum allowed length is configurable. +# The cop can be configured to ignore blocks passed to certain methods. +# +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct +# will be counted as one line regardless of its actual size. +# +# NOTE: This cop does not apply for `Struct` definitions. +# +# NOTE: The `ExcludedMethods` configuration is deprecated and only kept +# for backwards compatibility. Please use `AllowedMethods` and `AllowedPatterns` +# instead. By default, there are no methods to allowed. +# +# @example CountAsOne: ['array', 'heredoc', 'method_call'] +# +# something do +# array = [ # +1 +# 1, +# 2 +# ] +# +# hash = { # +3 +# key: 'value' +# } +# +# msg = <<~HEREDOC # +1 +# Heredoc +# content. +# HEREDOC +# +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#44 +class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CodeLength + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#51 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#51 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#80 + def cop_label; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#62 + def method_receiver_excluded?(node); end +end + +# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#49 +RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) + +# Checks for excessive nesting of conditional and looping +# constructs. +# +# You can configure if blocks are considered using the `CountBlocks` +# option. When set to `false` (the default) blocks are not counted +# towards the nesting level. Set to `true` to count blocks as well. +# +# The maximum level of nesting allowed is configurable. +# +# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#14 +class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#19 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#28 + def check_nesting_level(node, max, current_level); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#44 + def consider_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#54 + def count_blocks?; end + + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#50 + def message(max); end +end + +# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#15 +RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array) + +# Checks if the length of a class exceeds some maximum value. +# Comment lines can optionally be ignored. +# The maximum allowed length is configurable. +# +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct +# will be counted as one line regardless of its actual size. +# +# NOTE: This cop also applies for `Struct` definitions. +# +# @example CountAsOne: ['array', 'heredoc', 'method_call'] +# +# class Foo +# ARRAY = [ # +1 +# 1, +# 2 +# ] +# +# HASH = { # +3 +# key: 'value' +# } +# +# MSG = <<~HEREDOC # +1 +# Heredoc +# content. +# HEREDOC +# +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/class_length.rb#39 +class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CodeLength + + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#47 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#42 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#42 + def on_sclass(node); end + + private + + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#65 + def message(length, max_length); end +end + +# Checks for literals with extremely many entries. This is indicative of +# configuration or data that may be better extracted somewhere else, like +# a database, fetched from an API, or read from a non-code file (CSV, +# JSON, YAML, etc.). +# +# @example +# # bad +# # Huge Array literal +# [1, 2, '...', 999_999_999] +# +# # bad +# # Huge Hash literal +# { 1 => 1, 2 => 2, '...' => '...', 999_999_999 => 999_999_999} +# +# # bad +# # Huge Set "literal" +# Set[1, 2, '...', 999_999_999] +# +# # good +# # Reasonably sized Array literal +# [1, 2, '...', 10] +# +# # good +# # Reading huge Array from external data source +# # File.readlines('numbers.txt', chomp: true).map!(&:to_i) +# +# # good +# # Reasonably sized Hash literal +# { 1 => 1, 2 => 2, '...' => '...', 10 => 10} +# +# # good +# # Reading huge Hash from external data source +# CSV.foreach('numbers.csv', headers: true).each_with_object({}) do |row, hash| +# hash[row["key"].to_i] = row["value"].to_i +# end +# +# # good +# # Reasonably sized Set "literal" +# Set[1, 2, '...', 10] +# +# # good +# # Reading huge Set from external data source +# SomeFramework.config_for(:something)[:numbers].to_set +# +# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#50 +class RuboCop::Cop::Metrics::CollectionLiteralLength < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#55 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#55 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#60 + def on_index(node); end + + # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#64 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#70 + def collection_threshold; end +end + +# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#51 +RuboCop::Cop::Metrics::CollectionLiteralLength::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#53 +RuboCop::Cop::Metrics::CollectionLiteralLength::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that the cyclomatic complexity of methods is not higher +# than the configured maximum. The cyclomatic complexity is the number of +# linearly independent paths through a method. The algorithm counts +# decision points and adds one. +# +# An if statement (or unless or ?:) increases the complexity by one. An +# else branch does not, since it doesn't add a decision point. The && +# operator (or keyword and) can be converted to a nested if statement, +# and ||/or is shorthand for a sequence of ifs, so they also add one. +# Loops can be said to have an exit condition, so they add one. +# Blocks that are calls to builtin iteration methods +# (e.g. `ary.map{...}) also add one, others are ignored. +# +# def each_child_node(*types) # count begins: 1 +# unless block_given? # unless: +1 +# return to_enum(__method__, *types) +# +# children.each do |child| # each{}: +1 +# next unless child.is_a?(Node) # unless: +1 +# +# yield child if types.empty? || # if: +1, ||: +1 +# types.include?(child.type) +# end +# +# self +# end # total: 6 +# +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#32 +class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount + include ::RuboCop::Cop::MethodComplexity + include ::RuboCop::Cop::Metrics::Utils::IteratingBlock + + private + + # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#42 + def complexity_score_for(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#49 + def count_block?(block); end +end + +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#37 +RuboCop::Cop::Metrics::CyclomaticComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#36 +RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) + +# Checks if the length of a method exceeds some maximum value. +# Comment lines can optionally be allowed. +# The maximum allowed length is configurable. +# +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct +# will be counted as one line regardless of its actual size. +# +# NOTE: The `ExcludedMethods` and `IgnoredMethods` configuration is +# deprecated and only kept for backwards compatibility. +# Please use `AllowedMethods` and `AllowedPatterns` instead. +# By default, there are no methods to allowed. +# +# @example CountAsOne: ['array', 'heredoc', 'method_call'] +# +# def m +# array = [ # +1 +# 1, +# 2 +# ] +# +# hash = { # +3 +# key: 'value' +# } +# +# <<~HEREDOC # +1 +# Heredoc +# content. +# HEREDOC +# +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#42 +class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CodeLength + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#56 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#49 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#49 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#56 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#65 + def cop_label; end +end + +# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#47 +RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String) + +# Checks if the length of a module exceeds some maximum value. +# Comment lines can optionally be ignored. +# The maximum allowed length is configurable. +# +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct +# will be counted as one line regardless of its actual size. +# +# @example CountAsOne: ['array', 'heredoc', 'method_call'] +# +# module M +# ARRAY = [ # +1 +# 1, +# 2 +# ] +# +# HASH = { # +3 +# key: 'value' +# } +# +# MSG = <<~HEREDOC # +1 +# Heredoc +# content. +# HEREDOC +# +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/module_length.rb#37 +class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CodeLength + + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#51 + def module_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#44 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#40 + def on_module(node); end + + private + + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#55 + def message(length, max_length); end +end + +# Checks for methods with too many parameters. +# +# The maximum number of parameters is configurable. +# Keyword arguments can optionally be excluded from the total count, +# as they add less complexity than positional or optional parameters. +# +# Any number of arguments for `initialize` method inside a block of +# `Struct.new` and `Data.define` like this is always allowed: +# +# [source,ruby] +# ---- +# Struct.new(:one, :two, :three, :four, :five, keyword_init: true) do +# def initialize(one:, two:, three:, four:, five:) +# end +# end +# ---- +# +# This is because checking the number of arguments of the `initialize` method +# does not make sense. +# +# NOTE: Explicit block argument `&block` is not counted to prevent +# erroneous change that is avoided by making block argument implicit. +# +# This cop also checks for the maximum number of optional parameters. +# This can be configured using the `MaxOptionalParameters` config option. +# +# @example Max: 3 +# # good +# def foo(a, b, c = 1) +# end +# @example Max: 2 +# # bad +# def foo(a, b, c = 1) +# end +# @example CountKeywordArgs: true (default) +# # counts keyword args towards the maximum +# +# # bad (assuming Max is 3) +# def foo(a, b, c, d: 1) +# end +# +# # good (assuming Max is 3) +# def foo(a, b, c: 1) +# end +# @example CountKeywordArgs: false +# # don't count keyword args towards the maximum +# +# # good (assuming Max is 3) +# def foo(a, b, c, d: 1) +# end +# @example MaxOptionalParameters: 3 (default) +# # good +# def foo(a = 1, b = 2, c = 3) +# end +# @example MaxOptionalParameters: 2 +# # bad +# def foo(a = 1, b = 2, c = 3) +# end +# +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#70 +class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#121 + def argument_to_lambda_or_proc?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max_optional_parameters=(value); end + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#104 + def on_args(node); end + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#81 + def struct_new_or_data_define_block?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#125 + def args_count(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#141 + def count_keyword_args?; end + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#137 + def max_optional_parameters; end + + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#133 + def max_params; end +end + +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#74 +RuboCop::Cop::Metrics::ParameterLists::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#77 +RuboCop::Cop::Metrics::ParameterLists::NAMED_KEYWORD_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#75 +RuboCop::Cop::Metrics::ParameterLists::OPTIONAL_PARAMETERS_MSG = T.let(T.unsafe(nil), String) + +# Tries to produce a complexity score that's a measure of the +# complexity the reader experiences when looking at a method. For that +# reason it considers `when` nodes as something that doesn't add as much +# complexity as an `if` or a `&&`. Except if it's one of those special +# `case`/`when` constructs where there's no expression after `case`. Then +# the cop treats it as an `if`/`elsif`/`elsif`... and lets all the `when` +# nodes count. In contrast to the CyclomaticComplexity cop, this cop +# considers `else` nodes as adding complexity. +# +# @example +# +# def my_method # 1 +# if cond # 1 +# case var # 2 (0.8 + 4 * 0.2, rounded) +# when 1 then func_one +# when 2 then func_two +# when 3 then func_three +# when 4..10 then func_other +# end +# else # 1 +# do_something until a && b # 2 +# end # === +# end # 7 complexity points +# +# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#29 +class RuboCop::Cop::Metrics::PerceivedComplexity < ::RuboCop::Cop::Metrics::CyclomaticComplexity + private + + # source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#36 + def complexity_score_for(node); end +end + +# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#32 +RuboCop::Cop::Metrics::PerceivedComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#30 +RuboCop::Cop::Metrics::PerceivedComplexity::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#6 +module RuboCop::Cop::Metrics::Utils; end + +# > ABC is .. a software size metric .. computed by counting the number +# > of assignments, branches and conditions for a section of code. +# > http://c2.com/cgi/wiki?AbcMetric +# +# We separate the *calculator* from the *cop* so that the calculation, +# the formula itself, is easier to test. +# +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#13 +class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator + include ::RuboCop::AST::Sexp + include ::RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount + include ::RuboCop::Cop::Metrics::Utils::IteratingBlock + include ::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount + + # @return [AbcSizeCalculator] a new instance of AbcSizeCalculator + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 + def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#42 + def calculate; end + + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 + def calculate_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#65 + def else_branch?(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 + def evaluate_branch_nodes(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#60 + def evaluate_condition_node(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#127 + def argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#86 + def assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#123 + def branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#119 + def capturing_variable?(name); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#95 + def compound_assignment(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#131 + def condition?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#108 + def simple_assignment?(node); end + + # @yield [node] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#71 + def visit_depth_last(node, &block); end + + class << self + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#30 + def calculate(node, discount_repeated_attributes: T.unsafe(nil)); end + end +end + +# > Branch -- an explicit forward program branch out of scope -- a +# > function call, class method call .. +# > http://c2.com/cgi/wiki?AbcMetric +# +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#21 +RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::BRANCH_NODES = T.let(T.unsafe(nil), Array) + +# > Condition -- a logical/Boolean test, == != <= >= < > else case +# > default try catch ? and unary conditionals. +# > http://c2.com/cgi/wiki?AbcMetric +# +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#26 +RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::CONDITION_NODES = T.let(T.unsafe(nil), Array) + +# Helps to calculate code length for the provided node. +# +# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#8 +class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator + include ::RuboCop::PathUtil + include ::RuboCop::Cop::Util + extend ::RuboCop::AST::NodePattern::Macros + + # @return [CodeLengthCalculator] a new instance of CodeLengthCalculator + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#16 + def initialize(node, processed_source, count_comments: T.unsafe(nil), foldable_types: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#24 + def calculate; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#182 + def another_args?(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#42 + def build_foldable_checks(types); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#90 + def classlike_code_length(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#138 + def classlike_node?(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#66 + def code_length(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#163 + def count_comments?; end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#126 + def each_top_level_descendant(node, types, &block); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#146 + def extract_body(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#142 + def foldable_node?(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#121 + def heredoc_length(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#86 + def heredoc_node?(node); end + + # Returns true for lines that shall not be included in the count. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#159 + def irrelevant_line?(source_line); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#110 + def line_numbers_of_inner_nodes(node, *types); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#106 + def namespace_module?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#186 + def node_with_heredoc?(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#60 + def normalize_foldable_types(types); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#167 + def omit_length(descendant); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#178 + def parenthesized?(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#190 + def source_from_node_with_heredoc(node); end +end + +# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#13 +RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::CLASSLIKE_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#12 +RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::FOLDABLE_TYPES = T.let(T.unsafe(nil), Array) + +# Used to identify iterating blocks like `.map{}` and `.map(&:...)` +# +# source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#8 +module RuboCop::Cop::Metrics::Utils::IteratingBlock + # Returns the name of the method called with a block + # if node is a block node, or a block-pass node. + # + # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#37 + def block_method_name(node); end + + # Returns nil if node is neither a block node or a block-pass node. + # Otherwise returns true/false if method call is a known iterating call + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#53 + def iterating_block?(node); end + + # Returns true iff name is a known iterating type (e.g. :each, :transform_values) + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#47 + def iterating_method?(name); end +end + +# source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#33 +RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T.unsafe(nil), Set) + +# Identifies repetitions `{c}send` calls with no arguments: +# +# foo.bar +# foo.bar # => repeated +# foo.bar.baz.qux # => inner send repeated +# foo.bar.baz.other # => both inner send repeated +# foo.bar(2) # => not repeated +# +# It also invalidates sequences if a receiver is reassigned: +# +# xx.foo.bar +# xx.foo.baz # => inner send repeated +# self.xx = any # => invalidates everything so far +# xx.foo.baz # => no repetition +# self.xx.foo.baz # => all repeated +# +# @api private +# +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#25 +module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount + include ::RuboCop::AST::Sexp + extend ::RuboCop::AST::NodePattern::Macros + + # Plug into the calculator + # + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 + def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#61 + def attribute_call?(param0 = T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 + def calculate_node(node); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#43 + def discount_repeated_attributes?; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 + def evaluate_branch_nodes(node); end + + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#92 + def root_node?(param0 = T.unsafe(nil)); end + + private + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#66 + def discount_repeated_attribute?(send_node); end + + # Returns the "known_attributes" for the `node` by walking the receiver tree + # If at any step the subdirectory does not exist, it is yielded with the + # associated key (method_name) + # If the node is not a series of `(c)send` calls with no arguments, + # then `nil` is yielded + # + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#103 + def find_attributes(node, &block); end + + # or `nil` if it is not a setter. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#126 + def setter_to_getter(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#80 + def update_repeated_attribute(node); end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#117 +RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount::VAR_SETTER_TO_GETTER = T.let(T.unsafe(nil), Hash) + +# Identifies repetitions `&.` on the same variable: +# +# my_var&.foo +# my_var&.bar # => repeated +# my_var = baz # => reset +# my_var&.qux # => not repeated +# +# @api private +# +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#15 +module RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#20 + def discount_for_repeated_csend?(csend_node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#34 + def reset_on_lvasgn(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#16 + def reset_repeated_csend; end +end + +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#5 +module RuboCop::Cop::Migration; end + +# department name. +# +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#8 +class RuboCop::Cop::Migration::DepartmentName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#21 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#47 + def check_cop_name(name, comment, offset); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#69 + def contain_unexpected_character_for_department_name?(name); end + + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#43 + def disable_comment_offset; end + + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#73 + def qualified_legacy_cop_name(cop_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#63 + def valid_content_token?(content_token); end +end + +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#14 +RuboCop::Cop::Migration::DepartmentName::DISABLE_COMMENT_FORMAT = T.let(T.unsafe(nil), Regexp) + +# The token that makes up a disable comment. +# `DepartmentName/CopName` or` all`. +# +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#19 +RuboCop::Cop::Migration::DepartmentName::DISABLING_COPS_CONTENT_TOKEN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#12 +RuboCop::Cop::Migration::DepartmentName::MSG = T.let(T.unsafe(nil), String) + +# Common functionality for checking minimum body length. +# +# source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#6 +module RuboCop::Cop::MinBodyLength + private + + # source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#13 + def min_body_length; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#9 + def min_body_length?(node); end +end + +# Common functionality for checking minimum branches count. +# +# source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#6 +module RuboCop::Cop::MinBranchesCount + private + + # source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#29 + def if_conditional_branches(node, branches = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#22 + def min_branches_count; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#9 + def min_branches_count?(node); end +end + +# Common code for indenting the first elements in multiline +# array literals, hash literals, and method definitions. +# +# source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#7 +module RuboCop::Cop::MultilineElementIndentation + private + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#42 + def check_expected_style(styles); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#26 + def check_first(first, left_brace, left_parenthesis, offset); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#80 + def detected_styles(actual_column, offset, left_parenthesis, left_brace); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#85 + def detected_styles_for_column(column, left_parenthesis, left_brace); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#10 + def each_argument_node(node, type); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#66 + def hash_pair_where_value_beginning_with(left_brace, first); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#98 + def incorrect_style_detected(styles, first, base_column_type); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#50 + def indent_base(left_brace, first, left_parenthesis); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#72 + def key_and_value_begin_on_same_line?(pair); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#76 + def right_sibling_begins_on_subsequent_line?(pair); end +end + +# Common functionality for checking for a line break before each +# element in a multi-line collection. +# +# source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#7 +module RuboCop::Cop::MultilineElementLineBreaks + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#23 + def all_on_same_line?(nodes, ignore_last: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#10 + def check_line_breaks(_node, children, ignore_last: T.unsafe(nil)); end +end + +# Common functionality for checking multiline method calls and binary +# operations. +# +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#7 +module RuboCop::Cop::MultilineExpressionIndentation + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#132 + def argument_in_method_call(node, kind); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#188 + def assignment_rhs(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#65 + def check(range, node, lhs, rhs); end + + # The correct indentation of `node` is usually `IndentationWidth`, with + # one exception: prefix keywords. + # + # ``` + # while foo && # Here, `while` is called a "prefix keyword" + # bar # This is called "special indentation" + # baz + # end + # ``` + # + # Note that *postfix conditionals* do *not* get "special indentation". + # + # ``` + # next if foo && + # bar # normal indentation, not special + # ``` + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#55 + def correct_indentation(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#160 + def disqualified_rhs?(candidate, ancestor); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#204 + def grouped_expression?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#73 + def incorrect_style_detected(range, node, lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#85 + def indentation(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#122 + def indented_keyword_expression(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#208 + def inside_arg_list_parentheses?(node, ancestor); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#99 + def keyword_message_tail(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#107 + def kw_node_with_special_indentation(node); end + + # In a chain of method calls, we regard the top call node as the base + # for indentation of all lines following the first. For example: + # a. + # b c { block }. <-- b is indented relative to a + # d <-- d is indented relative to a + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#32 + def left_hand_side(lhs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#198 + def not_for_this_cop?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#89 + def operation_description(node, rhs); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#146 + def part_of_assignment_rhs(node, candidate); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#184 + def part_of_block_body?(candidate, block_node); end + + # Returns true if `node` is a conditional whose `body` and `condition` + # begin on the same line. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#217 + def postfix_conditional?(node); end + + # The []= operator and setters (a.b = c) are parsed as :send nodes. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#176 + def valid_method_rhs_candidate?(candidate, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#165 + def valid_rhs?(candidate, ancestor); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#180 + def valid_rhs_candidate?(candidate, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#221 + def within_node?(inner, outer); end +end + +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#11 +RuboCop::Cop::MultilineExpressionIndentation::ASSIGNMENT_MESSAGE_TAIL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#10 +RuboCop::Cop::MultilineExpressionIndentation::DEFAULT_MESSAGE_TAIL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#8 +RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#12 +RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_MESSAGE_TAIL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#9 +RuboCop::Cop::MultilineExpressionIndentation::UNALIGNED_RHS_TYPES = T.let(T.unsafe(nil), Array) + +# Autocorrection logic for the closing brace of a literal either +# on the same line as the last contained elements, or a new line. +# +# source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#7 +class RuboCop::Cop::MultilineLiteralBraceCorrector + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MultilineLiteralBraceLayout + include ::RuboCop::Cop::RangeHelp + + # @return [MultilineLiteralBraceCorrector] a new instance of MultilineLiteralBraceCorrector + # + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#15 + def initialize(corrector, node, processed_source); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#21 + def call; end + + private + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#61 + def content_if_comment_present(corrector, node); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#51 + def correct_heredoc_argument_method_chain(corrector, end_range); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#46 + def correct_next_line_brace(corrector, end_range); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#42 + def correct_same_line_brace(corrector); end + + # Returns the value of attribute corrector. + # + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 + def corrector; end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#94 + def last_element_range_with_trailing_comma(node); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#103 + def last_element_trailing_comma_range(node); end + + # Returns the value of attribute node. + # + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 + def node; end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 + def processed_source; end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#90 + def remove_trailing_content_of_comment(corrector, range); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#80 + def select_content_to_be_inserted_after_last_element(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#73 + def use_heredoc_argument_method_chain?(parent); end + + class << self + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#11 + def correct(corrector, node, processed_source); end + end +end + +# Common functionality for checking the closing brace of a literal is +# either on the same line as the last contained elements or a new line. +# +# source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#7 +module RuboCop::Cop::MultilineLiteralBraceLayout + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + private + + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#34 + def check(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#12 + def check_brace_layout(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#42 + def check_new_line(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#50 + def check_same_line(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#58 + def check_symmetrical(node); end + + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#86 + def children(node); end + + # This method depends on the fact that we have guarded + # against implicit and empty literals. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#98 + def closing_brace_on_same_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#74 + def empty_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#82 + def ignored_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#78 + def implicit_literal?(node); end + + # Starting with the parent node and recursively for the parent node's + # children, check if the node is a HEREDOC and if the HEREDOC ends below + # or on the last line of the parent node. + # + # Example: + # + # # node is `b: ...` parameter + # # last_line_heredoc?(node) => false + # foo(a, + # b: { + # a: 1, + # c: <<-EOM + # baz + # EOM + # } + # ) + # + # # node is `b: ...` parameter + # # last_line_heredoc?(node) => true + # foo(a, + # b: <<-EOM + # baz + # EOM + # ) + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#126 + def last_line_heredoc?(node, parent = T.unsafe(nil)); end + + # Returns true for the case + # [a, + # b # comment + # ].some_method + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#26 + def new_line_needed_before_closing_brace?(node); end + + # This method depends on the fact that we have guarded + # against implicit and empty literals. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#92 + def opening_brace_on_same_line?(node); end +end + +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#5 +module RuboCop::Cop::Naming; end + +# Makes sure that accessor methods are named properly. Applies +# to both instance and class methods. +# +# NOTE: Offenses are only registered for methods with the expected +# arity. Getters (`get_attribute`) must have no arguments to be +# registered, and setters (`set_attribute(value)`) must have exactly +# one. +# +# @example +# # bad +# def set_attribute(value) +# end +# +# # good +# def attribute=(value) +# end +# +# # bad +# def get_attribute +# end +# +# # good +# def attribute +# end +# +# # accepted, incorrect arity for getter +# def get_value(attr) +# end +# +# # accepted, incorrect arity for setter +# def set_value +# end +# +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#38 +class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#61 + def bad_reader_name?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#65 + def bad_writer_name?(node); end + + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#53 + def message(node); end +end + +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#39 +RuboCop::Cop::Naming::AccessorMethodName::MSG_READER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#40 +RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), String) + +# Checks for non-ascii characters in identifier and constant names. +# Identifiers are always checked and whether constants are checked +# can be controlled using AsciiConstants config. +# +# @example +# # bad +# def καλημερα # Greek alphabet (non-ascii) +# end +# +# # bad +# def こんにちはと言う # Japanese character (non-ascii) +# end +# +# # bad +# def hello_🍣 # Emoji (non-ascii) +# end +# +# # good +# def say_hello +# end +# +# # bad +# 신장 = 10 # Hangul character (non-ascii) +# +# # good +# height = 10 +# +# # bad +# params[:عرض_gteq] # Arabic character (non-ascii) +# +# # good +# params[:width_gteq] +# @example AsciiConstants: true (default) +# # bad +# class Foö +# end +# +# FOÖ = "foo" +# @example AsciiConstants: false +# # good +# class Foö +# end +# +# FOÖ = "foo" +# +# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#53 +class RuboCop::Cop::Naming::AsciiIdentifiers < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#59 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#84 + def first_non_ascii_chars(string); end + + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#74 + def first_offense_range(identifier); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#70 + def should_check?(token); end +end + +# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#57 +RuboCop::Cop::Naming::AsciiIdentifiers::CONSTANT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#56 +RuboCop::Cop::Naming::AsciiIdentifiers::IDENTIFIER_MSG = T.let(T.unsafe(nil), String) + +# Makes sure that certain binary operator methods have their +# sole parameter named `other`. +# +# @example +# +# # bad +# def +(amount); end +# +# # good +# def +(other); end +# +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#16 +class RuboCop::Cop::Naming::BinaryOperatorParameterName < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#29 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#25 + def op_method_candidate?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#45 + def op_method?(name); end +end + +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#22 +RuboCop::Cop::Naming::BinaryOperatorParameterName::EXCLUDED = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#19 +RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#21 +RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array) + +# In Ruby 3.1, anonymous block forwarding has been added. +# +# This cop identifies places where `do_something(&block)` can be replaced +# by `do_something(&)`. +# +# It also supports the opposite style by alternative `explicit` option. +# You can specify the block variable name for autocorrection with `BlockForwardingName`. +# The default variable name is `block`. If the name is already in use, it will not be +# autocorrected. +# +# @example EnforcedStyle: anonymous (default) +# +# # bad +# def foo(&block) +# bar(&block) +# end +# +# # good +# def foo(&) +# bar(&) +# end +# @example EnforcedStyle: explicit +# +# # bad +# def foo(&) +# bar(&) +# end +# +# # good +# def foo(&block) +# bar(&block) +# end +# +# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#40 +class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87 + def anonymous_block_argument?(node); end + + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#119 + def block_forwarding_name; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#73 + def expected_block_forwarding_style?(node, last_argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#91 + def explicit_block_argument?(node); end + + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#95 + def register_offense(block_argument, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#111 + def use_block_argument_as_local_variable?(node, last_argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#83 + def use_kwarg_in_method_definition?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#50 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#48 +RuboCop::Cop::Naming::BlockForwarding::MSG = T.let(T.unsafe(nil), String) + +# Checks block parameter names for how descriptive they +# are. It is highly configurable. +# +# The `MinNameLength` config option takes an integer. It represents +# the minimum amount of characters the name must be. Its default is 1. +# The `AllowNamesEndingInNumbers` config option takes a boolean. When +# set to false, this cop will register offenses for names ending with +# numbers. Its default is false. The `AllowedNames` config option +# takes an array of permitted names that will never register an +# offense. The `ForbiddenNames` config option takes an array of +# restricted names that will always register an offense. +# +# @example +# # bad +# bar do |varOne, varTwo| +# varOne + varTwo +# end +# +# # With `AllowNamesEndingInNumbers` set to false +# foo { |num1, num2| num1 * num2 } +# +# # With `MinNameLength` set to number greater than 1 +# baz { |a, b, c| do_stuff(a, b, c) } +# +# # good +# bar do |thud, fred| +# thud + fred +# end +# +# foo { |speed, distance| speed * distance } +# +# baz { |age, height, gender| do_stuff(age, height, gender) } +# +# source://rubocop//lib/rubocop/cop/naming/block_parameter_name.rb#38 +class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::UncommunicativeName + + # source://rubocop//lib/rubocop/cop/naming/block_parameter_name.rb#41 + def on_block(node); end +end + +# Checks for class and module names with +# an underscore in them. +# +# `AllowedNames` config takes an array of permitted names. +# Its default value is `['module_parent']`. +# These names can be full class/module names or part of the name. +# eg. Adding `my_class` to the `AllowedNames` config will allow names like +# `my_class`, `my_class::User`, `App::my_class`, `App::my_class::User`, etc. +# +# @example +# # bad +# class My_Class +# end +# module My_Module +# end +# +# # good +# class MyClass +# end +# module MyModule +# end +# class module_parent::MyModule +# end +# +# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#29 +class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 + def on_module(node); end +end + +# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#30 +RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String) + +# Checks whether constant names are written using +# SCREAMING_SNAKE_CASE. +# +# To avoid false positives, it ignores cases in which we cannot know +# for certain the type of value that would be assigned to a constant. +# +# @example +# # bad +# InchInCm = 2.54 +# INCHinCM = 2.54 +# Inch_In_Cm = 2.54 +# +# # good +# INCH_IN_CM = 2.54 +# +# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#20 +class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#27 + def class_or_struct_return_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#69 + def literal_receiver?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#33 + def on_casgn(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#56 + def allowed_assignment?(value); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#74 + def allowed_conditional_expression_on_rhs?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#63 + def allowed_method_call_on_rhs?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#78 + def contains_constant?(node); end +end + +# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#21 +RuboCop::Cop::Naming::ConstantName::MSG = T.let(T.unsafe(nil), String) + +# Use POSIX character classes, so we allow accented characters rather +# than just standard ASCII characters +# +# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#24 +RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) + +# Makes sure that Ruby source files have snake_case +# names. Ruby scripts (i.e. source files with a shebang in the +# first line) are ignored. +# +# The cop also ignores `.gemspec` files, because Bundler +# recommends using dashes to separate namespaces in nested gems +# (i.e. `bundler-console` becomes `Bundler::Console`). As such, the +# gemspec is supposed to be named `bundler-console.gemspec`. +# +# When `ExpectMatchingDefinition` (default: `false`) is `true`, the cop requires +# each file to have a class, module or `Struct` defined in it that matches +# the filename. This can be further configured using +# `CheckDefinitionPathHierarchy` (default: `true`) to determine whether the +# path should match the namespace of the above definition. +# +# When `IgnoreExecutableScripts` (default: `true`) is `true`, files that start +# with a shebang line are not considered by the cop. +# +# When `Regex` is set, the cop will flag any filename that does not match +# the regular expression. +# +# @example +# # bad +# lib/layoutManager.rb +# +# anything/usingCamelCase +# +# # good +# lib/layout_manager.rb +# +# anything/using_snake_case.rake +# +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#39 +class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#56 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#49 + def struct_definition(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#134 + def allowed_acronyms; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#96 + def bad_filename_allowed?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#122 + def check_definition_path_hierarchy?; end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#169 + def defined_struct(node); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#126 + def definition_path_hierarchy_roots; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#118 + def expect_matching_definition?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#138 + def filename_good?(basename); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#147 + def find_class_or_module(node, namespace); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#165 + def find_definition(node); end + + # @yield [source_range(processed_source.buffer, 1, 0), msg] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#65 + def for_bad_filename(file_path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#114 + def ignore_executable_scripts?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#202 + def match?(expected); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#206 + def match_acronym?(expected, name); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#174 + def match_namespace(node, namespace, expected); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#92 + def matching_class?(file_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#88 + def matching_definition?(file_path); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#100 + def no_definition_message(basename, file_path); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#106 + def other_message(basename); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#188 + def partial_matcher!(expected); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#77 + def perform_class_and_module_naming_checks(file_path, basename); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#130 + def regex; end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#240 + def to_module_name(basename); end + + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#213 + def to_namespace(path); end +end + +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#43 +RuboCop::Cop::Naming::FileName::MSG_NO_DEFINITION = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#44 +RuboCop::Cop::Naming::FileName::MSG_REGEX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#42 +RuboCop::Cop::Naming::FileName::MSG_SNAKE_CASE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#46 +RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) + +# Checks that your heredocs are using the configured case. +# By default it is configured to enforce uppercase heredocs. +# +# @example EnforcedStyle: uppercase (default) +# # bad +# <<-sql +# SELECT * FROM foo +# sql +# +# # good +# <<-SQL +# SELECT * FROM foo +# SQL +# @example EnforcedStyle: lowercase +# # bad +# <<-SQL +# SELECT * FROM foo +# SQL +# +# # good +# <<-sql +# SELECT * FROM foo +# sql +# +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#30 +class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Heredoc + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#37 + def on_heredoc(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#54 + def correct_case_delimiters?(node); end + + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#58 + def correct_delimiters(source); end + + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#50 + def message(_node); end +end + +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#35 +RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String) + +# Checks that your heredocs are using meaningful delimiters. +# By default it disallows `END` and `EO*`, and can be configured through +# forbidden listing additional delimiters. +# +# @example +# +# # good +# <<-SQL +# SELECT * FROM foo +# SQL +# +# # bad +# <<-END +# SELECT * FROM foo +# END +# +# # bad +# <<-EOS +# SELECT * FROM foo +# EOS +# +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#26 +class RuboCop::Cop::Naming::HeredocDelimiterNaming < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Heredoc + + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#31 + def on_heredoc(node); end + + private + + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#51 + def forbidden_delimiters; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#41 + def meaningful_delimiters?(node); end +end + +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#29 +RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String) + +# Recommends the use of inclusive language instead of problematic terms. +# The cop can check the following locations for offenses: +# +# - identifiers +# - constants +# - variables +# - strings +# - symbols +# - comments +# - file paths +# +# Each of these locations can be individually enabled/disabled via configuration, +# for example CheckIdentifiers = true/false. +# +# Flagged terms are configurable for the cop. For each flagged term an optional +# Regex can be specified to identify offenses. Suggestions for replacing a flagged term can +# be configured and will be displayed as part of the offense message. +# An AllowedRegex can be specified for a flagged term to exempt allowed uses of the term. +# `WholeWord: true` can be set on a flagged term to indicate the cop should only match when +# a term matches the whole word (partial matches will not be offenses). +# +# The cop supports autocorrection when there is only one suggestion. When there are multiple +# suggestions, the best suggestion cannot be identified and will not be autocorrected. +# +# @example FlaggedTerms: { whitelist: { Suggestions: ['allowlist'] } } +# # Suggest replacing identifier whitelist with allowlist +# +# # bad +# whitelist_users = %w(user1 user1) +# +# # good +# allowlist_users = %w(user1 user2) +# @example FlaggedTerms: { master: { Suggestions: ['main', 'primary', 'leader'] } } +# # Suggest replacing master in an instance variable name with main, primary, or leader +# +# # bad +# @master_node = 'node1.example.com' +# +# # good +# @primary_node = 'node1.example.com' +# @example FlaggedTerms: { whitelist: { Regex: !ruby/regexp '/white[-_\s]?list' } } +# # Identify problematic terms using a Regexp +# +# # bad +# white_list = %w(user1 user2) +# +# # good +# allow_list = %w(user1 user2) +# @example FlaggedTerms: { master: { AllowedRegex: 'master\'?s degree' } } +# # Specify allowed uses of the flagged term as a string or regexp. +# +# # bad +# # They had a masters +# +# # good +# # They had a master's degree +# @example FlaggedTerms: { slave: { WholeWord: true } } +# # Specify that only terms that are full matches will be flagged. +# +# # bad +# Slave +# +# # good (won't be flagged despite containing `slave`) +# TeslaVehicle +# +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#74 +class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # @return [InclusiveLanguage] a new instance of InclusiveLanguage + # + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#84 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#93 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#111 + def add_offenses_for_token(token, word_locations); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#167 + def add_to_flagged_term_hash(regex_string, term, term_definition); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#193 + def array_to_ignorecase_regex(strings); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#126 + def check_token?(type); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#244 + def create_message(word, message = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#218 + def create_multiple_word_message_for_file(words); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#214 + def create_single_word_message_for_file(word); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#189 + def ensure_regex_string(regex); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#160 + def extract_regexp(term, term_definition); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#252 + def find_flagged_term(word); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#266 + def format_suggestions(suggestions); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#197 + def investigate_filepath; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#100 + def investigate_tokens; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#232 + def mask_input(str); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#281 + def offense_range(token, word); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#130 + def preprocess_check_config; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#144 + def preprocess_flagged_terms; end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#259 + def preprocess_suggestions(suggestions); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#179 + def process_allowed_regex(allowed); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#222 + def scan_for_words(input); end + + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#174 + def set_regexes(flagged_term_strings, allowed_strings); end +end + +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#78 +RuboCop::Cop::Naming::InclusiveLanguage::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#79 +RuboCop::Cop::Naming::InclusiveLanguage::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#80 +RuboCop::Cop::Naming::InclusiveLanguage::MSG_FOR_FILE_PATH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 +class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct + # Returns the value of attribute position + # + # @return [Object] the current value of position + def position; end + + # Sets the attribute position + # + # @param value [Object] the value to set the attribute position to. + # @return [Object] the newly set value + def position=(_); end + + # Returns the value of attribute word + # + # @return [Object] the current value of word + def word; end + + # Sets the attribute word + # + # @param value [Object] the value to set the attribute word to. + # @return [Object] the newly set value + def word=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Checks for memoized methods whose instance variable name +# does not match the method name. Applies to both regular methods +# (defined with `def`) and dynamic methods (defined with +# `define_method` or `define_singleton_method`). +# +# This cop can be configured with the EnforcedStyleForLeadingUnderscores +# directive. It can be configured to allow for memoized instance variables +# prefixed with an underscore. Prefixing ivars with an underscore is a +# convention that is used to implicitly indicate that an ivar should not +# be set or referenced outside of the memoization method. +# +# @example EnforcedStyleForLeadingUnderscores: disallowed (default) +# # bad +# # Method foo is memoized using an instance variable that is +# # not `@foo`. This can cause confusion and bugs. +# def foo +# @something ||= calculate_expensive_thing +# end +# +# def foo +# return @something if defined?(@something) +# @something = calculate_expensive_thing +# end +# +# # good +# def _foo +# @foo ||= calculate_expensive_thing +# end +# +# # good +# def foo +# @foo ||= calculate_expensive_thing +# end +# +# # good +# def foo +# @foo ||= begin +# calculate_expensive_thing +# end +# end +# +# # good +# def foo +# helper_variable = something_we_need_to_calculate_foo +# @foo ||= calculate_expensive_thing(helper_variable) +# end +# +# # good +# define_method(:foo) do +# @foo ||= calculate_expensive_thing +# end +# +# # good +# define_method(:foo) do +# return @foo if defined?(@foo) +# @foo = calculate_expensive_thing +# end +# @example EnforcedStyleForLeadingUnderscores: required +# # bad +# def foo +# @something ||= calculate_expensive_thing +# end +# +# # bad +# def foo +# @foo ||= calculate_expensive_thing +# end +# +# def foo +# return @foo if defined?(@foo) +# @foo = calculate_expensive_thing +# end +# +# # good +# def foo +# @_foo ||= calculate_expensive_thing +# end +# +# # good +# def _foo +# @_foo ||= calculate_expensive_thing +# end +# +# def foo +# return @_foo if defined?(@_foo) +# @_foo = calculate_expensive_thing +# end +# +# # good +# define_method(:foo) do +# @_foo ||= calculate_expensive_thing +# end +# +# # good +# define_method(:foo) do +# return @_foo if defined?(@_foo) +# @_foo = calculate_expensive_thing +# end +# @example EnforcedStyleForLeadingUnderscores :optional +# # bad +# def foo +# @something ||= calculate_expensive_thing +# end +# +# # good +# def foo +# @foo ||= calculate_expensive_thing +# end +# +# # good +# def foo +# @_foo ||= calculate_expensive_thing +# end +# +# # good +# def _foo +# @_foo ||= calculate_expensive_thing +# end +# +# # good +# def foo +# return @_foo if defined?(@_foo) +# @_foo = calculate_expensive_thing +# end +# +# # good +# define_method(:foo) do +# @foo ||= calculate_expensive_thing +# end +# +# # good +# define_method(:foo) do +# @_foo ||= calculate_expensive_thing +# end +# +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#148 +class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#197 + def defined_memoized?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#160 + def method_definition?(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#205 + def on_defined?(node); end + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#170 + def on_or_asgn(node); end + + private + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#242 + def find_definition(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#253 + def matches?(method_name, ivar_assign); end + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#263 + def message(variable); end + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#238 + def style_parameter_name; end + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#271 + def suggested_var(method_name); end + + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#277 + def variable_name_candidates(method_name); end +end + +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#157 +RuboCop::Cop::Naming::MemoizedInstanceVariableName::DYNAMIC_DEFINE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#153 +RuboCop::Cop::Naming::MemoizedInstanceVariableName::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#155 +RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let(T.unsafe(nil), String) + +# Makes sure that all methods use the configured style, +# snake_case or camelCase, for their names. +# +# This cop has `AllowedPatterns` configuration option. +# +# Naming/MethodName: +# AllowedPatterns: +# - '\AonSelectionBulkChange\z' +# - '\AonSelectionCleared\z' +# +# Method names matching patterns are always allowed. +# +# @example EnforcedStyle: snake_case (default) +# # bad +# def fooBar; end +# +# # good +# def foo_bar; end +# @example EnforcedStyle: camelCase +# # bad +# def foo_bar; end +# +# # good +# def fooBar; end +# +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#31 +class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::ConfigurableFormatting + include ::RuboCop::Cop::ConfigurableNaming + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#55 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#55 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#44 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#42 + def str_name(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#39 + def sym_name(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#64 + def attr_name(name_item); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#75 + def message(style); end + + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#68 + def range_position(node); end +end + +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#36 +RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) + +# Checks method parameter names for how descriptive they +# are. It is highly configurable. +# +# The `MinNameLength` config option takes an integer. It represents +# the minimum amount of characters the name must be. Its default is 3. +# The `AllowNamesEndingInNumbers` config option takes a boolean. When +# set to false, this cop will register offenses for names ending with +# numbers. Its default is false. The `AllowedNames` config option +# takes an array of permitted names that will never register an +# offense. The `ForbiddenNames` config option takes an array of +# restricted names that will always register an offense. +# +# @example +# # bad +# def bar(varOne, varTwo) +# varOne + varTwo +# end +# +# # With `AllowNamesEndingInNumbers` set to false +# def foo(num1, num2) +# num1 * num2 +# end +# +# # With `MinNameLength` set to number greater than 1 +# def baz(a, b, c) +# do_stuff(a, b, c) +# end +# +# # good +# def bar(thud, fred) +# thud + fred +# end +# +# def foo(speed, distance) +# speed * distance +# end +# +# def baz(age_a, height_b, gender_c) +# do_stuff(age_a, height_b, gender_c) +# end +# +# source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#46 +class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::UncommunicativeName + + # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 + def on_defs(node); end +end + +# Checks that predicate methods names end with a question mark and +# do not start with a forbidden prefix. +# +# A method is determined to be a predicate method if its name starts +# with one of the prefixes defined in the `NamePrefix` configuration. +# You can change what prefixes are considered by changing this option. +# Any method name that starts with one of these prefixes is required by +# the cop to end with a `?`. Other methods can be allowed by adding to +# the `AllowedMethods` configuration. +# +# NOTE: The `is_a?` method is allowed by default. +# +# If `ForbiddenPrefixes` is set, methods that start with the configured +# prefixes will not be allowed and will be removed by autocorrection. +# +# In other words, if `ForbiddenPrefixes` is empty, a method named `is_foo` +# will register an offense only due to the lack of question mark (and will be +# autocorrected to `is_foo?`). If `ForbiddenPrefixes` contains `is_`, +# `is_foo` will register an offense both because the ? is missing and because of +# the `is_` prefix, and will be corrected to `foo?`. +# +# NOTE: `ForbiddenPrefixes` is only applied to prefixes in `NamePrefix`; +# a prefix in the former but not the latter will not be considered by +# this cop. +# +# @example +# # bad +# def is_even(value) +# end +# +# def is_even?(value) +# end +# +# # good +# def even?(value) +# end +# +# # bad +# def has_value +# end +# +# def has_value? +# end +# +# # good +# def value? +# end +# @example AllowedMethods: ['is_a?'] (default) +# # good +# def is_a?(value) +# end +# +# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#59 +class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#63 + def dynamic_method_define(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#82 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#82 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#69 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 + def allowed_method_name?(method_name, prefix); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#106 + def expected_name(method_name, prefix); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#120 + def forbidden_prefixes; end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#116 + def message(method_name, new_name); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#128 + def method_definition_macros(macro_name); end + + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#124 + def predicate_prefixes; end +end + +# Makes sure that rescued exceptions variables are named as +# expected. +# +# The `PreferredName` config option takes a `String`. It represents +# the required name of the variable. Its default is `e`. +# +# NOTE: This cop does not consider nested rescues because it cannot +# guarantee that the variable from the outer rescue is not used within +# the inner rescue (in which case, changing the inner variable would +# shadow the outer variable). +# +# @example PreferredName: e (default) +# # bad +# begin +# # do something +# rescue MyException => exception +# # do something +# end +# +# # good +# begin +# # do something +# rescue MyException => e +# # do something +# end +# +# # good +# begin +# # do something +# rescue MyException => _e +# # do something +# end +# @example PreferredName: exception +# # bad +# begin +# # do something +# rescue MyException => e +# # do something +# end +# +# # good +# begin +# # do something +# rescue MyException => exception +# # do something +# end +# +# # good +# begin +# # do something +# rescue MyException => _exception +# # do something +# end +# +# source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#61 +class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#66 + def on_resbody(node); end + + private + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#96 + def autocorrect(corrector, node, range, offending_name, preferred_name); end + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#116 + def correct_node(corrector, node, offending_name, preferred_name); end + + # If the exception variable is reassigned, that assignment needs to be corrected. + # Further `lvar` nodes will not be corrected though since they now refer to a + # different variable. + # + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#134 + def correct_reassignment(corrector, node, offending_name, preferred_name); end + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#159 + def message(node); end + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#91 + def offense_range(resbody); end + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#143 + def preferred_name(variable_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#165 + def shadowed_variable_name?(node); end + + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#152 + def variable_name(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#106 + def variable_name_matches?(node, name); end +end + +# source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#64 +RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), String) + +# Makes sure that all variables use the configured style, +# snake_case or camelCase, for their names. +# +# @example EnforcedStyle: snake_case (default) +# # bad +# fooBar = 1 +# +# # good +# foo_bar = 1 +# @example EnforcedStyle: camelCase +# # bad +# foo_bar = 1 +# +# # good +# fooBar = 1 +# @example AllowedIdentifiers: ['fooBar'] +# # good (with EnforcedStyle: snake_case) +# fooBar = 1 +# @example AllowedPatterns: ['_v\d+\z'] +# # good (with EnforcedStyle: camelCase) +# :release_v1 +# +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#31 +class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedIdentifiers + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::ConfigurableFormatting + include ::RuboCop::Cop::ConfigurableNaming + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_arg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_blockarg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_kwarg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_kwoptarg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_kwrestarg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_lvar(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_optarg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + def on_restarg(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#38 + def valid_name?(node, name, given_style = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#62 + def message(style); end +end + +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#36 +RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) + +# Makes sure that all numbered variables use the +# configured style, snake_case, normalcase, or non_integer, +# for their numbering. +# +# Additionally, `CheckMethodNames` and `CheckSymbols` configuration options +# can be used to specify whether method names and symbols should be checked. +# Both are enabled by default. +# +# @example EnforcedStyle: normalcase (default) +# # bad +# :some_sym_1 +# variable_1 = 1 +# +# def some_method_1; end +# +# def some_method1(arg_1); end +# +# # good +# :some_sym1 +# variable1 = 1 +# +# def some_method1; end +# +# def some_method1(arg1); end +# @example EnforcedStyle: snake_case +# # bad +# :some_sym1 +# variable1 = 1 +# +# def some_method1; end +# +# def some_method_1(arg1); end +# +# # good +# :some_sym_1 +# variable_1 = 1 +# +# def some_method_1; end +# +# def some_method_1(arg_1); end +# @example EnforcedStyle: non_integer +# # bad +# :some_sym1 +# :some_sym_1 +# +# variable1 = 1 +# variable_1 = 1 +# +# def some_method1; end +# +# def some_method_1; end +# +# def some_methodone(arg1); end +# def some_methodone(arg_1); end +# +# # good +# :some_symone +# :some_sym_one +# +# variableone = 1 +# variable_one = 1 +# +# def some_methodone; end +# +# def some_method_one; end +# +# def some_methodone(argone); end +# def some_methodone(arg_one); end +# +# # In the following examples, we assume `EnforcedStyle: normalcase` (default). +# @example CheckMethodNames: true (default) +# # bad +# def some_method_1; end +# @example CheckMethodNames: false +# # good +# def some_method_1; end +# @example CheckSymbols: true (default) +# # bad +# :some_sym_1 +# @example CheckSymbols: false +# # good +# :some_sym_1 +# @example AllowedIdentifiers: [capture3] +# # good +# expect(Open3).to receive(:capture3) +# @example AllowedPatterns: ['_v\d+\z'] +# # good +# :some_sym_v1 +# +# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#103 +class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedIdentifiers + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::ConfigurableFormatting + include ::RuboCop::Cop::ConfigurableNumbering + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + def on_arg(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#126 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#126 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#134 + def on_sym(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#110 + def valid_name?(node, name, given_style = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#143 + def message(style); end +end + +# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#108 +RuboCop::Cop::Naming::VariableNumber::MSG = T.let(T.unsafe(nil), String) + +# Some common code shared between `NegatedIf` and +# `NegatedWhile` cops. +# +# source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#7 +module RuboCop::Cop::NegativeConditional + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#18 + def empty_condition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#15 + def single_negative?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#20 + def check_negative_conditional(node, message:, &block); end +end + +# source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#10 +RuboCop::Cop::NegativeConditional::MSG = T.let(T.unsafe(nil), String) + +# This module provides a list of methods that are: +# 1. In the NilClass by default +# 2. Added to NilClass by explicitly requiring any standard libraries +# 3. Cop's configuration parameter AllowedMethods. +# +# source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#9 +module RuboCop::Cop::NilMethods + include ::RuboCop::Cop::AllowedMethods + + private + + # source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#14 + def nil_methods; end + + # source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#18 + def other_stdlib_methods; end +end + +# An offense represents a style violation detected by RuboCop. +# +# source://rubocop//lib/rubocop/cop/offense.rb#6 +class RuboCop::Cop::Offense + include ::Comparable + + # @api private + # @return [Offense] a new instance of Offense + # + # source://rubocop//lib/rubocop/cop/offense.rb#84 + def initialize(severity, location, message, cop_name, status = T.unsafe(nil), corrector = T.unsafe(nil)); end + + # Returns `-1`, `0`, or `+1` + # if this offense is less than, equal to, or greater than `other`. + # + # @api public + # @return [Integer] comparison result + # + # source://rubocop//lib/rubocop/cop/offense.rb#230 + def <=>(other); end + + # @api public + # @return [Boolean] returns `true` if two offenses contain same attributes + # + # source://rubocop//lib/rubocop/cop/offense.rb#211 + def ==(other); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#160 + def column; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#170 + def column_length; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#194 + def column_range; end + + # @api public + # @example + # 'LineLength' + # @return [String] a cop class name without department. + # i.e. type of the violation. + # + # source://rubocop//lib/rubocop/cop/offense.rb#51 + def cop_name; end + + # @api public + # @return [Boolean] whether this offense can be automatically corrected via + # autocorrect or a todo. + # + # source://rubocop//lib/rubocop/cop/offense.rb#102 + def correctable?; end + + # @api public + # @return [Boolean] whether this offense is automatically corrected via + # autocorrect or a todo. + # + # source://rubocop//lib/rubocop/cop/offense.rb#113 + def corrected?; end + + # @api public + # @return [Boolean] whether this offense is automatically disabled via a todo. + # + # source://rubocop//lib/rubocop/cop/offense.rb#123 + def corrected_with_todo?; end + + # @api public + # @return [Corrector | nil] the autocorrection for this offense, or `nil` when not available + # + # source://rubocop//lib/rubocop/cop/offense.rb#62 + def corrector; end + + # @api public + # @return [Boolean] whether this offense was locally disabled with a + # disable or todo where it occurred. + # + # source://rubocop//lib/rubocop/cop/offense.rb#134 + def disabled?; end + + # @api public + # @return [Boolean] returns `true` if two offenses contain same attributes + # + # source://rubocop//lib/rubocop/cop/offense.rb#211 + def eql?(other); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#179 + def first_line; end + + # source://rubocop//lib/rubocop/cop/offense.rb#219 + def hash; end + + # @api public + # @return [Parser::Source::Range] the range of the code that is highlighted + # + # source://rubocop//lib/rubocop/cop/offense.rb#142 + def highlighted_area; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#189 + def last_column; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#184 + def last_line; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#155 + def line; end + + # @api public + # @return [Parser::Source::Range] the location where the violation is detected. + # @see https://www.rubydoc.info/gems/parser/Parser/Source/Range Parser::Source::Range + # + # source://rubocop//lib/rubocop/cop/offense.rb#28 + def location; end + + # @api public + # @example + # 'Line is too long. [90/80]' + # @return [String] human-readable message + # + # source://rubocop//lib/rubocop/cop/offense.rb#39 + def message; end + + # Internally we use column number that start at 0, but when + # outputting column numbers, we want them to start at 1. One + # reason is that editors, such as Emacs, expect this. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#203 + def real_column; end + + # @api public + # @return [RuboCop::Cop::Severity] + # + # source://rubocop//lib/rubocop/cop/offense.rb#17 + def severity; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#165 + def source_line; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#54 + def status; end + + # This is just for debugging purpose. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/offense.rb#148 + def to_s; end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/offense.rb#10 +RuboCop::Cop::Offense::COMPARISON_ATTRIBUTES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/offense.rb#81 +RuboCop::Cop::Offense::NO_LOCATION = T.let(T.unsafe(nil), RuboCop::Cop::Offense::PseudoSourceRange) + +# source://rubocop//lib/rubocop/cop/offense.rb#64 +class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct + # Returns the value of attribute begin_pos + # + # @return [Object] the current value of begin_pos + def begin_pos; end + + # Sets the attribute begin_pos + # + # @param value [Object] the value to set the attribute begin_pos to. + # @return [Object] the newly set value + def begin_pos=(_); end + + # Returns the value of attribute column + # + # @return [Object] the current value of column + def column; end + + # Sets the attribute column + # + # @param value [Object] the value to set the attribute column to. + # @return [Object] the newly set value + def column=(_); end + + # source://rubocop//lib/rubocop/cop/offense.rb#70 + def column_range; end + + # Returns the value of attribute end_pos + # + # @return [Object] the current value of end_pos + def end_pos; end + + # Sets the attribute end_pos + # + # @param value [Object] the value to set the attribute end_pos to. + # @return [Object] the newly set value + def end_pos=(_); end + + # Returns the value of attribute line + # + # @return [Object] the current value of line + def first_line; end + + # Returns the value of attribute column + # + # @return [Object] the current value of column + def last_column; end + + # Returns the value of attribute line + # + # @return [Object] the current value of line + def last_line; end + + # source://rubocop//lib/rubocop/cop/offense.rb#74 + def length; end + + # Returns the value of attribute line + # + # @return [Object] the current value of line + def line; end + + # Sets the attribute line + # + # @param value [Object] the value to set the attribute line to. + # @return [Object] the newly set value + def line=(_); end + + # source://rubocop//lib/rubocop/cop/offense.rb#74 + def size; end + + # Returns the value of attribute source_line + # + # @return [Object] the current value of source_line + def source_line; end + + # Sets the attribute source_line + # + # @param value [Object] the value to set the attribute source_line to. + # @return [Object] the newly set value + def source_line=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Common functionality for cops checking if and unless expressions. +# +# source://rubocop//lib/rubocop/cop/mixin/on_normal_if_unless.rb#6 +module RuboCop::Cop::OnNormalIfUnless + # source://rubocop//lib/rubocop/cop/mixin/on_normal_if_unless.rb#7 + def on_if(node); end +end + +# This autocorrects gem dependency order +# +# source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#6 +class RuboCop::Cop::OrderedGemCorrector + extend ::RuboCop::Cop::OrderedGemNode + extend ::RuboCop::Cop::RangeHelp + + class << self + # Returns the value of attribute comments_as_separators. + # + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 + def comments_as_separators; end + + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#13 + def correct(processed_source, node, previous_declaration, comments_as_separators); end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 + def processed_source; end + + private + + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#26 + def declaration_with_comment(node); end + end +end + +# Common functionality for Bundler/OrderedGems and +# Gemspec/OrderedDependencies. +# +# source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#7 +module RuboCop::Cop::OrderedGemNode + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#23 + def case_insensitive_out_of_order?(string_a, string_b); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#27 + def consecutive_lines(previous, current); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#55 + def find_gem_name(gem_node); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#18 + def gem_canonical_name(name); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#49 + def gem_name(declaration_node); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#10 + def get_source_range(node, comments_as_separators); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#32 + def register_offense(previous, current); end + + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#61 + def treat_comments_as_separators; end +end + +# Common functionality for handling parentheses. +# +# source://rubocop//lib/rubocop/cop/mixin/parentheses.rb#6 +module RuboCop::Cop::Parentheses + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/parentheses.rb#9 + def parens_required?(node); end +end + +# This autocorrects parentheses +# +# source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#6 +class RuboCop::Cop::ParenthesesCorrector + extend ::RuboCop::Cop::RangeHelp + + class << self + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#12 + def correct(corrector, node); end + + private + + # Add a comma back after the heredoc identifier + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#74 + def add_heredoc_comma(corrector, node); end + + # If the node contains a heredoc, remove the comma too + # It'll be added back in the right place later + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#64 + def extend_range_for_heredoc(node, range); end + + # If removing parentheses leaves a comma on its own line, remove all the whitespace + # preceding it to prevent a syntax error. + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#41 + def handle_orphaned_comma(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#80 + def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#28 + def next_char_is_question_mark?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#32 + def only_closing_paren_before_comma?(node); end + + # Get a range for the closing parenthesis and all whitespace to the left of it + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#51 + def parens_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#24 + def ternary_condition?(node); end + end +end + +# Common functionality for handling percent arrays. +# +# source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#6 +module RuboCop::Cop::PercentArray + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#26 + def allowed_bracket_array?(node); end + + # @param node [RuboCop::AST::ArrayNode] + # @param elements [Array<String>] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#83 + def build_bracketed_array_with_appropriate_whitespace(elements:, node:); end + + # @param preferred_array_code [String] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#56 + def build_message_for_bracketed_array(preferred_array_code); end + + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#67 + def check_bracketed_array(node, literal_prefix); end + + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#36 + def check_percent_array(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#31 + def comments_in_array?(node); end + + # Override to determine values that are invalid in a percent array + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#22 + def invalid_percent_array_contents?(_node); end + + # Ruby does not allow percent arrays in an ambiguous block context. + # + # @example + # + # foo %i[bar baz] { qux } + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#14 + def invalid_percent_array_context?(node); end + + # Provides whitespace between elements for building a bracketed array. + # %w[ a b c ] + # ^^^ + # + # @param node [RuboCop::AST::ArrayNode] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#98 + def whitespace_between(node); end + + # Provides leading whitespace for building a bracketed array. + # %w[ a b c ] + # ^^ + # + # @param node [RuboCop::AST::ArrayNode] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#111 + def whitespace_leading(node); end + + # Provides trailing whitespace for building a bracketed array. + # %w[ a b c ] + # ^^^^ + # + # @param node [RuboCop::AST::ArrayNode] + # @return [String] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#120 + def whitespace_trailing(node); end +end + +# Common functionality for handling percent literals. +# +# source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#6 +module RuboCop::Cop::PercentLiteral + include ::RuboCop::Cop::RangeHelp + + private + + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#23 + def begin_source(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#11 + def percent_literal?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#17 + def process(node, *types); end + + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#27 + def type(node); end +end + +# This autocorrects percent literals +# +# source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#6 +class RuboCop::Cop::PercentLiteralCorrector + include ::RuboCop::PathUtil + include ::RuboCop::Cop::Util + + # @return [PercentLiteralCorrector] a new instance of PercentLiteralCorrector + # + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#11 + def initialize(config, preferred_delimiters); end + + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 + def config; end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#16 + def correct(corrector, node, char); end + + # Returns the value of attribute preferred_delimiters. + # + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 + def preferred_delimiters; end + + private + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#46 + def autocorrect_multiline_words(node, escape, delimiters); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#52 + def autocorrect_words(node, escape, delimiters); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#34 + def delimiters_for(type); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#100 + def end_content(source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#30 + def escape_words?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#78 + def first_line?(node, previous_line_num); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#89 + def fix_escaped_content(word_node, escape, delimiters); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#69 + def line_breaks(node, source, previous_line_num, base_line_num, node_index); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#38 + def new_contents(node, escape, delimiters); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#82 + def process_lines(node, previous_line_num, base_line_num, source_in_lines); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#58 + def process_multiline_words(node, escape, delimiters); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#96 + def substitute_escaped_delimiters(content, delimiters); end + + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#26 + def wrap_contents(corrector, node, contents, char, delimiters); end +end + +# Common functionality for checking whether an AST node/token is aligned +# with something on a preceding or following line +# +# source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#7 +module RuboCop::Cop::PrecedingFollowingAlignment + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#93 + def aligned_assignment?(range, line); end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#70 + def aligned_comment_lines; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#105 + def aligned_identical?(range, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#81 + def aligned_operator?(range, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#77 + def aligned_token?(range, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#34 + def aligned_with_adjacent_line?(range, predicate); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#52 + def aligned_with_any_line?(line_ranges, range, indent = T.unsafe(nil), &predicate); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#42 + def aligned_with_any_line_range?(line_ranges, range, &predicate); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#98 + def aligned_with_append_operator?(range, line); end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#109 + def aligned_with_assignment(token, line_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#56 + def aligned_with_line?(line_nos, range, indent = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#18 + def aligned_with_operator?(range); end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#22 + def aligned_with_preceding_assignment(token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#14 + def aligned_with_something?(range); end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#28 + def aligned_with_subsequent_assignment(token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#85 + def aligned_words?(range, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#10 + def allow_for_alignment?; end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#127 + def assignment_lines; end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#131 + def assignment_tokens; end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#147 + def relevant_assignment_lines(line_range); end + + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#174 + def remove_optarg_equals(asgn_tokens, processed_source); end +end + +# Common functionality for handling percent literal delimiters. +# +# source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#6 +class RuboCop::Cop::PreferredDelimiters + # @return [PreferredDelimiters] a new instance of PreferredDelimiters + # + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#11 + def initialize(type, config, preferred_delimiters); end + + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#7 + def config; end + + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#17 + def delimiters; end + + # Returns the value of attribute type. + # + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#7 + def type; end + + private + + # @raise [ArgumentError] + # + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#23 + def ensure_valid_preferred_delimiters; end + + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#30 + def preferred_delimiters; end + + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#45 + def preferred_delimiters_config; end +end + +# source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#9 +RuboCop::Cop::PreferredDelimiters::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array) + +# This autocorrects punctuation +# +# source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#6 +class RuboCop::Cop::PunctuationCorrector + class << self + # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#12 + def add_space(corrector, token); end + + # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#8 + def remove_space(corrector, space_before); end + + # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#16 + def swap_comma(corrector, range); end + end +end + +# Methods that calculate and return Parser::Source::Ranges +# +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#6 +module RuboCop::Cop::RangeHelp + private + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#141 + def add_range(range1, range2); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#82 + def column_offset_between(base_range, range); end + + # A range containing only the contents of a literal with delimiters (e.g. in + # `%i{1 2 3}` this will be the range covering `1 2 3` only). + # + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#32 + def contents_range(node); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#100 + def directions(side); end + + # Returns the column attribute of the range, except if the range is on + # the first line and there's a byte order mark at the beginning of that + # line, in which case 1 is subtracted from the column value. This gives + # the column as it appears when viewing the file in an editor. + # + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#92 + def effective_column(range); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#109 + def final_pos(src, pos, increment, continuations, newlines, whitespace); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#117 + def move_pos(src, pos, step, condition, regexp); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#123 + def move_pos_str(src, pos, step, condition, needle); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#36 + def range_between(start_pos, end_pos); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#73 + def range_by_whole_lines(range, include_final_newline: T.unsafe(nil), buffer: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#134 + def range_with_comments(node); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#130 + def range_with_comments_and_lines(node); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#40 + def range_with_surrounding_comma(range, side = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#55 + def range_with_surrounding_space(range_positional = T.unsafe(nil), range: T.unsafe(nil), side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil), buffer: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#11 + def source_range(source_buffer, line_number, column, length = T.unsafe(nil)); end +end + +# The Unicode codepoint +# +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#9 +RuboCop::Cop::RangeHelp::BYTE_ORDER_MARK = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#54 +module RuboCop::Cop::RangeHelp::NOT_GIVEN; end + +# Common functionality for handling Rational literals. +# +# source://rubocop//lib/rubocop/cop/mixin/rational_literal.rb#6 +module RuboCop::Cop::RationalLiteral + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/rational_literal.rb#12 + def rational_literal?(param0 = T.unsafe(nil)); end +end + +# Registry that tracks all cops by their badge and department. +# +# source://rubocop//lib/rubocop/cop/registry.rb#19 +class RuboCop::Cop::Registry + include ::Enumerable + + # @return [Registry] a new instance of Registry + # + # source://rubocop//lib/rubocop/cop/registry.rb#51 + def initialize(cops = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/registry.rb#232 + def ==(other); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/registry.rb#97 + def contains_cop_matching?(names); end + + # source://rubocop//lib/rubocop/cop/registry.rb#179 + def cops; end + + # source://rubocop//lib/rubocop/cop/registry.rb#224 + def cops_for_department(department); end + + # @return [Boolean] Checks if given name is department + # + # source://rubocop//lib/rubocop/cop/registry.rb#93 + def department?(name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/registry.rb#147 + def department_missing?(badge, name); end + + # @return [Array<Symbol>] list of departments for current cops. + # + # source://rubocop//lib/rubocop/cop/registry.rb#72 + def departments; end + + # source://rubocop//lib/rubocop/cop/registry.rb#193 + def disabled(config); end + + # source://rubocop//lib/rubocop/cop/registry.rb#67 + def dismiss(cop); end + + # source://rubocop//lib/rubocop/cop/registry.rb#247 + def each(&block); end + + # source://rubocop//lib/rubocop/cop/registry.rb#189 + def enabled(config); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/registry.rb#197 + def enabled?(cop, config); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/registry.rb#213 + def enabled_pending_cop?(cop_cfg, config); end + + # source://rubocop//lib/rubocop/cop/registry.rb#63 + def enlist(cop); end + + # @param cop_name [String] + # @return [Class, nil] + # + # source://rubocop//lib/rubocop/cop/registry.rb#253 + def find_by_cop_name(cop_name); end + + # When a cop name is given returns a single-element array with the cop class. + # When a department name is given returns an array with all the cop classes + # for that department. + # + # source://rubocop//lib/rubocop/cop/registry.rb#260 + def find_cops_by_directive(directive); end + + # source://rubocop//lib/rubocop/cop/registry.rb#265 + def freeze; end + + # source://rubocop//lib/rubocop/cop/registry.rb#184 + def length; end + + # source://rubocop//lib/rubocop/cop/registry.rb#220 + def names; end + + # source://rubocop//lib/rubocop/cop/registry.rb#228 + def names_for_department(department); end + + # Returns the value of attribute options. + # + # source://rubocop//lib/rubocop/cop/registry.rb#49 + def options; end + + # source://rubocop//lib/rubocop/cop/registry.rb#151 + def print_warning(name, path); end + + # Convert a user provided cop name into a properly namespaced name + # + # @example gives back a correctly qualified cop name + # + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('Layout/EndOfLine', '') # => 'Layout/EndOfLine' + # @example fixes incorrect namespaces + # + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('Lint/EndOfLine', '') # => 'Layout/EndOfLine' + # @example namespaces bare cop identifiers + # + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('EndOfLine', '') # => 'Layout/EndOfLine' + # @example passes back unrecognized cop names + # + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('NotACop', '') # => 'NotACop' + # @note Emits a warning if the provided name has an incorrect namespace + # @param name [String] Cop name extracted from config + # @param path [String, nil] Path of file that `name` was extracted from + # @param warn [Boolean] Print a warning if no department given for `name` + # @raise [AmbiguousCopName] if a bare identifier with two possible namespaces is provided + # @return [String] Qualified cop name + # + # source://rubocop//lib/rubocop/cop/registry.rb#133 + def qualified_cop_name(name, path, warn: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/registry.rb#166 + def qualify_badge(badge); end + + # source://rubocop//lib/rubocop/cop/registry.rb#243 + def select(&block); end + + # source://rubocop//lib/rubocop/cop/registry.rb#236 + def sort!; end + + # @return [Hash{String => Array<Class>}] + # + # source://rubocop//lib/rubocop/cop/registry.rb#174 + def to_h; end + + # source://rubocop//lib/rubocop/cop/registry.rb#159 + def unqualified_cop_names; end + + # @return [Registry] Cops for that specific department. + # + # source://rubocop//lib/rubocop/cop/registry.rb#78 + def with_department(department); end + + # @return [Registry] Cops not for a specific department. + # + # source://rubocop//lib/rubocop/cop/registry.rb#84 + def without_department(department); end + + private + + # source://rubocop//lib/rubocop/cop/registry.rb#283 + def clear_enrollment_queue; end + + # source://rubocop//lib/rubocop/cop/registry.rb#279 + def initialize_copy(reg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/registry.rb#309 + def registered?(badge); end + + # source://rubocop//lib/rubocop/cop/registry.rb#299 + def resolve_badge(given_badge, real_badge, source_path); end + + # source://rubocop//lib/rubocop/cop/registry.rb#295 + def with(cops); end + + class << self + # source://rubocop//lib/rubocop/cop/registry.rb#22 + def all; end + + # Returns the value of attribute global. + # + # source://rubocop//lib/rubocop/cop/registry.rb#274 + def global; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/registry.rb#44 + def qualified_cop?(name); end + + # source://rubocop//lib/rubocop/cop/registry.rb#26 + def qualified_cop_name(name, origin); end + + # source://rubocop//lib/rubocop/cop/registry.rb#40 + def reset!; end + + # Changes momentarily the global registry + # Intended for testing purposes + # + # source://rubocop//lib/rubocop/cop/registry.rb#32 + def with_temporary_global(temp_global = T.unsafe(nil)); end + end +end + +# Ensure a require statement is present for a standard library determined +# by variable library_name +# +# source://rubocop//lib/rubocop/cop/mixin/require_library.rb#7 +module RuboCop::Cop::RequireLibrary + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#12 + def ensure_required(corrector, node, library_name); end + + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#33 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#24 + def remove_subsequent_requires(corrector, node, library_name); end + + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#51 + def require_any_library?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#56 + def require_library_name?(param0 = T.unsafe(nil), param1); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#44 + def on_new_investigation; end +end + +# source://rubocop//lib/rubocop/cop/mixin/require_library.rb#10 +RuboCop::Cop::RequireLibrary::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# This class ensures a require statement is present for a standard library +# determined by the variable library_name +# +# source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#7 +class RuboCop::Cop::RequireLibraryCorrector + extend ::RuboCop::Cop::RangeHelp + + class << self + # source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#11 + def correct(corrector, node, library_name); end + + # source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#17 + def require_statement(library_name); end + end +end + +# Common functionality for checking `rescue` nodes. +# +# source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#6 +module RuboCop::Cop::RescueNode + # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#7 + def modifier_locations; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#13 + def rescue_modifier?(node); end + + # @deprecated Use ResbodyNode#exceptions instead + # + # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#20 + def rescued_exceptions(resbody); end +end + +# Common functionality for safe assignment. By safe assignment we mean +# putting parentheses around an assignment to indicate "I know I'm using an +# assignment as a condition. It's not a mistake." +# +# source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#8 +module RuboCop::Cop::SafeAssignment + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#14 + def empty_condition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#20 + def safe_assignment?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#17 + def setter_method?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#22 + def safe_assignment_allowed?; end +end + +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#5 +module RuboCop::Cop::Security; end + +# Checks for implementations of the `hash` method which combine +# values using custom logic instead of delegating to `Array#hash`. +# +# Manually combining hashes is error prone and hard to follow, especially +# when there are many values. Poor implementations may also introduce +# performance or security concerns if they are prone to collisions. +# Delegating to `Array#hash` is clearer and safer, although it might be slower +# depending on the use case. +# +# @example +# +# # bad +# def hash +# @foo ^ @bar +# end +# +# # good +# def hash +# [@foo, @bar].hash +# end +# +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#30 +class RuboCop::Cop::Security::CompoundHash < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#58 + def bad_hash_combinator?(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#75 + def contained_in_hash_method?(node, &block); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#42 + def dynamic_hash_method_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#37 + def hash_method_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#63 + def monuple_hash?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#87 + def on_op_asgn(node); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#87 + def on_send(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#81 + def outer_bad_hash_combinator?(node); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#68 + def redundant_hash?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#51 + def static_hash_method_definition?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#31 +RuboCop::Cop::Security::CompoundHash::COMBINATOR_IN_HASH_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#32 +RuboCop::Cop::Security::CompoundHash::MONUPLE_HASH_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#34 +RuboCop::Cop::Security::CompoundHash::REDUNDANT_HASH_MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of `Kernel#eval` and `Binding#eval`. +# +# @example +# +# # bad +# +# eval(something) +# binding.eval(something) +# +# source://rubocop//lib/rubocop/cop/security/eval.rb#14 +class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/security/eval.rb#19 + def eval?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/eval.rb#23 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/security/eval.rb#15 +RuboCop::Cop::Security::Eval::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/eval.rb#16 +RuboCop::Cop::Security::Eval::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`, +# `IO.foreach`, and `IO.readlines`. +# +# If argument starts with a pipe character (`'|'`) and the receiver is the `IO` class, +# a subprocess is created in the same way as `Kernel#open`, and its output is returned. +# `Kernel#open` may allow unintentional command injection, which is the reason these +# `IO` methods are a security risk. +# Consider to use `File.read` to disable the behavior of subprocess invocation. +# +# @example +# +# # bad +# IO.read(path) +# IO.read('path') +# +# # good +# File.read(path) +# File.read('path') +# IO.read('| command') # Allow intentional command invocation. +# +# source://rubocop//lib/rubocop/cop/security/io_methods.rb#30 +class RuboCop::Cop::Security::IoMethods < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/security/io_methods.rb#36 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/security/io_methods.rb#33 +RuboCop::Cop::Security::IoMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/io_methods.rb#34 +RuboCop::Cop::Security::IoMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of JSON class methods which have potential +# security issues. +# +# @example +# # bad +# JSON.load("{}") +# JSON.restore("{}") +# +# # good +# JSON.parse("{}") +# +# source://rubocop//lib/rubocop/cop/security/json_load.rb#26 +class RuboCop::Cop::Security::JSONLoad < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/security/json_load.rb#33 + def json_load(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/json_load.rb#37 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/security/json_load.rb#29 +RuboCop::Cop::Security::JSONLoad::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/json_load.rb#30 +RuboCop::Cop::Security::JSONLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of Marshal class methods which have +# potential security issues leading to remote code execution when +# loading from an untrusted source. +# +# @example +# # bad +# Marshal.load("{}") +# Marshal.restore("{}") +# +# # good +# Marshal.dump("{}") +# +# # okish - deep copy hack +# Marshal.load(Marshal.dump({})) +# +# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#21 +class RuboCop::Cop::Security::MarshalLoad < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/security/marshal_load.rb#26 + def marshal_load(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/security/marshal_load.rb#31 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#22 +RuboCop::Cop::Security::MarshalLoad::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#23 +RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of `Kernel#open` and `URI.open` with dynamic +# data. +# +# `Kernel#open` and `URI.open` enable not only file access but also process +# invocation by prefixing a pipe symbol (e.g., `open("| ls")`). +# So, it may lead to a serious security risk by using variable input to +# the argument of `Kernel#open` and `URI.open`. It would be better to use +# `File.open`, `IO.popen` or `URI.parse#open` explicitly. +# +# NOTE: `open` and `URI.open` with literal strings are not flagged by this +# cop. +# +# @example +# # bad +# open(something) +# open("| #{something}") +# URI.open(something) +# +# # good +# File.open(something) +# IO.popen(something) +# URI.parse(something).open +# +# # good (literal strings) +# open("foo.text") +# open("| foo") +# URI.open("http://example.com") +# +# source://rubocop//lib/rubocop/cop/security/open.rb#37 +class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/security/open.rb#46 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/security/open.rb#42 + def open?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/open.rb#75 + def composite_string?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/open.rb#83 + def concatenated_string?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/open.rb#79 + def interpolated_string?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/open.rb#57 + def safe?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/open.rb#67 + def safe_argument?(argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/security/open.rb#71 + def simple_string?(node); end +end + +# source://rubocop//lib/rubocop/cop/security/open.rb#38 +RuboCop::Cop::Security::Open::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/open.rb#39 +RuboCop::Cop::Security::Open::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of YAML class methods which have +# potential security issues leading to remote code execution when +# loading from an untrusted source. +# +# NOTE: Ruby 3.1+ (Psych 4) uses `Psych.load` as `Psych.safe_load` by default. +# +# @example +# # bad +# YAML.load("--- !ruby/object:Foo {}") # Psych 3 is unsafe by default +# +# # good +# YAML.safe_load("--- !ruby/object:Foo {}", [Foo]) # Ruby 2.5 (Psych 3) +# YAML.safe_load("--- !ruby/object:Foo {}", permitted_classes: [Foo]) # Ruby 3.0- (Psych 3) +# YAML.load("--- !ruby/object:Foo {}", permitted_classes: [Foo]) # Ruby 3.1+ (Psych 4) +# YAML.dump(foo) +# +# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#26 +class RuboCop::Cop::Security::YAMLLoad < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/security/yaml_load.rb#37 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/security/yaml_load.rb#33 + def yaml_load(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#29 +RuboCop::Cop::Security::YAMLLoad::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#30 +RuboCop::Cop::Security::YAMLLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Severity class is simple value object about severity +# +# source://rubocop//lib/rubocop/cop/severity.rb#6 +class RuboCop::Cop::Severity + include ::Comparable + + # @api private + # @raise [ArgumentError] + # @return [Severity] a new instance of Severity + # + # source://rubocop//lib/rubocop/cop/severity.rb#30 + def initialize(name_or_code); end + + # source://rubocop//lib/rubocop/cop/severity.rb#62 + def <=>(other); end + + # source://rubocop//lib/rubocop/cop/severity.rb#50 + def ==(other); end + + # source://rubocop//lib/rubocop/cop/severity.rb#42 + def code; end + + # source://rubocop//lib/rubocop/cop/severity.rb#58 + def hash; end + + # source://rubocop//lib/rubocop/cop/severity.rb#46 + def level; end + + # @api public + # @return [Symbol] severity. + # any of `:info`, `:refactor`, `:convention`, `:warning`, `:error` or `:fatal`. + # + # source://rubocop//lib/rubocop/cop/severity.rb#22 + def name; end + + # source://rubocop//lib/rubocop/cop/severity.rb#38 + def to_s; end + + class << self + # source://rubocop//lib/rubocop/cop/severity.rb#24 + def name_from_code(code); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/severity.rb#12 +RuboCop::Cop::Severity::CODE_TABLE = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/severity.rb#9 +RuboCop::Cop::Severity::NAMES = T.let(T.unsafe(nil), Array) + +# Common functionality for cops checking for missing space after +# punctuation. +# +# source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#7 +module RuboCop::Cop::SpaceAfterPunctuation + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#10 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#38 + def allowed_type?(token); end + + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#20 + def each_missing_space(tokens); end + + # The normal offset, i.e., the distance from the punctuation + # token where a space should be, is 1. + # + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#49 + def offset; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#42 + def space_forbidden_before_rcurly?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#30 + def space_missing?(token1, token2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#34 + def space_required_before?(token); end +end + +# source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#8 +RuboCop::Cop::SpaceAfterPunctuation::MSG = T.let(T.unsafe(nil), String) + +# Common functionality for cops checking for space before +# punctuation. +# +# source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#7 +module RuboCop::Cop::SpaceBeforePunctuation + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#12 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#22 + def each_missing_space(tokens); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#34 + def space_missing?(token1, token2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#38 + def space_required_after?(token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#42 + def space_required_after_lcurly?; end +end + +# source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#10 +RuboCop::Cop::SpaceBeforePunctuation::MSG = T.let(T.unsafe(nil), String) + +# This autocorrects whitespace +# +# source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#6 +class RuboCop::Cop::SpaceCorrector + extend ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::SurroundingSpace + + class << self + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#36 + def add_space(processed_source, corrector, left_token, right_token); end + + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#12 + def empty_corrections(processed_source, corrector, empty_config, left_token, right_token); end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#10 + def processed_source; end + + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#24 + def remove_space(processed_source, corrector, left_token, right_token); end + end +end + +# Common functionality for modifier cops. +# +# source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#6 +module RuboCop::Cop::StatementModifier + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp + + private + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#79 + def code_after(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#103 + def comment_disables_cop?(comment); end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#71 + def first_line_comment(node); end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#58 + def if_body_source(if_body); end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#44 + def length_in_modifier_form(node); end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#97 + def max_line_length; end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#67 + def method_source(if_body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#38 + def modifier_fits_on_single_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#27 + def non_eligible_body?(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#34 + def non_eligible_condition?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#20 + def non_eligible_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#85 + def parenthesize?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#12 + def single_line_as_modifier?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#51 + def to_modifier_form(node); end +end + +# Classes that include this module just implement functions to determine +# what is an offense and how to do autocorrection. They get help with +# adding offenses for the faulty string nodes, and with filtering out +# nodes. +# +# source://rubocop//lib/rubocop/cop/mixin/string_help.rb#9 +module RuboCop::Cop::StringHelp + # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#26 + def on_regexp(node); end + + # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#10 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#32 + def inside_interpolation?(node); end +end + +# This autocorrects string literals +# +# source://rubocop//lib/rubocop/cop/correctors/string_literal_corrector.rb#6 +class RuboCop::Cop::StringLiteralCorrector + extend ::RuboCop::PathUtil + extend ::RuboCop::Cop::Util + + class << self + # source://rubocop//lib/rubocop/cop/correctors/string_literal_corrector.rb#10 + def correct(corrector, node, style); end + end +end + +# Common functionality for cops checking single/double quotes. +# +# source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#6 +module RuboCop::Cop::StringLiteralsHelp + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#9 + def wrong_quotes?(src_or_node); end +end + +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#5 +module RuboCop::Cop::Style; end + +# Access modifiers should be declared to apply to a group of methods +# or inline before each method, depending on configuration. +# EnforcedStyle config covers only method definitions. +# Applications of visibility methods to symbols can be controlled +# using AllowModifiersOnSymbols config. +# +# @example EnforcedStyle: group (default) +# # bad +# class Foo +# +# private def bar; end +# private def baz; end +# +# end +# +# # good +# class Foo +# +# private +# +# def bar; end +# def baz; end +# +# end +# @example EnforcedStyle: inline +# # bad +# class Foo +# +# private +# +# def bar; end +# def baz; end +# +# end +# +# # good +# class Foo +# +# private def bar; end +# private def baz; end +# +# end +# @example AllowModifiersOnSymbols: true (default) +# # good +# class Foo +# +# private :bar, :baz +# +# end +# @example AllowModifiersOnSymbols: false +# # bad +# class Foo +# +# private :bar, :baz +# +# end +# +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#70 +class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#91 + def access_modifier_with_symbol?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#95 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#145 + def access_modifier_is_inlined?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#149 + def access_modifier_is_not_inlined?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#127 + def allow_modifiers_on_symbols?(node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#112 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219 + def def_source(node, def_node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#180 + def find_argument_less_modifier_node(node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#169 + def find_corresponding_def_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#137 + def group_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#141 + def inline_style?; end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#211 + def insert_inline_modifier(corrector, node, modifier_name); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#159 + def message(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#131 + def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#215 + def remove_node(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#194 + def replace_def(corrector, node, def_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#153 + def right_siblings_same_inline_method?(node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#188 + def select_grouped_def_nodes(node); end +end + +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#88 +RuboCop::Cop::Style::AccessModifierDeclarations::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#76 +RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#81 +RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#86 +RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for grouping of accessors in `class` and `module` bodies. +# By default it enforces accessors to be placed in grouped declarations, +# but it can be configured to enforce separating them in multiple declarations. +# +# NOTE: If there is a method call before the accessor method it is always allowed +# as it might be intended like Sorbet. +# +# @example EnforcedStyle: grouped (default) +# # bad +# class Foo +# attr_reader :bar +# attr_reader :bax +# attr_reader :baz +# end +# +# # good +# class Foo +# attr_reader :bar, :bax, :baz +# end +# +# # good +# class Foo +# # may be intended comment for bar. +# attr_reader :bar +# +# sig { returns(String) } +# attr_reader :bax +# +# may_be_intended_annotation :baz +# attr_reader :baz +# end +# @example EnforcedStyle: separated +# # bad +# class Foo +# attr_reader :bar, :baz +# end +# +# # good +# class Foo +# attr_reader :bar +# attr_reader :baz +# end +# +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#50 +class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::VisibilityHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#59 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#59 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#59 + def on_sclass(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#82 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#71 + def check(send_node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#114 + def class_send_elements(class_node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#157 + def group_accessors(node, accessors); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#96 + def groupable_accessor?(node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#134 + def groupable_sibling_accessors(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#126 + def grouped_style?; end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#143 + def message(send_node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#148 + def preferred_accessors(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#91 + def previous_line_comment?(node); end + + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#163 + def separate_accessors(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#130 + def separated_style?; end +end + +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#56 +RuboCop::Cop::Style::AccessorGrouping::GROUPED_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#57 +RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), String) + +# Enforces the use of either `#alias` or `#alias_method` +# depending on configuration. +# It also flags uses of `alias :symbol` rather than `alias bareword`. +# +# However, it will always enforce `method_alias` when used `alias` +# in an instance method definition and in a singleton method definition. +# If used in a block, always enforce `alias_method` +# unless it is an `instance_eval` block. +# +# @example EnforcedStyle: prefer_alias (default) +# # bad +# alias_method :bar, :foo +# alias :bar :foo +# +# # good +# alias bar foo +# @example EnforcedStyle: prefer_alias_method +# # bad +# alias :bar :foo +# alias bar foo +# +# # good +# alias_method :bar, :foo +# +# source://rubocop//lib/rubocop/cop/style/alias.rb#31 +class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/alias.rb#51 + def on_alias(node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#41 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/alias.rb#85 + def add_offense_for_args(node, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/alias.rb#75 + def alias_keyword_possible?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/alias.rb#79 + def alias_method_possible?(node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#65 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/alias.rb#124 + def bareword?(sym_node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#128 + def correct_alias_method_to_alias(corrector, send_node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#135 + def correct_alias_to_alias_method(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#142 + def correct_alias_with_symbol_args(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#147 + def identifier(node); end + + # source://rubocop//lib/rubocop/cop/style/alias.rb#113 + def lexical_scope_type(node); end + + # In this expression, will `self` be the same as the innermost enclosing + # class or module block (:lexical)? Or will it be something else + # (:dynamic)? If we're in an instance_eval block, return that. + # + # source://rubocop//lib/rubocop/cop/style/alias.rb#96 + def scope_type(node); end +end + +# source://rubocop//lib/rubocop/cop/style/alias.rb#35 +RuboCop::Cop::Style::Alias::MSG_ALIAS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/alias.rb#36 +RuboCop::Cop::Style::Alias::MSG_ALIAS_METHOD = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/alias.rb#37 +RuboCop::Cop::Style::Alias::MSG_SYMBOL_ARGS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/alias.rb#39 +RuboCop::Cop::Style::Alias::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of `and` and `or`, and suggests using `&&` and +# `||` instead. It can be configured to check only in conditions or in +# all contexts. +# +# @example EnforcedStyle: conditionals (default) +# # bad +# if foo and bar +# end +# +# # good +# foo.save && return +# +# # good +# foo.save and return +# +# # good +# if foo && bar +# end +# @example EnforcedStyle: always +# # bad +# foo.save and return +# +# # bad +# if foo and bar +# end +# +# # good +# foo.save && return +# +# # good +# if foo && bar +# end +# +# source://rubocop//lib/rubocop/cop/style/and_or.rb#44 +class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + def on_while_post(node); end + + private + + # ! is a special case: + # 'x and !obj.method arg' can be autocorrected if we + # recurse down a level and add parens to 'obj.method arg' + # however, 'not x' also parses as (send x :!) + # + # source://rubocop//lib/rubocop/cop/style/and_or.rb#117 + def correct_not(node, receiver, corrector); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#129 + def correct_other(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#95 + def correct_send(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#108 + def correct_setter(node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/and_or.rb#143 + def correctable_send?(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#135 + def keep_operator_precedence(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#91 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#85 + def on_conditionals(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#66 + def process_logical_operator(node); end + + # source://rubocop//lib/rubocop/cop/style/and_or.rb#147 + def whitespace_before_arg(node); end +end + +# source://rubocop//lib/rubocop/cop/style/and_or.rb#49 +RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) + +# In Ruby 2.7, arguments forwarding has been added. +# +# This cop identifies places where `do_something(*args, &block)` +# can be replaced by `do_something(...)`. +# +# In Ruby 3.2, anonymous args/kwargs forwarding has been added. +# +# This cop also identifies places where `use_args(*args)`/`use_kwargs(**kwargs)` can be +# replaced by `use_args(*)`/`use_kwargs(**)`; if desired, this functionality can be disabled +# by setting UseAnonymousForwarding: false. +# +# @example +# # bad +# def foo(*args, &block) +# bar(*args, &block) +# end +# +# # bad +# def foo(*args, **kwargs, &block) +# bar(*args, **kwargs, &block) +# end +# +# # good +# def foo(...) +# bar(...) +# end +# @example UseAnonymousForwarding: true (default, only relevant for Ruby >= 3.2) +# # bad +# def foo(*args, **kwargs) +# args_only(*args) +# kwargs_only(**kwargs) +# end +# +# # good +# def foo(*, **) +# args_only(*) +# kwargs_only(**) +# end +# @example UseAnonymousForwarding: false (only relevant for Ruby >= 3.2) +# # good +# def foo(*args, **kwargs) +# args_only(*args) +# kwargs_only(**kwargs) +# end +# @example AllowOnlyRestArgument: true (default, only relevant for Ruby < 3.2) +# # good +# def foo(*args) +# bar(*args) +# end +# +# def foo(**kwargs) +# bar(**kwargs) +# end +# @example AllowOnlyRestArgument: false (only relevant for Ruby < 3.2) +# # bad +# # The following code can replace the arguments with `...`, +# # but it will change the behavior. Because `...` forwards block also. +# def foo(*args) +# bar(*args) +# end +# +# def foo(**kwargs) +# bar(**kwargs) +# end +# +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#75 +class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#89 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#89 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#122 + def add_forward_all_offenses(node, send_classifications, forwardable_args); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#233 + def add_parens_if_missing(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#131 + def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#225 + def allow_only_rest_arguments?; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#217 + def arguments_range(node, first_node); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174 + def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#159 + def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#114 + def extract_forwardable_args(args); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#149 + def non_splat_or_block_pass_lvar_references(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#118 + def only_forwards_all?(send_classifications); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#207 + def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#191 + def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#199 + def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#229 + def use_anonymous_forwarding?; end +end + +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#83 +RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#86 +RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#82 +RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#85 +RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#87 +RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String) + +# Classifies send nodes for possible rest/kwrest/all (including block) forwarding. +# +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#240 +class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier + extend ::RuboCop::AST::NodePattern::Macros + + # @return [SendNodeClassifier] a new instance of SendNodeClassifier + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#252 + def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#280 + def classification; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#247 + def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#274 + def forwarded_block_arg; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#250 + def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#268 + def forwarded_kwrest_arg; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#262 + def forwarded_rest_arg; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#244 + def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#348 + def additional_kwargs?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#344 + def additional_kwargs_or_forwarded_kwargs?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#358 + def allow_offense_for_no_block?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#329 + def any_arg_referenced?; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#313 + def arguments; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#292 + def can_forward_all?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#352 + def forward_additional_kwargs?; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#309 + def forwarded_rest_and_kwrest_args; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#362 + def no_additional_args?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#337 + def no_post_splat_args?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#305 + def offensive_block_forwarding?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#325 + def referenced_block_arg?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#321 + def referenced_kwrest_arg?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#317 + def referenced_rest_arg?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#301 + def ruby_32_missing_rest_or_kwest?; end + + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#333 + def target_ruby_version; end +end + +# Enforces the use of `Array()` instead of explicit `Array` check or `[*var]`. +# +# The cop is disabled by default due to safety concerns. +# +# @example +# # bad +# paths = [paths] unless paths.is_a?(Array) +# paths.each { |path| do_something(path) } +# +# # bad (always creates a new Array instance) +# [*paths].each { |path| do_something(path) } +# +# # good (and a bit more readable) +# Array(paths).each { |path| do_something(path) } +# +# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#41 +class RuboCop::Cop::Style::ArrayCoercion < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#48 + def array_splat?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#63 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#74 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#53 + def unless_array?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#45 +RuboCop::Cop::Style::ArrayCoercion::CHECK_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#44 +RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String) + +# In Ruby 3.1, `Array#intersect?` has been added. +# +# This cop identifies places where `(array1 & array2).any?` +# can be replaced by `array1.intersect?(array2)`. +# +# The `array1.intersect?(array2)` method is faster than +# `(array1 & array2).any?` and is more readable. +# +# In cases like the following, compatibility is not ensured, +# so it will not be detected when using block argument. +# +# [source,ruby] +# ---- +# ([1] & [1,2]).any? { |x| false } # => false +# [1].intersect?([1,2]) { |x| false } # => true +# ---- +# +# @example +# # bad +# (array1 & array2).any? +# (array1 & array2).empty? +# +# # good +# array1.intersect?(array2) +# !array1.intersect?(array2) +# @example AllCops:ActiveSupportExtensionsEnabled: false (default) +# # good +# (array1 & array2).present? +# (array1 & array2).blank? +# @example AllCops:ActiveSupportExtensionsEnabled: true +# # bad +# (array1 & array2).present? +# (array1 & array2).blank? +# +# # good +# array1.intersect?(array2) +# !array1.intersect?(array2) +# +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#49 +class RuboCop::Cop::Style::ArrayIntersect < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#65 + def active_support_bad_intersection_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#79 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#56 + def regular_bad_intersection_check?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#94 + def bad_intersection_check?(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#106 + def message(receiver, argument, method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#102 + def straight?(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#73 +RuboCop::Cop::Style::ArrayIntersect::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#76 +RuboCop::Cop::Style::ArrayIntersect::NEGATED_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#77 +RuboCop::Cop::Style::ArrayIntersect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#75 +RuboCop::Cop::Style::ArrayIntersect::STRAIGHT_METHODS = T.let(T.unsafe(nil), Array) + +# Checks for uses of "*" as a substitute for _join_. +# +# Not all cases can reliably checked, due to Ruby's dynamic +# types, so we consider only cases when the first argument is an +# array literal or the second is a string literal. +# +# @example +# +# # bad +# %w(foo bar baz) * "," +# +# # good +# %w(foo bar baz).join(",") +# +# source://rubocop//lib/rubocop/cop/style/array_join.rb#20 +class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/array_join.rb#27 + def join_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/array_join.rb#29 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/array_join.rb#23 +RuboCop::Cop::Style::ArrayJoin::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/array_join.rb#24 +RuboCop::Cop::Style::ArrayJoin::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#16 +class RuboCop::Cop::Style::AsciiComments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#21 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#51 + def allowed_non_ascii_chars; end + + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#42 + def first_non_ascii_chars(string); end + + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#32 + def first_offense_range(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#46 + def only_allowed_non_ascii_chars?(string); end +end + +# source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#19 +RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of Module#attr. +# +# @example +# # bad - creates a single attribute accessor (deprecated in Ruby 1.9) +# attr :something, true +# attr :one, :two, :three # behaves as attr_reader +# +# # good +# attr_accessor :something +# attr_reader :one, :two, :three +# +# source://rubocop//lib/rubocop/cop/style/attr.rb#17 +class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/attr.rb#74 + def class_eval?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/attr.rb#24 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/attr.rb#37 + def allowed_context?(node); end + + # source://rubocop//lib/rubocop/cop/style/attr.rb#47 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/attr.rb#43 + def define_attr_method?(node); end + + # source://rubocop//lib/rubocop/cop/style/attr.rb#59 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/attr.rb#63 + def replacement_method(node); end +end + +# source://rubocop//lib/rubocop/cop/style/attr.rb#21 +RuboCop::Cop::Style::Attr::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/attr.rb#22 +RuboCop::Cop::Style::Attr::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for cases when you could use a block +# accepting version of a method that does automatic +# resource cleanup. +# +# @example +# +# # bad +# f = File.open('file') +# +# # good +# File.open('file') do |f| +# # ... +# end +# +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#19 +class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#26 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#41 + def cleanup?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#20 +RuboCop::Cop::Style::AutoResourceCleanup::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#24 +RuboCop::Cop::Style::AutoResourceCleanup::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#22 +RuboCop::Cop::Style::AutoResourceCleanup::TARGET_METHODS = T.let(T.unsafe(nil), Hash) + +# Checks if usage of %() or %Q() matches configuration. +# +# @example EnforcedStyle: bare_percent (default) +# # bad +# %Q(He said: "#{greeting}") +# %q{She said: 'Hi'} +# +# # good +# %(He said: "#{greeting}") +# %{She said: 'Hi'} +# @example EnforcedStyle: percent_q +# # bad +# %|He said: "#{greeting}"| +# %/She said: 'Hi'/ +# +# # good +# %Q|He said: "#{greeting}"| +# %q/She said: 'Hi'/ +# +# source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#26 +class RuboCop::Cop::Style::BarePercentLiterals < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#32 + def on_dstr(node); end + + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#36 + def on_str(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#63 + def add_offense_for_wrong_style(node, good, bad); end + + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#42 + def check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#59 + def requires_bare_percent?(source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#55 + def requires_percent_q?(source); end +end + +# source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#30 +RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String) + +# Checks for BEGIN blocks. +# +# @example +# # bad +# BEGIN { test } +# +# source://rubocop//lib/rubocop/cop/style/begin_block.rb#12 +class RuboCop::Cop::Style::BeginBlock < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/begin_block.rb#15 + def on_preexe(node); end +end + +# source://rubocop//lib/rubocop/cop/style/begin_block.rb#13 +RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where `attr_reader` and `attr_writer` +# for the same method can be combined into single `attr_accessor`. +# +# @example +# # bad +# class Foo +# attr_reader :bar +# attr_writer :bar +# end +# +# # good +# class Foo +# attr_accessor :bar +# end +# +# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#21 +class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # Each offending macro is captured and registered in `on_class` but correction + # happens in `after_class` because a macro might have multiple attributes + # rewritten from it + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + def after_class(class_node); end + + # Each offending macro is captured and registered in `on_class` but correction + # happens in `after_class` because a macro might have multiple attributes + # rewritten from it + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + def after_module(class_node); end + + # Each offending macro is captured and registered in `on_class` but correction + # happens in `after_class` because a macro might have multiple attributes + # rewritten from it + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + def after_sclass(class_node); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + def on_class(class_node); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + def on_module(class_node); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#29 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + def on_sclass(class_node); end + + private + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#102 + def correct_reader(corrector, macro, node, range); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#114 + def correct_writer(corrector, macro, node, range); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#91 + def find_bisection(macros); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#74 + def find_macros(class_def); end + + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#98 + def register_offense(attr); end +end + +# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#27 +RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String) + +# Representation of an `attr_reader`, `attr_writer` or `attr` macro +# for use by `Style/BisectedAttrAccessor`. +# +# @api private +# +# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#10 +class RuboCop::Cop::Style::BisectedAttrAccessor::Macro + include ::RuboCop::Cop::VisibilityHelp + + # @api private + # @return [Macro] a new instance of Macro + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#19 + def initialize(node); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#49 + def all_bisected?; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#29 + def attr_names; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 + def attrs; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#25 + def bisect(*names); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#33 + def bisected_names; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 + def bisection; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 + def node; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#41 + def reader?; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#53 + def rest; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#37 + def visibility; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#45 + def writer?; end + + class << self + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#15 + def macro?(node); end + end +end + +# Looks for uses of block comments (=begin...=end). +# +# @example +# # bad +# =begin +# Multiple lines +# of comments... +# =end +# +# # good +# # Multiple lines +# # of comments... +# +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#19 +class RuboCop::Cop::Style::BlockComments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/block_comments.rb#27 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/block_comments.rb#56 + def eq_end_part(comment, expr); end + + # source://rubocop//lib/rubocop/cop/style/block_comments.rb#48 + def parts(comment); end +end + +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#24 +RuboCop::Cop::Style::BlockComments::BEGIN_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#25 +RuboCop::Cop::Style::BlockComments::END_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#23 +RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) + +# Check for uses of braces or do/end around single line or +# multi-line blocks. +# +# Methods that can be either procedural or functional and cannot be +# categorised from their usage alone is ignored. +# `lambda`, `proc`, and `it` are their defaults. +# Additional methods can be added to the `AllowedMethods`. +# +# @example EnforcedStyle: line_count_based (default) +# # bad - single line block +# items.each do |item| item / 5 end +# +# # good - single line block +# items.each { |item| item / 5 } +# +# # bad - multi-line block +# things.map { |thing| +# something = thing.some_method +# process(something) +# } +# +# # good - multi-line block +# things.map do |thing| +# something = thing.some_method +# process(something) +# end +# @example EnforcedStyle: semantic +# # Prefer `do...end` over `{...}` for procedural blocks. +# +# # return value is used/assigned +# # bad +# foo = map do |x| +# x +# end +# puts (map do |x| +# x +# end) +# +# # return value is not used out of scope +# # good +# map do |x| +# x +# end +# +# # Prefer `{...}` over `do...end` for functional blocks. +# +# # return value is not used out of scope +# # bad +# each { |x| +# x +# } +# +# # return value is used/assigned +# # good +# foo = map { |x| +# x +# } +# map { |x| +# x +# }.inspect +# +# # The AllowBracesOnProceduralOneLiners option is allowed unless the +# # EnforcedStyle is set to `semantic`. If so: +# +# # If the AllowBracesOnProceduralOneLiners option is unspecified, or +# # set to `false` or any other falsey value, then semantic purity is +# # maintained, so one-line procedural blocks must use do-end, not +# # braces. +# +# # bad +# collection.each { |element| puts element } +# +# # good +# collection.each do |element| puts element end +# +# # If the AllowBracesOnProceduralOneLiners option is set to `true`, or +# # any other truthy value, then one-line procedural blocks may use +# # either style. (There is no setting for requiring braces on them.) +# +# # good +# collection.each { |element| puts element } +# +# # also good +# collection.each do |element| puts element end +# @example EnforcedStyle: braces_for_chaining +# # bad +# words.each do |word| +# word.flip.flop +# end.join("-") +# +# # good +# words.each { |word| +# word.flip.flop +# }.join("-") +# @example EnforcedStyle: always_braces +# # bad +# words.each do |word| +# word.flip.flop +# end +# +# # good +# words.each { |word| +# word.flip.flop +# } +# @example BracesRequiredMethods: ['sig'] +# +# # Methods listed in the BracesRequiredMethods list, such as 'sig' +# # in this example, will require `{...}` braces. This option takes +# # precedence over all other configurations except AllowedMethods. +# +# # bad +# sig do +# params( +# foo: string, +# ).void +# end +# def bar(foo) +# puts foo +# end +# +# # good +# sig { +# params( +# foo: string, +# ).void +# } +# def bar(foo) +# puts foo +# end +# @example AllowedMethods: ['lambda', 'proc', 'it' ] (default) +# +# # good +# foo = lambda do |x| +# puts "Hello, #{x}" +# end +# +# foo = lambda do |x| +# x * 100 +# end +# @example AllowedPatterns: [] (default) +# +# # bad +# things.map { |thing| +# something = thing.some_method +# process(something) +# } +# @example AllowedPatterns: ['map'] +# +# # good +# things.map { |thing| +# something = thing.some_method +# process(something) +# } +# +# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#168 +class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#194 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#194 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#179 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#459 + def array_or_range?(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#208 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#463 + def begin_required?(block_node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#236 + def braces_for_chaining_message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#400 + def braces_for_chaining_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#248 + def braces_required_message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#377 + def braces_required_method?(method_name); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#381 + def braces_required_methods; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#410 + def braces_style?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#455 + def conditional?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#414 + def correction_would_break_code?(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#309 + def end_of_chain(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#424 + def functional_block?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#420 + def functional_method?(method_name); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#326 + def get_blocks(node, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#385 + def line_count_based_block_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#218 + def line_count_based_message(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#252 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#300 + def move_comment_before_block(corrector, comment, block_node, closing_brace); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#432 + def procedural_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#428 + def procedural_oneliners_may_have_braces?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#344 + def proper_block_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#316 + def remove_trailing_whitespace(corrector, range, comment); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#263 + def replace_braces_with_do_end(corrector, loc); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#279 + def replace_do_end_with_braces(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#356 + def require_braces?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#448 + def return_value_of_scope?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#436 + def return_value_used?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#389 + def semantic_block_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#226 + def semantic_message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#364 + def special_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#370 + def special_method_proper_block_style?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#296 + def whitespace_after?(range, length = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#292 + def whitespace_before?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#322 + def with_block?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#175 +RuboCop::Cop::Style::BlockDelimiters::ALWAYS_BRACES_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#177 +RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(nil), String) + +# Corrector to correct conditional assignment in `case` statements. +# +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#605 +class RuboCop::Cop::Style::CaseCorrector + extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper + extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper + + class << self + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#610 + def correct(corrector, cop, node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#620 + def move_assignment_inside_condition(corrector, node); end + + private + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#640 + def extract_branches(case_node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#634 + def extract_tail_branches(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#650 + def move_branch_inside_condition(corrector, branch, condition, assignment, column); end + end +end + +# If `AllowOnSelfClass` option is enabled, the cop will ignore violations when the receiver of +# the case equality operator is `self.class`. Note intermediate variables are not accepted. +# +# @example +# # bad +# (1..100) === 7 +# /something/ === some_string +# +# # good +# something.is_a?(Array) +# (1..100).include?(7) +# /something/.match?(some_string) +# @example AllowOnConstant: false (default) +# # bad +# Array === something +# @example AllowOnConstant: true +# # good +# Array === something +# @example AllowOnSelfClass: false (default) +# # bad +# self.class === something +# @example AllowOnSelfClass: true +# # good +# self.class === something +# +# source://rubocop//lib/rubocop/cop/style/case_equality.rb#40 +class RuboCop::Cop::Style::CaseEquality < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#47 + def case_equality?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#52 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#50 + def self_class?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#90 + def begin_replacement(lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#96 + def const_replacement(lhs, rhs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#65 + def offending_receiver?(node); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#72 + def replacement(lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#100 + def send_replacement(lhs, rhs); end +end + +# source://rubocop//lib/rubocop/cop/style/case_equality.rb#43 +RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/case_equality.rb#44 +RuboCop::Cop::Style::CaseEquality::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `if-elsif` constructions +# can be replaced with `case-when`. +# +# @example MinBranchesCount: 3 (default) +# # bad +# if status == :active +# perform_action +# elsif status == :inactive || status == :hibernating +# check_timeout +# elsif status == :invalid +# report_invalid +# else +# final_action +# end +# +# # good +# case status +# when :active +# perform_action +# when :inactive, :hibernating +# check_timeout +# when :invalid +# report_invalid +# else +# final_action +# end +# @example MinBranchesCount: 4 +# # good +# if status == :active +# perform_action +# elsif status == :inactive || status == :hibernating +# check_timeout +# elsif status == :invalid +# report_invalid +# else +# final_action +# end +# +# source://rubocop//lib/rubocop/cop/style/case_like_if.rb#50 +class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MinBranchesCount + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#57 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#81 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#231 + def branch_conditions(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#249 + def class_reference?(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#166 + def collect_conditions(node, target, conditions); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#220 + def condition_from_binary_op(lhs, rhs, target); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#202 + def condition_from_equality_node(node, target); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#213 + def condition_from_include_or_cover_node(node, target); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#208 + def condition_from_match_node(node, target); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#185 + def condition_from_send_node(node, target); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#240 + def const_reference?(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#258 + def correction_range(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#253 + def deparenthesize(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#102 + def find_target(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#136 + def find_target_in_equality_node(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#148 + def find_target_in_include_or_cover_node(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#154 + def find_target_in_match_node(node); end + + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#121 + def find_target_in_send_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#274 + def regexp_with_named_captures?(node); end + + # Named captures work with `=~` (if regexp is on lhs) and with `match` (both sides) + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#263 + def regexp_with_working_captures?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#96 + def should_check?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/case_like_if.rb#55 +RuboCop::Cop::Style::CaseLikeIf::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of the character literal ?x. +# Starting with Ruby 1.9 character literals are +# essentially one-character strings, so this syntax +# is mostly redundant at this point. +# +# ? character literal can be used to express meta and control character. +# That's a good use case of ? literal so it doesn't count it as an offense. +# +# @example +# # bad +# ?x +# +# # good +# 'x' +# +# # good - control & meta escapes +# ?\C-\M-d +# "\C-\M-d" # same as above +# +# source://rubocop//lib/rubocop/cop/style/character_literal.rb#24 +class RuboCop::Cop::Style::CharacterLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::StringHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#35 + def autocorrect(corrector, node); end + + # Dummy implementation of method in ConfigurableEnforcedStyle that is + # called from StringHelp. + # + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#53 + def correct_style_detected; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#30 + def offense?(node); end + + # Dummy implementation of method in ConfigurableEnforcedStyle that is + # called from StringHelp. + # + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#49 + def opposite_style_detected; end +end + +# source://rubocop//lib/rubocop/cop/style/character_literal.rb#28 +RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String) + +# Checks the style of children definitions at classes and +# modules. Basically there are two different styles: +# +# The compact style is only forced for classes/modules with one child. +# +# @example EnforcedStyle: nested (default) +# # good +# # have each child on its own line +# class Foo +# class Bar +# end +# end +# @example EnforcedStyle: compact +# # good +# # combine definitions as much as possible +# class Foo::Bar +# end +# +# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#33 +class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#42 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#48 + def on_module(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#89 + def add_trailing_end(corrector, node, padding); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#170 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#159 + def check_compact_style(node, body); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#151 + def check_nested_style(node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#141 + def check_style(node, body); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#94 + def compact_definition(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#115 + def compact_identifier_name(node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#100 + def compact_node(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#180 + def compact_node_name?(node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#105 + def compact_replacement(node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#137 + def leading_spaces(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#176 + def needs_compacting?(body); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#62 + def nest_definition(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#54 + def nest_or_compact(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#120 + def remove_end(corrector, body); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#71 + def replace_namespace_keyword(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#80 + def split_on_double_colon(corrector, node, padding); end + + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#128 + def unindent(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#40 +RuboCop::Cop::Style::ClassAndModuleChildren::COMPACT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#39 +RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), String) + +# Enforces consistent use of `Object#is_a?` or `Object#kind_of?`. +# +# @example EnforcedStyle: is_a? (default) +# # bad +# var.kind_of?(Date) +# var.kind_of?(Integer) +# +# # good +# var.is_a?(Date) +# var.is_a?(Integer) +# @example EnforcedStyle: kind_of? +# # bad +# var.is_a?(Time) +# var.is_a?(String) +# +# # good +# var.kind_of?(Time) +# var.kind_of?(String) +# +# source://rubocop//lib/rubocop/cop/style/class_check.rb#26 +class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/class_check.rb#44 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/class_check.rb#33 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/class_check.rb#30 +RuboCop::Cop::Style::ClassCheck::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/class_check.rb#31 +RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of `Object#instance_of?` instead of class comparison +# for equality. +# `==`, `equal?`, and `eql?` custom method definitions are allowed by default. +# These are customizable with `AllowedMethods` option. +# +# @example +# # bad +# var.class == Date +# var.class.equal?(Date) +# var.class.eql?(Date) +# var.class.name == 'Date' +# +# # good +# var.instance_of?(Date) +# @example AllowedMethods: ['==', 'equal?', 'eql?'] (default) +# # good +# def ==(other) +# self.class == other.class && name == other.name +# end +# +# def equal?(other) +# self.class.equal?(other.class) && name.equal?(other.name) +# end +# +# def eql?(other) +# self.class.eql?(other.class) && name.eql?(other.name) +# end +# @example AllowedPatterns: [] (default) +# # bad +# def eq(other) +# self.class.eq(other.class) && name.eq(other.name) +# end +# @example AllowedPatterns: ['eq'] +# # good +# def eq(other) +# self.class.eq(other.class) && name.eq(other.name) +# end +# +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#52 +class RuboCop::Cop::Style::ClassEqualityComparison < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#64 + def class_comparison_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#70 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#92 + def class_name(class_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#112 + def class_name_method?(method_name); end + + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#128 + def offense_range(receiver_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#116 + def require_cbase?(class_node); end + + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#124 + def trim_string_quotes(class_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#120 + def unable_to_determine_type?(class_node); end +end + +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#61 +RuboCop::Cop::Style::ClassEqualityComparison::CLASS_NAME_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#58 +RuboCop::Cop::Style::ClassEqualityComparison::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#60 +RuboCop::Cop::Style::ClassEqualityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of the class/module name instead of +# self, when defining class/module methods. +# +# @example +# # bad +# class SomeClass +# def SomeClass.class_method +# # ... +# end +# end +# +# # good +# class SomeClass +# def self.class_method +# # ... +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/class_methods.rb#23 +class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 + def on_module(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#41 + def check_defs(name, node); end +end + +# source://rubocop//lib/rubocop/cop/style/class_methods.rb#26 +RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String) + +# Enforces using `def self.method_name` or `class << self` to define class methods. +# +# @example EnforcedStyle: def_self (default) +# # bad +# class SomeClass +# class << self +# attr_accessor :class_accessor +# +# def class_method +# # ... +# end +# end +# end +# +# # good +# class SomeClass +# def self.class_method +# # ... +# end +# +# class << self +# attr_accessor :class_accessor +# end +# end +# +# # good - contains private method +# class SomeClass +# class << self +# attr_accessor :class_accessor +# +# private +# +# def private_class_method +# # ... +# end +# end +# end +# @example EnforcedStyle: self_class +# # bad +# class SomeClass +# def self.class_method +# # ... +# end +# end +# +# # good +# class SomeClass +# class << self +# def class_method +# # ... +# end +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#61 +class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::CommentsHelp + include ::RuboCop::Cop::VisibilityHelp + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#81 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#71 + def on_sclass(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#95 + def all_methods_public?(sclass_node); end + + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#115 + def autocorrect_sclass(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#102 + def def_nodes(sclass_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#91 + def def_self_style?; end + + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#141 + def extract_def_from_sclass(def_node, sclass_node); end + + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#152 + def indentation_diff(node1, node2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#137 + def sclass_only_has_methods?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#68 +RuboCop::Cop::Style::ClassMethodsDefinitions::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#69 +RuboCop::Cop::Style::ClassMethodsDefinitions::MSG_SCLASS = T.let(T.unsafe(nil), String) + +# Checks for uses of class variables. Offenses +# are signaled only on assignment to class variables to +# reduce the number of offenses that would be reported. +# +# You have to be careful when setting a value for a class +# variable; if a class has been inherited, changing the +# value of a class variable also affects the inheriting +# classes. This means that it's almost always better to +# use a class instance variable instead. +# +# @example +# # bad +# class A +# @@test = 10 +# end +# +# class A +# def self.test(name, value) +# class_variable_set("@@#{name}", value) +# end +# end +# +# class A; end +# A.class_variable_set(:@@test, 10) +# +# # good +# class A +# @test = 10 +# end +# +# class A +# def test +# @@test # you can access class variable without offense +# end +# end +# +# class A +# def self.test(name) +# class_variable_get("@@#{name}") # you can access without offense +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/class_vars.rb#48 +class RuboCop::Cop::Style::ClassVars < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/class_vars.rb#52 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/class_vars.rb#56 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/class_vars.rb#49 +RuboCop::Cop::Style::ClassVars::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/class_vars.rb#50 +RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for places where custom logic on rejection nils from arrays +# and hashes can be replaced with `{Array,Hash}#{compact,compact!}`. +# +# @example +# # bad +# array.reject(&:nil?) +# array.delete_if(&:nil?) +# array.reject { |e| e.nil? } +# array.delete_if { |e| e.nil? } +# array.select { |e| !e.nil? } +# +# # good +# array.compact +# +# # bad +# hash.reject!(&:nil?) +# hash.reject! { |k, v| v.nil? } +# hash.select! { |k, v| !v.nil? } +# +# # good +# hash.compact! +# @example AllowedReceivers: ['params'] +# # good +# params.reject(&:nil?) +# +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#42 +class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedReceivers + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#82 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#62 + def reject_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#55 + def reject_method_with_block_pass?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#72 + def select_method?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#119 + def good_method_name(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#97 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#127 + def range(begin_pos_node, end_pos_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#113 + def to_enum_method?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#48 +RuboCop::Cop::Style::CollectionCompact::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#49 +RuboCop::Cop::Style::CollectionCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#50 +RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), Array) + +# Enforces the use of consistent method names +# from the Enumerable module. +# +# You can customize the mapping from undesired method to desired method. +# +# e.g. to use `detect` over `find`: +# +# Style/CollectionMethods: +# PreferredMethods: +# find: detect +# +# @example +# # These examples are based on the default mapping for `PreferredMethods`. +# +# # bad +# items.collect +# items.collect! +# items.collect_concat +# items.inject +# items.detect +# items.find_all +# items.member? +# +# # good +# items.map +# items.map! +# items.flat_map +# items.reduce +# items.find +# items.select +# items.include? +# +# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#43 +class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MethodPreference + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#55 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#63 + def check_method_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#72 + def implicit_block?(node); end + + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#80 + def message(node); end + + # Some enumerable methods accept a bare symbol (ie. _not_ Symbol#to_proc) instead + # of a block. + # + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#86 + def methods_accepting_symbol; end +end + +# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#47 +RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) + +# Checks for methods invoked via the `::` operator instead +# of the `.` operator (like `FileUtils::rmdir` instead of `FileUtils.rmdir`). +# +# @example +# # bad +# Timeout::timeout(500) { do_something } +# FileUtils::rmdir(dir) +# Marshal::dump(obj) +# +# # good +# Timeout.timeout(500) { do_something } +# FileUtils.rmdir(dir) +# Marshal.dump(obj) +# +# source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#20 +class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#26 + def java_type_node?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#35 + def on_send(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#31 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#23 +RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) + +# Checks for class methods that are defined using the `::` +# operator instead of the `.` operator. +# +# @example +# # bad +# class Foo +# def self::bar +# end +# end +# +# # good +# class Foo +# def self.bar +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#22 +class RuboCop::Cop::Style::ColonMethodDefinition < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#27 + def on_defs(node); end +end + +# source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#25 +RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where multiple consecutive loops over the same data +# can be combined into a single loop. It is very likely that combining them +# will make the code more efficient and more concise. +# +# @example +# # bad +# def method +# items.each do |item| +# do_something(item) +# end +# +# items.each do |item| +# do_something_else(item) +# end +# end +# +# # good +# def method +# items.each do |item| +# do_something(item) +# do_something_else(item) +# end +# end +# +# # bad +# def method +# for item in items do +# do_something(item) +# end +# +# for item in items do +# do_something_else(item) +# end +# end +# +# # good +# def method +# for item in items do +# do_something(item) +# do_something_else(item) +# end +# end +# +# # good +# def method +# each_slice(2) { |slice| do_something(slice) } +# each_slice(3) { |slice| do_something(slice) } +# end +# +# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#59 +class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#66 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#79 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#66 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#90 + def collection_looping_method?(node); end + + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#107 + def combine_with_left_sibling(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#95 + def same_collection_looping_block?(node, sibling); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#103 + def same_collection_looping_for?(node, sibling); end +end + +# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#64 +RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String) + +# Enforces using `` or %x around command literals. +# +# @example EnforcedStyle: backticks (default) +# # bad +# folders = %x(find . -type d).split +# +# # bad +# %x( +# ln -s foo.example.yml foo.example +# ln -s bar.example.yml bar.example +# ) +# +# # good +# folders = `find . -type d`.split +# +# # good +# ` +# ln -s foo.example.yml foo.example +# ln -s bar.example.yml bar.example +# ` +# @example EnforcedStyle: mixed +# # bad +# folders = %x(find . -type d).split +# +# # bad +# ` +# ln -s foo.example.yml foo.example +# ln -s bar.example.yml bar.example +# ` +# +# # good +# folders = `find . -type d`.split +# +# # good +# %x( +# ln -s foo.example.yml foo.example +# ln -s bar.example.yml bar.example +# ) +# @example EnforcedStyle: percent_x +# # bad +# folders = `find . -type d`.split +# +# # bad +# ` +# ln -s foo.example.yml foo.example +# ln -s bar.example.yml bar.example +# ` +# +# # good +# folders = %x(find . -type d).split +# +# # good +# %x( +# ln -s foo.example.yml foo.example +# ln -s bar.example.yml bar.example +# ) +# @example AllowInnerBackticks: false (default) +# # If `false`, the cop will always recommend using `%x` if one or more +# # backticks are found in the command string. +# +# # bad +# `echo \`ls\`` +# +# # good +# %x(echo `ls`) +# @example AllowInnerBackticks: true +# # good +# `echo \`ls\`` +# +# source://rubocop//lib/rubocop/cop/style/command_literal.rb#78 +class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#85 + def on_xstr(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#146 + def allow_inner_backticks?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#122 + def allowed_backtick_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#131 + def allowed_percent_x_literal?(node); end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#109 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#159 + def backtick_literal?(node); end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#97 + def check_backtick_literal(node, message); end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#103 + def check_percent_x_literal(node, message); end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#167 + def command_delimiter; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#150 + def contains_backtick?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#142 + def contains_disallowed_backtick?(node); end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#171 + def default_delimiter; end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#154 + def node_body(node); end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#163 + def preferred_delimiter; end + + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#175 + def preferred_delimiters_config; end +end + +# source://rubocop//lib/rubocop/cop/style/command_literal.rb#82 +RuboCop::Cop::Style::CommandLiteral::MSG_USE_BACKTICKS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/command_literal.rb#83 +RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), String) + +# Checks that comment annotation keywords are written according +# to guidelines. +# +# Annotation keywords can be specified by overriding the cop's `Keywords` +# configuration. Keywords are allowed to be single words or phrases. +# +# NOTE: With a multiline comment block (where each line is only a +# comment), only the first line will be able to register an offense, even +# if an annotation keyword starts another line. This is done to prevent +# incorrect registering of keywords (eg. `review`) inside a paragraph as an +# annotation. +# +# @example RequireColon: true (default) +# # bad +# # TODO make better +# +# # good +# # TODO: make better +# +# # bad +# # TODO:make better +# +# # good +# # TODO: make better +# +# # bad +# # fixme: does not work +# +# # good +# # FIXME: does not work +# +# # bad +# # Optimize does not work +# +# # good +# # OPTIMIZE: does not work +# @example RequireColon: false +# # bad +# # TODO: make better +# +# # good +# # TODO make better +# +# # bad +# # fixme does not work +# +# # good +# # FIXME does not work +# +# # bad +# # Optimize does not work +# +# # good +# # OPTIMIZE does not work +# +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#61 +class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#73 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#110 + def annotation_range(annotation); end + + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#114 + def correct_offense(corrector, range, keyword); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#102 + def first_comment_line?(comments, index); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#106 + def inline_comment?(comment); end + + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#124 + def keywords; end + + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#87 + def register_offense(annotation); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#120 + def requires_colon?; end +end + +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#71 +RuboCop::Cop::Style::CommentAnnotation::MISSING_NOTE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#65 +RuboCop::Cop::Style::CommentAnnotation::MSG_COLON_STYLE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#68 +RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), String) + +# Checks for comments put on the same line as some keywords. +# These keywords are: `class`, `module`, `def`, `begin`, `end`. +# +# Note that some comments +# are allowed. +# +# Autocorrection removes comments from `end` keyword and keeps comments +# for `class`, `module`, `def` and `begin` above the keyword. +# +# @example +# # bad +# if condition +# statement +# end # end if +# +# # bad +# class X # comment +# statement +# end +# +# # bad +# def x; end # comment +# +# # good +# if condition +# statement +# end +# +# # good +# class X # :nodoc: +# y +# end +# +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#43 +class RuboCop::Cop::Style::CommentedKeyword < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#57 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#80 + def offensive?(comment); end + + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#67 + def register_offense(comment, matched_keyword); end + + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#86 + def source_line(comment); end +end + +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#52 +RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#53 +RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENT_REGEXES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#49 +RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#50 +RuboCop::Cop::Style::CommentedKeyword::KEYWORD_REGEXES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#47 +RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#55 +RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp) + +# Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum. +# +# This cop supports autocorrection for `if/elsif/else` bad style only. +# Because `ArgumentError` occurs if the minimum and maximum of `clamp` arguments are reversed. +# When these are variables, it is not possible to determine which is the minimum and maximum: +# +# [source,ruby] +# ---- +# [1, [2, 3].max].min # => 1 +# 1.clamp(3, 1) # => min argument must be smaller than max argument (ArgumentError) +# ---- +# +# @example +# +# # bad +# [[x, low].max, high].min +# +# # bad +# if x < low +# low +# elsif high < x +# high +# else +# x +# end +# +# # good +# x.clamp(low, high) +# +# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#35 +class RuboCop::Cop::Style::ComparableClamp < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#61 + def array_min_max?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#47 + def if_elsif_else_condition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#78 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#100 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#108 + def autocorrect(corrector, node, prefer); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#117 + def min_condition?(if_condition, else_body); end +end + +# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#42 +RuboCop::Cop::Style::ComparableClamp::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#43 +RuboCop::Cop::Style::ComparableClamp::MSG_MIN_MAX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#44 +RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of `Array#push(item)` instead of `Array#concat([item])` +# to avoid redundant array literals. +# +# @example +# +# # bad +# list.concat([foo]) +# list.concat([bar, baz]) +# list.concat([qux, quux], [corge]) +# +# # good +# list.push(foo) +# list.push(bar, baz) +# list.push(qux, quux, corge) +# +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#25 +class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#69 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#86 + def percent_literals_includes_only_basic_literals?(node); end + + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#73 + def preferred_method(node); end +end + +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#28 +RuboCop::Cop::Style::ConcatArrayLiterals::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#29 +RuboCop::Cop::Style::ConcatArrayLiterals::MSG_FOR_PERCENT_LITERALS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#31 +RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check for `if` and `case` statements where each branch is used for +# assignment to the same variable when using the return of the +# condition can be used instead. +# +# @example EnforcedStyle: assign_to_condition (default) +# # bad +# if foo +# bar = 1 +# else +# bar = 2 +# end +# +# case foo +# when 'a' +# bar += 1 +# else +# bar += 2 +# end +# +# if foo +# some_method +# bar = 1 +# else +# some_other_method +# bar = 2 +# end +# +# # good +# bar = if foo +# 1 +# else +# 2 +# end +# +# bar += case foo +# when 'a' +# 1 +# else +# 2 +# end +# +# bar << if foo +# some_method +# 1 +# else +# some_other_method +# 2 +# end +# @example EnforcedStyle: assign_inside_condition +# # bad +# bar = if foo +# 1 +# else +# 2 +# end +# +# bar += case foo +# when 'a' +# 1 +# else +# 2 +# end +# +# bar << if foo +# some_method +# 1 +# else +# some_other_method +# 2 +# end +# +# # good +# if foo +# bar = 1 +# else +# bar = 2 +# end +# +# case foo +# when 'a' +# bar += 1 +# else +# bar += 2 +# end +# +# if foo +# some_method +# bar = 1 +# else +# some_other_method +# bar = 2 +# end +# +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#210 +class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Style::ConditionalAssignmentHelper + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # The shovel operator `<<` does not have its own type. It is a `send` + # type. + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#228 + def assignment_type?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#309 + def candidate_condition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_and_asgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#264 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#274 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#250 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_masgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_op_asgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + def on_or_asgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#244 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#315 + def allowed_single_line?(branches); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#386 + def allowed_statements?(branches); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#311 + def allowed_ternary?(assignment); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#319 + def assignment_node(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#363 + def assignment_types_match?(*nodes); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#378 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#304 + def candidate_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#286 + def check_assignment_to_condition(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#369 + def check_node(node, branches); end + + # If `Layout/LineLength` is enabled, we do not want to introduce an + # offense by autocorrecting this cop. Find the max configured line + # length. Find the longest line of condition. Remove the assignment + # from lines that contain the offending assignment because after + # correcting, this will not be on the line anymore. Check if the length + # of the longest line + the length of the corrected assignment is + # greater than the max configured line length + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#402 + def correction_exceeds_line_limit?(node, branches); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#433 + def include_ternary?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#356 + def lhs_all_match?(branches); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#421 + def line_length_cop_enabled?; end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#414 + def longest_line(node, assignment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#410 + def longest_line_exceeds_line_limit?(node, assignment); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#425 + def max_line_length; end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#340 + def move_assignment_inside_condition(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#330 + def move_assignment_outside_condition(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#429 + def single_line_conditions_only?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#352 + def ternary_condition?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#219 +RuboCop::Cop::Style::ConditionalAssignment::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#217 +RuboCop::Cop::Style::ConditionalAssignment::ASSIGN_TO_CONDITION_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#221 +RuboCop::Cop::Style::ConditionalAssignment::ENABLED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#220 +RuboCop::Cop::Style::ConditionalAssignment::LINE_LENGTH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#222 +RuboCop::Cop::Style::ConditionalAssignment::MAX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#216 +RuboCop::Cop::Style::ConditionalAssignment::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#223 +RuboCop::Cop::Style::ConditionalAssignment::SINGLE_LINE_CONDITIONS_ONLY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#218 +RuboCop::Cop::Style::ConditionalAssignment::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# Helper module to provide common methods to classes needed for the +# ConditionalAssignment Cop. +# +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#8 +module RuboCop::Cop::Style::ConditionalAssignmentHelper + extend ::RuboCop::AST::NodePattern::Macros + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#64 + def end_with_eq?(sym); end + + # `elsif` branches show up in the `node` as an `else`. We need + # to recursively iterate over all `else` branches and consider all + # but the last `node` an `elsif` branch and consider the last `node` + # the actual `else` branch. + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#20 + def expand_elses(branch); end + + # `when` nodes contain the entire branch including the condition. + # We only need the contents of the branch, not the condition. + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#28 + def expand_when_branches(when_branches); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#55 + def indent(cop, source); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#37 + def lhs(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#32 + def tail(branch); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#109 + def assignment_rhs_exist?(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#70 + def expand_elsif(node, elsif_branches = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#96 + def lhs_for_casgn(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#83 + def lhs_for_send(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#105 + def setter_method?(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#13 +RuboCop::Cop::Style::ConditionalAssignmentHelper::ALIGN_WITH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#12 +RuboCop::Cop::Style::ConditionalAssignmentHelper::END_ALIGNMENT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#11 +RuboCop::Cop::Style::ConditionalAssignmentHelper::EQUAL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#14 +RuboCop::Cop::Style::ConditionalAssignmentHelper::KEYWORD = T.let(T.unsafe(nil), String) + +# Helper module to provide common methods to ConditionalAssignment +# correctors +# +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#440 +module RuboCop::Cop::Style::ConditionalCorrectorHelper + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#461 + def assignment(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#491 + def correct_branches(corrector, branches); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#468 + def correct_if_branches(corrector, cop, node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#441 + def remove_whitespace_in_branches(corrector, branch, condition, column); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#478 + def replace_branch_assignment(corrector, branch); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#454 + def white_space_range(node, column); end +end + +# Checks that constants defined in classes and modules have +# an explicit visibility declaration. By default, Ruby makes all class- +# and module constants public, which litters the public API of the +# class or module. Explicitly declaring a visibility makes intent more +# clear, and prevents outside actors from touching private state. +# +# @example +# +# # bad +# class Foo +# BAR = 42 +# BAZ = 43 +# end +# +# # good +# class Foo +# BAR = 42 +# private_constant :BAR +# +# BAZ = 43 +# public_constant :BAZ +# end +# @example IgnoreModules: false (default) +# # bad +# class Foo +# MyClass = Struct.new() +# end +# +# # good +# class Foo +# MyClass = Struct.new() +# public_constant :MyClass +# end +# @example IgnoreModules: true +# # good +# class Foo +# MyClass = Struct.new() +# end +# +# source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#47 +class RuboCop::Cop::Style::ConstantVisibility < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#51 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#96 + def visibility_declaration_for?(param0 = T.unsafe(nil), param1); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#76 + def class_or_module_scope?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#62 + def ignore_modules?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#100 + def match_name?(name, constant_name); end + + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#70 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#66 + def module?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#87 + def visibility_declaration?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#48 +RuboCop::Cop::Style::ConstantVisibility::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/copyright.rb#21 +class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/copyright.rb#28 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/copyright.rb#47 + def autocorrect_notice; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/copyright.rb#78 + def encoding_token?(processed_source, token_index); end + + # source://rubocop//lib/rubocop/cop/style/copyright.rb#64 + def insert_notice_before(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/copyright.rb#43 + def notice; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/copyright.rb#85 + def notice_found?(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/copyright.rb#51 + def offense_range; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/copyright.rb#71 + def shebang_token?(processed_source, token_index); end + + # @raise [Warning] + # + # source://rubocop//lib/rubocop/cop/style/copyright.rb#55 + def verify_autocorrect_notice!; end +end + +# source://rubocop//lib/rubocop/cop/style/copyright.rb#26 +RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/copyright.rb#25 +RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) + +# Checks for inheritance from `Data.define` to avoid creating the anonymous parent class. +# +# @example +# # bad +# class Person < Data.define(:first_name, :last_name) +# def age +# 42 +# end +# end +# +# # good +# Person = Data.define(:first_name, :last_name) do +# def age +# 42 +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#26 +class RuboCop::Cop::Style::DataInheritance < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#48 + def data_define?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#36 + def on_class(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#55 + def correct_parent(parent, corrector); end + + # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#65 + def range_for_empty_class_body(class_node, data_define); end +end + +# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#31 +RuboCop::Cop::Style::DataInheritance::MSG = T.let(T.unsafe(nil), String) + +# Checks for consistent usage of the `DateTime` class over the +# `Time` class. This cop is disabled by default since these classes, +# although highly overlapping, have particularities that make them not +# replaceable in certain situations when dealing with multiple timezones +# and/or DST. +# +# @example +# +# # bad - uses `DateTime` for current time +# DateTime.now +# +# # good - uses `Time` for current time +# Time.now +# +# # bad - uses `DateTime` for modern date +# DateTime.iso8601('2016-06-29') +# +# # good - uses `Time` for modern date +# Time.iso8601('2016-06-29') +# +# # good - uses `DateTime` with start argument for historical date +# DateTime.iso8601('1751-04-23', Date::ENGLAND) +# @example AllowCoercion: false (default) +# +# # bad - coerces to `DateTime` +# something.to_datetime +# +# # good - coerces to `Time` +# something.to_time +# @example AllowCoercion: true +# +# # good +# something.to_datetime +# +# # good +# something.to_time +# +# source://rubocop//lib/rubocop/cop/style/date_time.rb#49 +class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/date_time.rb#56 + def date_time?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/date_time.rb#61 + def historic_date?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/date_time.rb#70 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/date_time.rb#66 + def to_datetime?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/date_time.rb#85 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/date_time.rb#81 + def disallow_coercion?; end +end + +# source://rubocop//lib/rubocop/cop/style/date_time.rb#52 +RuboCop::Cop::Style::DateTime::CLASS_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/date_time.rb#53 +RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) + +# Checks for parentheses in the definition of a method, +# that does not take any arguments. Both instance and +# class/singleton methods are checked. +# +# @example +# +# # bad +# def foo() +# do_something +# end +# +# # good +# def foo +# do_something +# end +# +# # bad +# def foo() = do_something +# +# # good +# def foo = do_something +# +# # good (without parentheses it's a syntax error) +# def foo() do_something end +# @example +# +# # bad +# def Baz.foo() +# do_something +# end +# +# # good +# def Baz.foo +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#42 +class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 + def on_defs(node); end +end + +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 +RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where the `#\_\_dir\_\_` method can replace more +# complex constructs to retrieve a canonicalized absolute path to the +# current file. +# +# @example +# # bad +# path = File.expand_path(File.dirname(__FILE__)) +# +# # bad +# path = File.dirname(File.realpath(__FILE__)) +# +# # good +# path = __dir__ +# +# source://rubocop//lib/rubocop/cop/style/dir.rb#19 +class RuboCop::Cop::Style::Dir < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/dir.rb#29 + def dir_replacement?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/dir.rb#34 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/dir.rb#44 + def file_keyword?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/dir.rb#25 +RuboCop::Cop::Style::Dir::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/dir.rb#26 +RuboCop::Cop::Style::Dir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Prefer to use `Dir.empty?('path/to/dir')` when checking if a directory is empty. +# +# @example +# # bad +# Dir.entries('path/to/dir').size == 2 +# Dir.children('path/to/dir').empty? +# Dir.children('path/to/dir').size == 0 +# Dir.each_child('path/to/dir').none? +# +# # good +# Dir.empty?('path/to/dir') +# +# source://rubocop//lib/rubocop/cop/style/dir_empty.rb#18 +class RuboCop::Cop::Style::DirEmpty < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/dir_empty.rb#28 + def offensive?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/dir_empty.rb#37 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/dir_empty.rb#48 + def bang(node); end +end + +# source://rubocop//lib/rubocop/cop/style/dir_empty.rb#22 +RuboCop::Cop::Style::DirEmpty::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/dir_empty.rb#23 +RuboCop::Cop::Style::DirEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Detects comments to enable/disable RuboCop. +# This is useful if want to make sure that every RuboCop error gets fixed +# and not quickly disabled with a comment. +# +# Specific cops can be allowed with the `AllowedCops` configuration. Note that +# +# @example +# # bad +# # rubocop:disable Metrics/AbcSize +# def foo +# end +# # rubocop:enable Metrics/AbcSize +# +# # good +# def foo +# end +# @example AllowedCops: [Metrics/AbcSize] +# # good +# # rubocop:disable Metrics/AbcSize +# def foo +# end +# # rubocop:enable Metrics/AbcSize +# +# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#33 +class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#40 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#77 + def allowed_cops; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#81 + def any_cops_allowed?; end + + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#72 + def directive_cops(comment); end + + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#53 + def register_offense(comment, directive_cops, disallowed_cops); end +end + +# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#37 +RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#38 +RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG_FOR_COPS = T.let(T.unsafe(nil), String) + +# When using `class_eval` (or other `eval`) with string interpolation, +# add a comment block showing its appearance if interpolated (a practice used in Rails code). +# +# @example +# # from activesupport/lib/active_support/core_ext/string/output_safety.rb +# +# # bad +# UNSAFE_STRING_METHODS.each do |unsafe_method| +# if 'String'.respond_to?(unsafe_method) +# class_eval <<-EOT, __FILE__, __LINE__ + 1 +# def #{unsafe_method}(*params, &block) +# to_str.#{unsafe_method}(*params, &block) +# end +# +# def #{unsafe_method}!(*params) +# @dirty = true +# super +# end +# EOT +# end +# end +# +# # good, inline comments in heredoc +# UNSAFE_STRING_METHODS.each do |unsafe_method| +# if 'String'.respond_to?(unsafe_method) +# class_eval <<-EOT, __FILE__, __LINE__ + 1 +# def #{unsafe_method}(*params, &block) # def capitalize(*params, &block) +# to_str.#{unsafe_method}(*params, &block) # to_str.capitalize(*params, &block) +# end # end +# +# def #{unsafe_method}!(*params) # def capitalize!(*params) +# @dirty = true # @dirty = true +# super # super +# end # end +# EOT +# end +# end +# +# # good, block comments in heredoc +# class_eval <<-EOT, __FILE__, __LINE__ + 1 +# # def capitalize!(*params) +# # @dirty = true +# # super +# # end +# +# def #{unsafe_method}!(*params) +# @dirty = true +# super +# end +# EOT +# +# # good, block comments before heredoc +# class_eval( +# # def capitalize!(*params) +# # @dirty = true +# # super +# # end +# +# <<-EOT, __FILE__, __LINE__ + 1 +# def #{unsafe_method}!(*params) +# @dirty = true +# super +# end +# EOT +# ) +# +# # bad - interpolated string without comment +# class_eval("def #{unsafe_method}!(*params); end") +# +# # good - with inline comment or replace it with block comment using heredoc +# class_eval("def #{unsafe_method}!(*params); end # def capitalize!(*params); end") +# +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#77 +class RuboCop::Cop::Style::DocumentDynamicEvalDefinition < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#84 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#107 + def comment_block_docs?(arg_node); end + + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#147 + def comment_regexp(arg_node); end + + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#126 + def heredoc_comment_blocks(heredoc_body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#100 + def inline_comment_docs?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#96 + def interpolated?(arg_node); end + + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#136 + def merge_adjacent_comments(line, index, hash); end + + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#117 + def preceding_comment_blocks(node); end + + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#156 + def source_to_regexp(source); end +end + +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#78 +RuboCop::Cop::Style::DocumentDynamicEvalDefinition::BLOCK_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#79 +RuboCop::Cop::Style::DocumentDynamicEvalDefinition::COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#80 +RuboCop::Cop::Style::DocumentDynamicEvalDefinition::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#82 +RuboCop::Cop::Style::DocumentDynamicEvalDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for missing top-level documentation of classes and +# modules. Classes with no body are exempt from the check and so are +# namespace modules - modules that have nothing in their bodies except +# classes, other modules, constant definitions or constant visibility +# declarations. +# +# The documentation requirement is annulled if the class or module has +# same for all its children. +# +# @example +# # bad +# class Person +# # ... +# end +# +# module Math +# end +# +# # good +# # Description/Explanation of Person class +# class Person +# # ... +# end +# +# # allowed +# # Class without body +# class Person +# end +# +# # Namespace - A namespace can be a class or a module +# # Containing a class +# module Namespace +# # Description/Explanation of Person class +# class Person +# # ... +# end +# end +# +# # Containing constant visibility declaration +# module Namespace +# class Private +# end +# +# private_constant :Private +# end +# +# # Containing constant definition +# module Namespace +# Public = Class.new +# end +# +# # Macro calls +# module Namespace +# extend Foo +# end +# @example AllowedConstants: ['ClassMethods'] +# +# # good +# module A +# module ClassMethods +# # ... +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/documentation.rb#72 +class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::DocumentationComment + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#79 + def constant_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#85 + def constant_visibility_declaration?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#90 + def include_statement?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#94 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#100 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#82 + def outer_module(param0); end + + private + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#174 + def allowed_constants; end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#106 + def check(node, body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#147 + def compact_namespace?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#143 + def constant_allowed?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#139 + def constant_declaration?(node); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#178 + def identifier(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#123 + def include_statement_only?(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#129 + def namespace?(node); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#170 + def nodoc(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#166 + def nodoc?(comment, require_all: T.unsafe(nil)); end + + # Note: How end-of-line comments are associated with code changed in + # parser-2.2.0.4. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#156 + def nodoc_comment?(node, require_all: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation.rb#118 + def nodoc_self_or_outer_module?(node); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#186 + def qualify_const(node); end +end + +# source://rubocop//lib/rubocop/cop/style/documentation.rb#76 +RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) + +# Checks for missing documentation comment for public methods. +# It can optionally be configured to also require documentation for +# non-public methods. +# +# NOTE: This cop allows `initialize` method because `initialize` is +# a special method called from `new`. In some programming languages +# they are called constructor to distinguish it from method. +# +# @example +# +# # bad +# +# class Foo +# def bar +# puts baz +# end +# end +# +# module Foo +# def bar +# puts baz +# end +# end +# +# def foo.bar +# puts baz +# end +# +# # good +# +# class Foo +# # Documentation +# def bar +# puts baz +# end +# end +# +# module Foo +# # Documentation +# def bar +# puts baz +# end +# end +# +# # Documentation +# def foo.bar +# puts baz +# end +# @example RequireForNonPublicMethods: false (default) +# # good +# class Foo +# protected +# def do_something +# end +# end +# +# class Foo +# private +# def do_something +# end +# end +# @example RequireForNonPublicMethods: true +# # bad +# class Foo +# protected +# def do_something +# end +# end +# +# class Foo +# private +# def do_something +# end +# end +# +# # good +# class Foo +# protected +# # Documentation +# def do_something +# end +# end +# +# class Foo +# private +# # Documentation +# def do_something +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#98 +class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base + include ::RuboCop::Cop::DocumentationComment + include ::RuboCop::Cop::VisibilityHelp + include ::RuboCop::Cop::DefNode + + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#105 + def modifier_node?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#119 + def check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#126 + def require_for_non_public_methods?; end +end + +# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#102 +RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) + +# Detects double disable comments on one line. This is mostly to catch +# automatically generated comments that need to be regenerated. +# +# @example +# # bad +# def f # rubocop:disable Style/For # rubocop:disable Metrics/AbcSize +# end +# +# # good +# # rubocop:disable Metrics/AbcSize +# def f # rubocop:disable Style/For +# end +# # rubocop:enable Metrics/AbcSize +# +# # if both fit on one line +# def f # rubocop:disable Style/For, Metrics/AbcSize +# end +# +# source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#27 +class RuboCop::Cop::Style::DoubleCopDisableDirective < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#34 + def on_new_investigation; end +end + +# source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#32 +RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of double negation (`!!`) to convert something to a boolean value. +# +# When using `EnforcedStyle: allowed_in_returns`, allow double negation in contexts +# that use boolean as a return value. When using `EnforcedStyle: forbidden`, double negation +# should be forbidden always. +# +# NOTE: when `something` is a boolean value +# `!!something` and `!something.nil?` are not the same thing. +# As you're unlikely to write code that can accept values of any type +# this is rarely a problem in practice. +# +# @example +# # bad +# !!something +# +# # good +# !something.nil? +# @example EnforcedStyle: allowed_in_returns (default) +# # good +# def foo? +# !!return_value +# end +# +# define_method :foo? do +# !!return_value +# end +# +# define_singleton_method :foo? do +# !!return_value +# end +# @example EnforcedStyle: forbidden +# # bad +# def foo? +# !!return_value +# end +# +# define_method :foo? do +# !!return_value +# end +# +# define_singleton_method :foo? do +# !!return_value +# end +# +# source://rubocop//lib/rubocop/cop/style/double_negation.rb#61 +class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#69 + def double_negative?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#71 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#84 + def allowed_in_returns?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#111 + def define_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#138 + def double_negative_condition_return_value?(node, last_child, conditional_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#88 + def end_of_method_definition?(node); end + + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#120 + def find_conditional_node_from_ascendant(node); end + + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#103 + def find_def_node_from_ascendant(node); end + + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#127 + def find_last_child(node); end + + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#147 + def find_parent_not_enumerable(node); end +end + +# source://rubocop//lib/rubocop/cop/style/double_negation.rb#65 +RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/double_negation.rb#66 +RuboCop::Cop::Style::DoubleNegation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for loops which iterate a constant number of times, +# using a Range literal and `#each`. This can be done more readably using +# `Integer#times`. +# +# This check only applies if the block takes no parameters. +# +# @example +# # bad +# (1..5).each { } +# +# # good +# 5.times { } +# @example +# # bad +# (0...10).each {} +# +# # good +# 10.times {} +# +# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#25 +class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#53 + def each_range(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#65 + def each_range_with_zero_origin?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#77 + def each_range_without_block_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#30 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#48 + def offending?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#28 +RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) + +# Looks for inject / reduce calls where the passed in object is +# returned at the end and so could be replaced by each_with_object without +# the need to return the object at the end. +# +# However, we can't replace with each_with_object if the accumulator +# parameter is assigned to within the block. +# +# @example +# # bad +# [1, 2].inject({}) { |a, e| a[e] = e; a } +# +# # good +# [1, 2].each_with_object({}) { |e, a| a[e] = e } +# +# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#19 +class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#60 + def each_with_object_block_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#65 + def each_with_object_numblock_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#26 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#43 + def on_numblock(node); end + + private + + # if the accumulator parameter is assigned to in the block, + # then we can't convert to each_with_object + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#102 + def accumulator_param_assigned_to?(body, args); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#69 + def autocorrect_block(corrector, node, return_value); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#84 + def autocorrect_numblock(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#121 + def first_argument_returned?(args, return_value); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#114 + def return_value(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#129 + def return_value_occupies_whole_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#96 + def simple_method_arg?(method_arg); end + + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#133 + def whole_line_expression(node); end +end + +# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#24 +RuboCop::Cop::Style::EachWithObject::METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#23 +RuboCop::Cop::Style::EachWithObject::MSG = T.let(T.unsafe(nil), String) + +# Checks for pipes for empty block parameters. Pipes for empty +# block parameters do not cause syntax errors, but they are redundant. +# +# @example +# # bad +# a do || +# do_something +# end +# +# # bad +# a { || do_something } +# +# # good +# a do +# end +# +# # good +# a { do_something } +# +# source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#24 +class RuboCop::Cop::Style::EmptyBlockParameter < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EmptyParameter + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#31 + def on_block(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#38 + def autocorrect(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#29 +RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String) + +# Checks for case statements with an empty condition. +# +# @example +# +# # bad: +# case +# when x == 0 +# puts 'x is 0' +# when y == 0 +# puts 'y is 0' +# else +# puts 'neither is 0' +# end +# +# # good: +# if x == 0 +# puts 'x is 0' +# elsif y == 0 +# puts 'y is 0' +# else +# puts 'neither is 0' +# end +# +# # good: (the case condition node is not empty) +# case n +# when 0 +# puts 'zero' +# when 1 +# puts 'one' +# else +# puts 'more' +# end +# +# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#38 +class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#46 + def on_case(case_node); end + + private + + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#63 + def autocorrect(corrector, case_node); end + + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#70 + def correct_case_when(corrector, case_node, when_nodes); end + + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#82 + def correct_when_conditions(corrector, when_nodes); end + + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#97 + def keep_first_when_comment(case_range, corrector); end + + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#107 + def replace_then_with_line_break(corrector, conditions, when_node); end +end + +# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#42 +RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#43 +RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.unsafe(nil), Array) + +# Checks for empty else-clauses, possibly including comments and/or an +# explicit `nil` depending on the EnforcedStyle. +# +# @example EnforcedStyle: both (default) +# # warn on empty else and else with nil in it +# +# # bad +# if condition +# statement +# else +# nil +# end +# +# # bad +# if condition +# statement +# else +# end +# +# # good +# if condition +# statement +# else +# statement +# end +# +# # good +# if condition +# statement +# end +# @example EnforcedStyle: empty +# # warn only on empty else +# +# # bad +# if condition +# statement +# else +# end +# +# # good +# if condition +# statement +# else +# nil +# end +# +# # good +# if condition +# statement +# else +# statement +# end +# +# # good +# if condition +# statement +# end +# @example EnforcedStyle: nil +# # warn on else with nil in it +# +# # bad +# if condition +# statement +# else +# nil +# end +# +# # good +# if condition +# statement +# else +# end +# +# # good +# if condition +# statement +# else +# statement +# end +# +# # good +# if condition +# statement +# end +# @example AllowComments: false (default) +# +# # bad +# if condition +# statement +# else +# # something comment +# nil +# end +# +# # bad +# if condition +# statement +# else +# # something comment +# end +# @example AllowComments: true +# +# # good +# if condition +# statement +# else +# # something comment +# nil +# end +# +# # good +# if condition +# statement +# else +# # something comment +# end +# +# source://rubocop//lib/rubocop/cop/style/empty_else.rb#127 +class RuboCop::Cop::Style::EmptyElse < ::RuboCop::Cop::Base + include ::RuboCop::Cop::OnNormalIfUnless + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#139 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#135 + def on_normal_if_unless(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#172 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#193 + def autocorrect_forbidden?(type); end + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#186 + def base_node(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#145 + def check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#180 + def comment_in_else?(loc); end + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#160 + def empty_check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#156 + def empty_style?; end + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#197 + def missing_else_style; end + + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#166 + def nil_check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#152 + def nil_style?; end +end + +# source://rubocop//lib/rubocop/cop/style/empty_else.rb#133 +RuboCop::Cop::Style::EmptyElse::MSG = T.let(T.unsafe(nil), String) + +# Checks for using empty heredoc to reduce redundancy. +# +# @example +# +# # bad +# <<~EOS +# EOS +# +# <<-EOS +# EOS +# +# <<EOS +# EOS +# +# # good +# '' +# +# # bad +# do_something(<<~EOS) +# EOS +# +# do_something(<<-EOS) +# EOS +# +# do_something(<<EOS) +# EOS +# +# # good +# do_something('') +# +# source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#36 +class RuboCop::Cop::Style::EmptyHeredoc < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Heredoc + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#43 + def on_heredoc(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#63 + def enforce_double_quotes?; end + + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#59 + def preferred_string_literal; end + + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#67 + def string_literals_config; end +end + +# source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#41 +RuboCop::Cop::Style::EmptyHeredoc::MSG = T.let(T.unsafe(nil), String) + +# Checks for parentheses for empty lambda parameters. Parentheses +# for empty lambda parameters do not cause syntax errors, but they are +# redundant. +# +# @example +# # bad +# -> () { do_something } +# +# # good +# -> { do_something } +# +# # good +# -> (arg) { do_something(arg) } +# +# source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#19 +class RuboCop::Cop::Style::EmptyLambdaParameter < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EmptyParameter + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#26 + def on_block(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#35 + def autocorrect(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#24 +RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of a method, the result of which +# would be a literal, like an empty array, hash, or string. +# +# @example +# # bad +# a = Array.new +# h = Hash.new +# s = String.new +# +# # good +# a = [] +# h = {} +# s = '' +# +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#19 +class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#31 + def array_node(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#40 + def array_with_block(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#34 + def hash_node(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#43 + def hash_with_block(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#50 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#37 + def str_node(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#111 + def correction(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#74 + def enforce_double_quotes?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#82 + def first_argument_unparenthesized?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#129 + def frozen_strings?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#102 + def offense_array_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#106 + def offense_hash_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#60 + def offense_message(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#70 + def preferred_string_literal; end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#89 + def replacement_range(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#78 + def string_literals_config; end +end + +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#24 +RuboCop::Cop::Style::EmptyLiteral::ARR_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#25 +RuboCop::Cop::Style::EmptyLiteral::HASH_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#28 +RuboCop::Cop::Style::EmptyLiteral::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#26 +RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String) + +# Checks for the formatting of empty method definitions. +# By default it enforces empty method definitions to go on a single +# line (compact style), but it can be configured to enforce the `end` +# to go on its own line (expanded style). +# +# NOTE: A method definition is not considered empty if it contains +# comments. +# +# NOTE: Autocorrection will not be applied for the `compact` style +# if the resulting code is longer than the `Max` configuration for +# `Layout/LineLength`, but an offense will still be registered. +# +# @example EnforcedStyle: compact (default) +# # bad +# def foo(bar) +# end +# +# def self.foo(bar) +# end +# +# # good +# def foo(bar); end +# +# def foo(bar) +# # baz +# end +# +# def self.foo(bar); end +# @example EnforcedStyle: expanded +# # bad +# def foo(bar); end +# +# def self.foo(bar); end +# +# # good +# def foo(bar) +# end +# +# def self.foo(bar) +# end +# +# source://rubocop//lib/rubocop/cop/style/empty_method.rb#47 +class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#95 + def compact?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#103 + def compact_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#73 + def correct_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#77 + def corrected(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#99 + def expanded?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#107 + def expanded_style?; end + + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#89 + def joint(node); end + + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#111 + def max_line_length; end + + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#69 + def message(_range); end +end + +# source://rubocop//lib/rubocop/cop/style/empty_method.rb#51 +RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/empty_method.rb#52 +RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) + +# Checks ensures source files have no utf-8 encoding comments. +# +# @example +# # bad +# # encoding: UTF-8 +# # coding: UTF-8 +# # -*- coding: UTF-8 -*- +# +# source://rubocop//lib/rubocop/cop/style/encoding.rb#12 +class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/encoding.rb#20 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/encoding.rb#32 + def comments; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/encoding.rb#43 + def offense?(comment); end + + # source://rubocop//lib/rubocop/cop/style/encoding.rb#47 + def register_offense(line_number, comment); end +end + +# source://rubocop//lib/rubocop/cop/style/encoding.rb#17 +RuboCop::Cop::Style::Encoding::ENCODING_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/encoding.rb#16 +RuboCop::Cop::Style::Encoding::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/encoding.rb#18 +RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String) + +# Checks for END blocks. +# +# @example +# # bad +# END { puts 'Goodbye!' } +# +# # good +# at_exit { puts 'Goodbye!' } +# +# source://rubocop//lib/rubocop/cop/style/end_block.rb#15 +class RuboCop::Cop::Style::EndBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/end_block.rb#20 + def on_postexe(node); end +end + +# source://rubocop//lib/rubocop/cop/style/end_block.rb#18 +RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for endless methods. +# +# It can enforce either the use of endless methods definitions +# for single-lined method bodies, or disallow endless methods. +# +# Other method definition types are not considered by this cop. +# +# The supported styles are: +# +# * allow_single_line (default) - only single line endless method definitions are allowed. +# * allow_always - all endless method definitions are allowed. +# * disallow - all endless method definitions are disallowed. +# +# NOTE: Incorrect endless method definitions will always be +# corrected to a multi-line definition. +# +# @example EnforcedStyle: allow_single_line (default) +# # good +# def my_method() = x +# +# # bad, multi-line endless method +# def my_method() = x.foo +# .bar +# .baz +# @example EnforcedStyle: allow_always +# # good +# def my_method() = x +# +# # good +# def my_method() = x.foo +# .bar +# .baz +# @example EnforcedStyle: disallow +# # bad +# def my_method() = x +# +# # bad +# def my_method() = x.foo +# .bar +# .baz +# +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#49 +class RuboCop::Cop::Style::EndlessMethod < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::TargetRubyVersion + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#60 + def on_def(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#95 + def arguments(node, missing = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#85 + def correct_to_multiline(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#70 + def handle_allow_style(node); end + + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#79 + def handle_disallow_style(node); end +end + +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#56 +RuboCop::Cop::Style::EndlessMethod::CORRECTION_STYLES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#57 +RuboCop::Cop::Style::EndlessMethod::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#58 +RuboCop::Cop::Style::EndlessMethod::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) + +# Checks for consistent usage of `ENV['HOME']`. If `nil` is used as +# the second argument of `ENV.fetch`, it is treated as a bad case like `ENV[]`. +# +# @example +# +# # bad +# ENV['HOME'] +# ENV.fetch('HOME', nil) +# +# # good +# Dir.home +# +# # good +# ENV.fetch('HOME', default) +# +# source://rubocop//lib/rubocop/cop/style/env_home.rb#31 +class RuboCop::Cop::Style::EnvHome < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/env_home.rb#38 + def env_home?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/env_home.rb#45 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/env_home.rb#34 +RuboCop::Cop::Style::EnvHome::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/env_home.rb#35 +RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Ensures that eval methods (`eval`, `instance_eval`, `class_eval` +# and `module_eval`) are given filename and line number values (`\_\_FILE\_\_` +# and `\_\_LINE\_\_`). This data is used to ensure that any errors raised +# within the evaluated code will be given the correct identification +# in a backtrace. +# +# The cop also checks that the line number given relative to `\_\_LINE\_\_` is +# correct. +# +# This cop will autocorrect incorrect or missing filename and line number +# values. However, if `eval` is called without a binding argument, the cop +# will not attempt to automatically add a binding, or add filename and +# line values. +# +# This cop works only when a string literal is given as a code string. +# No offense is reported if a string variable is given as below: +# +# @example +# # bad +# eval <<-RUBY +# def do_something +# end +# RUBY +# +# # bad +# C.class_eval <<-RUBY +# def do_something +# end +# RUBY +# +# # good +# eval <<-RUBY, binding, __FILE__, __LINE__ + 1 +# def do_something +# end +# RUBY +# +# # good +# C.class_eval <<-RUBY, __FILE__, __LINE__ + 1 +# def do_something +# end +# RUBY +# @example +# # not checked +# code = <<-RUBY +# def do_something +# end +# RUBY +# eval code +# +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#56 +class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#74 + def line_with_offset?(param0 = T.unsafe(nil), param1, param2); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#81 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#69 + def valid_eval_receiver?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#195 + def add_offense_for_different_line(node, line_node, line_diff); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#142 + def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#210 + def add_offense_for_missing_line(node, code); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#217 + def add_offense_for_missing_location(node, code); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#189 + def add_offense_for_same_line(node, line_node); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#154 + def check_file(node, file_node); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#167 + def check_line(node, code); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#95 + def check_location(node, code); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#202 + def expected_line(sign, line_diff); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#122 + def file_and_line(node); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#177 + def line_difference(line_node, code); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#229 + def missing_line(node, code); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#109 + def register_offense(node, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#114 + def special_file_keyword?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#118 + def special_line_keyword?(node); end + + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#181 + def string_first_line(str_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#127 + def with_binding?(node); end + + # FIXME: It's a Style/ConditionalAssignment's false positive. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#133 + def with_lineno?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#59 +RuboCop::Cop::Style::EvalWithLocation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#60 +RuboCop::Cop::Style::EvalWithLocation::MSG_EVAL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#61 +RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_FILE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#63 +RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_LINE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#66 +RuboCop::Cop::Style::EvalWithLocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for places where `Integer#even?` or `Integer#odd?` +# can be used. +# +# @example +# +# # bad +# if x % 2 == 0 +# end +# +# # good +# if x.even? +# end +# +# source://rubocop//lib/rubocop/cop/style/even_odd.rb#18 +class RuboCop::Cop::Style::EvenOdd < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/even_odd.rb#25 + def even_odd_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/even_odd.rb#33 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/even_odd.rb#45 + def replacement_method(arg, method); end +end + +# source://rubocop//lib/rubocop/cop/style/even_odd.rb#21 +RuboCop::Cop::Style::EvenOdd::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/even_odd.rb#22 +RuboCop::Cop::Style::EvenOdd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for exact regexp match inside Regexp literals. +# +# @example +# +# # bad +# string =~ /\Astring\z/ +# string === /\Astring\z/ +# string.match(/\Astring\z/) +# string.match?(/\Astring\z/) +# +# # good +# string == 'string' +# +# # bad +# string !~ /\Astring\z/ +# +# # good +# string != 'string' +# +# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#25 +class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32 + def exact_regexp_match(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#55 + def exact_match_pattern?(parsed_regexp); end + + # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#62 + def new_method(node); end +end + +# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#28 +RuboCop::Cop::Style::ExactRegexpMatch::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#29 +RuboCop::Cop::Style::ExactRegexpMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for use of the `File.expand_path` arguments. +# Likewise, it also checks for the `Pathname.new` argument. +# +# Contrastive bad case and good case are alternately shown in +# the following examples. +# +# @example +# # bad +# File.expand_path('..', __FILE__) +# +# # good +# File.expand_path(__dir__) +# +# # bad +# File.expand_path('../..', __FILE__) +# +# # good +# File.expand_path('..', __dir__) +# +# # bad +# File.expand_path('.', __FILE__) +# +# # good +# File.expand_path(__FILE__) +# +# # bad +# Pathname(__FILE__).parent.expand_path +# +# # good +# Pathname(__dir__).expand_path +# +# # bad +# Pathname.new(__FILE__).parent.expand_path +# +# # good +# Pathname.new(__dir__).expand_path +# +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#43 +class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#58 + def file_expand_path(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#82 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#74 + def pathname_new_parent_expand_path(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#66 + def pathname_parent_expand_path(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#189 + def arguments_range(node); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#100 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#135 + def autocorrect_expand_path(corrector, current_path, default_dir); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#162 + def depth(current_path); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#113 + def inspect_offense_for_expand_path(node, current_path, default_dir); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#168 + def parent_path(current_path); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#182 + def remove_parent_method(corrector, default_dir); end + + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#155 + def strip_surrounded_quotes!(path_string); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#109 + def unrecommended_argument?(default_dir); end +end + +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#47 +RuboCop::Cop::Style::ExpandPathArguments::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#49 +RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#51 +RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_NEW_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#55 +RuboCop::Cop::Style::ExpandPathArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of explicit block argument to avoid writing +# block literal that just passes its arguments to another block. +# +# NOTE: This cop only registers an offense if the block args match the +# yield args exactly. +# +# @example +# # bad +# def with_tmp_dir +# Dir.mktmpdir do |tmp_dir| +# Dir.chdir(tmp_dir) { |dir| yield dir } # block just passes arguments +# end +# end +# +# # bad +# def nine_times +# 9.times { yield } +# end +# +# # good +# def with_tmp_dir(&block) +# Dir.mktmpdir do |tmp_dir| +# Dir.chdir(tmp_dir, &block) +# end +# end +# +# with_tmp_dir do |dir| +# puts "dir is accessible as a parameter and pwd is set: #{dir}" +# end +# +# # good +# def nine_times(&block) +# 9.times(&block) +# end +# +# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#41 +class RuboCop::Cop::Style::ExplicitBlockArgument < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # @return [ExplicitBlockArgument] a new instance of ExplicitBlockArgument + # + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#57 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#62 + def on_yield(node); end + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#49 + def yielding_block?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#108 + def add_block_argument(node, corrector, block_name); end + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#147 + def block_body_range(block_node, send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#125 + def call_like?(node); end + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#137 + def correct_call_node(node, corrector, block_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#120 + def empty_arguments?(node); end + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#87 + def extract_block_name(def_node); end + + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#129 + def insert_argument(node, corrector, block_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#95 + def yielding_arguments?(block_args, yield_args); end + + class << self + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#53 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#45 +RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) + +# Enforces consistency when using exponential notation +# for numbers in the code (eg 1.2e4). Different styles are supported: +# +# * `scientific` which enforces a mantissa between 1 (inclusive) and 10 (exclusive). +# * `engineering` which enforces the exponent to be a multiple of 3 and the mantissa +# to be between 0.1 (inclusive) and 10 (exclusive). +# * `integral` which enforces the mantissa to always be a whole number without +# trailing zeroes. +# +# @example EnforcedStyle: scientific (default) +# # Enforces a mantissa between 1 (inclusive) and 10 (exclusive). +# +# # bad +# 10e6 +# 0.3e4 +# 11.7e5 +# 3.14e0 +# +# # good +# 1e7 +# 3e3 +# 1.17e6 +# 3.14 +# @example EnforcedStyle: engineering +# # Enforces using multiple of 3 exponents, +# # mantissa should be between 0.1 (inclusive) and 1000 (exclusive) +# +# # bad +# 3.2e7 +# 0.1e5 +# 12e5 +# 1232e6 +# +# # good +# 32e6 +# 10e3 +# 1.2e6 +# 1.232e9 +# @example EnforcedStyle: integral +# # Enforces the mantissa to have no decimal part and no +# # trailing zeroes. +# +# # bad +# 3.2e7 +# 0.1e5 +# 120e4 +# +# # good +# 32e6 +# 1e4 +# 12e5 +# +# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#60 +class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#68 + def on_float(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#79 + def engineering?(node); end + + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#90 + def integral(node); end + + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#110 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#95 + def offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#74 + def scientific?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#62 +RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) + +# Suggests `ENV.fetch` for the replacement of `ENV[]`. +# `ENV[]` silently fails and returns `nil` when the environment variable is unset, +# which may cause unexpected behaviors when the developer forgets to set it. +# On the other hand, `ENV.fetch` raises KeyError or returns the explicitly +# specified default value. +# +# @example +# # bad +# ENV['X'] +# x = ENV['X'] +# +# # good +# ENV.fetch('X') +# x = ENV.fetch('X') +# +# # also good +# !ENV['X'] +# ENV['X'].some_method # (e.g. `.nil?`) +# +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#25 +class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#31 + def env_with_bracket?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#35 + def on_send(node); end + + private + + # The following are allowed cases: + # + # - Used as a flag (e.g., `if ENV['X']` or `!ENV['X']`) because + # it simply checks whether the variable is set. + # - Receiving a message with dot syntax, e.g. `ENV['X'].nil?`. + # - `ENV['key']` assigned by logical AND/OR assignment. + # - `ENV['key']` is the LHS of a `||`. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#105 + def allowable_use?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#48 + def allowed_var?(node); end + + # The following are allowed cases: + # + # - `ENV['key']` is a receiver of `||=`, e.g. `ENV['X'] ||= y`. + # - `ENV['key']` is a receiver of `&&=`, e.g. `ENV['X'] &&= y`. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#113 + def assigned?(node); end + + # Check if the node is a receiver and receives a message with dot syntax. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#89 + def message_chained_with_dot?(node); end + + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#126 + def new_code(name_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#84 + def offensive?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#120 + def or_lhs?(node); end + + # Avoid offending in the following cases: + # `ENV['key'] if ENV['key'] = x` + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#80 + def partial_matched?(node, condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#53 + def used_as_flag?(node); end + + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#60 + def used_if_condition_in_body(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#69 + def used_in_condition?(node, condition); end +end + +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#28 +RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) + +# Prefer to use `File.empty?('path/to/file')` when checking if a file is empty. +# +# @example +# # bad +# File.zero?('path/to/file') +# File.size('path/to/file') == 0 +# File.size('path/to/file') >= 0 +# File.size('path/to/file').zero? +# File.read('path/to/file').empty? +# File.binread('path/to/file') == '' +# FileTest.zero?('path/to/file') +# +# # good +# File.empty?('path/to/file') +# FileTest.empty?('path/to/file') +# +# source://rubocop//lib/rubocop/cop/style/file_empty.rb#27 +class RuboCop::Cop::Style::FileEmpty < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/file_empty.rb#37 + def offensive?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/file_empty.rb#49 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/file_empty.rb#62 + def bang(node); end +end + +# source://rubocop//lib/rubocop/cop/style/file_empty.rb#31 +RuboCop::Cop::Style::FileEmpty::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/file_empty.rb#32 +RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Favor `File.(bin)read` convenience methods. +# +# @example +# ## text mode +# # bad +# File.open(filename).read +# File.open(filename, &:read) +# File.open(filename) { |f| f.read } +# File.open(filename) do |f| +# f.read +# end +# File.open(filename, 'r').read +# File.open(filename, 'r', &:read) +# File.open(filename, 'r') do |f| +# f.read +# end +# +# # good +# File.read(filename) +# @example +# ## binary mode +# # bad +# File.open(filename, 'rb').read +# File.open(filename, 'rb', &:read) +# File.open(filename, 'rb') do |f| +# f.read +# end +# +# # good +# File.binread(filename) +# +# source://rubocop//lib/rubocop/cop/style/file_read.rb#38 +class RuboCop::Cop::Style::FileRead < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/file_read.rb#65 + def block_read?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/file_read.rb#49 + def file_open?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/file_read.rb#69 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/file_read.rb#60 + def send_read?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/file_read.rb#84 + def evidence(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/file_read.rb#100 + def file_open_read?(node); end + + # source://rubocop//lib/rubocop/cop/style/file_read.rb#106 + def read_method(mode); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/file_read.rb#92 + def read_node?(node, block_pass); end +end + +# source://rubocop//lib/rubocop/cop/style/file_read.rb#42 +RuboCop::Cop::Style::FileRead::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/file_read.rb#46 +RuboCop::Cop::Style::FileRead::READ_FILE_START_TO_FINISH_MODES = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/file_read.rb#44 +RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Favor `File.(bin)write` convenience methods. +# +# NOTE: There are different method signatures between `File.write` (class method) +# and `File#write` (instance method). The following case will be allowed because +# static analysis does not know the contents of the splat argument: +# +# [source,ruby] +# ---- +# File.open(filename, 'w') do |f| +# f.write(*objects) +# end +# ---- +# +# @example +# ## text mode +# # bad +# File.open(filename, 'w').write(content) +# File.open(filename, 'w') do |f| +# f.write(content) +# end +# +# # good +# File.write(filename, content) +# @example +# ## binary mode +# # bad +# File.open(filename, 'wb').write(content) +# File.open(filename, 'wb') do |f| +# f.write(content) +# end +# +# # good +# File.binwrite(filename, content) +# +# source://rubocop//lib/rubocop/cop/style/file_write.rb#41 +class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#68 + def block_write?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#85 + def evidence(node); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#52 + def file_open?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#72 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#63 + def send_write?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # @yield [content] + # + # source://rubocop//lib/rubocop/cop/style/file_write.rb#95 + def file_open_write?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/file_write.rb#123 + def heredoc?(write_node); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#128 + def heredoc_range(first_argument); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#108 + def replacement(mode, filename, content, write_node); end + + # source://rubocop//lib/rubocop/cop/style/file_write.rb#104 + def write_method(mode); end +end + +# source://rubocop//lib/rubocop/cop/style/file_write.rb#45 +RuboCop::Cop::Style::FileWrite::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/file_write.rb#47 +RuboCop::Cop::Style::FileWrite::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/file_write.rb#49 +RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Set) + +# Checks for division with integers coerced to floats. +# It is recommended to either always use `fdiv` or coerce one side only. +# This cop also provides other options for code consistency. +# +# @example EnforcedStyle: single_coerce (default) +# # bad +# a.to_f / b.to_f +# +# # good +# a.to_f / b +# a / b.to_f +# @example EnforcedStyle: left_coerce +# # bad +# a / b.to_f +# a.to_f / b.to_f +# +# # good +# a.to_f / b +# @example EnforcedStyle: right_coerce +# # bad +# a.to_f / b +# a.to_f / b.to_f +# +# # good +# a / b.to_f +# @example EnforcedStyle: fdiv +# # bad +# a / b.to_f +# a.to_f / b +# a.to_f / b.to_f +# +# # good +# a.fdiv(b) +# +# source://rubocop//lib/rubocop/cop/style/float_division.rb#53 +class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#79 + def any_coerce?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#75 + def both_coerce?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#71 + def left_coerce?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#83 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#67 + def right_coerce?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#121 + def add_to_f_method(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#130 + def correct_from_slash_to_fdiv(corrector, node, receiver, argument); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#141 + def extract_receiver_source(node); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#117 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/float_division.rb#102 + def offense_condition?(node); end + + # source://rubocop//lib/rubocop/cop/style/float_division.rb#125 + def remove_to_f_method(corrector, send_node); end +end + +# source://rubocop//lib/rubocop/cop/style/float_division.rb#57 +RuboCop::Cop::Style::FloatDivision::MESSAGES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/float_division.rb#64 +RuboCop::Cop::Style::FloatDivision::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for uses of the `for` keyword or `each` method. The +# preferred alternative is set in the EnforcedStyle configuration +# parameter. An `each` call with a block on a single line is always +# allowed. +# +# @example EnforcedStyle: each (default) +# # bad +# def foo +# for n in [1, 2, 3] do +# puts n +# end +# end +# +# # good +# def foo +# [1, 2, 3].each do |n| +# puts n +# end +# end +# @example EnforcedStyle: for +# # bad +# def foo +# [1, 2, 3].each do |n| +# puts n +# end +# end +# +# # good +# def foo +# for n in [1, 2, 3] do +# puts n +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/for.rb#45 +class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/for.rb#65 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/for.rb#54 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/style/for.rb#65 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/for.rb#82 + def suspect_enumerable?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/for.rb#50 +RuboCop::Cop::Style::For::EACH_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/style/for.rb#51 +RuboCop::Cop::Style::For::PREFER_EACH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/for.rb#52 +RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String) + +# Enforces the use of a single string formatting utility. +# Valid options include `Kernel#format`, `Kernel#sprintf`, and `String#%`. +# +# The detection of `String#%` cannot be implemented in a reliable +# manner for all cases, so only two scenarios are considered - +# if the first argument is a string literal and if the second +# argument is an array literal. +# +# Autocorrection will be applied when using argument is a literal or known built-in conversion +# methods such as `to_d`, `to_f`, `to_h`, `to_i`, `to_r`, `to_s`, and `to_sym` on variables, +# provided that their return value is not an array. For example, when using `to_s`, +# `'%s' % [1, 2, 3].to_s` can be autocorrected without any incompatibility: +# +# [source,ruby] +# ---- +# '%s' % [1, 2, 3] #=> '1' +# format('%s', [1, 2, 3]) #=> '[1, 2, 3]' +# '%s' % [1, 2, 3].to_s #=> '[1, 2, 3]' +# ---- +# +# @example EnforcedStyle: format (default) +# # bad +# puts sprintf('%10s', 'hoge') +# puts '%10s' % 'hoge' +# +# # good +# puts format('%10s', 'hoge') +# @example EnforcedStyle: sprintf +# # bad +# puts format('%10s', 'hoge') +# puts '%10s' % 'hoge' +# +# # good +# puts sprintf('%10s', 'hoge') +# @example EnforcedStyle: percent +# # bad +# puts format('%10s', 'hoge') +# puts sprintf('%10s', 'hoge') +# +# # good +# puts '%10s' % 'hoge' +# +# source://rubocop//lib/rubocop/cop/style/format_string.rb#50 +class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#61 + def formatter(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#74 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#70 + def variable_argument?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#102 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#118 + def autocorrect_from_percent(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#132 + def autocorrect_to_percent(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/format_string.rb#88 + def autocorrectable?(node); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#145 + def format_single_parameter(arg); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#94 + def message(detected_style); end + + # source://rubocop//lib/rubocop/cop/style/format_string.rb#98 + def method_name(style_name); end +end + +# Known conversion methods whose return value is not an array. +# +# source://rubocop//lib/rubocop/cop/style/format_string.rb#58 +RuboCop::Cop::Style::FormatString::AUTOCORRECTABLE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/format_string.rb#54 +RuboCop::Cop::Style::FormatString::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/format_string.rb#55 +RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use a consistent style for named format string tokens. +# +# NOTE: `unannotated` style cop only works for strings +# which are passed as arguments to those methods: +# `printf`, `sprintf`, `format`, `%`. +# The reason is that _unannotated_ format is very similar +# to encoded URLs or Date/Time formatting strings. +# +# This cop can be customized allowed methods with `AllowedMethods`. +# By default, there are no methods to allowed. +# +# It is allowed to contain unannotated token +# if the number of them is less than or equals to +# `MaxUnannotatedPlaceholdersAllowed`. +# +# @example EnforcedStyle: annotated (default) +# +# # bad +# format('%{greeting}', greeting: 'Hello') +# format('%s', 'Hello') +# +# # good +# format('%<greeting>s', greeting: 'Hello') +# @example EnforcedStyle: template +# +# # bad +# format('%<greeting>s', greeting: 'Hello') +# format('%s', 'Hello') +# +# # good +# format('%{greeting}', greeting: 'Hello') +# @example EnforcedStyle: unannotated +# +# # bad +# format('%<greeting>s', greeting: 'Hello') +# format('%{greeting}', greeting: 'Hello') +# +# # good +# format('%s', 'Hello') +# @example MaxUnannotatedPlaceholdersAllowed: 0 +# +# # bad +# format('%06d', 10) +# format('%s %s.', 'Hello', 'world') +# +# # good +# format('%<number>06d', number: 10) +# @example MaxUnannotatedPlaceholdersAllowed: 1 (default) +# +# # bad +# format('%s %s.', 'Hello', 'world') +# +# # good +# format('%06d', 10) +# @example AllowedMethods: [] (default) +# +# # bad +# redirect('foo/%{bar_id}') +# @example AllowedMethods: [redirect] +# +# # good +# redirect('foo/%{bar_id}') +# @example AllowedPatterns: [] (default) +# +# # bad +# redirect('foo/%{bar_id}') +# @example AllowedPatterns: ['redirect'] +# +# # good +# redirect('foo/%{bar_id}') +# +# source://rubocop//lib/rubocop/cop/style/format_string_token.rb#85 +class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#106 + def format_string_in_typical_context?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#91 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#213 + def allowed_unannotated?(detections); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#139 + def autocorrect_sequence(corrector, detected_sequence, token_range); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#124 + def check_sequence(detected_sequence, token_range); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#203 + def collect_detections(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#135 + def correctable_sequence?(detected_type); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#113 + def format_string_token?(node); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#222 + def max_unannotated_placeholders_allowed; end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#160 + def message(detected_style); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#165 + def message_text(style); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#180 + def str_contents(source_map); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#190 + def token_ranges(contents); end + + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#174 + def tokens(str_node, &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#156 + def unannotated_format?(node, detected_style); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#117 + def use_allowed_method?(node); end +end + +# Helps you transition from mutable string literals +# to frozen string literals. +# of files to enable frozen string literals. Frozen string literals may be +# default in future Ruby. The comment will be added below a shebang and +# encoding comment. The frozen string literal comment is only valid in Ruby 2.3+. +# +# Note that the cop will accept files where the comment exists but is set +# to `false` instead of `true`. +# +# To require a blank line after this comment, please see +# `Layout/EmptyLineAfterMagicComment` cop. +# +# @example EnforcedStyle: always (default) +# # The `always` style will always add the frozen string literal comment +# # to a file, regardless of the Ruby version or if `freeze` or `<<` are +# # called on a string literal. +# # bad +# module Bar +# # ... +# end +# +# # good +# # frozen_string_literal: true +# +# module Bar +# # ... +# end +# +# # good +# # frozen_string_literal: false +# +# module Bar +# # ... +# end +# @example EnforcedStyle: never +# # The `never` will enforce that the frozen string literal comment does +# # not exist in a file. +# # bad +# # frozen_string_literal: true +# +# module Baz +# # ... +# end +# +# # good +# module Baz +# # ... +# end +# @example EnforcedStyle: always_true +# # The `always_true` style enforces that the frozen string literal +# # comment is set to `true`. This is a stricter option than `always` +# # and forces projects to use frozen string literals. +# # bad +# # frozen_string_literal: false +# +# module Baz +# # ... +# end +# +# # bad +# module Baz +# # ... +# end +# +# # good +# # frozen_string_literal: true +# +# module Bar +# # ... +# end +# +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#84 +class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#99 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#178 + def disabled_offense(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#190 + def enable_comment(corrector); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#120 + def ensure_comment(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#126 + def ensure_enabled_comment(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#114 + def ensure_no_comment(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#214 + def following_comment; end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#152 + def frozen_string_literal_comment(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#196 + def insert_comment(corrector); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#137 + def last_special_comment(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#206 + def line_range(line); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#158 + def missing_offense(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#164 + def missing_true_offense(processed_source); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#210 + def preceding_comment; end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#186 + def remove_comment(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#170 + def unnecessary_comment_offense(processed_source); end +end + +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#96 +RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_DISABLED = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#94 +RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#93 +RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING_TRUE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#95 +RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#97 +RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), String) + +# Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`. +# `STDOUT/STDERR/STDIN` are constants, and while you can actually +# reassign (possibly to redirect some stream) constants in Ruby, you'll get +# an interpreter warning if you do so. +# +# @example +# # bad +# STDOUT.puts('hello') +# +# hash = { out: STDOUT, key: value } +# +# def m(out = STDOUT) +# out.puts('hello') +# end +# +# # good +# $stdout.puts('hello') +# +# hash = { out: $stdout, key: value } +# +# def m(out = $stdout) +# out.puts('hello') +# end +# +# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#34 +class RuboCop::Cop::Style::GlobalStdStream < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#42 + def const_to_gvar_assignment?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#46 + def on_const(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#64 + def gvar_name(const_name); end + + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#60 + def message(const_name); end +end + +# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#37 +RuboCop::Cop::Style::GlobalStdStream::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#39 +RuboCop::Cop::Style::GlobalStdStream::STD_STREAMS = T.let(T.unsafe(nil), Set) + +# Looks for uses of global variables. +# It does not report offenses for built-in global variables. +# Built-in global variables are allowed by default. Additionally +# users can allow additional variables via the AllowedVariables option. +# +# Note that backreferences like $1, $2, etc are not global variables. +# +# @example +# # bad +# $foo = 2 +# bar = $foo + 5 +# +# # good +# FOO = 2 +# foo = 2 +# $stdin.read +# +# source://rubocop//lib/rubocop/cop/style/global_vars.rb#22 +class RuboCop::Cop::Style::GlobalVars < ::RuboCop::Cop::Base + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#60 + def allowed_var?(global_var); end + + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#72 + def check(node); end + + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#64 + def on_gvar(node); end + + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#68 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#56 + def user_vars; end +end + +# built-in global variables and their English aliases +# https://www.zenspider.com/ruby/quickref.html +# +# source://rubocop//lib/rubocop/cop/style/global_vars.rb#27 +RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/global_vars.rb#23 +RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) + +# Use a guard clause instead of wrapping the code inside a conditional +# expression +# +# A condition with an `elsif` or `else` branch is allowed unless +# one of `return`, `break`, `next`, `raise`, or `fail` is used +# in the body of the conditional expression. +# +# NOTE: Autocorrect works in most cases except with if-else statements +# that contain logical operators such as `foo || raise('exception')` +# +# @example +# # bad +# def test +# if something +# work +# end +# end +# +# # good +# def test +# return unless something +# +# work +# end +# +# # also good +# def test +# work if something +# end +# +# # bad +# if something +# raise 'exception' +# else +# ok +# end +# +# # good +# raise 'exception' if something +# ok +# +# # bad +# if something +# foo || raise('exception') +# else +# ok +# end +# +# # good +# foo || raise('exception') if something +# ok +# +# # bad +# define_method(:test) do +# if something +# work +# end +# end +# +# # good +# define_method(:test) do +# return unless something +# +# work +# end +# +# # also good +# define_method(:test) do +# work if something +# end +# @example AllowConsecutiveConditionals: false (default) +# # bad +# def test +# if foo? +# work +# end +# +# if bar? # <- reports an offense +# work +# end +# end +# @example AllowConsecutiveConditionals: true +# # good +# def test +# if foo? +# work +# end +# +# if bar? +# work +# end +# end +# +# # bad +# def test +# if foo? +# work +# end +# +# do_something +# +# if bar? # <- reports an offense +# work +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#114 +class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MinBodyLength + include ::RuboCop::Cop::StatementModifier + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#139 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#275 + def accepted_form?(node, ending: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#283 + def accepted_if?(node, ending); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#297 + def allowed_consecutive_conditionals?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#265 + def and_or_guard_clause?(guard_clause); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#210 + def autocorrect(corrector, node, condition, replacement, guard); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#236 + def autocorrect_heredoc_argument(corrector, node, heredoc_branch, leave_branch, guard); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#159 + def check_ending_body(body); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#170 + def check_ending_if(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#180 + def consecutive_conditionals?(parent, node); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#257 + def guard_clause_source(guard_clause); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#232 + def heredoc?(argument); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#248 + def range_of_branch_to_remove(node, guard); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#188 + def register_offense(node, scope_exiting_keyword, conditional_keyword, guard = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#293 + def remove_whole_lines(corrector, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#270 + def too_long_for_single_line?(node, example); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#279 + def trivial?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#120 +RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String) + +# Checks for presence or absence of braces around hash literal as a last +# array item depending on configuration. +# +# NOTE: This cop will ignore arrays where all items are hashes, regardless of +# EnforcedStyle. +# +# @example EnforcedStyle: braces (default) +# # bad +# [1, 2, one: 1, two: 2] +# +# # good +# [1, 2, { one: 1, two: 2 }] +# +# # good +# [{ one: 1 }, { two: 2 }] +# @example EnforcedStyle: no_braces +# # bad +# [1, 2, { one: 1, two: 2 }] +# +# # good +# [1, 2, one: 1, two: 2] +# +# # good +# [{ one: 1 }, { two: 2 }] +# +# source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#31 +class RuboCop::Cop::Style::HashAsLastArrayItem < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#36 + def on_hash(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#85 + def braces_style?; end + + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#66 + def check_braces(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#74 + def check_no_braces(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#50 + def containing_array(hash_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#61 + def explicit_array?(array); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#55 + def last_array_item?(array, node); end + + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#89 + def remove_last_element_trailing_comma(corrector, node); end +end + +# Checks the usage of pre-2.1 `Hash[args]` method of converting enumerables and +# sequences of values to hashes. +# +# Correction code from splat argument (`Hash[*ary]`) is not simply determined. For example, +# `Hash[*ary]` can be replaced with `ary.each_slice(2).to_h` but it will be complicated. +# So, `AllowSplatArgument` option is true by default to allow splat argument for simple code. +# +# @example +# # bad +# Hash[ary] +# +# # good +# ary.to_h +# +# # bad +# Hash[key1, value1, key2, value2] +# +# # good +# {key1 => value1, key2 => value2} +# @example AllowSplatArgument: true (default) +# # good +# Hash[*ary] +# @example AllowSplatArgument: false +# # bad +# Hash[*ary] +# +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#44 +class RuboCop::Cop::Style::HashConversion < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#54 + def hash_from_array?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#56 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#138 + def allowed_splat_argument?; end + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#131 + def args_to_hash(args); end + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#118 + def multi_argument(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#94 + def register_offense_for_hash(node, hash_argument); end + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#103 + def register_offense_for_zip_method(node, zip_method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#113 + def requires_parens?(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#71 + def single_argument(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#88 + def use_zip_method_without_argument?(first_argument); end +end + +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#49 +RuboCop::Cop::Style::HashConversion::MSG_LITERAL_HASH_ARG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#48 +RuboCop::Cop::Style::HashConversion::MSG_LITERAL_MULTI_ARG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#50 +RuboCop::Cop::Style::HashConversion::MSG_SPLAT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#47 +RuboCop::Cop::Style::HashConversion::MSG_TO_H = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#51 +RuboCop::Cop::Style::HashConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of `each_key` and `each_value` Hash methods. +# +# NOTE: If you have an array of two-element arrays, you can put +# parentheses around the block arguments to indicate that you're not +# working with a hash, and suppress RuboCop offenses. +# +# @example +# # bad +# hash.keys.each { |k| p k } +# hash.values.each { |v| p v } +# +# # good +# hash.each_key { |k| p k } +# hash.each_value { |v| p v } +# @example AllowedReceivers: ['execute'] +# # good +# execute(sql).keys.each { |v| p v } +# execute(sql).values.each { |v| p v } +# +# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#30 +class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedReceivers + include ::RuboCop::Cop::Lint::UnusedArgument + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#38 + def kv_each(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#43 + def kv_each_with_block_pass(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#47 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#55 + def on_block_pass(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#47 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#86 + def check_argument(variable); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#110 + def correct_args(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#96 + def correct_implicit(node, corrector, method_name); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#101 + def correct_key_value_each(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#82 + def format_message(method_name); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#117 + def kv_range(outer_node); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#63 + def register_kv_offense(target, method); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#72 + def register_kv_with_block_pass_offense(node, target, method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#92 + def used?(arg); end +end + +# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#35 +RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String) + +# Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods +# that can be replaced with `Hash#except` method. +# +# This cop should only be enabled on Ruby version 3.0 or higher. +# (`Hash#except` was added in Ruby 3.0.) +# +# For safe detection, it is limited to commonly used string and symbol comparisons +# when used `==`. +# And do not check `Hash#delete_if` and `Hash#keep_if` to change receiver object. +# +# @example +# +# # bad +# {foo: 1, bar: 2, baz: 3}.reject {|k, v| k == :bar } +# {foo: 1, bar: 2, baz: 3}.select {|k, v| k != :bar } +# {foo: 1, bar: 2, baz: 3}.filter {|k, v| k != :bar } +# {foo: 1, bar: 2, baz: 3}.reject {|k, v| %i[foo bar].include?(k) } +# {foo: 1, bar: 2, baz: 3}.select {|k, v| !%i[foo bar].include?(k) } +# {foo: 1, bar: 2, baz: 3}.filter {|k, v| !%i[foo bar].include?(k) } +# +# # good +# {foo: 1, bar: 2, baz: 3}.except(:bar) +# +# source://rubocop//lib/rubocop/cop/style/hash_except.rb#33 +class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::TargetRubyVersion + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#60 + def bad_method_with_active_support?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#44 + def bad_method_with_poro?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#93 + def bad_method?(block); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#165 + def decorate_source(value); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#173 + def except_key(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#152 + def except_key_source(key); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#146 + def extract_body_if_negated(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#127 + def included?(negated, body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#131 + def not_included?(negated, body); end + + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#182 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135 + def safe_to_register_offense?(block, except_key); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#111 + def semantically_except_method?(send, block); end +end + +# source://rubocop//lib/rubocop/cop/style/hash_except.rb#40 +RuboCop::Cop::Style::HashExcept::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_except.rb#41 +RuboCop::Cop::Style::HashExcept::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for places where `case-when` represents a simple 1:1 +# mapping and can be replaced with a hash lookup. +# +# @example MinBranchesCount: 3 (default) +# # bad +# case country +# when 'europe' +# 'http://eu.example.com' +# when 'america' +# 'http://us.example.com' +# when 'australia' +# 'http://au.example.com' +# end +# +# # good +# SITES = { +# 'europe' => 'http://eu.example.com', +# 'america' => 'http://us.example.com', +# 'australia' => 'http://au.example.com' +# } +# SITES[country] +# @example MinBranchesCount: 4 +# # good +# case country +# when 'europe' +# 'http://eu.example.com' +# when 'america' +# 'http://us.example.com' +# when 'australia' +# 'http://au.example.com' +# end +# +# source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#39 +class RuboCop::Cop::Style::HashLikeCase < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MinBranchesCount + + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#45 + def hash_like_case?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#53 + def on_case(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#65 + def nodes_of_same_type?(nodes); end +end + +# source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#42 +RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) + +# Checks hash literal syntax. +# +# It can enforce either the use of the class hash rocket syntax or +# the use of the newer Ruby 1.9 syntax (when applicable). +# +# A separate offense is registered for each problematic pair. +# +# The supported styles are: +# +# * ruby19 - forces use of the 1.9 syntax (e.g. `{a: 1}`) when hashes have +# all symbols for keys +# * hash_rockets - forces use of hash rockets for all hashes +# * no_mixed_keys - simply checks for hashes with mixed syntaxes +# * ruby19_no_mixed_keys - forces use of ruby 1.9 syntax and forbids mixed +# syntax hashes +# +# This cop has `EnforcedShorthandSyntax` option. +# It can enforce either the use of the explicit hash value syntax or +# the use of Ruby 3.1's hash value shorthand syntax. +# +# The supported styles are: +# +# * always - forces use of the 3.1 syntax (e.g. {foo:}) +# * never - forces use of explicit hash literal value +# * either - accepts both shorthand and explicit use of hash literal value +# * consistent - forces use of the 3.1 syntax only if all values can be omitted in the hash +# +# @example EnforcedStyle: ruby19 (default) +# # bad +# {:a => 2} +# {b: 1, :c => 2} +# +# # good +# {a: 2, b: 1} +# {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol +# {d: 1, 'e' => 2} # technically not forbidden +# @example EnforcedStyle: hash_rockets +# # bad +# {a: 1, b: 2} +# {c: 1, 'd' => 5} +# +# # good +# {:a => 1, :b => 2} +# @example EnforcedStyle: no_mixed_keys +# # bad +# {:a => 1, b: 2} +# {c: 1, 'd' => 2} +# +# # good +# {:a => 1, :b => 2} +# {c: 1, d: 2} +# @example EnforcedStyle: ruby19_no_mixed_keys +# # bad +# {:a => 1, :b => 2} +# {c: 2, 'd' => 3} # should just use hash rockets +# +# # good +# {a: 1, b: 2} +# {:c => 3, 'd' => 4} +# @example EnforcedShorthandSyntax: always (default) +# +# # bad +# {foo: foo, bar: bar} +# +# # good +# {foo:, bar:} +# @example EnforcedShorthandSyntax: never +# +# # bad +# {foo:, bar:} +# +# # good +# {foo: foo, bar: bar} +# @example EnforcedShorthandSyntax: either +# +# # good +# {foo: foo, bar: bar} +# +# # good +# {foo: foo, bar:} +# +# # good +# {foo:, bar:} +# @example EnforcedShorthandSyntax: consistent +# +# # bad - `foo` and `bar` values can be omitted +# {foo: foo, bar: bar} +# +# # bad - `bar` value can be omitted +# {foo:, bar: bar} +# +# # bad - mixed syntaxes +# {foo:, bar: baz} +# +# # good +# {foo:, bar:} +# +# # good - can't omit `baz` +# {foo: foo, bar: baz} +# +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#113 +class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::HashShorthandSyntax + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167 + def alternative_style; end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#145 + def hash_rockets_check(pairs); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159 + def no_mixed_keys_check(pairs); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#123 + def on_hash(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141 + def ruby19_check(pairs); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#149 + def ruby19_no_mixed_keys_check(pairs); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#198 + def acceptable_19_syntax_symbol?(sym_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#252 + def argument_without_space?(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#178 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#256 + def autocorrect_hash_rockets(corrector, pair_node); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#265 + def autocorrect_no_mixed_keys(corrector, pair_node); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#231 + def autocorrect_ruby19(corrector, pair_node); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#216 + def check(pairs, delim, msg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#273 + def force_hash_rockets?(pairs); end + + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#244 + def range_for_autocorrect_ruby19(pair_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#188 + def sym_indices?(pairs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#192 + def word_symbol_pair?(pair); end +end + +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#119 +RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#121 +RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#120 +RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String) + +# Looks for uses of `\_.each_with_object({}) {...}`, +# `\_.map {...}.to_h`, and `Hash[\_.map {...}]` that are actually just +# transforming the keys of a hash, and tries to use a simpler & faster +# call to `transform_keys` instead. +# It should only be enabled on Ruby version 2.5 or newer. +# (`transform_keys` was added in Ruby 2.5.) +# +# @example +# # bad +# {a: 1, b: 2}.each_with_object({}) { |(k, v), h| h[foo(k)] = v } +# Hash[{a: 1, b: 2}.collect { |k, v| [foo(k), v] }] +# {a: 1, b: 2}.map { |k, v| [k.to_s, v] }.to_h +# {a: 1, b: 2}.to_h { |k, v| [k.to_s, v] } +# +# # good +# {a: 1, b: 2}.transform_keys { |k| foo(k) } +# {a: 1, b: 2}.transform_keys { |k| k.to_s } +# +# source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#28 +class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Base + include ::RuboCop::Cop::HashTransformMethod + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#36 + def on_bad_each_with_object(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#48 + def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#61 + def on_bad_map_to_h(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#73 + def on_bad_to_h(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#84 + def extract_captures(match); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#89 + def new_method_name; end +end + +# Looks for uses of `\_.each_with_object({}) {...}`, +# `\_.map {...}.to_h`, and `Hash[\_.map {...}]` that are actually just +# transforming the values of a hash, and tries to use a simpler & faster +# call to `transform_values` instead. +# +# @example +# # bad +# {a: 1, b: 2}.each_with_object({}) { |(k, v), h| h[k] = foo(v) } +# Hash[{a: 1, b: 2}.collect { |k, v| [k, foo(v)] }] +# {a: 1, b: 2}.map { |k, v| [k, v * v] }.to_h +# {a: 1, b: 2}.to_h { |k, v| [k, v * v] } +# +# # good +# {a: 1, b: 2}.transform_values { |v| foo(v) } +# {a: 1, b: 2}.transform_values { |v| v * v } +# +# source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#26 +class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Base + include ::RuboCop::Cop::HashTransformMethod + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#34 + def on_bad_each_with_object(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#46 + def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#59 + def on_bad_map_to_h(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#71 + def on_bad_to_h(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#82 + def extract_captures(match); end + + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#87 + def new_method_name; end +end + +# Checks for identical expressions at the beginning or end of +# each branch of a conditional expression. Such expressions should normally +# be placed outside the conditional expression - before or after it. +# +# NOTE: The cop is poorly named and some people might think that it actually +# checks for duplicated conditional branches. The name will probably be changed +# in a future major RuboCop release. +# +# @example +# # bad +# if condition +# do_x +# do_z +# else +# do_y +# do_z +# end +# +# # good +# if condition +# do_x +# else +# do_y +# end +# do_z +# +# # bad +# if condition +# do_z +# do_x +# else +# do_z +# do_y +# end +# +# # good +# do_z +# if condition +# do_x +# else +# do_y +# end +# +# # bad +# case foo +# when 1 +# do_x +# when 2 +# do_x +# else +# do_x +# end +# +# # good +# case foo +# when 1 +# do_x +# do_y +# when 2 +# # nothing +# else +# do_x +# do_z +# end +# +# # bad +# case foo +# in 1 +# do_x +# in 2 +# do_x +# else +# do_x +# end +# +# # good +# case foo +# in 1 +# do_x +# do_y +# in 2 +# # nothing +# else +# do_x +# do_z +# end +# +# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#110 +class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#123 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#130 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#116 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#173 + def assignable_condition_value(node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#140 + def check_branches(node, branches); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#182 + def check_expressions(node, expressions, insert_position); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#162 + def duplicated_expressions?(node, expressions); end + + # `elsif` branches show up in the if node as nested `else` branches. We + # need to recursively iterate over all `else` branches. + # + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#222 + def expand_elses(branch); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#237 + def head(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#206 + def last_child_of_parent?(node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#216 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#212 + def single_child_branch?(branch_node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#233 + def tail(node); end +end + +# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#114 +RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), String) + +# Corrector to correct conditional assignment in `if` statements. +# +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#560 +class RuboCop::Cop::Style::IfCorrector + extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper + extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper + + class << self + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#565 + def correct(corrector, cop, node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#569 + def move_assignment_inside_condition(corrector, node); end + + private + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#583 + def extract_tail_branches(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#590 + def move_branch_inside_condition(corrector, branch, condition, assignment, column); end + end +end + +# If the `else` branch of a conditional consists solely of an `if` node, +# it can be combined with the `else` to become an `elsif`. +# This helps to keep the nesting level from getting too deep. +# +# @example +# # bad +# if condition_a +# action_a +# else +# if condition_b +# action_b +# else +# action_c +# end +# end +# +# # good +# if condition_a +# action_a +# elsif condition_b +# action_b +# else +# action_c +# end +# @example AllowIfModifier: false (default) +# # bad +# if condition_a +# action_a +# else +# action_b if condition_b +# end +# +# # good +# if condition_a +# action_a +# elsif condition_b +# action_b +# end +# @example AllowIfModifier: true +# # good +# if condition_a +# action_a +# else +# action_b if condition_b +# end +# +# # good +# if condition_a +# action_a +# elsif condition_b +# action_b +# end +# +# source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#61 +class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#69 + def on_if(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#150 + def allow_if_modifier?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#146 + def allow_if_modifier_in_else_branch?(else_branch); end + + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#88 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#117 + def correct_to_elsif_from_if_inside_else_form(corrector, node, condition); end + + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#109 + def correct_to_elsif_from_modifier_form(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#135 + def find_end_range(node); end + + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#142 + def if_condition_range(node, condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#131 + def then?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#66 +RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) + +# Checks for `if` and `unless` statements that would fit on one line if +# written as modifier `if`/`unless`. The cop also checks for modifier +# `if`/`unless` lines that exceed the maximum line length. +# +# The maximum line length is configured in the `Layout/LineLength` +# cop. The tab size is configured in the `IndentationWidth` of the +# `Layout/IndentationStyle` cop. +# +# One-line pattern matching is always allowed. To ensure that there are few cases +# where the match variable is not used, and to prevent oversights. The variable `x` +# becomes undefined and raises `NameError` when the following example is changed to +# the modifier form: +# +# [source,ruby] +# ---- +# if [42] in [x] +# x # `x` is undefined when using modifier form. +# end +# ---- +# +# NOTE: It is allowed when `defined?` argument has an undefined value, +# because using the modifier form causes the following incompatibility: +# +# [source,ruby] +# ---- +# unless defined?(undefined_foo) +# undefined_foo = 'default_value' +# end +# undefined_foo # => 'default_value' +# +# undefined_bar = 'default_value' unless defined?(undefined_bar) +# undefined_bar # => nil +# ---- +# +# @example +# # bad +# if condition +# do_stuff(bar) +# end +# +# unless qux.empty? +# Foo.do_something +# end +# +# do_something_with_a_long_name(arg) if long_condition_that_prevents_code_fit_on_single_line +# +# # good +# do_stuff(bar) if condition +# Foo.do_something unless qux.empty? +# +# if long_condition_that_prevents_code_fit_on_single_line +# do_something_with_a_long_name(arg) +# end +# +# if short_condition # a long comment that makes it too long if it were just a single line +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#63 +class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::StatementModifier + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::CommentsHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#80 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#171 + def allowed_patterns; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#231 + def another_statement_on_same_line?(node); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#132 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#285 + def comment_on_node_line(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#104 + def defined_argument_is_undefined?(if_node, defined_node); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#96 + def defined_nodes(condition); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#272 + def extract_heredoc_from(last_argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#215 + def line_length_enabled_at_line?(line); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#124 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#219 + def named_capture_in_condition?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#223 + def non_eligible_node?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#227 + def non_simple_if_unless?(node); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#114 + def pattern_matching_nodes(condition); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#289 + def remove_comment(corrector, _node, comment); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#279 + def remove_heredoc(corrector, heredoc); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#141 + def replacement_for_modifier_form(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#265 + def to_modifier_form_with_move_comment(node, indentation, comment); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#245 + def to_normal_form(node, indentation); end + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#253 + def to_normal_form_with_heredoc(node, indentation, heredoc); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#165 + def too_long_due_to_comment_after_modifier?(node, comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#160 + def too_long_due_to_modifier?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#206 + def too_long_line_based_on_allow_uri?(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#189 + def too_long_line_based_on_config?(range, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#198 + def too_long_line_based_on_ignore_cop_directives?(range, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#176 + def too_long_single_line?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#76 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#71 +RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#74 +RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String) + +# Checks for if and unless statements used as modifiers of other if or +# unless statements. +# +# @example +# +# # bad +# tired? ? 'stop' : 'go faster' if running? +# +# # bad +# if tired? +# "please stop" +# else +# "keep going" +# end if running? +# +# # good +# if running? +# tired? ? 'stop' : 'go faster' +# end +# +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#25 +class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::StatementModifier + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#31 + def on_if(node); end +end + +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#29 +RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant `if` with boolean literal branches. +# It checks only conditions to return boolean value (`true` or `false`) for safe detection. +# The conditions to be checked are comparison methods, predicate methods, and +# double negation (!!). +# `nonzero?` method is allowed by default. +# These are customizable with `AllowedMethods` option. +# +# This cop targets only `if`s with a single `elsif` or `else` branch. The following +# code will be allowed, because it has two `elsif` branches: +# +# [source,ruby] +# ---- +# if foo +# true +# elsif bar > baz +# true +# elsif qux > quux # Single `elsif` is warned, but two or more `elsif`s are not. +# true +# else +# false +# end +# ---- +# +# @example +# # bad +# if foo == bar +# true +# else +# false +# end +# +# # bad +# foo == bar ? true : false +# +# # good +# foo == bar +# @example +# # bad +# if foo.do_something? +# true +# else +# false +# end +# +# # good (but potentially an unsafe correction) +# foo.do_something? +# @example AllowedMethods: ['nonzero?'] (default) +# # good +# num.nonzero? ? true : false +# +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#62 +class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#74 + def double_negative?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#70 + def if_with_boolean_literal_branches?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#76 + def on_if(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#134 + def assume_boolean_value?(condition); end + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#114 + def message(node, keyword); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#96 + def multiple_elsif?(node); end + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#102 + def offense_range_with_keyword(node, condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#151 + def opposite_condition?(node); end + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#141 + def replacement_condition(node, condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#156 + def require_parentheses?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#120 + def return_boolean_value?(condition); end +end + +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#66 +RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#67 +RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG_FOR_ELSIF = T.let(T.unsafe(nil), String) + +# Checks for uses of semicolon in if statements. +# +# @example +# +# # bad +# result = if some_condition; something else another_thing end +# +# # good +# result = some_condition ? something : another_thing +# +# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#16 +class RuboCop::Cop::Style::IfWithSemicolon < ::RuboCop::Cop::Base + include ::RuboCop::Cop::OnNormalIfUnless + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#23 + def on_normal_if_unless(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#38 + def autocorrect(node); end + + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#56 + def build_else_branch(second_condition); end + + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#47 + def correct_elsif(node); end +end + +# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#20 +RuboCop::Cop::Style::IfWithSemicolon::MSG_IF_ELSE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#21 +RuboCop::Cop::Style::IfWithSemicolon::MSG_TERNARY = T.let(T.unsafe(nil), String) + +# Checks for `raise` or `fail` statements which do not specify an +# explicit exception class. (This raises a `RuntimeError`. Some projects +# might prefer to use exception classes which more precisely identify the +# nature of the error.) +# +# @example +# # bad +# raise 'Error message here' +# +# # good +# raise ArgumentError, 'Error message here' +# +# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#17 +class RuboCop::Cop::Style::ImplicitRuntimeError < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#23 + def implicit_runtime_error_raise_or_fail(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#26 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#18 +RuboCop::Cop::Style::ImplicitRuntimeError::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#20 +RuboCop::Cop::Style::ImplicitRuntimeError::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for `in;` uses in `case` expressions. +# +# @example +# # bad +# case expression +# in pattern_a; foo +# in pattern_b; bar +# end +# +# # good +# case expression +# in pattern_a then foo +# in pattern_b then bar +# end +# +# source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#21 +class RuboCop::Cop::Style::InPatternThen < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#29 + def on_in_pattern(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#46 + def alternative_pattern_source(pattern); end +end + +# source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#27 +RuboCop::Cop::Style::InPatternThen::MSG = T.let(T.unsafe(nil), String) + +# Use `Kernel#loop` for infinite loops. +# +# @example +# # bad +# while true +# work +# end +# +# # good +# loop do +# work +# end +# +# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#23 +class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#35 + def after_leaving_scope(scope, _variable_table); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44 + def on_until_post(node); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40 + def on_while(node); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40 + def on_while_post(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#84 + def assigned_before_loop?(var, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#80 + def assigned_inside_loop?(var, range); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#70 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#103 + def modifier_replacement(node); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#114 + def non_modifier_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#89 + def referenced_after_loop?(var, range); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#94 + def replace_begin_end_with_modifier(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#99 + def replace_source(corrector, range, replacement); end + + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#53 + def while_or_until(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#31 + def joining_forces; end + end +end + +# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#27 +RuboCop::Cop::Style::InfiniteLoop::LEADING_SPACE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#29 +RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String) + +# Checks for trailing inline comments. +# +# @example +# +# # good +# foo.each do |f| +# # Standalone comment +# f.bar +# end +# +# # bad +# foo.each do |f| +# f.bar # Trailing inline comment +# end +# +# source://rubocop//lib/rubocop/cop/style/inline_comment.rb#20 +class RuboCop::Cop::Style::InlineComment < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/inline_comment.rb#23 + def on_new_investigation; end +end + +# source://rubocop//lib/rubocop/cop/style/inline_comment.rb#21 +RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) + +# Check for usages of not (`not` or `!`) called on a method +# when an inverse of that method can be used instead. +# +# Methods that can be inverted by a not (`not` or `!`) should be defined +# in `InverseMethods`. +# +# Methods that are inverted by inverting the return +# of the block that is passed to the method should be defined in +# `InverseBlocks`. +# +# @example +# # bad +# !foo.none? +# !foo.any? { |f| f.even? } +# !foo.blank? +# !(foo == bar) +# foo.select { |f| !f.even? } +# foo.reject { |f| f != 7 } +# +# # good +# foo.none? +# foo.blank? +# foo.any? { |f| f.even? } +# foo != bar +# foo == bar +# !!('foo' =~ /^\w+$/) +# !(foo.class < Numeric) # Checking class hierarchy is allowed +# # Blocks with guard clauses are ignored: +# foo.select do |f| +# next if f.zero? +# f != 1 +# end +# +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#43 +class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#70 + def inverse_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#61 + def inverse_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#176 + def camel_case_constant?(node); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#120 + def correct_inverse_block(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#111 + def correct_inverse_method(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#127 + def correct_inverse_selector(block, corrector); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#180 + def dot_range(loc); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#163 + def end_parentheses(node, method_call); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#149 + def inverse_blocks; end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#144 + def inverse_methods; end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#190 + def message(method, inverse); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#153 + def negated?(node); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#157 + def not_to_receiver(node, method_call); end + + # When comparing classes, `!(Integer < Numeric)` is not the same as + # `Integer > Numeric`. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#171 + def possible_class_hierarchy_check?(lhs, rhs, method); end + + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#184 + def remove_end_parenthesis(corrector, node, method, method_call); end + + class << self + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#56 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#52 +RuboCop::Cop::Style::InverseMethods::CAMEL_CASE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#49 +RuboCop::Cop::Style::InverseMethods::CLASS_COMPARISON_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#50 +RuboCop::Cop::Style::InverseMethods::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#48 +RuboCop::Cop::Style::InverseMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#51 +RuboCop::Cop::Style::InverseMethods::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#54 +RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for usages of `unless` which can be replaced by `if` with inverted condition. +# Code without `unless` is easier to read, but that is subjective, so this cop +# is disabled by default. +# +# Methods that can be inverted should be defined in `InverseMethods`. Note that +# the relationship of inverse methods needs to be defined in both directions. +# For example, +# +# [source,yaml] +# ---- +# InverseMethods: +# :!=: :== +# :even?: :odd? +# :odd?: :even? +# ---- +# +# will suggest both `even?` and `odd?` to be inverted, but only `!=` (and not `==`). +# +# @example +# # bad (simple condition) +# foo unless !bar +# foo unless x != y +# foo unless x >= 10 +# foo unless x.even? +# +# # good +# foo if bar +# foo if x == y +# foo if x < 10 +# foo if x.odd? +# +# # bad (complex condition) +# foo unless x != y || x.even? +# +# # good +# foo if x == y && x.odd? +# +# # good (if) +# foo if !condition +# +# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#51 +class RuboCop::Cop::Style::InvertibleUnlessCondition < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#56 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#91 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#104 + def autocorrect_send_node(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#85 + def inheritance_check?(node); end + + # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#112 + def inverse_methods; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#70 + def invertible?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#54 +RuboCop::Cop::Style::InvertibleUnlessCondition::MSG = T.let(T.unsafe(nil), String) + +# Checks for hardcoded IP addresses, which can make code +# brittle. IP addresses are likely to need to be changed when code +# is deployed to a different server or environment, which may break +# a deployment if forgotten. Prefer setting IP addresses in ENV or +# other configuration. +# +# @example +# +# # bad +# ip_address = '127.59.241.29' +# +# # good +# ip_address = ENV['DEPLOYMENT_IP_ADDRESS'] +# +# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#21 +class RuboCop::Cop::Style::IpAddresses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::StringHelp + + # Dummy implementation of method in ConfigurableEnforcedStyle that is + # called from StringHelp. + # + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#46 + def correct_style_detected; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#27 + def offense?(node); end + + # Dummy implementation of method in ConfigurableEnforcedStyle that is + # called from StringHelp. + # + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#42 + def opposite_style_detected; end + + private + + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#50 + def allowed_addresses; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#55 + def could_be_ip?(str); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#68 + def starts_with_hex_or_colon?(str); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#64 + def too_long?(str); end +end + +# IPv4-mapped IPv6 is the longest +# +# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#24 +RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#25 +RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) + +# Enforces that optional keyword parameters are placed at the +# end of the parameters list. +# +# This improves readability, because when looking through the source, +# it is expected to find required parameters at the beginning of parameters list +# and optional parameters at the end. +# +# @example +# # bad +# def some_method(first: false, second:, third: 10) +# # body omitted +# end +# +# # good +# def some_method(second:, first: false, third: 10) +# # body omitted +# end +# +# # bad +# do_something do |first: false, second:, third: 10| +# # body omitted +# end +# +# # good +# do_something do |second:, first: false, third: 10| +# # body omitted +# end +# +# source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#34 +class RuboCop::Cop::Style::KeywordParametersOrder < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#40 + def on_kwoptarg(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#58 + def append_newline_to_last_kwoptarg(arguments, corrector); end + + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#66 + def remove_kwargs(kwarg_nodes, corrector); end +end + +# source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#38 +RuboCop::Cop::Style::KeywordParametersOrder::MSG = T.let(T.unsafe(nil), String) + +# (by default) checks for uses of the lambda literal syntax for +# single line lambdas, and the method call syntax for multiline lambdas. +# It is configurable to enforce one of the styles for both single line +# and multiline lambdas as well. +# +# @example EnforcedStyle: line_count_dependent (default) +# # bad +# f = lambda { |x| x } +# f = ->(x) do +# x +# end +# +# # good +# f = ->(x) { x } +# f = lambda do |x| +# x +# end +# @example EnforcedStyle: lambda +# # bad +# f = ->(x) { x } +# f = ->(x) do +# x +# end +# +# # good +# f = lambda { |x| x } +# f = lambda do |x| +# x +# end +# @example EnforcedStyle: literal +# # bad +# f = lambda { |x| x } +# f = lambda do |x| +# x +# end +# +# # good +# f = ->(x) { x } +# f = ->(x) do +# x +# end +# +# source://rubocop//lib/rubocop/cop/style/lambda.rb#49 +class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#115 + def arguments_with_whitespace(node); end + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#104 + def autocorrect_method_to_literal(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#119 + def lambda_arg_string(args); end + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#89 + def message(node, selector); end + + # source://rubocop//lib/rubocop/cop/style/lambda.rb#95 + def message_line_modifier(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/lambda.rb#83 + def offending_selector?(node, selector); end +end + +# source://rubocop//lib/rubocop/cop/style/lambda.rb#53 +RuboCop::Cop::Style::Lambda::LITERAL_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/lambda.rb#54 +RuboCop::Cop::Style::Lambda::METHOD_MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/lambda.rb#56 +RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) + +# Checks for use of the lambda.(args) syntax. +# +# @example EnforcedStyle: call (default) +# # bad +# lambda.(x, y) +# +# # good +# lambda.call(x, y) +# @example EnforcedStyle: braces +# # bad +# lambda.call(x, y) +# +# # good +# lambda.(x, y) +# +# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#21 +class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#29 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#67 + def explicit_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#63 + def implicit_style?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#51 + def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#55 + def prefer(node); end +end + +# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#26 +RuboCop::Cop::Style::LambdaCall::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#27 +RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for string literal concatenation at +# the end of a line. +# +# @example +# +# # bad +# some_str = 'ala' + +# 'bala' +# +# some_str = 'ala' << +# 'bala' +# +# # good +# some_str = 'ala' \ +# 'bala' +# +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#35 +class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#51 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#74 + def autocorrect(corrector, operator_range); end + + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#57 + def check_token_set(index); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#101 + def eligible_next_successor?(next_successor); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#97 + def eligible_operator?(operator); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#105 + def eligible_predecessor?(predecessor); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#93 + def eligible_successor?(successor); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#87 + def eligible_token_set?(predecessor, operator, successor); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#124 + def standard_string_literal?(token); end + + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#109 + def token_after_last_string(successor, base_index); end + + class << self + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#47 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#42 +RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_BEGIN_TOKEN = T.let(T.unsafe(nil), Symbol) + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#43 +RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_END_TOKEN = T.let(T.unsafe(nil), Symbol) + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#40 +RuboCop::Cop::Style::LineEndConcatenation::CONCAT_TOKEN_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#44 +RuboCop::Cop::Style::LineEndConcatenation::HIGH_PRECEDENCE_OP_TOKEN_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#39 +RuboCop::Cop::Style::LineEndConcatenation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#45 +RuboCop::Cop::Style::LineEndConcatenation::QUOTE_DELIMITERS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#41 +RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.unsafe(nil), Symbol) + +# Ensures magic comments are written consistently throughout your code base. +# Looks for discrepancies in separators (`-` vs `_`) and capitalization for +# both magic comment directives and values. +# +# Required capitalization can be set with the `DirectiveCapitalization` and +# `ValueCapitalization` configuration keys. +# +# NOTE: If one of these configuration is set to nil, any capitalization is allowed. +# +# @example EnforcedStyle: snake_case (default) +# # The `snake_case` style will enforce that the frozen string literal +# # comment is written in snake case. (Words separated by underscores) +# # bad +# # frozen-string-literal: true +# +# module Bar +# # ... +# end +# +# # good +# # frozen_string_literal: false +# +# module Bar +# # ... +# end +# @example EnforcedStyle: kebab_case +# # The `kebab_case` style will enforce that the frozen string literal +# # comment is written in kebab case. (Words separated by hyphens) +# # bad +# # frozen_string_literal: true +# +# module Baz +# # ... +# end +# +# # good +# # frozen-string-literal: true +# +# module Baz +# # ... +# end +# @example DirectiveCapitalization: lowercase (default) +# # bad +# # FROZEN-STRING-LITERAL: true +# +# # good +# # frozen-string-literal: true +# @example DirectiveCapitalization: uppercase +# # bad +# # frozen-string-literal: true +# +# # good +# # FROZEN-STRING-LITERAL: true +# @example DirectiveCapitalization: nil +# # any capitalization is accepted +# +# # good +# # frozen-string-literal: true +# +# # good +# # FROZEN-STRING-LITERAL: true +# @example ValueCapitalization: nil (default) +# # any capitalization is accepted +# +# # good +# # frozen-string-literal: true +# +# # good +# # frozen-string-literal: TRUE +# @example ValueCapitalization: lowercase +# # when a value is not given, any capitalization is accepted +# +# # bad +# # frozen-string-literal: TRUE +# +# # good +# # frozen-string-literal: TRUE +# @example ValueCapitalization: uppercase +# # bad +# # frozen-string-literal: true +# +# # good +# # frozen-string-literal: TRUE +# +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#97 +class RuboCop::Cop::Style::MagicCommentFormat < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#156 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#241 + def correct_separator; end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#279 + def directive_capitalization; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#197 + def directive_offends?(directive); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#233 + def expected_style; end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#183 + def find_issues(comment); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#207 + def fix_directives(issues); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#221 + def fix_values(issues); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#245 + def incorrect_separator?(text); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#173 + def leading_comment_lines; end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#275 + def line_range(line); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#167 + def magic_comments; end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#202 + def register_offenses(issues); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#264 + def replace_capitalization(text, style); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#260 + def replace_separator(text); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#301 + def supported_capitalizations; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#295 + def valid_capitalization?(style); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#287 + def value_capitalization; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#249 + def wrong_capitalization?(text, expected_case); end + + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#237 + def wrong_separator; end +end + +# Value object to extract source ranges for the different parts of a magic comment +# +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#107 +class RuboCop::Cop::Style::MagicCommentFormat::CommentRange + extend ::Forwardable + + # @return [CommentRange] a new instance of CommentRange + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#119 + def initialize(comment); end + + # Returns the value of attribute comment. + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#117 + def comment; end + + # A magic comment can contain one directive (normal style) or + # multiple directives (emacs style) + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 + def directives; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def loc(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def text(*args, **_arg1, &block); end + + # A magic comment can contain one value (normal style) or + # multiple directives (emacs style) + # + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#141 + def values; end +end + +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#110 +RuboCop::Cop::Style::MagicCommentFormat::CommentRange::DIRECTIVE_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#114 +RuboCop::Cop::Style::MagicCommentFormat::CommentRange::VALUE_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#102 +RuboCop::Cop::Style::MagicCommentFormat::KEBAB_SEPARATOR = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#103 +RuboCop::Cop::Style::MagicCommentFormat::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#104 +RuboCop::Cop::Style::MagicCommentFormat::MSG_VALUE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#101 +RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), String) + +# Prefer `select` or `reject` over `map { ... }.compact`. +# +# @example +# +# # bad +# array.map { |e| some_condition? ? e : next }.compact +# +# # bad +# array.map do |e| +# if some_condition? +# e +# else +# next +# end +# end.compact +# +# # bad +# array.map do |e| +# next if some_condition? +# +# e +# end.compact +# +# # bad +# array.map do |e| +# e if some_condition? +# end.compact +# +# # good +# array.select { |e| some_condition? } +# +# # good +# array.reject { |e| some_condition? } +# +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#40 +class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#46 + def map_and_compact?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#125 + def range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#91 + def returns_block_argument?(block_argument_node, return_value_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#95 + def truthy_branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#115 + def truthy_branch_for_guard?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#105 + def truthy_branch_for_if?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#43 +RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), String) + +# Looks for uses of `map.to_h` or `collect.to_h` that could be +# written with just `to_h` in Ruby >= 2.6. +# +# NOTE: `Style/HashTransformKeys` and `Style/HashTransformValues` will +# also change this pattern if only hash keys or hash values are being +# transformed. +# +# @example +# # bad +# something.map { |v| [v, v * 2] }.to_h +# +# # good +# something.to_h { |v| [v, v * 2] } +# +# # bad +# {foo: bar}.collect { |k, v| [k.to_s, v.do_something] }.to_h +# +# # good +# {foo: bar}.to_h { |k, v| [k.to_s, v.do_something] } +# +# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#30 +class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41 + def map_to_h?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#48 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#62 + def autocorrect(corrector, to_h, map); end +end + +# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#37 +RuboCop::Cop::Style::MapToHash::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#38 +RuboCop::Cop::Style::MapToHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for uses of `map.to_set` or `collect.to_set` that could be +# written with just `to_set`. +# +# @example +# # bad +# something.map { |i| i * 2 }.to_set +# +# # good +# something.to_set { |i| i * 2 } +# +# # bad +# [1, 2, 3].collect { |i| i.to_s }.to_set +# +# # good +# [1, 2, 3].to_set { |i| i.to_s } +# +# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#26 +class RuboCop::Cop::Style::MapToSet < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#34 + def map_to_set?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#41 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#55 + def autocorrect(corrector, to_set, map); end +end + +# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#30 +RuboCop::Cop::Style::MapToSet::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#31 +RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the presence (default) or absence of parentheses in +# method calls containing parameters. +# +# In the default style (require_parentheses), macro methods are allowed. +# Additional methods can be added to the `AllowedMethods` or +# `AllowedPatterns` list. These options are valid only in the default +# style. Macros can be included by either setting `IgnoreMacros` to false +# or adding specific macros to the `IncludedMacros` list. +# +# Precedence of options is as follows: +# +# 1. `AllowedMethods` +# 2. `AllowedPatterns` +# 3. `IncludedMacros` +# +# If a method is listed in both `IncludedMacros` and `AllowedMethods`, +# then the latter takes precedence (that is, the method is allowed). +# +# In the alternative style (omit_parentheses), there are three additional +# options. +# +# 1. `AllowParenthesesInChaining` is `false` by default. Setting it to +# `true` allows the presence of parentheses in the last call during +# method chaining. +# +# 2. `AllowParenthesesInMultilineCall` is `false` by default. Setting it +# to `true` allows the presence of parentheses in multi-line method +# calls. +# +# 3. `AllowParenthesesInCamelCaseMethod` is `false` by default. This +# allows the presence of parentheses when calling a method whose name +# begins with a capital letter and which has no arguments. Setting it +# to `true` allows the presence of parentheses in such a method call +# even with arguments. +# +# NOTE: The style of `omit_parentheses` allows parentheses in cases where +# omitting them results in ambiguous or syntactically incorrect code. +# +# Non-exhaustive list of examples: +# +# - Parentheses are required allowed in method calls with arguments inside +# literals, logical operators, setting default values in position and +# keyword arguments, chaining and more. +# - Parentheses are allowed in method calls with arguments inside +# operators to avoid ambiguity. +# triple-dot syntax introduced in Ruby 2.7 as omitting them starts an +# endless range. +# - Parentheses are allowed when forwarding arguments with the +# triple-dot syntax introduced in Ruby 2.7 as omitting them starts an +# endless range. +# - Parentheses are required in calls with arguments when inside an +# endless method definition introduced in Ruby 3.0. +# - Ruby 3.1's hash omission syntax allows parentheses if the method call +# is in conditionals and requires parentheses if the call +# is not the value-returning expression. See +# https://bugs.ruby-lang.org/issues/18396. +# - Parentheses are required in anonymous arguments, keyword arguments +# and block passing in Ruby 3.2. +# +# @example EnforcedStyle: require_parentheses (default) +# +# # bad +# array.delete e +# +# # good +# array.delete(e) +# +# # good +# # Operators don't need parens +# foo == bar +# +# # good +# # Setter methods don't need parens +# foo.bar = baz +# +# # okay with `puts` listed in `AllowedMethods` +# puts 'test' +# +# # okay with `^assert` listed in `AllowedPatterns` +# assert_equal 'test', x +# @example EnforcedStyle: omit_parentheses +# +# # bad +# array.delete(e) +# +# # good +# array.delete e +# +# # bad +# action.enforce(strict: true) +# +# # good +# action.enforce strict: true +# +# # good +# # Parentheses are allowed for code that can be ambiguous without +# # them. +# action.enforce(condition) || other_condition +# +# # good +# # Parentheses are allowed for calls that won't produce valid Ruby +# # without them. +# yield path, File.basename(path) +# +# # good +# # Omitting the parentheses in Ruby 3.1 hash omission syntax can lead +# # to ambiguous code. We allow them in conditionals and non-last +# # expressions. See https://bugs.ruby-lang.org/issues/18396 +# if meets(criteria:, action:) +# safe_action(action) || dangerous_action(action) +# end +# @example IgnoreMacros: true (default) +# +# # good +# class Foo +# bar :baz +# end +# @example IgnoreMacros: false +# +# # bad +# class Foo +# bar :baz +# end +# @example AllowParenthesesInMultilineCall: false (default) +# +# # bad +# foo.enforce( +# strict: true +# ) +# +# # good +# foo.enforce \ +# strict: true +# @example AllowParenthesesInMultilineCall: true +# +# # good +# foo.enforce( +# strict: true +# ) +# +# # good +# foo.enforce \ +# strict: true +# @example AllowParenthesesInChaining: false (default) +# +# # bad +# foo().bar(1) +# +# # good +# foo().bar 1 +# @example AllowParenthesesInChaining: true +# +# # good +# foo().bar(1) +# +# # good +# foo().bar 1 +# @example AllowParenthesesInCamelCaseMethod: false (default) +# +# # bad +# Array(1) +# +# # good +# Array 1 +# @example AllowParenthesesInCamelCaseMethod: true +# +# # good +# Array(1) +# +# # good +# Array 1 +# @example AllowParenthesesInStringInterpolation: false (default) +# +# # bad +# "#{t('this.is.bad')}" +# +# # good +# "#{t 'this.is.better'}" +# @example AllowParenthesesInStringInterpolation: true +# +# # good +# "#{t('this.is.good')}" +# +# # good +# "#{t 'this.is.also.good'}" +# +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#202 +class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses + include ::RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_super(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_yield(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#226 + def args_begin(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#235 + def args_end(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#239 + def args_parenthesized?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#213 + def autocorrect_incompatible_with; end + end +end + +# Style omit_parentheses +# +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#9 +module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#70 + def allowed_camel_case_method_call?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#165 + def allowed_chained_call_with_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#161 + def allowed_multiline_call_with_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#75 + def allowed_string_interpolation_method_call?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#174 + def ambiguous_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#203 + def assigned_before?(node, target); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#211 + def assignment_in_condition?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#31 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#142 + def call_as_argument_or_chain?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#99 + def call_in_literals?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#110 + def call_in_logical_operators?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#148 + def call_in_match_pattern?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#119 + def call_in_optional_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#123 + def call_in_single_line_inheritance?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#127 + def call_with_ambiguous_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#138 + def call_with_braced_block?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#221 + def forwards_anonymous_rest_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#190 + def hash_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#154 + def hash_literal_in_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#44 + def inside_endless_method_def?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#207 + def inside_string_interpolation?(node); end + + # Require hash value omission be enclosed in parentheses to prevent the following issue: + # https://bugs.ruby-lang.org/issues/18396. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#58 + def last_expression?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#87 + def legitimate_call_with_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#186 + def logical_operator?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#40 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#16 + def omit_parentheses(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#80 + def parentheses_at_the_end_of_multiline_call?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#194 + def regexp_slash_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#49 + def require_parentheses_for_hash_value_omission?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#178 + def splat?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#66 + def super_call_without_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#62 + def syntax_like_method_call?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#182 + def ternary_if?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#198 + def unary_literal?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#11 +RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::OMIT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#10 +RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::TRAILING_WHITESPACE_REGEX = T.let(T.unsafe(nil), Regexp) + +# Style require_parentheses +# +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#8 +module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#27 + def allowed_method_name?(name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#31 + def eligible_for_parentheses_omission?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#39 + def ignored_macro?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#35 + def included_macros_list; end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#14 + def require_parentheses(node); end +end + +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#9 +RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_MSG = T.let(T.unsafe(nil), String) + +# Checks for unwanted parentheses in parameterless method calls. +# +# This cop can be customized allowed methods with `AllowedMethods`. +# By default, there are no methods to allowed. +# +# @example +# # bad +# object.some_method() +# +# # good +# object.some_method +# @example AllowedMethods: [] (default) +# # bad +# object.foo() +# @example AllowedMethods: [foo] +# # good +# object.foo() +# +# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#26 +class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#33 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#60 + def allowed_method_name?(name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#74 + def any_assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#56 + def default_argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#52 + def ineligible_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#97 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#45 + def register_offense(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#64 + def same_name_assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#90 + def variable_in_mass_assignment?(variable_name, node); end +end + +# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#31 +RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String) + +# Checks for methods called on a do...end block. The point of +# this check is that it's easy to miss the call tacked on to the block +# when reading code. +# +# @example +# # bad +# a do +# b +# end.c +# +# # good +# a { b }.c +# +# # good +# foo = a do +# b +# end +# foo.c +# +# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#24 +class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#27 +RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for parentheses around the arguments in method +# definitions. Both instance and class/singleton methods are checked. +# +# Regardless of style, parentheses are necessary for: +# +# 1. Endless methods +# 2. Argument lists containing a `forward-arg` (`...`) +# 3. Argument lists containing an anonymous rest arguments forwarding (`*`) +# 4. Argument lists containing an anonymous keyword rest arguments forwarding (`**`) +# 5. Argument lists containing an anonymous block forwarding (`&`) +# +# Removing the parens would be a syntax error here. +# +# @example EnforcedStyle: require_parentheses (default) +# # The `require_parentheses` style requires method definitions +# # to always use parentheses +# +# # bad +# def bar num1, num2 +# num1 + num2 +# end +# +# def foo descriptive_var_name, +# another_descriptive_var_name, +# last_descriptive_var_name +# do_something +# end +# +# # good +# def bar(num1, num2) +# num1 + num2 +# end +# +# def foo(descriptive_var_name, +# another_descriptive_var_name, +# last_descriptive_var_name) +# do_something +# end +# @example EnforcedStyle: require_no_parentheses +# # The `require_no_parentheses` style requires method definitions +# # to never use parentheses +# +# # bad +# def bar(num1, num2) +# num1 + num2 +# end +# +# def foo(descriptive_var_name, +# another_descriptive_var_name, +# last_descriptive_var_name) +# do_something +# end +# +# # good +# def bar num1, num2 +# num1 + num2 +# end +# +# def foo descriptive_var_name, +# another_descriptive_var_name, +# last_descriptive_var_name +# do_something +# end +# @example EnforcedStyle: require_no_parentheses_except_multiline +# # The `require_no_parentheses_except_multiline` style prefers no +# # parentheses when method definition arguments fit on single line, +# # but prefers parentheses when arguments span multiple lines. +# +# # bad +# def bar(num1, num2) +# num1 + num2 +# end +# +# def foo descriptive_var_name, +# another_descriptive_var_name, +# last_descriptive_var_name +# do_something +# end +# +# # good +# def bar num1, num2 +# num1 + num2 +# end +# +# def foo(descriptive_var_name, +# another_descriptive_var_name, +# last_descriptive_var_name) +# do_something +# end +# +# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#97 +class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#169 + def anonymous_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#147 + def arguments_without_parentheses?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#126 + def correct_arguments(arg_node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#131 + def forced_parentheses?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#151 + def missing_parentheses(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#142 + def require_parentheses?(args); end + + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#161 + def unwanted_parentheses(args); end +end + +# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#103 +RuboCop::Cop::Style::MethodDefParentheses::MSG_MISSING = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#102 +RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), String) + +# Checks for potential uses of `Enumerable#minmax`. +# +# @example +# +# # bad +# bar = [foo.min, foo.max] +# return foo.min, foo.max +# +# # good +# bar = foo.minmax +# return foo.minmax +# +# source://rubocop//lib/rubocop/cop/style/min_max.rb#17 +class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/min_max.rb#38 + def min_max_candidate(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 + def on_return(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/min_max.rb#55 + def argument_range(node); end + + # source://rubocop//lib/rubocop/cop/style/min_max.rb#42 + def message(offender, receiver); end + + # source://rubocop//lib/rubocop/cop/style/min_max.rb#46 + def offending_range(node); end +end + +# source://rubocop//lib/rubocop/cop/style/min_max.rb#20 +RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) + +# Enforces the use of `max` or `min` instead of comparison for greater or less. +# +# NOTE: It can be used if you want to present limit or threshold in Ruby 2.7+. +# That it is slow though. So autocorrection will apply generic `max` or `min`: +# +# [source,ruby] +# ---- +# a.clamp(b..) # Same as `[a, b].max` +# a.clamp(..b) # Same as `[a, b].min` +# ---- +# +# @example +# +# # bad +# a > b ? a : b +# a >= b ? a : b +# +# # good +# [a, b].max +# +# # bad +# a < b ? a : b +# a <= b ? a : b +# +# # good +# [a, b].min +# +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#37 +class RuboCop::Cop::Style::MinMaxComparison < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#46 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#72 + def autocorrect(corrector, node, replacement); end + + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#64 + def preferred_method(operator, lhs, rhs, if_branch, else_branch); end +end + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#44 +RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#42 +RuboCop::Cop::Style::MinMaxComparison::GRATER_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#43 +RuboCop::Cop::Style::MinMaxComparison::LESS_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#41 +RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String) + +# Checks for `if` expressions that do not have an `else` branch. +# +# NOTE: Pattern matching is allowed to have no `else` branch because unlike `if` and `case`, +# it raises `NoMatchingPatternError` if the pattern doesn't match and without having `else`. +# +# Supported styles are: if, case, both. +# +# @example EnforcedStyle: both (default) +# # warn when an `if` or `case` expression is missing an `else` branch. +# +# # bad +# if condition +# statement +# end +# +# # bad +# case var +# when condition +# statement +# end +# +# # good +# if condition +# statement +# else +# # the content of `else` branch will be determined by Style/EmptyElse +# end +# +# # good +# case var +# when condition +# statement +# else +# # the content of `else` branch will be determined by Style/EmptyElse +# end +# @example EnforcedStyle: if +# # warn when an `if` expression is missing an `else` branch. +# +# # bad +# if condition +# statement +# end +# +# # good +# if condition +# statement +# else +# # the content of `else` branch will be determined by Style/EmptyElse +# end +# +# # good +# case var +# when condition +# statement +# end +# +# # good +# case var +# when condition +# statement +# else +# # the content of `else` branch will be determined by Style/EmptyElse +# end +# @example EnforcedStyle: case +# # warn when a `case` expression is missing an `else` branch. +# +# # bad +# case var +# when condition +# statement +# end +# +# # good +# case var +# when condition +# statement +# else +# # the content of `else` branch will be determined by Style/EmptyElse +# end +# +# # good +# if condition +# statement +# end +# +# # good +# if condition +# statement +# else +# # the content of `else` branch will be determined by Style/EmptyElse +# end +# +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#99 +class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base + include ::RuboCop::Cop::OnNormalIfUnless + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#115 + def on_case(node); end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#121 + def on_case_match(node); end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#108 + def on_normal_if_unless(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#146 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#159 + def case_style?; end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#127 + def check(node); end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#181 + def empty_else_config; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#171 + def empty_else_cop_enabled?; end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#175 + def empty_else_style; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#155 + def if_style?; end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#135 + def message_template; end + + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#167 + def unless_else_config; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#163 + def unless_else_cop_enabled?; end +end + +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#104 +RuboCop::Cop::Style::MissingElse::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#106 +RuboCop::Cop::Style::MissingElse::MSG_EMPTY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#105 +RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String) + +# Checks for the presence of `method_missing` without also +# defining `respond_to_missing?`. +# +# @example +# #bad +# def method_missing(name, *args) +# # ... +# end +# +# #good +# def respond_to_missing?(name, include_private) +# # ... +# end +# +# def method_missing(name, *args) +# # ... +# end +# +# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#24 +class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#27 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#27 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#37 + def implements_respond_to_missing?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#25 +RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String) + +# Checks for grouping of mixins in `class` and `module` bodies. +# By default it enforces mixins to be placed in separate declarations, +# but it can be configured to enforce grouping them in one declaration. +# +# @example EnforcedStyle: separated (default) +# # bad +# class Foo +# include Bar, Qox +# end +# +# # good +# class Foo +# include Qox +# include Bar +# end +# @example EnforcedStyle: grouped +# # bad +# class Foo +# extend Bar +# extend Qox +# end +# +# # good +# class Foo +# extend Qox, Bar +# end +# +# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#33 +class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 + def on_module(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#64 + def check(send_node); end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#72 + def check_grouped_style(send_node); end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#91 + def check_separated_style(send_node); end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#127 + def group_mixins(node, mixins); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#110 + def grouped_style?; end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#53 + def range_to_remove_for_subsequent_mixin(mixins, node); end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#118 + def separate_mixins(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#114 + def separated_style?; end + + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#104 + def sibling_mixins(send_node); end +end + +# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#37 +RuboCop::Cop::Style::MixinGrouping::MIXIN_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#38 +RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String) + +# Checks that `include`, `extend` and `prepend` statements appear +# inside classes and modules, not at the top level, so as to not affect +# the behavior of `Object`. +# +# @example +# # bad +# include M +# +# class C +# end +# +# # bad +# extend M +# +# class C +# end +# +# # bad +# prepend M +# +# class C +# end +# +# # good +# class C +# include M +# end +# +# # good +# class C +# extend M +# end +# +# # good +# class C +# prepend M +# end +# +# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#43 +class RuboCop::Cop::Style::MixinUsage < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#54 + def in_top_level_scope?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#48 + def include_statement(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#62 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#44 +RuboCop::Cop::Style::MixinUsage::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#45 +RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for use of `extend self` or `module_function` in a module. +# +# Supported styles are: `module_function` (default), `extend_self` and `forbidden`. +# +# A couple of things to keep in mind: +# +# - `forbidden` style prohibits the usage of both styles +# - in default mode (`module_function`), the cop won't be activated when the module +# contains any private methods +# +# @example EnforcedStyle: module_function (default) +# # bad +# module Test +# extend self +# # ... +# end +# +# # good +# module Test +# module_function +# # ... +# end +# +# # good +# module Test +# extend self +# # ... +# private +# # ... +# end +# +# # good +# module Test +# class << self +# # ... +# end +# end +# @example EnforcedStyle: extend_self +# # bad +# module Test +# module_function +# # ... +# end +# +# # good +# module Test +# extend self +# # ... +# end +# +# # good +# module Test +# class << self +# # ... +# end +# end +# @example EnforcedStyle: forbidden +# # bad +# module Test +# module_function +# # ... +# end +# +# # bad +# module Test +# extend self +# # ... +# end +# +# # bad +# module Test +# extend self +# # ... +# private +# # ... +# end +# +# # good +# module Test +# class << self +# # ... +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/module_function.rb#95 +class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#107 + def extend_self_node?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#104 + def module_function_node?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#112 + def on_module(node); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#110 + def private_directive?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#149 + def check_extend_self(nodes); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#155 + def check_forbidden(nodes); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#141 + def check_module_function(nodes); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#130 + def each_wrong_style(nodes, &block); end + + # source://rubocop//lib/rubocop/cop/style/module_function.rb#162 + def message(_range); end +end + +# source://rubocop//lib/rubocop/cop/style/module_function.rb#100 +RuboCop::Cop::Style::ModuleFunction::EXTEND_SELF_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/module_function.rb#101 +RuboCop::Cop::Style::ModuleFunction::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/module_function.rb#99 +RuboCop::Cop::Style::ModuleFunction::MODULE_FUNCTION_MSG = T.let(T.unsafe(nil), String) + +# Checks for chaining of a block after another block that spans +# multiple lines. +# +# @example +# +# # bad +# Thread.list.select do |t| +# t.alive? +# end.map do |t| +# t.object_id +# end +# +# # good +# alive_threads = Thread.list.select do |t| +# t.alive? +# end +# alive_threads.map do |t| +# t.object_id +# end +# +# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#25 +class RuboCop::Cop::Style::MultilineBlockChain < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 + def on_numblock(node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#28 +RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of if/unless modifiers with multiple-lines bodies. +# +# @example +# +# # bad +# { +# result: 'this should not happen' +# } unless cond +# +# # good +# { result: 'ok' } if cond +# +# source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#17 +class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::StatementModifier + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#25 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#43 + def indented_body(body, node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#35 + def to_normal_if(node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#22 +RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of the `then` keyword in multi-line if statements. +# +# @example +# # bad +# # This is considered bad practice. +# if cond then +# end +# +# # good +# # If statements can contain `then` on the same line. +# if cond then a +# elsif cond then b +# end +# +# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#19 +class RuboCop::Cop::Style::MultilineIfThen < ::RuboCop::Cop::Base + include ::RuboCop::Cop::OnNormalIfUnless + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#28 + def on_normal_if_unless(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#38 + def non_modifier_then?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#26 +RuboCop::Cop::Style::MultilineIfThen::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#24 +RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), Regexp) + +# Checks uses of the `then` keyword in multi-line `in` statement. +# +# @example +# # bad +# case expression +# in pattern then +# end +# +# # good +# case expression +# in pattern +# end +# +# # good +# case expression +# in pattern then do_something +# end +# +# # good +# case expression +# in pattern then do_something(arg1, +# arg2) +# end +# +# source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#30 +class RuboCop::Cop::Style::MultilineInPatternThen < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#39 + def on_in_pattern(node); end + + private + + # Requires `then` for write `in` and its body on the same line. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#51 + def require_then?(in_pattern_node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#37 +RuboCop::Cop::Style::MultilineInPatternThen::MSG = T.let(T.unsafe(nil), String) + +# Checks expressions wrapping styles for multiline memoization. +# +# @example EnforcedStyle: keyword (default) +# # bad +# foo ||= ( +# bar +# baz +# ) +# +# # good +# foo ||= begin +# bar +# baz +# end +# @example EnforcedStyle: braces +# # bad +# foo ||= begin +# bar +# baz +# end +# +# # good +# foo ||= ( +# bar +# baz +# ) +# +# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#33 +class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#56 + def message(_node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#41 + def on_or_asgn(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#62 + def bad_rhs?(rhs); end + + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#72 + def keyword_autocorrect(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#78 + def keyword_begin_str(node, node_buf); end + + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#86 + def keyword_end_str(node, node_buf); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#39 +RuboCop::Cop::Style::MultilineMemoization::BRACES_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#38 +RuboCop::Cop::Style::MultilineMemoization::KEYWORD_MSG = T.let(T.unsafe(nil), String) + +# Checks for method signatures that span multiple lines. +# +# @example +# +# # good +# +# def foo(bar, baz) +# end +# +# # bad +# +# def foo(bar, +# baz) +# end +# +# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#21 +class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#60 + def arguments_range(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#41 + def autocorrect(corrector, node, begin_of_arguments); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#72 + def closing_line(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#76 + def correction_exceeds_max_line_length?(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#84 + def definition_width(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#80 + def indentation_width(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#56 + def last_line_source_of_arguments(arguments); end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#88 + def max_line_length; end + + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#68 + def opening_line(node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#25 +RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String) + +# Checks for multi-line ternary op expressions. +# +# NOTE: `return if ... else ... end` is syntax error. If `return` is used before +# multiline ternary operator expression, it will be autocorrected to single-line +# ternary operator. The same is true for `break`, `next`, and method call. +# +# @example +# # bad +# a = cond ? +# b : c +# a = cond ? b : +# c +# a = cond ? +# b : +# c +# +# return cond ? +# b : +# c +# +# # good +# a = cond ? b : c +# a = if cond +# b +# else +# c +# end +# +# return cond ? b : c +# +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#36 +class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#44 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#60 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#84 + def comments_in_condition(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#90 + def enforce_single_line_ternary_operator?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#56 + def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#70 + def replacement(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#94 + def use_assignment_method?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#40 +RuboCop::Cop::Style::MultilineTernaryOperator::MSG_IF = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#41 +RuboCop::Cop::Style::MultilineTernaryOperator::MSG_SINGLE_LINE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#42 +RuboCop::Cop::Style::MultilineTernaryOperator::SINGLE_LINE_TYPES = T.let(T.unsafe(nil), Array) + +# Checks uses of the `then` keyword +# in multi-line when statements. +# +# @example +# # bad +# case foo +# when bar then +# end +# +# # good +# case foo +# when bar +# end +# +# # good +# case foo +# when bar then do_something +# end +# +# # good +# case foo +# when bar then do_something(arg1, +# arg2) +# end +# +# source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#31 +class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#37 + def on_when(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#58 + def accept_node_type?(node); end + + # Requires `then` for write `when` and its body on the same line. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#49 + def require_then?(when_node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#35 +RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String) + +# Checks against comparing a variable with multiple items, where +# `Array#include?`, `Set#include?` or a `case` could be used instead +# to avoid code repetition. +# It accepts comparisons of multiple method calls to avoid unnecessary method calls +# by default. It can be configured by `AllowMethodComparison` option. +# +# @example +# # bad +# a = 'a' +# foo if a == 'a' || a == 'b' || a == 'c' +# +# # good +# a = 'a' +# foo if ['a', 'b', 'c'].include?(a) +# +# VALUES = Set['a', 'b', 'c'].freeze +# # elsewhere... +# foo if VALUES.include?(a) +# +# case foo +# when 'a', 'b', 'c' then foo +# # ... +# end +# +# # accepted (but consider `case` as above) +# foo if a == b.lightweight || a == b.heavyweight +# @example AllowMethodComparison: true (default) +# # good +# foo if a == b.lightweight || a == b.heavyweight +# @example AllowMethodComparison: false +# # bad +# foo if a == b.lightweight || a == b.heavyweight +# +# # good +# foo if [b.lightweight, b.heavyweight].include?(a) +# @example ComparisonsThreshold: 2 (default) +# # bad +# foo if a == 'a' || a == 'b' +# @example ComparisonsThreshold: 3 +# # good +# foo if a == 'a' || a == 'b' +# +# source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#52 +class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#58 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#62 + def on_or(node); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#88 + def simple_comparison_lhs?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#93 + def simple_comparison_rhs?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#85 + def simple_double_comparison?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#161 + def allow_method_comparison?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#136 + def comparison?(node); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#165 + def comparisons_threshold; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#128 + def nested_comparison?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#97 + def nested_variable_comparison?(node); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#156 + def reset_comparison; end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#140 + def root_of_or_node(or_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#150 + def switch_comparison?(node); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#124 + def variable_name(node); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#103 + def variables_in_node(node); end + + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#111 + def variables_in_simple_node(node); end +end + +# source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#55 +RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) + +# Checks whether some constant value isn't a +# mutable literal (e.g. array or hash). +# +# Strict mode can be used to freeze all constants, rather than +# just literals. +# Strict mode is considered an experimental feature. It has not been +# updated with an exhaustive list of all methods that will produce +# frozen objects so there is a decent chance of getting some false +# positives. Luckily, there is no harm in freezing an already +# frozen object. +# +# From Ruby 3.0, this cop honours the magic comment +# 'shareable_constant_value'. When this magic comment is set to any +# acceptable value other than none, it will suppress the offenses +# raised by this cop. It enforces frozen state. +# +# NOTE: Regexp and Range literals are frozen objects since Ruby 3.0. +# +# NOTE: From Ruby 3.0, interpolated strings are not frozen when +# `# frozen-string-literal: true` is used, so this cop enforces explicit +# freezing for such strings. +# +# NOTE: From Ruby 3.0, this cop allows explicit freezing of constants when +# the `shareable_constant_value` directive is used. +# +# @example EnforcedStyle: literals (default) +# # bad +# CONST = [1, 2, 3] +# +# # good +# CONST = [1, 2, 3].freeze +# +# # good +# CONST = <<~TESTING.freeze +# This is a heredoc +# TESTING +# +# # good +# CONST = Something.new +# @example EnforcedStyle: strict +# # bad +# CONST = Something.new +# +# # bad +# CONST = Struct.new do +# def foo +# puts 1 +# end +# end +# +# # good +# CONST = Something.new.freeze +# +# # good +# CONST = Struct.new do +# def foo +# puts 1 +# end +# end.freeze +# @example +# # Magic comment - shareable_constant_value: literal +# +# # bad +# CONST = [1, 2, 3] +# +# # good +# # shareable_constant_value: literal +# CONST = [1, 2, 3] +# +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#83 +class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Style::MutableConstant::ShareableConstantValue + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#127 + def on_casgn(node); end + + # Some of these patterns may not actually return an immutable object, + # but we want to consider them immutable for this cop. + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#224 + def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#241 + def range_enclosed_in_parentheses?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#217 + def splat_value(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#169 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#158 + def check(value); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#208 + def correct_splat_expansion(corrector, expr, splat_value); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#200 + def frozen_regexp_or_range_literals?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#190 + def immutable_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#184 + def mutable_literal?(value); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#141 + def on_assignment(value); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#204 + def requires_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#194 + def shareable_constant_value?(node); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#149 + def strict_check(value); end +end + +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#125 +RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String) + +# Handles magic comment shareable_constant_value with O(n ^ 2) complexity +# n - number of lines in the source +# Iterates over all lines before a CONSTANT +# until it reaches shareable_constant_value +# +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#88 +module RuboCop::Cop::Style::MutableConstant::ShareableConstantValue + private + + # Identifies the most recent magic comment with valid shareable constant values + # that's in scope for this node + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#102 + def magic_comment_in_scope(node); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#110 + def processed_source_till_node(node); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#91 + def recent_shareable_value?(node); end + + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#114 + def shareable_constant_value_enabled?(value); end + + class << self + # Identifies the most recent magic comment with valid shareable constant values + # that's in scope for this node + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#102 + def magic_comment_in_scope(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#91 + def recent_shareable_value?(node); end + end +end + +# Checks for uses of if with a negated condition. Only ifs +# without else are considered. There are three different styles: +# +# * both +# * prefix +# * postfix +# +# @example EnforcedStyle: both (default) +# # enforces `unless` for `prefix` and `postfix` conditionals +# +# # bad +# +# if !foo +# bar +# end +# +# # good +# +# unless foo +# bar +# end +# +# # bad +# +# bar if !foo +# +# # good +# +# bar unless foo +# @example EnforcedStyle: prefix +# # enforces `unless` for just `prefix` conditionals +# +# # bad +# +# if !foo +# bar +# end +# +# # good +# +# unless foo +# bar +# end +# +# # good +# +# bar if !foo +# @example EnforcedStyle: postfix +# # enforces `unless` for just `postfix` conditionals +# +# # bad +# +# bar if !foo +# +# # good +# +# bar unless foo +# +# # good +# +# if !foo +# bar +# end +# +# source://rubocop//lib/rubocop/cop/style/negated_if.rb#71 +class RuboCop::Cop::Style::NegatedIf < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::NegativeConditional + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/negated_if.rb#76 + def on_if(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/negated_if.rb#92 + def correct_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/negated_if.rb#88 + def message(node); end +end + +# Checks for uses of `if-else` and ternary operators with a negated condition +# which can be simplified by inverting condition and swapping branches. +# +# @example +# # bad +# if !x +# do_something +# else +# do_something_else +# end +# +# # good +# if x +# do_something_else +# else +# do_something +# end +# +# # bad +# !x ? do_something : do_something_else +# +# # good +# x ? do_something_else : do_something +# +# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#30 +class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#39 + def double_negation?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#49 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#45 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#94 + def correct_negated_condition(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#90 + def corrected_ancestor?(node); end + + # Collect the entire else branch, including whitespace and comments + # + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#125 + def else_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#68 + def if_else?(node); end + + # Collect the entire if branch, including whitespace and comments + # + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#116 + def if_range(node); end + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#84 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#79 + def negated_condition?(node); end + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#107 + def swap_branches(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#73 + def unwrap_begin_nodes(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#41 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#34 +RuboCop::Cop::Style::NegatedIfElseCondition::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#36 +RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) + +# Checks for uses of unless with a negated condition. Only unless +# without else are considered. There are three different styles: +# +# * both +# * prefix +# * postfix +# +# @example EnforcedStyle: both (default) +# # enforces `if` for `prefix` and `postfix` conditionals +# +# # bad +# unless !foo +# bar +# end +# +# # good +# if foo +# bar +# end +# +# # bad +# bar unless !foo +# +# # good +# bar if foo +# @example EnforcedStyle: prefix +# # enforces `if` for just `prefix` conditionals +# +# # bad +# unless !foo +# bar +# end +# +# # good +# if foo +# bar +# end +# +# # good +# bar unless !foo +# @example EnforcedStyle: postfix +# # enforces `if` for just `postfix` conditionals +# +# # bad +# bar unless !foo +# +# # good +# bar if foo +# +# # good +# unless !foo +# bar +# end +# +# source://rubocop//lib/rubocop/cop/style/negated_unless.rb#61 +class RuboCop::Cop::Style::NegatedUnless < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::NegativeConditional + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#66 + def on_if(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#82 + def correct_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#78 + def message(node); end +end + +# Checks for uses of while with a negated condition. +# +# @example +# # bad +# while !foo +# bar +# end +# +# # good +# until foo +# bar +# end +# +# # bad +# bar until !foo +# +# # good +# bar while foo +# bar while !foo && baz +# +# source://rubocop//lib/rubocop/cop/style/negated_while.rb#25 +class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base + include ::RuboCop::Cop::NegativeConditional + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 + def on_while(node); end +end + +# Checks for nested `File.dirname`. +# It replaces nested `File.dirname` with the level argument introduced in Ruby 3.1. +# +# @example +# +# # bad +# File.dirname(File.dirname(path)) +# +# # good +# File.dirname(path, 2) +# +# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#17 +class RuboCop::Cop::Style::NestedFileDirname < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#28 + def file_dirname?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#33 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#60 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#49 + def path_with_dir_level(node, level); end +end + +# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#22 +RuboCop::Cop::Style::NestedFileDirname::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#23 +RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for nested use of if, unless, while and until in their +# modifier form. +# +# @example +# +# # bad +# something if a if b +# +# # good +# something if b && a +# +# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#16 +class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + def on_while(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#85 + def add_parentheses_to_method_arguments(send_node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#42 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#30 + def check(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#65 + def left_hand_operand(node, operator); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#38 + def modifier?(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#51 + def new_expression(inner_node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#61 + def replacement_operator(keyword); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#94 + def requires_parens?(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#71 + def right_hand_operand(node, left_hand_keyword); end +end + +# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#20 +RuboCop::Cop::Style::NestedModifier::MSG = T.let(T.unsafe(nil), String) + +# Checks for unparenthesized method calls in the argument list +# of a parenthesized method call. +# `be`, `be_a`, `be_an`, `be_between`, `be_falsey`, `be_kind_of`, `be_instance_of`, +# `be_truthy`, `be_within`, `eq`, `eql`, `end_with`, `include`, `match`, `raise_error`, +# `respond_to`, and `start_with` methods are allowed by default. +# These are customizable with `AllowedMethods` option. +# +# @example +# # good +# method1(method2(arg)) +# +# # bad +# method1(method2 arg) +# @example AllowedMethods: [foo] +# # good +# method1(foo arg) +# +# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#24 +class RuboCop::Cop::Style::NestedParenthesizedCalls < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::AllowedMethods + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#71 + def allowed?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#65 + def allowed_omission?(send_node); end + + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#51 + def autocorrect(corrector, nested); end + + class << self + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#31 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#29 +RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String) + +# Checks for nested ternary op expressions. +# +# @example +# # bad +# a ? (b ? b1 : b2) : a2 +# +# # good +# if a +# b ? b1 : b2 +# else +# a2 +# end +# +# source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#18 +class RuboCop::Cop::Style::NestedTernaryOperator < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#25 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#40 + def autocorrect(corrector, if_node); end + + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#47 + def remove_parentheses(source); end + + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#53 + def replace_loc_and_whitespace(corrector, range, replacement); end +end + +# source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#23 +RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String) + +# Use `next` to skip iteration instead of a condition at the end. +# +# @example EnforcedStyle: skip_modifier_ifs (default) +# # bad +# [1, 2].each do |a| +# if a == 1 +# puts a +# end +# end +# +# # good +# [1, 2].each do |a| +# next unless a == 1 +# puts a +# end +# +# # good +# [1, 2].each do |a| +# puts a if a == 1 +# end +# @example EnforcedStyle: always +# # With `always` all conditions at the end of an iteration needs to be +# # replaced by next - with `skip_modifier_ifs` the modifier if like +# # this one are ignored: `[1, 2].each { |a| puts a if a == 1 }` +# +# # bad +# [1, 2].each do |a| +# puts a if a == 1 +# end +# +# # bad +# [1, 2].each do |a| +# if a == 1 +# puts a +# end +# end +# +# # good +# [1, 2].each do |a| +# next unless a == 1 +# puts a +# end +# +# source://rubocop//lib/rubocop/cop/style/next.rb#49 +class RuboCop::Cop::Style::Next < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::MinBodyLength + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/next.rb#68 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#76 + def on_for(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#62 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/style/next.rb#68 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#76 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#76 + def on_while(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/next.rb#213 + def actual_indent(lines, buffer); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#112 + def allowed_modifier_if?(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#155 + def autocorrect_block(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#145 + def autocorrect_modifier(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#84 + def check(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#170 + def cond_range(node, cond); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#189 + def end_followed_by_whitespace_only?(source_buffer, end_pos); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#180 + def end_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#98 + def ends_with_condition?(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#128 + def exit_body_type?(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#217 + def heredoc_lines(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#120 + def if_else_children?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#124 + def if_without_else?(node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#140 + def offense_location(offense_node); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#134 + def offense_node(body); end + + # Adjust indentation of `lines` to match `node` + # + # source://rubocop//lib/rubocop/cop/style/next.rb#204 + def reindent(lines, node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#224 + def reindent_line(corrector, lineno, delta, buffer); end + + # source://rubocop//lib/rubocop/cop/style/next.rb#193 + def reindentable_lines(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/next.rb#104 + def simple_if_without_break?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/next.rb#58 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/next.rb#56 +RuboCop::Cop::Style::Next::EXIT_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/next.rb#55 +RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String) + +# Checks for comparison of something with nil using `==` and +# `nil?`. +# +# Supported styles are: predicate, comparison. +# +# @example EnforcedStyle: predicate (default) +# +# # bad +# if x == nil +# end +# +# # good +# if x.nil? +# end +# @example EnforcedStyle: comparison +# +# # bad +# if x.nil? +# end +# +# # good +# if x == nil +# end +# +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#31 +class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#44 + def nil_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#41 + def nil_comparison?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#46 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#65 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#77 + def prefer_comparison?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#69 + def style_check?(node, &block); end +end + +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#36 +RuboCop::Cop::Style::NilComparison::EXPLICIT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#35 +RuboCop::Cop::Style::NilComparison::PREDICATE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#38 +RuboCop::Cop::Style::NilComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for lambdas and procs that always return nil, +# which can be replaced with an empty lambda or proc instead. +# +# @example +# # bad +# -> { nil } +# +# lambda do +# next nil +# end +# +# proc { nil } +# +# Proc.new do +# break nil +# end +# +# # good +# -> {} +# +# lambda do +# end +# +# -> (x) { nil if x } +# +# proc {} +# +# Proc.new { nil if x } +# +# source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#35 +class RuboCop::Cop::Style::NilLambda < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#42 + def nil_return?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#46 + def on_block(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#58 + def autocorrect(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#39 +RuboCop::Cop::Style::NilLambda::MSG = T.let(T.unsafe(nil), String) + +# Checks for non-nil checks, which are usually redundant. +# +# With `IncludeSemanticChanges` set to `false` by default, this cop +# does not report offenses for `!x.nil?` and does no changes that might +# change behavior. +# Also `IncludeSemanticChanges` set to `false` with `EnforcedStyle: comparison` of +# `Style/NilComparison` cop, this cop does not report offenses for `x != nil` and +# does no changes to `!x.nil?` style. +# +# With `IncludeSemanticChanges` set to `true`, this cop reports offenses +# for `!x.nil?` and autocorrects that and `x != nil` to solely `x`, which +# is *usually* OK, but might change behavior. +# +# @example +# # bad +# if x != nil +# end +# +# # good +# if x +# end +# +# # Non-nil checks are allowed if they are the final nodes of predicate. +# # good +# def signed_in? +# !current_user.nil? +# end +# @example IncludeSemanticChanges: false (default) +# # good +# if !x.nil? +# end +# @example IncludeSemanticChanges: true +# # bad +# if !x.nil? +# end +# +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#44 +class RuboCop::Cop::Style::NonNilCheck < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#59 + def nil_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#62 + def not_and_nil_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#53 + def not_equal_to_nil?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#64 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#56 + def unless_check?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#93 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#123 + def autocorrect_comparison(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#137 + def autocorrect_non_nil(corrector, node, inner_node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#145 + def autocorrect_unless_nil(corrector, node, receiver); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#119 + def include_semantic_changes?; end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#110 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#150 + def nil_comparison_style; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#88 + def register_offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#104 + def unless_and_nil_check?(send_node); end +end + +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#48 +RuboCop::Cop::Style::NonNilCheck::MSG_FOR_REDUNDANCY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#47 +RuboCop::Cop::Style::NonNilCheck::MSG_FOR_REPLACEMENT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#50 +RuboCop::Cop::Style::NonNilCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of the keyword `not` instead of `!`. +# +# @example +# +# # bad - parentheses are required because of op precedence +# x = (not something) +# +# # good +# x = !something +# +# source://rubocop//lib/rubocop/cop/style/not.rb#16 +class RuboCop::Cop::Style::Not < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/not.rb#32 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/not.rb#60 + def correct_opposite_method(corrector, range, child); end + + # source://rubocop//lib/rubocop/cop/style/not.rb#65 + def correct_with_parens(corrector, range, node); end + + # source://rubocop//lib/rubocop/cop/style/not.rb#70 + def correct_without_parens(corrector, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/not.rb#50 + def opposite_method?(child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/not.rb#54 + def requires_parens?(child); end +end + +# source://rubocop//lib/rubocop/cop/style/not.rb#20 +RuboCop::Cop::Style::Not::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/not.rb#23 +RuboCop::Cop::Style::Not::OPPOSITE_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/not.rb#21 +RuboCop::Cop::Style::Not::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for numbered parameters. +# +# It can either restrict the use of numbered parameters to +# single-lined blocks, or disallow completely numbered parameters. +# +# @example EnforcedStyle: allow_single_line (default) +# # bad +# collection.each do +# puts _1 +# end +# +# # good +# collection.each { puts _1 } +# @example EnforcedStyle: disallow +# # bad +# collection.each { puts _1 } +# +# # good +# collection.each { |item| puts item } +# +# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#27 +class RuboCop::Cop::Style::NumberedParameters < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#36 + def on_numblock(node); end +end + +# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#31 +RuboCop::Cop::Style::NumberedParameters::MSG_DISALLOW = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#32 +RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) + +# Detects use of an excessive amount of numbered parameters in a +# single block. Having too many numbered parameters can make code too +# cryptic and hard to read. +# +# The cop defaults to registering an offense if there is more than 1 numbered +# parameter but this maximum can be configured by setting `Max`. +# +# @example Max: 1 (default) +# # bad +# use_multiple_numbered_parameters { _1.call(_2, _3, _4) } +# +# # good +# array.each { use_array_element_as_numbered_parameter(_1) } +# hash.each { use_only_hash_value_as_numbered_parameter(_2) } +# +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#20 +class RuboCop::Cop::Style::NumberedParametersLimit < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#32 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#49 + def max_count; end + + # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#43 + def numbered_parameter_nodes(node); end +end + +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#24 +RuboCop::Cop::Style::NumberedParametersLimit::DEFAULT_MAX_VALUE = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#29 +RuboCop::Cop::Style::NumberedParametersLimit::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#30 +RuboCop::Cop::Style::NumberedParametersLimit::NUMBERED_PARAMETER_PATTERN = T.let(T.unsafe(nil), Regexp) + +# Checks for octal, hex, binary, and decimal literals using +# uppercase prefixes and corrects them to lowercase prefix +# or no prefix (in case of decimals). +# +# @example EnforcedOctalStyle: zero_with_o (default) +# # bad - missing octal prefix +# num = 01234 +# +# # bad - uppercase prefix +# num = 0O1234 +# num = 0X12AB +# num = 0B10101 +# +# # bad - redundant decimal prefix +# num = 0D1234 +# num = 0d1234 +# +# # good +# num = 0o1234 +# num = 0x12AB +# num = 0b10101 +# num = 1234 +# @example EnforcedOctalStyle: zero_only +# # bad +# num = 0o1234 +# num = 0O1234 +# +# # good +# num = 01234 +# +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#36 +class RuboCop::Cop::Style::NumericLiteralPrefix < ::RuboCop::Cop::Base + include ::RuboCop::Cop::IntegerNode + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#52 + def on_int(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#109 + def format_binary(source); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#113 + def format_decimal(source); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#105 + def format_hex(source); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#97 + def format_octal(source); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#101 + def format_octal_zero_only(source); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#82 + def hex_bin_dec_literal_type(literal); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#68 + def literal_type(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#64 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#74 + def octal_literal_type(literal); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#93 + def octal_zero_only?; end +end + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#49 +RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#43 +RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#50 +RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#44 +RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#48 +RuboCop::Cop::Style::NumericLiteralPrefix::HEX_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#42 +RuboCop::Cop::Style::NumericLiteralPrefix::HEX_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#47 +RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#41 +RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#46 +RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#40 +RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsafe(nil), Regexp) + +# Checks for big numeric literals without `_` between groups +# of digits in them. +# +# Additional allowed patterns can be added by adding regexps to +# the `AllowedPatterns` configuration. All regexps are treated +# as anchored even if the patterns do not contain anchors (so +# `\d{4}_\d{4}` will allow `1234_5678` but not `1234_5678_9012`). +# +# NOTE: Even if `AllowedPatterns` are given, autocorrection will +# only correct to the standard pattern of an `_` every 3 digits. +# +# @example +# +# # bad +# 1000000 +# 1_00_000 +# 1_0000 +# +# # good +# 1_000_000 +# 1000 +# @example Strict: false (default) +# +# # good +# 10_000_00 # typical representation of $10,000 in cents +# @example Strict: true +# +# # bad +# 10_000_00 # typical representation of $10,000 in cents +# @example AllowedNumbers: [3000] +# +# # good +# 3000 # You can specify allowed numbers. (e.g. port number) +# +# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#43 +class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base + include ::RuboCop::Cop::IntegerNode + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def min_digits=(value); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#60 + def on_float(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#56 + def on_int(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#118 + def allowed_numbers; end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#122 + def allowed_patterns; end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#66 + def check(node); end + + # @param int_part [String] + # + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#107 + def format_int_part(int_part); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#93 + def format_number(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#114 + def min_digits; end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#82 + def register_offense(node, &_block); end + + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#89 + def short_group_regex; end +end + +# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#49 +RuboCop::Cop::Style::NumericLiterals::DELIMITER_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#48 +RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String) + +# Checks for usage of comparison operators (`==`, +# `>`, `<`) to test numbers as zero, positive, or negative. +# These can be replaced by their respective predicate methods. +# This cop can also be configured to do the reverse. +# +# This cop can be customized allowed methods with `AllowedMethods`. +# By default, there are no methods to allowed. +# +# This cop disregards `#nonzero?` as its value is truthy or falsey, +# but not `true` and `false`, and thus not always interchangeable with +# `!= 0`. +# +# This cop allows comparisons to global variables, since they are often +# populated with objects which can be compared with integers, but are +# not themselves `Integer` polymorphic. +# +# @example EnforcedStyle: predicate (default) +# # bad +# foo == 0 +# 0 > foo +# bar.baz > 0 +# +# # good +# foo.zero? +# foo.negative? +# bar.baz.positive? +# @example EnforcedStyle: comparison +# # bad +# foo.zero? +# foo.negative? +# bar.baz.positive? +# +# # good +# foo == 0 +# 0 > foo +# bar.baz > 0 +# @example AllowedMethods: [] (default) with EnforcedStyle: predicate +# # bad +# foo == 0 +# 0 > foo +# bar.baz > 0 +# @example AllowedMethods: [==] with EnforcedStyle: predicate +# # good +# foo == 0 +# +# # bad +# 0 > foo +# bar.baz > 0 +# @example AllowedPatterns: [] (default) with EnforcedStyle: comparison +# # bad +# foo.zero? +# foo.negative? +# bar.baz.positive? +# @example AllowedPatterns: ['zero'] with EnforcedStyle: predicate +# # good +# # bad +# foo.zero? +# +# # bad +# foo.negative? +# bar.baz.positive? +# +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#78 +class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#166 + def comparison(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#171 + def inverted_comparison(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#90 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#161 + def predicate(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#107 + def allowed_method_name?(name); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#111 + def check(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#152 + def invert; end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#132 + def parenthesized_source(node); end + + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#124 + def replacement(numeric, operation); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#144 + def replacement_supported?(operator); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#140 + def require_parentheses?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#84 +RuboCop::Cop::Style::NumericPredicate::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#86 +RuboCop::Cop::Style::NumericPredicate::REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#88 +RuboCop::Cop::Style::NumericPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of consistent method names +# `Object#yield_self` or `Object#then`. +# +# @example EnforcedStyle: then (default) +# +# # bad +# obj.yield_self { |x| x.do_something } +# +# # good +# obj.then { |x| x.do_something } +# @example EnforcedStyle: yield_self +# +# # bad +# obj.then { |x| x.do_something } +# +# # good +# obj.yield_self { |x| x.do_something } +# +# source://rubocop//lib/rubocop/cop/style/object_then.rb#25 +class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/object_then.rb#34 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/object_then.rb#34 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/object_then.rb#40 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/object_then.rb#48 + def check_method_node(node); end + + # source://rubocop//lib/rubocop/cop/style/object_then.rb#68 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/object_then.rb#57 + def preferred_method(node); end +end + +# source://rubocop//lib/rubocop/cop/style/object_then.rb#32 +RuboCop::Cop::Style::ObjectThen::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of if/then/else/end constructs on a single line. +# AlwaysCorrectToMultiline config option can be set to true to auto-convert all offenses to +# multi-line constructs. When AlwaysCorrectToMultiline is false (default case) the +# autocorrect will first try converting them to ternary operators. +# +# @example +# # bad +# if foo then bar else baz end +# +# # bad +# unless foo then baz else bar end +# +# # good +# foo ? bar : baz +# +# # good +# bar if foo +# +# # good +# if foo then bar end +# +# # good +# if foo +# bar +# else +# baz +# end +# +# source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#33 +class RuboCop::Cop::Style::OneLineConditional < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::OnNormalIfUnless + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#42 + def on_normal_if_unless(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#77 + def always_multiline?; end + + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#59 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#81 + def cannot_replace_to_ternary?(node); end + + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#93 + def expr_replacement(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#114 + def keyword_with_changed_precedence?(node); end + + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#55 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#107 + def method_call_with_changed_precedence?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#99 + def requires_parentheses?(node); end + + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#67 + def ternary_correction(node); end + + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#85 + def ternary_replacement(node); end +end + +# source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#39 +RuboCop::Cop::Style::OneLineConditional::MSG = T.let(T.unsafe(nil), String) + +# Flags uses of OpenStruct, as it is now officially discouraged +# to be used for performance, version compatibility, and potential security issues. +# +# @example +# +# # bad +# point = OpenStruct.new(x: 0, y: 1) +# +# # good +# Point = Struct.new(:x, :y) +# point = Point.new(0, 1) +# +# # also good +# point = { x: 0, y: 1 } +# +# # bad +# test_double = OpenStruct.new(a: 'b') +# +# # good (assumes test using rspec-mocks) +# test_double = double +# allow(test_double).to receive(:a).and_return('b') +# +# source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#44 +class RuboCop::Cop::Style::OpenStructUse < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#52 + def on_const(node); end + + # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#48 + def uses_open_struct?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#61 + def custom_class_or_module_definition?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#45 +RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant dot before operator method call. +# The target operator methods are `|`, `^`, `&`, `<=>`, `==`, `===`, `=~`, `>`, `>=`, `<`, +# `<=`, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`. +# +# @example +# +# # bad +# foo.+ bar +# foo.& bar +# +# # good +# foo + bar +# foo & bar +# +# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#20 +class RuboCop::Cop::Style::OperatorMethodCall < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#27 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#53 + def anonymous_forwarding?(argument); end + + # Checks for an acceptable case of `foo.+(bar).baz`. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#47 + def method_call_with_parenthesized_arg?(argument); end + + # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#60 + def wrap_in_parentheses_if_chained(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#23 +RuboCop::Cop::Style::OperatorMethodCall::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#24 +RuboCop::Cop::Style::OperatorMethodCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for options hashes and discourages them if the +# current Ruby version supports keyword arguments. +# +# @example +# +# # bad +# def fry(options = {}) +# temperature = options.fetch(:temperature, 300) +# # ... +# end +# +# # good +# def fry(temperature: 300) +# # ... +# end +# +# source://rubocop//lib/rubocop/cop/style/option_hash.rb#22 +class RuboCop::Cop::Style::OptionHash < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#30 + def on_args(node); end + + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#26 + def option_hash(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#39 + def allowlist; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#48 + def super_used?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#43 + def suspicious_name?(arg_name); end +end + +# source://rubocop//lib/rubocop/cop/style/option_hash.rb#23 +RuboCop::Cop::Style::OptionHash::MSG = T.let(T.unsafe(nil), String) + +# Checks for optional arguments to methods +# that do not come at the end of the argument list. +# +# @example +# # bad +# def foo(a = 1, b, c) +# end +# +# # good +# def baz(a, b, c = 1) +# end +# +# def foobar(a = 1, b = 2, c = 3) +# end +# +# source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#24 +class RuboCop::Cop::Style::OptionalArguments < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#27 + def on_def(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#45 + def argument_positions(arguments); end + + # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#33 + def each_misplaced_optional_arg(arguments); end +end + +# source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#25 +RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where keyword arguments can be used instead of +# boolean arguments when defining methods. `respond_to_missing?` method is allowed by default. +# These are customizable with `AllowedMethods` option. +# +# @example +# # bad +# def some_method(bar = false) +# puts bar +# end +# +# # bad - common hack before keyword args were introduced +# def some_method(options = {}) +# bar = options.fetch(:bar, false) +# puts bar +# end +# +# # good +# def some_method(bar: false) +# puts bar +# end +# @example AllowedMethods: ['some_method'] +# # good +# def some_method(bar = false) +# puts bar +# end +# +# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#37 +class RuboCop::Cop::Style::OptionalBooleanParameter < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#56 + def format_message(argument); end +end + +# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#40 +RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String) + +# Checks for potential usage of the `||=` operator. +# +# @example +# # bad +# name = name ? name : 'Bozhidar' +# +# # bad +# name = if name +# name +# else +# 'Bozhidar' +# end +# +# # bad +# unless name +# name = 'Bozhidar' +# end +# +# # bad +# name = 'Bozhidar' unless name +# +# # good - set name to 'Bozhidar', only if it's nil or false +# name ||= 'Bozhidar' +# +# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#29 +class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#51 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#35 + def ternary_assignment?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#44 + def unless_assignment?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#70 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#80 + def take_variable_and_default_from_ternary(node); end + + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#85 + def take_variable_and_default_from_unless(node); end +end + +# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#32 +RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String) + +# Checks for simple usages of parallel assignment. +# This will only complain when the number of variables +# being assigned matched the number of assigning variables. +# +# @example +# # bad +# a, b, c = 1, 2, 3 +# a, b, c = [1, 2, 3] +# +# # good +# one, two = *foo +# a, b = foo() +# a, b = b, a +# +# a = 1 +# b = 2 +# c = 3 +# +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#25 +class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RescueNode + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#124 + def implicit_self_getter?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#31 + def on_masgn(node); end + + private + + # Converts (send nil :something) nodes to (send (:self) :something). + # This makes the sorting algorithm work for expressions such as + # `self.a, self.b = b, a`. + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#117 + def add_self_to_getters(right_elements); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#64 + def allowed_lhs?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#58 + def allowed_masign?(lhs_elements, rhs_elements); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#72 + def allowed_rhs?(node); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#84 + def assignment_corrector(node, rhs, order); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#49 + def autocorrect(corrector, node, lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#100 + def find_valid_order(left_elements, right_elements); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#183 + def modifier_statement?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#80 + def return_of_method_call?(node); end +end + +# Helper class necessitated by silly design of TSort prior to Ruby 2.1 +# Newer versions have a better API, but that doesn't help us +# +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#128 +class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter + include ::TSort + extend ::RuboCop::AST::NodePattern::Macros + + # @return [AssignmentSorter] a new instance of AssignmentSorter + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#141 + def initialize(assignments); end + + # `lhs` is an assignment method call like `obj.attr=` or `ary[idx]=`. + # Does `rhs` access the same value which is assigned by `lhs`? + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#170 + def accesses?(rhs, lhs); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#163 + def dependency?(lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#139 + def matching_calls(param0, param1, param2); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#149 + def tsort_each_child(assignment); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#145 + def tsort_each_node(&block); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#136 + def uses_var?(param0, param1); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#133 + def var_name(param0 = T.unsafe(nil)); end +end + +# An internal class for correcting parallel assignment +# +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#190 +class RuboCop::Cop::Style::ParallelAssignment::GenericCorrector + include ::RuboCop::Cop::Alignment + + # @return [GenericCorrector] a new instance of GenericCorrector + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#195 + def initialize(node, rhs, modifier, config, new_elements); end + + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + def config; end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#203 + def correction; end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#207 + def correction_range; end + + # Returns the value of attribute node. + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + def node; end + + # Returns the value of attribute rescue_result. + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + def rescue_result; end + + # Returns the value of attribute rhs. + # + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + def rhs; end + + protected + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#213 + def assignment; end + + private + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#233 + def cop_config; end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#229 + def extract_sources(node); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#219 + def source(node); end +end + +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#29 +RuboCop::Cop::Style::ParallelAssignment::MSG = T.let(T.unsafe(nil), String) + +# An internal class for correcting parallel assignment +# guarded by if, unless, while, or until +# +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#275 +class RuboCop::Cop::Style::ParallelAssignment::ModifierCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#276 + def correction; end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#285 + def correction_range; end + + private + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#291 + def modifier_range(node); end +end + +# An internal class for correcting parallel assignment +# protected by rescue +# +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#240 +class RuboCop::Cop::Style::ParallelAssignment::RescueCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#241 + def correction; end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#252 + def correction_range; end + + private + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#263 + def begin_correction(rescue_result); end + + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#258 + def def_correction(rescue_result); end +end + +# Checks for the presence of superfluous parentheses around the +# condition of if/unless/while/until. +# +# `AllowSafeAssignment` option for safe assignment. +# By safe assignment we mean putting parentheses around +# an assignment to indicate "I know I'm using an assignment +# as a condition. It's not a mistake." +# +# @example +# # bad +# x += 1 while (x < 10) +# foo unless (bar || baz) +# +# if (x > 10) +# elsif (x < 3) +# end +# +# # good +# x += 1 while x < 10 +# foo unless bar || baz +# +# if x > 10 +# elsif x < 3 +# end +# @example AllowSafeAssignment: true (default) +# # good +# foo unless (bar = baz) +# @example AllowSafeAssignment: false +# # bad +# foo unless (bar = baz) +# @example AllowInMultilineConditions: false (default) +# # bad +# if (x > 10 && +# y > 10) +# end +# +# # good +# if x > 10 && +# y > 10 +# end +# @example AllowInMultilineConditions: true +# # good +# if (x > 10 && +# y > 10) +# end +# +# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#56 +class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::SafeAssignment + include ::RuboCop::Cop::Parentheses + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#76 + def control_op_condition(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#62 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 + def on_while(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#122 + def allow_multiline_conditions?; end + + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#110 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#103 + def modifier_op?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#116 + def parens_allowed?(node); end + + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#80 + def process_control_op(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#95 + def semicolon_separated_expressions?(first_exp, rest_exps); end +end + +# Enforces the consistent usage of `%`-literal delimiters. +# +# Specify the 'default' key to set all preferred delimiters at once. You +# can continue to specify individual preferred delimiters to override the +# default. +# +# @example +# # Style/PercentLiteralDelimiters: +# # PreferredDelimiters: +# # default: '[]' +# # '%i': '()' +# +# # good +# %w[alpha beta] + %i(gamma delta) +# +# # bad +# %W(alpha #{beta}) +# +# # bad +# %I(alpha beta) +# +# source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#26 +class RuboCop::Cop::Style::PercentLiteralDelimiters < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#30 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 + def on_dstr(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#34 + def on_regexp(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 + def on_str(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#43 + def on_sym(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#47 + def on_xstr(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#93 + def contains_delimiter?(node, delimiters); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#82 + def contains_preferred_delimiter?(node, type); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#86 + def include_same_character_as_used_for_delimiter?(node, type); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#107 + def matchpairs(begin_delimiter); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#67 + def message(type); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#53 + def on_percent_literal(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#74 + def preferred_delimiters_for(type); end + + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#99 + def string_source(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#78 + def uses_preferred_delimiter?(node, type); end +end + +# Checks for usage of the %Q() syntax when %q() would do. +# +# @example EnforcedStyle: lower_case_q (default) +# # The `lower_case_q` style prefers `%q` unless +# # interpolation is needed. +# # bad +# %Q[Mix the foo into the baz.] +# %Q(They all said: 'Hooray!') +# +# # good +# %q[Mix the foo into the baz] +# %q(They all said: 'Hooray!') +# @example EnforcedStyle: upper_case_q +# # The `upper_case_q` style requires the sole use of `%Q`. +# # bad +# %q/Mix the foo into the baz./ +# %q{They all said: 'Hooray!'} +# +# # good +# %Q/Mix the foo into the baz./ +# %Q{They all said: 'Hooray!'} +# +# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#28 +class RuboCop::Cop::Style::PercentQLiterals < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#36 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#55 + def correct_literal_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#64 + def corrected(src); end + + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#60 + def message(_range); end + + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#42 + def on_percent_literal(node); end +end + +# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#33 +RuboCop::Cop::Style::PercentQLiterals::LOWER_CASE_Q_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#34 +RuboCop::Cop::Style::PercentQLiterals::UPPER_CASE_Q_MSG = T.let(T.unsafe(nil), String) + +# Looks for uses of Perl-style regexp match +# backreferences and their English versions like +# $1, $2, $&, &+, $MATCH, $PREMATCH, etc. +# +# @example +# # bad +# puts $1 +# +# # good +# puts Regexp.last_match(1) +# +# source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#16 +class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#21 + def on_back_ref(node); end + + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#25 + def on_gvar(node); end + + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#29 + def on_nth_ref(node); end + + private + + # @param node [RuboCop::AST::Node] + # @private + # @return [String] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#99 + def constant_prefix(node); end + + # @param node [RuboCop::AST::Node] + # @private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#38 + def derived_from_braceless_interpolation?(node); end + + # @param node [RuboCop::AST::Node] + # @param preferred_expression [String] + # @private + # @return [String] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#46 + def format_message(node:, preferred_expression:); end + + # @param node [RuboCop::AST::Node] + # @private + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#109 + def on_back_ref_or_gvar_or_nth_ref(node); end + + # @param node [RuboCop::AST::Node] + # @private + # @return [String] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#58 + def original_expression_of(node); end + + # @param node [RuboCop::AST::Node] + # @private + # @return [String, nil] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#70 + def preferred_expression_to(node); end + + # @param node [RuboCop::AST::Node] + # @private + # @return [String, nil] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#89 + def preferred_expression_to_node_with_constant_prefix(node); end +end + +# source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#19 +RuboCop::Cop::Style::PerlBackrefs::MESSAGE_FORMAT = T.let(T.unsafe(nil), String) + +# Checks for uses of methods `Hash#has_key?` and +# `Hash#has_value?`, and suggests using `Hash#key?` and `Hash#value?` instead. +# +# It is configurable to enforce the verbose method names, by using the +# `EnforcedStyle: verbose` configuration. +# +# @example EnforcedStyle: short (default) +# # bad +# Hash#has_key? +# Hash#has_value? +# +# # good +# Hash#key? +# Hash#value? +# @example EnforcedStyle: verbose +# # bad +# Hash#key? +# Hash#value? +# +# # good +# Hash#has_key? +# Hash#has_value? +# +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#33 +class RuboCop::Cop::Style::PreferredHashMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#56 + def message(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#68 + def offending_selector?(method_name); end + + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#60 + def proper_method_name(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#37 +RuboCop::Cop::Style::PreferredHashMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#39 +RuboCop::Cop::Style::PreferredHashMethods::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#41 +RuboCop::Cop::Style::PreferredHashMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of Proc.new where Kernel#proc +# would be more appropriate. +# +# @example +# # bad +# p = Proc.new { |n| puts n } +# +# # good +# p = proc { |n| puts n } +# +# source://rubocop//lib/rubocop/cop/style/proc.rb#16 +class RuboCop::Cop::Style::Proc < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/proc.rb#25 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/proc.rb#25 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/proc.rb#22 + def proc_new?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/style/proc.rb#19 +RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String) + +# Checks if the quotes used for quoted symbols match the configured defaults. +# By default uses the same configuration as `Style/StringLiterals`; if that +# cop is not enabled, the default `EnforcedStyle` is `single_quotes`. +# +# String interpolation is always kept in double quotes. +# +# Note: `Lint/SymbolConversion` can be used in parallel to ensure that symbols +# are not quoted that don't need to be. This cop is for configuring the quoting +# style to use for symbols that require quotes. +# +# @example EnforcedStyle: same_as_string_literals (default) / single_quotes +# # bad +# :"abc-def" +# +# # good +# :'abc-def' +# :"#{str}" +# :"a\'b" +# @example EnforcedStyle: double_quotes +# # bad +# :'abc-def' +# +# # good +# :"abc-def" +# :"#{str}" +# :"a\'b" +# +# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#33 +class RuboCop::Cop::Style::QuotedSymbols < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::SymbolHelp + include ::RuboCop::Cop::StringLiteralsHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#44 + def on_sym(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#108 + def alternative_style; end + + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#71 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#88 + def correct_quotes(str); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#83 + def hash_colon_key?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#61 + def invalid_double_quotes?(source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#112 + def quoted?(sym_node); end + + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#99 + def style; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#116 + def wrong_quotes?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#41 +RuboCop::Cop::Style::QuotedSymbols::MSG_DOUBLE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#39 +RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String) + +# Checks the args passed to `fail` and `raise`. For exploded +# style (default), it recommends passing the exception class and message +# to `raise`, rather than construct an instance of the error. It will +# still allow passing just a message, or the construction of an error +# with more than one argument. +# +# The exploded style works identically, but with the addition that it +# will also suggest constructing error objects when the exception is +# passed multiple arguments. +# +# The exploded style has an `AllowedCompactTypes` configuration +# option that takes an Array of exception name Strings. +# +# @example EnforcedStyle: exploded (default) +# # bad +# raise StandardError.new('message') +# +# # good +# raise StandardError, 'message' +# fail 'message' +# raise MyCustomError +# raise MyCustomError.new(arg1, arg2, arg3) +# raise MyKwArgError.new(key1: val1, key2: val2) +# +# # With `AllowedCompactTypes` set to ['MyWrappedError'] +# raise MyWrappedError.new(obj) +# raise MyWrappedError.new(obj), 'message' +# @example EnforcedStyle: compact +# # bad +# raise StandardError, 'message' +# raise RuntimeError, arg1, arg2, arg3 +# +# # good +# raise StandardError.new('message') +# raise MyCustomError +# raise MyCustomError.new(arg1, arg2, arg3) +# fail 'message' +# +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#44 +class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#53 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#129 + def acceptable_exploded_args?(args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#143 + def allowed_non_exploded_type?(arg); end + + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#92 + def check_compact(node); end + + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#108 + def check_exploded(node); end + + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#66 + def correction_compact_to_exploded(node); end + + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#78 + def correction_exploded_to_compact(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#149 + def requires_parens?(parent); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#125 + def use_new_method?(first_arg); end +end + +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#49 +RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#48 +RuboCop::Cop::Style::RaiseArgs::EXPLODED_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#51 +RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of randomly generated numbers, +# added/subtracted with integer literals, as well as those with +# Integer#succ and Integer#pred methods. Prefer using ranges instead, +# as it clearly states the intentions. +# +# @example +# # bad +# rand(6) + 1 +# 1 + rand(6) +# rand(6) - 1 +# 1 - rand(6) +# rand(6).succ +# rand(6).pred +# Random.rand(6) + 1 +# Kernel.rand(6) + 1 +# rand(0..5) + 1 +# +# # good +# rand(1..6) +# rand(1...7) +# +# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#26 +class RuboCop::Cop::Style::RandomWithOffset < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#33 + def integer_op_rand?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#63 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#54 + def rand_modified?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#43 + def rand_op_integer?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#73 + def random_call(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#147 + def to_int(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#78 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#135 + def boundaries_from_random_node(random_node); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#88 + def corrected_integer_op_rand(node); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#118 + def corrected_rand_modified(node); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#103 + def corrected_rand_op_integer(node); end + + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#131 + def prefix_from_prefix_node(node); end +end + +# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#29 +RuboCop::Cop::Style::RandomWithOffset::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#30 +RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for a redundant argument passed to certain methods. +# +# NOTE: This cop is limited to methods with single parameter. +# +# Method names and their redundant arguments can be configured like this: +# +# [source,yaml] +# ---- +# Methods: +# join: '' +# sum: 0 +# split: ' ' +# chomp: "\n" +# chomp!: "\n" +# foo: 2 +# ---- +# +# @example +# # bad +# array.join('') +# [1, 2, 3].join("") +# array.sum(0) +# exit(true) +# exit!(false) +# string.split(" ") +# "first\nsecond".split(" ") +# string.chomp("\n") +# string.chomp!("\n") +# A.foo(2) +# +# # good +# array.join +# [1, 2, 3].join +# array.sum +# exit +# exit! +# string.split +# "first second".split +# string.chomp +# string.chomp! +# A.foo +# +# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#57 +class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#93 + def argument_range(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#86 + def redundant_arg_for_method(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#79 + def redundant_argument?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#61 +RuboCop::Cop::Style::RedundantArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#62 +RuboCop::Cop::Style::RedundantArgument::NO_RECEIVER_METHODS = T.let(T.unsafe(nil), Array) + +# Checks for the instantiation of array using redundant `Array` constructor. +# Autocorrect replaces to array literal which is the simplest and fastest. +# +# @example +# +# # bad +# Array.new([]) +# Array[] +# Array([]) +# Array.new(['foo', 'foo', 'foo']) +# Array['foo', 'foo', 'foo'] +# Array(['foo', 'foo', 'foo']) +# +# # good +# [] +# ['foo', 'foo', 'foo'] +# Array.new(3, 'foo') +# Array.new(3) { 'foo' } +# +# source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#25 +class RuboCop::Cop::Style::RedundantArrayConstructor < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#47 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#33 + def redundant_array_constructor(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#69 + def register_offense(range, node, replacement); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#28 +RuboCop::Cop::Style::RedundantArrayConstructor::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#30 +RuboCop::Cop::Style::RedundantArrayConstructor::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant assignment before returning. +# +# @example +# # bad +# def test +# x = foo +# x +# end +# +# # bad +# def test +# if x +# z = foo +# z +# elsif y +# z = bar +# z +# end +# end +# +# # good +# def test +# foo +# end +# +# # good +# def test +# if x +# foo +# elsif y +# bar +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#40 +class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#46 + def redundant_assignment?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#91 + def check_begin_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#57 + def check_branch(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#71 + def check_case_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#87 + def check_ensure_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#76 + def check_if_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#83 + def check_rescue_node(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#43 +RuboCop::Cop::Style::RedundantAssignment::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant `begin` blocks. +# +# Currently it checks for code like this: +# +# @example +# +# # bad +# def redundant +# begin +# ala +# bala +# rescue StandardError => e +# something +# end +# end +# +# # good +# def preferred +# ala +# bala +# rescue StandardError => e +# something +# end +# +# # bad +# begin +# do_something +# end +# +# # good +# do_something +# +# # bad +# # When using Ruby 2.5 or later. +# do_something do +# begin +# something +# rescue => ex +# anything +# end +# end +# +# # good +# # In Ruby 2.5 or later, you can omit `begin` in `do-end` block. +# do_something do +# something +# rescue => ex +# anything +# end +# +# # good +# # Stabby lambdas don't support implicit `begin` in `do-end` blocks. +# -> do +# begin +# foo +# rescue Bar +# baz +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#65 +class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#72 + def offensive_kwbegins(param0); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#84 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#76 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#76 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#95 + def on_kwbegin(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#84 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#103 + def allowable_kwbegin?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#177 + def begin_block_has_multiline_statements?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#169 + def condition_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#181 + def contain_rescue_or_ensure?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#162 + def correct_modifier_form_after_multiline_begin_block(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#173 + def empty_begin?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#110 + def register_offense(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#139 + def remove_begin(corrector, offense_range, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#127 + def replace_begin_with_statement(corrector, offense_range, node); end + + # Restore comments that occur between "begin" and "first_child". + # These comments will be moved to above the assignment line. + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#149 + def restore_removed_comments(corrector, offense_range, node, first_child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#156 + def use_modifier_form_after_multiline_begin_block?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#194 + def valid_begin_assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#187 + def valid_context_using_only_begin?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#69 +RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String) + +# Checks for usage of the %W() syntax when %w() would do. +# +# @example +# # bad +# %W(cat dog pig) +# %W[door wall floor] +# +# # good +# %w/swim run bike/ +# %w[shirt pants shoes] +# %W(apple #{fruit} grape) +# +# source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#17 +class RuboCop::Cop::Style::RedundantCapitalW < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#23 + def on_array(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#29 + def on_percent_literal(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#38 + def requires_interpolation?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#21 +RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) + +# Checks for unnecessary conditional expressions. +# +# @example +# # bad +# a = b ? b : c +# +# # good +# a = b || c +# @example +# # bad +# if b +# b +# else +# c +# end +# +# # good +# b || c +# +# # good +# if b +# b +# elsif cond +# c +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#33 +class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#43 + def on_if(node); end + + private + + # If the argument is using an operator, it is an invalid syntax. + # e.g. `foo || *bar`, `foo || **bar`, and `foo || &bar`. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#167 + def argument_with_operator?(argument); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#142 + def asgn_type?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#132 + def branches_have_assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#146 + def branches_have_method?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#240 + def correct_ternary(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#187 + def else_source(else_branch, arithmetic_operation); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#213 + def else_source_if_has_assignment(else_branch); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#203 + def else_source_if_has_method(else_branch); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#175 + def if_source(if_branch, arithmetic_operation); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#223 + def make_ternary_form(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#64 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#79 + def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#72 + def range_of_offense(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#88 + def redundant_condition?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#255 + def require_braces?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#248 + def require_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#161 + def same_method?(if_branch, else_branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#155 + def single_argument_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#104 + def synonymous_condition_and_branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#259 + def use_arithmetic_operation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#100 + def use_hash_key_access?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#96 + def use_hash_key_assignment?(else_branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#92 + def use_if_branch?(else_branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#263 + def without_argument_parentheses_method?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#39 +RuboCop::Cop::Style::RedundantCondition::ARGUMENT_WITH_OPERATOR_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#37 +RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#38 +RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(nil), String) + +# Checks for redundant returning of true/false in conditionals. +# +# @example +# # bad +# x == y ? true : false +# +# # bad +# if x == y +# true +# else +# false +# end +# +# # good +# x == y +# +# # bad +# x == y ? false : true +# +# # good +# x != y +# +# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#27 +class RuboCop::Cop::Style::RedundantConditional < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#36 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#56 + def redundant_condition?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#61 + def redundant_condition_inverted?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#78 + def indented_else_node(expression, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#48 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#65 + def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#71 + def replacement_condition(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#32 +RuboCop::Cop::Style::RedundantConditional::COMPARISON_OPERATOR_MATCHER = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#34 +RuboCop::Cop::Style::RedundantConditional::MSG = T.let(T.unsafe(nil), String) + +# Avoid redundant `::` prefix on constant. +# +# How Ruby searches constant is a bit complicated, and it can often be difficult to +# understand from the code whether the `::` is intended or not. Where `Module.nesting` +# is empty, there is no need to prepend `::`, so it would be nice to consistently +# avoid such meaningless `::` prefix to avoid confusion. +# +# NOTE: This cop is disabled if `Lint/ConstantResolution` cop is enabled to prevent +# conflicting rules. Because it respects user configurations that want to enable +# `Lint/ConstantResolution` cop which is disabled by default. +# +# @example +# # bad +# ::Const +# +# # good +# Const +# +# # bad +# class << self +# ::Const +# end +# +# # good +# class << self +# Const +# end +# +# # good +# class A +# ::Const +# end +# +# # good +# module A +# ::Const +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#43 +class RuboCop::Cop::Style::RedundantConstantBase < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#48 + def on_cbase(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#67 + def bad?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#63 + def lint_constant_resolution_config; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#59 + def lint_constant_resolution_cop_enabled?; end + + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#71 + def module_nesting_ancestors_of(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#77 + def used_in_super_class_part?(node, class_node:); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#46 +RuboCop::Cop::Style::RedundantConstantBase::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses a redundant current directory in path. +# +# @example +# +# # bad +# require_relative './path/to/feature' +# +# # good +# require_relative 'path/to/feature' +# +# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#16 +class RuboCop::Cop::Style::RedundantCurrentDirectoryInPath < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#23 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21 +RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::CURRENT_DIRECTORY_PATH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#20 +RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant uses of double splat hash braces. +# +# @example +# +# # bad +# do_something(**{foo: bar, baz: qux}) +# +# # good +# do_something(foo: bar, baz: qux) +# +# # bad +# do_something(**{foo: bar, baz: qux}.merge(options)) +# +# # good +# do_something(foo: bar, baz: qux, **options) +# +# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#22 +class RuboCop::Cop::Style::RedundantDoubleSplatHashBraces < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#29 + def on_hash(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#44 + def allowed_double_splat_receiver?(kwsplat); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#52 + def autocorrect(corrector, node, kwsplat); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#86 + def autocorrect_merge_methods(corrector, merge_methods, kwsplat); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#82 + def closing_brace(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#108 + def convert_to_new_arguments(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#104 + def extract_send_methods(kwsplat); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#120 + def merge_method?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#78 + def opening_brace(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#97 + def range_of_merge_methods(merge_methods); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#63 + def root_receiver(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#72 + def select_merge_method_nodes(kwsplat); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#26 +RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MERGE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#25 +RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant `each`. +# +# @example +# +# # bad +# array.each.each { |v| do_something(v) } +# +# # good +# array.each { |v| do_something(v) } +# +# # bad +# array.each.each_with_index { |v, i| do_something(v, i) } +# +# # good +# array.each.with_index { |v, i| do_something(v, i) } +# array.each_with_index { |v, i| do_something(v, i) } +# +# # bad +# array.each.each_with_object { |v, o| do_something(v, o) } +# +# # good +# array.each.with_object { |v, o| do_something(v, o) } +# array.each_with_object { |v, o| do_something(v, o) } +# +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#34 +class RuboCop::Cop::Style::RedundantEach < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#93 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#85 + def range(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#63 + def redundant_each_method(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#104 + def remove_redundant_each(corrector, range, redundant_node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#37 +RuboCop::Cop::Style::RedundantEach::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#38 +RuboCop::Cop::Style::RedundantEach::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#39 +RuboCop::Cop::Style::RedundantEach::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#41 +RuboCop::Cop::Style::RedundantEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for RuntimeError as the argument of raise/fail. +# +# @example +# # bad +# raise RuntimeError, 'message' +# raise RuntimeError.new('message') +# +# # good +# raise 'message' +# +# # bad - message is not a string +# raise RuntimeError, Object.new +# raise RuntimeError.new(Object.new) +# +# # good +# raise Object.new.to_s +# +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#23 +class RuboCop::Cop::Style::RedundantException < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#79 + def compact?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#74 + def exploded?(param0 = T.unsafe(nil)); end + + # Switch `raise RuntimeError, 'message'` to `raise 'message'`, and + # `raise RuntimeError.new('message')` to `raise 'message'`. + # + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#33 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#57 + def fix_compact(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#39 + def fix_exploded(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#65 + def replaced_compact(message); end + + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#47 + def replaced_exploded(node, command, message); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#53 + def string_message?(message); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#26 +RuboCop::Cop::Style::RedundantException::MSG_1 = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#27 +RuboCop::Cop::Style::RedundantException::MSG_2 = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#29 +RuboCop::Cop::Style::RedundantException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `fetch(key) { value }` can be replaced by `fetch(key, value)`. +# +# In such cases `fetch(key, value)` method is faster than `fetch(key) { value }`. +# +# NOTE: The block string `'value'` in `hash.fetch(:key) { 'value' }` is detected +# but not when disabled. +# +# @example SafeForConstants: false (default) +# # bad +# hash.fetch(:key) { 5 } +# hash.fetch(:key) { true } +# hash.fetch(:key) { nil } +# array.fetch(5) { :value } +# ENV.fetch(:key) { 'value' } +# +# # good +# hash.fetch(:key, 5) +# hash.fetch(:key, true) +# hash.fetch(:key, nil) +# array.fetch(5, :value) +# ENV.fetch(:key, 'value') +# @example SafeForConstants: true +# # bad +# ENV.fetch(:key) { VALUE } +# +# # good +# ENV.fetch(:key, VALUE) +# +# source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#40 +class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#55 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#89 + def rails_cache?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#48 + def redundant_fetch_block_candidate?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#74 + def basic_literal?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#104 + def build_bad_method(send, body); end + + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#97 + def build_good_method(send, body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#111 + def check_for_constant?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#115 + def check_for_string?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#78 + def const_type?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#93 + def fetch_range(send, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#82 + def should_not_check?(send, body); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#45 +RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for the presence of superfluous `.rb` extension in +# the filename provided to `require` and `require_relative`. +# +# Note: If the extension is omitted, Ruby tries adding '.rb', '.so', +# and so on to the name until found. If the file named cannot be found, +# a `LoadError` will be raised. +# There is an edge case where `foo.so` file is loaded instead of a `LoadError` +# if `foo.so` file exists when `require 'foo.rb'` will be changed to `require 'foo'`, +# but that seems harmless. +# +# @example +# # bad +# require 'foo.rb' +# require_relative '../foo.rb' +# +# # good +# require 'foo' +# require 'foo.so' +# require_relative '../foo' +# require_relative '../foo.so' +# +# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#27 +class RuboCop::Cop::Style::RedundantFileExtensionInRequire < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#39 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#35 + def require_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#53 + def extension_range(name_node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#31 +RuboCop::Cop::Style::RedundantFileExtensionInRequire::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#32 +RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `any?`, `empty?` or `none?` predicate methods +# chained to `select`/`filter`/`find_all` and change them to use predicate method instead. +# +# @example +# # bad +# arr.select { |x| x > 1 }.any? +# +# # good +# arr.any? { |x| x > 1 } +# +# # bad +# arr.select { |x| x > 1 }.empty? +# arr.select { |x| x > 1 }.none? +# +# # good +# arr.none? { |x| x > 1 } +# +# # good +# relation.select(:name).any? +# arr.select { |x| x > 1 }.any?(&:odd?) +# @example AllCops:ActiveSupportExtensionsEnabled: false (default) +# # good +# arr.select { |x| x > 1 }.many? +# +# # good +# arr.select { |x| x > 1 }.present? +# @example AllCops:ActiveSupportExtensionsEnabled: true +# # bad +# arr.select { |x| x > 1 }.many? +# +# # good +# arr.many? { |x| x > 1 } +# +# # bad +# arr.select { |x| x > 1 }.present? +# +# # good +# arr.any? { |x| x > 1 } +# +# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#53 +class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#62 + def select_predicate?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#107 + def offense_range(select_node, predicate_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#111 + def predicate_range(predicate_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#93 + def register_offense(select_node, predicate_node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#56 +RuboCop::Cop::Style::RedundantFilterChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#58 +RuboCop::Cop::Style::RedundantFilterChain::RAILS_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#71 +RuboCop::Cop::Style::RedundantFilterChain::REPLACEMENT_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#59 +RuboCop::Cop::Style::RedundantFilterChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check for uses of `Object#freeze` on immutable objects. +# +# NOTE: Regexp and Range literals are frozen objects since Ruby 3.0. +# +# NOTE: From Ruby 3.0, this cop allows explicit freezing of interpolated +# string literals when `# frozen-string-literal: true` is used. +# +# @example +# # bad +# CONST = 1.freeze +# +# # good +# CONST = 1 +# +# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#19 +class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#26 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#57 + def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#39 + def immutable_literal?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#48 + def strip_parenthesis(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#23 +RuboCop::Cop::Style::RedundantFreeze::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#24 +RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant heredoc delimiter quotes. +# +# @example +# +# # bad +# do_something(<<~'EOS') +# no string interpolation style text +# EOS +# +# # good +# do_something(<<~EOS) +# no string interpolation style text +# EOS +# +# do_something(<<~'EOS') +# #{string_interpolation_style_text_not_evaluated} +# EOS +# +# do_something(<<~'EOS') +# Preserve \ +# newlines +# EOS +# +# source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#29 +class RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Heredoc + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#36 + def on_heredoc(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#48 + def need_heredoc_delimiter_quotes?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#33 +RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#34 +RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes::STRING_INTERPOLATION_OR_ESCAPED_CHARACTER_PATTERN = T.let(T.unsafe(nil), Regexp) + +# Checks for `initialize` methods that are redundant. +# +# An initializer is redundant if it does not do anything, or if it only +# calls `super` with the same arguments given to it. If the initializer takes +# an argument that accepts multiple values (`restarg`, `kwrestarg`, etc.) it +# will not register an offense, because it allows the initializer to take a different +# number of arguments as its superclass potentially does. +# +# NOTE: If an initializer argument has a default value, RuboCop assumes it +# to *not* be redundant. +# +# NOTE: Empty initializers are registered as offenses, but it is possible +# to purposely create an empty `initialize` method to override a superclass's +# initializer. +# +# @example +# # bad +# def initialize +# end +# +# # bad +# def initialize +# super +# end +# +# # bad +# def initialize(a, b) +# super +# end +# +# # bad +# def initialize(a, b) +# super(a, b) +# end +# +# # good +# def initialize +# do_something +# end +# +# # good +# def initialize +# do_something +# super +# end +# +# # good (different number of parameters) +# def initialize(a, b) +# super(a) +# end +# +# # good (default value) +# def initialize(a, b = 5) +# super +# end +# +# # good (default value) +# def initialize(a, b: 5) +# super +# end +# +# # good (changes the parameter requirements) +# def initialize(*) +# end +# +# # good (changes the parameter requirements) +# def initialize(**) +# end +# +# # good (changes the parameter requirements) +# def initialize(...) +# end +# @example AllowComments: true (default) +# +# # good +# def initialize +# # Overriding to negate superclass `initialize` method. +# end +# @example AllowComments: false +# +# # bad +# def initialize +# # Overriding to negate superclass `initialize` method. +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#97 +class RuboCop::Cop::Style::RedundantInitialize < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#106 + def initialize_forwards?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#110 + def on_def(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#134 + def acceptable?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#142 + def allow_comments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#138 + def forwards?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#128 + def register_offense(node, message); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#148 + def same_args?(super_node, args); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#102 +RuboCop::Cop::Style::RedundantInitialize::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#103 +RuboCop::Cop::Style::RedundantInitialize::MSG_EMPTY = T.let(T.unsafe(nil), String) + +# Checks for strings that are just an interpolated expression. +# +# @example +# +# # bad +# "#{@var}" +# +# # good +# @var.to_s +# +# # good if @var is already a String +# @var +# +# source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#39 +class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::PercentLiteral + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#49 + def on_dstr(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#122 + def autocorrect_other(corrector, embedded_node, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#105 + def autocorrect_single_variable_interpolation(corrector, embedded_node, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#99 + def autocorrect_variable_interpolation(corrector, embedded_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#95 + def embedded_in_percent_array?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#91 + def implicit_concatenation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#83 + def interpolation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#132 + def require_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#67 + def single_interpolation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#74 + def single_variable_interpolation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#87 + def variable_interpolation?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#45 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#43 +RuboCop::Cop::Style::RedundantInterpolation::MSG = T.let(T.unsafe(nil), String) + +# Check for redundant line continuation. +# +# This cop marks a line continuation as redundant if removing the backslash +# does not result in a syntax error. +# However, a backslash at the end of a comment or +# for string concatenation is not redundant and is not considered an offense. +# +# @example +# # bad +# foo. \ +# bar +# foo \ +# &.bar \ +# .baz +# +# # good +# foo. +# bar +# foo +# &.bar +# .baz +# +# # bad +# [foo, \ +# bar] +# {foo: \ +# bar} +# +# # good +# [foo, +# bar] +# {foo: +# bar} +# +# # bad +# foo(bar, \ +# baz) +# +# # good +# foo(bar, +# baz) +# +# # also good - backslash in string concatenation is not redundant +# foo('bar' \ +# 'baz') +# +# # also good - backslash at the end of a comment is not redundant +# foo(bar, # \ +# baz) +# +# # also good - backslash at the line following the newline begins with a + or -, +# # it is not redundant +# 1 \ +# + 2 \ +# - 3 +# +# # also good - backslash with newline between the method name and its arguments, +# # it is not redundant. +# some_method \ +# (argument) +# +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#67 +class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MatchRange + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#78 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#166 + def argument_is_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#134 + def argument_newline?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#100 + def ends_with_backslash_without_comment?(source_line); end + + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146 + def find_node_for_line(line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#122 + def inside_string_literal?(range, token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#108 + def inside_string_literal_or_method_with_argument?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#173 + def method_call_with_arguments?(node); end + + # A method call without parentheses such as the following cannot remove `\`: + # + # do_something \ + # argument + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#130 + def method_with_argument?(current_token, next_token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#114 + def redundant_line_continuation?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#93 + def require_line_continuation?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#152 + def same_line?(node, line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#177 + def start_with_arithmetic_operator?(source_line); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#104 + def string_concatenation?(source_line); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72 +RuboCop::Cop::Style::RedundantLineContinuation::ALLOWED_STRING_TOKENS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73 +RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#71 +RuboCop::Cop::Style::RedundantLineContinuation::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant parentheses. +# +# @example +# +# # bad +# (x) if ((y.z).nil?) +# +# # good +# x if y.z.nil? +# +# source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#16 +class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Parentheses + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#33 + def allowed_pin_operator?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#36 + def arg_in_call_with_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#238 + def first_send_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#243 + def first_super_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#248 + def first_yield_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#156 + def interpolation?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#27 + def method_node_and_args(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#38 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#24 + def range_end?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#30 + def rescue?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#21 + def square_brackets?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#68 + def allowed_ancestor?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#61 + def allowed_expression?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#73 + def allowed_method_call?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#78 + def allowed_multiple_expression?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#87 + def allowed_ternary?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#252 + def call_chain_starts_with_int?(begin_node, send_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#127 + def check(begin_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#158 + def check_send(begin_node, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#167 + def check_unary(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#191 + def disallowed_literal?(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#107 + def empty_parentheses?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138 + def find_offense_message(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#112 + def first_arg_begins_with_hash_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#233 + def first_argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#54 + def ignore_syntax?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#187 + def keyword_ancestor?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#206 + def keyword_with_redundant_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#100 + def like_method_argument_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#219 + def method_call_with_redundant_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#119 + def method_chain_begins_with_hash_literal?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177 + def offense(node, msg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#229 + def only_begin_arg?(args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#46 + def parens_allowed?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#195 + def raised_to_power_negative_numeric?(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#183 + def suspect_unary?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#93 + def ternary_parentheses_required?; end +end + +# Checks for usage of the %q/%Q syntax when '' or "" would do. +# +# @example +# +# # bad +# name = %q(Bruce Wayne) +# time = %q(8 o'clock) +# question = %q("What did you say?") +# +# # good +# name = 'Bruce Wayne' +# time = "8 o'clock" +# question = '"What did you say?"' +# +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#20 +class RuboCop::Cop::Style::RedundantPercentQ < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#34 + def on_dstr(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#40 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#99 + def acceptable_capital_q?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#91 + def acceptable_q?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#67 + def allowed_percent_q?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#51 + def check(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#63 + def interpolated_quotes?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#72 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#87 + def start_with_percent_q_variant?(string); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#82 + def string_literal?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#25 +RuboCop::Cop::Style::RedundantPercentQ::DYNAMIC_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#28 +RuboCop::Cop::Style::RedundantPercentQ::EMPTY = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#32 +RuboCop::Cop::Style::RedundantPercentQ::ESCAPED_NON_BACKSLASH = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#23 +RuboCop::Cop::Style::RedundantPercentQ::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#30 +RuboCop::Cop::Style::RedundantPercentQ::PERCENT_CAPITAL_Q = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#29 +RuboCop::Cop::Style::RedundantPercentQ::PERCENT_Q = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#27 +RuboCop::Cop::Style::RedundantPercentQ::QUOTE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#26 +RuboCop::Cop::Style::RedundantPercentQ::SINGLE_QUOTE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#31 +RuboCop::Cop::Style::RedundantPercentQ::STRING_INTERPOLATION_REGEXP = T.let(T.unsafe(nil), Regexp) + +# Identifies places where argument can be replaced from +# a deterministic regexp to a string. +# +# @example +# # bad +# 'foo'.byteindex(/f/) +# 'foo'.byterindex(/f/) +# 'foo'.gsub(/f/, 'x') +# 'foo'.gsub!(/f/, 'x') +# 'foo'.partition(/f/) +# 'foo'.rpartition(/f/) +# 'foo'.scan(/f/) +# 'foo'.split(/f/) +# 'foo'.start_with?(/f/) +# 'foo'.sub(/f/, 'x') +# 'foo'.sub!(/f/, 'x') +# +# # good +# 'foo'.byteindex('f') +# 'foo'.byterindex('f') +# 'foo'.gsub('f', 'x') +# 'foo'.gsub!('f', 'x') +# 'foo'.partition('f') +# 'foo'.rpartition('f') +# 'foo'.scan('f') +# 'foo'.split('f') +# 'foo'.start_with?('f') +# 'foo'.sub('f', 'x') +# 'foo'.sub!('f', 'x') +# +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#35 +class RuboCop::Cop::Style::RedundantRegexpArgument < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#47 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#47 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#64 + def determinist_regexp?(regexp_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#68 + def preferred_argument(regexp_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#81 + def replacement(regexp_node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#42 +RuboCop::Cop::Style::RedundantRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#38 +RuboCop::Cop::Style::RedundantRegexpArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#39 +RuboCop::Cop::Style::RedundantRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#43 +RuboCop::Cop::Style::RedundantRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array) + +# Checks for unnecessary single-element Regexp character classes. +# +# @example +# +# # bad +# r = /[x]/ +# +# # good +# r = /x/ +# +# # bad +# r = /[\s]/ +# +# # good +# r = /\s/ +# +# # bad +# r = %r{/[b]} +# +# # good +# r = %r{/b} +# +# # good +# r = /[ab]/ +# +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#30 +class RuboCop::Cop::Style::RedundantRegexpCharacterClass < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#37 + def on_regexp(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#101 + def backslash_b?(elem); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#53 + def each_redundant_character_class(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#61 + def each_single_element_character_class(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#83 + def multiple_codepoints?(expression); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#107 + def octal_requiring_char_class?(elem); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#72 + def redundant_single_element_character_class?(node, char_class); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#113 + def requires_escape_outside_char_class?(elem); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#95 + def whitespace_in_free_space_mode?(node, elem); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#87 + def without_character_class(loc); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#34 +RuboCop::Cop::Style::RedundantRegexpCharacterClass::MSG_REDUNDANT_CHARACTER_CLASS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#33 +RuboCop::Cop::Style::RedundantRegexpCharacterClass::REQUIRES_ESCAPE_OUTSIDE_CHAR_CLASS_CHARS = T.let(T.unsafe(nil), Array) + +# Checks for the instantiation of regexp using redundant `Regexp.new` or `Regexp.compile`. +# Autocorrect replaces to regexp literal which is the simplest and fastest. +# +# @example +# +# # bad +# Regexp.new(/regexp/) +# Regexp.compile(/regexp/) +# +# # good +# /regexp/ +# Regexp.new('regexp') +# Regexp.compile('regexp') +# +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#20 +class RuboCop::Cop::Style::RedundantRegexpConstructor < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#33 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#27 + def redundant_regexp_constructor(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#23 +RuboCop::Cop::Style::RedundantRegexpConstructor::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#24 +RuboCop::Cop::Style::RedundantRegexpConstructor::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant escapes inside Regexp literals. +# +# @example +# # bad +# %r{foo\/bar} +# +# # good +# %r{foo/bar} +# +# # good +# /foo\/bar/ +# +# # good +# %r/foo\/bar/ +# +# # good +# %r!foo\!bar! +# +# # bad +# /a\-b/ +# +# # good +# /a-b/ +# +# # bad +# /[\+\-]\d/ +# +# # good +# /[+\-]\d/ +# +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#35 +class RuboCop::Cop::Style::RedundantRegexpEscape < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#45 + def on_regexp(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#60 + def allowed_escape?(node, char, index, within_character_class); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#76 + def char_class_begins_or_ends_with_escaped_hyphen?(node, index); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#92 + def delimiter?(node, char); end + + # Please remove this `else` branch when support for regexp_parser 1.8 will be dropped. + # It's for compatibility with regexp_parser 1.8 and will never be maintained. + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#99 + def each_escape(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#126 + def escape_range_at_index(node, index); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#41 +RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_ALWAYS_ESCAPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#43 +RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_OUTSIDE_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#42 +RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_WITHIN_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#39 +RuboCop::Cop::Style::RedundantRegexpEscape::MSG_REDUNDANT_ESCAPE = T.let(T.unsafe(nil), String) + +# Checks for redundant `return` expressions. +# +# @example +# # These bad cases should be extended to handle methods whose body is +# # if/else or a case expression with a default branch. +# +# # bad +# def test +# return something +# end +# +# # bad +# def test +# one +# two +# three +# return something +# end +# +# # bad +# def test +# return something if something_else +# end +# +# # good +# def test +# something if something_else +# end +# +# # good +# def test +# if x +# elsif y +# else +# end +# end +# @example AllowMultipleReturnValues: false (default) +# # bad +# def test +# return x, y +# end +# @example AllowMultipleReturnValues: true +# # good +# def test +# return x, y +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#55 +class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#63 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#104 + def add_braces(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#99 + def add_brackets(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#169 + def allow_multiple_return_values?; end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#164 + def check_begin_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#110 + def check_branch(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#138 + def check_case_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#159 + def check_ensure_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#143 + def check_if_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#155 + def check_resbody_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#150 + def check_rescue_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#126 + def check_return_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#80 + def correct_with_arguments(return_node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#76 + def correct_without_arguments(return_node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#95 + def hash_without_braces?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#173 + def message(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#59 +RuboCop::Cop::Style::RedundantReturn::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#60 +RuboCop::Cop::Style::RedundantReturn::MULTI_RETURN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#61 +RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant uses of `self`. +# +# The usage of `self` is only needed when: +# +# * Sending a message to same object with zero arguments in +# presence of a method name clash with an argument or a local +# variable. +# +# * Calling an attribute writer to prevent a local variable assignment. +# +# Note, with using explicit self you can only send messages with public or +# protected scope, you cannot send private messages this way. +# +# Note we allow uses of `self` with operators because it would be awkward +# otherwise. +# +# @example +# +# # bad +# def foo(bar) +# self.baz +# end +# +# # good +# def foo(bar) +# self.bar # Resolves name clash with the argument. +# end +# +# def foo +# bar = 1 +# self.bar # Resolves name clash with the local variable. +# end +# +# def foo +# %w[x y z].select do |bar| +# self.bar == bar # Resolves name clash with argument of the block. +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#44 +class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # @return [RedundantSelf] a new instance of RedundantSelf + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#59 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # Assignment of self.x + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67 + def on_and_asgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#85 + def on_args(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#89 + def on_blockarg(node); end + + # Using self.x to distinguish from local variable x + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80 + def on_def(node); end + + # Using self.x to distinguish from local variable x + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#103 + def on_in_pattern(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#98 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#93 + def on_masgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#73 + def on_op_asgn(node); end + + # Assignment of self.x + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67 + def on_or_asgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#107 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125 + def on_while(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181 + def add_lhs_to_local_variables_scopes(rhs, lhs); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#189 + def add_masgn_lhs_variables(rhs, lhs); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#195 + def add_match_var_scopes(in_pattern_node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#143 + def add_scope(node, local_variables = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#175 + def allow_self(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#149 + def allowed_send_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#166 + def on_argument(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#158 + def regular_method_call?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#55 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48 +RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49 +RuboCop::Cop::Style::RedundantSelf::KEYWORDS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#47 +RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where redundant assignments are made for in place +# modification methods. +# +# @example +# # bad +# args = args.concat(ary) +# hash = hash.merge!(other) +# +# # good +# args.concat(foo) +# args += foo +# hash.merge!(other) +# +# # bad +# self.foo = foo.concat(ary) +# +# # good +# foo.concat(ary) +# self.foo += ary +# +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#31 +class RuboCop::Cop::Style::RedundantSelfAssignment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + def on_lvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#69 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#96 + def redundant_nonself_assignment?(param0 = T.unsafe(nil), param1, param2); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#86 + def redundant_self_assignment?(param0 = T.unsafe(nil), param1); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#112 + def correction_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#81 + def method_returning_self?(method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#105 + def redundant_assignment?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#45 +RuboCop::Cop::Style::RedundantSelfAssignment::ASSIGNMENT_TYPE_TO_RECEIVER_TYPE = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#38 +RuboCop::Cop::Style::RedundantSelfAssignment::METHODS_RETURNING_SELF = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#35 +RuboCop::Cop::Style::RedundantSelfAssignment::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where conditional branch makes redundant self-assignment. +# +# It only detects local variable because it may replace state of instance variable, +# class variable, and global variable that have state across methods with `nil`. +# +# @example +# +# # bad +# foo = condition ? bar : foo +# +# # good +# foo = bar if condition +# +# # bad +# foo = condition ? foo : bar +# +# # good +# foo = bar unless condition +# +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#25 +class RuboCop::Cop::Style::RedundantSelfAssignmentBranch < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#32 + def bad_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#36 + def on_lvasgn(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#59 + def inconvertible_to_modifier?(if_branch, else_branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#64 + def multiple_statements?(branch); end + + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#74 + def register_offense(if_node, offense_branch, opposite_branch, keyword); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#70 + def self_assign?(variable, branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#53 + def use_if_and_else_branch?(expression); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#29 +RuboCop::Cop::Style::RedundantSelfAssignmentBranch::MSG = T.let(T.unsafe(nil), String) + +# Identifies instances of sorting and then +# taking only the first or last element. The same behavior can +# be accomplished without a relatively expensive sort by using +# `Enumerable#min` instead of sorting and taking the first +# element and `Enumerable#max` instead of sorting and taking the +# last element. Similarly, `Enumerable#min_by` and +# `Enumerable#max_by` can replace `Enumerable#sort_by` calls +# after which only the first or last element is used. +# +# @example +# # bad +# [2, 1, 3].sort.first +# [2, 1, 3].sort[0] +# [2, 1, 3].sort.at(0) +# [2, 1, 3].sort.slice(0) +# +# # good +# [2, 1, 3].min +# +# # bad +# [2, 1, 3].sort.last +# [2, 1, 3].sort[-1] +# [2, 1, 3].sort.at(-1) +# [2, 1, 3].sort.slice(-1) +# +# # good +# [2, 1, 3].max +# +# # bad +# arr.sort_by(&:foo).first +# arr.sort_by(&:foo)[0] +# arr.sort_by(&:foo).at(0) +# arr.sort_by(&:foo).slice(0) +# +# # good +# arr.min_by(&:foo) +# +# # bad +# arr.sort_by(&:foo).last +# arr.sort_by(&:foo)[-1] +# arr.sort_by(&:foo).at(-1) +# arr.sort_by(&:foo).slice(-1) +# +# # good +# arr.max_by(&:foo) +# +# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#79 +class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#88 + def redundant_sort?(param0 = T.unsafe(nil)); end + + private + + # This gets the start of the accessor whether it has a dot + # (e.g. `.first`) or doesn't (e.g. `[0]`) + # + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#192 + def accessor_start(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#182 + def arg_node(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#186 + def arg_value(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#147 + def autocorrect(corrector, node, sort_node, sorter, accessor); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#165 + def base(accessor, arg); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#114 + def find_redundant_sort(*nodes); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#135 + def message(node, sorter, accessor); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#131 + def offense_range(sort_node, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#124 + def register_offense(node, sort_node, sorter, accessor); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#156 + def replace_with_logical_operator(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#173 + def suffix(sorter); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#161 + def suggestion(sorter, accessor, arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#200 + def with_logical_operator?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#83 +RuboCop::Cop::Style::RedundantSort::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#85 +RuboCop::Cop::Style::RedundantSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `sort_by { ... }` can be replaced by +# `sort`. +# +# @example +# # bad +# array.sort_by { |x| x } +# array.sort_by do |var| +# var +# end +# +# # good +# array.sort +# +# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#18 +class RuboCop::Cop::Style::RedundantSortBy < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#25 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#35 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#48 + def redundant_sort_by_block(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#53 + def redundant_sort_by_numblock(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#57 + def sort_by_range(send, node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#22 +RuboCop::Cop::Style::RedundantSortBy::MSG_BLOCK = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#23 +RuboCop::Cop::Style::RedundantSortBy::MSG_NUMBLOCK = T.let(T.unsafe(nil), String) + +# Checks for redundant escapes in string literals. +# +# @example +# # bad - no need to escape # without following {/$/@ +# "\#foo" +# +# # bad - no need to escape single quotes inside double quoted string +# "\'foo\'" +# +# # bad - heredocs are also checked for unnecessary escapes +# <<~STR +# \#foo \"foo\" +# STR +# +# # good +# "#foo" +# +# # good +# "\#{no_interpolation}" +# +# # good +# "'foo'" +# +# # good +# "foo\ +# bar" +# +# # good +# <<~STR +# #foo "foo" +# STR +# +# source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#37 +class RuboCop::Cop::Style::RedundantStringEscape < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MatchRange + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#43 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#79 + def allowed_escape?(node, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#119 + def array_literal?(node, prefix); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#73 + def begin_loc_present?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#153 + def delimiter?(node, char); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#171 + def disabling_interpolation?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#149 + def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#139 + def heredoc_with_disabled_interpolation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#100 + def interpolation_not_enabled?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#167 + def literal_in_interpolated_or_multiline_string?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#59 + def message(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#135 + def percent_array_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#111 + def percent_q_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#127 + def percent_w_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#131 + def percent_w_upper_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#107 + def single_quoted?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#63 + def str_contents_range(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#41 +RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String) + +# Enforces using `//` or `%r` around regular expressions. +# +# NOTE: The following `%r` cases using a regexp starts with a blank or `=` +# as a method argument allowed to prevent syntax errors. +# +# [source,ruby] +# ---- +# do_something %r{ regexp} # `do_something / regexp/` is an invalid syntax. +# do_something %r{=regexp} # `do_something /=regexp/` is an invalid syntax. +# ---- +# +# @example EnforcedStyle: slashes (default) +# # bad +# snake_case = %r{^[\dA-Z_]+$} +# +# # bad +# regex = %r{ +# foo +# (bar) +# (baz) +# }x +# +# # good +# snake_case = /^[\dA-Z_]+$/ +# +# # good +# regex = / +# foo +# (bar) +# (baz) +# /x +# @example EnforcedStyle: percent_r +# # bad +# snake_case = /^[\dA-Z_]+$/ +# +# # bad +# regex = / +# foo +# (bar) +# (baz) +# /x +# +# # good +# snake_case = %r{^[\dA-Z_]+$} +# +# # good +# regex = %r{ +# foo +# (bar) +# (baz) +# }x +# @example EnforcedStyle: mixed +# # bad +# snake_case = %r{^[\dA-Z_]+$} +# +# # bad +# regex = / +# foo +# (bar) +# (baz) +# /x +# +# # good +# snake_case = /^[\dA-Z_]+$/ +# +# # good +# regex = %r{ +# foo +# (bar) +# (baz) +# }x +# @example AllowInnerSlashes: false (default) +# # If `false`, the cop will always recommend using `%r` if one or more +# # slashes are found in the regexp string. +# +# # bad +# x =~ /home\// +# +# # good +# x =~ %r{home/} +# @example AllowInnerSlashes: true +# # good +# x =~ /home\// +# +# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#93 +class RuboCop::Cop::Style::RegexpLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#101 + def on_regexp(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#144 + def allow_inner_slashes?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#132 + def allowed_mixed_percent_r?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#122 + def allowed_mixed_slash?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#161 + def allowed_omit_parentheses_with_percent_r_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#126 + def allowed_percent_r_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#118 + def allowed_slash_literal?(node); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#221 + def calculate_replacement(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#136 + def contains_disallowed_slash?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#140 + def contains_slash?(node); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#170 + def correct_delimiters(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#176 + def correct_inner_slashes(node, corrector); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#209 + def inner_slash_after_correction(node); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#205 + def inner_slash_before_correction(node); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#213 + def inner_slash_for(opening_delimiter); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#192 + def inner_slash_indices(node); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#148 + def node_body(node, include_begin_nodes: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#157 + def preferred_delimiters; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#153 + def slash_literal?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#99 +RuboCop::Cop::Style::RegexpLiteral::MSG_USE_PERCENT_R = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#98 +RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), String) + +# Sort `require` and `require_relative` in alphabetical order. +# +# @example +# # bad +# require 'b' +# require 'a' +# +# # good +# require 'a' +# require 'b' +# +# # bad +# require_relative 'b' +# require_relative 'a' +# +# # good +# require_relative 'a' +# require_relative 'b' +# +# # good (sorted within each section separated by a blank line) +# require 'a' +# require 'd' +# +# require 'b' +# require 'c' +# +# # good +# require 'b' +# require_relative 'c' +# require 'a' +# +# # bad +# require 'a' +# require 'c' if foo +# require 'b' +# +# # good +# require 'a' +# require 'b' +# require 'c' if foo +# +# # bad +# require 'c' +# if foo +# require 'd' +# require 'b' +# end +# require 'a' +# +# # good +# require 'c' +# if foo +# require 'b' +# require 'd' +# end +# require 'a' +# +# source://rubocop//lib/rubocop/cop/style/require_order.rb#66 +class RuboCop::Cop::Style::RequireOrder < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#76 + def if_inside_only_require(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#83 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#115 + def autocorrect(corrector, node, previous_older_sibling); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#101 + def find_previous_older_sibling(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/require_order.rb#133 + def in_same_section?(node1, node2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/require_order.rb#97 + def not_modifier_form?(node); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#123 + def search_node(node); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#127 + def sibling_node(node); end +end + +# source://rubocop//lib/rubocop/cop/style/require_order.rb#73 +RuboCop::Cop::Style::RequireOrder::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/require_order.rb#71 +RuboCop::Cop::Style::RequireOrder::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of `rescue` in its modifier form is added for following +# reasons: +# +# * The syntax of modifier form `rescue` can be misleading because it +# might lead us to believe that `rescue` handles the given exception +# but it actually rescue all exceptions to return the given rescue +# block. In this case, value returned by handle_error or +# SomeException. +# +# * Modifier form `rescue` would rescue all the exceptions. It would +# silently skip all exception or errors and handle the error. +# Example: If `NoMethodError` is raised, modifier form rescue would +# handle the exception. +# +# @example +# # bad +# some_method rescue handle_error +# +# # bad +# some_method rescue SomeException +# +# # good +# begin +# some_method +# rescue +# handle_error +# end +# +# # good +# begin +# some_method +# rescue SomeException +# handle_error +# end +# +# source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#40 +class RuboCop::Cop::Style::RescueModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RescueNode + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#52 + def on_resbody(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#70 + def correct_rescue_block(corrector, node, parenthesized); end + + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#86 + def indentation_and_offset(node, parenthesized); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#66 + def parenthesized?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#48 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#46 +RuboCop::Cop::Style::RescueModifier::MSG = T.let(T.unsafe(nil), String) + +# Checks for rescuing `StandardError`. There are two supported +# styles `implicit` and `explicit`. This cop will not register an offense +# if any error other than `StandardError` is specified. +# +# @example EnforcedStyle: explicit (default) +# # `explicit` will enforce using `rescue StandardError` +# # instead of `rescue`. +# +# # bad +# begin +# foo +# rescue +# bar +# end +# +# # good +# begin +# foo +# rescue StandardError +# bar +# end +# +# # good +# begin +# foo +# rescue OtherError +# bar +# end +# +# # good +# begin +# foo +# rescue StandardError, SecurityError +# bar +# end +# @example EnforcedStyle: implicit +# # `implicit` will enforce using `rescue` instead of +# # `rescue StandardError`. +# +# # bad +# begin +# foo +# rescue StandardError +# bar +# end +# +# # good +# begin +# foo +# rescue +# bar +# end +# +# # good +# begin +# foo +# rescue OtherError +# bar +# end +# +# # good +# begin +# foo +# rescue StandardError, SecurityError +# bar +# end +# +# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#73 +class RuboCop::Cop::Style::RescueStandardError < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RescueNode + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#92 + def on_resbody(node); end + + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#88 + def rescue_standard_error?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#83 + def rescue_without_error_class?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#118 + def offense_for_explicit_enforced_style(node); end + + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#107 + def offense_for_implicit_enforced_style(node, error); end +end + +# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#80 +RuboCop::Cop::Style::RescueStandardError::MSG_EXPLICIT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#79 +RuboCop::Cop::Style::RescueStandardError::MSG_IMPLICIT = T.let(T.unsafe(nil), String) + +# Enforces consistency between `return nil` and `return`. +# +# This cop is disabled by default. Because there seems to be a perceived semantic difference +# between `return` and `return nil`. The former can be seen as just halting evaluation, +# while the latter might be used when the return value is of specific concern. +# +# Supported styles are `return` and `return_nil`. +# +# @example EnforcedStyle: return (default) +# # bad +# def foo(arg) +# return nil if arg +# end +# +# # good +# def foo(arg) +# return if arg +# end +# @example EnforcedStyle: return_nil +# # bad +# def foo(arg) +# return if arg +# end +# +# # good +# def foo(arg) +# return nil if arg +# end +# +# source://rubocop//lib/rubocop/cop/style/return_nil.rb#35 +class RuboCop::Cop::Style::ReturnNil < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#90 + def chained_send?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#93 + def define_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#48 + def on_return(node); end + + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#46 + def return_nil_node?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#43 + def return_node?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#80 + def correct_style?(node); end + + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#76 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#85 + def scoped_node?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/return_nil.rb#39 +RuboCop::Cop::Style::ReturnNil::RETURN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/return_nil.rb#40 +RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String) + +# Checks if `return` or `return nil` is used in predicate method definitions. +# +# @example +# # bad +# def foo? +# return if condition +# +# do_something? +# end +# +# # bad +# def foo? +# return nil if condition +# +# do_something? +# end +# +# # good +# def foo? +# return false if condition +# +# do_something? +# end +# @example AllowedMethods: ['foo?'] +# # good +# def foo? +# return if condition +# +# do_something? +# end +# @example AllowedPatterns: [/foo/] +# # good +# def foo? +# return if condition +# +# do_something? +# end +# +# source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#50 +class RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#62 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#62 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#58 + def return_nil?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#79 + def nil_node_at_the_end_of_method_body(body); end + + # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#87 + def register_offense(offense_node, replacement); end +end + +# source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#55 +RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# Transforms usages of a method call safeguarded by a non `nil` +# check for the variable whose method is being called to +# safe navigation (`&.`). If there is a method chain, all of the methods +# in the chain need to be checked for safety, and all of the methods will +# need to be changed to use safe navigation. +# +# The default for `ConvertCodeThatCanStartToReturnNil` is `false`. +# When configured to `true`, this will +# check for code in the format `!foo.nil? && foo.bar`. As it is written, +# the return of this code is limited to `false` and whatever the return +# of the method is. If this is converted to safe navigation, +# `foo&.bar` can start returning `nil` as well as what the method +# returns. +# +# The default for `MaxChainLength` is `2` +# We have limited the cop to not register an offense for method chains +# that exceed this option is set. +# +# @example +# # bad +# foo.bar if foo +# foo.bar.baz if foo +# foo.bar(param1, param2) if foo +# foo.bar { |e| e.something } if foo +# foo.bar(param) { |e| e.something } if foo +# +# foo.bar if !foo.nil? +# foo.bar unless !foo +# foo.bar unless foo.nil? +# +# foo && foo.bar +# foo && foo.bar.baz +# foo && foo.bar(param1, param2) +# foo && foo.bar { |e| e.something } +# foo && foo.bar(param) { |e| e.something } +# +# foo ? foo.bar : nil +# foo.nil? ? nil : foo.bar +# !foo.nil? ? foo.bar : nil +# !foo ? nil : foo.bar +# +# # good +# foo&.bar +# foo&.bar&.baz +# foo&.bar(param1, param2) +# foo&.bar { |e| e.something } +# foo&.bar(param) { |e| e.something } +# foo && foo.bar.baz.qux # method chain with more than 2 methods +# foo && foo.nil? # method that `nil` responds to +# +# # Method calls that do not use `.` +# foo && foo < bar +# foo < bar if foo +# +# # When checking `foo&.empty?` in a conditional, `foo` being `nil` will actually +# # do the opposite of what the author intends. +# foo && foo.empty? +# +# # This could start returning `nil` as well as the return of the method +# foo.nil? || foo.bar +# !foo || foo.bar +# +# # Methods that are used on assignment, arithmetic operation or +# # comparison should not be converted to use safe navigation +# foo.baz = bar if foo +# foo.baz + bar if foo +# foo.bar > 2 if foo +# +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#84 +class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::NilMethods + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # if format: (if checked_variable body nil) + # unless format: (if checked_variable nil body) + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#99 + def modifier_if_safe_navigation_candidate(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#125 + def not_nil_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#133 + def on_and(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#127 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#114 + def ternary_safe_navigation_candidate(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#307 + def add_safe_nav_to_all_methods_in_chain(corrector, start_method, method_chain); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#200 + def allowed_if_condition?(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#154 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#299 + def begin_range(node, method_call); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#261 + def chain_length(method_chain, method); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#139 + def check_node(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#181 + def comments(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#303 + def end_range(node, method_call); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#166 + def extract_body(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#243 + def extract_common_parts(method_chain, checked_variable); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#209 + def extract_parts(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#233 + def extract_parts_from_and(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#218 + def extract_parts_from_if(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#251 + def find_matching_receiver_invocation(method_chain, checked_variable); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#174 + def handle_comments(corrector, node, method_call); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#320 + def max_chain_length; end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#204 + def method_call(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#295 + def method_called?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#287 + def negated?(send_node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#187 + def relevant_comment_ranges(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#281 + def unsafe_method?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#269 + def unsafe_method_used?(method_chain, method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#150 + def use_var_only_in_unless_modifier?(node, variable); end +end + +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#92 +RuboCop::Cop::Style::SafeNavigation::LOGIC_JUMP_KEYWORDS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#90 +RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String) + +# Identifies usages of `shuffle.first`, +# `shuffle.last`, and `shuffle[]` and change them to use +# `sample` instead. +# +# @example +# # bad +# [1, 2, 3].shuffle.first +# [1, 2, 3].shuffle.first(2) +# [1, 2, 3].shuffle.last +# [2, 1, 3].shuffle.at(0) +# [2, 1, 3].shuffle.slice(0) +# [1, 2, 3].shuffle[2] +# [1, 2, 3].shuffle[0, 2] # sample(2) will do the same +# [1, 2, 3].shuffle[0..2] # sample(3) will do the same +# [1, 2, 3].shuffle(random: Random.new).first +# +# # good +# [1, 2, 3].shuffle +# [1, 2, 3].sample +# [1, 2, 3].sample(3) +# [1, 2, 3].shuffle[1, 3] # sample(3) might return a longer Array +# [1, 2, 3].shuffle[1..3] # sample(3) might return a longer Array +# [1, 2, 3].shuffle[foo, bar] +# [1, 2, 3].shuffle(random: Random.new) +# +# source://rubocop//lib/rubocop/cop/style/sample.rb#30 +class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/sample.rb#41 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#37 + def sample_candidate?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/sample.rb#123 + def correction(shuffle_arg, method, method_args); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#139 + def extract_source(args); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#117 + def message(shuffle_arg, method, method_args, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sample.rb#58 + def offensive?(method, method_args); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#95 + def range_size(range_node); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#130 + def sample_arg(method, method_args); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#69 + def sample_size(method_args); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#78 + def sample_size_for_one_arg(arg); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#88 + def sample_size_for_two_args(first, second); end + + # source://rubocop//lib/rubocop/cop/style/sample.rb#111 + def source_range(shuffle_node, node); end +end + +# source://rubocop//lib/rubocop/cop/style/sample.rb#33 +RuboCop::Cop::Style::Sample::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/sample.rb#34 +RuboCop::Cop::Style::Sample::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for places where an subset of an Enumerable (array, +# range, set, etc.; see note below) is calculated based on a `Regexp` +# match, and suggests `grep` or `grep_v` instead. +# +# NOTE: Hashes do not behave as you may expect with `grep`, which +# means that `hash.grep` is not equivalent to `hash.select`. Although +# RuboCop is limited by static analysis, this cop attempts to avoid +# registering an offense when the receiver is a hash (hash literal, +# `Hash.new`, `Hash#[]`, or `to_h`/`to_hash`). +# +# NOTE: `grep` and `grep_v` were optimized when used without a block +# in Ruby 3.0, but may be slower in previous versions. +# See https://bugs.ruby-lang.org/issues/17030 +# +# @example +# # bad (select or find_all) +# array.select { |x| x.match? /regexp/ } +# array.select { |x| /regexp/.match?(x) } +# array.select { |x| x =~ /regexp/ } +# array.select { |x| /regexp/ =~ x } +# +# # bad (reject) +# array.reject { |x| x.match? /regexp/ } +# array.reject { |x| /regexp/.match?(x) } +# array.reject { |x| x =~ /regexp/ } +# array.reject { |x| /regexp/ =~ x } +# +# # good +# array.grep(regexp) +# array.grep_v(regexp) +# +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#45 +class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#79 + def calls_lvar?(param0 = T.unsafe(nil), param1); end + + # Returns true if a node appears to return a hash + # + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#65 + def creates_hash?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#74 + def env_const?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#88 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#56 + def regexp_match?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#132 + def extract_send_node(block_node); end + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#145 + def find_regexp(node, block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#156 + def match_predicate_without_receiver?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#141 + def opposite?(regexp_method_send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#106 + def receiver_allowed?(node); end + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#120 + def register_offense(node, block_node, regexp, replacement); end + + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#112 + def replacement(regexp_method_send_node, node); end +end + +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#49 +RuboCop::Cop::Style::SelectByRegexp::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#52 +RuboCop::Cop::Style::SelectByRegexp::OPPOSITE_REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#53 +RuboCop::Cop::Style::SelectByRegexp::REGEXP_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#51 +RuboCop::Cop::Style::SelectByRegexp::REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#50 +RuboCop::Cop::Style::SelectByRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use the shorthand for self-assignment. +# +# @example +# +# # bad +# x = x + 1 +# +# # good +# x += 1 +# +# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#15 +class RuboCop::Cop::Style::SelfAssignment < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#33 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#29 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#25 + def on_lvasgn(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#94 + def apply_autocorrect(corrector, node, rhs, operator, new_rhs); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#74 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#89 + def autocorrect_boolean_node(corrector, node, rhs); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#84 + def autocorrect_send_node(corrector, node, rhs); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#39 + def check(node, var_type); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#62 + def check_boolean_node(node, rhs, var_name, var_type); end + + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#50 + def check_send_node(node, rhs, var_name, var_type); end + + class << self + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#21 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#18 +RuboCop::Cop::Style::SelfAssignment::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#19 +RuboCop::Cop::Style::SelfAssignment::OPS = T.let(T.unsafe(nil), Array) + +# Checks for multiple expressions placed on the same line. +# It also checks for lines terminated with a semicolon. +# +# This cop has `AllowAsExpressionSeparator` configuration option. +# It allows `;` to separate several expressions on the same line. +# +# @example +# # bad +# foo = 1; bar = 2; +# baz = 3; +# +# # good +# foo = 1 +# bar = 2 +# baz = 3 +# @example AllowAsExpressionSeparator: false (default) +# # bad +# foo = 1; bar = 2 +# @example AllowAsExpressionSeparator: true +# # good +# foo = 1; bar = 2 +# +# source://rubocop//lib/rubocop/cop/style/semicolon.rb#29 +class RuboCop::Cop::Style::Semicolon < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#45 + def on_begin(node); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#39 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#64 + def check_for_line_terminator_or_opener; end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#70 + def each_semicolon; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#102 + def exist_semicolon_after_left_curly_brace?(tokens); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#110 + def exist_semicolon_after_left_string_interpolation_brace?(tokens); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#98 + def exist_semicolon_before_right_curly_brace?(tokens); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#106 + def exist_semicolon_before_right_string_interpolation_brace?(tokens); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#134 + def expressions_per_line(exprs); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#148 + def find_range_node(token_before_semicolon); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#140 + def find_semicolon_positions(line); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#154 + def range_nodes; end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#114 + def register_semicolon(line, column, after_expression, token_before_semicolon = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#83 + def semicolon_position(tokens); end + + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#79 + def tokens_for_lines; end + + class << self + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#35 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/semicolon.rb#33 +RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of the send method. +# +# @example +# # bad +# Foo.send(:bar) +# quuz.send(:fred) +# +# # good +# Foo.__send__(:bar) +# quuz.public_send(:fred) +# +# source://rubocop//lib/rubocop/cop/style/send.rb#16 +class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/send.rb#20 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/send.rb#20 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/send.rb#17 +RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/send.rb#18 +RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of `fail` and `raise`. +# +# @example EnforcedStyle: only_raise (default) +# # The `only_raise` style enforces the sole use of `raise`. +# # bad +# begin +# fail +# rescue Exception +# # handle it +# end +# +# def watch_out +# fail +# rescue Exception +# # handle it +# end +# +# Kernel.fail +# +# # good +# begin +# raise +# rescue Exception +# # handle it +# end +# +# def watch_out +# raise +# rescue Exception +# # handle it +# end +# +# Kernel.raise +# @example EnforcedStyle: only_fail +# # The `only_fail` style enforces the sole use of `fail`. +# # bad +# begin +# raise +# rescue Exception +# # handle it +# end +# +# def watch_out +# raise +# rescue Exception +# # handle it +# end +# +# Kernel.raise +# +# # good +# begin +# fail +# rescue Exception +# # handle it +# end +# +# def watch_out +# fail +# rescue Exception +# # handle it +# end +# +# Kernel.fail +# @example EnforcedStyle: semantic +# # The `semantic` style enforces the use of `fail` to signal an +# # exception, then will use `raise` to trigger an offense after +# # it has been rescued. +# # bad +# begin +# raise +# rescue Exception +# # handle it +# end +# +# def watch_out +# # Error thrown +# rescue Exception +# fail +# end +# +# Kernel.fail +# Kernel.raise +# +# # good +# begin +# fail +# rescue Exception +# # handle it +# end +# +# def watch_out +# fail +# rescue Exception +# raise 'Preferably with descriptive message' +# end +# +# explicit_receiver.fail +# explicit_receiver.raise +# +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#107 +class RuboCop::Cop::Style::SignalException < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#120 + def custom_fail_methods(param0); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#117 + def kernel_call?(param0 = T.unsafe(nil), param1); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#122 + def on_rescue(node); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#134 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#206 + def allow(method_name, node); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#188 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#167 + def check_scope(method_name, node); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#180 + def check_send(method_name, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#200 + def command_or_kernel_call?(name, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#149 + def custom_fail_defined?; end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#210 + def each_command_or_kernel_call(method_name, node); end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#156 + def message(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#111 +RuboCop::Cop::Style::SignalException::FAIL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#112 +RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#114 +RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Sometimes using dig method ends up with just a single +# argument. In such cases, dig should be replaced with []. +# +# @example +# # bad +# { key: 'value' }.dig(:key) +# [1, 2, 3].dig(0) +# +# # good +# { key: 'value' }[:key] +# [1, 2, 3][0] +# +# # good +# { key1: { key2: 'value' } }.dig(:key1, :key2) +# [1, [2, [3]]].dig(1, 1) +# +# # good +# keys = %i[key1 key2] +# { key1: { key2: 'value' } }.dig(*keys) +# +# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#31 +class RuboCop::Cop::Style::SingleArgumentDig < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#42 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#38 + def single_argument_dig?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34 +RuboCop::Cop::Style::SingleArgumentDig::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#35 +RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks whether the block parameters of a single-line +# method accepting a block match the names specified via configuration. +# +# For instance one can configure `reduce`(`inject`) to use |a, e| as +# parameters. +# +# Configuration option: Methods +# Should be set to use this cop. Array of hashes, where each key is the +# method name and value - array of argument names. +# +# @example Methods: [{reduce: %w[a b]}] +# # bad +# foo.reduce { |c, d| c + d } +# foo.reduce { |_, _d| 1 } +# +# # good +# foo.reduce { |a, b| a + b } +# foo.reduce { |a, _b| a } +# foo.reduce { |a, (id, _)| a + id } +# foo.reduce { true } +# +# # good +# foo.reduce do |c, d| +# c + d +# end +# +# source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#31 +class RuboCop::Cop::Style::SingleLineBlockParams < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#36 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#105 + def args_match?(method_name, args); end + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#69 + def autocorrect(corrector, node, preferred_block_arguments, joined_block_arguments); end + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#57 + def build_preferred_arguments_map(node, preferred_arguments); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#79 + def eligible_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#83 + def eligible_method?(node); end + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#95 + def method_name(method); end + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#91 + def method_names; end + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#87 + def methods; end + + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#99 + def target_args(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#34 +RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String) + +# Checks for single-line `do`...`end` block. +# +# In practice a single line `do`...`end` is autocorrected when `EnforcedStyle: semantic` +# in `Style/BlockDelimiters`. The autocorrection maintains the `do` ... `end` syntax to +# preserve semantics and does not change it to `{`...`}` block. +# +# @example +# +# # bad +# foo do |arg| bar(arg) end +# +# # good +# foo do |arg| +# bar(arg) +# end +# +# # bad +# ->(arg) do bar(arg) end +# +# # good +# ->(arg) { bar(arg) } +# +# source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#28 +class RuboCop::Cop::Style::SingleLineDoEndBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#33 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#33 + def on_numblock(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#53 + def do_line(node); end + + # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#61 + def x(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#31 +RuboCop::Cop::Style::SingleLineDoEndBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for single-line method definitions that contain a body. +# It will accept single-line methods with no body. +# +# Endless methods added in Ruby 3.0 are also accepted by this cop. +# +# If `Style/EndlessMethod` is enabled with `EnforcedStyle: allow_single_line` or +# `allow_always`, single-line methods will be autocorrected to endless +# methods if there is only one statement in the body. +# +# @example +# # bad +# def some_method; body end +# def link_to(url); {:name => url}; end +# def @table.columns; super; end +# +# # good +# def self.resource_class=(klass); end +# def @table.columns; end +# def some_method() = body +# @example AllowIfMethodIsEmpty: true (default) +# # good +# def no_op; end +# @example AllowIfMethodIsEmpty: false +# # bad +# def no_op; end +# +# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#34 +class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#60 + def allow_empty?; end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#52 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#97 + def break_line_before(corrector, node, range, indent_steps: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#88 + def correct_to_endless(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#64 + def correct_to_endless?(body_node); end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#74 + def correct_to_multiline(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#136 + def disallow_endless_method_style?; end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#104 + def each_part(body); end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#121 + def method_body_source(method_body); end + + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#114 + def move_comment(node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#132 + def require_parentheses?(method_body); end +end + +# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#38 +RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#39 +RuboCop::Cop::Style::SingleLineMethods::NOT_SUPPORTED_ENDLESS_METHOD_BODY_TYPES = T.let(T.unsafe(nil), Array) + +# Checks that arrays are sliced with endless ranges instead of +# `ary[start..-1]` on Ruby 2.6+. +# +# @example +# # bad +# items[1..-1] +# +# # good +# items[1..] +# +# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#28 +class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#40 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#38 + def range_till_minus_one?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#34 +RuboCop::Cop::Style::SlicingWithRange::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#35 +RuboCop::Cop::Style::SlicingWithRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# If the branch of a conditional consists solely of a conditional node, +# its conditions can be combined with the conditions of the outer branch. +# This helps to keep the nesting level from getting too deep. +# +# @example +# # bad +# if condition_a +# if condition_b +# do_something +# end +# end +# +# # bad +# if condition_b +# do_something +# end if condition_a +# +# # good +# if condition_a && condition_b +# do_something +# end +# @example AllowModifier: false (default) +# # bad +# if condition_a +# do_something if condition_b +# end +# +# # bad +# if condition_b +# do_something +# end if condition_a +# @example AllowModifier: true +# # good +# if condition_a +# do_something if condition_b +# end +# +# # good +# if condition_b +# do_something +# end if condition_a +# +# source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#49 +class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#59 + def on_if(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#242 + def allow_modifier?; end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#227 + def arguments_range(node); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#81 + def assigned_variables(condition); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#98 + def autocorrect(corrector, node, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#110 + def autocorrect_outer_condition_basic(corrector, node, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#125 + def autocorrect_outer_condition_modify_form(corrector, node, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#145 + def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#175 + def correct_for_comment(corrector, node, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#136 + def correct_for_guard_condition_style(corrector, outer_condition, if_branch, and_operator); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#165 + def correct_for_outer_condition_modify_form_style(corrector, node, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#130 + def correct_from_unless_to_if(corrector, node, is_modify_form: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#184 + def correct_outer_condition(corrector, condition); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#197 + def insert_bang(corrector, node, is_modify_form); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#210 + def insert_bang_for_and(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#89 + def offending_branch?(node, branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#246 + def outer_condition_modify_form?(node, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#238 + def replace_condition(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#222 + def require_parentheses?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#74 + def use_variable_assignment_in_condition?(condition, if_branch); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#155 + def wrap_condition(corrector, condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#233 + def wrap_condition?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#55 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#53 +RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) + +# Looks for uses of Perl-style global variables. +# Correcting to global variables in the 'English' library +# will add a require statement to the top of the file if +# enabled by RequireEnglish config. +# +# Like `use_perl_names` but allows builtin global vars. +# +# # good +# puts $LOAD_PATH +# puts $LOADED_FEATURES +# puts $PROGRAM_NAME +# puts ARGV +# puts $: +# puts $" +# puts $0 +# puts $! +# puts $@ +# puts $; +# puts $, +# puts $/ +# puts $\ +# puts $. +# puts $_ +# puts $> +# puts $< +# puts $$ +# puts $? +# puts $~ +# puts $= +# puts $* +# +# @example EnforcedStyle: use_english_names (default) +# # good +# require 'English' # or this could be in another file. +# +# puts $LOAD_PATH +# puts $LOADED_FEATURES +# puts $PROGRAM_NAME +# puts $ERROR_INFO +# puts $ERROR_POSITION +# puts $FIELD_SEPARATOR # or $FS +# puts $OUTPUT_FIELD_SEPARATOR # or $OFS +# puts $INPUT_RECORD_SEPARATOR # or $RS +# puts $OUTPUT_RECORD_SEPARATOR # or $ORS +# puts $INPUT_LINE_NUMBER # or $NR +# puts $LAST_READ_LINE +# puts $DEFAULT_OUTPUT +# puts $DEFAULT_INPUT +# puts $PROCESS_ID # or $PID +# puts $CHILD_STATUS +# puts $LAST_MATCH_INFO +# puts $IGNORECASE +# puts $ARGV # or ARGV +# @example EnforcedStyle: use_perl_names +# # good +# puts $: +# puts $" +# puts $0 +# puts $! +# puts $@ +# puts $; +# puts $, +# puts $/ +# puts $\ +# puts $. +# puts $_ +# puts $> +# puts $< +# puts $$ +# puts $? +# puts $~ +# puts $= +# puts $* +# @example EnforcedStyle: use_builtin_english_names +# +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#87 +class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RequireLibrary + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#176 + def autocorrect(corrector, node, global_var); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#168 + def message(global_var); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#152 + def on_gvar(node); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#147 + def on_new_investigation; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#247 + def add_require_english?; end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#241 + def english_name_replacement(preferred_name, node); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#190 + def format_english_message(global_var); end + + # For now, we assume that lists are 2 items or less. Easy grammar! + # + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#212 + def format_list(items); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#198 + def format_message(english, regular, global); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#235 + def matching_styles(global); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#227 + def preferred_names(global); end + + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#216 + def replacement(node, global_var); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#251 + def should_require_english?(global_var); end +end + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#128 +RuboCop::Cop::Style::SpecialGlobalVars::BUILTIN_VARS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#100 +RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#145 +RuboCop::Cop::Style::SpecialGlobalVars::LIBRARY_NAME = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#93 +RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#96 +RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#98 +RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String) + +# Anything *not* in this set is provided by the English library. +# +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#122 +RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#124 +RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#139 +RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash) + +# Check for parentheses around stabby lambda arguments. +# There are two different styles. Defaults to `require_parentheses`. +# +# @example EnforcedStyle: require_parentheses (default) +# # bad +# ->a,b,c { a + b + c } +# +# # good +# ->(a,b,c) { a + b + c} +# @example EnforcedStyle: require_no_parentheses +# # bad +# ->(a,b,c) { a + b + c } +# +# # good +# ->a,b,c { a + b + c} +# +# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#22 +class RuboCop::Cop::Style::StabbyLambdaParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#28 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#54 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#46 + def missing_parentheses?(node); end + + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#58 + def missing_parentheses_corrector(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#73 + def parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#50 + def redundant_parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#69 + def stabby_lambda_with_args?(node); end + + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#62 + def unwanted_parentheses_corrector(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#27 +RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_NO_REQUIRE = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#26 +RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_REQUIRE = T.let(T.unsafe(nil), String) + +# Checks for places where classes with only class methods can be +# replaced with a module. Classes should be used only when it makes sense to create +# instances out of them. +# +# @example +# # bad +# class SomeClass +# def self.some_method +# # body omitted +# end +# +# def self.some_other_method +# # body omitted +# end +# end +# +# # good +# module SomeModule +# module_function +# +# def some_method +# # body omitted +# end +# +# def some_other_method +# # body omitted +# end +# end +# +# # good - has instance method +# class SomeClass +# def instance_method; end +# def self.class_method; end +# end +# +# source://rubocop//lib/rubocop/cop/style/static_class.rb#46 +class RuboCop::Cop::Style::StaticClass < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::VisibilityHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#53 + def on_class(class_node); end + + private + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#64 + def autocorrect(corrector, class_node); end + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#77 + def autocorrect_def(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#83 + def autocorrect_sclass(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/static_class.rb#90 + def class_convertible_to_module?(class_node); end + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#114 + def class_elements(class_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/static_class.rb#102 + def extend_call?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/static_class.rb#106 + def sclass_convertible_to_module?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/static_class.rb#51 +RuboCop::Cop::Style::StaticClass::MSG = T.let(T.unsafe(nil), String) + +# Identifies places where `$stderr.puts` can be replaced by +# `warn`. The latter has the advantage of easily being disabled by, +# the `-W0` interpreter flag or setting `$VERBOSE` to `nil`. +# +# @example +# # bad +# $stderr.puts('hello') +# +# # good +# warn('hello') +# +# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#17 +class RuboCop::Cop::Style::StderrPuts < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#32 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#25 + def stderr_puts?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#43 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#47 + def stderr_gvar?(sym); end + + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#51 + def stderr_puts_range(send); end +end + +# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#21 +RuboCop::Cop::Style::StderrPuts::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#22 +RuboCop::Cop::Style::StderrPuts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of `String#split` with empty string or regexp literal argument. +# +# @example +# # bad +# string.split(//) +# string.split('') +# +# # good +# string.chars +# +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#21 +class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#27 +RuboCop::Cop::Style::StringChars::BAD_ARGUMENTS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#25 +RuboCop::Cop::Style::StringChars::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#26 +RuboCop::Cop::Style::StringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for places where string concatenation +# can be replaced with string interpolation. +# +# The cop can autocorrect simple cases but will skip autocorrecting +# more complex cases where the resulting code would be harder to read. +# In those cases, it might be useful to extract statements to local +# variables or methods which you can then interpolate in a string. +# +# NOTE: When concatenation between two strings is broken over multiple +# lines, this cop does not register an offense; instead, +# `Style/LineEndConcatenation` will pick up the offense if enabled. +# +# Two modes are supported: +# 1. `aggressive` style checks and corrects all occurrences of `+` where +# either the left or right side of `+` is a string literal. +# 2. `conservative` style on the other hand, checks and corrects only if +# left side (receiver of `+` method call) is a string literal. +# This is useful when the receiver is some expression that returns string like `Pathname` +# instead of a string literal. +# +# @example Mode: aggressive (default) +# # bad +# email_with_name = user.name + ' <' + user.email + '>' +# Pathname.new('/') + 'test' +# +# # good +# email_with_name = "#{user.name} <#{user.email}>" +# email_with_name = format('%s <%s>', user.name, user.email) +# "#{Pathname.new('/')}test" +# +# # accepted, line-end concatenation +# name = 'First' + +# 'Last' +# @example Mode: conservative +# # bad +# 'Hello' + user.name +# +# # good +# "Hello #{user.name}" +# user.name + '!!' +# Pathname.new('/') + 'test' +# +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#53 +class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#69 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#73 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#62 + def string_concatenation?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#116 + def collect_parts(node, parts = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#141 + def corrected_ancestor?(node); end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#108 + def find_topmost_plus_node(node); end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#162 + def handle_quotes(parts); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#135 + def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#98 + def line_end_concatenation?(node); end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#172 + def mode; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#127 + def plus_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#86 + def register_offense(topmost_plus_node, parts); end + + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#145 + def replacement(parts); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#168 + def single_quoted?(str_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#131 + def uncorrectable?(part); end +end + +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#58 +RuboCop::Cop::Style::StringConcatenation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#59 +RuboCop::Cop::Style::StringConcatenation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of strings as keys in hashes. The use of +# symbols is preferred instead. +# +# @example +# # bad +# { 'one' => 1, 'two' => 2, 'three' => 3 } +# +# # good +# { one: 1, two: 2, three: 3 } +# +# source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#19 +class RuboCop::Cop::Style::StringHashKeys < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#42 + def on_pair(node); end + + # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#30 + def receive_environments_method?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#25 + def string_hash_key?(param0 = T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#22 +RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String) + +# Checks if uses of quotes match the configured preference. +# +# @example EnforcedStyle: single_quotes (default) +# # bad +# "No special symbols" +# "No string interpolation" +# "Just text" +# +# # good +# 'No special symbols' +# 'No string interpolation' +# 'Just text' +# "Wait! What's #{this}!" +# @example EnforcedStyle: double_quotes +# # bad +# 'Just some text' +# 'No special chars or interpolation' +# +# # good +# "Just some text" +# "No special chars or interpolation" +# "Every string in #{project} uses double_quotes" +# +# source://rubocop//lib/rubocop/cop/style/string_literals.rb#29 +class RuboCop::Cop::Style::StringLiterals < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::StringLiteralsHelp + include ::RuboCop::Cop::StringHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#37 + def on_dstr(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#123 + def accept_child_double_quotes?(nodes); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#71 + def all_string_literals?(nodes); end + + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#61 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#105 + def check_multiline_quote_style(node, quote); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#101 + def consistent_multiline?; end + + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#75 + def detect_quote_styles(node); end + + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#87 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#97 + def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#65 + def register_offense(node, message: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#119 + def unexpected_double_quotes?(quote); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#115 + def unexpected_single_quotes?(quote); end +end + +# source://rubocop//lib/rubocop/cop/style/string_literals.rb#35 +RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), String) + +# Checks that quotes inside string, symbol, and regexp interpolations +# match the configured preference. +# +# @example EnforcedStyle: single_quotes (default) +# # bad +# string = "Tests #{success ? "PASS" : "FAIL"}" +# symbol = :"Tests #{success ? "PASS" : "FAIL"}" +# heredoc = <<~TEXT +# Tests #{success ? "PASS" : "FAIL"} +# TEXT +# regexp = /Tests #{success ? "PASS" : "FAIL"}/ +# +# # good +# string = "Tests #{success ? 'PASS' : 'FAIL'}" +# symbol = :"Tests #{success ? 'PASS' : 'FAIL'}" +# heredoc = <<~TEXT +# Tests #{success ? 'PASS' : 'FAIL'} +# TEXT +# regexp = /Tests #{success ? 'PASS' : 'FAIL'}/ +# @example EnforcedStyle: double_quotes +# # bad +# string = "Tests #{success ? 'PASS' : 'FAIL'}" +# symbol = :"Tests #{success ? 'PASS' : 'FAIL'}" +# heredoc = <<~TEXT +# Tests #{success ? 'PASS' : 'FAIL'} +# TEXT +# regexp = /Tests #{success ? 'PASS' : 'FAIL'}/ +# +# # good +# string = "Tests #{success ? "PASS" : "FAIL"}" +# symbol = :"Tests #{success ? "PASS" : "FAIL"}" +# heredoc = <<~TEXT +# Tests #{success ? "PASS" : "FAIL"} +# TEXT +# regexp = /Tests #{success ? "PASS" : "FAIL"}/ +# +# source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#42 +class RuboCop::Cop::Style::StringLiteralsInInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::StringLiteralsHelp + include ::RuboCop::Cop::StringHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#48 + def autocorrect(corrector, node); end + + # Cop classes that include the StringHelp module usually ignore regexp + # nodes. Not so for this cop, which is why we override the on_regexp + # definition with an empty one. + # + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#55 + def on_regexp(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#59 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#66 + def offense?(node); end +end + +# Enforces the use of consistent method names +# from the String class. +# +# @example +# # bad +# 'name'.intern +# 'var'.unfavored_method +# +# # good +# 'name'.to_sym +# 'var'.preferred_method +# +# source://rubocop//lib/rubocop/cop/style/string_methods.rb#17 +class RuboCop::Cop::Style::StringMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MethodPreference + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/string_methods.rb#21 +RuboCop::Cop::Style::StringMethods::MSG = T.let(T.unsafe(nil), String) + +# Identifies places where `lstrip.rstrip` can be replaced by +# `strip`. +# +# @example +# # bad +# 'abc'.lstrip.rstrip +# 'abc'.rstrip.lstrip +# +# # good +# 'abc'.strip +# +# source://rubocop//lib/rubocop/cop/style/strip.rb#16 +class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/strip.rb#24 + def lstrip_rstrip(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/strip.rb#29 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/style/strip.rb#20 +RuboCop::Cop::Style::Strip::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/strip.rb#21 +RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for inheritance from Struct.new. +# +# @example +# # bad +# class Person < Struct.new(:first_name, :last_name) +# def age +# 42 +# end +# end +# +# # good +# Person = Struct.new(:first_name, :last_name) do +# def age +# 42 +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#26 +class RuboCop::Cop::Style::StructInheritance < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#33 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#45 + def struct_constructor?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#52 + def correct_parent(parent, corrector); end + + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#62 + def range_for_empty_class_body(class_node, struct_new); end +end + +# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30 +RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) + +# Enforces the use of shorthand-style swapping of 2 variables. +# +# @example +# # bad +# tmp = x +# x = y +# y = tmp +# +# # good +# x, y = y, x +# +# source://rubocop//lib/rubocop/cop/style/swap_values.rb#21 +class RuboCop::Cop::Style::SwapValues < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + def on_asgn(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + def on_casgn(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + def on_cvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + def on_gvasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + def on_ivasgn(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + def on_lvasgn(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#47 + def allowed_assignment?(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#104 + def correction_range(tmp_assign, y_assign); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#81 + def lhs(node); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#66 + def message(x_assign, y_assign); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#75 + def replacement(x_assign); end + + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#95 + def rhs(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#60 + def simple_assignment?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#51 + def swapping_values?(tmp_assign, x_assign, y_assign); end +end + +# source://rubocop//lib/rubocop/cop/style/swap_values.rb#25 +RuboCop::Cop::Style::SwapValues::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/swap_values.rb#28 +RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Set) + +# Checks for array literals made up of symbols that are not +# using the %i() syntax. +# +# Alternatively, it checks for symbol arrays using the %i() syntax on +# projects which do not want to use that syntax, perhaps because they +# support a version of Ruby lower than 2.0. +# +# Configuration option: MinSize +# If set, arrays with fewer elements than this value will not trigger the +# cop. For example, a `MinSize` of `3` will not enforce a style on an +# array of 2 or fewer elements. +# +# @example EnforcedStyle: percent (default) +# # good +# %i[foo bar baz] +# +# # bad +# [:foo, :bar, :baz] +# +# # bad (contains spaces) +# %i[foo\ bar baz\ quux] +# +# # bad (contains [] with spaces) +# %i[foo \[ \]] +# +# # bad (contains () with spaces) +# %i(foo \( \)) +# @example EnforcedStyle: brackets +# # good +# [:foo, :bar, :baz] +# +# # bad +# %i[foo bar baz] +# +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#40 +class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ArrayMinSize + include ::RuboCop::Cop::ArraySyntax + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::PercentArray + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#66 + def on_array(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#96 + def build_bracketed_array(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#78 + def complex_content?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#92 + def invalid_percent_array_contents?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#119 + def symbol_without_quote?(string); end + + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#111 + def to_symbol_literal(string); end + + class << self + # Returns the value of attribute largest_brackets. + # + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#63 + def largest_brackets; end + + # Sets the attribute largest_brackets + # + # @param value the value to set the attribute largest_brackets to. + # + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#63 + def largest_brackets=(_arg0); end + end +end + +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#51 +RuboCop::Cop::Style::SymbolArray::ARRAY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#52 +RuboCop::Cop::Style::SymbolArray::DELIMITERS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#50 +RuboCop::Cop::Style::SymbolArray::PERCENT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#57 +RuboCop::Cop::Style::SymbolArray::REDEFINABLE_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#53 +RuboCop::Cop::Style::SymbolArray::SPECIAL_GVARS = T.let(T.unsafe(nil), Array) + +# Checks symbol literal syntax. +# +# @example +# +# # bad +# :"symbol" +# +# # good +# :symbol +# +# source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#15 +class RuboCop::Cop::Style::SymbolLiteral < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#20 + def on_sym(node); end +end + +# source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#18 +RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) + +# Use symbols as procs when possible. +# +# If you prefer a style that allows block for method with arguments, +# please set `true` to `AllowMethodsWithArguments`. +# `define_method?` methods are allowed by default. +# These are customizable with `AllowedMethods` option. +# +# @example +# # bad +# something.map { |s| s.upcase } +# something.map { _1.upcase } +# +# # good +# something.map(&:upcase) +# @example AllowMethodsWithArguments: false (default) +# # bad +# something.do_something(foo) { |o| o.bar } +# +# # good +# something.do_something(foo, &:bar) +# @example AllowMethodsWithArguments: true +# # good +# something.do_something(foo) { |o| o.bar } +# @example AllowComments: false (default) +# # bad +# something.do_something do |s| # some comment +# # some comment +# s.upcase # some comment +# # some comment +# end +# @example AllowComments: true +# # good - if there are comment in either position +# something.do_something do |s| # some comment +# # some comment +# s.upcase # some comment +# # some comment +# end +# @example AllowedMethods: [define_method] (default) +# # good +# define_method(:foo) { |foo| foo.bar } +# @example AllowedPatterns: [] (default) +# # bad +# something.map { |s| s.upcase } +# @example AllowedPatterns: ['map'] (default) +# # good +# something.map { |s| s.upcase } +# +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#87 +class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#136 + def destructuring_block_argument?(argument_node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#116 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#116 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#98 + def proc_node?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#104 + def symbol_proc?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#101 + def symbol_proc_receiver?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204 + def allow_comments?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200 + def allow_if_method_has_argument?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#151 + def allowed_method_name?(name); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#164 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#176 + def autocorrect_with_args(corrector, node, args, method_name); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#172 + def autocorrect_without_args(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#190 + def begin_pos_for_replacement(node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#185 + def block_range_with_space(node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155 + def register_offense(node, method_name, block_method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147 + def unsafe_array_usage?(node); end + + # See: https://github.com/rubocop/rubocop/issues/10864 + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#143 + def unsafe_hash_usage?(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#111 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#94 +RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#95 +RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array) + +# Corrector to correct conditional assignment in ternary conditions. +# +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#500 +class RuboCop::Cop::Style::TernaryCorrector + extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper + extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper + + class << self + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#505 + def correct(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#509 + def move_assignment_inside_condition(corrector, node); end + + private + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#523 + def correction(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#536 + def element_assignment?(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#540 + def extract_branches(node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#553 + def move_branch_inside_condition(corrector, branch, assignment); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#548 + def remove_parentheses(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#527 + def ternary(node); end + end +end + +# Checks for the presence of parentheses around ternary +# conditions. It is configurable to enforce inclusion or omission of +# parentheses using `EnforcedStyle`. Omission is only enforced when +# removing the parentheses won't cause a different behavior. +# +# `AllowSafeAssignment` option for safe assignment. +# By safe assignment we mean putting parentheses around +# an assignment to indicate "I know I'm using an assignment +# as a condition. It's not a mistake." +# +# @example EnforcedStyle: require_no_parentheses (default) +# # bad +# foo = (bar?) ? a : b +# foo = (bar.baz?) ? a : b +# foo = (bar && baz) ? a : b +# +# # good +# foo = bar? ? a : b +# foo = bar.baz? ? a : b +# foo = bar && baz ? a : b +# @example EnforcedStyle: require_parentheses +# # bad +# foo = bar? ? a : b +# foo = bar.baz? ? a : b +# foo = bar && baz ? a : b +# +# # good +# foo = (bar?) ? a : b +# foo = (bar.baz?) ? a : b +# foo = (bar && baz) ? a : b +# @example EnforcedStyle: require_parentheses_when_complex +# # bad +# foo = (bar?) ? a : b +# foo = (bar.baz?) ? a : b +# foo = bar && baz ? a : b +# +# # good +# foo = bar? ? a : b +# foo = bar.baz? ? a : b +# foo = (bar && baz) ? a : b +# @example AllowSafeAssignment: true (default) +# # good +# foo = (bar = baz) ? a : b +# @example AllowSafeAssignment: false +# # bad +# foo = (bar = baz) ? a : b +# +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#57 +class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base + include ::RuboCop::Cop::SafeAssignment + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#193 + def method_name(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#69 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#100 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#183 + def below_ternary_precedence?(child); end + + # If the condition is parenthesized we recurse and check for any + # complex expressions within it. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#131 + def complex_condition?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#89 + def condition_as_parenthesized_one_line_pattern_matching?(condition); end + + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#198 + def correct_parenthesized(corrector, condition); end + + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#208 + def correct_unparenthesized(corrector, condition); end + + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#151 + def message(node); end + + # Anything that is not a variable, constant, or method/.method call + # will be counted as a complex expression. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#141 + def non_complex_expression?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#145 + def non_complex_send?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#113 + def offense?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#85 + def only_closing_parenthesis_is_last_line?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#169 + def parenthesized?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#161 + def require_parentheses?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#165 + def require_parentheses_when_complex?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#179 + def unparenthesized_method_call?(child); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#173 + def unsafe_autocorrect?(condition); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#212 + def whitespace_after?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#66 +RuboCop::Cop::Style::TernaryParentheses::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#67 +RuboCop::Cop::Style::TernaryParentheses::MSG_COMPLEX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#64 +RuboCop::Cop::Style::TernaryParentheses::NON_COMPLEX_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#63 +RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), Set) + +# Newcomers to ruby applications may write top-level methods, +# when ideally they should be organized in appropriate classes or modules. +# This cop looks for definitions of top-level methods and warns about them. +# +# However for ruby scripts it is perfectly fine to use top-level methods. +# Hence this cop is disabled by default. +# +# @example +# # bad +# def some_method +# end +# +# # bad +# def self.some_method +# end +# +# # bad +# define_method(:foo) { puts 1 } +# +# # good +# module Foo +# def some_method +# end +# end +# +# # good +# class Foo +# def self.some_method +# end +# end +# +# # good +# Struct.new do +# def some_method +# end +# end +# +# # good +# class Foo +# define_method(:foo) { puts 1 } +# end +# +# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#47 +class RuboCop::Cop::Style::TopLevelMethodDefinition < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#79 + def define_method_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 + def on_block(node); end + + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + def on_defs(node); end + + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 + def on_numblock(node); end + + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#70 + def top_level_method_definition?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#48 +RuboCop::Cop::Style::TopLevelMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#50 +RuboCop::Cop::Style::TopLevelMethodDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for trailing code after the class definition. +# +# @example +# # bad +# class Foo; def foo; end +# end +# +# # good +# class Foo +# def foo; end +# end +# +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#18 +class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::TrailingBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 + def on_class(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 + def on_sclass(node); end +end + +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#23 +RuboCop::Cop::Style::TrailingBodyOnClass::MSG = T.let(T.unsafe(nil), String) + +# Checks for trailing code after the method definition. +# +# NOTE: It always accepts endless method definitions that are basically on the same line. +# +# @example +# # bad +# def some_method; do_stuff +# end +# +# def f(x); b = foo +# b[c: x] +# end +# +# # good +# def some_method +# do_stuff +# end +# +# def f(x) +# b = foo +# b[c: x] +# end +# +# def endless_method = do_stuff +# +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#31 +class RuboCop::Cop::Style::TrailingBodyOnMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::TrailingBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 + def on_defs(node); end +end + +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#36 +RuboCop::Cop::Style::TrailingBodyOnMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# Checks for trailing code after the module definition. +# +# @example +# # bad +# module Foo extend self +# end +# +# # good +# module Foo +# extend self +# end +# +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#18 +class RuboCop::Cop::Style::TrailingBodyOnModule < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::TrailingBody + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#25 + def on_module(node); end +end + +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#23 +RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String) + +# Checks for trailing comma in argument lists. +# The supported styles are: +# +# * `consistent_comma`: Requires a comma after the last argument, +# for all parenthesized method calls with arguments. +# * `comma`: Requires a comma after the last argument, but only for +# parenthesized method calls where each argument is on its own line. +# * `no_comma`: Requires that there is no comma after the last +# argument. +# +# @example EnforcedStyleForMultiline: consistent_comma +# # bad +# method(1, 2,) +# +# # good +# method(1, 2) +# +# # good +# method( +# 1, 2, +# 3, +# ) +# +# # good +# method( +# 1, 2, 3, +# ) +# +# # good +# method( +# 1, +# 2, +# ) +# @example EnforcedStyleForMultiline: comma +# # bad +# method(1, 2,) +# +# # good +# method(1, 2) +# +# # bad +# method( +# 1, 2, +# 3, +# ) +# +# # good +# method( +# 1, 2, +# 3 +# ) +# +# # bad +# method( +# 1, 2, 3, +# ) +# +# # good +# method( +# 1, 2, 3 +# ) +# +# # good +# method( +# 1, +# 2, +# ) +# @example EnforcedStyleForMultiline: no_comma (default) +# # bad +# method(1, 2,) +# +# # good +# method(1, 2) +# +# # good +# method( +# 1, +# 2 +# ) +# +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#87 +class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::TrailingComma + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 + def on_csend(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 + def on_send(node); end + + class << self + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#91 + def autocorrect_incompatible_with; end + end +end + +# Checks for trailing comma in array literals. +# The configuration options are: +# +# * `consistent_comma`: Requires a comma after the +# last item of all non-empty, multiline array literals. +# * `comma`: Requires a comma after last item in an array, +# but only when each item is on its own line. +# * `no_comma`: Does not require a comma after the +# last item in an array +# +# @example EnforcedStyleForMultiline: consistent_comma +# # bad +# a = [1, 2,] +# +# # good +# a = [1, 2] +# +# # good +# a = [ +# 1, 2, +# 3, +# ] +# +# # good +# a = [ +# 1, 2, 3, +# ] +# +# # good +# a = [ +# 1, +# 2, +# ] +# @example EnforcedStyleForMultiline: comma +# # bad +# a = [1, 2,] +# +# # good +# a = [1, 2] +# +# # bad +# a = [ +# 1, 2, +# 3, +# ] +# +# # good +# a = [ +# 1, 2, +# 3 +# ] +# +# # bad +# a = [ +# 1, 2, 3, +# ] +# +# # good +# a = [ +# 1, 2, 3 +# ] +# +# # good +# a = [ +# 1, +# 2, +# ] +# @example EnforcedStyleForMultiline: no_comma (default) +# # bad +# a = [1, 2,] +# +# # good +# a = [ +# 1, +# 2 +# ] +# +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#84 +class RuboCop::Cop::Style::TrailingCommaInArrayLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::TrailingComma + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#88 + def on_array(node); end +end + +# Checks whether trailing commas in block arguments are +# required. Blocks with only one argument and a trailing comma require +# that comma to be present. Blocks with more than one argument never +# require a trailing comma. +# +# @example +# # bad +# add { |foo, bar,| foo + bar } +# +# # good +# add { |foo, bar| foo + bar } +# +# # good +# add { |foo,| foo } +# +# # good +# add { foo } +# +# # bad +# add do |foo, bar,| +# foo + bar +# end +# +# # good +# add do |foo, bar| +# foo + bar +# end +# +# # good +# add do |foo,| +# foo +# end +# +# # good +# add do +# foo + bar +# end +# +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#62 +class RuboCop::Cop::Style::TrailingCommaInBlockArgs < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#67 + def on_block(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#83 + def arg_count(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#95 + def argument_tokens(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#91 + def last_comma(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#87 + def trailing_comma?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#79 + def useless_trailing_comma?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#65 +RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String) + +# Checks for trailing comma in hash literals. +# The configuration options are: +# +# * `consistent_comma`: Requires a comma after the +# last item of all non-empty, multiline hash literals. +# * `comma`: Requires a comma after the last item in a hash, +# but only when each item is on its own line. +# * `no_comma`: Does not require a comma after the +# last item in a hash +# +# @example EnforcedStyleForMultiline: consistent_comma +# +# # bad +# a = { foo: 1, bar: 2, } +# +# # good +# a = { foo: 1, bar: 2 } +# +# # good +# a = { +# foo: 1, bar: 2, +# qux: 3, +# } +# +# # good +# a = { +# foo: 1, bar: 2, qux: 3, +# } +# +# # good +# a = { +# foo: 1, +# bar: 2, +# } +# @example EnforcedStyleForMultiline: comma +# +# # bad +# a = { foo: 1, bar: 2, } +# +# # good +# a = { foo: 1, bar: 2 } +# +# # bad +# a = { +# foo: 1, bar: 2, +# qux: 3, +# } +# +# # good +# a = { +# foo: 1, bar: 2, +# qux: 3 +# } +# +# # bad +# a = { +# foo: 1, bar: 2, qux: 3, +# } +# +# # good +# a = { +# foo: 1, bar: 2, qux: 3 +# } +# +# # good +# a = { +# foo: 1, +# bar: 2, +# } +# @example EnforcedStyleForMultiline: no_comma (default) +# +# # bad +# a = { foo: 1, bar: 2, } +# +# # good +# a = { +# foo: 1, +# bar: 2 +# } +# +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#87 +class RuboCop::Cop::Style::TrailingCommaInHashLiteral < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::TrailingComma + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#91 + def on_hash(node); end +end + +# Checks for trailing code after the method definition. +# +# @example +# # bad +# def some_method +# do_stuff; end +# +# def do_this(x) +# baz.map { |b| b.this(x) } end +# +# def foo +# block do +# bar +# end end +# +# # good +# def some_method +# do_stuff +# end +# +# def do_this(x) +# baz.map { |b| b.this(x) } +# end +# +# def foo +# block do +# bar +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#36 +class RuboCop::Cop::Style::TrailingMethodEndStatement < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#41 + def on_def(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#55 + def body_and_end_on_same_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#51 + def trailing_end?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#39 +RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), String) + +# Checks for extra underscores in variable assignment. +# +# @example +# # bad +# a, b, _ = foo() +# a, b, _, = foo() +# a, _, _ = foo() +# a, _, _, = foo() +# +# # good +# a, b, = foo() +# a, = foo() +# *a, b, _ = foo() +# # => We need to know to not include 2 variables in a +# a, *b, _ = foo() +# # => The correction `a, *b, = foo()` is a syntax error +# @example AllowNamedUnderscoreVariables: true (default) +# # good +# a, b, _something = foo() +# @example AllowNamedUnderscoreVariables: false +# # bad +# a, b, _something = foo() +# +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#31 +class RuboCop::Cop::Style::TrailingUnderscoreVariable < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SurroundingSpace + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#41 + def on_masgn(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#92 + def allow_named_underscore_variables; end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#125 + def children_offenses(variables); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#57 + def find_first_offense(variables); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#66 + def find_first_possible_offense(variables); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#108 + def main_node_offense(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#146 + def range_for_parentheses(offense, left); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#88 + def reverse_index(collection, item); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#80 + def splat_variable_before?(first_offense, variables); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#96 + def unneeded_ranges(node); end + + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#133 + def unused_range(node_type, mlhs_node, right); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#129 + def unused_variables_only?(offense, variables); end +end + +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#38 +RuboCop::Cop::Style::TrailingUnderscoreVariable::DISALLOW = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#36 +RuboCop::Cop::Style::TrailingUnderscoreVariable::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#37 +RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil), String) + +# Looks for trivial reader/writer methods, that could +# have been created with the attr_* family of functions automatically. +# `to_ary`, `to_a`, `to_c`, `to_enum`, `to_h`, `to_hash`, `to_i`, `to_int`, `to_io`, +# `to_open`, `to_path`, `to_proc`, `to_r`, `to_regexp`, `to_str`, `to_s`, and `to_sym` methods +# are allowed by default. These are customizable with `AllowedMethods` option. +# +# @example +# # bad +# def foo +# @foo +# end +# +# def bar=(val) +# @bar = val +# end +# +# def self.baz +# @baz +# end +# +# # good +# attr_reader :foo +# attr_writer :bar +# +# class << self +# attr_reader :baz +# end +# @example ExactNameMatch: true (default) +# # good +# def name +# @other_name +# end +# @example ExactNameMatch: false +# # bad +# def name +# @other_name +# end +# @example AllowPredicates: true (default) +# # good +# def foo? +# @foo +# end +# @example AllowPredicates: false +# # bad +# def foo? +# @foo +# end +# +# # good +# attr_reader :foo +# @example AllowDSLWriters: true (default) +# # good +# def on_exception(action) +# @on_exception=action +# end +# @example AllowDSLWriters: false +# # bad +# def on_exception(action) +# @on_exception=action +# end +# +# # good +# attr_writer :on_exception +# @example IgnoreClassMethods: false (default) +# # bad +# def self.foo +# @foo +# end +# +# # good +# class << self +# attr_reader :foo +# end +# @example IgnoreClassMethods: true +# # good +# def self.foo +# @foo +# end +# @example AllowedMethods: ['allowed_method'] +# # good +# def allowed_method +# @foo +# end +# +# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#98 +class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Base + include ::RuboCop::Cop::AllowedMethods + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#190 + def looks_like_trivial_writer?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 + def on_def(node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 + def on_defs(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#222 + def accessor(kind, method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#161 + def allow_dsl_writers?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#157 + def allow_predicates?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#195 + def allowed_method_name?(node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#169 + def allowed_method_names; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#204 + def allowed_reader?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#200 + def allowed_writer?(node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#142 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#234 + def autocorrect_class(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#226 + def autocorrect_instance(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#173 + def dsl_writer?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#153 + def exact_name_match?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#165 + def ignore_class_methods?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#115 + def in_module_or_instance_eval?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#181 + def looks_like_trivial_reader?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#208 + def names_match?(node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#129 + def on_method_def(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#248 + def top_level_node?(node); end + + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#214 + def trivial_accessor_kind(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#177 + def trivial_reader?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#185 + def trivial_writer?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#102 +RuboCop::Cop::Style::TrivialAccessors::MSG = T.let(T.unsafe(nil), String) + +# Looks for `unless` expressions with `else` clauses. +# +# @example +# # bad +# unless foo_bar.nil? +# # do something... +# else +# # do a different thing... +# end +# +# # good +# if foo_bar.present? +# # do something... +# else +# # do a different thing... +# end +# +# source://rubocop//lib/rubocop/cop/style/unless_else.rb#22 +class RuboCop::Cop::Style::UnlessElse < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/unless_else.rb#28 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/unless_else.rb#45 + def range_between_condition_and_else(node, condition); end + + # source://rubocop//lib/rubocop/cop/style/unless_else.rb#49 + def range_between_else_and_end(node); end +end + +# source://rubocop//lib/rubocop/cop/style/unless_else.rb#26 +RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of logical operators in an `unless` condition. +# It discourages such code, as the condition becomes more difficult +# to read and understand. +# +# This cop supports two styles: +# +# - `forbid_mixed_logical_operators` (default) +# - `forbid_logical_operators` +# +# `forbid_mixed_logical_operators` style forbids the use of more than one type +# of logical operators. This makes the `unless` condition easier to read +# because either all conditions need to be met or any condition need to be met +# in order for the expression to be truthy or falsey. +# +# `forbid_logical_operators` style forbids any use of logical operator. +# This makes it even more easy to read the `unless` condition as +# there is only one condition in the expression. +# +# @example EnforcedStyle: forbid_mixed_logical_operators (default) +# # bad +# return unless a || b && c +# return unless a && b || c +# return unless a && b and c +# return unless a || b or c +# return unless a && b or c +# return unless a || b and c +# +# # good +# return unless a && b && c +# return unless a || b || c +# return unless a and b and c +# return unless a or b or c +# return unless a? +# @example EnforcedStyle: forbid_logical_operators +# # bad +# return unless a || b +# return unless a && b +# return unless a or b +# return unless a and b +# +# # good +# return unless a +# return unless a? +# +# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#50 +class RuboCop::Cop::Style::UnlessLogicalOperators < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#62 + def and_with_or?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#67 + def logical_operator?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#71 + def on_if(node); end + + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#57 + def or_with_and?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#83 + def mixed_logical_operator?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#90 + def mixed_precedence_and?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#97 + def mixed_precedence_or?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#54 +RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_LOGICAL_OPERATORS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#53 +RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_MIXED_LOGICAL_OPERATORS = T.let(T.unsafe(nil), String) + +# Checks for accessing the first element of `String#unpack` +# which can be replaced with the shorter method `unpack1`. +# +# @example +# +# # bad +# 'foo'.unpack('h*').first +# 'foo'.unpack('h*')[0] +# 'foo'.unpack('h*').slice(0) +# 'foo'.unpack('h*').at(0) +# +# # good +# 'foo'.unpack1('h*') +# +# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#20 +class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#38 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#31 + def unpack_and_first_element?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#54 + def first_element_range(node, unpack_call); end +end + +# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#26 +RuboCop::Cop::Style::UnpackFirst::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#28 +RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for variable interpolation (like "#@ivar"). +# +# @example +# # bad +# "His name is #$name" +# /check #$pattern/ +# "Let's go to the #@store" +# +# # good +# "His name is #{$name}" +# /check #{$pattern}/ +# "Let's go to the #{@store}" +# +# source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#18 +class RuboCop::Cop::Style::VariableInterpolation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Interpolation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#25 + def on_node_with_interpolations(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#35 + def message(range); end + + # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#39 + def var_nodes(nodes); end +end + +# source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#22 +RuboCop::Cop::Style::VariableInterpolation::MSG = T.let(T.unsafe(nil), String) + +# Checks for `when;` uses in `case` expressions. +# +# @example +# # bad +# case foo +# when 1; 'baz' +# when 2; 'bar' +# end +# +# # good +# case foo +# when 1 then 'baz' +# when 2 then 'bar' +# end +# +# source://rubocop//lib/rubocop/cop/style/when_then.rb#20 +class RuboCop::Cop::Style::WhenThen < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/when_then.rb#25 + def on_when(node); end +end + +# source://rubocop//lib/rubocop/cop/style/when_then.rb#23 +RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) + +# Checks for uses of `do` in multi-line `while/until` statements. +# +# @example +# +# # bad +# while x.any? do +# do_something(x.pop) +# end +# +# # good +# while x.any? +# do_something(x.pop) +# end +# @example +# +# # bad +# until x.empty? do +# do_something(x.pop) +# end +# +# # good +# until x.empty? +# do_something(x.pop) +# end +# +# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#31 +class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#36 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#36 + def on_while(node); end +end + +# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 +RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) + +# Checks for while and until statements that would fit on one line +# if written as a modifier while/until. The maximum line length is +# configured in the `Layout/LineLength` cop. +# +# @example +# # bad +# while x < 10 +# x += 1 +# end +# +# # good +# x += 1 while x < 10 +# @example +# # bad +# until x > 10 +# x += 1 +# end +# +# # good +# x += 1 until x > 10 +# @example +# # bad +# x += 100 while x < 500 # a long comment that makes code too long if it were a single line +# +# # good +# while x < 500 # a long comment that makes code too long if it were a single line +# x += 100 +# end +# +# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#36 +class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::StatementModifier + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#42 + def on_until(node); end + + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#42 + def on_while(node); end +end + +# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40 +RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) + +# Checks for array literals made up of word-like +# strings, that are not using the %w() syntax. +# +# Alternatively, it can check for uses of the %w() syntax, in projects +# which do not want to include that syntax. +# +# NOTE: When using the `percent` style, %w() arrays containing a space +# will be registered as offenses. +# +# Configuration option: MinSize +# If set, arrays with fewer elements than this value will not trigger the +# cop. For example, a `MinSize` of `3` will not enforce a style on an +# array of 2 or fewer elements. +# +# @example EnforcedStyle: percent (default) +# # good +# %w[foo bar baz] +# +# # bad +# ['foo', 'bar', 'baz'] +# +# # bad (contains spaces) +# %w[foo\ bar baz\ quux] +# +# # bad +# [ +# ['one', 'One'], +# ['two', 'Two'] +# ] +# +# # good +# [ +# %w[one One], +# %w[two Two] +# ] +# +# # good (2d array containing spaces) +# [ +# ['one', 'One'], +# ['two', 'Two'], +# ['forty two', 'Forty Two'] +# ] +# @example EnforcedStyle: brackets +# # good +# ['foo', 'bar', 'baz'] +# +# # bad +# %w[foo bar baz] +# +# # good (contains spaces) +# ['foo bar', 'baz quux'] +# +# # good +# [ +# ['one', 'One'], +# ['two', 'Two'] +# ] +# +# # bad +# [ +# %w[one One], +# %w[two Two] +# ] +# +# source://rubocop//lib/rubocop/cop/style/word_array.rb#71 +class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ArrayMinSize + include ::RuboCop::Cop::ArraySyntax + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::PercentArray + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/word_array.rb#94 + def on_array(node); end + + # source://rubocop//lib/rubocop/cop/style/word_array.rb#85 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/style/word_array.rb#138 + def build_bracketed_array(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#118 + def complex_content?(strings, complex_regex: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#129 + def invalid_percent_array_contents?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#113 + def matrix_of_complex_content?(array); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#107 + def within_matrix_of_complex_content?(node); end + + # source://rubocop//lib/rubocop/cop/style/word_array.rb#134 + def word_regex; end + + class << self + # Returns the value of attribute largest_brackets. + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#82 + def largest_brackets; end + + # Sets the attribute largest_brackets + # + # @param value the value to set the attribute largest_brackets to. + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#82 + def largest_brackets=(_arg0); end + end +end + +# source://rubocop//lib/rubocop/cop/style/word_array.rb#79 +RuboCop::Cop::Style::WordArray::ARRAY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/word_array.rb#78 +RuboCop::Cop::Style::WordArray::PERCENT_MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of `YAML.load`, `YAML.safe_load`, and `YAML.parse` with +# `File.read` argument. +# +# NOTE: `YAML.safe_load_file` was introduced in Ruby 3.0. +# +# @example +# +# # bad +# YAML.load(File.read(path)) +# YAML.parse(File.read(path)) +# +# # good +# YAML.load_file(path) +# YAML.parse_file(path) +# +# # bad +# YAML.safe_load(File.read(path)) # Ruby 3.0 and newer +# +# # good +# YAML.safe_load_file(path) # Ruby 3.0 and newer +# +# source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#27 +class RuboCop::Cop::Style::YAMLFileRead < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#41 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#34 + def yaml_file_read?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#60 + def offense_range(node); end +end + +# source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#30 +RuboCop::Cop::Style::YAMLFileRead::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#31 +RuboCop::Cop::Style::YAMLFileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces or forbids Yoda conditions, +# i.e. comparison operations where the order of expression is reversed. +# eg. `5 == x` +# +# @example EnforcedStyle: forbid_for_all_comparison_operators (default) +# # bad +# 99 == foo +# "bar" != foo +# 42 >= foo +# 10 < bar +# 99 == CONST +# +# # good +# foo == 99 +# foo == "bar" +# foo <= 42 +# bar > 10 +# CONST == 99 +# "#{interpolation}" == foo +# /#{interpolation}/ == foo +# @example EnforcedStyle: forbid_for_equality_operators_only +# # bad +# 99 == foo +# "bar" != foo +# +# # good +# 99 >= foo +# 3 < a && a < 5 +# @example EnforcedStyle: require_for_all_comparison_operators +# # bad +# foo == 99 +# foo == "bar" +# foo <= 42 +# bar > 10 +# +# # good +# 99 == foo +# "bar" != foo +# 42 >= foo +# 10 < bar +# @example EnforcedStyle: require_for_equality_operators_only +# # bad +# 99 >= foo +# 3 < a && a < 5 +# +# # good +# 99 == foo +# "bar" != foo +# +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#77 +class RuboCop::Cop::Style::YodaCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#90 + def file_constant_equal_program_name?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#94 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#149 + def actual_code_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#145 + def constant_portion?(node); end + + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#138 + def corrected_code(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#107 + def enforce_yoda?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#112 + def equality_only?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#173 + def interpolation?(node); end + + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#134 + def message(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#157 + def non_equality_operator?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#161 + def noncommutative_operator?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#169 + def program_name?(name); end + + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#153 + def reverse_comparison(operator); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#165 + def source_file_path_constant?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#122 + def valid_yoda?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#117 + def yoda_compatible_condition?(node); end +end + +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#84 +RuboCop::Cop::Style::YodaCondition::EQUALITY_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#82 +RuboCop::Cop::Style::YodaCondition::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#85 +RuboCop::Cop::Style::YodaCondition::NONCOMMUTATIVE_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#86 +RuboCop::Cop::Style::YodaCondition::PROGRAM_NAMES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#87 +RuboCop::Cop::Style::YodaCondition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#83 +RuboCop::Cop::Style::YodaCondition::REVERSE_COMPARISON = T.let(T.unsafe(nil), Hash) + +# Forbids Yoda expressions, i.e. binary operations (using `*`, `+`, `&`, `|`, +# and `^` operators) where the order of expression is reversed, eg. `1 + x`. +# This cop complements `Style/YodaCondition` cop, which has a similar purpose. +# +# This cop is disabled by default to respect user intentions such as: +# +# [source,ruby] +# ---- +# config.server_port = 9000 + ENV["TEST_ENV_NUMBER"].to_i +# ---- +# +# @example SupportedOperators: ['*', '+', '&', '|', '^'] (default) +# # bad +# 10 * y +# 1 + x +# 1 & z +# 1 | x +# 1 ^ x +# 1 + CONST +# +# # good +# y * 10 +# x + 1 +# z & 1 +# x | 1 +# x ^ 1 +# CONST + 1 +# 60 * 24 +# +# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#40 +class RuboCop::Cop::Style::YodaExpression < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#47 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#51 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#73 + def constant_portion?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#81 + def offended_ancestor?(node); end + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#85 + def offended_nodes; end + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#77 + def supported_operators; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#69 + def yoda_expression_constant?(lhs, rhs); end +end + +# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#43 +RuboCop::Cop::Style::YodaExpression::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#45 +RuboCop::Cop::Style::YodaExpression::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for numeric comparisons that can be replaced +# by a predicate method, such as `receiver.length == 0`, +# `receiver.length > 0`, and `receiver.length != 0`, +# `receiver.length < 1` and `receiver.size == 0` that can be +# replaced by `receiver.empty?` and `!receiver.empty?`. +# +# NOTE: `File`, `Tempfile`, and `StringIO` do not have `empty?` +# so allow `size == 0` and `size.zero?`. +# +# @example +# # bad +# [1, 2, 3].length == 0 +# 0 == "foobar".length +# array.length < 1 +# {a: 1, b: 2}.length != 0 +# string.length > 0 +# hash.size > 0 +# +# # good +# [1, 2, 3].empty? +# "foobar".empty? +# array.empty? +# !{a: 1, b: 2}.empty? +# !string.empty? +# !hash.empty? +# +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#37 +class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # Some collection like objects in the Ruby standard library + # implement `#size`, but not `#empty`. We ignore those to + # reduce false positives. + # + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#139 + def non_polymorphic_collection?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#109 + def nonzero_length_comparison(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#45 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#130 + def other_receiver(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#101 + def zero_length_comparison(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#96 + def zero_length_predicate(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#122 + def zero_length_receiver(param0 = T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#80 + def check_nonzero_length_comparison(node); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#65 + def check_zero_length_comparison(node); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#53 + def check_zero_length_predicate(node); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#114 + def replacement(node); end +end + +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#41 +RuboCop::Cop::Style::ZeroLengthPredicate::NONZERO_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#43 +RuboCop::Cop::Style::ZeroLengthPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#40 +RuboCop::Cop::Style::ZeroLengthPredicate::ZERO_MSG = T.let(T.unsafe(nil), String) + +# Common functionality for checking and correcting surrounding whitespace. +# +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#6 +module RuboCop::Cop::SurroundingSpace + include ::RuboCop::Cop::RangeHelp + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#110 + def empty_brackets?(left_bracket_token, right_bracket_token, tokens: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#104 + def empty_offense(node, range, message, command); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#94 + def empty_offenses(node, left, right, message); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#68 + def extra_space?(token, side); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#129 + def no_character_between?(left_bracket_token, right_bracket_token); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#38 + def no_space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#120 + def offending_empty_no_space?(config, left_token, right_token); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#116 + def offending_empty_space?(config, left_token, right_token); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#33 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#78 + def reposition(src, pos, step, include_newlines: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#16 + def side_space_range(range:, side:, include_newlines: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#124 + def space_between?(left_bracket_token, right_bracket_token); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#85 + def space_offense(node, token, side, message, command); end + + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#53 + def space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end +end + +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#9 +RuboCop::Cop::SurroundingSpace::NO_SPACE_COMMAND = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#12 +RuboCop::Cop::SurroundingSpace::SINGLE_SPACE_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#10 +RuboCop::Cop::SurroundingSpace::SPACE_COMMAND = T.let(T.unsafe(nil), String) + +# Classes that include this module just implement functions for working +# with symbol nodes. +# +# source://rubocop//lib/rubocop/cop/mixin/symbol_help.rb#7 +module RuboCop::Cop::SymbolHelp + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/symbol_help.rb#8 + def hash_key?(node); end +end + +# Common functionality for checking target ruby version. +# +# source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#6 +module RuboCop::Cop::TargetRubyVersion + # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#11 + def minimum_target_ruby_version(version); end + + # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#7 + def required_minimum_ruby_version; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#15 + def support_target_ruby_version?(version); end +end + +# A group of cops, ready to be called on duty to inspect files. +# Team is responsible for selecting only relevant cops to be sent on duty, +# as well as insuring that the needed forces are sent along with them. +# +# For performance reasons, Team will first dispatch cops & forces in two groups, +# first the ones needed for autocorrection (if any), then the rest +# (unless autocorrections happened). +# +# source://rubocop//lib/rubocop/cop/team.rb#12 +class RuboCop::Cop::Team + # @return [Team] a new instance of Team + # + # source://rubocop//lib/rubocop/cop/team.rb#55 + def initialize(cops, config = T.unsafe(nil), options = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/team.rb#66 + def autocorrect?; end + + # Returns the value of attribute cops. + # + # source://rubocop//lib/rubocop/cop/team.rb#51 + def cops; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/team.rb#70 + def debug?; end + + # Returns the value of attribute errors. + # + # source://rubocop//lib/rubocop/cop/team.rb#51 + def errors; end + + # source://rubocop//lib/rubocop/cop/team.rb#114 + def external_dependency_checksum; end + + # @deprecated + # + # source://rubocop//lib/rubocop/cop/team.rb#110 + def forces; end + + # source://rubocop//lib/rubocop/cop/team.rb#76 + def inspect_file(processed_source); end + + # @return [Commissioner::InvestigationReport] + # + # source://rubocop//lib/rubocop/cop/team.rb#81 + def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end + + # Returns the value of attribute updated_source_file. + # + # source://rubocop//lib/rubocop/cop/team.rb#51 + def updated_source_file; end + + # Returns the value of attribute updated_source_file. + # + # source://rubocop//lib/rubocop/cop/team.rb#51 + def updated_source_file?; end + + # Returns the value of attribute warnings. + # + # source://rubocop//lib/rubocop/cop/team.rb#51 + def warnings; end + + private + + # source://rubocop//lib/rubocop/cop/team.rb#121 + def autocorrect(processed_source, report, original:, offset:); end + + # source://rubocop//lib/rubocop/cop/team.rb#182 + def autocorrect_report(report, offset:, original:); end + + # source://rubocop//lib/rubocop/cop/team.rb#140 + def be_ready; end + + # source://rubocop//lib/rubocop/cop/team.rb#188 + def collate_corrections(report, offset:, original:); end + + # source://rubocop//lib/rubocop/cop/team.rb#204 + def each_corrector(report); end + + # source://rubocop//lib/rubocop/cop/team.rb#254 + def handle_error(error, location, cop); end + + # source://rubocop//lib/rubocop/cop/team.rb#246 + def handle_warning(error, location); end + + # @return [Commissioner::InvestigationReport] + # + # source://rubocop//lib/rubocop/cop/team.rb#154 + def investigate_partial(cops, processed_source, offset:, original:); end + + # source://rubocop//lib/rubocop/cop/team.rb#231 + def process_errors(file, errors); end + + # source://rubocop//lib/rubocop/cop/team.rb#148 + def reset; end + + # @return [Array<cop>] + # + # source://rubocop//lib/rubocop/cop/team.rb#160 + def roundup_relevant_cops(processed_source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/team.rb#176 + def support_target_rails_version?(cop); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/team.rb#170 + def support_target_ruby_version?(cop); end + + # source://rubocop//lib/rubocop/cop/team.rb#219 + def suppress_clobbering; end + + # source://rubocop//lib/rubocop/cop/team.rb#225 + def validate_config; end + + class << self + # @return [Array<Force>] needed for the given cops + # + # source://rubocop//lib/rubocop/cop/team.rb#37 + def forces_for(cops); end + + # @return [Team] with cops assembled from the given `cop_classes` + # + # source://rubocop//lib/rubocop/cop/team.rb#22 + def mobilize(cop_classes, config, options = T.unsafe(nil)); end + + # @return [Array<Cop::Base>] + # + # source://rubocop//lib/rubocop/cop/team.rb#28 + def mobilize_cops(cop_classes, config, options = T.unsafe(nil)); end + + # @return [Team] + # + # source://rubocop//lib/rubocop/cop/team.rb#14 + def new(cop_or_classes, config, options = T.unsafe(nil)); end + end +end + +# Common methods shared by TrailingBody cops +# +# source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#6 +module RuboCop::Cop::TrailingBody + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#12 + def body_on_first_line?(node, body); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#16 + def first_part_of(body); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#7 + def trailing_body?(node); end +end + +# Common methods shared by Style/TrailingCommaInArguments and +# Style/TrailingCommaInLiteral +# +# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#7 +module RuboCop::Cop::TrailingComma + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + + private + + # A single argument with the closing bracket on the same line as the end + # of the argument is not considered multiline, even if the argument + # itself might span multiple lines. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#104 + def allowed_multiline_argument?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#167 + def any_heredoc?(items); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#159 + def autocorrect_range(item); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#133 + def avoid_comma(kind, comma_begin_pos, extra_info); end + + # Returns true if the node has round/square/curly brackets. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#82 + def brackets?(node); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#19 + def check(node, items, kind, begin_pos, end_pos); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#37 + def check_comma(node, kind, comma_pos); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#43 + def check_literal(node, kind); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#30 + def comma_offset(items, range); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#108 + def elements(node); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#54 + def extra_avoid_comma_info; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#171 + def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#189 + def heredoc_send?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#76 + def inside_comment?(range, comma_offset); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#93 + def method_name_and_arguments_on_same_line?(node); end + + # Returns true if the round/square/curly brackets of the given node are + # on different lines, each item within is on its own line, and the + # closing bracket is on its own line. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#89 + def multiline?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#123 + def no_elements_on_same_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#129 + def on_same_line?(range1, range2); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#147 + def put_comma(items, kind); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#65 + def should_have_comma?(style, node); end + + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#15 + def style_parameter_name; end +end + +# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#11 +RuboCop::Cop::TrailingComma::MSG = T.let(T.unsafe(nil), String) + +# Common functionality shared by Uncommunicative cops +# +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#6 +module RuboCop::Cop::UncommunicativeName + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#12 + def check(node, args); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#95 + def allow_nums; end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#87 + def allowed_names; end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#78 + def arg_range(arg, length); end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#45 + def case_offense(node, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#64 + def ends_with_num?(name); end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#91 + def forbidden_names; end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#83 + def forbidden_offense(node, range, name); end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#36 + def issue_offenses(node, range, name); end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#68 + def length_offense(node, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#74 + def long_enough?(name); end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#99 + def min_length; end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#53 + def name_type(node); end + + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#60 + def num_offense(node, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#49 + def uppercase?(name); end +end + +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#7 +RuboCop::Cop::UncommunicativeName::CASE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#10 +RuboCop::Cop::UncommunicativeName::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#9 +RuboCop::Cop::UncommunicativeName::LENGTH_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#8 +RuboCop::Cop::UncommunicativeName::NUM_MSG = T.let(T.unsafe(nil), String) + +# This autocorrects unused arguments. +# +# source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#6 +class RuboCop::Cop::UnusedArgCorrector + extend ::RuboCop::Cop::RangeHelp + + class << self + # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#12 + def correct(corrector, processed_source, node); end + + # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#31 + def correct_for_blockarg_type(corrector, node); end + + # Returns the value of attribute processed_source. + # + # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#10 + def processed_source; end + end +end + +# This module contains a collection of useful utility methods. +# +# source://rubocop//lib/rubocop/cop/util.rb#7 +module RuboCop::Cop::Util + include ::RuboCop::PathUtil + + private + + # source://rubocop//lib/rubocop/cop/util.rb#35 + def add_parentheses(node, corrector); end + + # source://rubocop//lib/rubocop/cop/util.rb#56 + def any_descendant?(node, *types); end + + # source://rubocop//lib/rubocop/cop/util.rb#71 + def args_begin(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#83 + def args_end(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#104 + def begins_its_line?(range); end + + # This is a bad API + # + # source://rubocop//lib/rubocop/cop/util.rb#17 + def comment_line?(line_source); end + + # @deprecated Use `ProcessedSource#line_with_comment?`, `contains_comment?` or similar + # + # source://rubocop//lib/rubocop/cop/util.rb#22 + def comment_lines?(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#192 + def compatible_external_encoding_for?(src); end + + # If converting a string to Ruby string literal source code, must + # double quotes be used? + # + # source://rubocop//lib/rubocop/cop/util.rb#130 + def double_quotes_required?(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#144 + def escape_string(string); end + + # Returns, for example, a bare `if` node if the given node is an `if` + # with calls chained to the end of it. + # + # source://rubocop//lib/rubocop/cop/util.rb#114 + def first_part_of_call_chain(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#197 + def include_or_equal?(source, target); end + + # source://rubocop//lib/rubocop/cop/util.rb#179 + def indent(node, offset: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/util.rb#161 + def interpret_string_escapes(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#165 + def line(node_or_range); end + + # source://rubocop//lib/rubocop/cop/util.rb#26 + def line_range(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#140 + def needs_escaping?(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#87 + def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end + + # source://rubocop//lib/rubocop/cop/util.rb#30 + def parentheses?(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#173 + def same_line?(node1, node2); end + + # source://rubocop//lib/rubocop/cop/util.rb#148 + def to_string_literal(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#185 + def to_supported_styles(enforced_style); end + + # source://rubocop//lib/rubocop/cop/util.rb#157 + def trim_string_interpolation_escape_character(str); end + + class << self + # source://rubocop//lib/rubocop/cop/util.rb#35 + def add_parentheses(node, corrector); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#56 + def any_descendant?(node, *types); end + + # source://rubocop//lib/rubocop/cop/util.rb#71 + def args_begin(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#83 + def args_end(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#104 + def begins_its_line?(range); end + + # This is a bad API + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#17 + def comment_line?(line_source); end + + # @deprecated Use `ProcessedSource#line_with_comment?`, `contains_comment?` or similar + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#22 + def comment_lines?(node); end + + # If converting a string to Ruby string literal source code, must + # double quotes be used? + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#130 + def double_quotes_required?(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#144 + def escape_string(string); end + + # Returns, for example, a bare `if` node if the given node is an `if` + # with calls chained to the end of it. + # + # source://rubocop//lib/rubocop/cop/util.rb#114 + def first_part_of_call_chain(node); end + + # source://rubocop//lib/rubocop/cop/util.rb#179 + def indent(node, offset: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/util.rb#161 + def interpret_string_escapes(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#165 + def line(node_or_range); end + + # source://rubocop//lib/rubocop/cop/util.rb#26 + def line_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#140 + def needs_escaping?(string); end + + # @yield [sexp] + # + # source://rubocop//lib/rubocop/cop/util.rb#87 + def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#30 + def parentheses?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#173 + def same_line?(node1, node2); end + + # source://rubocop//lib/rubocop/cop/util.rb#148 + def to_string_literal(string); end + + # source://rubocop//lib/rubocop/cop/util.rb#185 + def to_supported_styles(enforced_style); end + + # source://rubocop//lib/rubocop/cop/util.rb#157 + def trim_string_interpolation_escape_character(str); end + end +end + +# source://rubocop//lib/rubocop/cop/util.rb#99 +RuboCop::Cop::Util::LINE_BEGINS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) + +# Match literal regex characters, not including anchors, character +# classes, alternatives, groups, repetitions, references, etc +# +# source://rubocop//lib/rubocop/cop/util.rb#12 +RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp) + +# Arbitrarily chosen value, should be enough to cover +# the most nested source code in real world projects. +# +# source://rubocop//lib/rubocop/cop/util.rb#98 +RuboCop::Cop::Util::MAX_LINE_BEGINS_REGEX_INDEX = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#5 +module RuboCop::Cop::Utils; end + +# Parses {Kernel#sprintf} format strings. +# +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#7 +class RuboCop::Cop::Utils::FormatString + # @return [FormatString] a new instance of FormatString + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#89 + def initialize(string); end + + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#93 + def format_sequences; end + + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#105 + def max_digit_dollar_num; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#101 + def named_interpolation?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#97 + def valid?; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#117 + def mixed_formats?; end + + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#111 + def parse; end +end + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#8 +RuboCop::Cop::Utils::FormatString::DIGIT_DOLLAR = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#9 +RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) + +# The syntax of a format sequence is as follows. +# +# ``` +# %[flags][width][.precision]type +# ``` +# +# A format sequence consists of a percent sign, followed by optional +# flags, width, and precision indicators, then terminated with a field +# type character. +# +# For more complex formatting, Ruby supports a reference by name. +# +# @see https://ruby-doc.org/core-2.6.3/Kernel.html#method-i-format +# +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#43 +class RuboCop::Cop::Utils::FormatString::FormatSequence + # @return [FormatSequence] a new instance of FormatSequence + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#46 + def initialize(match); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#61 + def annotated?; end + + # Number of arguments required for the format sequence + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#70 + def arity; end + + # Returns the value of attribute begin_pos. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def begin_pos; end + + # Returns the value of attribute end_pos. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def end_pos; end + + # Returns the value of attribute flags. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def flags; end + + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#74 + def max_digit_dollar_num; end + + # Returns the value of attribute name. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def name; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#57 + def percent?; end + + # Returns the value of attribute precision. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def precision; end + + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#78 + def style; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#65 + def template?; end + + # Returns the value of attribute type. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def type; end + + # Returns the value of attribute width. + # + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + def width; end +end + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#15 +RuboCop::Cop::Utils::FormatString::NAME = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#11 +RuboCop::Cop::Utils::FormatString::NUMBER = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#10 +RuboCop::Cop::Utils::FormatString::NUMBER_ARG = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#13 +RuboCop::Cop::Utils::FormatString::PRECISION = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#18 +RuboCop::Cop::Utils::FormatString::SEQUENCE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#16 +RuboCop::Cop::Utils::FormatString::TEMPLATE_NAME = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#14 +RuboCop::Cop::Utils::FormatString::TYPE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#12 +RuboCop::Cop::Utils::FormatString::WIDTH = T.let(T.unsafe(nil), Regexp) + +# Helper to abstract complexity of building range pairs +# with octal escape reconstruction (needed for regexp_parser < 2.7). +# +# source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#8 +class RuboCop::Cop::Utils::RegexpRanges + # @return [RegexpRanges] a new instance of RegexpRanges + # + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#11 + def initialize(root); end + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#18 + def compound_token; end + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#24 + def pairs; end + + # Returns the value of attribute root. + # + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#9 + def root; end + + private + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#78 + def compose_range(expressions, current); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#90 + def escaped_octal?(expr); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#94 + def octal_digit?(char); end + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#98 + def pop_octal_digits(expressions); end + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#44 + def populate(expr); end + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#32 + def populate_all; end + + # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#63 + def process_set(expressions, current); end +end + +# This force provides a way to track local variables and scopes of Ruby. +# Cops interact with this force need to override some of the hook methods. +# +# def before_entering_scope(scope, variable_table) +# end +# +# def after_entering_scope(scope, variable_table) +# end +# +# def before_leaving_scope(scope, variable_table) +# end +# +# def after_leaving_scope(scope, variable_table) +# end +# +# def before_declaring_variable(variable, variable_table) +# end +# +# def after_declaring_variable(variable, variable_table) +# end +# +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#27 +class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force + # Starting point. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#76 + def investigate(processed_source); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#85 + def process_node(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#71 + def variable_table; end + + private + + # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + def after_declaring_variable(arg); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + def after_entering_scope(arg); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + def after_leaving_scope(arg); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + def before_declaring_variable(arg); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + def before_entering_scope(arg); end + + # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + def before_leaving_scope(arg); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#339 + def descendant_reference(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#329 + def each_descendant_reference(loop_node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#314 + def find_variables_in_loop(loop_node); end + + # This is called for each scope recursively. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#94 + def inspect_variables_in_scope(scope_node); end + + # Mark all assignments which are referenced in the same loop + # as referenced by ignoring AST order since they would be referenced + # in next iteration. + # + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#295 + def mark_assignments_as_referenced_in_loop(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#126 + def node_handler_method_name(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#100 + def process_children(origin_node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#231 + def process_loop(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#160 + def process_regexp_named_captures(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#246 + def process_rescue(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#265 + def process_scope(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#284 + def process_send(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#142 + def process_variable_assignment(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#130 + def process_variable_declaration(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#219 + def process_variable_multiple_assignment(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#184 + def process_variable_operator_assignment(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#226 + def process_variable_referencing(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#257 + def process_zero_arity_super(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#178 + def regexp_captured_names(node); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#351 + def scanned_node?(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#355 + def scanned_nodes; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#108 + def skip_children!; end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#278 + def twisted_nodes(node); end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#32 +RuboCop::Cop::VariableForce::ARGUMENT_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) + +# This class represents each assignment of a variable. +# +# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#7 +class RuboCop::Cop::VariableForce::Assignment + include ::RuboCop::Cop::VariableForce::Branchable + + # @return [Assignment] a new instance of Assignment + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#16 + def initialize(node, variable); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50 + def exception_assignment?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#72 + def for_assignment?; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#83 + def meta_assignment_node; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#60 + def multiple_assignment?; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#29 + def name; end + + # Returns the value of attribute node. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def node; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#78 + def operator; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#54 + def operator_assignment?; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#37 + def reference!(node); end + + # Returns the value of attribute referenced. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def referenced; end + + # Returns the value of attribute referenced. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def referenced?; end + + # Returns the value of attribute references. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def references; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#46 + def regexp_named_capture?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#66 + def rest_assignment?; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#33 + def scope; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#42 + def used?; end + + # Returns the value of attribute variable. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def variable; end + + private + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#125 + def find_multiple_assignment_node(grandparent_node); end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#121 + def for_assignment_node; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#104 + def multiple_assignment_node; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#96 + def operator_assignment_node; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#114 + def rest_assignment_node; end +end + +# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#10 +RuboCop::Cop::VariableForce::Assignment::MULTIPLE_LEFT_HAND_SIDE_TYPE = T.let(T.unsafe(nil), Symbol) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#65 +class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#66 + def assignment?; end + + # Returns the value of attribute node + # + # @return [Object] the current value of node + def node; end + + # Sets the attribute node + # + # @param value [Object] the value to set the attribute node to. + # @return [Object] the newly set value + def node=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Namespace for branch classes for each control structure. +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#7 +module RuboCop::Cop::VariableForce::Branch + class << self + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#8 + def of(target_node, scope: T.unsafe(nil)); end + end +end + +# left_body && right_body +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#265 +class RuboCop::Cop::VariableForce::Branch::And < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::LogicalOperator + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def left_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def right_body?; end +end + +# Abstract base class for branch classes. +# A branch represents a conditional branch in a scope. +# +# @example +# def some_scope +# do_something # no branch +# +# if foo +# do_something # branch A +# do_something # branch A +# else +# do_something # branch B +# if bar +# do_something # branch C (whose parent is branch B) +# end +# end +# +# do_something # no branch +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 +class RuboCop::Cop::VariableForce::Branch::Base < ::Struct + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 + def ==(other); end + + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#92 + def always_run?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#88 + def branched?; end + + # Returns the value of attribute child_node + # + # @return [Object] the current value of child_node + def child_node; end + + # Sets the attribute child_node + # + # @param value [Object] the value to set the attribute child_node to. + # @return [Object] the newly set value + def child_node=(_); end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#70 + def control_node; end + + # @yield [_self] + # @yieldparam _self [RuboCop::Cop::VariableForce::Branch::Base] the object that the method was called on + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#80 + def each_ancestor(include_self: T.unsafe(nil), &block); end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 + def eql?(other); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#104 + def exclusive_with?(other); end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#129 + def hash; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#96 + def may_jump_to_other_branch?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#100 + def may_run_incompletely?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#74 + def parent; end + + # Returns the value of attribute scope + # + # @return [Object] the current value of scope + def scope; end + + # Sets the attribute scope + # + # @param value [Object] the value to set the attribute scope to. + # @return [Object] the newly set value + def scope=(_); end + + private + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#135 + def scan_ancestors; end + + class << self + def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#43 + def classes; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#56 + def define_predicate(name, child_index: T.unsafe(nil)); end + + # @private + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#47 + def inherited(subclass); end + + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#52 + def type; end + end +end + +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#325 +RuboCop::Cop::VariableForce::Branch::CLASSES_BY_TYPE = T.let(T.unsafe(nil), Hash) + +# case target +# when /pattern/ # when_clause +# else +# else_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#219 +class RuboCop::Cop::VariableForce::Branch::Case < ::RuboCop::Cop::VariableForce::Branch::Base + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#224 + def always_run?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def else_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def target?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def when_clause?; end +end + +# case target +# in pattern # in_pattern +# else +# else_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#234 +class RuboCop::Cop::VariableForce::Branch::CaseMatch < ::RuboCop::Cop::VariableForce::Branch::Base + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#239 + def always_run?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def else_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def in_pattern?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def target?; end +end + +# begin +# main_body +# ensure +# ensure_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#314 +class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::ExceptionHandler + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#320 + def always_run?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def ensure_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def main_body?; end +end + +# Mix-in module for exception handling control structures. +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#281 +module RuboCop::Cop::VariableForce::Branch::ExceptionHandler + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#282 + def may_jump_to_other_branch?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#286 + def may_run_incompletely?; end +end + +# for element in collection +# loop_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#247 +class RuboCop::Cop::VariableForce::Branch::For < ::RuboCop::Cop::VariableForce::Branch::Base + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#252 + def always_run?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def collection?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def element?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def loop_body?; end +end + +# if conditional_clause +# truthy_body +# else +# falsey_body +# end +# +# unless conditional_clause +# falsey_body +# else +# truthy_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#166 +class RuboCop::Cop::VariableForce::Branch::If < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def conditional_clause?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def falsey_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def truthy_body?; end +end + +# Mix-in module for logical operator control structures. +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#258 +module RuboCop::Cop::VariableForce::Branch::LogicalOperator + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#259 + def always_run?; end +end + +# left_body || right_body +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#273 +class RuboCop::Cop::VariableForce::Branch::Or < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::LogicalOperator + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def left_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def right_body?; end +end + +# begin +# main_body +# rescue StandardError => error # rescue_clause +# else +# else_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#297 +class RuboCop::Cop::VariableForce::Branch::Rescue < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::ExceptionHandler + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#304 + def always_run?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def else_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def main_body?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def rescue_clause?; end +end + +# Mix-in module for simple conditional control structures. +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#145 +module RuboCop::Cop::VariableForce::Branch::SimpleConditional + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#150 + def always_run?; end + + # @raise [NotImplementedError] + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#146 + def conditional_clause?; end +end + +# until conditional_clause +# loop_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#187 +class RuboCop::Cop::VariableForce::Branch::Until < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def conditional_clause?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def loop_body?; end +end + +# begin +# loop_body +# end until conditional_clause +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#207 +class RuboCop::Cop::VariableForce::Branch::UntilPost < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def conditional_clause?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def loop_body?; end +end + +# while conditional_clause +# loop_body +# end +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#177 +class RuboCop::Cop::VariableForce::Branch::While < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def conditional_clause?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def loop_body?; end +end + +# begin +# loop_body +# end while conditional_clause +# +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#197 +class RuboCop::Cop::VariableForce::Branch::WhilePost < ::RuboCop::Cop::VariableForce::Branch::Base + include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def conditional_clause?; end + + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + def loop_body?; end +end + +# Mix-in module for classes which own a node and need branch information +# of the node. The user classes must implement #node and #scope. +# +# source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#8 +module RuboCop::Cop::VariableForce::Branchable + # source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#9 + def branch; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#15 + def run_exclusively_with?(other); end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#39 +RuboCop::Cop::VariableForce::LOGICAL_OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#48 +RuboCop::Cop::VariableForce::LOOP_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#42 +RuboCop::Cop::VariableForce::MULTIPLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#112 +RuboCop::Cop::VariableForce::NODE_HANDLER_METHOD_NAMES = T.let(T.unsafe(nil), Hash) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#40 +RuboCop::Cop::VariableForce::OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#47 +RuboCop::Cop::VariableForce::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#29 +RuboCop::Cop::VariableForce::REGEXP_NAMED_CAPTURE_TYPE = T.let(T.unsafe(nil), Symbol) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#50 +RuboCop::Cop::VariableForce::RESCUE_TYPE = T.let(T.unsafe(nil), Symbol) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#43 +RuboCop::Cop::VariableForce::REST_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) + +# This class represents each reference of a variable. +# +# source://rubocop//lib/rubocop/cop/variable_force/reference.rb#7 +class RuboCop::Cop::VariableForce::Reference + include ::RuboCop::Cop::VariableForce::Branchable + + # @return [Reference] a new instance of Reference + # + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#16 + def initialize(node, scope); end + + # There's an implicit variable reference by the zero-arity `super`: + # + # def some_method(foo) + # super + # end + # + # Another case is `binding`: + # + # def some_method(foo) + # do_something(binding) + # end + # + # In these cases, the variable `foo` is not explicitly referenced, + # but it can be considered used implicitly by the `super` or `binding`. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#41 + def explicit?; end + + # Returns the value of attribute node. + # + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#14 + def node; end + + # Returns the value of attribute scope. + # + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#14 + def scope; end +end + +# source://rubocop//lib/rubocop/cop/variable_force/reference.rb#10 +RuboCop::Cop::VariableForce::Reference::VARIABLE_REFERENCE_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#55 +RuboCop::Cop::VariableForce::SCOPE_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#57 +RuboCop::Cop::VariableForce::SEND_TYPE = T.let(T.unsafe(nil), Symbol) + +# A Scope represents a context of local variable visibility. +# This is a place where local variables belong to. +# A scope instance holds a scope node and variable entries. +# +# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#9 +class RuboCop::Cop::VariableForce::Scope + # @return [Scope] a new instance of Scope + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#22 + def initialize(node); end + + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#35 + def ==(other); end + + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#43 + def body_node; end + + # @yield [node] + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#61 + def each_node(&block); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#57 + def include?(target_node); end + + # Returns the value of attribute naked_top_level. + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + def naked_top_level; end + + # Returns the value of attribute naked_top_level. + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + def naked_top_level?; end + + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#39 + def name; end + + # Returns the value of attribute node. + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + def node; end + + # Returns the value of attribute variables. + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + def variables; end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#100 + def ancestor_node?(target_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#90 + def belong_to_inner_scope?(target_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#79 + def belong_to_outer_scope?(target_node); end + + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#70 + def scan_node(node, &block); end +end + +# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#10 +RuboCop::Cop::VariableForce::Scope::OUTER_SCOPE_CHILD_INDICES = T.let(T.unsafe(nil), Hash) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#54 +RuboCop::Cop::VariableForce::TWISTED_SCOPE_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#28 +RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#30 +RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#45 +RuboCop::Cop::VariableForce::VARIABLE_REFERENCE_TYPE = T.let(T.unsafe(nil), Symbol) + +# A Variable represents existence of a local variable. +# This holds a variable declaration node and some states of the variable. +# +# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#8 +class RuboCop::Cop::VariableForce::Variable + # @return [Variable] a new instance of Variable + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#15 + def initialize(name, declaration_node, scope); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#94 + def argument?; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#31 + def assign(node); end + + # Returns the value of attribute assignments. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def assignments; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#102 + def block_argument?; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#74 + def capture_with_block!; end + + # Returns the value of attribute captured_by_block. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def captured_by_block; end + + # Returns the value of attribute captured_by_block. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def captured_by_block?; end + + # Returns the value of attribute declaration_node. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def declaration_node; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#110 + def explicit_block_local_variable?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#66 + def in_modifier_conditional?(assignment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#106 + def keyword_argument?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#98 + def method_argument?; end + + # Returns the value of attribute name. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def name; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#40 + def reference!(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#35 + def referenced?; end + + # Returns the value of attribute references. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def references; end + + # Returns the value of attribute scope. + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + def scope; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#90 + def should_be_unused?; end + + # This is a convenient way to check whether the variable is used + # in its entire variable lifetime. + # For more precise usage check, refer Assignment#used?. + # + # Once the variable is captured by a block, we have no idea + # when, where, and how many times the block would be invoked. + # This means we cannot track the usage of the variable. + # So we consider it's used to suppress false positive offenses. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#86 + def used?; end +end + +# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#9 +RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#59 +class RuboCop::Cop::VariableForce::VariableReference < ::Struct + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#60 + def assignment?; end + + # Returns the value of attribute name + # + # @return [Object] the current value of name + def name; end + + # Sets the attribute name + # + # @param value [Object] the value to set the attribute name to. + # @return [Object] the newly set value + def name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# A VariableTable manages the lifetime of all scopes and local variables +# in a program. +# This holds scopes as stack structure, provides a way to add local +# variables to current scope, and find local variables by considering +# variable visibility of the current scope. +# +# source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#11 +class RuboCop::Cop::VariableForce::VariableTable + # @return [VariableTable] a new instance of VariableTable + # + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#12 + def initialize(hook_receiver = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#113 + def accessible_variables; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#56 + def assign_to_variable(name, node); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#40 + def current_scope; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#44 + def current_scope_level; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#48 + def declare_variable(name, node); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#94 + def find_variable(name); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#16 + def invoke_hook(hook_name, *args); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#32 + def pop_scope; end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#24 + def push_scope(scope_node); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#68 + def reference_variable(name, node); end + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#20 + def scope_stack; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#109 + def variable_exist?(name); end + + private + + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#122 + def mark_variable_as_captured_by_block_if_so(variable); end +end + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#52 +RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol) + +# Help methods for determining node visibility. +# +# source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#8 +module RuboCop::Cop::VisibilityHelp + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#57 + def visibility_block?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#62 + def visibility_inline_on_def?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#67 + def visibility_inline_on_method_name?(param0 = T.unsafe(nil), method_name:); end + + private + + # Navigate to find the last protected method + # + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#48 + def find_visibility_end(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#43 + def find_visibility_start(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#15 + def node_visibility(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#39 + def node_visibility_from_visibility_block(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#21 + def node_visibility_from_visibility_inline(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#28 + def node_visibility_from_visibility_inline_on_def(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#33 + def node_visibility_from_visibility_inline_on_method_name(node); end +end + +# source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#11 +RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set) + +# This class wraps the `Parser::Source::Comment` object that represents a +# cops it contains. +# +# source://rubocop//lib/rubocop/directive_comment.rb#7 +class RuboCop::DirectiveComment + # @return [DirectiveComment] a new instance of DirectiveComment + # + # source://rubocop//lib/rubocop/directive_comment.rb#30 + def initialize(comment, cop_registry = T.unsafe(nil)); end + + # Checks if all cops specified in this directive + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#80 + def all_cops?; end + + # Returns the value of attribute comment. + # + # source://rubocop//lib/rubocop/directive_comment.rb#28 + def comment; end + + # Returns array of specified in this directive cop names + # + # source://rubocop//lib/rubocop/directive_comment.rb#85 + def cop_names; end + + # Returns the value of attribute cop_registry. + # + # source://rubocop//lib/rubocop/directive_comment.rb#28 + def cop_registry; end + + # Returns the value of attribute cops. + # + # source://rubocop//lib/rubocop/directive_comment.rb#28 + def cops; end + + # Returns array of specified in this directive department names + # when all department disabled + # + # source://rubocop//lib/rubocop/directive_comment.rb#91 + def department_names; end + + # source://rubocop//lib/rubocop/directive_comment.rb#105 + def directive_count; end + + # Checks if this directive disables cops + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#60 + def disabled?; end + + # Checks if this directive disables all cops + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#75 + def disabled_all?; end + + # Checks if this directive enables cops + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#65 + def enabled?; end + + # Checks if this directive enables all cops + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#70 + def enabled_all?; end + + # Checks if directive departments include cop + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#96 + def in_directive_department?(cop); end + + # Returns line number for directive + # + # source://rubocop//lib/rubocop/directive_comment.rb#110 + def line_number; end + + # Checks if this directive contains all the given cop names + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#42 + def match?(cop_names); end + + # Returns match captures to directive comment pattern + # + # source://rubocop//lib/rubocop/directive_comment.rb#55 + def match_captures; end + + # Returns the value of attribute mode. + # + # source://rubocop//lib/rubocop/directive_comment.rb#28 + def mode; end + + # Checks if cop department has already used in directive comment + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#101 + def overridden_by_department?(cop); end + + # source://rubocop//lib/rubocop/directive_comment.rb#46 + def range; end + + # Checks if this directive relates to single line + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#37 + def single_line?; end + + private + + # source://rubocop//lib/rubocop/directive_comment.rb#130 + def all_cop_names; end + + # source://rubocop//lib/rubocop/directive_comment.rb#134 + def cop_names_for_department(department); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/directive_comment.rb#126 + def department?(name); end + + # source://rubocop//lib/rubocop/directive_comment.rb#140 + def exclude_redundant_directive_cop(cops); end + + # source://rubocop//lib/rubocop/directive_comment.rb#120 + def parsed_cop_names; end + + # source://rubocop//lib/rubocop/directive_comment.rb#116 + def splitted_cops_string; end + + class << self + # source://rubocop//lib/rubocop/directive_comment.rb#24 + def before_comment(line); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#17 +RuboCop::DirectiveComment::COPS_PATTERN = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#15 +RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#13 +RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#19 +RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#11 +RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/directive_comment.rb#9 +RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP_DEPARTMENT = T.let(T.unsafe(nil), String) + +# An Error exception is different from an Offense with severity 'error' +# When this exception is raised, it means that RuboCop is unable to perform +# a requested action (probably due to misconfiguration) and must stop +# immediately, rather than carrying on +# +# source://rubocop//lib/rubocop/error.rb#8 +class RuboCop::Error < ::StandardError; end + +# A wrapper to display errored location of analyzed file. +# +# source://rubocop//lib/rubocop/error.rb#13 +class RuboCop::ErrorWithAnalyzedFileLocation < ::RuboCop::Error + # @return [ErrorWithAnalyzedFileLocation] a new instance of ErrorWithAnalyzedFileLocation + # + # source://rubocop//lib/rubocop/error.rb#14 + def initialize(cause:, node:, cop:); end + + # Returns the value of attribute cause. + # + # source://rubocop//lib/rubocop/error.rb#21 + def cause; end + + # source://rubocop//lib/rubocop/error.rb#27 + def column; end + + # Returns the value of attribute cop. + # + # source://rubocop//lib/rubocop/error.rb#21 + def cop; end + + # source://rubocop//lib/rubocop/error.rb#23 + def line; end + + # source://rubocop//lib/rubocop/error.rb#31 + def message; end +end + +# Allows specified configuration options to have an exclude limit +# ie. a maximum value tracked that it can be used by `--auto-gen-config`. +# +# source://rubocop//lib/rubocop/cop/exclude_limit.rb#6 +module RuboCop::ExcludeLimit + # Sets up a configuration option to have an exclude limit tracked. + # The parameter name given is transformed into a method name (eg. `Max` + # becomes `self.max=` and `MinDigits` becomes `self.min_digits=`). + # + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#10 + def exclude_limit(parameter_name, method_name: T.unsafe(nil)); end + + private + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#22 + def transform(parameter_name); end +end + +# source://rubocop//lib/rubocop/ext/comment.rb#4 +module RuboCop::Ext; end + +# Extensions to `Parser::Source::Comment`. +# +# source://rubocop//lib/rubocop/ext/comment.rb#6 +module RuboCop::Ext::Comment + # source://rubocop//lib/rubocop/ext/comment.rb#7 + def source; end + + # source://rubocop//lib/rubocop/ext/comment.rb#11 + def source_range; end +end + +# Extensions to AST::ProcessedSource for our cached comment_config +# +# source://rubocop//lib/rubocop/ext/processed_source.rb#6 +module RuboCop::Ext::ProcessedSource + # source://rubocop//lib/rubocop/ext/processed_source.rb#9 + def comment_config; end + + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def config; end + + # Sets the attribute config + # + # @param value the value to set the attribute config to. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def config=(_arg0); end + + # source://rubocop//lib/rubocop/ext/processed_source.rb#13 + def disabled_line_ranges; end + + # Returns the value of attribute registry. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def registry; end + + # Sets the attribute registry + # + # @param value the value to set the attribute registry to. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def registry=(_arg0); end +end + +# Extensions to Parser::Source::Range +# +# source://rubocop//lib/rubocop/ext/range.rb#6 +module RuboCop::Ext::Range + # Adds `Range#single_line?` to parallel `Node#single_line?` + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/ext/range.rb#8 + def single_line?; end +end + +# Extensions to AST::RegexpNode for our cached parsed regexp info +# +# source://rubocop//lib/rubocop/ext/regexp_node.rb#6 +module RuboCop::Ext::RegexpNode + # Please remove this `else` branch when support for regexp_parser 1.8 will be dropped. + # It's for compatibility with regexp_parser 1.8 and will never be maintained. + # + # source://rubocop//lib/rubocop/ext/regexp_node.rb#19 + def assign_properties(*_arg0); end + + # source://rubocop//lib/rubocop/ext/regexp_node.rb#53 + def each_capture(named: T.unsafe(nil)); end + + # Note: we extend Regexp nodes to provide `loc` and `expression` + # see `ext/regexp_parser`. + # + # @return [Regexp::Expression::Root, nil] + # + # source://rubocop//lib/rubocop/ext/regexp_node.rb#16 + def parsed_tree; end + + private + + # source://rubocop//lib/rubocop/ext/regexp_node.rb#68 + def with_interpolations_blanked; end +end + +# source://rubocop//lib/rubocop/ext/regexp_node.rb#7 +RuboCop::Ext::RegexpNode::ANY = T.let(T.unsafe(nil), Object) + +# Extensions for `regexp_parser` gem +# +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#6 +module RuboCop::Ext::RegexpParser; end + +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#20 +module RuboCop::Ext::RegexpParser::Expression; end + +# Add `expression` and `loc` to all `regexp_parser` nodes +# +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#22 +module RuboCop::Ext::RegexpParser::Expression::Base + # Shortcut to `loc.expression` + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#27 + def expression; end + + # E.g. + # [a-z]{2,} + # ^^^^^^^^^ expression + # ^^^^ quantifier + # ^^^^^ body + # ^ begin + # ^ end + # + # Please open issue if you need other locations + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#61 + def loc; end + + # Returns the value of attribute origin. + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#23 + def origin; end + + # Sets the attribute origin + # + # @param value the value to set the attribute origin to. + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#23 + def origin=(_arg0); end + + private + + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#67 + def build_location; end +end + +# Provide `CharacterSet` with `begin` and `end` locations. +# +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#79 +module RuboCop::Ext::RegexpParser::Expression::CharacterSet + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#80 + def build_location; end +end + +# Source map for RegexpParser nodes +# +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#8 +class RuboCop::Ext::RegexpParser::Map < ::Parser::Source::Map + # @return [Map] a new instance of Map + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#11 + def initialize(expression, body:, quantifier: T.unsafe(nil), begin_l: T.unsafe(nil), end_l: T.unsafe(nil)); end + + # Returns the value of attribute begin. + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + def begin; end + + # Returns the value of attribute body. + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + def body; end + + # Returns the value of attribute end. + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + def end; end + + # Returns the value of attribute quantifier. + # + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + def quantifier; end +end + +# This class handles loading files (a.k.a. features in Ruby) specified +# by `--require` command line option and `require` directive in the config. +# +# Normally, the given string is directly passed to `require`. If a string +# beginning with `.` is given, it is assumed to be relative to the given +# directory. +# +# If a string containing `-` is given, it will be used as is, but if we +# cannot find the file to load, we will replace `-` with `/` and try it +# again as when Bundler loads gems. +# +# @api private +# +# source://rubocop//lib/rubocop/feature_loader.rb#16 +class RuboCop::FeatureLoader + # @api private + # @param config_directory_path [String] + # @param feature [String] + # @return [FeatureLoader] a new instance of FeatureLoader + # + # source://rubocop//lib/rubocop/feature_loader.rb#27 + def initialize(config_directory_path:, feature:); end + + # @api private + # + # source://rubocop//lib/rubocop/feature_loader.rb#32 + def load; end + + private + + # @api private + # @return [String] + # + # source://rubocop//lib/rubocop/feature_loader.rb#55 + def namespaced_feature; end + + # @api private + # @return [String] + # + # source://rubocop//lib/rubocop/feature_loader.rb#60 + def namespaced_target; end + + # @api private + # @param [String] + # @return [String] + # + # source://rubocop//lib/rubocop/feature_loader.rb#70 + def relative(feature); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/feature_loader.rb#75 + def relative?; end + + # @api private + # @param error [LoadError] + # @return [Boolean] + # + # source://rubocop//lib/rubocop/feature_loader.rb#81 + def seems_cannot_load_such_file_error?(error); end + + # @api private + # @return [String] + # + # source://rubocop//lib/rubocop/feature_loader.rb#86 + def target; end + + class << self + # @api private + # @param config_directory_path [String] + # @param feature [String] + # + # source://rubocop//lib/rubocop/feature_loader.rb#20 + def load(config_directory_path:, feature:); end + end +end + +# Common methods for finding files. +# +# @api private +# +# source://rubocop//lib/rubocop/file_finder.rb#8 +module RuboCop::FileFinder + # @api private + # + # source://rubocop//lib/rubocop/file_finder.rb#13 + def find_file_upwards(filename, start_dir, stop_dir = T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/file_finder.rb#20 + def find_last_file_upwards(filename, start_dir, stop_dir = T.unsafe(nil)); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/file_finder.rb#28 + def traverse_files_upwards(filename, start_dir, stop_dir); end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/file_finder.rb#10 + def root_level; end + + # @api private + # + # source://rubocop//lib/rubocop/file_finder.rb#10 + def root_level=(_arg0); end + end +end + +# A wrapper around patterns array to perform optimized search. +# +# For projects with a large set of rubocop todo files, most items in `Exclude`/`Include` +# are exact file names. It is wasteful to linearly check the list of patterns over and over +# to check if the file is relevant to the cop. +# +# This class partitions an array of patterns into a set of exact match strings and the rest +# of the patterns. This way we can firstly do a cheap check in the set and then proceed via +# the costly patterns check, if needed. +# +# @api private +# +# source://rubocop//lib/rubocop/file_patterns.rb#14 +class RuboCop::FilePatterns + # @api private + # @return [FilePatterns] a new instance of FilePatterns + # + # source://rubocop//lib/rubocop/file_patterns.rb#21 + def initialize(patterns); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/file_patterns.rb#27 + def match?(path); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/file_patterns.rb#33 + def partition_patterns(patterns); end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/file_patterns.rb#17 + def from(patterns); end + end +end + +# The bootstrap module for formatter. +# +# source://rubocop//lib/rubocop/formatter.rb#5 +module RuboCop::Formatter; end + +# Does not show individual offenses in the console. +# +# source://rubocop//lib/rubocop/formatter/auto_gen_config_formatter.rb#6 +class RuboCop::Formatter::AutoGenConfigFormatter < ::RuboCop::Formatter::ProgressFormatter + # source://rubocop//lib/rubocop/formatter/auto_gen_config_formatter.rb#7 + def finished(inspected_files); end +end + +# Abstract base class for formatter, implements all public API methods. +# +# ## Creating Custom Formatter +# +# You can create a custom formatter by subclassing +# `RuboCop::Formatter::BaseFormatter` and overriding some methods +# or by implementing all the methods by duck typing. +# +# ## Using Custom Formatter in Command Line +# +# You can tell RuboCop to use your custom formatter with a combination of +# `--format` and `--require` option. +# For example, when you have defined `MyCustomFormatter` in +# `./path/to/my_custom_formatter.rb`, you would type this command: +# +# rubocop --require ./path/to/my_custom_formatter --format MyCustomFormatter +# +# Note: The path passed to `--require` is directly passed to +# `Kernel.require`. +# If your custom formatter file is not in `$LOAD_PATH`, +# you need to specify the path as relative path prefixed with `./` +# explicitly or absolute path. +# +# ## Method Invocation Order +# +# For example, when RuboCop inspects 2 files, +# the invocation order should be like this: +# +# * `#initialize` +# * `#started` +# * `#file_started` +# * `#file_finished` +# * `#file_started` +# * `#file_finished` +# * `#finished` +# +# source://rubocop//lib/rubocop/formatter/base_formatter.rb#41 +class RuboCop::Formatter::BaseFormatter + # @api public + # @param output [IO] `$stdout` or opened file + # @return [BaseFormatter] a new instance of BaseFormatter + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#63 + def initialize(output, options = T.unsafe(nil)); end + + # Invoked at the end of inspecting each files. + # + # @api public + # @param file [String] the file path + # @param offenses [Array(RuboCop::Cop::Offense)] all detected offenses for the file + # @return [void] + # @see RuboCop::Cop::Offense + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#104 + def file_finished(file, offenses); end + + # Invoked at the beginning of inspecting each files. + # + # @api public + # @param file [String] the file path + # @param options [Hash] file specific information, currently this is always empty. + # @return [void] + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#89 + def file_started(file, options); end + + # Invoked after all files are inspected or interrupted by user. + # + # @api public + # @param inspected_files [Array(String)] the inspected file paths. + # This would be same as `target_files` passed to `#started` + # unless RuboCop is interrupted by user. + # @return [void] + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#116 + def finished(inspected_files); end + + # @api public + # @return [Hash] + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#57 + def options; end + + # @api public + # @return [IO] the IO object passed to `#initialize` + # @see #initialize + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#50 + def output; end + + # Invoked once before any files are inspected. + # + # @api public + # @param target_files [Array(String)] all target file paths to be inspected + # @return [void] + # + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#76 + def started(target_files); end +end + +# This formatter formats report data in clang style. +# The precise location of the problem is shown together with the +# relevant source code. +# +# source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#8 +class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleTextFormatter + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#11 + def report_file(file, offenses); end + + private + + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#51 + def report_highlighted_area(highlighted_area); end + + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#41 + def report_line(location); end + + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#17 + def report_offense(file, offense); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37 + def valid_line?(offense); end +end + +# source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#9 +RuboCop::Formatter::ClangStyleFormatter::ELLIPSES = T.let(T.unsafe(nil), String) + +# This mix-in module provides string coloring methods for terminals. +# It automatically disables coloring if coloring is disabled in the process +# globally or the formatter's output is not a terminal. +# +# source://rubocop//lib/rubocop/formatter/colorizable.rb#8 +module RuboCop::Formatter::Colorizable + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def black(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def blue(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#21 + def colorize(string, *args); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def cyan(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def green(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def magenta(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#9 + def rainbow; end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def red(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def white(string); end + + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + def yellow(string); end +end + +# This formatter displays a YAML configuration file where all cops that +# detected any offenses are configured to not detect the offense. +# +# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#7 +class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFormatter + include ::RuboCop::PathUtil + + # @return [DisabledConfigFormatter] a new instance of DisabledConfigFormatter + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#27 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#39 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#33 + def file_started(_file, _file_info); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#47 + def finished(_inspected_files); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#68 + def auto_gen_enforced_style?; end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#72 + def command; end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#156 + def cop_config_params(default_cfg, cfg); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#176 + def default_config(cop_name); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#220 + def excludes(offending_files, cop_name, parent); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#191 + def filtered_config(cfg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#241 + def merge_mode_for_exclude?(cfg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#262 + def no_exclude_limit?; end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#101 + def output_cop(cop_name, offense_count); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#128 + def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#180 + def output_cop_config(output_buffer, cfg, cop_name); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#163 + def output_cop_param_comments(output_buffer, params, default_cfg); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#210 + def output_exclude_list(output_buffer, offending_files, cop_name); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#245 + def output_exclude_path(output_buffer, exclude_path, parent); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#199 + def output_offending_files(output_buffer, cfg, cop_name); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#95 + def output_offenses; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#258 + def safe_autocorrect?(config); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#115 + def set_max(cfg, cop_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#64 + def show_offense_counts?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#60 + def show_timestamp?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#148 + def supports_safe_autocorrect?(cop_class, default_cfg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#152 + def supports_unsafe_autocorrect?(cop_class, default_cfg); end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#91 + def timestamp; end + + class << self + # Returns the value of attribute config_to_allow_offenses. + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + def config_to_allow_offenses; end + + # Sets the attribute config_to_allow_offenses + # + # @param value the value to set the attribute config_to_allow_offenses to. + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + def config_to_allow_offenses=(_arg0); end + + # Returns the value of attribute detected_styles. + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + def detected_styles; end + + # Sets the attribute detected_styles + # + # @param value the value to set the attribute detected_styles to. + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + def detected_styles=(_arg0); end + end +end + +# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#10 +RuboCop::Formatter::DisabledConfigFormatter::HEADING = T.let(T.unsafe(nil), String) + +# This formatter displays the report data in format that's +# easy to process in the Emacs text editor. +# The output is machine-parsable. +# +# source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#8 +class RuboCop::Formatter::EmacsStyleFormatter < ::RuboCop::Formatter::BaseFormatter + # source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#9 + def file_finished(file, offenses); end + + private + + # source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#24 + def message(offense); end +end + +# This formatter displays just a list of the files with offenses in them, +# separated by newlines. The output is machine-parsable. +# +# Here's the format: +# +# /some/file +# /some/other/file +# +# source://rubocop//lib/rubocop/formatter/file_list_formatter.rb#12 +class RuboCop::Formatter::FileListFormatter < ::RuboCop::Formatter::BaseFormatter + # source://rubocop//lib/rubocop/formatter/file_list_formatter.rb#13 + def file_finished(file, offenses); end +end + +# This is a collection of formatters. A FormatterSet can hold multiple +# formatter instances and provides transparent formatter API methods +# which invoke same method of each formatters. +# +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#10 +class RuboCop::Formatter::FormatterSet < ::Array + # @return [FormatterSet] a new instance of FormatterSet + # + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#39 + def initialize(options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#55 + def add_formatter(formatter_type, output_path = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#67 + def close_output_files; end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#50 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#44 + def file_started(file, options); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34 + def finished(*args); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34 + def started(*args); end + + private + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#86 + def builtin_formatter_class(specified_key); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#99 + def custom_formatter_class(specified_class_name); end + + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#75 + def formatter_class(formatter_type); end +end + +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#11 +RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#31 +RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array) + +# This formatter displays a progress bar and shows details of offenses as +# soon as they are detected. +# This is inspired by the Fuubar formatter for RSpec by Jeff Kreeftmeijer. +# https://github.com/jeffkreeftmeijer/fuubar +# +# source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#11 +class RuboCop::Formatter::FuubarStyleFormatter < ::RuboCop::Formatter::ClangStyleFormatter + # @return [FuubarStyleFormatter] a new instance of FuubarStyleFormatter + # + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#14 + def initialize(*output); end + + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#51 + def count_stats(offenses); end + + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#40 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#71 + def progressbar_color; end + + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#20 + def started(target_files); end + + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#61 + def with_color; end +end + +# source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#12 +RuboCop::Formatter::FuubarStyleFormatter::RESET_SEQUENCE = T.let(T.unsafe(nil), String) + +# This formatter formats report data as GitHub Workflow commands resulting +# in GitHub check annotations when run within GitHub Actions. +# +# source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#7 +class RuboCop::Formatter::GitHubActionsFormatter < ::RuboCop::Formatter::BaseFormatter + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#14 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#18 + def finished(_inspected_files); end + + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#10 + def started(_target_files); end + + private + + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#29 + def github_escape(string); end + + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#41 + def github_severity(offense); end + + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#33 + def minimum_severity_to_fail; end + + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#45 + def report_offense(file, offense); end +end + +# source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#8 +RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Hash) + +# This formatter saves the output as an html file. +# +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#11 +class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter + # @return [HTMLFormatter] a new instance of HTMLFormatter + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#30 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#40 + def file_finished(file, offenses); end + + # Returns the value of attribute files. + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28 + def files; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#45 + def finished(inspected_files); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#51 + def render_html; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#36 + def started(target_files); end + + # Returns the value of attribute summary. + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28 + def summary; end +end + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 +class RuboCop::Formatter::HTMLFormatter::Color < ::Struct + # Returns the value of attribute alpha + # + # @return [Object] the current value of alpha + def alpha; end + + # Sets the attribute alpha + # + # @param value [Object] the value to set the attribute alpha to. + # @return [Object] the newly set value + def alpha=(_); end + + # Returns the value of attribute blue + # + # @return [Object] the current value of blue + def blue; end + + # Sets the attribute blue + # + # @param value [Object] the value to set the attribute blue to. + # @return [Object] the newly set value + def blue=(_); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#20 + def fade_out(amount); end + + # Returns the value of attribute green + # + # @return [Object] the current value of green + def green; end + + # Sets the attribute green + # + # @param value [Object] the value to set the attribute green to. + # @return [Object] the newly set value + def green=(_); end + + # Returns the value of attribute red + # + # @return [Object] the current value of red + def red; end + + # Sets the attribute red + # + # @param value [Object] the value to set the attribute red to. + # @return [Object] the newly set value + def red=(_); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#16 + def to_s; end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#12 +RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String) + +# This class provides helper methods used in the ERB template. +# +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#62 +class RuboCop::Formatter::HTMLFormatter::ERBContext + include ::RuboCop::PathUtil + include ::RuboCop::Formatter::TextUtil + + # @return [ERBContext] a new instance of ERBContext + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#78 + def initialize(files, summary); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#125 + def base64_encoded_logo_image; end + + # Make Kernel#binding public. + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#85 + def binding; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#90 + def decorated_message(offense); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#121 + def escape(string); end + + # Returns the value of attribute files. + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76 + def files; end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#101 + def highlight_source_tag(offense); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#94 + def highlighted_source_line(offense); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#117 + def possible_ellipses(location); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#112 + def source_after_highlight(offense); end + + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#107 + def source_before_highlight(offense); end + + # Returns the value of attribute summary. + # + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76 + def summary; end +end + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#74 +RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#66 +RuboCop::Formatter::HTMLFormatter::ERBContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#26 +class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct + # Returns the value of attribute offenses + # + # @return [Object] the current value of offenses + def offenses; end + + # Sets the attribute offenses + # + # @param value [Object] the value to set the attribute offenses to. + # @return [Object] the newly set value + def offenses=(_); end + + # Returns the value of attribute path + # + # @return [Object] the current value of path + def path; end + + # Sets the attribute path + # + # @param value [Object] the value to set the attribute path to. + # @return [Object] the newly set value + def path=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 +class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct + # Returns the value of attribute inspected_files + # + # @return [Object] the current value of inspected_files + def inspected_files; end + + # Sets the attribute inspected_files + # + # @param value [Object] the value to set the attribute inspected_files to. + # @return [Object] the newly set value + def inspected_files=(_); end + + # Returns the value of attribute offense_count + # + # @return [Object] the current value of offense_count + def offense_count; end + + # Sets the attribute offense_count + # + # @param value [Object] the value to set the attribute offense_count to. + # @return [Object] the newly set value + def offense_count=(_); end + + # Returns the value of attribute target_files + # + # @return [Object] the current value of target_files + def target_files; end + + # Sets the attribute target_files + # + # @param value [Object] the value to set the attribute target_files to. + # @return [Object] the newly set value + def target_files=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#13 +RuboCop::Formatter::HTMLFormatter::TEMPLATE_PATH = T.let(T.unsafe(nil), String) + +# This formatter formats the report data in JSON format. +# +# source://rubocop//lib/rubocop/formatter/json_formatter.rb#9 +class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter + include ::RuboCop::PathUtil + + # @return [JSONFormatter] a new instance of JSONFormatter + # + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#14 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#23 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#28 + def finished(inspected_files); end + + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#43 + def hash_for_file(file, offenses); end + + # TODO: Consider better solution for Offense#real_column. + # The minimum value of `start_column: real_column` is 1. + # So, the minimum value of `last_column` should be 1. + # And non-zero value of `last_column` should be used as is. + # + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#65 + def hash_for_location(offense); end + + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#50 + def hash_for_offense(offense); end + + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#33 + def metadata_hash; end + + # Returns the value of attribute output_hash. + # + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#12 + def output_hash; end + + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#19 + def started(target_files); end +end + +# This formatter formats the report data in JUnit format. +# +# source://rubocop//lib/rubocop/formatter/junit_formatter.rb#17 +class RuboCop::Formatter::JUnitFormatter < ::RuboCop::Formatter::BaseFormatter + # @return [JUnitFormatter] a new instance of JUnitFormatter + # + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#18 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#55 + def add_testcase_element_to_testsuite_element(file, target_offenses, cop); end + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#64 + def classname_attribute_value(file); end + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#29 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#71 + def finished(_inspected_files); end + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#51 + def offenses_for_cop(all_offenses, cop); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#47 + def relevant_for_output?(options, target_offenses); end + + private + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#83 + def add_failure_to(testcase, offenses, cop_name); end + + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#78 + def reset_count; end +end + +# This formatter displays the report data in markdown +# +# source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#6 +class RuboCop::Formatter::MarkdownFormatter < ::RuboCop::Formatter::BaseFormatter + include ::RuboCop::Formatter::TextUtil + include ::RuboCop::PathUtil + + # @return [MarkdownFormatter] a new instance of MarkdownFormatter + # + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#11 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#21 + def file_finished(file, offenses); end + + # Returns the value of attribute files. + # + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 + def files; end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#26 + def finished(inspected_files); end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#17 + def started(target_files); end + + # Returns the value of attribute summary. + # + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 + def summary; end + + private + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#73 + def possible_ellipses(location); end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#33 + def render_markdown; end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#67 + def write_code(offense); end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#61 + def write_context(offense); end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#42 + def write_file_messages; end + + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#54 + def write_heading(file); end +end + +# This formatter displays the list of offended cops with a count of how +# many offenses of their kind were found. Ordered by desc offense count +# +# Here's the format: +# +# 26 LineLength +# 3 OneLineConditional +# -- +# 29 Total in 5 files +# +# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#16 +class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#42 + def file_finished(_file, offenses); end + + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#51 + def finished(_inspected_files); end + + # Returns the value of attribute offense_counts. + # + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#17 + def offense_counts; end + + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#74 + def ordered_offense_counts(offense_counts); end + + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#56 + def report_summary(offense_counts, offending_files_count); end + + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#19 + def started(target_files); end + + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#78 + def total_offense_count(offense_counts); end +end + +# This formatter prints a PACDOT per every file to be analyzed. +# Pacman will "eat" one PACDOT per file when no offense is detected. +# Otherwise it will print a Ghost. +# This is inspired by the Pacman formatter for RSpec by Carlos Rojas. +# https://github.com/go-labs/rspec_pacman_formatter +# +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#10 +class RuboCop::Formatter::PacmanFormatter < ::RuboCop::Formatter::ClangStyleFormatter + include ::RuboCop::Formatter::TextUtil + + # @return [PacmanFormatter] a new instance of PacmanFormatter + # + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#19 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#50 + def cols; end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#37 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#33 + def file_started(_file, _options); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#43 + def next_step(offenses); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#64 + def pacdots(number); end + + # Returns the value of attribute progress_line. + # + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 + def progress_line; end + + # Sets the attribute progress_line + # + # @param value the value to set the attribute progress_line to. + # + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 + def progress_line=(_arg0); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#26 + def started(target_files); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#68 + def step(character); end + + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#57 + def update_progress_line; end +end + +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#14 +RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) + +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#15 +RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#17 +RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::NullPresenter) + +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#16 +RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::NullPresenter) + +# This formatter display dots for files with no offenses and +# letters for files with problems in the them. In the end it +# appends the regular report data in the clang style format. +# +# source://rubocop//lib/rubocop/formatter/progress_formatter.rb#8 +class RuboCop::Formatter::ProgressFormatter < ::RuboCop::Formatter::ClangStyleFormatter + include ::RuboCop::Formatter::TextUtil + + # @return [ProgressFormatter] a new instance of ProgressFormatter + # + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#13 + def initialize(output, options = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#24 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#33 + def finished(inspected_files); end + + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#50 + def report_file_as_mark(offenses); end + + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#18 + def started(target_files); end +end + +# source://rubocop//lib/rubocop/formatter/progress_formatter.rb#11 +RuboCop::Formatter::ProgressFormatter::DOT = T.let(T.unsafe(nil), String) + +# If no offenses are found, no output is displayed. +# Otherwise, SimpleTextFormatter's output is displayed. +# +# source://rubocop//lib/rubocop/formatter/quiet_formatter.rb#7 +class RuboCop::Formatter::QuietFormatter < ::RuboCop::Formatter::SimpleTextFormatter + # source://rubocop//lib/rubocop/formatter/quiet_formatter.rb#8 + def report_summary(file_count, offense_count, correction_count, correctable_count); end +end + +# A basic formatter that displays only files with offenses. +# Offenses are displayed at compact form - just the +# location of the problem and the associated message. +# +# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#10 +class RuboCop::Formatter::SimpleTextFormatter < ::RuboCop::Formatter::BaseFormatter + include ::RuboCop::Formatter::Colorizable + include ::RuboCop::PathUtil + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#29 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#36 + def finished(inspected_files); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#43 + def report_file(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#57 + def report_summary(file_count, offense_count, correction_count, correctable_count); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#23 + def started(_target_files); end + + private + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#85 + def annotate_message(msg); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#80 + def colored_severity_code(offense); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#73 + def count_stats(offenses); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#89 + def message(offense); end +end + +# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#14 +RuboCop::Formatter::SimpleTextFormatter::COLOR_FOR_SEVERITY = T.let(T.unsafe(nil), Hash) + +# A helper class for building the report summary text. +# +# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#105 +class RuboCop::Formatter::SimpleTextFormatter::Report + include ::RuboCop::Formatter::Colorizable + include ::RuboCop::Formatter::TextUtil + + # @return [Report] a new instance of Report + # + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#110 + def initialize(file_count, offense_count, correction_count, correctable_count, rainbow, safe_autocorrect: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#123 + def summary; end + + private + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#160 + def correctable; end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#153 + def corrections; end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#142 + def files; end + + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#146 + def offenses; end + + # Returns the value of attribute rainbow. + # + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#140 + def rainbow; end +end + +# This formatter formats report data using the Test Anything Protocol. +# TAP allows for to communicate tests results in a language agnostics way. +# +# source://rubocop//lib/rubocop/formatter/tap_formatter.rb#7 +class RuboCop::Formatter::TapFormatter < ::RuboCop::Formatter::ClangStyleFormatter + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#14 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#8 + def started(target_files); end + + private + + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66 + def annotate_message(msg); end + + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#70 + def message(offense); end + + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#39 + def report_highlighted_area(highlighted_area); end + + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#29 + def report_line(location); end + + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#46 + def report_offense(file, offense); end +end + +# Common logic for UI texts. +# +# source://rubocop//lib/rubocop/formatter/text_util.rb#6 +module RuboCop::Formatter::TextUtil + private + + # source://rubocop//lib/rubocop/formatter/text_util.rb#9 + def pluralize(number, thing, options = T.unsafe(nil)); end + + class << self + # source://rubocop//lib/rubocop/formatter/text_util.rb#9 + def pluralize(number, thing, options = T.unsafe(nil)); end + end +end + +# This formatter displays the list of offensive files, sorted by number of +# offenses with the worst offenders first. +# +# Here's the format: +# +# 26 this/file/is/really/bad.rb +# 3 just/ok.rb +# -- +# 29 Total in 2 files +# +# source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#16 +class RuboCop::Formatter::WorstOffendersFormatter < ::RuboCop::Formatter::BaseFormatter + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#24 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#31 + def finished(_inspected_files); end + + # Returns the value of attribute offense_counts. + # + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#17 + def offense_counts; end + + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#55 + def ordered_offense_counts(offense_counts); end + + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#36 + def report_summary(offense_counts); end + + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#19 + def started(target_files); end + + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#59 + def total_offense_count(offense_counts); end +end + +# source://rubocop//lib/rubocop/options.rb#8 +class RuboCop::IncorrectCopNameError < ::StandardError; end + +# Encapsulation of a lockfile for use when checking for gems. +# Does not actually resolve gems, just parses the lockfile. +# +# @api private +# +# source://rubocop//lib/rubocop/lockfile.rb#7 +class RuboCop::Lockfile + # Gems that the bundle depends on + # + # @api private + # + # source://rubocop//lib/rubocop/lockfile.rb#9 + def dependencies; end + + # All activated gems, including transitive dependencies + # + # @api private + # + # source://rubocop//lib/rubocop/lockfile.rb#16 + def gems; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/lockfile.rb#24 + def includes_gem?(name); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/lockfile.rb#30 + def parser; end +end + +# source://rubocop//lib/rubocop/lsp/logger.rb#13 +module RuboCop::Lsp; end + +# Log for Language Server Protocol of RuboCop. +# +# @api private +# +# source://rubocop//lib/rubocop/lsp/logger.rb#16 +class RuboCop::Lsp::Logger + class << self + # @api private + # + # source://rubocop//lib/rubocop/lsp/logger.rb#17 + def log(message); end + end +end + +# Routes for Language Server Protocol of RuboCop. +# +# @api private +# +# source://rubocop//lib/rubocop/lsp/routes.rb#18 +class RuboCop::Lsp::Routes + # @api private + # @return [Routes] a new instance of Routes + # + # source://rubocop//lib/rubocop/lsp/routes.rb#25 + def initialize(server); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#31 + def for(name); end + + # source://rubocop//lib/rubocop/lsp/routes.rb#38 + def handle_initialize(request); end + + # source://rubocop//lib/rubocop/lsp/routes.rb#61 + def handle_initialized(_request); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#170 + def handle_method_missing(request); end + + # source://rubocop//lib/rubocop/lsp/routes.rb#67 + def handle_shutdown(request); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#159 + def handle_unsupported_method(request, method = T.unsafe(nil)); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#208 + def diagnostic(file_uri, text); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#178 + def extract_initialization_options_from(request); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#188 + def format_file(file_uri, command: T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#222 + def remove_file_protocol_from(uri); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#226 + def to_diagnostic(offense); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#238 + def to_range(location); end + + class << self + private + + # @api private + # + # source://rubocop//lib/rubocop/lsp/routes.rb#19 + def handle(name, &block); end + end +end + +# Runtime for Language Server Protocol of RuboCop. +# +# @api private +# +# source://rubocop//lib/rubocop/lsp/runtime.rb#16 +class RuboCop::Lsp::Runtime + # @api private + # @return [Runtime] a new instance of Runtime + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#19 + def initialize(config_store); end + + # This abuses the `--stdin` option of rubocop and reads the formatted text + # from the `options[:stdin]` that rubocop mutates. This depends on + # `parallel: false` as well as the fact that RuboCop doesn't otherwise dup + # or reassign that options object. Risky business! + # + # Reassigning `options[:stdin]` is done here: + # https://github.com/rubocop/rubocop/blob/v1.52.0/lib/rubocop/cop/team.rb#L131 + # Printing `options[:stdin]` + # https://github.com/rubocop/rubocop/blob/v1.52.0/lib/rubocop/cli/command/execute_runner.rb#L95 + # Setting `parallel: true` would break this here: + # https://github.com/rubocop/rubocop/blob/v1.52.0/lib/rubocop/runner.rb#L72 + # + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#38 + def format(path, text, command:); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#17 + def layout_mode=(_arg0); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#17 + def lint_mode=(_arg0); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#55 + def offenses(path, text); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#17 + def safe_autocorrect=(_arg0); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#77 + def config_only_options; end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#84 + def redirect_stdout(&block); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/runtime.rb#92 + def run_rubocop(options, path); end +end + +# Language Server Protocol of RuboCop. +# +# @api private +# +# source://rubocop//lib/rubocop/lsp/server.rb#21 +class RuboCop::Lsp::Server + # @api private + # @return [Server] a new instance of Server + # + # source://rubocop//lib/rubocop/lsp/server.rb#22 + def initialize(config_store); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/server.rb#56 + def configure(options); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/server.rb#48 + def format(path, text, command:); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/server.rb#52 + def offenses(path, text); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/server.rb#29 + def start; end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/server.rb#62 + def stop(&block); end + + # @api private + # + # source://rubocop//lib/rubocop/lsp/server.rb#44 + def write(response); end +end + +# Severity for Language Server Protocol of RuboCop. +# +# @api private +# +# source://rubocop//lib/rubocop/lsp/severity.rb#7 +class RuboCop::Lsp::Severity + class << self + # @api private + # + # source://rubocop//lib/rubocop/lsp/severity.rb#17 + def find_by(rubocop_severity); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/lsp/severity.rb#8 +RuboCop::Lsp::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash) + +# Parse different formats of magic comments. +# +# @abstract parent of three different magic comment handlers +# +# source://rubocop//lib/rubocop/magic_comment.rb#7 +class RuboCop::MagicComment + # @return [MagicComment] a new instance of MagicComment + # + # source://rubocop//lib/rubocop/magic_comment.rb#32 + def initialize(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#36 + def any?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#104 + def encoding_specified?; end + + # Expose the `frozen_string_literal` value coerced to a boolean if possible. + # + # @return [Boolean] if value is `true` or `false` + # @return [nil] if frozen_string_literal comment isn't found + # @return [String] if comment is found but isn't true or false + # + # source://rubocop//lib/rubocop/magic_comment.rb#86 + def frozen_string_literal; end + + # Does the magic comment enable the frozen string literal feature. + # + # Test whether the frozen string literal value is `true`. Cannot + # just return `frozen_string_literal` since an invalid magic comment + # `'yes'` does not actually enable the feature + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#55 + def frozen_string_literal?; end + + # Was a magic comment for the frozen string literal found? + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#70 + def frozen_string_literal_specified?; end + + # Expose the `shareable_constant_value` value coerced to a boolean if possible. + # + # @return [String] for shareable_constant_value config + # + # source://rubocop//lib/rubocop/magic_comment.rb#100 + def shareable_constant_value; end + + # Was a shareable_constant_value specified? + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#77 + def shareable_constant_value_specified?; end + + # source://rubocop//lib/rubocop/magic_comment.rb#115 + def typed; end + + # Was the Sorbet `typed` sigil specified? + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#111 + def typed_specified?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#43 + def valid?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#59 + def valid_literal_value?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#63 + def valid_shareable_constant_value?; end + + private + + # Match the entire comment string with a pattern and take the first capture. + # + # @param pattern [Regexp] + # @return [String] if pattern matched + # @return [nil] otherwise + # + # source://rubocop//lib/rubocop/magic_comment.rb#131 + def extract(pattern); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/magic_comment.rb#121 + def specified?(value); end + + class << self + # Detect magic comment format and pass it to the appropriate wrapper. + # + # @param comment [String] + # @return [RuboCop::MagicComment] + # + # source://rubocop//lib/rubocop/magic_comment.rb#23 + def parse(comment); end + end +end + +# Parent to Vim and Emacs magic comment handling. +# +# @abstract +# +# source://rubocop//lib/rubocop/magic_comment.rb#138 +class RuboCop::MagicComment::EditorComment < ::RuboCop::MagicComment + # source://rubocop//lib/rubocop/magic_comment.rb#139 + def encoding; end + + # Rewrite the comment without a given token type + # + # source://rubocop//lib/rubocop/magic_comment.rb#144 + def without(type); end + + private + + # Find a token starting with the provided keyword and extract its value. + # + # @param keyword [String] + # @return [String] extracted value if it is found + # @return [nil] otherwise + # + # source://rubocop//lib/rubocop/magic_comment.rb#159 + def match(keyword); end + + # Individual tokens composing an editor specific comment string. + # + # @return [Array<String>] + # + # source://rubocop//lib/rubocop/magic_comment.rb#174 + def tokens; end +end + +# Wrapper for Emacs style magic comments. +# +# @example Emacs style comment +# comment = RuboCop::MagicComment.parse( +# '# -*- encoding: ASCII-8BIT -*-' +# ) +# +# comment.encoding # => 'ascii-8bit' +# @see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html +# @see https://github.com/ruby/ruby/blob/3f306dc/parse.y#L6873-L6892 Emacs handling in parse.y +# +# source://rubocop//lib/rubocop/magic_comment.rb#190 +class RuboCop::MagicComment::EmacsComment < ::RuboCop::MagicComment::EditorComment + private + + # source://rubocop//lib/rubocop/magic_comment.rb#198 + def extract_frozen_string_literal; end + + # source://rubocop//lib/rubocop/magic_comment.rb#202 + def extract_shareable_constant_value; end + + # Emacs comments cannot specify Sorbet typechecking behavior. + # + # source://rubocop//lib/rubocop/magic_comment.rb#207 + def extract_typed; end +end + +# source://rubocop//lib/rubocop/magic_comment.rb#192 +RuboCop::MagicComment::EmacsComment::FORMAT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/magic_comment.rb#194 +RuboCop::MagicComment::EmacsComment::OPERATOR = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/magic_comment.rb#191 +RuboCop::MagicComment::EmacsComment::REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/magic_comment.rb#193 +RuboCop::MagicComment::EmacsComment::SEPARATOR = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/magic_comment.rb#11 +RuboCop::MagicComment::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# Wrapper for regular magic comments not bound to an editor. +# +# Simple comments can only specify one setting per comment. +# +# @example frozen string literal comments +# comment1 = RuboCop::MagicComment.parse('# frozen_string_literal: true') +# comment1.frozen_string_literal # => true +# comment1.encoding # => nil +# @example encoding comments +# comment2 = RuboCop::MagicComment.parse('# encoding: utf-8') +# comment2.frozen_string_literal # => nil +# comment2.encoding # => 'utf-8' +# +# source://rubocop//lib/rubocop/magic_comment.rb#261 +class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment + # Match `encoding` or `coding` + # + # source://rubocop//lib/rubocop/magic_comment.rb#265 + def encoding; end + + # Rewrite the comment without a given token type + # + # source://rubocop//lib/rubocop/magic_comment.rb#270 + def without(type); end + + private + + # Extract `frozen_string_literal`. + # + # The `frozen_string_literal` magic comment only works if it + # is the only text in the comment. + # + # Case-insensitive and dashes/underscores are acceptable. + # + # @see https://github.com/ruby/ruby/blob/78b95b4/parse.y#L7134-L7138 + # + # source://rubocop//lib/rubocop/magic_comment.rb#287 + def extract_frozen_string_literal; end + + # source://rubocop//lib/rubocop/magic_comment.rb#291 + def extract_shareable_constant_value; end + + # source://rubocop//lib/rubocop/magic_comment.rb#295 + def extract_typed; end +end + +# source://rubocop//lib/rubocop/magic_comment.rb#262 +RuboCop::MagicComment::SimpleComment::FSTRING_LITERAL_COMMENT = T.let(T.unsafe(nil), String) + +# IRB's pattern for matching magic comment tokens. +# +# @see https://github.com/ruby/ruby/blob/b4a55c1/lib/irb/magic-file.rb#L5 +# +# source://rubocop//lib/rubocop/magic_comment.rb#10 +RuboCop::MagicComment::TOKEN = T.let(T.unsafe(nil), String) + +# Wrapper for Vim style magic comments. +# +# @example Vim style comment +# comment = RuboCop::MagicComment.parse( +# '# vim: filetype=ruby, fileencoding=ascii-8bit' +# ) +# +# comment.encoding # => 'ascii-8bit' +# +# source://rubocop//lib/rubocop/magic_comment.rb#218 +class RuboCop::MagicComment::VimComment < ::RuboCop::MagicComment::EditorComment + # For some reason the fileencoding keyword only works if there + # is at least one other token included in the string. For example + # + # # works + # # vim: foo=bar, fileencoding=ascii-8bit + # + # # does nothing + # # vim: foo=bar, fileencoding=ascii-8bit + # + # source://rubocop//lib/rubocop/magic_comment.rb#234 + def encoding; end + + # Vim comments cannot specify Sorbet typechecking behavior. + # + # source://rubocop//lib/rubocop/magic_comment.rb#245 + def extract_typed; end + + # Vim comments cannot specify frozen string literal behavior. + # + # source://rubocop//lib/rubocop/magic_comment.rb#239 + def frozen_string_literal; end + + # Vim comments cannot specify shareable constant values behavior. + # + # source://rubocop//lib/rubocop/magic_comment.rb#242 + def shareable_constant_value; end +end + +# source://rubocop//lib/rubocop/magic_comment.rb#220 +RuboCop::MagicComment::VimComment::FORMAT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/magic_comment.rb#223 +RuboCop::MagicComment::VimComment::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/magic_comment.rb#222 +RuboCop::MagicComment::VimComment::OPERATOR = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/magic_comment.rb#219 +RuboCop::MagicComment::VimComment::REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/magic_comment.rb#221 +RuboCop::MagicComment::VimComment::SEPARATOR = T.let(T.unsafe(nil), String) + +# Common functionality for finding names that are similar to a given name. +# +# @api private +# +# source://rubocop//lib/rubocop/name_similarity.rb#6 +module RuboCop::NameSimilarity + private + + # @api private + # + # source://rubocop//lib/rubocop/name_similarity.rb#9 + def find_similar_name(target_name, names); end + + # @api private + # + # source://rubocop//lib/rubocop/name_similarity.rb#15 + def find_similar_names(target_name, names); end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/name_similarity.rb#9 + def find_similar_name(target_name, names); end + + # @api private + # + # source://rubocop//lib/rubocop/name_similarity.rb#15 + def find_similar_names(target_name, names); end + end +end + +# source://rubocop//lib/rubocop/ast_aliases.rb#5 +RuboCop::NodePattern = RuboCop::AST::NodePattern + +# source://rubocop//lib/rubocop/options.rb#10 +class RuboCop::OptionArgumentError < ::StandardError; end + +# This class handles command line options. +# +# @api private +# +# source://rubocop//lib/rubocop/options.rb#14 +class RuboCop::Options + # @api private + # @return [Options] a new instance of Options + # + # source://rubocop//lib/rubocop/options.rb#22 + def initialize; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#27 + def parse(command_line_args); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#228 + def add_additional_modes(opts); end + + # the autocorrect command-line arguments map to the autocorrect @options values like so: + # :fix_layout :autocorrect :safe_autocorrect :autocorrect_all + # -x, --fix-layout true true - - + # -a, --auto-correct - true true - + # --safe-auto-correct - true true - + # -A, --auto-correct-all - true - true + # + # @api private + # + # source://rubocop//lib/rubocop/options.rb#139 + def add_autocorrection_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#204 + def add_cache_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#73 + def add_check_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#162 + def add_config_generation_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#180 + def add_cop_selection_csv_option(option, opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#240 + def add_general_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#211 + def add_lsp_option(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#104 + def add_output_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#252 + def add_profile_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#217 + def add_server_options(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#195 + def add_severity_option(opts); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#53 + def define_options; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#262 + def handle_deprecated_option(old_option, new_option); end + + # Finds the option in `args` starting with -- and converts it to a symbol, + # e.g. [..., '--autocorrect', ...] to :autocorrect. + # + # @api private + # + # source://rubocop//lib/rubocop/options.rb#296 + def long_opt_symbol(args); end + + # Sets a value in the @options hash, based on the given long option and its + # value, in addition to calling the block if a block is given. + # + # @api private + # + # source://rubocop//lib/rubocop/options.rb#285 + def option(opts, *args); end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#267 + def rainbow; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#301 + def require_feature(file); end + + # Creates a section of options in order to separate them visually when + # using `--help`. + # + # @api private + # + # source://rubocop//lib/rubocop/options.rb#277 + def section(opts, heading, &_block); end +end + +# @api private +# +# source://rubocop//lib/rubocop/options.rb#20 +RuboCop::Options::DEFAULT_MAXIMUM_EXCLUSION_ITEMS = T.let(T.unsafe(nil), Integer) + +# @api private +# +# source://rubocop//lib/rubocop/options.rb#19 +RuboCop::Options::EXITING_OPTIONS = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/options.rb#15 +RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String) + +# This module contains help texts for command line options. +# +# @api private +# +# source://rubocop//lib/rubocop/options.rb#497 +module RuboCop::OptionsHelp; end + +# @api private +# +# source://rubocop//lib/rubocop/options.rb#499 +RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/options.rb#498 +RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/options.rb#501 +RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash) + +# Validates option arguments and the options' compatibility with each other. +# +# @api private +# +# source://rubocop//lib/rubocop/options.rb#311 +class RuboCop::OptionsValidator + # @api private + # @return [OptionsValidator] a new instance of OptionsValidator + # + # source://rubocop//lib/rubocop/options.rb#349 + def initialize(options); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/options.rb#471 + def boolean_or_empty_cache?; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#437 + def disable_parallel_when_invalid_option_combo; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/options.rb#463 + def display_only_fail_level_offenses_with_autocorrect?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/options.rb#467 + def except_syntax?; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#475 + def incompatible_options; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#450 + def invalid_arguments_for_parallel; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/options.rb#458 + def only_includes_redundant_disable?; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#384 + def validate_auto_gen_config; end + + # @api private + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/options.rb#423 + def validate_autocorrect; end + + # @api private + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/options.rb#487 + def validate_cache_enabled_for_cache_root; end + + # @api private + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/options.rb#358 + def validate_compatibility; end + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#353 + def validate_cop_options; end + + # @api private + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/options.rb#405 + def validate_display_only_correctable_and_autocorrect; end + + # @api private + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/options.rb#397 + def validate_display_only_failed; end + + # @api private + # @raise [OptionArgumentError] + # + # source://rubocop//lib/rubocop/options.rb#414 + def validate_display_only_failed_and_display_only_correctable; end + + # @api private + # @raise [OptionParser::MissingArgument] + # + # source://rubocop//lib/rubocop/options.rb#479 + def validate_exclude_limit_option; end + + class << self + # Cop name validation must be done later than option parsing, so it's not + # called from within Options. + # + # @api private + # + # source://rubocop//lib/rubocop/options.rb#318 + def validate_cop_list(names); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/options.rb#335 + def format_message_from(name, cop_names); end + end +end + +# Common methods and behaviors for dealing with paths. +# +# source://rubocop//lib/rubocop/path_util.rb#5 +module RuboCop::PathUtil + private + + # Returns true for an absolute Unix or Windows path. + # + # source://rubocop//lib/rubocop/path_util.rb#72 + def absolute?(path); end + + # Returns true for a glob + # + # source://rubocop//lib/rubocop/path_util.rb#77 + def glob?(path); end + + # source://rubocop//lib/rubocop/path_util.rb#107 + def hidden_dir?(path); end + + # source://rubocop//lib/rubocop/path_util.rb#90 + def hidden_file?(path); end + + # source://rubocop//lib/rubocop/path_util.rb#81 + def hidden_file_in_not_hidden_dir?(pattern, path); end + + # source://rubocop//lib/rubocop/path_util.rb#48 + def match_path?(pattern, path); end + + # Loose check to reduce memory allocations + # + # source://rubocop//lib/rubocop/path_util.rb#97 + def maybe_hidden_file?(path); end + + # source://rubocop//lib/rubocop/path_util.rb#13 + def relative_path(path, base_dir = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/path_util.rb#34 + def smart_path(path); end + + class << self + # Returns true for an absolute Unix or Windows path. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#72 + def absolute?(path); end + + # Returns true for a glob + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#77 + def glob?(path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#107 + def hidden_dir?(path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#90 + def hidden_file?(path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#81 + def hidden_file_in_not_hidden_dir?(pattern, path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#48 + def match_path?(pattern, path); end + + # Loose check to reduce memory allocations + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#97 + def maybe_hidden_file?(path); end + + # source://rubocop//lib/rubocop/path_util.rb#13 + def relative_path(path, base_dir = T.unsafe(nil)); end + + # Returns the value of attribute relative_paths_cache. + # + # source://rubocop//lib/rubocop/path_util.rb#7 + def relative_paths_cache; end + + # Sets the attribute relative_paths_cache + # + # @param value the value to set the attribute relative_paths_cache to. + # + # source://rubocop//lib/rubocop/path_util.rb#7 + def relative_paths_cache=(_arg0); end + + # source://rubocop//lib/rubocop/path_util.rb#34 + def smart_path(path); end + end +end + +# source://rubocop//lib/rubocop/path_util.rb#94 +RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/path_util.rb#31 +RuboCop::PathUtil::SMART_PATH_CACHE = T.let(T.unsafe(nil), Hash) + +# This module provides information on the platform that RuboCop is being run +# on. +# +# source://rubocop//lib/rubocop/platform.rb#6 +module RuboCop::Platform + class << self + # @return [Boolean] + # + # source://rubocop//lib/rubocop/platform.rb#7 + def windows?; end + end +end + +# source://rubocop//lib/rubocop/ast_aliases.rb#6 +RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource + +# Common methods and behaviors for dealing with remote config files. +# +# @api private +# +# source://rubocop//lib/rubocop/remote_config.rb#9 +class RuboCop::RemoteConfig + # @api private + # @return [RemoteConfig] a new instance of RemoteConfig + # + # source://rubocop//lib/rubocop/remote_config.rb#14 + def initialize(url, base_dir); end + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#19 + def file; end + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#32 + def inherit_from_remote(file, path); end + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#10 + def uri; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#95 + def cache_name_from_uri; end + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#78 + def cache_path; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/remote_config.rb#82 + def cache_path_exists?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/remote_config.rb#86 + def cache_path_expired?; end + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#101 + def cloned_url; end + + # @api private + # @yield [request] + # + # source://rubocop//lib/rubocop/remote_config.rb#53 + def generate_request(uri); end + + # @api private + # + # source://rubocop//lib/rubocop/remote_config.rb#62 + def handle_response(response, limit, &block); end + + # @api private + # @raise [ArgumentError] + # + # source://rubocop//lib/rubocop/remote_config.rb#40 + def request(uri = T.unsafe(nil), limit = T.unsafe(nil), &block); end +end + +# @api private +# +# source://rubocop//lib/rubocop/remote_config.rb#12 +RuboCop::RemoteConfig::CACHE_LIFETIME = T.let(T.unsafe(nil), Integer) + +# Provides functionality for caching RuboCop runs. +# +# @api private +# +# source://rubocop//lib/rubocop/result_cache.rb#12 +class RuboCop::ResultCache + # @api private + # @return [ResultCache] a new instance of ResultCache + # + # source://rubocop//lib/rubocop/result_cache.rb#88 + def initialize(file, team, options, config_store, cache_root = T.unsafe(nil)); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/result_cache.rb#101 + def debug?; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#109 + def load; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#86 + def path; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#114 + def save(offenses); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/result_cache.rb#105 + def valid?; end + + private + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/result_cache.rb#147 + def any_symlink?(path); end + + # We combine team and options into a single "context" checksum to avoid + # making file names that are too long for some filesystems to handle. + # This context is for anything that's not (1) the RuboCop executable + # checksum or (2) the inspected file checksum. + # + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#237 + def context_checksum(team, options); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#190 + def digest(path); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#158 + def file_checksum(file, config_store); end + + # Return a hash of the options given at invocation, minus the ones that have + # no effect on which offenses and disabled line ranges are found, and thus + # don't affect caching. + # + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#221 + def relevant_options_digest(options); end + + # The checksum of the RuboCop program running the inspection. + # + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#175 + def rubocop_checksum; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#201 + def rubocop_extra_features; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/result_cache.rb#143 + def symlink_protection_triggered?(path); end + + # The external dependency checksums are cached per RuboCop team so that + # the checksums don't need to be recomputed for each file. + # + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#228 + def team_checksum(team); end + + class << self + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/result_cache.rb#82 + def allow_symlinks_in_cache_location?(config_store); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#76 + def cache_root(config_store); end + + # Remove old files so that the cache doesn't grow too big. When the + # threshold MaxFilesInCache has been exceeded, the oldest 50% of all the + # files in the cache are removed. The reason for removing so much is that + # cleaning should be done relatively seldom, since there is a slight risk + # that some other RuboCop process was just about to read the file, when + # there's parallel execution and the cache is shared. + # + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#29 + def cleanup(config_store, verbose, cache_root = T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#171 + def inhibit_cleanup; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#171 + def inhibit_cleanup=(_arg0); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#43 + def rubocop_required_features; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#43 + def rubocop_required_features=(_arg0); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#171 + def source_checksum; end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#171 + def source_checksum=(_arg0); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#66 + def remove_files(files, dirs, remove_count); end + + # @api private + # + # source://rubocop//lib/rubocop/result_cache.rb#53 + def remove_oldest_files(files, dirs, cache_root, verbose); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/result_cache.rb#49 + def requires_file_removal?(file_count, config_store); end + end +end + +# @api private +# +# source://rubocop//lib/rubocop/result_cache.rb#17 +RuboCop::ResultCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/result_cache.rb#13 +RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array) + +# This class handles the processing of files, which includes dealing with +# formatters and letting cops inspect the files. +# +# source://rubocop//lib/rubocop/runner.rb#8 +class RuboCop::Runner + # @return [Runner] a new instance of Runner + # + # source://rubocop//lib/rubocop/runner.rb#59 + def initialize(options, config_store); end + + # Sets the attribute aborting + # + # @param value the value to set the attribute aborting to. + # + # source://rubocop//lib/rubocop/runner.rb#57 + def aborting=(_arg0); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#83 + def aborting?; end + + # Returns the value of attribute errors. + # + # source://rubocop//lib/rubocop/runner.rb#56 + def errors; end + + # source://rubocop//lib/rubocop/runner.rb#67 + def run(paths); end + + # Returns the value of attribute warnings. + # + # source://rubocop//lib/rubocop/runner.rb#56 + def warnings; end + + private + + # source://rubocop//lib/rubocop/runner.rb#196 + def add_redundant_disables(file, offenses, source); end + + # source://rubocop//lib/rubocop/runner.rb#170 + def cached_result(file, team); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#250 + def cached_run?; end + + # Check whether a run created source identical to a previous run, which + # means that we definitely have an infinite loop. + # + # source://rubocop//lib/rubocop/runner.rb#328 + def check_for_infinite_loop(processed_source, offenses_by_iteration); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#222 + def check_for_redundant_disables?(source); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#423 + def considered_failure?(offense); end + + # source://rubocop//lib/rubocop/runner.rb#456 + def default_config(cop_name); end + + # source://rubocop//lib/rubocop/runner.rb#272 + def do_inspection_loop(file); end + + # source://rubocop//lib/rubocop/runner.rb#133 + def each_inspected_file(files); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#236 + def except_redundant_cop_disable_directive?; end + + # source://rubocop//lib/rubocop/runner.rb#357 + def extract_ruby_sources(processed_source); end + + # source://rubocop//lib/rubocop/runner.rb#245 + def file_finished(file, offenses); end + + # source://rubocop//lib/rubocop/runner.rb#174 + def file_offense_cache(file); end + + # source://rubocop//lib/rubocop/runner.rb#162 + def file_offenses(file); end + + # source://rubocop//lib/rubocop/runner.rb#240 + def file_started(file); end + + # source://rubocop//lib/rubocop/runner.rb#403 + def filter_cop_classes(cop_classes, config); end + + # source://rubocop//lib/rubocop/runner.rb#104 + def find_target_files(paths); end + + # source://rubocop//lib/rubocop/runner.rb#414 + def formatter_set; end + + # source://rubocop//lib/rubocop/runner.rb#470 + def get_processed_source(file); end + + # source://rubocop//lib/rubocop/runner.rb#342 + def inspect_file(processed_source, team = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/runner.rb#115 + def inspect_files(files); end + + # source://rubocop//lib/rubocop/runner.rb#303 + def iterate_until_no_changes(source, offenses_by_iteration); end + + # source://rubocop//lib/rubocop/runner.rb#148 + def list_files(paths); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#452 + def mark_as_safe_by_config?(config); end + + # source://rubocop//lib/rubocop/runner.rb#460 + def minimum_severity_to_fail; end + + # source://rubocop//lib/rubocop/runner.rb#364 + def mobilize_team(processed_source); end + + # source://rubocop//lib/rubocop/runner.rb#369 + def mobilized_cop_classes(config); end + + # source://rubocop//lib/rubocop/runner.rb#432 + def offenses_to_report(offenses); end + + # source://rubocop//lib/rubocop/runner.rb#152 + def process_file(file); end + + # source://rubocop//lib/rubocop/runner.rb#393 + def qualify_option_cop_names; end + + # @yield [cop] + # + # source://rubocop//lib/rubocop/runner.rb#228 + def redundant_cop_disable_directive(file); end + + # source://rubocop//lib/rubocop/runner.rb#262 + def save_in_cache(cache, offenses); end + + # A Cop::Team instance is stateful and may change when inspecting. + # The "standby" team for a given config is an initialized but + # otherwise dormant team that can be used for config- and option- + # level caching in ResultCache. + # + # source://rubocop//lib/rubocop/runner.rb#492 + def standby_team(config); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#410 + def style_guide_cops_only?(config); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#444 + def supports_safe_autocorrect?(offense); end + + # @yield [team] + # + # source://rubocop//lib/rubocop/runner.rb#211 + def team_for_redundant_disables(file, offenses, source); end + + # Warms up the RuboCop cache by forking a suitable number of RuboCop + # instances that each inspects its allotted group of files. + # + # source://rubocop//lib/rubocop/runner.rb#91 + def warm_cache(target_files); end + + class << self + # @return [Array<#call>] + # + # source://rubocop//lib/rubocop/runner.rb#29 + def ruby_extractors; end + + private + + # @return [#call] + # + # source://rubocop//lib/rubocop/runner.rb#36 + def default_ruby_extractor; end + end +end + +# An exception indicating that the inspection loop got stuck correcting +# offenses back and forth. +# +# source://rubocop//lib/rubocop/runner.rb#11 +class RuboCop::Runner::InfiniteCorrectionLoop < ::StandardError + # @return [InfiniteCorrectionLoop] a new instance of InfiniteCorrectionLoop + # + # source://rubocop//lib/rubocop/runner.rb#14 + def initialize(path, offenses_by_iteration, loop_start: T.unsafe(nil)); end + + # Returns the value of attribute offenses. + # + # source://rubocop//lib/rubocop/runner.rb#12 + def offenses; end +end + +# @api private +# +# source://rubocop//lib/rubocop/runner.rb#49 +RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer) + +# @api private +# +# source://rubocop//lib/rubocop/runner.rb#52 +RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array) + +# Take a string with embedded escapes, and convert the escapes as the Ruby +# interpreter would when reading a double-quoted string literal. +# For example, "\\n" will be converted to "\n". +# +# source://rubocop//lib/rubocop/string_interpreter.rb#7 +class RuboCop::StringInterpreter + class << self + # source://rubocop//lib/rubocop/string_interpreter.rb#24 + def interpret(string); end + + private + + # source://rubocop//lib/rubocop/string_interpreter.rb#51 + def interpret_hex(escape); end + + # source://rubocop//lib/rubocop/string_interpreter.rb#55 + def interpret_octal(escape); end + + # source://rubocop//lib/rubocop/string_interpreter.rb#33 + def interpret_string_escape(escape); end + + # source://rubocop//lib/rubocop/string_interpreter.rb#43 + def interpret_unicode(escape); end + end +end + +# source://rubocop//lib/rubocop/string_interpreter.rb#8 +RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/string_interpreter.rb#12 +RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp) + +# This class finds target files to inspect by scanning the directory tree +# and picking ruby files. +# +# @api private +# +# source://rubocop//lib/rubocop/target_finder.rb#7 +class RuboCop::TargetFinder + # @api private + # @return [TargetFinder] a new instance of TargetFinder + # + # source://rubocop//lib/rubocop/target_finder.rb#10 + def initialize(config_store, options = T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#149 + def all_cops_include; end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#120 + def combined_exclude_glob_patterns(base_dir); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#176 + def configured_include?(file); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#19 + def debug?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#23 + def fail_fast?; end + + # Generate a list of target files by expanding globbing patterns + # (if any). If args is empty, recursively find all Ruby source + # files under the current directory + # + # @api private + # @return [Array] array of file paths + # + # source://rubocop//lib/rubocop/target_finder.rb#31 + def find(args, mode); end + + # Search for files recursively starting at the given base directory using + # the given flags that determine how the match is made. Excluded files will + # be removed later by the caller, but as an optimization find_files removes + # the top level directories that are excluded in configuration in the + # normal way (dir/**/*). + # + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#83 + def find_files(base_dir, flags); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#15 + def force_exclusion?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#180 + def included_file?(file); end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#184 + def process_explicit_path(path, mode); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#153 + def ruby_executable?(file); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#127 + def ruby_extension?(file); end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#131 + def ruby_extensions; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#172 + def ruby_file?(file); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#138 + def ruby_filename?(file); end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#142 + def ruby_filenames; end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#164 + def ruby_interpreters(file); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#168 + def stdin?; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#112 + def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end + + # Finds all Ruby source files under the current or other supplied + # directory. A Ruby source file is defined as a file with the `.rb` + # extension or a file with no extension that has a ruby shebang line + # as its first line. + # It is possible to specify includes and excludes using the config file, + # so you can include other Ruby files like Rakefiles and gemspecs. + # + # @api private + # @param base_dir Root directory under which to search for + # ruby source files + # @return [Array] Array of filenames + # + # source://rubocop//lib/rubocop/target_finder.rb#56 + def target_files_in_dir(base_dir = T.unsafe(nil)); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_finder.rb#69 + def to_inspect?(file, hidden_files, base_dir_config); end + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#96 + def wanted_dir_patterns(base_dir, exclude_pattern, flags); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_finder.rb#201 + def order; end +end + +# @api private +# +# source://rubocop//lib/rubocop/target_finder.rb#8 +RuboCop::TargetFinder::HIDDEN_PATH_SUBSTRING = T.let(T.unsafe(nil), String) + +# The kind of Ruby that code inspected by RuboCop is written in. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#6 +class RuboCop::TargetRuby + # @api private + # @return [TargetRuby] a new instance of TargetRuby + # + # source://rubocop//lib/rubocop/target_ruby.rb#252 + def initialize(config); end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#268 + def rubocop_version_with_support; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#256 + def source; end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/target_ruby.rb#264 + def supported?; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#260 + def version; end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#238 + def supported_versions; end + end +end + +# The lock file of Bundler may identify the target ruby version. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#107 +class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#108 + def name; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#141 + def bundler_lock_file_path; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#114 + def find_version; end +end + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#8 +RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float) + +# If all else fails, a default version will be picked. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#226 +class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#227 + def name; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#233 + def find_version; end +end + +# The target ruby version may be found in a .gemspec file. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#148 +class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop//lib/rubocop/target_ruby.rb#159 + def gem_requirement_versions(param0 = T.unsafe(nil)); end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#165 + def name; end + + # source://rubocop//lib/rubocop/target_ruby.rb#154 + def required_ruby_version(param0); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#214 + def find_default_minimal_known_ruby(right_hand_side); end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#171 + def find_version; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#181 + def gemspec_filename; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#188 + def gemspec_filepath; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#210 + def version_from_array(array); end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#193 + def version_from_gemspec_file(file); end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#198 + def version_from_right_hand_side(right_hand_side); end +end + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#151 +RuboCop::TargetRuby::GemspecFile::GEMSPEC_EXTENSION = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#7 +RuboCop::TargetRuby::KNOWN_RUBIES = T.let(T.unsafe(nil), Array) + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#10 +RuboCop::TargetRuby::OBSOLETE_RUBIES = T.let(T.unsafe(nil), Hash) + +# The target ruby version may be configured in RuboCop's config. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#39 +class RuboCop::TargetRuby::RuboCopConfig < ::RuboCop::TargetRuby::Source + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#40 + def name; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#46 + def find_version; end +end + +# The target ruby version may be found in a .ruby-version file. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#53 +class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#57 + def name; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#63 + def filename; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#71 + def find_version; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#67 + def pattern; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#78 + def version_file; end +end + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#54 +RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#55 +RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp) + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#242 +RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array) + +# A place where information about a target ruby version is found. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#24 +class RuboCop::TargetRuby::Source + # @api private + # @return [Source] a new instance of Source + # + # source://rubocop//lib/rubocop/target_ruby.rb#27 + def initialize(config); end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#25 + def name; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#32 + def to_s; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#25 + def version; end +end + +# The target ruby version may be found in a .tool-versions file, in a line +# starting with `ruby`. +# +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#86 +class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#90 + def name; end + + private + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#96 + def filename; end + + # @api private + # + # source://rubocop//lib/rubocop/target_ruby.rb#100 + def pattern; end +end + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#87 +RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String) + +# @api private +# +# source://rubocop//lib/rubocop/target_ruby.rb#88 +RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/ast_aliases.rb#7 +RuboCop::Token = RuboCop::AST::Token + +# This module contains a collection of useful utility methods. +# +# source://rubocop//lib/rubocop/util.rb#5 +module RuboCop::Util + class << self + # source://rubocop//lib/rubocop/util.rb#6 + def silence_warnings; end + end +end + +# source://rubocop//lib/rubocop/error.rb#10 +class RuboCop::ValidationError < ::RuboCop::Error; end + +# This module holds the RuboCop version information. +# +# source://rubocop//lib/rubocop/version.rb#5 +module RuboCop::Version + class << self + # @api private + # + # source://rubocop//lib/rubocop/version.rb#93 + def document_version; end + + # @api private + # + # source://rubocop//lib/rubocop/version.rb#43 + def extension_versions(env); end + + # Returns feature version in one of two ways: + # + # * Find by RuboCop core version style (e.g. rubocop-performance, rubocop-rspec) + # * Find by `bundle gem` version style (e.g. rubocop-rake) + # + # @api private + # + # source://rubocop//lib/rubocop/version.rb#77 + def feature_version(feature); end + + # @api private + # + # source://rubocop//lib/rubocop/version.rb#98 + def server_mode; end + + # @api private + # + # source://rubocop//lib/rubocop/version.rb#21 + def version(debug: T.unsafe(nil), env: T.unsafe(nil)); end + end +end + +# source://rubocop//lib/rubocop/version.rb#12 +RuboCop::Version::CANONICAL_FEATURE_NAMES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/version.rb#16 +RuboCop::Version::EXTENSION_PATH_NAMES = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/version.rb#8 +RuboCop::Version::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/version.rb#6 +RuboCop::Version::STRING = T.let(T.unsafe(nil), String) + +# A Warning exception is different from an Offense with severity 'warning' +# When a Warning is raised, this means that RuboCop was unable to perform a +# requested operation (such as inspecting or correcting a source file) due to +# user error +# For example, a configuration value in .rubocop.yml might be malformed +# +# source://rubocop//lib/rubocop/warning.rb#9 +class RuboCop::Warning < ::StandardError; end + +# Find duplicated keys from YAML. +# +# @api private +# +# source://rubocop//lib/rubocop/yaml_duplication_checker.rb#6 +module RuboCop::YAMLDuplicationChecker + class << self + # @api private + # + # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#7 + def check(yaml_string, filename, &on_duplicated); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#21 + def traverse(tree, &on_duplicated); end + end +end + +# Extensions to the core String class +# +# source://rubocop//lib/rubocop/core_ext/string.rb#4 +class String + include ::Comparable + + # Checks whether a string is blank. A string is considered blank if it + # is either empty or contains only whitespace characters. + # + # @example + # ''.blank? #=> true + # @example + # ' '.blank? #=> true + # @example + # ' test'.blank? #=> false + # @return [Boolean] true is the string is blank, false otherwise + # + # source://rubocop//lib/rubocop/core_ext/string.rb#19 + def blank?; end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi new file mode 100755 index 000000000..fe14ff97d --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi @@ -0,0 +1,1317 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `ruby-progressbar` gem. +# Please instead update this file by running `bin/tapioca gem ruby-progressbar`. + +# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#4 +class ProgressBar + class << self + # source://ruby-progressbar//lib/ruby-progressbar.rb#9 + def create(*args); end + end +end + +# source://ruby-progressbar//lib/ruby-progressbar/base.rb#17 +class ProgressBar::Base + extend ::Forwardable + + # @return [Base] a new instance of Base + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#45 + def initialize(options = T.unsafe(nil)); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def clear(*args, **_arg1, &block); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#137 + def decrement; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#92 + def finish; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#129 + def finished?; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203 + def format(other); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203 + def format=(other); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#141 + def increment; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#199 + def inspect; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def log(*args, **_arg1, &block); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#102 + def pause; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123 + def paused?; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def progress(*args, **_arg1, &block); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#145 + def progress=(new_progress); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#153 + def progress_mark=(mark); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def refresh(*args, **_arg1, &block); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#157 + def remainder_mark=(mark); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#114 + def reset; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#110 + def resume; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#87 + def start(options = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#133 + def started?; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#106 + def stop; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123 + def stopped?; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#161 + def title; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#165 + def title=(title); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#176 + def to_h; end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#169 + def to_s(new_format = T.unsafe(nil)); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def total(*args, **_arg1, &block); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#149 + def total=(new_total); end + + protected + + # Returns the value of attribute autofinish. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def autofinish; end + + # Sets the attribute autofinish + # + # @param value the value to set the attribute autofinish to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def autofinish=(_arg0); end + + # Returns the value of attribute autostart. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def autostart; end + + # Sets the attribute autostart + # + # @param value the value to set the attribute autostart to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def autostart=(_arg0); end + + # Returns the value of attribute bar_component. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def bar_component; end + + # Sets the attribute bar_component + # + # @param value the value to set the attribute bar_component to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def bar_component=(_arg0); end + + # Returns the value of attribute finished. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def finished; end + + # Sets the attribute finished + # + # @param value the value to set the attribute finished to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def finished=(_arg0); end + + # Returns the value of attribute output. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def output; end + + # Sets the attribute output + # + # @param value the value to set the attribute output to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def output=(_arg0); end + + # Returns the value of attribute percentage_component. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def percentage_component; end + + # Sets the attribute percentage_component + # + # @param value the value to set the attribute percentage_component to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def percentage_component=(_arg0); end + + # Returns the value of attribute progressable. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def progressable; end + + # Sets the attribute progressable + # + # @param value the value to set the attribute progressable to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def progressable=(_arg0); end + + # Returns the value of attribute projector. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def projector; end + + # Sets the attribute projector + # + # @param value the value to set the attribute projector to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def projector=(_arg0); end + + # Returns the value of attribute rate_component. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def rate_component; end + + # Sets the attribute rate_component + # + # @param value the value to set the attribute rate_component to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def rate_component=(_arg0); end + + # Returns the value of attribute time_component. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def time_component; end + + # Sets the attribute time_component + # + # @param value the value to set the attribute time_component to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def time_component=(_arg0); end + + # Returns the value of attribute timer. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def timer; end + + # Sets the attribute timer + # + # @param value the value to set the attribute timer to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def timer=(_arg0); end + + # Returns the value of attribute title_component. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def title_component; end + + # Sets the attribute title_component + # + # @param value the value to set the attribute title_component to. + # + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213 + def title_component=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/base.rb#226 + def update_progress(*args); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/base.rb#28 +ProgressBar::Base::RUNNING_AVERAGE_RATE_DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/base.rb#21 +ProgressBar::Base::SMOOTHING_DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#2 +module ProgressBar::Calculators; end + +# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#3 +class ProgressBar::Calculators::Length + # @return [Length] a new instance of Length + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#8 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#25 + def calculate_length; end + + # Returns the value of attribute current_length. + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5 + def current_length; end + + # Sets the attribute current_length + # + # @param value the value to set the attribute current_length to. + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5 + def current_length=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#14 + def length; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#18 + def length_changed?; end + + # Returns the value of attribute length_override. + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#4 + def length_override; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#33 + def length_override=(other); end + + # Returns the value of attribute output. + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5 + def output; end + + # Sets the attribute output + # + # @param value the value to set the attribute output to. + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5 + def output=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#29 + def reset_length; end + + private + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#56 + def dynamic_width; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#85 + def dynamic_width_stty; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#89 + def dynamic_width_tput; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#76 + def dynamic_width_via_io_object; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#71 + def dynamic_width_via_output_stream_object; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#81 + def dynamic_width_via_system_calls; end + + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#43 + def terminal_width; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#93 + def unix?; end +end + +# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#5 +module ProgressBar::Components; end + +# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#6 +class ProgressBar::Components::Bar + # @return [Bar] a new instance of Bar + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#17 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#35 + def bar(length); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#63 + def bar_with_percentage(length); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#41 + def complete_bar(length); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#47 + def complete_bar_with_percentage(length); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#53 + def incomplete_space(length); end + + # Returns the value of attribute length. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def length; end + + # Sets the attribute length + # + # @param value the value to set the attribute length to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def length=(_arg0); end + + # Returns the value of attribute progress. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def progress; end + + # Sets the attribute progress + # + # @param value the value to set the attribute progress to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def progress=(_arg0); end + + # Returns the value of attribute progress_mark. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def progress_mark; end + + # Sets the attribute progress_mark + # + # @param value the value to set the attribute progress_mark to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def progress_mark=(_arg0); end + + # Returns the value of attribute remainder_mark. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def remainder_mark; end + + # Sets the attribute remainder_mark + # + # @param value the value to set the attribute remainder_mark to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def remainder_mark=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#25 + def to_s(options = T.unsafe(nil)); end + + # Returns the value of attribute upa_steps. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def upa_steps; end + + # Sets the attribute upa_steps + # + # @param value the value to set the attribute upa_steps to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11 + def upa_steps=(_arg0); end + + private + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#91 + def completed_length; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#81 + def incomplete_string; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#71 + def integrated_percentage_complete_string; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#77 + def standard_complete_string; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#95 + def unknown_progress_frame; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#85 + def unknown_string; end +end + +# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#7 +ProgressBar::Components::Bar::DEFAULT_PROGRESS_MARK = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#8 +ProgressBar::Components::Bar::DEFAULT_REMAINDER_MARK = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#9 +ProgressBar::Components::Bar::DEFAULT_UPA_STEPS = T.let(T.unsafe(nil), Array) + +# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#3 +class ProgressBar::Components::Percentage + # @return [Percentage] a new instance of Percentage + # + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#6 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#14 + def justified_percentage; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#22 + def justified_percentage_with_precision; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#10 + def percentage; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#18 + def percentage_with_precision; end + + # Returns the value of attribute progress. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#4 + def progress; end + + # Sets the attribute progress + # + # @param value the value to set the attribute progress to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#4 + def progress=(_arg0); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#3 +class ProgressBar::Components::Rate + # @return [Rate] a new instance of Rate + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#8 + def initialize(options = T.unsafe(nil)); end + + # Returns the value of attribute progress. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4 + def progress; end + + # Sets the attribute progress + # + # @param value the value to set the attribute progress to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4 + def progress=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#14 + def rate_of_change(format_string = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#20 + def rate_of_change_with_precision; end + + # Returns the value of attribute rate_scale. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4 + def rate_scale; end + + # Sets the attribute rate_scale + # + # @param value the value to set the attribute rate_scale to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4 + def rate_scale=(_arg0); end + + # Returns the value of attribute timer. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4 + def timer; end + + # Sets the attribute timer + # + # @param value the value to set the attribute timer to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4 + def timer=(_arg0); end + + private + + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#30 + def base_rate; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#34 + def elapsed_seconds; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#26 + def scaled_rate; end +end + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#6 +class ProgressBar::Components::Time + # @return [Time] a new instance of Time + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#21 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#31 + def elapsed_with_label; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#47 + def estimated_wall_clock; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#43 + def estimated_with_friendly_oob; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#27 + def estimated_with_label(out_of_bounds_time_format = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#35 + def estimated_with_no_oob; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#39 + def estimated_with_unknown_oob; end + + protected + + # Returns the value of attribute progress. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60 + def progress; end + + # Sets the attribute progress + # + # @param value the value to set the attribute progress to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60 + def progress=(_arg0); end + + # Returns the value of attribute projector. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60 + def projector; end + + # Sets the attribute projector + # + # @param value the value to set the attribute projector to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60 + def projector=(_arg0); end + + # Returns the value of attribute timer. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60 + def timer; end + + # Sets the attribute timer + # + # @param value the value to set the attribute timer to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60 + def timer=(_arg0); end + + private + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#80 + def elapsed; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#66 + def estimated(out_of_bounds_time_format); end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#94 + def estimated_seconds_remaining; end + + # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#88 + def estimated_with_elapsed_fallback(out_of_bounds_time_format); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#14 +ProgressBar::Components::Time::ELAPSED_LABEL = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#13 +ProgressBar::Components::Time::ESTIMATED_LABEL = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#12 +ProgressBar::Components::Time::NO_TIME_ELAPSED_TEXT = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#11 +ProgressBar::Components::Time::OOB_FRIENDLY_TIME_TEXT = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#9 +ProgressBar::Components::Time::OOB_LIMIT_IN_HOURS = T.let(T.unsafe(nil), Integer) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#16 +ProgressBar::Components::Time::OOB_TEXT_TO_FORMAT = T.let(T.unsafe(nil), Hash) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#8 +ProgressBar::Components::Time::OOB_TIME_FORMATS = T.let(T.unsafe(nil), Array) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#10 +ProgressBar::Components::Time::OOB_UNKNOWN_TIME_TEXT = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#7 +ProgressBar::Components::Time::TIME_FORMAT = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#15 +ProgressBar::Components::Time::WALL_CLOCK_FORMAT = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#3 +class ProgressBar::Components::Title + # @return [Title] a new instance of Title + # + # source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#8 + def initialize(options = T.unsafe(nil)); end + + # Returns the value of attribute title. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#6 + def title; end + + # Sets the attribute title + # + # @param value the value to set the attribute title to. + # + # source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#6 + def title=(_arg0); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#4 +ProgressBar::Components::Title::DEFAULT_TITLE = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#2 +module ProgressBar::Format; end + +# source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#3 +class ProgressBar::Format::Formatter + class << self + # source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#4 + def process(format_string, max_length, bar); end + end +end + +# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#3 +class ProgressBar::Format::Molecule + # @return [Molecule] a new instance of Molecule + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#33 + def initialize(letter); end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#38 + def bar_molecule?; end + + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#46 + def full_key; end + + # Returns the value of attribute key. + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30 + def key; end + + # Sets the attribute key + # + # @param value the value to set the attribute key to. + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30 + def key=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#50 + def lookup_value(environment, length = T.unsafe(nil)); end + + # Returns the value of attribute method_name. + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30 + def method_name; end + + # Sets the attribute method_name + # + # @param value the value to set the attribute method_name to. + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30 + def method_name=(_arg0); end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#42 + def non_bar_molecule?; end +end + +# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#28 +ProgressBar::Format::Molecule::BAR_MOLECULES = T.let(T.unsafe(nil), Array) + +# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#4 +ProgressBar::Format::Molecule::MOLECULES = T.let(T.unsafe(nil), Hash) + +# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#5 +class ProgressBar::Format::String < ::String + # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#13 + def bar_molecule_placeholder_length; end + + # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#21 + def bar_molecules; end + + # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#9 + def displayable_length; end + + # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#25 + def molecules; end + + # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#17 + def non_bar_molecules; end +end + +# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#7 +ProgressBar::Format::String::ANSI_SGR_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#6 +ProgressBar::Format::String::MOLECULE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://ruby-progressbar//lib/ruby-progressbar/errors/invalid_progress_error.rb#2 +class ProgressBar::InvalidProgressError < ::RuntimeError; end + +# source://ruby-progressbar//lib/ruby-progressbar/output.rb#5 +class ProgressBar::Output + # @return [Output] a new instance of Output + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#10 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#37 + def clear_string; end + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#41 + def length; end + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#30 + def log(string); end + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#50 + def refresh(options = T.unsafe(nil)); end + + # Returns the value of attribute stream. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#8 + def stream; end + + # Sets the attribute stream + # + # @param value the value to set the attribute stream to. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#8 + def stream=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#45 + def with_refresh; end + + protected + + # Returns the value of attribute bar. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60 + def bar; end + + # Sets the attribute bar + # + # @param value the value to set the attribute bar to. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60 + def bar=(_arg0); end + + # Returns the value of attribute length_calculator. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60 + def length_calculator; end + + # Sets the attribute length_calculator + # + # @param value the value to set the attribute length_calculator to. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60 + def length_calculator=(_arg0); end + + # Returns the value of attribute throttle. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60 + def throttle; end + + # Sets the attribute throttle + # + # @param value the value to set the attribute throttle to. + # + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60 + def throttle=(_arg0); end + + private + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#66 + def print_and_flush; end + + class << self + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#20 + def detect(options = T.unsafe(nil)); end + end +end + +# source://ruby-progressbar//lib/ruby-progressbar/output.rb#6 +ProgressBar::Output::DEFAULT_OUTPUT_STREAM = T.let(T.unsafe(nil), IO) + +# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#4 +module ProgressBar::Outputs; end + +# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#5 +class ProgressBar::Outputs::NonTty < ::ProgressBar::Output + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#18 + def bar_update_string; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#8 + def clear; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#28 + def default_format; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#38 + def eol; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#14 + def last_update_length; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#36 + def refresh_with_format_change(*_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#32 + def resolve_format(*_arg0); end + + protected + + # Sets the attribute last_update_length + # + # @param value the value to set the attribute last_update_length to. + # + # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#44 + def last_update_length=(_arg0); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#6 +ProgressBar::Outputs::NonTty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#5 +class ProgressBar::Outputs::Tty < ::ProgressBar::Output + # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#15 + def bar_update_string; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#10 + def clear; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#19 + def default_format; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#27 + def eol; end + + # source://ruby-progressbar//lib/ruby-progressbar/output.rb#45 + def refresh_with_format_change; end + + # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#23 + def resolve_format(other_format); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#6 +ProgressBar::Outputs::Tty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#4 +class ProgressBar::Progress + # @return [Progress] a new instance of Progress + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#104 + def absolute; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#41 + def decrement; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#23 + def finish; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#27 + def finished?; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#31 + def increment; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#85 + def none?; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#73 + def percentage_completed; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#97 + def percentage_completed_with_precision; end + + # Returns the value of attribute progress. + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#8 + def progress; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#55 + def progress=(new_progress); end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#51 + def reset; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#18 + def start(options = T.unsafe(nil)); end + + # Returns the value of attribute starting_position. + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#10 + def starting_position; end + + # Sets the attribute starting_position + # + # @param value the value to set the attribute starting_position to. + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#10 + def starting_position=(_arg0); end + + # Returns the value of attribute total. + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#8 + def total; end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#64 + def total=(new_total); end + + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#93 + def total_with_unknown_indicator; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#89 + def unknown?; end +end + +# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#6 +ProgressBar::Progress::DEFAULT_BEGINNING_POSITION = T.let(T.unsafe(nil), Integer) + +# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#5 +ProgressBar::Progress::DEFAULT_TOTAL = T.let(T.unsafe(nil), Integer) + +# source://ruby-progressbar//lib/ruby-progressbar/projector.rb#4 +class ProgressBar::Projector + class << self + # source://ruby-progressbar//lib/ruby-progressbar/projector.rb#10 + def from_type(name); end + end +end + +# source://ruby-progressbar//lib/ruby-progressbar/projector.rb#5 +ProgressBar::Projector::DEFAULT_PROJECTOR = ProgressBar::Projectors::SmoothedAverage + +# source://ruby-progressbar//lib/ruby-progressbar/projector.rb#6 +ProgressBar::Projector::NAME_TO_PROJECTOR_MAP = T.let(T.unsafe(nil), Hash) + +# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#2 +module ProgressBar::Projectors; end + +# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#3 +class ProgressBar::Projectors::SmoothedAverage + # @return [SmoothedAverage] a new instance of SmoothedAverage + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#11 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#24 + def decrement; end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#28 + def increment; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#52 + def none?; end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#32 + def progress; end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#42 + def progress=(new_progress); end + + # Returns the value of attribute projection. + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#9 + def projection; end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#38 + def reset; end + + # Returns the value of attribute samples. + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7 + def samples; end + + # Sets the attribute samples + # + # @param value the value to set the attribute samples to. + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7 + def samples=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#19 + def start(options = T.unsafe(nil)); end + + # Returns the value of attribute strength. + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7 + def strength; end + + # Sets the attribute strength + # + # @param value the value to set the attribute strength to. + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7 + def strength=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#36 + def total=(_new_total); end + + protected + + # Sets the attribute projection + # + # @param value the value to set the attribute projection to. + # + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#62 + def projection=(_arg0); end + + private + + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#66 + def absolute; end + + class << self + # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#56 + def calculate(current_projection, new_value, rate); end + end +end + +# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#5 +ProgressBar::Projectors::SmoothedAverage::DEFAULT_BEGINNING_POSITION = T.let(T.unsafe(nil), Integer) + +# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#4 +ProgressBar::Projectors::SmoothedAverage::DEFAULT_STRENGTH = T.let(T.unsafe(nil), Float) + +# source://ruby-progressbar//lib/ruby-progressbar/refinements/progress_enumerator.rb#2 +module ProgressBar::Refinements; end + +# source://ruby-progressbar//lib/ruby-progressbar/refinements/progress_enumerator.rb#3 +module ProgressBar::Refinements::Enumerator; end + +# source://ruby-progressbar//lib/ruby-progressbar/refinements/progress_enumerator.rb#4 +ProgressBar::Refinements::Enumerator::ARITY_ERROR_MESSAGE = T.let(T.unsafe(nil), String) + +# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#2 +class ProgressBar::Throttle + # @return [Throttle] a new instance of Throttle + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#8 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#15 + def choke(options = T.unsafe(nil)); end + + # Returns the value of attribute rate. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def rate; end + + # Sets the attribute rate + # + # @param value the value to set the attribute rate to. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def rate=(_arg0); end + + # Returns the value of attribute started_at. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def started_at; end + + # Sets the attribute started_at + # + # @param value the value to set the attribute started_at to. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def started_at=(_arg0); end + + # Returns the value of attribute stopped_at. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def stopped_at; end + + # Sets the attribute stopped_at + # + # @param value the value to set the attribute stopped_at to. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def stopped_at=(_arg0); end + + # Returns the value of attribute timer. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def timer; end + + # Sets the attribute timer + # + # @param value the value to set the attribute timer to. + # + # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3 + def timer=(_arg0); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/time.rb#3 +class ProgressBar::Time + # @return [Time] a new instance of Time + # + # source://ruby-progressbar//lib/ruby-progressbar/time.rb#11 + def initialize(time = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/time.rb#15 + def now; end + + # source://ruby-progressbar//lib/ruby-progressbar/time.rb#19 + def unmocked_time_method; end + + protected + + # Returns the value of attribute time. + # + # source://ruby-progressbar//lib/ruby-progressbar/time.rb#27 + def time; end + + # Sets the attribute time + # + # @param value the value to set the attribute time to. + # + # source://ruby-progressbar//lib/ruby-progressbar/time.rb#27 + def time=(_arg0); end +end + +# source://ruby-progressbar//lib/ruby-progressbar/time.rb#4 +ProgressBar::Time::TIME_MOCKING_LIBRARY_METHODS = T.let(T.unsafe(nil), Array) + +# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#4 +class ProgressBar::Timer + # @return [Timer] a new instance of Timer + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#8 + def initialize(options = T.unsafe(nil)); end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#67 + def divide_seconds(seconds); end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#57 + def elapsed_seconds; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#63 + def elapsed_whole_seconds; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#31 + def now; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#23 + def pause; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#43 + def reset; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#48 + def reset?; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#52 + def restart; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#27 + def resume; end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#12 + def start; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#35 + def started?; end + + # Returns the value of attribute started_at. + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5 + def started_at; end + + # Sets the attribute started_at + # + # @param value the value to set the attribute started_at to. + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5 + def started_at=(_arg0); end + + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#17 + def stop; end + + # @return [Boolean] + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#39 + def stopped?; end + + # Returns the value of attribute stopped_at. + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5 + def stopped_at; end + + # Sets the attribute stopped_at + # + # @param value the value to set the attribute stopped_at to. + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5 + def stopped_at=(_arg0); end + + protected + + # Returns the value of attribute time. + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#76 + def time; end + + # Sets the attribute time + # + # @param value the value to set the attribute time to. + # + # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#76 + def time=(_arg0); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi b/ruby-client-sdk/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi new file mode 100755 index 000000000..46bfe6ee6 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi @@ -0,0 +1,8 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `ruby2_keywords` gem. +# Please instead update this file by running `bin/tapioca gem ruby2_keywords`. + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/ruby-client-sdk/sorbet/rbi/gems/spoom@1.2.4.rbi b/ruby-client-sdk/sorbet/rbi/gems/spoom@1.2.4.rbi new file mode 100755 index 000000000..a9b07e26b --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/spoom@1.2.4.rbi @@ -0,0 +1,3777 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `spoom` gem. +# Please instead update this file by running `bin/tapioca gem spoom`. + +# source://spoom//lib/spoom.rb#7 +module Spoom; end + +# source://spoom//lib/spoom/cli/helper.rb#9 +module Spoom::Cli; end + +# source://spoom//lib/spoom/cli/bump.rb#9 +class Spoom::Cli::Bump < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # source://spoom//lib/spoom/cli/bump.rb#49 + sig { params(directory: ::String).void } + def bump(directory = T.unsafe(nil)); end + + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/bump.rb#170 + def print_changes(files, command:, from: T.unsafe(nil), to: T.unsafe(nil), dry: T.unsafe(nil), path: T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/bump.rb#192 + def undo_changes(files, from_strictness); end +end + +# source://spoom//lib/spoom/cli/config.rb#9 +class Spoom::Cli::Config < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/config.rb#15 + def show; end +end + +# source://spoom//lib/spoom/cli/coverage.rb#9 +class Spoom::Cli::Coverage < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # source://spoom//lib/spoom/cli/coverage.rb#198 + def bundle_install(path, sha); end + + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/coverage.rb#210 + def message_no_data(file); end + + # source://spoom//lib/spoom/cli/coverage.rb#173 + def open(file = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/coverage.rb#189 + def parse_time(string, option); end + + # source://spoom//lib/spoom/cli/coverage.rb#142 + def report; end + + # source://spoom//lib/spoom/cli/coverage.rb#20 + def snapshot; end + + # source://spoom//lib/spoom/cli/coverage.rb#42 + def timeline; end +end + +# source://spoom//lib/spoom/cli/coverage.rb#12 +Spoom::Cli::Coverage::DATA_DIR = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/cli/helper.rb#10 +module Spoom::Cli::Helper + include ::Spoom::Colorize + + requires_ancestor { Thor } + + # source://spoom//lib/spoom/cli/helper.rb#119 + sig { params(string: ::String).returns(::String) } + def blue(string); end + + # Is the `--color` option true? + # + # source://spoom//lib/spoom/cli/helper.rb#83 + sig { returns(T::Boolean) } + def color?; end + + # Colorize a string if `color?` + # + # source://spoom//lib/spoom/cli/helper.rb#112 + sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } + def colorize(string, *color); end + + # Returns the context at `--path` (by default the current working directory) + # + # source://spoom//lib/spoom/cli/helper.rb#51 + sig { returns(::Spoom::Context) } + def context; end + + # Raise if `spoom` is not ran inside a context with a `sorbet/config` file + # + # source://spoom//lib/spoom/cli/helper.rb#57 + sig { returns(::Spoom::Context) } + def context_requiring_sorbet!; end + + # source://spoom//lib/spoom/cli/helper.rb#124 + sig { params(string: ::String).returns(::String) } + def cyan(string); end + + # Return the path specified through `--path` + # + # source://spoom//lib/spoom/cli/helper.rb#72 + sig { returns(::String) } + def exec_path; end + + # source://spoom//lib/spoom/cli/helper.rb#129 + sig { params(string: ::String).returns(::String) } + def gray(string); end + + # source://spoom//lib/spoom/cli/helper.rb#134 + sig { params(string: ::String).returns(::String) } + def green(string); end + + # source://spoom//lib/spoom/cli/helper.rb#88 + sig { params(string: ::String).returns(::String) } + def highlight(string); end + + # source://spoom//lib/spoom/cli/helper.rb#139 + sig { params(string: ::String).returns(::String) } + def red(string); end + + # Print `message` on `$stdout` + # + # source://spoom//lib/spoom/cli/helper.rb#20 + sig { params(message: ::String).void } + def say(message); end + + # Print `message` on `$stderr` + # + # The message is prefixed by a status (default: `Error`). + # + # source://spoom//lib/spoom/cli/helper.rb#39 + sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } + def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/helper.rb#144 + sig { params(string: ::String).returns(::String) } + def yellow(string); end +end + +# source://spoom//lib/spoom/cli/lsp.rb#10 +class Spoom::Cli::LSP < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#55 + def defs(file, line, col); end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#65 + def find(query); end + + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#41 + def hover(file, line, col); end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#26 + def list; end + + # source://spoom//lib/spoom/cli/lsp.rb#114 + def lsp_client; end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#85 + def refs(file, line, col); end + + # source://spoom//lib/spoom/cli/lsp.rb#137 + def run(&block); end + + # source://spoom//lib/spoom/cli/lsp.rb#16 + def show; end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#95 + def sigs(file, line, col); end + + # source://spoom//lib/spoom/cli/lsp.rb#129 + def symbol_printer; end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#75 + def symbols(file); end + + # source://spoom//lib/spoom/cli/lsp.rb#162 + def to_uri(path); end + + # TODO: options, filter, limit, kind etc.. filter rbi + # + # source://spoom//lib/spoom/cli/lsp.rb#105 + def types(file, line, col); end +end + +# source://spoom//lib/spoom/cli.rb#16 +class Spoom::Cli::Main < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # source://spoom//lib/spoom/cli.rb#61 + def __print_version; end + + # source://thor/1.3.0/lib/thor.rb#334 + def bump(*args); end + + # source://thor/1.3.0/lib/thor.rb#334 + def config(*args); end + + # source://thor/1.3.0/lib/thor.rb#334 + def coverage(*args); end + + # source://spoom//lib/spoom/cli.rb#43 + def files; end + + # source://thor/1.3.0/lib/thor.rb#334 + def lsp(*args); end + + # source://thor/1.3.0/lib/thor.rb#334 + def tc(*args); end + + class << self + # @return [Boolean] + # + # source://spoom//lib/spoom/cli.rb#68 + def exit_on_failure?; end + end +end + +# source://spoom//lib/spoom/cli/run.rb#6 +class Spoom::Cli::Run < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # source://spoom//lib/spoom/cli/run.rb#131 + def colorize_message(message); end + + # source://spoom//lib/spoom/cli/run.rb#122 + def format_error(error, format); end + + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/run.rb#26 + def tc(*paths_to_select); end +end + +# source://spoom//lib/spoom/cli/run.rb#15 +Spoom::Cli::Run::DEFAULT_FORMAT = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/cli/run.rb#11 +Spoom::Cli::Run::SORT_CODE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/cli/run.rb#13 +Spoom::Cli::Run::SORT_ENUM = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/cli/run.rb#12 +Spoom::Cli::Run::SORT_LOC = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/colors.rb#5 +class Spoom::Color < ::T::Enum + enums do + CLEAR = new + BOLD = new + BLACK = new + RED = new + GREEN = new + YELLOW = new + BLUE = new + MAGENTA = new + CYAN = new + WHITE = new + LIGHT_BLACK = new + LIGHT_RED = new + LIGHT_GREEN = new + LIGHT_YELLOW = new + LIGHT_BLUE = new + LIGHT_MAGENTA = new + LIGHT_CYAN = new + LIGHT_WHITE = new + end + + # source://spoom//lib/spoom/colors.rb#32 + sig { returns(::String) } + def ansi_code; end +end + +# source://spoom//lib/spoom/colors.rb#37 +module Spoom::Colorize + # source://spoom//lib/spoom/colors.rb#41 + sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } + def set_color(string, *color); end +end + +# An abstraction to a Ruby project context +# +# A context maps to a directory in the file system. +# It is used to manipulate files and run commands in the context of this directory. +# +# source://spoom//lib/spoom/context/bundle.rb#5 +class Spoom::Context + include ::Spoom::Context::Bundle + include ::Spoom::Context::Exec + include ::Spoom::Context::FileSystem + include ::Spoom::Context::Git + include ::Spoom::Context::Sorbet + + # Create a new context about `absolute_path` + # + # The directory will not be created if it doesn't exist. + # Call `#make!` to create it. + # + # source://spoom//lib/spoom/context.rb#51 + sig { params(absolute_path: ::String).void } + def initialize(absolute_path); end + + # The absolute path to the directory this context is about + # + # source://spoom//lib/spoom/context.rb#44 + sig { returns(::String) } + def absolute_path; end + + class << self + # Create a new context in the system's temporary directory + # + # `name` is used as prefix to the temporary directory name. + # The directory will be created if it doesn't exist. + # + # source://spoom//lib/spoom/context.rb#37 + sig { params(name: T.nilable(::String)).returns(T.attached_class) } + def mktmp!(name = T.unsafe(nil)); end + end +end + +# Bundle features for a context +# +# source://spoom//lib/spoom/context/bundle.rb#7 +module Spoom::Context::Bundle + requires_ancestor { Spoom::Context } + + # Run a command with `bundle` in this context directory + # + # source://spoom//lib/spoom/context/bundle.rb#33 + sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } + def bundle(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # Run a command `bundle exec` in this context directory + # + # source://spoom//lib/spoom/context/bundle.rb#46 + sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } + def bundle_exec(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # Run `bundle install` in this context directory + # + # source://spoom//lib/spoom/context/bundle.rb#40 + sig { params(version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } + def bundle_install!(version: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # Get `gem` version from the `Gemfile.lock` content + # + # Returns `nil` if `gem` cannot be found in the Gemfile. + # + # source://spoom//lib/spoom/context/bundle.rb#62 + sig { params(gem: ::String).returns(T.nilable(::String)) } + def gem_version_from_gemfile_lock(gem); end + + # source://spoom//lib/spoom/context/bundle.rb#51 + sig { returns(T::Hash[::String, ::Bundler::LazySpecification]) } + def gemfile_lock_specs; end + + # Read the contents of the Gemfile in this context directory + # + # source://spoom//lib/spoom/context/bundle.rb#15 + sig { returns(T.nilable(::String)) } + def read_gemfile; end + + # Read the contents of the Gemfile.lock in this context directory + # + # source://spoom//lib/spoom/context/bundle.rb#21 + sig { returns(T.nilable(::String)) } + def read_gemfile_lock; end + + # Set the `contents` of the Gemfile in this context directory + # + # source://spoom//lib/spoom/context/bundle.rb#27 + sig { params(contents: ::String, append: T::Boolean).void } + def write_gemfile!(contents, append: T.unsafe(nil)); end +end + +# Execution features for a context +# +# source://spoom//lib/spoom/context/exec.rb#27 +module Spoom::Context::Exec + requires_ancestor { Spoom::Context } + + # Run a command in this context directory + # + # source://spoom//lib/spoom/context/exec.rb#35 + sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } + def exec(command, capture_err: T.unsafe(nil)); end +end + +# File System features for a context +# +# source://spoom//lib/spoom/context/file_system.rb#7 +module Spoom::Context::FileSystem + requires_ancestor { Spoom::Context } + + # Returns the absolute path to `relative_path` in the context's directory + # + # source://spoom//lib/spoom/context/file_system.rb#15 + sig { params(relative_path: ::String).returns(::String) } + def absolute_path_to(relative_path); end + + # source://spoom//lib/spoom/context/file_system.rb#53 + sig do + params( + allow_extensions: T::Array[::String], + allow_mime_types: T::Array[::String], + exclude_patterns: T::Array[::String] + ).returns(T::Array[::String]) + end + def collect_files(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end + + # Delete this context and its content + # + # Warning: it will `rm -rf` the context directory on the file system. + # + # source://spoom//lib/spoom/context/file_system.rb#105 + sig { void } + def destroy!; end + + # Does the context directory at `absolute_path` exist and is a directory? + # + # source://spoom//lib/spoom/context/file_system.rb#21 + sig { returns(T::Boolean) } + def exist?; end + + # Does `relative_path` point to an existing file in this context directory? + # + # source://spoom//lib/spoom/context/file_system.rb#65 + sig { params(relative_path: ::String).returns(T::Boolean) } + def file?(relative_path); end + + # List all files in this context matching `pattern` + # + # source://spoom//lib/spoom/context/file_system.rb#34 + sig { params(pattern: ::String).returns(T::Array[::String]) } + def glob(pattern = T.unsafe(nil)); end + + # List all files at the top level of this context directory + # + # source://spoom//lib/spoom/context/file_system.rb#42 + sig { returns(T::Array[::String]) } + def list; end + + # Create the context directory at `absolute_path` + # + # source://spoom//lib/spoom/context/file_system.rb#27 + sig { void } + def mkdir!; end + + # Move the file or directory from `from_relative_path` to `to_relative_path` + # + # source://spoom//lib/spoom/context/file_system.rb#95 + sig { params(from_relative_path: ::String, to_relative_path: ::String).void } + def move!(from_relative_path, to_relative_path); end + + # Return the contents of the file at `relative_path` in this context directory + # + # Will raise if the file doesn't exist. + # + # source://spoom//lib/spoom/context/file_system.rb#73 + sig { params(relative_path: ::String).returns(::String) } + def read(relative_path); end + + # Remove the path at `relative_path` (recursive + force) in this context directory + # + # source://spoom//lib/spoom/context/file_system.rb#89 + sig { params(relative_path: ::String).void } + def remove!(relative_path); end + + # Write `contents` in the file at `relative_path` in this context directory + # + # Append to the file if `append` is true. + # + # source://spoom//lib/spoom/context/file_system.rb#81 + sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void } + def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end +end + +# Git features for a context +# +# source://spoom//lib/spoom/context/git.rb#35 +module Spoom::Context::Git + requires_ancestor { Spoom::Context } + + # Run a command prefixed by `git` in this context directory + # + # source://spoom//lib/spoom/context/git.rb#43 + sig { params(command: ::String).returns(::Spoom::ExecResult) } + def git(command); end + + # Run `git checkout` in this context directory + # + # source://spoom//lib/spoom/context/git.rb#62 + sig { params(ref: ::String).returns(::Spoom::ExecResult) } + def git_checkout!(ref: T.unsafe(nil)); end + + # Run `git checkout -b <branch-name> <ref>` in this context directory + # + # source://spoom//lib/spoom/context/git.rb#68 + sig { params(branch_name: ::String, ref: T.nilable(::String)).returns(::Spoom::ExecResult) } + def git_checkout_new_branch!(branch_name, ref: T.unsafe(nil)); end + + # Run `git add . && git commit` in this context directory + # + # source://spoom//lib/spoom/context/git.rb#78 + sig { params(message: ::String, time: ::Time, allow_empty: T::Boolean).returns(::Spoom::ExecResult) } + def git_commit!(message: T.unsafe(nil), time: T.unsafe(nil), allow_empty: T.unsafe(nil)); end + + # Get the current git branch in this context directory + # + # source://spoom//lib/spoom/context/git.rb#89 + sig { returns(T.nilable(::String)) } + def git_current_branch; end + + # Run `git diff` in this context directory + # + # source://spoom//lib/spoom/context/git.rb#98 + sig { params(arg: ::String).returns(::Spoom::ExecResult) } + def git_diff(*arg); end + + # Run `git init` in this context directory + # + # Warning: passing a branch will run `git init -b <branch>` which is only available in git 2.28+. + # In older versions, use `git_init!` followed by `git("checkout -b <branch>")`. + # + # source://spoom//lib/spoom/context/git.rb#52 + sig { params(branch: T.nilable(::String)).returns(::Spoom::ExecResult) } + def git_init!(branch: T.unsafe(nil)); end + + # Get the last commit in the currently checked out branch + # + # source://spoom//lib/spoom/context/git.rb#104 + sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } + def git_last_commit(short_sha: T.unsafe(nil)); end + + # source://spoom//lib/spoom/context/git.rb#115 + sig { params(arg: ::String).returns(::Spoom::ExecResult) } + def git_log(*arg); end + + # Run `git push <remote> <ref>` in this context directory + # + # source://spoom//lib/spoom/context/git.rb#121 + sig { params(remote: ::String, ref: ::String, force: T::Boolean).returns(::Spoom::ExecResult) } + def git_push!(remote, ref, force: T.unsafe(nil)); end + + # source://spoom//lib/spoom/context/git.rb#126 + sig { params(arg: ::String).returns(::Spoom::ExecResult) } + def git_show(*arg); end + + # Is there uncommited changes in this context directory? + # + # source://spoom//lib/spoom/context/git.rb#132 + sig { params(path: ::String).returns(T::Boolean) } + def git_workdir_clean?(path: T.unsafe(nil)); end +end + +# Sorbet features for a context +# +# source://spoom//lib/spoom/context/sorbet.rb#7 +module Spoom::Context::Sorbet + requires_ancestor { Spoom::Context } + + # Does this context has a `sorbet/config` file? + # + # source://spoom//lib/spoom/context/sorbet.rb#119 + sig { returns(T::Boolean) } + def has_sorbet_config?; end + + # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) + # + # source://spoom//lib/spoom/context/sorbet.rb#142 + sig { params(relative_path: ::String).returns(T.nilable(::String)) } + def read_file_strictness(relative_path); end + + # Read the contents of `sorbet/config` in this context directory + # + # source://spoom//lib/spoom/context/sorbet.rb#130 + sig { returns(::String) } + def read_sorbet_config; end + + # source://spoom//lib/spoom/context/sorbet.rb#124 + sig { returns(::Spoom::Sorbet::Config) } + def sorbet_config; end + + # Get the commit introducing the `sorbet/config` file + # + # source://spoom//lib/spoom/context/sorbet.rb#148 + sig { returns(T.nilable(::Spoom::Git::Commit)) } + def sorbet_intro_commit; end + + # Get the commit removing the `sorbet/config` file + # + # source://spoom//lib/spoom/context/sorbet.rb#160 + sig { returns(T.nilable(::Spoom::Git::Commit)) } + def sorbet_removal_commit; end + + # Run `bundle exec srb` in this context directory + # + # source://spoom//lib/spoom/context/sorbet.rb#15 + sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } + def srb(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # List all files typechecked by Sorbet from its `config` + # + # source://spoom//lib/spoom/context/sorbet.rb#65 + sig { params(with_config: T.nilable(::Spoom::Sorbet::Config), include_rbis: T::Boolean).returns(T::Array[::String]) } + def srb_files(with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end + + # List all files typechecked by Sorbet from its `config` that matches `strictness` + # + # source://spoom//lib/spoom/context/sorbet.rb#104 + sig do + params( + strictness: ::String, + with_config: T.nilable(::Spoom::Sorbet::Config), + include_rbis: T::Boolean + ).returns(T::Array[::String]) + end + def srb_files_with_strictness(strictness, with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end + + # source://spoom//lib/spoom/context/sorbet.rb#45 + sig do + params( + arg: ::String, + sorbet_bin: T.nilable(::String), + capture_err: T::Boolean + ).returns(T.nilable(T::Hash[::String, ::Integer])) + end + def srb_metrics(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # source://spoom//lib/spoom/context/sorbet.rb#33 + sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } + def srb_tc(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # source://spoom//lib/spoom/context/sorbet.rb#110 + sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(T.nilable(::String)) } + def srb_version(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end + + # Set the `contents` of `sorbet/config` in this context directory + # + # source://spoom//lib/spoom/context/sorbet.rb#136 + sig { params(contents: ::String, append: T::Boolean).void } + def write_sorbet_config!(contents, append: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/snapshot.rb#5 +module Spoom::Coverage + class << self + # source://spoom//lib/spoom/coverage.rb#103 + sig { params(context: ::Spoom::Context).returns(::Spoom::FileTree) } + def file_tree(context); end + + # source://spoom//lib/spoom/coverage.rb#83 + sig do + params( + context: ::Spoom::Context, + snapshots: T::Array[::Spoom::Coverage::Snapshot], + palette: ::Spoom::Coverage::D3::ColorPalette + ).returns(::Spoom::Coverage::Report) + end + def report(context, snapshots, palette:); end + + # source://spoom//lib/spoom/coverage.rb#16 + sig do + params( + context: ::Spoom::Context, + rbi: T::Boolean, + sorbet_bin: T.nilable(::String) + ).returns(::Spoom::Coverage::Snapshot) + end + def snapshot(context, rbi: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end + end +end + +# source://spoom//lib/spoom/coverage/report.rb#88 +module Spoom::Coverage::Cards; end + +# source://spoom//lib/spoom/coverage/report.rb#89 +class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template + # source://spoom//lib/spoom/coverage/report.rb#98 + sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void } + def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end + + # @return [String, nil] + # + # source://spoom//lib/spoom/coverage/report.rb#95 + def body; end + + # source://spoom//lib/spoom/coverage/report.rb#95 + sig { returns(T.nilable(::String)) } + def title; end +end + +# source://spoom//lib/spoom/coverage/report.rb#92 +Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String) + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/report.rb#105 +class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card + abstract! + + # source://spoom//lib/spoom/coverage/report.rb#112 + sig { void } + def initialize; end + + # @abstract + # + # source://spoom//lib/spoom/coverage/report.rb#120 + sig { abstract.returns(::String) } + def erb; end + + # source://spoom//lib/spoom/coverage/report.rb#115 + sig { override.returns(::String) } + def html; end +end + +# source://spoom//lib/spoom/coverage/report.rb#153 +class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card + # source://spoom//lib/spoom/coverage/report.rb#164 + sig do + params( + file_tree: ::Spoom::FileTree, + nodes_strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], + nodes_strictness_scores: T::Hash[::Spoom::FileTree::Node, ::Float], + title: ::String + ).void + end + def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/report.rb#123 +class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card + # source://spoom//lib/spoom/coverage/report.rb#132 + sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void } + def initialize(snapshot:, title: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/report.rb#143 + sig { returns(::Spoom::Coverage::D3::Pie::Calls) } + def pie_calls; end + + # source://spoom//lib/spoom/coverage/report.rb#138 + sig { returns(::Spoom::Coverage::D3::Pie::Sigils) } + def pie_sigils; end + + # source://spoom//lib/spoom/coverage/report.rb#148 + sig { returns(::Spoom::Coverage::D3::Pie::Sigs) } + def pie_sigs; end + + # source://spoom//lib/spoom/coverage/report.rb#129 + sig { returns(::Spoom::Coverage::Snapshot) } + def snapshot; end +end + +# source://spoom//lib/spoom/coverage/report.rb#126 +Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/report.rb#240 +class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb + # source://spoom//lib/spoom/coverage/report.rb#244 + sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void } + def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/report.rb#250 + sig { override.returns(::String) } + def erb; end +end + +# source://spoom//lib/spoom/coverage/report.rb#177 +class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card + # source://spoom//lib/spoom/coverage/report.rb#181 + sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void } + def initialize(title:, timeline:); end +end + +# source://spoom//lib/spoom/coverage/report.rb#194 +class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline + # source://spoom//lib/spoom/coverage/report.rb#198 + sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } + def initialize(snapshots:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/report.rb#212 +class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline + # source://spoom//lib/spoom/coverage/report.rb#216 + sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } + def initialize(snapshots:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/report.rb#230 +class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline + # source://spoom//lib/spoom/coverage/report.rb#234 + sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } + def initialize(snapshots:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/report.rb#185 +class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline + # source://spoom//lib/spoom/coverage/report.rb#189 + sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } + def initialize(snapshots:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/report.rb#203 +class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline + # source://spoom//lib/spoom/coverage/report.rb#207 + sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } + def initialize(snapshots:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/report.rb#221 +class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline + # source://spoom//lib/spoom/coverage/report.rb#225 + sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } + def initialize(snapshots:, title: T.unsafe(nil)); end +end + +# source://spoom//lib/spoom/coverage/d3/base.rb#6 +module Spoom::Coverage::D3 + class << self + # source://spoom//lib/spoom/coverage/d3.rb#61 + sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) } + def header_script(palette); end + + # source://spoom//lib/spoom/coverage/d3.rb#21 + sig { returns(::String) } + def header_style; end + end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/d3/base.rb#7 +class Spoom::Coverage::D3::Base + abstract! + + # source://spoom//lib/spoom/coverage/d3/base.rb#17 + sig { params(id: ::String, data: T.untyped).void } + def initialize(id, data); end + + # source://spoom//lib/spoom/coverage/d3/base.rb#37 + sig { returns(::String) } + def html; end + + # source://spoom//lib/spoom/coverage/d3/base.rb#14 + sig { returns(::String) } + def id; end + + # @abstract + # + # source://spoom//lib/spoom/coverage/d3/base.rb#50 + sig { abstract.returns(::String) } + def script; end + + # source://spoom//lib/spoom/coverage/d3/base.rb#45 + sig { returns(::String) } + def tooltip; end + + class << self + # source://spoom//lib/spoom/coverage/d3/base.rb#31 + sig { returns(::String) } + def header_script; end + + # source://spoom//lib/spoom/coverage/d3/base.rb#26 + sig { returns(::String) } + def header_style; end + end +end + +# source://spoom//lib/spoom/coverage/d3.rb#12 +Spoom::Coverage::D3::COLOR_FALSE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/d3.rb#11 +Spoom::Coverage::D3::COLOR_IGNORE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/d3.rb#14 +Spoom::Coverage::D3::COLOR_STRICT = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/d3.rb#15 +Spoom::Coverage::D3::COLOR_STRONG = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/d3.rb#13 +Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/d3/circle_map.rb#9 +class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#59 + sig { override.returns(::String) } + def script; end + + class << self + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#40 + sig { returns(::String) } + def header_script; end + + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#14 + sig { returns(::String) } + def header_style; end + end +end + +# source://spoom//lib/spoom/coverage/d3/circle_map.rb#148 +class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#159 + sig do + params( + id: ::String, + file_tree: ::Spoom::FileTree, + nodes_strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], + nodes_scores: T::Hash[::Spoom::FileTree::Node, ::Float] + ).void + end + def initialize(id, file_tree, nodes_strictnesses, nodes_scores); end + + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#166 + sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) } + def tree_node_to_json(node); end +end + +# source://spoom//lib/spoom/coverage/d3.rb#103 +class Spoom::Coverage::D3::ColorPalette < ::T::Struct + prop :ignore, ::String + prop :false, ::String + prop :true, ::String + prop :strict, ::String + prop :strong, ::String + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/d3/pie.rb#9 +class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base + abstract! + + # source://spoom//lib/spoom/coverage/d3/pie.rb#16 + sig { params(id: ::String, title: ::String, data: T.untyped).void } + def initialize(id, title, data); end + + # source://spoom//lib/spoom/coverage/d3/pie.rb#56 + sig { override.returns(::String) } + def script; end + + class << self + # source://spoom//lib/spoom/coverage/d3/pie.rb#43 + sig { returns(::String) } + def header_script; end + + # source://spoom//lib/spoom/coverage/d3/pie.rb#25 + sig { returns(::String) } + def header_style; end + end +end + +# source://spoom//lib/spoom/coverage/d3/pie.rb#141 +class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie + # source://spoom//lib/spoom/coverage/d3/pie.rb#145 + sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } + def initialize(id, title, snapshot); end + + # source://spoom//lib/spoom/coverage/d3/pie.rb#150 + sig { override.returns(::String) } + def tooltip; end +end + +# source://spoom//lib/spoom/coverage/d3/pie.rb#123 +class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie + # source://spoom//lib/spoom/coverage/d3/pie.rb#127 + sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } + def initialize(id, title, snapshot); end + + # source://spoom//lib/spoom/coverage/d3/pie.rb#132 + sig { override.returns(::String) } + def tooltip; end +end + +# source://spoom//lib/spoom/coverage/d3/pie.rb#159 +class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie + # source://spoom//lib/spoom/coverage/d3/pie.rb#163 + sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } + def initialize(id, title, snapshot); end + + # source://spoom//lib/spoom/coverage/d3/pie.rb#172 + sig { override.returns(::String) } + def tooltip; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/d3/timeline.rb#9 +class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base + abstract! + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#16 + sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void } + def initialize(id, data, keys); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#187 + sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } + def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#203 + sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } + def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end + + # @abstract + # + # source://spoom//lib/spoom/coverage/d3/timeline.rb#126 + sig { abstract.returns(::String) } + def plot; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#217 + sig { params(y: ::String).returns(::String) } + def points(y:); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#101 + sig { override.returns(::String) } + def script; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#129 + sig { returns(::String) } + def x_scale; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#145 + sig { returns(::String) } + def x_ticks; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#158 + sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) } + def y_scale(min:, max:, ticks:); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#174 + sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) } + def y_ticks(ticks:, format:, padding:); end + + class << self + # source://spoom//lib/spoom/coverage/d3/timeline.rb#79 + sig { returns(::String) } + def header_script; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#25 + sig { returns(::String) } + def header_style; end + end +end + +# source://spoom//lib/spoom/coverage/d3/timeline.rb#448 +class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked + # source://spoom//lib/spoom/coverage/d3/timeline.rb#452 + sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } + def initialize(id, snapshots); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#466 + sig { override.returns(::String) } + def tooltip; end +end + +# source://spoom//lib/spoom/coverage/d3/timeline.rb#505 +class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked + # source://spoom//lib/spoom/coverage/d3/timeline.rb#509 + sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } + def initialize(id, snapshots); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#577 + sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } + def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#617 + sig { override.returns(::String) } + def plot; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#537 + sig { override.returns(::String) } + def script; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#523 + sig { override.returns(::String) } + def tooltip; end +end + +# source://spoom//lib/spoom/coverage/d3/timeline.rb#282 +class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline + # source://spoom//lib/spoom/coverage/d3/timeline.rb#286 + sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } + def initialize(id, snapshots); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#311 + sig { override.returns(::String) } + def plot; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#298 + sig { override.returns(::String) } + def tooltip; end +end + +# source://spoom//lib/spoom/coverage/d3/timeline.rb#421 +class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked + # source://spoom//lib/spoom/coverage/d3/timeline.rb#425 + sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } + def initialize(id, snapshots); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#439 + sig { override.returns(::String) } + def tooltip; end +end + +# source://spoom//lib/spoom/coverage/d3/timeline.rb#475 +class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked + # source://spoom//lib/spoom/coverage/d3/timeline.rb#479 + sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } + def initialize(id, snapshots); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#496 + sig { override.returns(::String) } + def tooltip; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/d3/timeline.rb#329 +class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline + abstract! + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#388 + sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } + def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#377 + sig { override.returns(::String) } + def plot; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#336 + sig { override.returns(::String) } + def script; end +end + +# source://spoom//lib/spoom/coverage/d3/timeline.rb#232 +class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline + # source://spoom//lib/spoom/coverage/d3/timeline.rb#236 + sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } + def initialize(id, snapshots); end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#263 + sig { override.returns(::String) } + def plot; end + + # source://spoom//lib/spoom/coverage/d3/timeline.rb#249 + sig { override.returns(::String) } + def tooltip; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/report.rb#38 +class Spoom::Coverage::Page < ::Spoom::Coverage::Template + abstract! + + # source://spoom//lib/spoom/coverage/report.rb#53 + sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void } + def initialize(title:, palette:, template: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/report.rb#75 + sig { returns(::String) } + def body_html; end + + # @abstract + # + # source://spoom//lib/spoom/coverage/report.rb#80 + sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) } + def cards; end + + # source://spoom//lib/spoom/coverage/report.rb#83 + sig { returns(::String) } + def footer_html; end + + # source://spoom//lib/spoom/coverage/report.rb#70 + sig { returns(::String) } + def header_html; end + + # source://spoom//lib/spoom/coverage/report.rb#65 + sig { returns(::String) } + def header_script; end + + # source://spoom//lib/spoom/coverage/report.rb#60 + sig { returns(::String) } + def header_style; end + + # source://spoom//lib/spoom/coverage/report.rb#50 + sig { returns(::Spoom::Coverage::D3::ColorPalette) } + def palette; end + + # source://spoom//lib/spoom/coverage/report.rb#47 + sig { returns(::String) } + def title; end +end + +# source://spoom//lib/spoom/coverage/report.rb#44 +Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/coverage/report.rb#261 +class Spoom::Coverage::Report < ::Spoom::Coverage::Page + # source://spoom//lib/spoom/coverage/report.rb#276 + sig do + params( + project_name: ::String, + palette: ::Spoom::Coverage::D3::ColorPalette, + snapshots: T::Array[::Spoom::Coverage::Snapshot], + file_tree: ::Spoom::FileTree, + nodes_strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], + nodes_strictness_scores: T::Hash[::Spoom::FileTree::Node, ::Float], + sorbet_intro_commit: T.nilable(::String), + sorbet_intro_date: T.nilable(::Time) + ).void + end + def initialize(project_name:, palette:, snapshots:, file_tree:, nodes_strictnesses:, nodes_strictness_scores:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/report.rb#308 + sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) } + def cards; end + + # source://spoom//lib/spoom/coverage/report.rb#297 + sig { override.returns(::String) } + def header_html; end +end + +# source://spoom//lib/spoom/coverage/snapshot.rb#6 +class Spoom::Coverage::Snapshot < ::T::Struct + prop :timestamp, ::Integer, default: T.unsafe(nil) + prop :version_static, T.nilable(::String), default: T.unsafe(nil) + prop :version_runtime, T.nilable(::String), default: T.unsafe(nil) + prop :duration, ::Integer, default: T.unsafe(nil) + prop :commit_sha, T.nilable(::String), default: T.unsafe(nil) + prop :commit_timestamp, T.nilable(::Integer), default: T.unsafe(nil) + prop :files, ::Integer, default: T.unsafe(nil) + prop :rbi_files, ::Integer, default: T.unsafe(nil) + prop :modules, ::Integer, default: T.unsafe(nil) + prop :classes, ::Integer, default: T.unsafe(nil) + prop :singleton_classes, ::Integer, default: T.unsafe(nil) + prop :methods_without_sig, ::Integer, default: T.unsafe(nil) + prop :methods_with_sig, ::Integer, default: T.unsafe(nil) + prop :calls_untyped, ::Integer, default: T.unsafe(nil) + prop :calls_typed, ::Integer, default: T.unsafe(nil) + prop :sigils, T::Hash[::String, ::Integer], default: T.unsafe(nil) + prop :methods_with_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) + prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) + prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil) + + # source://spoom//lib/spoom/coverage/snapshot.rb#33 + sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } + def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end + + # source://spoom//lib/spoom/coverage/snapshot.rb#39 + sig { params(arg: T.untyped).returns(::String) } + def to_json(*arg); end + + class << self + # source://spoom//lib/spoom/coverage/snapshot.rb#47 + sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) } + def from_json(json); end + + # source://spoom//lib/spoom/coverage/snapshot.rb#52 + sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } + def from_obj(obj); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# The strictness name as found in the Sorbet metrics file +# +# source://spoom//lib/spoom/coverage/snapshot.rb#30 +Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/coverage/snapshot.rb#95 +class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer + # source://spoom//lib/spoom/coverage/snapshot.rb#99 + sig { params(snapshot: ::Spoom::Coverage::Snapshot).void } + def print_snapshot(snapshot); end + + private + + # source://spoom//lib/spoom/coverage/snapshot.rb#158 + sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) } + def percent(value, total); end + + # source://spoom//lib/spoom/coverage/snapshot.rb#147 + sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void } + def print_map(hash, total); end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/coverage/report.rb#10 +class Spoom::Coverage::Template + abstract! + + # Create a new template from an Erb file path + # + # source://spoom//lib/spoom/coverage/report.rb#18 + sig { params(template: ::String).void } + def initialize(template:); end + + # source://spoom//lib/spoom/coverage/report.rb#23 + sig { returns(::String) } + def erb; end + + # source://spoom//lib/spoom/coverage/report.rb#33 + sig { returns(::Binding) } + def get_binding; end + + # source://spoom//lib/spoom/coverage/report.rb#28 + sig { returns(::String) } + def html; end +end + +# source://spoom//lib/spoom/deadcode/erb.rb#27 +module Spoom::Deadcode + class << self + # source://spoom//lib/spoom/deadcode.rb#51 + sig do + params( + index: ::Spoom::Deadcode::Index, + erb: ::String, + file: ::String, + plugins: T::Array[::Spoom::Deadcode::Plugins::Base] + ).void + end + def index_erb(index, erb, file:, plugins: T.unsafe(nil)); end + + # source://spoom//lib/spoom/deadcode.rb#40 + sig do + params( + index: ::Spoom::Deadcode::Index, + ruby: ::String, + file: ::String, + plugins: T::Array[::Spoom::Deadcode::Plugins::Base] + ).void + end + def index_ruby(index, ruby, file:, plugins: T.unsafe(nil)); end + + # source://spoom//lib/spoom/deadcode/plugins.rb#74 + sig { params(context: ::Spoom::Context).returns(T::Array[::Spoom::Deadcode::Plugins::Base]) } + def load_custom_plugins(context); end + + # source://spoom//lib/spoom/deadcode/plugins.rb#60 + sig { params(context: ::Spoom::Context).returns(T::Array[::Spoom::Deadcode::Plugins::Base]) } + def plugins_from_gemfile_lock(context); end + end +end + +# source://spoom//lib/spoom/deadcode/plugins.rb#25 +Spoom::Deadcode::DEFAULT_CUSTOM_PLUGINS_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/deadcode/plugins.rb#27 +Spoom::Deadcode::DEFAULT_PLUGINS = T.let(T.unsafe(nil), Set) + +# A definition is a class, module, method, constant, etc. being defined in the code +# +# source://spoom//lib/spoom/deadcode/definition.rb#7 +class Spoom::Deadcode::Definition < ::T::Struct + const :kind, ::Spoom::Deadcode::Definition::Kind + const :name, ::String + const :full_name, ::String + const :location, ::Spoom::Deadcode::Location + const :status, ::Spoom::Deadcode::Definition::Status, default: T.unsafe(nil) + + # source://spoom//lib/spoom/deadcode/definition.rb#78 + sig { void } + def alive!; end + + # Status + # + # source://spoom//lib/spoom/deadcode/definition.rb#73 + sig { returns(T::Boolean) } + def alive?; end + + # Kind + # + # source://spoom//lib/spoom/deadcode/definition.rb#41 + sig { returns(T::Boolean) } + def attr_reader?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#46 + sig { returns(T::Boolean) } + def attr_writer?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#51 + sig { returns(T::Boolean) } + def class?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#56 + sig { returns(T::Boolean) } + def constant?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#83 + sig { returns(T::Boolean) } + def dead?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#93 + sig { void } + def ignored!; end + + # source://spoom//lib/spoom/deadcode/definition.rb#88 + sig { returns(T::Boolean) } + def ignored?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#61 + sig { returns(T::Boolean) } + def method?; end + + # source://spoom//lib/spoom/deadcode/definition.rb#66 + sig { returns(T::Boolean) } + def module?; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/deadcode/definition.rb#10 +class Spoom::Deadcode::Definition::Kind < ::T::Enum + enums do + AttrReader = new + AttrWriter = new + Class = new + Constant = new + Method = new + Module = new + end +end + +# source://spoom//lib/spoom/deadcode/definition.rb#21 +class Spoom::Deadcode::Definition::Status < ::T::Enum + enums do + ALIVE = new + DEAD = new + IGNORED = new + end +end + +# Custom engine to handle ERB templates as used by Rails +# +# source://spoom//lib/spoom/deadcode/erb.rb#29 +class Spoom::Deadcode::ERB < ::Erubi::Engine + # source://spoom//lib/spoom/deadcode/erb.rb#33 + sig { params(input: T.untyped, properties: T.untyped).void } + def initialize(input, properties = T.unsafe(nil)); end + + private + + # source://spoom//lib/spoom/deadcode/erb.rb#83 + sig { override.params(code: T.untyped).void } + def add_code(code); end + + # source://spoom//lib/spoom/deadcode/erb.rb#66 + sig { override.params(indicator: T.untyped, code: T.untyped).void } + def add_expression(indicator, code); end + + # source://spoom//lib/spoom/deadcode/erb.rb#89 + sig { override.params(_: T.untyped).void } + def add_postamble(_); end + + # source://spoom//lib/spoom/deadcode/erb.rb#48 + sig { override.params(text: T.untyped).void } + def add_text(text); end + + # source://spoom//lib/spoom/deadcode/erb.rb#95 + sig { params(src: T.untyped).void } + def flush_newline_if_pending(src); end +end + +# source://spoom//lib/spoom/deadcode/erb.rb#63 +Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/deadcode.rb#20 +class Spoom::Deadcode::Error < ::Spoom::Error + abstract! + + # source://spoom//lib/spoom/deadcode.rb#27 + sig { params(message: ::String, parent: ::Exception).void } + def initialize(message, parent:); end +end + +# source://spoom//lib/spoom/deadcode/index.rb#6 +class Spoom::Deadcode::Index + # source://spoom//lib/spoom/deadcode/index.rb#16 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/deadcode/index.rb#51 + sig { returns(T::Array[::Spoom::Deadcode::Definition]) } + def all_definitions; end + + # source://spoom//lib/spoom/deadcode/index.rb#56 + sig { returns(T::Array[::Spoom::Deadcode::Reference]) } + def all_references; end + + # Indexing + # + # source://spoom//lib/spoom/deadcode/index.rb#24 + sig { params(definition: ::Spoom::Deadcode::Definition).void } + def define(definition); end + + # source://spoom//lib/spoom/deadcode/index.rb#10 + sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Definition]]) } + def definitions; end + + # Utils + # + # source://spoom//lib/spoom/deadcode/index.rb#46 + sig { params(name: ::String).returns(T::Array[::Spoom::Deadcode::Definition]) } + def definitions_for_name(name); end + + # Mark all definitions having a reference of the same name as `alive` + # + # To be called once all the files have been indexed and all the definitions and references discovered. + # + # source://spoom//lib/spoom/deadcode/index.rb#37 + sig { void } + def finalize!; end + + # source://spoom//lib/spoom/deadcode/index.rb#29 + sig { params(reference: ::Spoom::Deadcode::Reference).void } + def reference(reference); end + + # source://spoom//lib/spoom/deadcode/index.rb#13 + sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Reference]]) } + def references; end +end + +# source://spoom//lib/spoom/deadcode/indexer.rb#6 +class Spoom::Deadcode::Indexer < ::SyntaxTree::Visitor + # source://spoom//lib/spoom/deadcode/indexer.rb#16 + sig do + params( + path: ::String, + source: ::String, + index: ::Spoom::Deadcode::Index, + plugins: T::Array[::Spoom::Deadcode::Plugins::Base] + ).void + end + def initialize(path, source, index, plugins: T.unsafe(nil)); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#459 + sig do + params( + node: T.nilable(T.any(::SyntaxTree::ArgParen, ::SyntaxTree::Args, ::SyntaxTree::ArgsForward)) + ).returns(T::Array[::SyntaxTree::Node]) + end + def call_args(node); end + + # Context + # + # source://spoom//lib/spoom/deadcode/indexer.rb#367 + sig { returns(::SyntaxTree::Node) } + def current_node; end + + # Definition indexing + # + # source://spoom//lib/spoom/deadcode/indexer.rb#281 + sig { params(name: ::String, full_name: ::String, node: ::SyntaxTree::Node).void } + def define_attr_reader(name, full_name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#293 + sig { params(name: ::String, full_name: ::String, node: ::SyntaxTree::Node).void } + def define_attr_writer(name, full_name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#305 + sig { params(name: ::String, full_name: ::String, node: ::SyntaxTree::Node).void } + def define_class(name, full_name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#317 + sig { params(name: ::String, full_name: ::String, node: ::SyntaxTree::Node).void } + def define_constant(name, full_name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#329 + sig { params(name: ::String, full_name: ::String, node: ::SyntaxTree::Node).void } + def define_method(name, full_name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#341 + sig { params(name: ::String, full_name: ::String, node: ::SyntaxTree::Node).void } + def define_module(name, full_name, node); end + + # @return [String] + # + # source://spoom//lib/spoom/deadcode/indexer.rb#10 + def file_name; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#13 + sig { returns(::Spoom::Deadcode::Index) } + def index; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#426 + sig { returns(T.nilable(::String)) } + def last_sig; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#386 + sig { returns(T.nilable(::SyntaxTree::BlockNode)) } + def nesting_block; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#391 + sig { returns(T.nilable(::SyntaxTree::MethodAddBlock)) } + def nesting_block_call; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#396 + sig { returns(T.nilable(::String)) } + def nesting_block_call_name; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#381 + sig { returns(T.nilable(::SyntaxTree::ClassDeclaration)) } + def nesting_class; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#410 + sig { returns(T.nilable(::String)) } + def nesting_class_name; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#418 + sig { returns(T.nilable(::String)) } + def nesting_class_superclass_name; end + + # source://spoom//lib/spoom/deadcode/indexer.rb#372 + sig { type_parameters(:N).params(type: T::Class[T.type_parameter(:N)]).returns(T.nilable(T.type_parameter(:N))) } + def nesting_node(type); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#445 + sig { params(node: ::SyntaxTree::Node).returns(::Spoom::Deadcode::Location) } + def node_location(node); end + + # Node utils + # + # source://spoom//lib/spoom/deadcode/indexer.rb#435 + sig { params(node: T.any(::Symbol, ::SyntaxTree::Node)).returns(::String) } + def node_string(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#10 + sig { returns(::String) } + def path; end + + # Reference indexing + # + # source://spoom//lib/spoom/deadcode/indexer.rb#355 + sig { params(name: ::String, node: ::SyntaxTree::Node).void } + def reference_constant(name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#360 + sig { params(name: ::String, node: ::SyntaxTree::Node).void } + def reference_method(name, node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#450 + sig { params(node: ::SyntaxTree::Node).returns(::String) } + def symbol_string(node); end + + # Visit + # + # source://spoom//lib/spoom/deadcode/indexer.rb#35 + sig { override.params(node: T.nilable(::SyntaxTree::Node)).void } + def visit(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#45 + sig { override.params(node: ::SyntaxTree::AliasNode).void } + def visit_alias(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#50 + sig { override.params(node: ::SyntaxTree::ARef).void } + def visit_aref(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#57 + sig { override.params(node: ::SyntaxTree::ARefField).void } + def visit_aref_field(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#64 + sig { override.params(node: ::SyntaxTree::ArgBlock).void } + def visit_arg_block(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#78 + sig { override.params(node: ::SyntaxTree::Binary).void } + def visit_binary(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#94 + sig { override.params(node: ::SyntaxTree::CallNode).void } + def visit_call(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#106 + sig { override.params(node: ::SyntaxTree::ClassDeclaration).void } + def visit_class(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#119 + sig { override.params(node: ::SyntaxTree::Command).void } + def visit_command(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#131 + sig { override.params(node: ::SyntaxTree::CommandCall).void } + def visit_command_call(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#144 + sig { override.params(node: ::SyntaxTree::Const).void } + def visit_const(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#149 + sig { override.params(node: ::SyntaxTree::ConstPathField).void } + def visit_const_path_field(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#159 + sig { override.params(node: ::SyntaxTree::DefNode).void } + def visit_def(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#167 + sig { override.params(node: ::SyntaxTree::Field).void } + def visit_field(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#183 + sig { override.params(node: ::SyntaxTree::ModuleDeclaration).void } + def visit_module(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#195 + sig { override.params(node: ::SyntaxTree::OpAssign).void } + def visit_opassign(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#204 + sig { params(send: ::Spoom::Deadcode::Send).void } + def visit_send(send); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#243 + sig { override.params(node: ::SyntaxTree::SymbolLiteral).void } + def visit_symbol_literal(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#252 + sig { override.params(node: ::SyntaxTree::TopConstField).void } + def visit_top_const_field(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#257 + sig { override.params(node: ::SyntaxTree::VarField).void } + def visit_var_field(node); end + + # source://spoom//lib/spoom/deadcode/indexer.rb#274 + sig { override.params(node: ::SyntaxTree::VCall).void } + def visit_vcall(node); end +end + +# source://spoom//lib/spoom/deadcode.rb#34 +class Spoom::Deadcode::IndexerError < ::Spoom::Deadcode::Error; end + +# source://spoom//lib/spoom/deadcode/location.rb#6 +class Spoom::Deadcode::Location + include ::Comparable + + # source://spoom//lib/spoom/deadcode/location.rb#54 + sig do + params( + file: ::String, + start_line: ::Integer, + start_column: ::Integer, + end_line: ::Integer, + end_column: ::Integer + ).void + end + def initialize(file, start_line, start_column, end_line, end_column); end + + # source://spoom//lib/spoom/deadcode/location.rb#74 + sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) } + def <=>(other); end + + # @return [Integer] + # + # source://spoom//lib/spoom/deadcode/location.rb#43 + def end_column; end + + # @return [Integer] + # + # source://spoom//lib/spoom/deadcode/location.rb#43 + def end_line; end + + # source://spoom//lib/spoom/deadcode/location.rb#40 + sig { returns(::String) } + def file; end + + # source://spoom//lib/spoom/deadcode/location.rb#63 + sig { params(other: ::Spoom::Deadcode::Location).returns(T::Boolean) } + def include?(other); end + + # @return [Integer] + # + # source://spoom//lib/spoom/deadcode/location.rb#43 + def start_column; end + + # source://spoom//lib/spoom/deadcode/location.rb#43 + sig { returns(::Integer) } + def start_line; end + + # source://spoom//lib/spoom/deadcode/location.rb#81 + sig { returns(::String) } + def to_s; end + + class << self + # @raise [LocationError] + # + # source://spoom//lib/spoom/deadcode/location.rb#17 + sig { params(location_string: ::String).returns(::Spoom::Deadcode::Location) } + def from_string(location_string); end + + # source://spoom//lib/spoom/deadcode/location.rb#34 + sig { params(file: ::String, location: ::SyntaxTree::Location).returns(::Spoom::Deadcode::Location) } + def from_syntax_tree(file, location); end + end +end + +# source://spoom//lib/spoom/deadcode/location.rb#11 +class Spoom::Deadcode::Location::LocationError < ::Spoom::Error; end + +# source://spoom//lib/spoom/deadcode/plugins.rb#35 +Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash) + +# source://spoom//lib/spoom/deadcode.rb#33 +class Spoom::Deadcode::ParserError < ::Spoom::Deadcode::Error; end + +# source://spoom//lib/spoom/deadcode/plugins/base.rb#8 +module Spoom::Deadcode::Plugins; end + +# source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7 +class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#11 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7 +class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#31 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_method(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#36 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#10 +Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7 +class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; end + +# source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7 +class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#14 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7 +class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#74 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64 +Spoom::Deadcode::Plugins::ActiveRecord::ARRAY_METHODS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#20 +Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#49 +Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7 +class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base; end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/deadcode/plugins/base.rb#9 +class Spoom::Deadcode::Plugins::Base + abstract! + + # Do not override this method, use `on_define_accessor` instead. + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#150 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def internal_on_define_accessor(indexer, definition); end + + # Do not override this method, use `on_define_class` instead. + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#174 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def internal_on_define_class(indexer, definition); end + + # Do not override this method, use `on_define_constant` instead. + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#204 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def internal_on_define_constant(indexer, definition); end + + # Do not override this method, use `on_define_method` instead. + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def internal_on_define_method(indexer, definition); end + + # Do not override this method, use `on_define_module` instead. + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def internal_on_define_module(indexer, definition); end + + # Do not override this method, use `on_send` instead. + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#284 + sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def internal_on_send(indexer, send); end + + # Called when an accessor is defined. + # + # Will be called when the indexer processes a `attr_reader`, `attr_writer` or `attr_accessor` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_accessor(indexer, definition) + # definition.ignored! if definition.name == "foo" + # end + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#144 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_accessor(indexer, definition); end + + # Called when a class is defined. + # + # Will be called when the indexer processes a `class` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_class(indexer, definition) + # definition.ignored! if definition.name == "Foo" + # end + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#168 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_class(indexer, definition); end + + # Called when a constant is defined. + # + # Will be called when the indexer processes a `CONST =` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_constant(indexer, definition) + # definition.ignored! if definition.name == "FOO" + # end + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#198 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_constant(indexer, definition); end + + # Called when a method is defined. + # + # Will be called when the indexer processes a `def` or `defs` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_method(indexer, definition) + # super # So the `ignore_method_names` DSL is still applied + # + # definition.ignored! if definition.name == "foo" + # end + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#226 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_method(indexer, definition); end + + # Called when a module is defined. + # + # Will be called when the indexer processes a `module` node. + # Note that when this method is called, the definition for the node has already been added to the index. + # It is still possible to ignore it from the plugin: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_define_module(indexer, definition) + # definition.ignored! if definition.name == "Foo" + # end + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#252 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_module(indexer, definition); end + + # Called when a send is being processed + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # def on_send(indexer, send) + # return unless send.name == "dsl_method" + # return if send.args.empty? + # + # method_name = indexer.node_string(send.args.first).delete_prefix(":") + # indexer.reference_method(method_name, send.node) + # end + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#278 + sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end + + private + + # Plugin utils + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#339 + sig { params(name: ::String).returns(::String) } + def camelize(name); end + + # DSL support + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#293 + sig { params(name: T.nilable(::String)).returns(T::Boolean) } + def ignored_class_name?(name); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#307 + sig { params(name: ::String).returns(T::Boolean) } + def ignored_constant_name?(name); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#312 + sig { params(name: ::String).returns(T::Boolean) } + def ignored_method_name?(name); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#317 + sig { params(name: ::String).returns(T::Boolean) } + def ignored_module_name?(name); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#322 + sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) } + def ignored_name?(name, names_variable, patterns_variable); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#300 + sig { params(superclass_name: T.nilable(::String)).returns(T::Boolean) } + def ignored_subclass?(superclass_name); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#327 + sig { params(const: ::Symbol).returns(T::Set[::String]) } + def names(const); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#332 + sig { params(const: ::Symbol).returns(T::Array[::Regexp]) } + def patterns(const); end + + class << self + # Mark classes directly subclassing a class matching `names` as ignored. + # + # Names can be either strings or regexps: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_classes_inheriting_from( + # "Foo", + # "Bar", + # /Baz.*/, + # ) + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#52 + sig { params(names: T.any(::Regexp, ::String)).void } + def ignore_classes_inheriting_from(*names); end + + # Mark classes matching `names` as ignored. + # + # Names can be either strings or regexps: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_class_names( + # "Foo", + # "Bar", + # /Baz.*/, + # ) + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#34 + sig { params(names: T.any(::Regexp, ::String)).void } + def ignore_classes_named(*names); end + + # Mark constants matching `names` as ignored. + # + # Names can be either strings or regexps: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_class_names( + # "FOO", + # "BAR", + # /BAZ.*/, + # ) + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#70 + sig { params(names: T.any(::Regexp, ::String)).void } + def ignore_constants_named(*names); end + + # Mark methods matching `names` as ignored. + # + # Names can be either strings or regexps: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_method_names( + # "foo", + # "bar", + # /baz.*/, + # ) + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#88 + sig { params(names: T.any(::Regexp, ::String)).void } + def ignore_methods_named(*names); end + + # Mark modules matching `names` as ignored. + # + # Names can be either strings or regexps: + # + # ~~~rb + # class MyPlugin < Spoom::Deadcode::Plugins::Base + # ignore_class_names( + # "Foo", + # "Bar", + # /Baz.*/, + # ) + # end + # ~~~ + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#106 + sig { params(names: T.any(::Regexp, ::String)).void } + def ignore_modules_named(*names); end + + private + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#113 + sig do + params( + names: T::Array[T.any(::Regexp, ::String)], + names_variable: ::Symbol, + patterns_variable: ::Symbol + ).void + end + def save_names_and_patterns(names, names_variable, patterns_variable); end + end +end + +# source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7 +class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#28 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 +class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#22 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_method(indexer, definition); end +end + +# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 +class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#11 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_class(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_module(indexer, definition); end + + private + + # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23 + sig { params(indexer: ::Spoom::Deadcode::Indexer).returns(T::Boolean) } + def used_as_namespace?(indexer); end +end + +# source://spoom//lib/spoom/deadcode/plugins/rspec.rb#7 +class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end + +# source://spoom//lib/spoom/deadcode/plugins/rails.rb#7 +class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/rails.rb#13 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_class(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/rails.rb#18 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_module(indexer, definition); end + + private + + # source://spoom//lib/spoom/deadcode/plugins/rails.rb#25 + sig { params(indexer: ::Spoom::Deadcode::Indexer).returns(T::Boolean) } + def file_is_helper?(indexer); end +end + +# source://spoom//lib/spoom/deadcode/plugins/rake.rb#7 +class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end + +# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7 +class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#18 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_constant(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#23 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_method(indexer, definition); end + + private + + # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#30 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } + def rubocop_constant?(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#35 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } + def rubocop_method?(indexer, definition); end +end + +# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#10 +Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set) + +# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7 +class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#24 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } + def on_send(indexer, send); end + + private + + # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#50 + sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send, node: ::SyntaxTree::Node).void } + def reference_symbol_as_constant(indexer, send, node); end +end + +# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7 +class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#11 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_constant(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_method(indexer, definition); end + + private + + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#40 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } + def sorbet_enum_constant?(indexer, definition); end + + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#23 + sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } + def sorbet_type_member?(indexer, definition); end +end + +# source://spoom//lib/spoom/deadcode/plugins/thor.rb#7 +class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/thor.rb#13 + sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } + def on_define_method(indexer, definition); end +end + +# A reference is a call to a method or a constant +# +# source://spoom//lib/spoom/deadcode/reference.rb#7 +class Spoom::Deadcode::Reference < ::T::Struct + const :kind, ::Spoom::Deadcode::Reference::Kind + const :name, ::String + const :location, ::Spoom::Deadcode::Location + + # Kind + # + # source://spoom//lib/spoom/deadcode/reference.rb#24 + sig { returns(T::Boolean) } + def constant?; end + + # source://spoom//lib/spoom/deadcode/reference.rb#29 + sig { returns(T::Boolean) } + def method?; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/deadcode/reference.rb#10 +class Spoom::Deadcode::Reference::Kind < ::T::Enum + enums do + Constant = new + Method = new + end +end + +# source://spoom//lib/spoom/deadcode/remover.rb#6 +class Spoom::Deadcode::Remover + # source://spoom//lib/spoom/deadcode/remover.rb#12 + sig { params(context: ::Spoom::Context).void } + def initialize(context); end + + # source://spoom//lib/spoom/deadcode/remover.rb#17 + sig { params(kind: ::Spoom::Deadcode::Definition::Kind, location: ::Spoom::Deadcode::Location).void } + def remove_location(kind, location); end +end + +# source://spoom//lib/spoom/deadcode/remover.rb#9 +class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end + +# source://spoom//lib/spoom/deadcode/remover.rb#348 +class Spoom::Deadcode::Remover::NodeContext + # source://spoom//lib/spoom/deadcode/remover.rb#358 + sig { params(source: ::String, node: ::SyntaxTree::Node, nesting: T::Array[::SyntaxTree::Node]).void } + def initialize(source, node, nesting); end + + # source://spoom//lib/spoom/deadcode/remover.rb#467 + sig { returns(T::Array[::SyntaxTree::Node]) } + def attached_comments_and_sigs; end + + # source://spoom//lib/spoom/deadcode/remover.rb#480 + sig { returns(T.nilable(::SyntaxTree::MethodAddBlock)) } + def attached_sig; end + + # source://spoom//lib/spoom/deadcode/remover.rb#460 + sig { params(comment: ::SyntaxTree::Node, node: ::SyntaxTree::Node).returns(T::Boolean) } + def comment_for_node?(comment, node); end + + # source://spoom//lib/spoom/deadcode/remover.rb#355 + sig { returns(T::Array[::SyntaxTree::Node]) } + def nesting; end + + # @return [Array<SyntaxTree::Node>] + # + # source://spoom//lib/spoom/deadcode/remover.rb#355 + def nesting=(_arg0); end + + # source://spoom//lib/spoom/deadcode/remover.rb#407 + sig { returns(T.nilable(::SyntaxTree::Node)) } + def next_node; end + + # source://spoom//lib/spoom/deadcode/remover.rb#397 + sig { returns(T::Array[::SyntaxTree::Node]) } + def next_nodes; end + + # source://spoom//lib/spoom/deadcode/remover.rb#352 + sig { returns(::SyntaxTree::Node) } + def node; end + + # source://spoom//lib/spoom/deadcode/remover.rb#495 + sig { params(node: T.any(::Symbol, ::SyntaxTree::Node)).returns(::String) } + def node_string(node); end + + # source://spoom//lib/spoom/deadcode/remover.rb#373 + sig { returns(::Spoom::Deadcode::Remover::NodeContext) } + def parent_context; end + + # source://spoom//lib/spoom/deadcode/remover.rb#365 + sig { returns(::SyntaxTree::Node) } + def parent_node; end + + # source://spoom//lib/spoom/deadcode/remover.rb#392 + sig { returns(T.nilable(::SyntaxTree::Node)) } + def previous_node; end + + # source://spoom//lib/spoom/deadcode/remover.rb#382 + sig { returns(T::Array[::SyntaxTree::Node]) } + def previous_nodes; end + + # source://spoom//lib/spoom/deadcode/remover.rb#412 + sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) } + def sclass_context; end + + # source://spoom//lib/spoom/deadcode/remover.rb#451 + sig { params(node: T.nilable(::SyntaxTree::Node)).returns(T::Boolean) } + def sorbet_extend_sig?(node); end + + # source://spoom//lib/spoom/deadcode/remover.rb#438 + sig { params(node: T.nilable(::SyntaxTree::Node)).returns(T::Boolean) } + def sorbet_signature?(node); end +end + +# source://spoom//lib/spoom/deadcode/remover.rb#505 +class Spoom::Deadcode::Remover::NodeFinder < ::SyntaxTree::Visitor + # source://spoom//lib/spoom/deadcode/remover.rb#554 + sig { params(location: ::Spoom::Deadcode::Location).void } + def initialize(location); end + + # source://spoom//lib/spoom/deadcode/remover.rb#548 + sig { returns(T.nilable(::SyntaxTree::Node)) } + def node; end + + # source://spoom//lib/spoom/deadcode/remover.rb#551 + sig { returns(T::Array[::SyntaxTree::Node]) } + def nodes_nesting; end + + # @return [Array<SyntaxTree::Node>] + # + # source://spoom//lib/spoom/deadcode/remover.rb#551 + def nodes_nesting=(_arg0); end + + # source://spoom//lib/spoom/deadcode/remover.rb#562 + sig { override.params(node: T.nilable(::SyntaxTree::Node)).void } + def visit(node); end + + private + + # TODO: remove once SyntaxTree location are fixed + # + # source://spoom//lib/spoom/deadcode/remover.rb#601 + sig { params(node: ::SyntaxTree::Node, nodes: T::Array[::SyntaxTree::Node]).returns(::Spoom::Deadcode::Location) } + def location_from_children(node, nodes); end + + # TODO: remove once SyntaxTree location are fixed + # + # source://spoom//lib/spoom/deadcode/remover.rb#586 + sig { params(node: ::SyntaxTree::Node).returns(::Spoom::Deadcode::Location) } + def location_from_node(node); end + + class << self + # source://spoom//lib/spoom/deadcode/remover.rb#512 + sig do + params( + source: ::String, + location: ::Spoom::Deadcode::Location, + kind: ::Spoom::Deadcode::Definition::Kind + ).returns(::Spoom::Deadcode::Remover::NodeContext) + end + def find(source, location, kind); end + + # source://spoom//lib/spoom/deadcode/remover.rb#531 + sig { params(node: ::SyntaxTree::Node, kind: ::Spoom::Deadcode::Definition::Kind).returns(T::Boolean) } + def node_match_kind?(node, kind); end + end +end + +# source://spoom//lib/spoom/deadcode/remover.rb#29 +class Spoom::Deadcode::Remover::NodeRemover + # source://spoom//lib/spoom/deadcode/remover.rb#36 + sig do + params( + source: ::String, + kind: ::Spoom::Deadcode::Definition::Kind, + location: ::Spoom::Deadcode::Location + ).void + end + def initialize(source, kind, location); end + + # source://spoom//lib/spoom/deadcode/remover.rb#46 + sig { void } + def apply_edit; end + + # source://spoom//lib/spoom/deadcode/remover.rb#33 + sig { returns(::String) } + def new_source; end + + private + + # source://spoom//lib/spoom/deadcode/remover.rb#142 + sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } + def delete_attr_accessor(context); end + + # source://spoom//lib/spoom/deadcode/remover.rb#290 + sig { params(start_char: ::Integer, end_char: ::Integer).void } + def delete_chars(start_char, end_char); end + + # source://spoom//lib/spoom/deadcode/remover.rb#69 + sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } + def delete_constant_assignment(context); end + + # source://spoom//lib/spoom/deadcode/remover.rb#300 + sig { params(line_number: ::Integer, start_column: ::Integer, end_column: ::Integer).void } + def delete_line_part(line_number, start_column, end_column); end + + # source://spoom//lib/spoom/deadcode/remover.rb#283 + sig { params(start_line: ::Integer, end_line: ::Integer).void } + def delete_lines(start_line, end_line); end + + # source://spoom//lib/spoom/deadcode/remover.rb#250 + sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } + def delete_node_and_comments_and_sigs(context); end + + # source://spoom//lib/spoom/deadcode/remover.rb#207 + sig do + params( + node: ::SyntaxTree::Node, + send_context: ::Spoom::Deadcode::Remover::NodeContext, + was_removed: T::Boolean + ).void + end + def insert_accessor(node, send_context, was_removed:); end + + # source://spoom//lib/spoom/deadcode/remover.rb#295 + sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void } + def replace_chars(start_char, end_char, replacement); end + + # source://spoom//lib/spoom/deadcode/remover.rb#315 + sig do + params( + node: ::SyntaxTree::MethodAddBlock, + name: ::String, + kind: ::Spoom::Deadcode::Definition::Kind + ).returns(::String) + end + def transform_sig(node, name:, kind:); end +end + +# An abstraction to simplify handling of SyntaxTree::CallNode, SyntaxTree::Command, SyntaxTree::CommandCall and +# SyntaxTree::VCall nodes. +# +# source://spoom//lib/spoom/deadcode/send.rb#8 +class Spoom::Deadcode::Send < ::T::Struct + const :node, ::SyntaxTree::Node + const :name, ::String + const :recv, T.nilable(::SyntaxTree::Node), default: T.unsafe(nil) + const :args, T::Array[::SyntaxTree::Node], default: T.unsafe(nil) + const :block, T.nilable(::SyntaxTree::Node), default: T.unsafe(nil) + + # source://spoom//lib/spoom/deadcode/send.rb#22 + sig do + type_parameters(:T) + .params( + arg_type: T::Class[T.type_parameter(:T)], + block: T.proc.params(arg: T.type_parameter(:T)).void + ).void + end + def each_arg(arg_type, &block); end + + # source://spoom//lib/spoom/deadcode/send.rb#29 + sig { params(block: T.proc.params(key: ::SyntaxTree::Node, value: T.nilable(::SyntaxTree::Node)).void).void } + def each_arg_assoc(&block); end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom.rb#12 +class Spoom::Error < ::StandardError; end + +# source://spoom//lib/spoom/context/exec.rb#5 +class Spoom::ExecResult < ::T::Struct + const :out, ::String + const :err, T.nilable(::String) + const :status, T::Boolean + const :exit_code, ::Integer + + # source://spoom//lib/spoom/context/exec.rb#14 + sig { returns(::String) } + def to_s; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/file_collector.rb#5 +class Spoom::FileCollector + # Initialize a new file collector + # + # If `allow_extensions` is empty, all files are collected. + # If `allow_extensions` is an array of extensions, only files with one of these extensions are collected. + # + # If `allow_mime_types` is empty, all files are collected. + # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in + # the list. + # + # source://spoom//lib/spoom/file_collector.rb#26 + sig do + params( + allow_extensions: T::Array[::String], + allow_mime_types: T::Array[::String], + exclude_patterns: T::Array[::String] + ).void + end + def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end + + # source://spoom//lib/spoom/file_collector.rb#9 + sig { returns(T::Array[::String]) } + def files; end + + # source://spoom//lib/spoom/file_collector.rb#39 + sig { params(path: ::String).void } + def visit_path(path); end + + # source://spoom//lib/spoom/file_collector.rb#34 + sig { params(paths: T::Array[::String]).void } + def visit_paths(paths); end + + private + + # source://spoom//lib/spoom/file_collector.rb#56 + sig { params(path: ::String).returns(::String) } + def clean_path(path); end + + # source://spoom//lib/spoom/file_collector.rb#73 + sig { params(path: ::String).returns(T::Boolean) } + def excluded_file?(path); end + + # source://spoom//lib/spoom/file_collector.rb#88 + sig { params(path: ::String).returns(T::Boolean) } + def excluded_path?(path); end + + # source://spoom//lib/spoom/file_collector.rb#97 + sig { params(path: ::String).returns(T.nilable(::String)) } + def mime_type_for(path); end + + # source://spoom//lib/spoom/file_collector.rb#68 + sig { params(path: ::String).void } + def visit_directory(path); end + + # source://spoom//lib/spoom/file_collector.rb#61 + sig { params(path: ::String).void } + def visit_file(path); end +end + +# Build a file hierarchy from a set of file paths. +# +# source://spoom//lib/spoom/file_tree.rb#6 +class Spoom::FileTree + # source://spoom//lib/spoom/file_tree.rb#10 + sig { params(paths: T::Enumerable[::String]).void } + def initialize(paths = T.unsafe(nil)); end + + # Add a `path` to the tree + # + # This will create all nodes until the root of `path`. + # + # source://spoom//lib/spoom/file_tree.rb#25 + sig { params(path: ::String).returns(::Spoom::FileTree::Node) } + def add_path(path); end + + # Add all `paths` to the tree + # + # source://spoom//lib/spoom/file_tree.rb#17 + sig { params(paths: T::Enumerable[::String]).void } + def add_paths(paths); end + + # All the nodes in this tree + # + # source://spoom//lib/spoom/file_tree.rb#45 + sig { returns(T::Array[::Spoom::FileTree::Node]) } + def nodes; end + + # Return a map of typing scores for each node in the tree + # + # source://spoom//lib/spoom/file_tree.rb#67 + sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } + def nodes_strictness_scores(context); end + + # Return a map of strictnesses for each node in the tree + # + # source://spoom//lib/spoom/file_tree.rb#59 + sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } + def nodes_strictnesses(context); end + + # All the paths in this tree + # + # source://spoom//lib/spoom/file_tree.rb#53 + sig { returns(T::Array[::String]) } + def paths; end + + # Return a map of typing scores for each path in the tree + # + # source://spoom//lib/spoom/file_tree.rb#75 + sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } + def paths_strictness_scores(context); end + + # source://spoom//lib/spoom/file_tree.rb#80 + sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } + def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end + + # source://spoom//lib/spoom/file_tree.rb#86 + sig { params(context: ::Spoom::Context, out: T.any(::IO, ::StringIO), colors: T::Boolean).void } + def print_with_strictnesses(context, out: T.unsafe(nil), colors: T.unsafe(nil)); end + + # All root nodes + # + # source://spoom//lib/spoom/file_tree.rb#39 + sig { returns(T::Array[::Spoom::FileTree::Node]) } + def roots; end +end + +# A visitor that collects all the nodes in a tree +# +# source://spoom//lib/spoom/file_tree.rb#140 +class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor + # source://spoom//lib/spoom/file_tree.rb#147 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/file_tree.rb#144 + sig { returns(T::Array[::Spoom::FileTree::Node]) } + def nodes; end + + # source://spoom//lib/spoom/file_tree.rb#153 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end +end + +# A visitor that collects the typing score of each node in a tree +# +# source://spoom//lib/spoom/file_tree.rb#183 +class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses + # source://spoom//lib/spoom/file_tree.rb#190 + sig { params(context: ::Spoom::Context).void } + def initialize(context); end + + # source://spoom//lib/spoom/file_tree.rb#187 + sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } + def scores; end + + # source://spoom//lib/spoom/file_tree.rb#197 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end + + private + + # source://spoom//lib/spoom/file_tree.rb#206 + sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } + def node_score(node); end + + # source://spoom//lib/spoom/file_tree.rb#215 + sig { params(strictness: T.nilable(::String)).returns(::Float) } + def strictness_score(strictness); end +end + +# A visitor that collects the strictness of each node in a tree +# +# source://spoom//lib/spoom/file_tree.rb#160 +class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor + # source://spoom//lib/spoom/file_tree.rb#167 + sig { params(context: ::Spoom::Context).void } + def initialize(context); end + + # source://spoom//lib/spoom/file_tree.rb#164 + sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } + def strictnesses; end + + # source://spoom//lib/spoom/file_tree.rb#174 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end +end + +# A node representing either a file or a directory inside a FileTree +# +# source://spoom//lib/spoom/file_tree.rb#94 +class Spoom::FileTree::Node < ::T::Struct + const :parent, T.nilable(::Spoom::FileTree::Node) + const :name, ::String + const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) + + # Full path to this node from root + # + # source://spoom//lib/spoom/file_tree.rb#108 + sig { returns(::String) } + def path; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# An internal class used to print a FileTree +# +# See `FileTree#print` +# +# source://spoom//lib/spoom/file_tree.rb#228 +class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor + # source://spoom//lib/spoom/file_tree.rb#238 + sig do + params( + strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], + out: T.any(::IO, ::StringIO), + colors: T::Boolean + ).void + end + def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end + + # source://spoom//lib/spoom/file_tree.rb#246 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end + + private + + # source://spoom//lib/spoom/file_tree.rb#271 + sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } + def strictness_color(strictness); end +end + +# An abstract visitor for FileTree +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/file_tree.rb#117 +class Spoom::FileTree::Visitor + abstract! + + # source://spoom//lib/spoom/file_tree.rb#129 + sig { params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end + + # source://spoom//lib/spoom/file_tree.rb#134 + sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } + def visit_nodes(nodes); end + + # source://spoom//lib/spoom/file_tree.rb#124 + sig { params(tree: ::Spoom::FileTree).void } + def visit_tree(tree); end +end + +# source://spoom//lib/spoom/context/git.rb#5 +module Spoom::Git; end + +# source://spoom//lib/spoom/context/git.rb#6 +class Spoom::Git::Commit < ::T::Struct + const :sha, ::String + const :time, ::Time + + # source://spoom//lib/spoom/context/git.rb#27 + sig { returns(::Integer) } + def timestamp; end + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + + # Parse a line formated as `%h %at` into a `Commit` + # + # source://spoom//lib/spoom/context/git.rb#14 + sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } + def parse_line(string); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/base.rb#5 +module Spoom::LSP; end + +# source://spoom//lib/spoom/sorbet/lsp.rb#13 +class Spoom::LSP::Client + # source://spoom//lib/spoom/sorbet/lsp.rb#17 + sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } + def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#229 + sig { void } + def close; end + + # source://spoom//lib/spoom/sorbet/lsp.rb#131 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } + def definitions(uri, line, column); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#212 + sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } + def document_symbols(uri); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#89 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } + def hover(uri, line, column); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#27 + sig { returns(::Integer) } + def next_id; end + + # LSP requests + # + # @raise [Error::AlreadyOpen] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#72 + sig { params(workspace_path: ::String).void } + def open(workspace_path); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#54 + sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } + def read; end + + # @raise [Error::BadHeaders] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#43 + sig { returns(T.nilable(::String)) } + def read_raw; end + + # source://spoom//lib/spoom/sorbet/lsp.rb#173 + sig do + params( + uri: ::String, + line: ::Integer, + column: ::Integer, + include_decl: T::Boolean + ).returns(T::Array[::Spoom::LSP::Location]) + end + def references(uri, line, column, include_decl = T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#37 + sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } + def send(message); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#32 + sig { params(json_string: ::String).void } + def send_raw(json_string); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#110 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } + def signatures(uri, line, column); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#197 + sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } + def symbols(query); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#152 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } + def type_definitions(uri, line, column); end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 +class Spoom::LSP::Diagnostic < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :range, ::Spoom::LSP::Range + const :code, ::Integer + const :message, ::String + const :informations, ::Object + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#202 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#207 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#191 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 +class Spoom::LSP::DocumentSymbol < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :name, ::String + const :detail, T.nilable(::String) + const :kind, ::Integer + const :location, T.nilable(::Spoom::LSP::Location) + const :range, T.nilable(::Spoom::LSP::Range) + const :children, T::Array[::Spoom::LSP::DocumentSymbol] + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#240 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#272 + sig { returns(::String) } + def kind_string; end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#267 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#227 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#276 +Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 +class Spoom::LSP::Error < ::StandardError; end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#7 +class Spoom::LSP::Error::AlreadyOpen < ::Spoom::LSP::Error; end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#8 +class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 +class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#32 + sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } + def initialize(uri, diagnostics); end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#17 + sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } + def diagnostics; end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#14 + sig { returns(::String) } + def uri; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#23 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } + def from_json(json); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 +class Spoom::LSP::Hover < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :contents, ::String + const :range, T.nilable(T::Range[T.untyped]) + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#39 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#30 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#112 +class Spoom::LSP::Location < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :uri, ::String + const :range, ::Spoom::LSP::Range + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#138 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#123 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# A general message as defined by JSON-RPC. +# +# The language server protocol always uses `"2.0"` as the `jsonrpc` version. +# +# source://spoom//lib/spoom/sorbet/lsp/base.rb#12 +class Spoom::LSP::Message + # source://spoom//lib/spoom/sorbet/lsp/base.rb#16 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#21 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def as_json; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#29 + sig { params(args: T.untyped).returns(::String) } + def to_json(*args); end +end + +# A notification message. +# +# A processed notification message must not send a response back. They work like events. +# +# source://spoom//lib/spoom/sorbet/lsp/base.rb#58 +class Spoom::LSP::Notification < ::Spoom::LSP::Message + # source://spoom//lib/spoom/sorbet/lsp/base.rb#68 + sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } + def initialize(method, params); end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 + sig { returns(::String) } + def method; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#65 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def params; end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#50 +class Spoom::LSP::Position < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :line, ::Integer + const :char, ::Integer + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#70 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#75 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#61 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# @abstract Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 +module Spoom::LSP::PrintableSymbol + interface! + + # @abstract + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 + sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#80 +class Spoom::LSP::Range < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :start, ::Spoom::LSP::Position + const :end, ::Spoom::LSP::Position + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#100 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#107 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# A request message to describe a request between the client and the server. +# +# Every processed request must send a response back to the sender of the request. +# +# source://spoom//lib/spoom/sorbet/lsp/base.rb#37 +class Spoom::LSP::Request < ::Spoom::LSP::Message + # source://spoom//lib/spoom/sorbet/lsp/base.rb#47 + sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } + def initialize(id, method, params); end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#41 + sig { returns(::Integer) } + def id; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#44 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def params; end +end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#40 +class Spoom::LSP::ResponseError < ::Spoom::LSP::Error + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#63 + sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } + def initialize(code, message, data); end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#44 + sig { returns(::Integer) } + def code; end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#47 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def data; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#53 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } + def from_json(json); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#143 +class Spoom::LSP::SignatureHelp < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :label, T.nilable(::String) + const :doc, ::Object + const :params, T::Array[T.untyped] + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#173 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#309 +class Spoom::LSP::SymbolPrinter < ::Spoom::Printer + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#326 + sig do + params( + out: T.any(::IO, ::StringIO), + colors: T::Boolean, + indent_level: ::Integer, + prefix: T.nilable(::String) + ).void + end + def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#348 + sig { params(uri: ::String).returns(::String) } + def clean_uri(uri); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 + sig { returns(T.nilable(::String)) } + def prefix; end + + # @return [String, nil] + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 + def prefix=(_arg0); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#356 + sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } + def print_list(objects); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#336 + sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } + def print_object(object); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#343 + sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } + def print_objects(objects); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 + sig { returns(T::Set[::Integer]) } + def seen; end +end + +# source://spoom//lib/spoom/printer.rb#7 +class Spoom::Printer + include ::Spoom::Colorize + + # source://spoom//lib/spoom/printer.rb#17 + sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } + def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end + + # Colorize `string` with color if `@colors` + # + # source://spoom//lib/spoom/printer.rb#78 + sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } + def colorize(string, *color); end + + # Decrease indent level + # + # source://spoom//lib/spoom/printer.rb#31 + sig { void } + def dedent; end + + # Increase indent level + # + # source://spoom//lib/spoom/printer.rb#25 + sig { void } + def indent; end + + # source://spoom//lib/spoom/printer.rb#14 + sig { returns(T.any(::IO, ::StringIO)) } + def out; end + + # @return [IO, StringIO] + # + # source://spoom//lib/spoom/printer.rb#14 + def out=(_arg0); end + + # Print `string` into `out` + # + # source://spoom//lib/spoom/printer.rb#37 + sig { params(string: T.nilable(::String)).void } + def print(string); end + + # Print `string` colored with `color` into `out` + # + # Does not use colors unless `@colors`. + # + # source://spoom//lib/spoom/printer.rb#47 + sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } + def print_colored(string, *color); end + + # Print `string` with indent and newline + # + # source://spoom//lib/spoom/printer.rb#62 + sig { params(string: T.nilable(::String)).void } + def printl(string); end + + # Print a new line into `out` + # + # source://spoom//lib/spoom/printer.rb#56 + sig { void } + def printn; end + + # Print an indent space into `out` + # + # source://spoom//lib/spoom/printer.rb#72 + sig { void } + def printt; end +end + +# source://spoom//lib/spoom.rb#10 +Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/config.rb#5 +module Spoom::Sorbet; end + +# source://spoom//lib/spoom/sorbet.rb#39 +Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet.rb#36 +Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) + +# Parse Sorbet config files +# +# Parses a Sorbet config file: +# +# ```ruby +# config = Spoom::Sorbet::Config.parse_file("sorbet/config") +# puts config.paths # "." +# ``` +# +# Parses a Sorbet config string: +# +# ```ruby +# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) +# a +# --file=b +# --ignore=c +# CONFIG +# puts config.paths # "a", "b" +# puts config.ignore # "c" +# ``` +# +# source://spoom//lib/spoom/sorbet/config.rb#26 +class Spoom::Sorbet::Config + # source://spoom//lib/spoom/sorbet/config.rb#38 + sig { void } + def initialize; end + + # @return [Array<String>] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def allowed_extensions; end + + # @return [Array<String>] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def allowed_extensions=(_arg0); end + + # source://spoom//lib/spoom/sorbet/config.rb#46 + sig { returns(::Spoom::Sorbet::Config) } + def copy; end + + # @return [Array<String>] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def ignore; end + + # @return [Array<String>] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def ignore=(_arg0); end + + # source://spoom//lib/spoom/sorbet/config.rb#35 + sig { returns(T::Boolean) } + def no_stdlib; end + + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/config.rb#35 + def no_stdlib=(_arg0); end + + # Returns self as a string of options that can be passed to Sorbet + # + # Example: + # ~~~rb + # config = Sorbet::Config.new + # config.paths << "/foo" + # config.paths << "/bar" + # config.ignore << "/baz" + # config.allowed_extensions << ".rb" + # + # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" + # ~~~ + # + # source://spoom//lib/spoom/sorbet/config.rb#68 + sig { returns(::String) } + def options_string; end + + # source://spoom//lib/spoom/sorbet/config.rb#32 + sig { returns(T::Array[::String]) } + def paths; end + + # @return [Array<String>] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def paths=(_arg0); end + + class << self + # source://spoom//lib/spoom/sorbet/config.rb#81 + sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } + def parse_file(sorbet_config_path); end + + # source://spoom//lib/spoom/sorbet/config.rb#86 + sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } + def parse_string(sorbet_config); end + + private + + # source://spoom//lib/spoom/sorbet/config.rb#150 + sig { params(line: ::String).returns(::String) } + def parse_option(line); end + end +end + +# source://spoom//lib/spoom/sorbet/config.rb#29 +Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/sorbet.rb#14 +class Spoom::Sorbet::Error < ::StandardError + # source://spoom//lib/spoom/sorbet.rb#29 + sig { params(message: ::String, result: ::Spoom::ExecResult).void } + def initialize(message, result); end + + # source://spoom//lib/spoom/sorbet.rb#21 + sig { returns(::Spoom::ExecResult) } + def result; end +end + +# source://spoom//lib/spoom/sorbet.rb#17 +class Spoom::Sorbet::Error::Killed < ::Spoom::Sorbet::Error; end + +# source://spoom//lib/spoom/sorbet.rb#18 +class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end + +# source://spoom//lib/spoom/sorbet/errors.rb#6 +module Spoom::Sorbet::Errors + class << self + # source://spoom//lib/spoom/sorbet/errors.rb#13 + sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } + def sort_errors_by_code(errors); end + end +end + +# source://spoom//lib/spoom/sorbet/errors.rb#7 +Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/errors.rb#125 +class Spoom::Sorbet::Errors::Error + include ::Comparable + + # source://spoom//lib/spoom/sorbet/errors.rb#151 + sig do + params( + file: T.nilable(::String), + line: T.nilable(::Integer), + message: T.nilable(::String), + code: T.nilable(::Integer), + more: T::Array[::String] + ).void + end + def initialize(file, line, message, code, more = T.unsafe(nil)); end + + # By default errors are sorted by location + # + # source://spoom//lib/spoom/sorbet/errors.rb#162 + sig { params(other: T.untyped).returns(::Integer) } + def <=>(other); end + + # @return [Integer, nil] + # + # source://spoom//lib/spoom/sorbet/errors.rb#133 + def code; end + + # source://spoom//lib/spoom/sorbet/errors.rb#130 + sig { returns(T.nilable(::String)) } + def file; end + + # Other files associated with the error + # + # source://spoom//lib/spoom/sorbet/errors.rb#140 + sig { returns(T::Set[::String]) } + def files_from_error_sections; end + + # source://spoom//lib/spoom/sorbet/errors.rb#133 + sig { returns(T.nilable(::Integer)) } + def line; end + + # @return [String, nil] + # + # source://spoom//lib/spoom/sorbet/errors.rb#130 + def message; end + + # source://spoom//lib/spoom/sorbet/errors.rb#136 + sig { returns(T::Array[::String]) } + def more; end + + # source://spoom//lib/spoom/sorbet/errors.rb#169 + sig { returns(::String) } + def to_s; end +end + +# Parse errors from Sorbet output +# +# source://spoom//lib/spoom/sorbet/errors.rb#18 +class Spoom::Sorbet::Errors::Parser + # source://spoom//lib/spoom/sorbet/errors.rb#43 + sig { params(error_url_base: ::String).void } + def initialize(error_url_base: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/errors.rb#50 + sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } + def parse(output); end + + private + + # source://spoom//lib/spoom/sorbet/errors.rb#114 + sig { params(line: ::String).void } + def append_error(line); end + + # source://spoom//lib/spoom/sorbet/errors.rb#106 + sig { void } + def close_error; end + + # source://spoom//lib/spoom/sorbet/errors.rb#73 + sig { params(error_url_base: ::String).returns(::Regexp) } + def error_line_match_regexp(error_url_base); end + + # source://spoom//lib/spoom/sorbet/errors.rb#90 + sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } + def match_error_line(line); end + + # source://spoom//lib/spoom/sorbet/errors.rb#99 + sig { params(error: ::Spoom::Sorbet::Errors::Error).void } + def open_error(error); end + + class << self + # source://spoom//lib/spoom/sorbet/errors.rb#36 + sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } + def parse_string(output, error_url_base: T.unsafe(nil)); end + end +end + +# source://spoom//lib/spoom/sorbet/errors.rb#21 +Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/sorbet.rb#37 +Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet.rb#38 +Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet.rb#41 +Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) + +# source://spoom//lib/spoom/sorbet/metrics.rb#8 +module Spoom::Sorbet::MetricsParser + class << self + # source://spoom//lib/spoom/sorbet/metrics.rb#15 + sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } + def parse_file(path, prefix = T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/metrics.rb#25 + sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } + def parse_hash(obj, prefix = T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/metrics.rb#20 + sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } + def parse_string(string, prefix = T.unsafe(nil)); end + end +end + +# source://spoom//lib/spoom/sorbet/metrics.rb#9 +Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet.rb#42 +Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) + +# source://spoom//lib/spoom/sorbet/sigils.rb#9 +module Spoom::Sorbet::Sigils + class << self + # changes the sigil in the file at the passed path to the specified new strictness + # + # source://spoom//lib/spoom/sorbet/sigils.rb#72 + sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } + def change_sigil_in_file(path, new_strictness); end + + # changes the sigil to have a new strictness in a list of files + # + # source://spoom//lib/spoom/sorbet/sigils.rb#83 + sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } + def change_sigil_in_files(path_list, new_strictness); end + + # returns a string containing the strictness of a sigil in a file at the passed path + # * returns nil if no sigil + # + # source://spoom//lib/spoom/sorbet/sigils.rb#63 + sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } + def file_strictness(path); end + + # returns the full sigil comment string for the passed strictness + # + # source://spoom//lib/spoom/sorbet/sigils.rb#38 + sig { params(strictness: ::String).returns(::String) } + def sigil_string(strictness); end + + # returns the strictness of a sigil in the passed file content string (nil if no sigil) + # + # source://spoom//lib/spoom/sorbet/sigils.rb#50 + sig { params(content: ::String).returns(T.nilable(::String)) } + def strictness_in_content(content); end + + # returns a string which is the passed content but with the sigil updated to a new strictness + # + # source://spoom//lib/spoom/sorbet/sigils.rb#56 + sig { params(content: ::String, new_strictness: ::String).returns(::String) } + def update_sigil(content, new_strictness); end + + # returns true if the passed string is a valid strictness (else false) + # + # source://spoom//lib/spoom/sorbet/sigils.rb#44 + sig { params(strictness: ::String).returns(T::Boolean) } + def valid_strictness?(strictness); end + end +end + +# source://spoom//lib/spoom/sorbet/sigils.rb#31 +Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://spoom//lib/spoom/sorbet/sigils.rb#13 +Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#12 +Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#17 +Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#15 +Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#16 +Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#14 +Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#19 +Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/timeline.rb#5 +class Spoom::Timeline + # source://spoom//lib/spoom/timeline.rb#9 + sig { params(context: ::Spoom::Context, from: ::Time, to: ::Time).void } + def initialize(context, from, to); end + + # Return one commit for each date in `dates` + # + # source://spoom//lib/spoom/timeline.rb#36 + sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } + def commits_for_dates(dates); end + + # Return all months between `from` and `to` + # + # source://spoom//lib/spoom/timeline.rb#23 + sig { returns(T::Array[::Time]) } + def months; end + + # Return one commit for each month between `from` and `to` + # + # source://spoom//lib/spoom/timeline.rb#17 + sig { returns(T::Array[::Spoom::Git::Commit]) } + def ticks; end +end + +# source://spoom//lib/spoom/version.rb#5 +Spoom::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/syntax_tree@6.2.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/syntax_tree@6.2.0.rbi new file mode 100755 index 000000000..0ecc1a415 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/syntax_tree@6.2.0.rbi @@ -0,0 +1,23136 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `syntax_tree` gem. +# Please instead update this file by running `bin/tapioca gem syntax_tree`. + +# Syntax Tree is a suite of tools built on top of the internal CRuby parser. It +# provides the ability to generate a syntax tree from source, as well as the +# tools necessary to inspect and manipulate that syntax tree. It can be used to +# build formatters, linters, language servers, and more. +# +# source://syntax_tree//lib/syntax_tree/node.rb#3 +module SyntaxTree + class << self + # Parses the given source and returns the formatted source. + # + # source://syntax_tree//lib/syntax_tree.rb#60 + def format(source, maxwidth = T.unsafe(nil), base_indentation = T.unsafe(nil), options: T.unsafe(nil)); end + + # Parses the given file and returns the formatted source. + # + # source://syntax_tree//lib/syntax_tree.rb#76 + def format_file(filepath, maxwidth = T.unsafe(nil), base_indentation = T.unsafe(nil), options: T.unsafe(nil)); end + + # Accepts a node in the tree and returns the formatted source. + # + # source://syntax_tree//lib/syntax_tree.rb#86 + def format_node(source, node, maxwidth = T.unsafe(nil), base_indentation = T.unsafe(nil), options: T.unsafe(nil)); end + + # Indexes the given source code to return a list of all class, module, and + # method definitions. Used to quickly provide indexing capability for IDEs or + # documentation generation. + # + # source://syntax_tree//lib/syntax_tree.rb#103 + def index(source); end + + # Indexes the given file to return a list of all class, module, and method + # definitions. Used to quickly provide indexing capability for IDEs or + # documentation generation. + # + # source://syntax_tree//lib/syntax_tree.rb#110 + def index_file(filepath); end + + # A convenience method for creating a new mutation visitor. + # + # @yield [visitor] + # + # source://syntax_tree//lib/syntax_tree.rb#115 + def mutation; end + + # Parses the given source and returns the syntax tree. + # + # source://syntax_tree//lib/syntax_tree.rb#122 + def parse(source); end + + # Parses the given file and returns the syntax tree. + # + # source://syntax_tree//lib/syntax_tree.rb#129 + def parse_file(filepath); end + + # Returns the source from the given filepath taking into account any potential + # magic encoding comments. + # + # source://syntax_tree//lib/syntax_tree.rb#135 + def read(filepath); end + + # This is a hook provided so that plugins can register themselves as the + # handler for a particular file type. + # + # source://syntax_tree//lib/syntax_tree.rb#150 + def register_handler(extension, handler); end + + # Searches through the given source using the given pattern and yields each + # node in the tree that matches the pattern to the given block. + # + # source://syntax_tree//lib/syntax_tree.rb#156 + def search(source, query, &block); end + + # Searches through the given file using the given pattern and yields each + # node in the tree that matches the pattern to the given block. + # + # source://syntax_tree//lib/syntax_tree.rb#165 + def search_file(filepath, query, &block); end + end +end + +# ARef represents when you're pulling a value out of a collection at a +# specific index. Put another way, it's any time you're calling the method +# #[]. +# +# collection[index] +# +# The nodes usually contains two children, the collection and the index. In +# some cases, you don't necessarily have the second child node, because you +# can call procs with a pretty esoteric syntax. In the following example, you +# wouldn't have a second child node: +# +# collection[] +# +# source://syntax_tree//lib/syntax_tree/node.rb#567 +class SyntaxTree::ARef < ::SyntaxTree::Node + # @return [ARef] a new instance of ARef + # + # source://syntax_tree//lib/syntax_tree/node.rb#577 + def initialize(collection:, index:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#632 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#584 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#588 + def child_nodes; end + + # [Node] the value being indexed + # + # source://syntax_tree//lib/syntax_tree/node.rb#569 + def collection; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#575 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#592 + def copy(collection: T.unsafe(nil), index: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#588 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#606 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#615 + def format(q); end + + # [nil | Args] the value being passed within the brackets + # + # source://syntax_tree//lib/syntax_tree/node.rb#572 + def index; end +end + +# ARefField represents assigning values into collections at specific indices. +# Put another way, it's any time you're calling the method #[]=. The +# ARefField node itself is just the left side of the assignment, and they're +# always wrapped in assign nodes. +# +# collection[index] = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#645 +class SyntaxTree::ARefField < ::SyntaxTree::Node + # @return [ARefField] a new instance of ARefField + # + # source://syntax_tree//lib/syntax_tree/node.rb#655 + def initialize(collection:, index:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#710 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#662 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#666 + def child_nodes; end + + # [Node] the value being indexed + # + # source://syntax_tree//lib/syntax_tree/node.rb#647 + def collection; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#653 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#670 + def copy(collection: T.unsafe(nil), index: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#666 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#684 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#693 + def format(q); end + + # [nil | Args] the value being passed within the brackets + # + # source://syntax_tree//lib/syntax_tree/node.rb#650 + def index; end +end + +# Alias represents the use of the +alias+ keyword with regular arguments (not +# global variables). The +alias+ keyword is used to make a method respond to +# another name as well as the current one. +# +# alias aliased_name name +# +# For the example above, in the current context you can now call aliased_name +# and it will execute the name method. When you're aliasing two methods, you +# can either provide bare words (like the example above) or you can provide +# symbols (note that this includes dynamic symbols like +# :"left-#{middle}-right"). +# +# source://syntax_tree//lib/syntax_tree/node.rb#458 +class SyntaxTree::AliasNode < ::SyntaxTree::Node + # @return [AliasNode] a new instance of AliasNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#496 + def initialize(left:, right:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#545 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#503 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#507 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#494 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#511 + def copy(left: T.unsafe(nil), right: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#507 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#525 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#529 + def format(q); end + + # [DynaSymbol | GVar | SymbolLiteral] the new name of the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#488 + def left; end + + # [Backref | DynaSymbol | GVar | SymbolLiteral] the old name of the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#491 + def right; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#549 + def var_alias?; end +end + +# Formats an argument to the alias keyword. For symbol literals it uses the +# value of the symbol directly to look like bare words. +# +# source://syntax_tree//lib/syntax_tree/node.rb#461 +class SyntaxTree::AliasNode::AliasArgumentFormatter + # @return [AliasArgumentFormatter] a new instance of AliasArgumentFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#466 + def initialize(argument); end + + # [Backref | DynaSymbol | GVar | SymbolLiteral] the argument being passed + # to alias + # + # source://syntax_tree//lib/syntax_tree/node.rb#464 + def argument; end + + # source://syntax_tree//lib/syntax_tree/node.rb#470 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#478 + def format(q); end +end + +# ArgBlock represents using a block operator on an expression. +# +# method(&expression) +# +# source://syntax_tree//lib/syntax_tree/node.rb#887 +class SyntaxTree::ArgBlock < ::SyntaxTree::Node + # @return [ArgBlock] a new instance of ArgBlock + # + # source://syntax_tree//lib/syntax_tree/node.rb#894 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#930 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#900 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#904 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#892 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#908 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#904 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#921 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#925 + def format(q); end + + # [nil | Node] the expression being turned into a block + # + # source://syntax_tree//lib/syntax_tree/node.rb#889 + def value; end +end + +# ArgParen represents wrapping arguments to a method inside a set of +# parentheses. +# +# method(argument) +# +# In the example above, there would be an ArgParen node around the Args node +# that represents the set of arguments being sent to the method method. The +# argument child node can be +nil+ if no arguments were passed, as in: +# +# method() +# +# source://syntax_tree//lib/syntax_tree/node.rb#727 +class SyntaxTree::ArgParen < ::SyntaxTree::Node + # @return [ArgParen] a new instance of ArgParen + # + # source://syntax_tree//lib/syntax_tree/node.rb#735 + def initialize(arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#784 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#741 + def accept(visitor); end + + # [nil | Args | ArgsForward] the arguments inside the + # parentheses + # + # source://syntax_tree//lib/syntax_tree/node.rb#730 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#788 + def arity; end + + # source://syntax_tree//lib/syntax_tree/node.rb#745 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#733 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#749 + def copy(arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#745 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#762 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#766 + def format(q); end + + private + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#794 + def trailing_comma?; end +end + +# Star represents using a splat operator on an expression. +# +# method(*arguments) +# +# source://syntax_tree//lib/syntax_tree/node.rb#939 +class SyntaxTree::ArgStar < ::SyntaxTree::Node + # @return [ArgStar] a new instance of ArgStar + # + # source://syntax_tree//lib/syntax_tree/node.rb#946 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#982 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#952 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#956 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#944 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#960 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#956 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#973 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#977 + def format(q); end + + # [nil | Node] the expression being splatted + # + # source://syntax_tree//lib/syntax_tree/node.rb#941 + def value; end +end + +# Args represents a list of arguments being passed to a method call or array +# literal. +# +# method(first, second, third) +# +# source://syntax_tree//lib/syntax_tree/node.rb#821 +class SyntaxTree::Args < ::SyntaxTree::Node + # @return [Args] a new instance of Args + # + # source://syntax_tree//lib/syntax_tree/node.rb#828 + def initialize(parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#863 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#834 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#867 + def arity; end + + # source://syntax_tree//lib/syntax_tree/node.rb#838 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#826 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#842 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#838 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#855 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#859 + def format(q); end + + # [Array[ Node ]] the arguments that this node wraps + # + # source://syntax_tree//lib/syntax_tree/node.rb#823 + def parts; end +end + +# ArgsForward represents forwarding all kinds of arguments onto another method +# call. +# +# def request(method, path, **headers, &block); end +# +# def get(...) +# request(:GET, ...) +# end +# +# def post(...) +# request(:POST, ...) +# end +# +# In the example above, both the get and post methods are forwarding all of +# their arguments (positional, keyword, and block) on to the request method. +# The ArgsForward node appears in both the caller (the request method calls) +# and the callee (the get and post definitions). +# +# source://syntax_tree//lib/syntax_tree/node.rb#1004 +class SyntaxTree::ArgsForward < ::SyntaxTree::Node + # @return [ArgsForward] a new instance of ArgsForward + # + # source://syntax_tree//lib/syntax_tree/node.rb#1008 + def initialize(location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1038 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1013 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1042 + def arity; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1017 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1006 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1021 + def copy(location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1017 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1030 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1034 + def format(q); end +end + +# ArrayLiteral represents an array literal, which can optionally contain +# elements. +# +# [] +# [one, two, three] +# +# source://syntax_tree//lib/syntax_tree/node.rb#1053 +class SyntaxTree::ArrayLiteral < ::SyntaxTree::Node + # @return [ArrayLiteral] a new instance of ArrayLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#1153 + def initialize(lbracket:, contents:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1229 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1160 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1164 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1151 + def comments; end + + # [nil | Args] the contents of the array + # + # source://syntax_tree//lib/syntax_tree/node.rb#1148 + def contents; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1168 + def copy(lbracket: T.unsafe(nil), contents: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1164 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1182 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1191 + def format(q); end + + # [nil | LBracket | QSymbolsBeg | QWordsBeg | SymbolsBeg | WordsBeg] the + # bracket that opens this array + # + # source://syntax_tree//lib/syntax_tree/node.rb#1145 + def lbracket; end + + private + + # If we have an empty array that contains only comments, then we're going + # to do some special printing to ensure they get indented correctly. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#1259 + def empty_with_comments?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#1251 + def qsymbols?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#1236 + def qwords?; end +end + +# source://syntax_tree//lib/syntax_tree/node.rb#1063 +SyntaxTree::ArrayLiteral::BREAKABLE_SPACE_SEPARATOR = T.let(T.unsafe(nil), SyntaxTree::ArrayLiteral::BreakableSpaceSeparator) + +# It's very common to use seplist with ->(q) { q.breakable_space }. We wrap +# that pattern into an object to cut down on having to create a bunch of +# lambdas all over the place. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1057 +class SyntaxTree::ArrayLiteral::BreakableSpaceSeparator + # source://syntax_tree//lib/syntax_tree/node.rb#1058 + def call(q); end +end + +# This is a special formatter used if the array literal contains no values +# but _does_ contain comments. In this case we do some special formatting to +# make sure the comments gets indented properly. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1120 +class SyntaxTree::ArrayLiteral::EmptyWithCommentsFormatter + # @return [EmptyWithCommentsFormatter] a new instance of EmptyWithCommentsFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#1124 + def initialize(lbracket); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1128 + def format(q); end + + # [LBracket] the opening bracket + # + # source://syntax_tree//lib/syntax_tree/node.rb#1122 + def lbracket; end +end + +# Formats an array of multiple simple symbol literals into the %i syntax. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1094 +class SyntaxTree::ArrayLiteral::QSymbolsFormatter + # @return [QSymbolsFormatter] a new instance of QSymbolsFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#1098 + def initialize(contents); end + + # [Args] the contents of the array + # + # source://syntax_tree//lib/syntax_tree/node.rb#1096 + def contents; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1102 + def format(q); end +end + +# Formats an array of multiple simple string literals into the %w syntax. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1066 +class SyntaxTree::ArrayLiteral::QWordsFormatter + # @return [QWordsFormatter] a new instance of QWordsFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#1070 + def initialize(contents); end + + # [Args] the contents of the array + # + # source://syntax_tree//lib/syntax_tree/node.rb#1068 + def contents; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1074 + def format(q); end +end + +# When we're implementing the === operator for a node, we oftentimes need to +# compare two arrays. We want to skip over the === definition of array and use +# our own here, so we do that using this module. +# +# source://syntax_tree//lib/syntax_tree/node.rb#157 +module SyntaxTree::ArrayMatch + class << self + # source://syntax_tree//lib/syntax_tree/node.rb#158 + def call(left, right); end + end +end + +# AryPtn represents matching against an array pattern using the Ruby 2.7+ +# pattern matching syntax. It’s one of the more complicated nodes, because +# the four parameters that it accepts can almost all be nil. +# +# case [1, 2, 3] +# in [Integer, Integer] +# "matched" +# in Container[Integer, Integer] +# "matched" +# in [Integer, *, Integer] +# "matched" +# end +# +# An AryPtn node is created with four parameters: an optional constant +# wrapper, an array of positional matches, an optional splat with identifier, +# and an optional array of positional matches that occur after the splat. +# All of the in clauses above would create an AryPtn node. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1282 +class SyntaxTree::AryPtn < ::SyntaxTree::Node + # @return [AryPtn] a new instance of AryPtn + # + # source://syntax_tree//lib/syntax_tree/node.rb#1320 + def initialize(constant:, requireds:, rest:, posts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1388 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1329 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1333 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1318 + def comments; end + + # [nil | VarRef | ConstPathRef] the optional constant wrapper + # + # source://syntax_tree//lib/syntax_tree/node.rb#1303 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1337 + def copy(constant: T.unsafe(nil), requireds: T.unsafe(nil), rest: T.unsafe(nil), posts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1333 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1359 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1370 + def format(q); end + + # [Array[ Node ]] the list of positional arguments occurring after the + # optional star if there is one + # + # source://syntax_tree//lib/syntax_tree/node.rb#1315 + def posts; end + + # [Array[ Node ]] the regular positional arguments that this array + # pattern is matching against + # + # source://syntax_tree//lib/syntax_tree/node.rb#1307 + def requireds; end + + # [nil | VarField] the optional starred identifier that grabs up a list of + # positional arguments + # + # source://syntax_tree//lib/syntax_tree/node.rb#1311 + def rest; end +end + +# Formats the optional splat of an array pattern. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1284 +class SyntaxTree::AryPtn::RestFormatter + # @return [RestFormatter] a new instance of RestFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#1288 + def initialize(value); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1292 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1296 + def format(q); end + + # [VarField] the identifier that represents the remaining positionals + # + # source://syntax_tree//lib/syntax_tree/node.rb#1286 + def value; end +end + +# Assign represents assigning something to a variable or constant. Generally, +# the left side of the assignment is going to be any node that ends with the +# name "Field". +# +# variable = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#1418 +class SyntaxTree::Assign < ::SyntaxTree::Node + # @return [Assign] a new instance of Assign + # + # source://syntax_tree//lib/syntax_tree/node.rb#1429 + def initialize(target:, value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1479 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1436 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1440 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1427 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1444 + def copy(target: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1440 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1458 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1462 + def format(q); end + + # [ARefField | ConstPathField | Field | TopConstField | VarField] the target + # to assign the result of the expression to + # + # source://syntax_tree//lib/syntax_tree/node.rb#1421 + def target; end + + # [Node] the expression to be assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#1424 + def value; end + + private + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#1485 + def skip_indent?; end +end + +# Determins if the following value should be indented or not. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1396 +module SyntaxTree::AssignFormatting + class << self + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#1397 + def skip_indent?(value); end + end +end + +# Assoc represents a key-value pair within a hash. It is a child node of +# either an AssocListFromArgs or a BareAssocHash. +# +# { key1: value1, key2: value2 } +# +# In the above example, the would be two Assoc nodes. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1497 +class SyntaxTree::Assoc < ::SyntaxTree::Node + # @return [Assoc] a new instance of Assoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#1507 + def initialize(key:, value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1548 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1514 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1518 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1505 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1522 + def copy(key: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1518 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1536 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1540 + def format(q); end + + # [Node] the key of this pair + # + # source://syntax_tree//lib/syntax_tree/node.rb#1499 + def key; end + + # [nil | Node] the value of this pair + # + # source://syntax_tree//lib/syntax_tree/node.rb#1502 + def value; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#1554 + def format_contents(q); end +end + +# AssocSplat represents double-splatting a value into a hash (either a hash +# literal or a bare hash in a method call). +# +# { **pairs } +# +# source://syntax_tree//lib/syntax_tree/node.rb#1575 +class SyntaxTree::AssocSplat < ::SyntaxTree::Node + # @return [AssocSplat] a new instance of AssocSplat + # + # source://syntax_tree//lib/syntax_tree/node.rb#1582 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1618 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1588 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1592 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1580 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1596 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1592 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1609 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1613 + def format(q); end + + # [nil | Node] the expression that is being splatted + # + # source://syntax_tree//lib/syntax_tree/node.rb#1577 + def value; end +end + +# BEGINBlock represents the use of the +BEGIN+ keyword, which hooks into the +# lifecycle of the interpreter. Whatever is inside the block will get executed +# when the program starts. +# +# BEGIN { +# } +# +# Interestingly, the BEGIN keyword doesn't allow the do and end keywords for +# the block. Only braces are permitted. +# +# source://syntax_tree//lib/syntax_tree/node.rb#175 +class SyntaxTree::BEGINBlock < ::SyntaxTree::Node + # @return [BEGINBlock] a new instance of BEGINBlock + # + # source://syntax_tree//lib/syntax_tree/node.rb#185 + def initialize(lbrace:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#236 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#192 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#196 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#183 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#200 + def copy(lbrace: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#196 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#214 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#223 + def format(q); end + + # [LBrace] the left brace that is seen after the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#177 + def lbrace; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#180 + def statements; end +end + +# Backref represents a global variable referencing a matched value. It comes +# in the form of a $ followed by a positive integer. +# +# $1 +# +# source://syntax_tree//lib/syntax_tree/node.rb#1628 +class SyntaxTree::Backref < ::SyntaxTree::Node + # @return [Backref] a new instance of Backref + # + # source://syntax_tree//lib/syntax_tree/node.rb#1635 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1670 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1641 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1645 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1633 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1649 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1645 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1662 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1666 + def format(q); end + + # [String] the name of the global backreference variable + # + # source://syntax_tree//lib/syntax_tree/node.rb#1630 + def value; end +end + +# Backtick represents the use of the ` operator. It's usually found being used +# for an XStringLiteral, but could also be found as the name of a method being +# defined. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1678 +class SyntaxTree::Backtick < ::SyntaxTree::Node + # @return [Backtick] a new instance of Backtick + # + # source://syntax_tree//lib/syntax_tree/node.rb#1685 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1720 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1691 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1695 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1683 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1699 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1695 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1712 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1716 + def format(q); end + + # [String] the backtick in the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#1680 + def value; end +end + +# BareAssocHash represents a hash of contents being passed as a method +# argument (and therefore has omitted braces). It's very similar to an +# AssocListFromArgs node. +# +# method(key1: value1, key2: value2) +# +# source://syntax_tree//lib/syntax_tree/node.rb#1834 +class SyntaxTree::BareAssocHash < ::SyntaxTree::Node + # @return [BareAssocHash] a new instance of BareAssocHash + # + # source://syntax_tree//lib/syntax_tree/node.rb#1841 + def initialize(assocs:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1876 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1847 + def accept(visitor); end + + # [Array[ Assoc | AssocSplat ]] + # + # source://syntax_tree//lib/syntax_tree/node.rb#1836 + def assocs; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1851 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1839 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1855 + def copy(assocs: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1851 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1868 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1872 + def format(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1880 + def format_key(q, key); end +end + +# BasicVisitor is the parent class of the Visitor class that provides the +# ability to walk down the tree. It does not define any handlers, so you +# should extend this class if you want your visitor to raise an error if you +# attempt to visit a node that you don't handle. +# +# source://syntax_tree//lib/syntax_tree/basic_visitor.rb#8 +class SyntaxTree::BasicVisitor + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#105 + def visit(node); end + + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#109 + def visit_all(nodes); end + + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_child_nodes(node); end + + class << self + # This is the list of all of the valid visit methods. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#72 + def valid_visit_methods; end + + # This method is here to help folks write visitors. + # + # It's not always easy to ensure you're writing the correct method name in + # the visitor since it's perfectly valid to define methods that don't + # override these parent methods. + # + # If you use this method, you can ensure you're writing the correct method + # name. It will raise an error if the visit method you're defining isn't + # actually a method on the parent visitor. + # + # @raise [VisitMethodError] + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#86 + def visit_method(method_name); end + + # This method is here to help folks write visitors. + # + # Within the given block, every method that is defined will be checked to + # ensure it's a valid visit method using the BasicVisitor::visit_method + # method defined above. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#97 + def visit_methods; end + end +end + +# This class is used by DidYouMean to offer corrections to invalid visit +# method names. +# +# source://syntax_tree//lib/syntax_tree/basic_visitor.rb#22 +class SyntaxTree::BasicVisitor::VisitMethodChecker + # @return [VisitMethodChecker] a new instance of VisitMethodChecker + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#25 + def initialize(error); end + + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#29 + def corrections; end + + # Returns the value of attribute visit_method. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#23 + def visit_method; end +end + +# This is raised when you use the Visitor.visit_method method and it fails. +# It is correctable to through DidYouMean. +# +# source://syntax_tree//lib/syntax_tree/basic_visitor.rb#11 +class SyntaxTree::BasicVisitor::VisitMethodError < ::StandardError + include ::DidYouMean::Correctable + + # @return [VisitMethodError] a new instance of VisitMethodError + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#14 + def initialize(visit_method); end + + # Returns the value of attribute visit_method. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#12 + def visit_method; end +end + +# This module is responsible for checking all of the methods defined within +# a given block to ensure that they are valid visit methods. +# +# source://syntax_tree//lib/syntax_tree/basic_visitor.rb#45 +class SyntaxTree::BasicVisitor::VisitMethodsChecker < ::Module + # @return [VisitMethodsChecker] a new instance of VisitMethodsChecker + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#53 + def initialize; end + + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#65 + def disable!; end + + # This is the status of the checker. It's used to determine whether or not + # we should be checking the methods that are defined. It is kept as an + # instance variable so that it can be disabled later. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#51 + def status; end +end + +# source://syntax_tree//lib/syntax_tree/basic_visitor.rb#46 +class SyntaxTree::BasicVisitor::VisitMethodsChecker::Status < ::Struct + # Returns the value of attribute checking + # + # @return [Object] the current value of checking + def checking; end + + # Sets the attribute checking + # + # @param value [Object] the value to set the attribute checking to. + # @return [Object] the newly set value + def checking=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Begin represents a begin..end chain. +# +# begin +# value +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#1899 +class SyntaxTree::Begin < ::SyntaxTree::Node + # @return [Begin] a new instance of Begin + # + # source://syntax_tree//lib/syntax_tree/node.rb#1906 + def initialize(bodystmt:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1951 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1912 + def accept(visitor); end + + # [BodyStmt] the bodystmt that contains the contents of this begin block + # + # source://syntax_tree//lib/syntax_tree/node.rb#1901 + def bodystmt; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1916 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1904 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1920 + def copy(bodystmt: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1916 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1933 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1937 + def format(q); end +end + +# Binary represents any expression that involves two sub-expressions with an +# operator in between. This can be something that looks like a mathematical +# operation: +# +# 1 + 1 +# +# but can also be something like pushing a value onto an array: +# +# array << value +# +# source://syntax_tree//lib/syntax_tree/node.rb#2029 +class SyntaxTree::Binary < ::SyntaxTree::Node + # @return [Binary] a new instance of Binary + # + # source://syntax_tree//lib/syntax_tree/node.rb#2056 + def initialize(left:, operator:, right:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2128 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2064 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2068 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#2054 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2072 + def copy(left: T.unsafe(nil), operator: T.unsafe(nil), right: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2068 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2087 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2097 + def format(q); end + + # [Node] the left-hand side of the expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#2045 + def left; end + + # [Symbol] the operator used between the two expressions + # + # source://syntax_tree//lib/syntax_tree/node.rb#2048 + def operator; end + + # [Node] the right-hand side of the expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#2051 + def right; end +end + +# BlockArg represents declaring a block parameter on a method definition. +# +# def method(&block); end +# +# source://syntax_tree//lib/syntax_tree/node.rb#2227 +class SyntaxTree::BlockArg < ::SyntaxTree::Node + # @return [BlockArg] a new instance of BlockArg + # + # source://syntax_tree//lib/syntax_tree/node.rb#2234 + def initialize(name:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2270 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2240 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2244 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#2232 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2248 + def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2244 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2261 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2265 + def format(q); end + + # [nil | Ident] the name of the block argument + # + # source://syntax_tree//lib/syntax_tree/node.rb#2229 + def name; end +end + +# Block represents passing a block to a method call using the +do+ and +end+ +# keywords or the +{+ and +}+ operators. +# +# method do |value| +# end +# +# method { |value| } +# +# source://syntax_tree//lib/syntax_tree/node.rb#4312 +class SyntaxTree::BlockNode < ::SyntaxTree::Node + # @return [BlockNode] a new instance of BlockNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#4347 + def initialize(opening:, block_var:, bodystmt:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4420 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4355 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4429 + def arity; end + + # [nil | BlockVar] the optional variable declaration within this block + # + # source://syntax_tree//lib/syntax_tree/node.rb#4339 + def block_var; end + + # [BodyStmt | Statements] the expressions to be executed within this block + # + # source://syntax_tree//lib/syntax_tree/node.rb#4342 + def bodystmt; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4359 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4345 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4363 + def copy(opening: T.unsafe(nil), block_var: T.unsafe(nil), bodystmt: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4359 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4378 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4388 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4425 + def keywords?; end + + # [LBrace | Kw] the left brace or the do keyword that opens this block + # + # source://syntax_tree//lib/syntax_tree/node.rb#4336 + def opening; end + + private + + # If we're the predicate of a loop or conditional, then we're going to have + # to go with the {..} bounds. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4471 + def forced_brace_bounds?(q); end + + # If we're a sibling of a control-flow keyword, then we're going to have to + # use the do..end bounds. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4460 + def forced_do_end_bounds?(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4487 + def format_break(q, break_opening, break_closing); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4507 + def format_flat(q, flat_opening, flat_closing); end + + # If this is nested anywhere inside certain nodes, then we can't change + # which operators/keywords we're using for the bounds of the block. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4442 + def unchangeable_bounds?(q); end +end + +# Formats the opening brace or keyword of a block. +# +# source://syntax_tree//lib/syntax_tree/node.rb#4314 +class SyntaxTree::BlockNode::BlockOpenFormatter + # @return [BlockOpenFormatter] a new instance of BlockOpenFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#4321 + def initialize(text, node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4326 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4330 + def format(q); end + + # [LBrace | Keyword] the node that is being represented + # + # source://syntax_tree//lib/syntax_tree/node.rb#4319 + def node; end + + # [String] the actual output that should be printed + # + # source://syntax_tree//lib/syntax_tree/node.rb#4316 + def text; end +end + +# BlockVar represents the parameters being declared for a block. Effectively +# this node is everything contained within the pipes. This includes all of the +# various parameter types, as well as block-local variable declarations. +# +# method do |positional, optional = value, keyword:, █ local| +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#2141 +class SyntaxTree::BlockVar < ::SyntaxTree::Node + # @return [BlockVar] a new instance of BlockVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#2151 + def initialize(params:, locals:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2209 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2158 + def accept(visitor); end + + # When a single required parameter is declared for a block, it gets + # automatically expanded if the values being yielded into it are an array. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#2216 + def arg0?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2162 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#2149 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2166 + def copy(params: T.unsafe(nil), locals: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2162 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2180 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2196 + def format(q); end + + # [Array[ Ident ]] the list of block-local variable declarations + # + # source://syntax_tree//lib/syntax_tree/node.rb#2146 + def locals; end + + # [Params] the parameters being declared with the block + # + # source://syntax_tree//lib/syntax_tree/node.rb#2143 + def params; end +end + +# We'll keep a single instance of this separator around for all block vars +# to cut down on allocations. +# +# source://syntax_tree//lib/syntax_tree/node.rb#2194 +SyntaxTree::BlockVar::SEPARATOR = T.let(T.unsafe(nil), SyntaxTree::BlockVar::Separator) + +# Within the pipes of the block declaration, we don't want any spaces. So +# we'll separate the parameters with a comma and space but no breakables. +# +# source://syntax_tree//lib/syntax_tree/node.rb#2186 +class SyntaxTree::BlockVar::Separator + # source://syntax_tree//lib/syntax_tree/node.rb#2187 + def call(q); end +end + +# bodystmt can't actually determine its bounds appropriately because it +# doesn't necessarily know where it started. So the parent node needs to +# report back down into this one where it goes. +# +# source://syntax_tree//lib/syntax_tree/node.rb#2278 +class SyntaxTree::BodyStmt < ::SyntaxTree::Node + # @return [BodyStmt] a new instance of BodyStmt + # + # source://syntax_tree//lib/syntax_tree/node.rb#2297 + def initialize(statements:, rescue_clause:, else_keyword:, else_clause:, ensure_clause:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2428 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2352 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2314 + def bind(parser, start_char, start_column, end_char, end_column); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2356 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#2295 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2360 + def copy(statements: T.unsafe(nil), rescue_clause: T.unsafe(nil), else_keyword: T.unsafe(nil), else_clause: T.unsafe(nil), ensure_clause: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2356 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2384 + def deconstruct_keys(_keys); end + + # [nil | Statements] the optional set of statements inside the else clause + # + # source://syntax_tree//lib/syntax_tree/node.rb#2289 + def else_clause; end + + # [nil | Kw] the optional else keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#2286 + def else_keyword; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#2348 + def empty?; end + + # [nil | Ensure] the optional ensure clause + # + # source://syntax_tree//lib/syntax_tree/node.rb#2292 + def ensure_clause; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2396 + def format(q); end + + # [nil | Rescue] the optional rescue chain attached to the begin clause + # + # source://syntax_tree//lib/syntax_tree/node.rb#2283 + def rescue_clause; end + + # [Statements] the list of statements inside the begin clause + # + # source://syntax_tree//lib/syntax_tree/node.rb#2280 + def statements; end +end + +# Break represents using the +break+ keyword. +# +# break +# +# It can also optionally accept arguments, as in: +# +# break 1 +# +# source://syntax_tree//lib/syntax_tree/node.rb#2634 +class SyntaxTree::Break < ::SyntaxTree::Node + # @return [Break] a new instance of Break + # + # source://syntax_tree//lib/syntax_tree/node.rb#2641 + def initialize(arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2676 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2647 + def accept(visitor); end + + # [Args] the arguments being sent to the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#2636 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2651 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#2639 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2655 + def copy(arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2651 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2668 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2672 + def format(q); end +end + +# CHAR irepresents a single codepoint in the script encoding. +# +# ?a +# +# In the example above, the CHAR node represents the string literal "a". You +# can use control characters with this as well, as in ?\C-a. +# +# source://syntax_tree//lib/syntax_tree/node.rb#248 +class SyntaxTree::CHAR < ::SyntaxTree::Node + # @return [CHAR] a new instance of CHAR + # + # source://syntax_tree//lib/syntax_tree/node.rb#255 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#296 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#261 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#265 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#253 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#269 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#265 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#282 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#286 + def format(q); end + + # [String] the value of the character literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#250 + def value; end +end + +# CVar represents the use of a class variable. +# +# @@variable +# +# source://syntax_tree//lib/syntax_tree/node.rb#4046 +class SyntaxTree::CVar < ::SyntaxTree::Node + # @return [CVar] a new instance of CVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#4053 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4088 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4059 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4063 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4051 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4067 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4063 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4080 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4084 + def format(q); end + + # [String] the name of the class variable + # + # source://syntax_tree//lib/syntax_tree/node.rb#4048 + def value; end +end + +# This is probably the most complicated formatter in this file. It's +# responsible for formatting chains of method calls, with or without arguments +# or blocks. In general, we want to go from something like +# +# foo.bar.baz +# +# to +# +# foo +# .bar +# .baz +# +# Of course there are a lot of caveats to that, including trailing operators +# when necessary, where comments are places, how blocks are aligned, etc. +# +# source://syntax_tree//lib/syntax_tree/node.rb#2721 +class SyntaxTree::CallChainFormatter + # @return [CallChainFormatter] a new instance of CallChainFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#2725 + def initialize(node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2729 + def format(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2795 + def format_chain(q, children); end + + # [CallNode | MethodAddBlock] the top of the call chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#2723 + def node; end + + private + + # For certain nodes, we want to attach directly to the end and don't + # want to indent the first call. So we'll pop off the first children and + # format it separately here. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#2898 + def attach_directly?(node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2908 + def format_child(q, child, skip_comments: T.unsafe(nil), skip_operator: T.unsafe(nil), skip_attached: T.unsafe(nil)); end + + class << self + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#2879 + def chained?(node); end + end +end + +# CallNode represents a method call. +# +# receiver.message +# +# source://syntax_tree//lib/syntax_tree/node.rb#2946 +class SyntaxTree::CallNode < ::SyntaxTree::Node + # @return [CallNode] a new instance of CallNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#2962 + def initialize(receiver:, operator:, message:, arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3057 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2971 + def accept(visitor); end + + # [nil | ArgParen | Args] the arguments to the method call + # + # source://syntax_tree//lib/syntax_tree/node.rb#2957 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3103 + def arity; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2975 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#2960 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2984 + def copy(receiver: T.unsafe(nil), operator: T.unsafe(nil), message: T.unsafe(nil), arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2975 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3006 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3017 + def format(q); end + + # Print out the arguments to this call. If there are no arguments, then do + # nothing. + # + # source://syntax_tree//lib/syntax_tree/node.rb#3065 + def format_arguments(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3075 + def format_contents(q); end + + # [:call | Backtick | Const | Ident | Op] the message being sent + # + # source://syntax_tree//lib/syntax_tree/node.rb#2954 + def message; end + + # [nil | :"::" | Op | Period] the operator being used to send the message + # + # source://syntax_tree//lib/syntax_tree/node.rb#2951 + def operator; end + + # [nil | Node] the receiver of the method call + # + # source://syntax_tree//lib/syntax_tree/node.rb#2948 + def receiver; end +end + +# Wraps a call operator (which can be a string literal :: or an Op node or a +# Period node) and formats it when called. +# +# source://syntax_tree//lib/syntax_tree/node.rb#2683 +class SyntaxTree::CallOperatorFormatter + # @return [CallOperatorFormatter] a new instance of CallOperatorFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#2687 + def initialize(operator); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2691 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#2695 + def format(q); end + + # [:"::" | Op | Period] the operator being formatted + # + # source://syntax_tree//lib/syntax_tree/node.rb#2685 + def operator; end +end + +# Case represents the beginning of a case chain. +# +# case value +# when 1 +# "one" +# when 2 +# "two" +# else +# "number" +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#3119 +class SyntaxTree::Case < ::SyntaxTree::Node + # @return [Case] a new instance of Case + # + # source://syntax_tree//lib/syntax_tree/node.rb#3132 + def initialize(keyword:, value:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3190 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3140 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3144 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3130 + def comments; end + + # [In | When] the next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#3127 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3148 + def copy(keyword: T.unsafe(nil), value: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3144 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3163 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3173 + def format(q); end + + # [Kw] the keyword that opens this expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#3121 + def keyword; end + + # [nil | Node] optional value being switched on + # + # source://syntax_tree//lib/syntax_tree/node.rb#3124 + def value; end +end + +# Class represents defining a class using the +class+ keyword. +# +# class Container +# end +# +# Classes can have path names as their class name in case it's being nested +# under a namespace, as in: +# +# class Namespace::Container +# end +# +# Classes can also be defined as a top-level path, in the case that it's +# already in a namespace but you want to define it at the top-level instead, +# as in: +# +# module OtherNamespace +# class ::Namespace::Container +# end +# end +# +# All of these declarations can also have an optional superclass reference, as +# in: +# +# class Child < Parent +# end +# +# That superclass can actually be any Ruby expression, it doesn't necessarily +# need to be a constant, as in: +# +# class Child < method +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#3315 +class SyntaxTree::ClassDeclaration < ::SyntaxTree::Node + # @return [ClassDeclaration] a new instance of ClassDeclaration + # + # source://syntax_tree//lib/syntax_tree/node.rb#3329 + def initialize(constant:, superclass:, bodystmt:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3392 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3337 + def accept(visitor); end + + # [BodyStmt] the expressions to execute within the context of the class + # + # source://syntax_tree//lib/syntax_tree/node.rb#3324 + def bodystmt; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3341 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3327 + def comments; end + + # [ConstPathRef | ConstRef | TopConstRef] the name of the class being + # defined + # + # source://syntax_tree//lib/syntax_tree/node.rb#3318 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3345 + def copy(constant: T.unsafe(nil), superclass: T.unsafe(nil), bodystmt: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3341 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3360 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3370 + def format(q); end + + # [nil | Node] the optional superclass declaration + # + # source://syntax_tree//lib/syntax_tree/node.rb#3321 + def superclass; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#3399 + def format_declaration(q); end +end + +# Comma represents the use of the , operator. +# +# source://syntax_tree//lib/syntax_tree/node.rb#3413 +class SyntaxTree::Comma < ::SyntaxTree::Node + # @return [Comma] a new instance of Comma + # + # source://syntax_tree//lib/syntax_tree/node.rb#3417 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3440 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3422 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3426 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3430 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3426 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3436 + def deconstruct_keys(_keys); end + + # [String] the comma in the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#3415 + def value; end +end + +# Command represents a method call with arguments and no parentheses. Note +# that Command nodes only happen when there is no explicit receiver for this +# method. +# +# method argument +# +# source://syntax_tree//lib/syntax_tree/node.rb#3451 +class SyntaxTree::Command < ::SyntaxTree::Node + # @return [Command] a new instance of Command + # + # source://syntax_tree//lib/syntax_tree/node.rb#3464 + def initialize(message:, arguments:, block:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3514 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3472 + def accept(visitor); end + + # [Args] the arguments being sent with the message + # + # source://syntax_tree//lib/syntax_tree/node.rb#3456 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3519 + def arity; end + + # [nil | BlockNode] the optional block being passed to the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#3459 + def block; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3476 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3462 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3480 + def copy(message: T.unsafe(nil), arguments: T.unsafe(nil), block: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3476 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3495 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3505 + def format(q); end + + # [Const | Ident] the message being sent to the implicit receiver + # + # source://syntax_tree//lib/syntax_tree/node.rb#3453 + def message; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#3525 + def align(q, node, &block); end +end + +# CommandCall represents a method call on an object with arguments and no +# parentheses. +# +# object.method argument +# +# source://syntax_tree//lib/syntax_tree/node.rb#3563 +class SyntaxTree::CommandCall < ::SyntaxTree::Node + # @return [CommandCall] a new instance of CommandCall + # + # source://syntax_tree//lib/syntax_tree/node.rb#3582 + def initialize(receiver:, operator:, message:, arguments:, block:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3686 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3599 + def accept(visitor); end + + # [nil | Args | ArgParen] the arguments going along with the message + # + # source://syntax_tree//lib/syntax_tree/node.rb#3574 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3692 + def arity; end + + # [nil | BlockNode] the block associated with this method call + # + # source://syntax_tree//lib/syntax_tree/node.rb#3577 + def block; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3603 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3580 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3607 + def copy(receiver: T.unsafe(nil), operator: T.unsafe(nil), message: T.unsafe(nil), arguments: T.unsafe(nil), block: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3603 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3631 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3643 + def format(q); end + + # [:call | Const | Ident | Op] the message being send + # + # source://syntax_tree//lib/syntax_tree/node.rb#3571 + def message; end + + # [nil | :"::" | Op | Period] the operator used to send the message + # + # source://syntax_tree//lib/syntax_tree/node.rb#3568 + def operator; end + + # [nil | Node] the receiver of the message + # + # source://syntax_tree//lib/syntax_tree/node.rb#3565 + def receiver; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#3698 + def argument_alignment(q, doc); end +end + +# Comment represents a comment in the source. +# +# # comment +# +# source://syntax_tree//lib/syntax_tree/node.rb#3725 +class SyntaxTree::Comment < ::SyntaxTree::Node + # @return [Comment] a new instance of Comment + # + # source://syntax_tree//lib/syntax_tree/node.rb#3734 + def initialize(value:, inline:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3793 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3767 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3771 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3763 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3775 + def copy(value: T.unsafe(nil), inline: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3771 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3785 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3789 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#3759 + def ignore?; end + + # [boolean] whether or not there is code on the same line as this comment. + # If there is, then inline will be true. + # + # source://syntax_tree//lib/syntax_tree/node.rb#3731 + def inline; end + + # [boolean] whether or not there is code on the same line as this comment. + # If there is, then inline will be true. + # + # source://syntax_tree//lib/syntax_tree/node.rb#3731 + def inline?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3743 + def leading!; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#3747 + def leading?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3751 + def trailing!; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#3755 + def trailing?; end + + # [String] the contents of the comment + # + # source://syntax_tree//lib/syntax_tree/node.rb#3727 + def value; end +end + +# Formats an If or Unless node. +# +# source://syntax_tree//lib/syntax_tree/node.rb#6317 +class SyntaxTree::ConditionalFormatter + # @return [ConditionalFormatter] a new instance of ConditionalFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#6324 + def initialize(keyword, node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6329 + def format(q); end + + # [String] the keyword associated with this conditional + # + # source://syntax_tree//lib/syntax_tree/node.rb#6319 + def keyword; end + + # [If | Unless] the node that is being formatted + # + # source://syntax_tree//lib/syntax_tree/node.rb#6322 + def node; end + + private + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#6453 + def contains_conditional?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6388 + def format_break(q, force:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6380 + def format_flat(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6408 + def format_ternary(q); end +end + +# Const represents a literal value that _looks_ like a constant. This could +# actually be a reference to a constant: +# +# Constant +# +# It could also be something that looks like a constant in another context, as +# in a method call to a capitalized method: +# +# object.Constant +# +# or a symbol that starts with a capital letter: +# +# :Constant +# +# source://syntax_tree//lib/syntax_tree/node.rb#3812 +class SyntaxTree::Const < ::SyntaxTree::Node + # @return [Const] a new instance of Const + # + # source://syntax_tree//lib/syntax_tree/node.rb#3819 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3854 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3825 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3829 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3817 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3833 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3829 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3846 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3850 + def format(q); end + + # [String] the name of the constant + # + # source://syntax_tree//lib/syntax_tree/node.rb#3814 + def value; end +end + +# ConstPathField represents the child node of some kind of assignment. It +# represents when you're assigning to a constant that is being referenced as +# a child of another variable. +# +# object::Const = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#3865 +class SyntaxTree::ConstPathField < ::SyntaxTree::Node + # @return [ConstPathField] a new instance of ConstPathField + # + # source://syntax_tree//lib/syntax_tree/node.rb#3875 + def initialize(parent:, constant:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3919 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3882 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3886 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3873 + def comments; end + + # [Const] the constant itself + # + # source://syntax_tree//lib/syntax_tree/node.rb#3870 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3890 + def copy(parent: T.unsafe(nil), constant: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3886 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3904 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3913 + def format(q); end + + # [Node] the source of the constant + # + # source://syntax_tree//lib/syntax_tree/node.rb#3867 + def parent; end +end + +# ConstPathRef represents referencing a constant by a path. +# +# object::Const +# +# source://syntax_tree//lib/syntax_tree/node.rb#3929 +class SyntaxTree::ConstPathRef < ::SyntaxTree::Node + # @return [ConstPathRef] a new instance of ConstPathRef + # + # source://syntax_tree//lib/syntax_tree/node.rb#3939 + def initialize(parent:, constant:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3983 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3946 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3950 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3937 + def comments; end + + # [Const] the constant itself + # + # source://syntax_tree//lib/syntax_tree/node.rb#3934 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3954 + def copy(parent: T.unsafe(nil), constant: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3950 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3968 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3977 + def format(q); end + + # [Node] the source of the constant + # + # source://syntax_tree//lib/syntax_tree/node.rb#3931 + def parent; end +end + +# ConstRef represents the name of the constant being used in a class or module +# declaration. +# +# class Container +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#3995 +class SyntaxTree::ConstRef < ::SyntaxTree::Node + # @return [ConstRef] a new instance of ConstRef + # + # source://syntax_tree//lib/syntax_tree/node.rb#4002 + def initialize(constant:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4037 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4008 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4012 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4000 + def comments; end + + # [Const] the constant itself + # + # source://syntax_tree//lib/syntax_tree/node.rb#3997 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4016 + def copy(constant: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4012 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4029 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4033 + def format(q); end +end + +# If the predicate of a conditional or loop contains an assignment (in which +# case we can't know for certain that that assignment doesn't impact the +# statements inside the conditional) then we can't use the modifier form +# and we must use the block form. +# +# source://syntax_tree//lib/syntax_tree/node.rb#6232 +module SyntaxTree::ContainsAssignment + class << self + # source://syntax_tree//lib/syntax_tree/node.rb#6233 + def call(parent); end + end +end + +# The default indentation level for formatting. We allow changing this so +# that Syntax Tree can format arbitrary parts of a document. +# +# source://syntax_tree//lib/syntax_tree.rb#57 +SyntaxTree::DEFAULT_INDENTATION = T.let(T.unsafe(nil), Integer) + +# This is the default print width when formatting. It can be overridden in the +# CLI by passing the --print-width option or here in the API by passing the +# optional second argument to ::format. +# +# source://syntax_tree//lib/syntax_tree.rb#49 +SyntaxTree::DEFAULT_PRINT_WIDTH = T.let(T.unsafe(nil), Integer) + +# This is the default ruby version that we're going to target for formatting. +# It shouldn't really be changed except in very niche circumstances. +# +# source://syntax_tree//lib/syntax_tree.rb#53 +SyntaxTree::DEFAULT_RUBY_VERSION = T.let(T.unsafe(nil), SyntaxTree::Formatter::SemanticVersion) + +# This module provides shortcuts for creating AST nodes. +# +# source://syntax_tree//lib/syntax_tree/dsl.rb#5 +module SyntaxTree::DSL + # Create a new ARef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#40 + def ARef(collection, index); end + + # Create a new ARefField node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#45 + def ARefField(collection, index); end + + # Create a new AliasNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#35 + def AliasNode(left, right); end + + # Create a new ArgBlock node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#64 + def ArgBlock(value); end + + # Create a new ArgParen node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#54 + def ArgParen(arguments); end + + # Create a new ArgStar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#69 + def ArgStar(value); end + + # Create a new Args node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#59 + def Args(parts); end + + # Create a new ArgsForward node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#74 + def ArgsForward; end + + # Create a new ArrayLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#79 + def ArrayLiteral(lbracket, contents); end + + # Create a new AryPtn node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#88 + def AryPtn(constant, requireds, rest, posts); end + + # Create a new Assign node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#99 + def Assign(target, value); end + + # Create a new Assoc node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#104 + def Assoc(key, value); end + + # Create a new AssocSplat node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#109 + def AssocSplat(value); end + + # Create a new BEGINBlock node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#7 + def BEGINBlock(lbrace, statements); end + + # Create a new Backref node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#114 + def Backref(value); end + + # Create a new Backtick node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#119 + def Backtick(value); end + + # Create a new BareAssocHash node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#124 + def BareAssocHash(assocs); end + + # Create a new Begin node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#129 + def Begin(bodystmt); end + + # Create a new Binary node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#139 + def Binary(left, operator, right); end + + # Create a new BlockArg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#154 + def BlockArg(name); end + + # Create a new BlockNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#317 + def BlockNode(opening, block_var, bodystmt); end + + # Create a new BlockVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#149 + def BlockVar(params, locals); end + + # Create a new BodyStmt node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#159 + def BodyStmt(statements, rescue_clause, else_keyword, else_clause, ensure_clause); end + + # Create a new Break node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#177 + def Break(arguments); end + + # Create a new CHAR node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#16 + def CHAR(value); end + + # Create a new CVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#288 + def CVar(value); end + + # Create a new CallNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#182 + def CallNode(receiver, operator, message, arguments); end + + # Create a new Case node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#193 + def Case(keyword, value, consequent); end + + # Create a new ClassDeclaration node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#213 + def ClassDeclaration(constant, superclass, bodystmt, location = T.unsafe(nil)); end + + # Create a new Comma node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#228 + def Comma(value); end + + # Create a new Command node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#233 + def Command(message, arguments, block, location = T.unsafe(nil)); end + + # Create a new CommandCall node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#243 + def CommandCall(receiver, operator, message, arguments, block); end + + # Create a new Comment node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#255 + def Comment(value, inline, location = T.unsafe(nil)); end + + # Create a new Const node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#260 + def Const(value); end + + # Create a new ConstPathField node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#265 + def ConstPathField(parent, constant); end + + # Create a new ConstPathRef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#274 + def ConstPathRef(parent, constant); end + + # Create a new ConstRef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#283 + def ConstRef(constant); end + + # Create a new DefNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#293 + def DefNode(target, operator, name, params, bodystmt, location = T.unsafe(nil)); end + + # Create a new Defined node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#312 + def Defined(value); end + + # Create a new DynaSymbol node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#337 + def DynaSymbol(parts, quote); end + + # Create a new ENDBlock node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#21 + def ENDBlock(lbrace, statements); end + + # Create a new Else node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#342 + def Else(keyword, statements); end + + # Create a new Elsif node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#351 + def Elsif(predicate, statements, consequent); end + + # Create a new EmbDoc node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#361 + def EmbDoc(value); end + + # Create a new EmbExprBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#366 + def EmbExprBeg(value); end + + # Create a new EmbExprEnd node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#371 + def EmbExprEnd(value); end + + # Create a new EmbVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#376 + def EmbVar(value); end + + # Create a new EndContent node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#30 + def EndContent(value); end + + # Create a new Ensure node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#381 + def Ensure(keyword, statements); end + + # Create a new ExcessedComma node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#390 + def ExcessedComma(value); end + + # Create a new Field node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#395 + def Field(parent, operator, name); end + + # Create a new FloatLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#405 + def FloatLiteral(value); end + + # Create a new FndPtn node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#410 + def FndPtn(constant, left, values, right); end + + # Create a new For node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#421 + def For(index, collection, statements); end + + # Create a new GVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#431 + def GVar(value); end + + # Create a new HashLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#436 + def HashLiteral(lbrace, assocs); end + + # Create a new Heredoc node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#445 + def Heredoc(beginning, ending, dedent, parts); end + + # Create a new HeredocBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#456 + def HeredocBeg(value); end + + # Create a new HeredocEnd node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#461 + def HeredocEnd(value); end + + # Create a new HshPtn node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#466 + def HshPtn(constant, keywords, keyword_rest); end + + # Create a new IVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#521 + def IVar(value); end + + # Create a new Ident node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#476 + def Ident(value); end + + # Create a new IfNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#481 + def IfNode(predicate, statements, consequent); end + + # Create a new IfOp node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#491 + def IfOp(predicate, truthy, falsy); end + + # Create a new Imaginary node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#501 + def Imaginary(value); end + + # Create a new In node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#506 + def In(pattern, statements, consequent); end + + # Create a new Int node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#516 + def Int(value); end + + # Create a new Kw node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#526 + def Kw(value); end + + # Create a new KwRestParam node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#531 + def KwRestParam(name); end + + # Create a new LBrace node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#560 + def LBrace(value); end + + # Create a new LBracket node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#565 + def LBracket(value); end + + # Create a new LParen node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#570 + def LParen(value); end + + # Create a new Label node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#536 + def Label(value); end + + # Create a new LabelEnd node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#541 + def LabelEnd(value); end + + # Create a new Lambda node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#546 + def Lambda(params, statements); end + + # Create a new LambdaVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#555 + def LambdaVar(params, locals); end + + # Create a new MAssign node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#575 + def MAssign(target, value); end + + # Create a new MLHS node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#585 + def MLHS(parts, comma); end + + # Create a new MLHSParen node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#590 + def MLHSParen(contents, comma); end + + # Create a new MRHS node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#608 + def MRHS(parts); end + + # Create a new MethodAddBlock node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#580 + def MethodAddBlock(call, block, location = T.unsafe(nil)); end + + # Create a new ModuleDeclaration node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#599 + def ModuleDeclaration(constant, bodystmt); end + + # Create a new Next node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#613 + def Next(arguments); end + + # Create a new Not node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#892 + def Not(statement, parentheses); end + + # Create a new Op node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#618 + def Op(value); end + + # Create a new OpAssign node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#623 + def OpAssign(target, operator, value); end + + # Create a new Params node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#633 + def Params(requireds, optionals, rest, posts, keywords, keyword_rest, block); end + + # Create a new Paren node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#647 + def Paren(lparen, contents); end + + # Create a new Period node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#652 + def Period(value); end + + # Create a new PinnedBegin node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#134 + def PinnedBegin(statement); end + + # Create a new PinnedVarRef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#944 + def PinnedVarRef(value); end + + # Create a new Program node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#657 + def Program(statements); end + + # Create a new QSymbols node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#662 + def QSymbols(beginning, elements); end + + # Create a new QSymbolsBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#671 + def QSymbolsBeg(value); end + + # Create a new QWords node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#676 + def QWords(beginning, elements); end + + # Create a new QWordsBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#685 + def QWordsBeg(value); end + + # Create a new RAssign node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#203 + def RAssign(value, operator, pattern); end + + # Create a new RBrace node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#695 + def RBrace(value); end + + # Create a new RBracket node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#700 + def RBracket(value); end + + # Create a new RParen node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#783 + def RParen(value); end + + # Create a new RangeNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#327 + def RangeNode(left, operator, right); end + + # Create a new RationalLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#690 + def RationalLiteral(value); end + + # Create a new Redo node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#705 + def Redo; end + + # Create a new RegexpBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#719 + def RegexpBeg(value); end + + # Create a new RegexpContent node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#710 + def RegexpContent(beginning, parts); end + + # Create a new RegexpEnd node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#724 + def RegexpEnd(value); end + + # Create a new RegexpLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#729 + def RegexpLiteral(beginning, ending, parts); end + + # Create a new Rescue node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#748 + def Rescue(keyword, exception, statements, consequent); end + + # Create a new RescueEx node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#739 + def RescueEx(exceptions, variable); end + + # Create a new RescueMod node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#759 + def RescueMod(statement, value); end + + # Create a new RestParam node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#768 + def RestParam(name); end + + # Create a new Retry node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#773 + def Retry; end + + # Create a new ReturnNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#778 + def ReturnNode(arguments); end + + # Create a new SClass node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#788 + def SClass(target, bodystmt); end + + # Create a new Statements node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#793 + def Statements(body); end + + # Create a new StringConcat node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#803 + def StringConcat(left, right); end + + # Create a new StringContent node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#798 + def StringContent(parts); end + + # Create a new StringDVar node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#808 + def StringDVar(variable); end + + # Create a new StringEmbExpr node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#813 + def StringEmbExpr(statements); end + + # Create a new StringLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#818 + def StringLiteral(parts, quote); end + + # Create a new Super node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#823 + def Super(arguments); end + + # Create a new SymBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#828 + def SymBeg(value); end + + # Create a new SymbolContent node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#833 + def SymbolContent(value); end + + # Create a new SymbolLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#838 + def SymbolLiteral(value); end + + # Create a new Symbols node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#843 + def Symbols(beginning, elements); end + + # Create a new SymbolsBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#852 + def SymbolsBeg(value); end + + # Create a new TLamBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#862 + def TLamBeg(value); end + + # Create a new TLambda node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#857 + def TLambda(value); end + + # Create a new TStringBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#877 + def TStringBeg(value); end + + # Create a new TStringContent node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#882 + def TStringContent(value); end + + # Create a new TStringEnd node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#887 + def TStringEnd(value); end + + # Create a new TopConstField node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#867 + def TopConstField(constant); end + + # Create a new TopConstRef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#872 + def TopConstRef(constant); end + + # Create a new Unary node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#901 + def Unary(operator, statement); end + + # Create a new Undef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#910 + def Undef(symbols); end + + # Create a new UnlessNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#915 + def UnlessNode(predicate, statements, consequent); end + + # Create a new UntilNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#925 + def UntilNode(predicate, statements); end + + # Create a new VCall node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#949 + def VCall(value); end + + # Create a new VarField node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#934 + def VarField(value); end + + # Create a new VarRef node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#939 + def VarRef(value); end + + # Create a new VoidStmt node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#954 + def VoidStmt; end + + # Create a new When node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#959 + def When(arguments, statements, consequent); end + + # Create a new WhileNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#969 + def WhileNode(predicate, statements); end + + # Create a new Word node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#978 + def Word(parts); end + + # Create a new Words node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#983 + def Words(beginning, elements); end + + # Create a new WordsBeg node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#992 + def WordsBeg(value); end + + # Create a new XString node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#997 + def XString(parts); end + + # Create a new XStringLiteral node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#1002 + def XStringLiteral(parts); end + + # Create a new YieldNode node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#1007 + def YieldNode(arguments); end + + # Create a new ZSuper node. + # + # source://syntax_tree//lib/syntax_tree/dsl.rb#1012 + def ZSuper; end +end + +# Provides the ability to index source files into a database, then query for +# the nodes. +# +# source://syntax_tree//lib/syntax_tree/database.rb#6 +module SyntaxTree::Database; end + +# Query for the attributes of a node, optionally also filtering by type. +# +# source://syntax_tree//lib/syntax_tree/database.rb#99 +class SyntaxTree::Database::AttrQuery + # @return [AttrQuery] a new instance of AttrQuery + # + # source://syntax_tree//lib/syntax_tree/database.rb#102 + def initialize(type, attrs); end + + # Returns the value of attribute attrs. + # + # source://syntax_tree//lib/syntax_tree/database.rb#100 + def attrs; end + + # source://syntax_tree//lib/syntax_tree/database.rb#107 + def each(database, &block); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/database.rb#100 + def type; end +end + +# source://syntax_tree//lib/syntax_tree/database.rb#276 +class SyntaxTree::Database::Connection + # @return [Connection] a new instance of Connection + # + # source://syntax_tree//lib/syntax_tree/database.rb#279 + def initialize(raw_connection); end + + # source://syntax_tree//lib/syntax_tree/database.rb#283 + def execute(query, binds = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/database.rb#287 + def index_file(filepath); end + + # source://syntax_tree//lib/syntax_tree/database.rb#292 + def last_insert_row_id; end + + # source://syntax_tree//lib/syntax_tree/database.rb#296 + def prepare; end + + # Returns the value of attribute raw_connection. + # + # source://syntax_tree//lib/syntax_tree/database.rb#277 + def raw_connection; end + + # source://syntax_tree//lib/syntax_tree/database.rb#326 + def search(query); end +end + +# source://syntax_tree//lib/syntax_tree/database.rb#7 +class SyntaxTree::Database::IndexingVisitor < ::SyntaxTree::FieldVisitor + # @return [IndexingVisitor] a new instance of IndexingVisitor + # + # source://syntax_tree//lib/syntax_tree/database.rb#10 + def initialize(database, filepath); end + + # Returns the value of attribute database. + # + # source://syntax_tree//lib/syntax_tree/database.rb#8 + def database; end + + # Returns the value of attribute filepath. + # + # source://syntax_tree//lib/syntax_tree/database.rb#8 + def filepath; end + + # Returns the value of attribute node_id. + # + # source://syntax_tree//lib/syntax_tree/database.rb#8 + def node_id; end + + private + + # source://syntax_tree//lib/syntax_tree/database.rb#18 + def comments(node); end + + # source://syntax_tree//lib/syntax_tree/database.rb#21 + def field(name, value); end + + # source://syntax_tree//lib/syntax_tree/database.rb#31 + def list(name, values); end + + # source://syntax_tree//lib/syntax_tree/database.rb#41 + def node(node, _name); end + + # source://syntax_tree//lib/syntax_tree/database.rb#67 + def pairs(name, values); end + + # source://syntax_tree//lib/syntax_tree/database.rb#64 + def text(name, value); end +end + +# Query for the results of either query. +# +# source://syntax_tree//lib/syntax_tree/database.rb#136 +class SyntaxTree::Database::OrQuery + # @return [OrQuery] a new instance of OrQuery + # + # source://syntax_tree//lib/syntax_tree/database.rb#139 + def initialize(left, right); end + + # source://syntax_tree//lib/syntax_tree/database.rb#144 + def each(database, &block); end + + # Returns the value of attribute left. + # + # source://syntax_tree//lib/syntax_tree/database.rb#137 + def left; end + + # Returns the value of attribute right. + # + # source://syntax_tree//lib/syntax_tree/database.rb#137 + def right; end +end + +# A pattern matching expression that will be compiled into a query. +# +# source://syntax_tree//lib/syntax_tree/database.rb#166 +class SyntaxTree::Database::Pattern + # @return [Pattern] a new instance of Pattern + # + # source://syntax_tree//lib/syntax_tree/database.rb#172 + def initialize(query); end + + # source://syntax_tree//lib/syntax_tree/database.rb#176 + def compile; end + + # Returns the value of attribute query. + # + # source://syntax_tree//lib/syntax_tree/database.rb#170 + def query; end + + private + + # Shortcut for combining two queries into one that returns the results of + # if either query matches. + # + # source://syntax_tree//lib/syntax_tree/database.rb#195 + def combine_or(left, right); end + + # in foo | bar + # + # source://syntax_tree//lib/syntax_tree/database.rb#200 + def compile_binary(node); end + + # in Ident + # + # source://syntax_tree//lib/syntax_tree/database.rb#207 + def compile_const(node); end + + # in SyntaxTree::Ident + # + # source://syntax_tree//lib/syntax_tree/database.rb#219 + def compile_const_path_ref(node); end + + # @raise [CompilationError] + # + # source://syntax_tree//lib/syntax_tree/database.rb#189 + def compile_error(node); end + + # in Ident[value: String] + # + # source://syntax_tree//lib/syntax_tree/database.rb#234 + def compile_hshptn(node); end + + # source://syntax_tree//lib/syntax_tree/database.rb#258 + def compile_node(node); end + + # in Foo + # + # source://syntax_tree//lib/syntax_tree/database.rb#248 + def compile_var_ref(node); end +end + +# source://syntax_tree//lib/syntax_tree/database.rb#167 +class SyntaxTree::Database::Pattern::CompilationError < ::StandardError; end + +# A lazy query result. +# +# source://syntax_tree//lib/syntax_tree/database.rb#151 +class SyntaxTree::Database::QueryResult + # @return [QueryResult] a new instance of QueryResult + # + # source://syntax_tree//lib/syntax_tree/database.rb#154 + def initialize(database, query); end + + # Returns the value of attribute database. + # + # source://syntax_tree//lib/syntax_tree/database.rb#152 + def database; end + + # source://syntax_tree//lib/syntax_tree/database.rb#159 + def each(&block); end + + # Returns the value of attribute query. + # + # source://syntax_tree//lib/syntax_tree/database.rb#152 + def query; end +end + +# Query for a specific type of node. +# +# source://syntax_tree//lib/syntax_tree/database.rb#85 +class SyntaxTree::Database::TypeQuery + # @return [TypeQuery] a new instance of TypeQuery + # + # source://syntax_tree//lib/syntax_tree/database.rb#88 + def initialize(type); end + + # source://syntax_tree//lib/syntax_tree/database.rb#92 + def each(database, &block); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/database.rb#86 + def type; end +end + +# Def represents defining a regular method on the current self object. +# +# def method(param) result end +# def object.method(param) result end +# +# source://syntax_tree//lib/syntax_tree/node.rb#4098 +class SyntaxTree::DefNode < ::SyntaxTree::Node + # @return [DefNode] a new instance of DefNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#4117 + def initialize(target:, operator:, name:, params:, bodystmt:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4217 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4127 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4230 + def arity; end + + # [BodyStmt | Node] the expressions to be executed by the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#4112 + def bodystmt; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4131 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4115 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4135 + def copy(target: T.unsafe(nil), operator: T.unsafe(nil), name: T.unsafe(nil), params: T.unsafe(nil), bodystmt: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4131 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4159 + def deconstruct_keys(_keys); end + + # Returns true if the method was found in the source in the "endless" form, + # i.e. where the method body is defined using the `=` operator after the + # method name and parameters. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4226 + def endless?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4171 + def format(q); end + + # [Backtick | Const | Ident | Kw | Op] the name of the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#4106 + def name; end + + # [nil | Op | Period] the operator being used to declare the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#4103 + def operator; end + + # [nil | Params | Paren] the parameter declaration for the method + # + # source://syntax_tree//lib/syntax_tree/node.rb#4109 + def params; end + + # [nil | Node] the target where the method is being defined + # + # source://syntax_tree//lib/syntax_tree/node.rb#4100 + def target; end +end + +# Defined represents the use of the +defined?+ operator. It can be used with +# and without parentheses. +# +# defined?(variable) +# +# source://syntax_tree//lib/syntax_tree/node.rb#4249 +class SyntaxTree::Defined < ::SyntaxTree::Node + # @return [Defined] a new instance of Defined + # + # source://syntax_tree//lib/syntax_tree/node.rb#4256 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4299 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4262 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4266 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4254 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4270 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4266 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4283 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4287 + def format(q); end + + # [Node] the value being sent to the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#4251 + def value; end +end + +# DynaSymbol represents a symbol literal that uses quotes to dynamically +# define its value. +# +# :"#{variable}" +# +# They can also be used as a special kind of dynamic hash key, as in: +# +# { "#{key}": value } +# +# source://syntax_tree//lib/syntax_tree/node.rb#4663 +class SyntaxTree::DynaSymbol < ::SyntaxTree::Node + # @return [DynaSymbol] a new instance of DynaSymbol + # + # source://syntax_tree//lib/syntax_tree/node.rb#4674 + def initialize(parts:, quote:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4736 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4681 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4685 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4672 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4689 + def copy(parts: T.unsafe(nil), quote: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4685 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4703 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4707 + def format(q); end + + # [Array[ StringDVar | StringEmbExpr | TStringContent ]] the parts of the + # dynamic symbol + # + # source://syntax_tree//lib/syntax_tree/node.rb#4666 + def parts; end + + # [nil | String] the quote used to delimit the dynamic symbol + # + # source://syntax_tree//lib/syntax_tree/node.rb#4669 + def quote; end + + private + + # Here we determine the quotes to use for a dynamic symbol. It's bound by a + # lot of rules because it could be in many different contexts with many + # different kinds of escaping. + # + # source://syntax_tree//lib/syntax_tree/node.rb#4746 + def quotes(q); end +end + +# ENDBlock represents the use of the +END+ keyword, which hooks into the +# lifecycle of the interpreter. Whatever is inside the block will get executed +# when the program ends. +# +# END { +# } +# +# Interestingly, the END keyword doesn't allow the do and end keywords for the +# block. Only braces are permitted. +# +# source://syntax_tree//lib/syntax_tree/node.rb#310 +class SyntaxTree::ENDBlock < ::SyntaxTree::Node + # @return [ENDBlock] a new instance of ENDBlock + # + # source://syntax_tree//lib/syntax_tree/node.rb#320 + def initialize(lbrace:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#371 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#327 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#331 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#318 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#335 + def copy(lbrace: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#331 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#349 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#358 + def format(q); end + + # [LBrace] the left brace that is seen after the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#312 + def lbrace; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#315 + def statements; end +end + +# Else represents the end of an +if+, +unless+, or +case+ chain. +# +# if variable +# else +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#4792 +class SyntaxTree::Else < ::SyntaxTree::Node + # @return [Else] a new instance of Else + # + # source://syntax_tree//lib/syntax_tree/node.rb#4802 + def initialize(keyword:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4853 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4809 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4813 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4800 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4817 + def copy(keyword: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4813 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4831 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4840 + def format(q); end + + # [Kw] the else keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#4794 + def keyword; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#4797 + def statements; end +end + +# Elsif represents another clause in an +if+ or +unless+ chain. +# +# if variable +# elsif other_variable +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#4865 +class SyntaxTree::Elsif < ::SyntaxTree::Node + # @return [Elsif] a new instance of Elsif + # + # source://syntax_tree//lib/syntax_tree/node.rb#4878 + def initialize(predicate:, statements:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4942 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4886 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4890 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4876 + def comments; end + + # [nil | Elsif | Else] the next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#4873 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4894 + def copy(predicate: T.unsafe(nil), statements: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4890 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4909 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4919 + def format(q); end + + # [Node] the expression to be checked + # + # source://syntax_tree//lib/syntax_tree/node.rb#4867 + def predicate; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#4870 + def statements; end +end + +# EmbDoc represents a multi-line comment. +# +# =begin +# first line +# second line +# =end +# +# source://syntax_tree//lib/syntax_tree/node.rb#4955 +class SyntaxTree::EmbDoc < ::SyntaxTree::Node + # @return [EmbDoc] a new instance of EmbDoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#4959 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5027 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4995 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4999 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4991 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5003 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4999 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5012 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5016 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4987 + def ignore?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4983 + def inline?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4967 + def leading!; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4971 + def leading?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4975 + def trailing!; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4979 + def trailing?; end + + # [String] the contents of the comment + # + # source://syntax_tree//lib/syntax_tree/node.rb#4957 + def value; end +end + +# EmbExprBeg represents the beginning token for using interpolation inside of +# a parent node that accepts string content (like a string or regular +# expression). +# +# "Hello, #{person}!" +# +# source://syntax_tree//lib/syntax_tree/node.rb#5038 +class SyntaxTree::EmbExprBeg < ::SyntaxTree::Node + # @return [EmbExprBeg] a new instance of EmbExprBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#5042 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5068 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5047 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5051 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5055 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5051 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5064 + def deconstruct_keys(_keys); end + + # [String] the #{ used in the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#5040 + def value; end +end + +# EmbExprEnd represents the ending token for using interpolation inside of a +# parent node that accepts string content (like a string or regular +# expression). +# +# "Hello, #{person}!" +# +# source://syntax_tree//lib/syntax_tree/node.rb#5079 +class SyntaxTree::EmbExprEnd < ::SyntaxTree::Node + # @return [EmbExprEnd] a new instance of EmbExprEnd + # + # source://syntax_tree//lib/syntax_tree/node.rb#5083 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5109 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5088 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5092 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5096 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5092 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5105 + def deconstruct_keys(_keys); end + + # [String] the } used in the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#5081 + def value; end +end + +# EmbVar represents the use of shorthand interpolation for an instance, class, +# or global variable into a parent node that accepts string content (like a +# string or regular expression). +# +# "#@variable" +# +# In the example above, an EmbVar node represents the # because it forces +# +# source://syntax_tree//lib/syntax_tree/node.rb#5122 +class SyntaxTree::EmbVar < ::SyntaxTree::Node + # @return [EmbVar] a new instance of EmbVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#5126 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5152 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5131 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5135 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5139 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5135 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5148 + def deconstruct_keys(_keys); end + + # [String] the # used in the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#5124 + def value; end +end + +# EndContent represents the use of __END__ syntax, which allows individual +# scripts to keep content after the main ruby code that can be read through +# the DATA constant. +# +# puts DATA.read +# +# __END__ +# some other content that is not executed by the program +# +# source://syntax_tree//lib/syntax_tree/node.rb#386 +class SyntaxTree::EndContent < ::SyntaxTree::Node + # @return [EndContent] a new instance of EndContent + # + # source://syntax_tree//lib/syntax_tree/node.rb#393 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#442 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#399 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#403 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#391 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#407 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#403 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#420 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#424 + def format(q); end + + # [String] the content after the script + # + # source://syntax_tree//lib/syntax_tree/node.rb#388 + def value; end +end + +# Ensure represents the use of the +ensure+ keyword and its subsequent +# statements. +# +# begin +# ensure +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#5164 +class SyntaxTree::Ensure < ::SyntaxTree::Node + # @return [Ensure] a new instance of Ensure + # + # source://syntax_tree//lib/syntax_tree/node.rb#5174 + def initialize(keyword:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5223 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5181 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5185 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5172 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5189 + def copy(keyword: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5185 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5203 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5212 + def format(q); end + + # [Kw] the ensure keyword that began this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5166 + def keyword; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#5169 + def statements; end +end + +# ExcessedComma represents a trailing comma in a list of block parameters. It +# changes the block parameters such that they will destructure. +# +# [[1, 2, 3], [2, 3, 4]].each do |first, second,| +# end +# +# In the above example, an ExcessedComma node would appear in the third +# position of the Params node that is used to declare that block. The third +# position typically represents a rest-type parameter, but in this case is +# used to indicate that a trailing comma was used. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5239 +class SyntaxTree::ExcessedComma < ::SyntaxTree::Node + # @return [ExcessedComma] a new instance of ExcessedComma + # + # source://syntax_tree//lib/syntax_tree/node.rb#5246 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5281 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5252 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5256 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5244 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5260 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5256 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5273 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5277 + def format(q); end + + # [String] the comma + # + # source://syntax_tree//lib/syntax_tree/node.rb#5241 + def value; end +end + +# Field is always the child of an assignment. It represents assigning to a +# “field” on an object. +# +# object.variable = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#5291 +class SyntaxTree::Field < ::SyntaxTree::Node + # @return [Field] a new instance of Field + # + # source://syntax_tree//lib/syntax_tree/node.rb#5304 + def initialize(parent:, operator:, name:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5354 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5312 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5316 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5302 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5321 + def copy(parent: T.unsafe(nil), operator: T.unsafe(nil), name: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5316 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5336 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5346 + def format(q); end + + # [Const | Ident] the name of the field being assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#5299 + def name; end + + # [:"::" | Op | Period] the operator being used for the assignment + # + # source://syntax_tree//lib/syntax_tree/node.rb#5296 + def operator; end + + # [Node] the parent object that owns the field being assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#5293 + def parent; end +end + +# This is the parent class of a lot of built-in visitors for Syntax Tree. It +# reflects visiting each of the fields on every node in turn. It itself does +# not do anything with these fields, it leaves that behavior up to the +# subclass to implement. +# +# In order to properly use this class, you will need to subclass it and +# implement #comments, #field, #list, #node, #pairs, and #text. Those are +# documented here. +# +# == comments(node) +# +# This accepts the node that is being visited and does something depending on +# the comments attached to the node. +# +# == field(name, value) +# +# This accepts the name of the field being visited as a string (like "value") +# and the actual value of that field. The value can be a subclass of Node or +# any other type that can be held within the tree. +# +# == list(name, values) +# +# This accepts the name of the field being visited as well as a list of +# values. This is used, for example, when visiting something like the body of +# a Statements node. +# +# == node(name, node) +# +# This is the parent serialization method for each node. It is called with the +# node itself, as well as the type of the node as a string. The type is an +# internally used value that usually resembles the name of the ripper event +# that generated the node. The method should yield to the given block which +# then calls through to visit each of the fields on the node. +# +# == text(name, value) +# +# This accepts the name of the field being visited as well as a string value +# representing the value of the field. +# +# == pairs(name, values) +# +# This accepts the name of the field being visited as well as a list of pairs +# that represent the value of the field. It is used only in a couple of +# circumstances, like when visiting the list of optional parameters defined on +# a method. +# +# source://syntax_tree//lib/syntax_tree/field_visitor.rb#50 +class SyntaxTree::FieldVisitor < ::SyntaxTree::BasicVisitor + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#163 + def visit_BEGIN(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#245 + def visit_CHAR(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#342 + def visit_END(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#1018 + def visit___end__(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#68 + def visit_alias(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#52 + def visit_aref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#60 + def visit_aref_field(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#76 + def visit_arg_block(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#83 + def visit_arg_paren(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#90 + def visit_arg_star(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#97 + def visit_args(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#104 + def visit_args_forward(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#108 + def visit_array(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#115 + def visit_aryptn(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#125 + def visit_assign(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#133 + def visit_assoc(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#141 + def visit_assoc_splat(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#148 + def visit_backref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#152 + def visit_backtick(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#156 + def visit_bare_assoc_hash(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#170 + def visit_begin(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#177 + def visit_binary(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#186 + def visit_block(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#201 + def visit_block_var(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#194 + def visit_blockarg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#209 + def visit_bodystmt(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#219 + def visit_break(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#226 + def visit_call(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#236 + def visit_case(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#249 + def visit_class(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#258 + def visit_comma(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#262 + def visit_command(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#271 + def visit_command_call(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#282 + def visit_comment(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#286 + def visit_const(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#290 + def visit_const_path_field(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#298 + def visit_const_path_ref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#306 + def visit_const_ref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#313 + def visit_cvar(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#317 + def visit_def(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#328 + def visit_defined(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#335 + def visit_dyna_symbol(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#349 + def visit_else(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#356 + def visit_elsif(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#365 + def visit_embdoc(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#369 + def visit_embexpr_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#373 + def visit_embexpr_end(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#377 + def visit_embvar(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#381 + def visit_ensure(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#388 + def visit_excessed_comma(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#392 + def visit_field(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#401 + def visit_float(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#405 + def visit_fndptn(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#415 + def visit_for(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#424 + def visit_gvar(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#428 + def visit_hash(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#435 + def visit_heredoc(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#442 + def visit_heredoc_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#446 + def visit_heredoc_end(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#450 + def visit_hshptn(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#459 + def visit_ident(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#463 + def visit_if(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#472 + def visit_if_op(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#481 + def visit_imaginary(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#485 + def visit_in(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#494 + def visit_int(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#498 + def visit_ivar(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#502 + def visit_kw(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#506 + def visit_kwrest_param(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#513 + def visit_label(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#517 + def visit_label_end(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#521 + def visit_lambda(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#529 + def visit_lambda_var(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#537 + def visit_lbrace(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#541 + def visit_lbracket(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#545 + def visit_lparen(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#549 + def visit_massign(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#557 + def visit_method_add_block(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#565 + def visit_mlhs(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#572 + def visit_mlhs_paren(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#579 + def visit_module(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#587 + def visit_mrhs(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#594 + def visit_next(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#601 + def visit_not(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#608 + def visit_op(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#612 + def visit_opassign(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#621 + def visit_params(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#634 + def visit_paren(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#641 + def visit_period(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#645 + def visit_pinned_begin(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#652 + def visit_pinned_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#659 + def visit_program(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#666 + def visit_qsymbols(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#673 + def visit_qsymbols_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#677 + def visit_qwords(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#684 + def visit_qwords_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#688 + def visit_range(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#697 + def visit_rassign(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#706 + def visit_rational(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#710 + def visit_rbrace(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#714 + def visit_rbracket(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#718 + def visit_redo(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#722 + def visit_regexp_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#726 + def visit_regexp_content(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#730 + def visit_regexp_end(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#734 + def visit_regexp_literal(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#742 + def visit_rescue(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#751 + def visit_rescue_ex(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#759 + def visit_rescue_mod(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#767 + def visit_rest_param(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#774 + def visit_retry(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#778 + def visit_return(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#785 + def visit_rparen(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#789 + def visit_sclass(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#797 + def visit_statements(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#804 + def visit_string_concat(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#812 + def visit_string_content(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#816 + def visit_string_dvar(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#823 + def visit_string_embexpr(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#830 + def visit_string_literal(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#837 + def visit_super(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#844 + def visit_symbeg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#848 + def visit_symbol_content(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#852 + def visit_symbol_literal(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#859 + def visit_symbols(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#866 + def visit_symbols_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#870 + def visit_tlambda(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#874 + def visit_tlambeg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#878 + def visit_top_const_field(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#885 + def visit_top_const_ref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#892 + def visit_tstring_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#896 + def visit_tstring_content(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#900 + def visit_tstring_end(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#904 + def visit_unary(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#912 + def visit_undef(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#919 + def visit_unless(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#928 + def visit_until(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#936 + def visit_var_field(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#943 + def visit_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#950 + def visit_vcall(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#957 + def visit_void_stmt(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#961 + def visit_when(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#970 + def visit_while(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#978 + def visit_word(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#985 + def visit_words(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#992 + def visit_words_beg(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#996 + def visit_xstring(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#1000 + def visit_xstring_literal(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#1007 + def visit_yield(node); end + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#1014 + def visit_zsuper(node); end + + private + + # source://syntax_tree//lib/syntax_tree/field_visitor.rb#1025 + def visit_token(node, type); end +end + +# FloatLiteral represents a floating point number literal. +# +# 1.0 +# +# source://syntax_tree//lib/syntax_tree/node.rb#5364 +class SyntaxTree::FloatLiteral < ::SyntaxTree::Node + # @return [FloatLiteral] a new instance of FloatLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#5371 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5406 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5377 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5381 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5369 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5385 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5381 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5398 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5402 + def format(q); end + + # [String] the value of the floating point number literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#5366 + def value; end +end + +# Formats either a Break, Next, or Return node. +# +# source://syntax_tree//lib/syntax_tree/node.rb#2438 +class SyntaxTree::FlowControlFormatter + # @return [FlowControlFormatter] a new instance of FlowControlFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#2445 + def initialize(keyword, node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2450 + def format(q); end + + # [String] the keyword to print + # + # source://syntax_tree//lib/syntax_tree/node.rb#2440 + def keyword; end + + # [Break | Next | Return] the node being formatted + # + # source://syntax_tree//lib/syntax_tree/node.rb#2443 + def node; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#2599 + def format_arguments(q, opening, closing); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2589 + def format_array_contents(q, array); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#2609 + def skip_parens?(node); end +end + +# FndPtn represents matching against a pattern where you find a pattern in an +# array using the Ruby 3.0+ pattern matching syntax. +# +# case value +# in [*, 7, *] +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#5418 +class SyntaxTree::FndPtn < ::SyntaxTree::Node + # @return [FndPtn] a new instance of FndPtn + # + # source://syntax_tree//lib/syntax_tree/node.rb#5435 + def initialize(constant:, left:, values:, right:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5504 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5444 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5448 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5433 + def comments; end + + # [nil | VarRef | ConstPathRef] the optional constant wrapper + # + # source://syntax_tree//lib/syntax_tree/node.rb#5420 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5452 + def copy(constant: T.unsafe(nil), left: T.unsafe(nil), values: T.unsafe(nil), right: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5448 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5468 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5479 + def format(q); end + + # [VarField] the splat on the left-hand side + # + # source://syntax_tree//lib/syntax_tree/node.rb#5423 + def left; end + + # [VarField] the splat on the right-hand side + # + # source://syntax_tree//lib/syntax_tree/node.rb#5430 + def right; end + + # [Array[ Node ]] the list of positional expressions in the pattern that + # are being matched + # + # source://syntax_tree//lib/syntax_tree/node.rb#5427 + def values; end +end + +# For represents using a +for+ loop. +# +# for value in list do +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#5516 +class SyntaxTree::For < ::SyntaxTree::Node + # @return [For] a new instance of For + # + # source://syntax_tree//lib/syntax_tree/node.rb#5530 + def initialize(index:, collection:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5590 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5538 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5542 + def child_nodes; end + + # [Node] the object being enumerated in the loop + # + # source://syntax_tree//lib/syntax_tree/node.rb#5522 + def collection; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5528 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5546 + def copy(index: T.unsafe(nil), collection: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5542 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5561 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5571 + def format(q); end + + # [MLHS | VarField] the variable declaration being used to + # pull values out of the object being enumerated + # + # source://syntax_tree//lib/syntax_tree/node.rb#5519 + def index; end + + # [Statements] the statements to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#5525 + def statements; end +end + +# A slightly enhanced PP that knows how to format recursively including +# comments. +# +# source://syntax_tree//lib/syntax_tree/formatter.rb#6 +class SyntaxTree::Formatter < ::PrettierPrint + # @return [Formatter] a new instance of Formatter + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#95 + def initialize(source, *args, options: T.unsafe(nil)); end + + # These options are overridden in plugins to we need to make sure they are + # available here. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#87 + def disable_auto_ternary; end + + # These options are overridden in plugins to we need to make sure they are + # available here. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#87 + def disable_auto_ternary?; end + + # source://syntax_tree//lib/syntax_tree/formatter.rb#115 + def format(node, stackable: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/formatter.rb#175 + def format_each(nodes); end + + # source://syntax_tree//lib/syntax_tree/formatter.rb#179 + def grandparent; end + + # This is a simplified version of prettyprint's group. It doesn't provide + # any of the more advanced options because we don't need them and they take + # up expensive computation time. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#194 + def group; end + + # source://syntax_tree//lib/syntax_tree/formatter.rb#183 + def parent; end + + # source://syntax_tree//lib/syntax_tree/formatter.rb#187 + def parents; end + + # These options are overridden in plugins to we need to make sure they are + # available here. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#87 + def quote; end + + # A similar version to the super, except that it calls back into the + # separator proc with the instance of `self`. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#208 + def seplist(list, sep = T.unsafe(nil), iter_method = T.unsafe(nil)); end + + # Returns the value of attribute source. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#83 + def source; end + + # Returns the value of attribute stack. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#83 + def stack; end + + # These options are overridden in plugins to we need to make sure they are + # available here. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#87 + def target_ruby_version; end + + # This is a much simplified version of prettyprint's text. It avoids + # calculating width by pushing the string directly onto the target. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#224 + def text(string); end + + # These options are overridden in plugins to we need to make sure they are + # available here. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#87 + def trailing_comma; end + + # These options are overridden in plugins to we need to make sure they are + # available here. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#87 + def trailing_comma?; end + + class << self + # source://syntax_tree//lib/syntax_tree/formatter.rb#108 + def format(source, node, base_indentation = T.unsafe(nil)); end + end +end + +# source://syntax_tree//lib/syntax_tree/formatter.rb#80 +SyntaxTree::Formatter::COMMENT_PRIORITY = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/formatter.rb#81 +SyntaxTree::Formatter::HEREDOC_PRIORITY = T.let(T.unsafe(nil), Integer) + +# We want to minimize as much as possible the number of options that are +# available in syntax tree. For the most part, if users want non-default +# formatting, they should override the format methods on the specific nodes +# themselves. However, because of some history with prettier and the fact +# that folks have become entrenched in their ways, we decided to provide a +# small amount of configurability. +# +# source://syntax_tree//lib/syntax_tree/formatter.rb#23 +class SyntaxTree::Formatter::Options + # @return [Options] a new instance of Options + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#29 + def initialize(quote: T.unsafe(nil), trailing_comma: T.unsafe(nil), disable_auto_ternary: T.unsafe(nil), target_ruby_version: T.unsafe(nil)); end + + # Returns the value of attribute disable_auto_ternary. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#24 + def disable_auto_ternary; end + + # Returns the value of attribute quote. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#24 + def quote; end + + # Returns the value of attribute target_ruby_version. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#24 + def target_ruby_version; end + + # Returns the value of attribute trailing_comma. + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#24 + def trailing_comma; end +end + +# Unfortunately, Gem::Version.new is not ractor-safe because it performs +# global caching using a class variable. This works around that by just +# setting the instance variables directly. +# +# source://syntax_tree//lib/syntax_tree/formatter.rb#10 +class SyntaxTree::Formatter::SemanticVersion < ::Gem::Version + # @return [SemanticVersion] a new instance of SemanticVersion + # + # source://syntax_tree//lib/syntax_tree/formatter.rb#11 + def initialize(version); end +end + +# GVar represents a global variable literal. +# +# $variable +# +# source://syntax_tree//lib/syntax_tree/node.rb#5600 +class SyntaxTree::GVar < ::SyntaxTree::Node + # @return [GVar] a new instance of GVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#5607 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5642 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5613 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5617 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5605 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5621 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5617 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5634 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5638 + def format(q); end + + # [String] the name of the global variable + # + # source://syntax_tree//lib/syntax_tree/node.rb#5602 + def value; end +end + +# This holds references to objects that respond to both #parse and #format +# so that we can use them in the CLI. +# +# source://syntax_tree//lib/syntax_tree.rb#43 +SyntaxTree::HANDLERS = T.let(T.unsafe(nil), Hash) + +# This module is responsible for formatting the assocs contained within a +# hash or bare hash. It first determines if every key in the hash can use +# labels. If it can, it uses labels. Otherwise it uses hash rockets. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1728 +module SyntaxTree::HashKeyFormatter + class << self + # source://syntax_tree//lib/syntax_tree/node.rb#1786 + def for(container); end + end +end + +# When formatting a single assoc node without the context of the parent +# hash, this formatter is used. It uses whatever is present in the node, +# because there is nothing to be consistent with. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1775 +class SyntaxTree::HashKeyFormatter::Identity + # source://syntax_tree//lib/syntax_tree/node.rb#1776 + def format_key(q, key); end +end + +# Formats the keys of a hash literal using labels. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1730 +class SyntaxTree::HashKeyFormatter::Labels + # source://syntax_tree//lib/syntax_tree/node.rb#1733 + def format_key(q, key); end +end + +# source://syntax_tree//lib/syntax_tree/node.rb#1731 +SyntaxTree::HashKeyFormatter::Labels::LABEL = T.let(T.unsafe(nil), Regexp) + +# Formats the keys of a hash literal using hash rockets. +# +# source://syntax_tree//lib/syntax_tree/node.rb#1756 +class SyntaxTree::HashKeyFormatter::Rockets + # source://syntax_tree//lib/syntax_tree/node.rb#1757 + def format_key(q, key); end +end + +# HashLiteral represents a hash literal. +# +# { key => value } +# +# source://syntax_tree//lib/syntax_tree/node.rb#5651 +class SyntaxTree::HashLiteral < ::SyntaxTree::Node + # @return [HashLiteral] a new instance of HashLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#5687 + def initialize(lbrace:, assocs:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5728 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5694 + def accept(visitor); end + + # [Array[ Assoc | AssocSplat ]] the optional contents of the hash + # + # source://syntax_tree//lib/syntax_tree/node.rb#5682 + def assocs; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5698 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5685 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5702 + def copy(lbrace: T.unsafe(nil), assocs: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5698 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5716 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5720 + def format(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5733 + def format_key(q, key); end + + # [LBrace] the left brace that opens this hash + # + # source://syntax_tree//lib/syntax_tree/node.rb#5679 + def lbrace; end + + private + + # If we have an empty hash that contains only comments, then we're going + # to do some special printing to ensure they get indented correctly. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#5741 + def empty_with_comments?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5745 + def format_contents(q); end +end + +# This is a special formatter used if the hash literal contains no values +# but _does_ contain comments. In this case we do some special formatting to +# make sure the comments gets indented properly. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5655 +class SyntaxTree::HashLiteral::EmptyWithCommentsFormatter + # @return [EmptyWithCommentsFormatter] a new instance of EmptyWithCommentsFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#5659 + def initialize(lbrace); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5663 + def format(q); end + + # [LBrace] the opening brace + # + # source://syntax_tree//lib/syntax_tree/node.rb#5657 + def lbrace; end +end + +# Heredoc represents a heredoc string literal. +# +# <<~DOC +# contents +# DOC +# +# source://syntax_tree//lib/syntax_tree/node.rb#5774 +class SyntaxTree::Heredoc < ::SyntaxTree::Node + # @return [Heredoc] a new instance of Heredoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#5791 + def initialize(beginning:, location:, ending: T.unsafe(nil), dedent: T.unsafe(nil), parts: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5873 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5800 + def accept(visitor); end + + # [HeredocBeg] the opening of the heredoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#5776 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5804 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5789 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5808 + def copy(beginning: T.unsafe(nil), location: T.unsafe(nil), ending: T.unsafe(nil), parts: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5804 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5823 + def deconstruct_keys(_keys); end + + # [Integer] how far to dedent the heredoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#5782 + def dedent; end + + # [HeredocEnd] the ending of the heredoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#5779 + def ending; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5838 + def format(q); end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # heredoc string literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#5786 + def parts; end +end + +# This is a very specific behavior where you want to force a newline, but +# don't want to force the break parent. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5835 +SyntaxTree::Heredoc::SEPARATOR = T.let(T.unsafe(nil), PrettierPrint::Breakable) + +# HeredocBeg represents the beginning declaration of a heredoc. +# +# <<~DOC +# contents +# DOC +# +# In the example above the HeredocBeg node represents <<~DOC. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5886 +class SyntaxTree::HeredocBeg < ::SyntaxTree::Node + # @return [HeredocBeg] a new instance of HeredocBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#5893 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5928 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5899 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5903 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5891 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5907 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5903 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5920 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5924 + def format(q); end + + # [String] the opening declaration of the heredoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#5888 + def value; end +end + +# HeredocEnd represents the closing declaration of a heredoc. +# +# <<~DOC +# contents +# DOC +# +# In the example above the HeredocEnd node represents the closing DOC. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5940 +class SyntaxTree::HeredocEnd < ::SyntaxTree::Node + # @return [HeredocEnd] a new instance of HeredocEnd + # + # source://syntax_tree//lib/syntax_tree/node.rb#5947 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5982 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5953 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5957 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#5945 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5961 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5957 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#5974 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#5978 + def format(q); end + + # [String] the closing declaration of the heredoc + # + # source://syntax_tree//lib/syntax_tree/node.rb#5942 + def value; end +end + +# HshPtn represents matching against a hash pattern using the Ruby 2.7+ +# pattern matching syntax. +# +# case value +# in { key: } +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#5994 +class SyntaxTree::HshPtn < ::SyntaxTree::Node + # @return [HshPtn] a new instance of HshPtn + # + # source://syntax_tree//lib/syntax_tree/node.rb#6054 + def initialize(constant:, keywords:, keyword_rest:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6147 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6062 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6066 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6052 + def comments; end + + # [nil | VarRef | ConstPathRef] the optional constant wrapper + # + # source://syntax_tree//lib/syntax_tree/node.rb#6042 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6070 + def copy(constant: T.unsafe(nil), keywords: T.unsafe(nil), keyword_rest: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6066 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6085 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6095 + def format(q); end + + # [nil | VarField] an optional parameter to gather up all remaining keywords + # + # source://syntax_tree//lib/syntax_tree/node.rb#6049 + def keyword_rest; end + + # [Array[ [DynaSymbol | Label, nil | Node] ]] the set of tuples + # representing the keywords that should be matched against in the pattern + # + # source://syntax_tree//lib/syntax_tree/node.rb#6046 + def keywords; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#6158 + def format_contents(q, parts, nested); end +end + +# Formats a key-value pair in a hash pattern. The value is optional. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5996 +class SyntaxTree::HshPtn::KeywordFormatter + # @return [KeywordFormatter] a new instance of KeywordFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#6003 + def initialize(key, value); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6008 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6012 + def format(q); end + + # [Label] the keyword being used + # + # source://syntax_tree//lib/syntax_tree/node.rb#5998 + def key; end + + # [Node] the optional value for the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#6001 + def value; end +end + +# Formats the optional double-splat from the pattern. +# +# source://syntax_tree//lib/syntax_tree/node.rb#6023 +class SyntaxTree::HshPtn::KeywordRestFormatter + # @return [KeywordRestFormatter] a new instance of KeywordRestFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#6027 + def initialize(keyword_rest); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6031 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6035 + def format(q); end + + # [VarField] the parameter that matches the remaining keywords + # + # source://syntax_tree//lib/syntax_tree/node.rb#6025 + def keyword_rest; end +end + +# IVar represents an instance variable literal. +# +# @variable +# +# source://syntax_tree//lib/syntax_tree/node.rb#6878 +class SyntaxTree::IVar < ::SyntaxTree::Node + # @return [IVar] a new instance of IVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#6885 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6920 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6891 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6895 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6883 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6899 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6895 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6912 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6916 + def format(q); end + + # [String] the name of the instance variable + # + # source://syntax_tree//lib/syntax_tree/node.rb#6880 + def value; end +end + +# Ident represents an identifier anywhere in code. It can represent a very +# large number of things, depending on where it is in the syntax tree. +# +# value +# +# source://syntax_tree//lib/syntax_tree/node.rb#6181 +class SyntaxTree::Ident < ::SyntaxTree::Node + # @return [Ident] a new instance of Ident + # + # source://syntax_tree//lib/syntax_tree/node.rb#6188 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6223 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6194 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6198 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6186 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6202 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6198 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6215 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6219 + def format(q); end + + # [String] the value of the identifier + # + # source://syntax_tree//lib/syntax_tree/node.rb#6183 + def value; end +end + +# If represents the first clause in an +if+ chain. +# +# if predicate +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#6471 +class SyntaxTree::IfNode < ::SyntaxTree::Node + # @return [IfNode] a new instance of IfNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#6484 + def initialize(predicate:, statements:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6529 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6492 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6496 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6482 + def comments; end + + # [nil | Elsif | Else] the next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#6479 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6500 + def copy(predicate: T.unsafe(nil), statements: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6496 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6515 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6525 + def format(q); end + + # Checks if the node was originally found in the modifier form. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#6535 + def modifier?; end + + # [Node] the expression to be checked + # + # source://syntax_tree//lib/syntax_tree/node.rb#6473 + def predicate; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#6476 + def statements; end +end + +# IfOp represents a ternary clause. +# +# predicate ? truthy : falsy +# +# source://syntax_tree//lib/syntax_tree/node.rb#6544 +class SyntaxTree::IfOp < ::SyntaxTree::Node + # @return [IfOp] a new instance of IfOp + # + # source://syntax_tree//lib/syntax_tree/node.rb#6557 + def initialize(predicate:, truthy:, falsy:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6631 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6565 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6569 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6555 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6573 + def copy(predicate: T.unsafe(nil), truthy: T.unsafe(nil), falsy: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6569 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6588 + def deconstruct_keys(_keys); end + + # [Node] the expression to be executed if the predicate is falsy + # + # source://syntax_tree//lib/syntax_tree/node.rb#6552 + def falsy; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6598 + def format(q); end + + # [Node] the expression to be checked + # + # source://syntax_tree//lib/syntax_tree/node.rb#6546 + def predicate; end + + # [Node] the expression to be executed if the predicate is truthy + # + # source://syntax_tree//lib/syntax_tree/node.rb#6549 + def truthy; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#6638 + def format_break(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6661 + def format_flat(q); end +end + +# Imaginary represents an imaginary number literal. +# +# 1i +# +# source://syntax_tree//lib/syntax_tree/node.rb#6680 +class SyntaxTree::Imaginary < ::SyntaxTree::Node + # @return [Imaginary] a new instance of Imaginary + # + # source://syntax_tree//lib/syntax_tree/node.rb#6687 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6722 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6693 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6697 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6685 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6701 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6697 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6714 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6718 + def format(q); end + + # [String] the value of the imaginary number literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#6682 + def value; end +end + +# In represents using the +in+ keyword within the Ruby 2.7+ pattern matching +# syntax. +# +# case value +# in pattern +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#6734 +class SyntaxTree::In < ::SyntaxTree::Node + # @return [In] a new instance of In + # + # source://syntax_tree//lib/syntax_tree/node.rb#6747 + def initialize(pattern:, statements:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6812 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6755 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6759 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6745 + def comments; end + + # [nil | In | Else] the next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#6742 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6763 + def copy(pattern: T.unsafe(nil), statements: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6759 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6778 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6788 + def format(q); end + + # [Node] the pattern to check against + # + # source://syntax_tree//lib/syntax_tree/node.rb#6736 + def pattern; end + + # [Statements] the expressions to execute if the pattern matched + # + # source://syntax_tree//lib/syntax_tree/node.rb#6739 + def statements; end +end + +# This class can be used to build an index of the structure of Ruby files. We +# define an index as the list of constants and methods defined within a file. +# +# This index strives to be as fast as possible to better support tools like +# IDEs. Because of that, it has different backends depending on what +# functionality is available. +# +# source://syntax_tree//lib/syntax_tree/index.rb#10 +module SyntaxTree::Index + class << self + # This method accepts source code and then indexes it. + # + # source://syntax_tree//lib/syntax_tree/index.rb#674 + def index(source, backend: T.unsafe(nil)); end + + # This method accepts a filepath and then indexes it. + # + # source://syntax_tree//lib/syntax_tree/index.rb#679 + def index_file(filepath, backend: T.unsafe(nil)); end + end +end + +# This entry represents a method definition that was created using the alias +# keyword. +# +# source://syntax_tree//lib/syntax_tree/index.rb#85 +class SyntaxTree::Index::AliasMethodDefinition + # @return [AliasMethodDefinition] a new instance of AliasMethodDefinition + # + # source://syntax_tree//lib/syntax_tree/index.rb#88 + def initialize(nesting, name, location, comments); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#86 + def comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#86 + def location; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/index.rb#86 + def name; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#86 + def nesting; end +end + +# This entry represents a class definition using the class keyword. +# +# source://syntax_tree//lib/syntax_tree/index.rb#22 +class SyntaxTree::Index::ClassDefinition + # @return [ClassDefinition] a new instance of ClassDefinition + # + # source://syntax_tree//lib/syntax_tree/index.rb#25 + def initialize(nesting, name, superclass, location, comments); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#23 + def comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#23 + def location; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/index.rb#23 + def name; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#23 + def nesting; end + + # Returns the value of attribute superclass. + # + # source://syntax_tree//lib/syntax_tree/index.rb#23 + def superclass; end +end + +# This entry represents a constant assignment. +# +# source://syntax_tree//lib/syntax_tree/index.rb#35 +class SyntaxTree::Index::ConstantDefinition + # @return [ConstantDefinition] a new instance of ConstantDefinition + # + # source://syntax_tree//lib/syntax_tree/index.rb#38 + def initialize(nesting, name, location, comments); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#36 + def comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#36 + def location; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/index.rb#36 + def name; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#36 + def nesting; end +end + +# This class handles parsing comments from Ruby source code in the case that +# we use the instruction sequence backend. Because the instruction sequence +# backend doesn't provide comments (since they are dropped) we provide this +# interface to lazily parse them out. +# +# source://syntax_tree//lib/syntax_tree/index.rb#152 +class SyntaxTree::Index::EntryComments + include ::Enumerable + + # @return [EntryComments] a new instance of EntryComments + # + # source://syntax_tree//lib/syntax_tree/index.rb#156 + def initialize(file_comments, location); end + + # source://syntax_tree//lib/syntax_tree/index.rb#161 + def each(&block); end + + # Returns the value of attribute file_comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#154 + def file_comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#154 + def location; end +end + +# When you're using the instruction sequence backend, this class is used to +# lazily parse comments out of the source code. +# +# source://syntax_tree//lib/syntax_tree/index.rb#98 +class SyntaxTree::Index::FileComments + # @return [FileComments] a new instance of FileComments + # + # source://syntax_tree//lib/syntax_tree/index.rb#139 + def initialize(source); end + + # source://syntax_tree//lib/syntax_tree/index.rb#143 + def comments; end + + # Returns the value of attribute source. + # + # source://syntax_tree//lib/syntax_tree/index.rb#137 + def source; end +end + +# This represents the Ruby source in the form of a file. When it needs to +# be read we'll read the file. +# +# source://syntax_tree//lib/syntax_tree/index.rb#115 +class SyntaxTree::Index::FileComments::FileSource + # @return [FileSource] a new instance of FileSource + # + # source://syntax_tree//lib/syntax_tree/index.rb#118 + def initialize(filepath); end + + # Returns the value of attribute filepath. + # + # source://syntax_tree//lib/syntax_tree/index.rb#116 + def filepath; end + + # source://syntax_tree//lib/syntax_tree/index.rb#122 + def source; end +end + +# We use the ripper library to pull out source comments. +# +# source://syntax_tree//lib/syntax_tree/index.rb#100 +class SyntaxTree::Index::FileComments::Parser < ::Ripper + # @return [Parser] a new instance of Parser + # + # source://syntax_tree//lib/syntax_tree/index.rb#103 + def initialize(*_arg0); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#101 + def comments; end + + # source://syntax_tree//lib/syntax_tree/index.rb#108 + def on_comment(value); end +end + +# This represents the Ruby source in the form of a string. When it needs +# to be read the string is returned. +# +# source://syntax_tree//lib/syntax_tree/index.rb#129 +class SyntaxTree::Index::FileComments::StringSource + # @return [StringSource] a new instance of StringSource + # + # source://syntax_tree//lib/syntax_tree/index.rb#132 + def initialize(source); end + + # Returns the value of attribute source. + # + # source://syntax_tree//lib/syntax_tree/index.rb#130 + def source; end +end + +# The class defined here is used to perform the indexing, depending on what +# functionality is available from the runtime. +# +# source://syntax_tree//lib/syntax_tree/index.rb#670 +SyntaxTree::Index::INDEX_BACKEND = SyntaxTree::Index::ISeqBackend + +# This backend creates the index using RubyVM::InstructionSequence, which is +# faster than using the Syntax Tree parser, but is not available on all +# runtimes. +# +# source://syntax_tree//lib/syntax_tree/index.rb#177 +class SyntaxTree::Index::ISeqBackend + # source://syntax_tree//lib/syntax_tree/index.rb#184 + def index(source); end + + # source://syntax_tree//lib/syntax_tree/index.rb#191 + def index_file(filepath); end + + private + + # source://syntax_tree//lib/syntax_tree/index.rb#242 + def find_attr_arguments(insns, index); end + + # source://syntax_tree//lib/syntax_tree/index.rb#205 + def find_constant_path(insns, index); end + + # source://syntax_tree//lib/syntax_tree/index.rb#273 + def index_iseq(iseq, file_comments); end + + # source://syntax_tree//lib/syntax_tree/index.rb#200 + def location_for(iseq); end + + # source://syntax_tree//lib/syntax_tree/index.rb#258 + def method_definition(nesting, name, location, file_comments); end +end + +# source://syntax_tree//lib/syntax_tree/index.rb#182 +SyntaxTree::Index::ISeqBackend::VM_DEFINECLASS_FLAG_HAS_SUPERCLASS = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/index.rb#181 +SyntaxTree::Index::ISeqBackend::VM_DEFINECLASS_FLAG_SCOPED = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/index.rb#178 +SyntaxTree::Index::ISeqBackend::VM_DEFINECLASS_TYPE_CLASS = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/index.rb#180 +SyntaxTree::Index::ISeqBackend::VM_DEFINECLASS_TYPE_MODULE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/index.rb#179 +SyntaxTree::Index::ISeqBackend::VM_DEFINECLASS_TYPE_SINGLETON_CLASS = T.let(T.unsafe(nil), Integer) + +# This is a location for an index entry. +# +# source://syntax_tree//lib/syntax_tree/index.rb#12 +class SyntaxTree::Index::Location + # @return [Location] a new instance of Location + # + # source://syntax_tree//lib/syntax_tree/index.rb#15 + def initialize(line, column); end + + # Returns the value of attribute column. + # + # source://syntax_tree//lib/syntax_tree/index.rb#13 + def column; end + + # Returns the value of attribute line. + # + # source://syntax_tree//lib/syntax_tree/index.rb#13 + def line; end +end + +# This entry represents a method definition using the def keyword. +# +# source://syntax_tree//lib/syntax_tree/index.rb#59 +class SyntaxTree::Index::MethodDefinition + # @return [MethodDefinition] a new instance of MethodDefinition + # + # source://syntax_tree//lib/syntax_tree/index.rb#62 + def initialize(nesting, name, location, comments); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#60 + def comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#60 + def location; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/index.rb#60 + def name; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#60 + def nesting; end +end + +# This entry represents a module definition using the module keyword. +# +# source://syntax_tree//lib/syntax_tree/index.rb#47 +class SyntaxTree::Index::ModuleDefinition + # @return [ModuleDefinition] a new instance of ModuleDefinition + # + # source://syntax_tree//lib/syntax_tree/index.rb#50 + def initialize(nesting, name, location, comments); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#48 + def comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#48 + def location; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/index.rb#48 + def name; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#48 + def nesting; end +end + +# This backend creates the index using the Syntax Tree parser and a visitor. +# It is not as fast as using the instruction sequences directly, but is +# supported on all runtimes. +# +# source://syntax_tree//lib/syntax_tree/index.rb#452 +class SyntaxTree::Index::ParserBackend + # source://syntax_tree//lib/syntax_tree/index.rb#659 + def index(source); end + + # source://syntax_tree//lib/syntax_tree/index.rb#663 + def index_file(filepath); end +end + +# source://syntax_tree//lib/syntax_tree/index.rb#453 +class SyntaxTree::Index::ParserBackend::ConstantNameVisitor < ::SyntaxTree::Visitor + # source://syntax_tree//lib/syntax_tree/index.rb#458 + def visit_const_path_ref(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#454 + def visit_const_ref(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#462 + def visit_var_ref(node); end +end + +# source://syntax_tree//lib/syntax_tree/index.rb#467 +class SyntaxTree::Index::ParserBackend::IndexVisitor < ::SyntaxTree::Visitor + # @return [IndexVisitor] a new instance of IndexVisitor + # + # source://syntax_tree//lib/syntax_tree/index.rb#470 + def initialize; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#468 + def nesting; end + + # Returns the value of attribute results. + # + # source://syntax_tree//lib/syntax_tree/index.rb#468 + def results; end + + # Returns the value of attribute statements. + # + # source://syntax_tree//lib/syntax_tree/index.rb#468 + def statements; end + + # source://syntax_tree//lib/syntax_tree/index.rb#477 + def visit_alias(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#496 + def visit_assign(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#515 + def visit_class(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#547 + def visit_command(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#584 + def visit_def(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#608 + def visit_module(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#626 + def visit_program(node); end + + # source://syntax_tree//lib/syntax_tree/index.rb#631 + def visit_statements(node); end + + private + + # source://syntax_tree//lib/syntax_tree/index.rb#639 + def comments_for(node); end +end + +# This entry represents a singleton method definition using the def keyword +# with a specified target. +# +# source://syntax_tree//lib/syntax_tree/index.rb#72 +class SyntaxTree::Index::SingletonMethodDefinition + # @return [SingletonMethodDefinition] a new instance of SingletonMethodDefinition + # + # source://syntax_tree//lib/syntax_tree/index.rb#75 + def initialize(nesting, name, location, comments); end + + # Returns the value of attribute comments. + # + # source://syntax_tree//lib/syntax_tree/index.rb#73 + def comments; end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/index.rb#73 + def location; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/index.rb#73 + def name; end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/index.rb#73 + def nesting; end +end + +# Int represents an integer number literal. +# +# 1 +# +# source://syntax_tree//lib/syntax_tree/node.rb#6822 +class SyntaxTree::Int < ::SyntaxTree::Node + # @return [Int] a new instance of Int + # + # source://syntax_tree//lib/syntax_tree/node.rb#6829 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6869 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6835 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6839 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6827 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6843 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6839 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6853 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6857 + def format(q); end + + # [String] the value of the integer + # + # source://syntax_tree//lib/syntax_tree/node.rb#6824 + def value; end +end + +# This visitor transforms the AST into a hash that contains only primitives +# that can be easily serialized into JSON. +# +# source://syntax_tree//lib/syntax_tree/json_visitor.rb#8 +class SyntaxTree::JSONVisitor < ::SyntaxTree::FieldVisitor + # @return [JSONVisitor] a new instance of JSONVisitor + # + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#11 + def initialize; end + + # Returns the value of attribute target. + # + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#9 + def target; end + + private + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#17 + def comments(node); end + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#21 + def field(name, value); end + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#25 + def list(name, values); end + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#29 + def node(node, type); end + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#38 + def pairs(name, values); end + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#42 + def text(name, value); end + + # source://syntax_tree//lib/syntax_tree/json_visitor.rb#46 + def visit_location(location); end +end + +# Kw represents the use of a keyword. It can be almost anywhere in the syntax +# tree, so you end up seeing it quite a lot. +# +# if value +# end +# +# In the above example, there would be two Kw nodes: one for the if and one +# for the end. Note that anything that matches the list of keywords in Ruby +# will use a Kw, so if you use a keyword in a symbol literal for instance: +# +# :if +# +# then the contents of the symbol node will contain a Kw node. +# +# source://syntax_tree//lib/syntax_tree/node.rb#6938 +class SyntaxTree::Kw < ::SyntaxTree::Node + # @return [Kw] a new instance of Kw + # + # source://syntax_tree//lib/syntax_tree/node.rb#6948 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6981 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6955 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6959 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6946 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6963 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6959 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#6973 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#6977 + def format(q); end + + # [Symbol] the symbol version of the value + # + # source://syntax_tree//lib/syntax_tree/node.rb#6943 + def name; end + + # [String] the value of the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#6940 + def value; end +end + +# KwRestParam represents defining a parameter in a method definition that +# accepts all remaining keyword parameters. +# +# def method(**kwargs) end +# +# source://syntax_tree//lib/syntax_tree/node.rb#6991 +class SyntaxTree::KwRestParam < ::SyntaxTree::Node + # @return [KwRestParam] a new instance of KwRestParam + # + # source://syntax_tree//lib/syntax_tree/node.rb#6998 + def initialize(name:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7034 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7004 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7008 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#6996 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7012 + def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7008 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7025 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7029 + def format(q); end + + # [nil | Ident] the name of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#6993 + def name; end +end + +# LBrace represents the use of a left brace, i.e., {. +# +# source://syntax_tree//lib/syntax_tree/node.rb#7316 +class SyntaxTree::LBrace < ::SyntaxTree::Node + # @return [LBrace] a new instance of LBrace + # + # source://syntax_tree//lib/syntax_tree/node.rb#7323 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7358 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7329 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7333 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7321 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7337 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7333 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7350 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7354 + def format(q); end + + # [String] the left brace + # + # source://syntax_tree//lib/syntax_tree/node.rb#7318 + def value; end + + class << self + # Because some nodes keep around a { token so that comments can be attached + # to it if they occur in the source, oftentimes an LBrace is a child of + # another node. This means it's required at initialization time. To make it + # easier to create LBrace nodes without any specific value, this method + # provides a default node. + # + # source://syntax_tree//lib/syntax_tree/node.rb#7367 + def default; end + end +end + +# LBracket represents the use of a left bracket, i.e., [. +# +# source://syntax_tree//lib/syntax_tree/node.rb#7373 +class SyntaxTree::LBracket < ::SyntaxTree::Node + # @return [LBracket] a new instance of LBracket + # + # source://syntax_tree//lib/syntax_tree/node.rb#7380 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7415 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7386 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7390 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7378 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7394 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7390 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7407 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7411 + def format(q); end + + # [String] the left bracket + # + # source://syntax_tree//lib/syntax_tree/node.rb#7375 + def value; end + + class << self + # Because some nodes keep around a [ token so that comments can be attached + # to it if they occur in the source, oftentimes an LBracket is a child of + # another node. This means it's required at initialization time. To make it + # easier to create LBracket nodes without any specific value, this method + # provides a default node. + # + # source://syntax_tree//lib/syntax_tree/node.rb#7424 + def default; end + end +end + +# LParen represents the use of a left parenthesis, i.e., (. +# +# source://syntax_tree//lib/syntax_tree/node.rb#7430 +class SyntaxTree::LParen < ::SyntaxTree::Node + # @return [LParen] a new instance of LParen + # + # source://syntax_tree//lib/syntax_tree/node.rb#7437 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7472 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7443 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7447 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7435 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7451 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7447 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7464 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7468 + def format(q); end + + # [String] the left parenthesis + # + # source://syntax_tree//lib/syntax_tree/node.rb#7432 + def value; end + + class << self + # Because some nodes keep around a ( token so that comments can be attached + # to it if they occur in the source, oftentimes an LParen is a child of + # another node. This means it's required at initialization time. To make it + # easier to create LParen nodes without any specific value, this method + # provides a default node. + # + # source://syntax_tree//lib/syntax_tree/node.rb#7481 + def default; end + end +end + +# Label represents the use of an identifier to associate with an object. You +# can find it in a hash key, as in: +# +# { key: value } +# +# In this case "key:" would be the body of the label. You can also find it in +# pattern matching, as in: +# +# case value +# in key: +# end +# +# In this case "key:" would be the body of the label. +# +# source://syntax_tree//lib/syntax_tree/node.rb#7052 +class SyntaxTree::Label < ::SyntaxTree::Node + # @return [Label] a new instance of Label + # + # source://syntax_tree//lib/syntax_tree/node.rb#7059 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7094 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7065 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7069 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7057 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7073 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7069 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7086 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7090 + def format(q); end + + # [String] the value of the label + # + # source://syntax_tree//lib/syntax_tree/node.rb#7054 + def value; end +end + +# LabelEnd represents the end of a dynamic symbol. +# +# { "key": value } +# +# In the example above, LabelEnd represents the "\":" token at the end of the +# hash key. This node is important for determining the type of quote being +# used by the label. +# +# source://syntax_tree//lib/syntax_tree/node.rb#7106 +class SyntaxTree::LabelEnd < ::SyntaxTree::Node + # @return [LabelEnd] a new instance of LabelEnd + # + # source://syntax_tree//lib/syntax_tree/node.rb#7110 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7136 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7115 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7119 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7123 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7119 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7132 + def deconstruct_keys(_keys); end + + # [String] the end of the label + # + # source://syntax_tree//lib/syntax_tree/node.rb#7108 + def value; end +end + +# Lambda represents using a lambda literal (not the lambda method call). +# +# ->(value) { value * 2 } +# +# source://syntax_tree//lib/syntax_tree/node.rb#7145 +class SyntaxTree::Lambda < ::SyntaxTree::Node + # @return [Lambda] a new instance of Lambda + # + # source://syntax_tree//lib/syntax_tree/node.rb#7155 + def initialize(params:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7239 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7162 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7166 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7153 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7170 + def copy(params: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7166 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7184 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7193 + def format(q); end + + # [LambdaVar | Paren] the parameter declaration for this lambda + # + # source://syntax_tree//lib/syntax_tree/node.rb#7147 + def params; end + + # [BodyStmt | Statements] the expressions to be executed in this lambda + # + # source://syntax_tree//lib/syntax_tree/node.rb#7150 + def statements; end +end + +# LambdaVar represents the parameters being declared for a lambda. Effectively +# this node is everything contained within the parentheses. This includes all +# of the various parameter types, as well as block-local variable +# declarations. +# +# -> (positional, optional = value, keyword:, █ local) do +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#7253 +class SyntaxTree::LambdaVar < ::SyntaxTree::Node + # @return [LambdaVar] a new instance of LambdaVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#7263 + def initialize(params:, locals:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7309 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7270 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7274 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7261 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7278 + def copy(params: T.unsafe(nil), locals: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7274 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7292 + def deconstruct_keys(_keys); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#7296 + def empty?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7300 + def format(q); end + + # [Array[ Ident ]] the list of block-local variable declarations + # + # source://syntax_tree//lib/syntax_tree/node.rb#7258 + def locals; end + + # [Params] the parameters being declared with the block + # + # source://syntax_tree//lib/syntax_tree/node.rb#7255 + def params; end +end + +# Syntax Tree additionally ships with a language server conforming to the +# language server protocol. It can be invoked through the CLI by running: +# +# stree lsp +# +# source://syntax_tree//lib/syntax_tree/language_server.rb#14 +class SyntaxTree::LanguageServer + # @return [LanguageServer] a new instance of LanguageServer + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#217 + def initialize(input: T.unsafe(nil), output: T.unsafe(nil), print_width: T.unsafe(nil)); end + + # Returns the value of attribute input. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#215 + def input; end + + # Returns the value of attribute output. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#215 + def output; end + + # Returns the value of attribute print_width. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#215 + def print_width; end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#228 + def run; end + + private + + # source://syntax_tree//lib/syntax_tree/language_server.rb#280 + def capabilities; end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#293 + def format(source, extension); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#317 + def inlay_hints(source); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#333 + def log(message); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#327 + def write(value); end +end + +# This class provides inlay hints for the language server. For more +# information, see the spec here: +# https://github.com/microsoft/language-server-protocol/issues/956. +# +# source://syntax_tree//lib/syntax_tree/language_server.rb#18 +class SyntaxTree::LanguageServer::InlayHints < ::SyntaxTree::Visitor + # @return [InlayHints] a new instance of InlayHints + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#43 + def initialize; end + + # Returns the value of attribute hints. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#41 + def hints; end + + # Returns the value of attribute stack. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#41 + def stack; end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#48 + def visit(node); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#67 + def visit_assign(node); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#81 + def visit_binary(node); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#102 + def visit_if_op(node); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#124 + def visit_rescue(node); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#145 + def visit_unary(node); end + + private + + # source://syntax_tree//lib/syntax_tree/language_server.rb#156 + def parentheses(location); end +end + +# This represents a hint that is going to be displayed in the editor. +# +# source://syntax_tree//lib/syntax_tree/language_server.rb#20 +class SyntaxTree::LanguageServer::InlayHints::Hint + # @return [Hint] a new instance of Hint + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#23 + def initialize(line:, character:, label:); end + + # Returns the value of attribute character. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#21 + def character; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#21 + def label; end + + # Returns the value of attribute line. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#21 + def line; end + + # This is the shape that the LSP expects. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#30 + def to_json(*opts); end +end + +# This is a small module that effectively mirrors pattern matching. We're +# using it so that we can support truffleruby without having to ignore the +# language server. +# +# source://syntax_tree//lib/syntax_tree/language_server.rb#174 +module SyntaxTree::LanguageServer::Request + class << self + # source://syntax_tree//lib/syntax_tree/language_server.rb#203 + def [](value); end + end +end + +# Represents a hash pattern. +# +# source://syntax_tree//lib/syntax_tree/language_server.rb#176 +class SyntaxTree::LanguageServer::Request::Shape + # @return [Shape] a new instance of Shape + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#179 + def initialize(values); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#183 + def ===(other); end + + # Returns the value of attribute values. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#177 + def values; end +end + +# Represents an array pattern. +# +# source://syntax_tree//lib/syntax_tree/language_server.rb#191 +class SyntaxTree::LanguageServer::Request::Tuple + # @return [Tuple] a new instance of Tuple + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#194 + def initialize(values); end + + # source://syntax_tree//lib/syntax_tree/language_server.rb#198 + def ===(other); end + + # Returns the value of attribute values. + # + # source://syntax_tree//lib/syntax_tree/language_server.rb#192 + def values; end +end + +# Represents the location of a node in the tree from the source code. +# +# source://syntax_tree//lib/syntax_tree/node.rb#5 +class SyntaxTree::Location + # @return [Location] a new instance of Location + # + # source://syntax_tree//lib/syntax_tree/node.rb#13 + def initialize(start_line:, start_char:, start_column:, end_line:, end_char:, end_column:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#33 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#50 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#54 + def deconstruct_keys(_keys); end + + # Returns the value of attribute end_char. + # + # source://syntax_tree//lib/syntax_tree/node.rb#6 + def end_char; end + + # Returns the value of attribute end_column. + # + # source://syntax_tree//lib/syntax_tree/node.rb#6 + def end_column; end + + # Returns the value of attribute end_line. + # + # source://syntax_tree//lib/syntax_tree/node.rb#6 + def end_line; end + + # source://syntax_tree//lib/syntax_tree/node.rb#29 + def lines; end + + # Returns the value of attribute start_char. + # + # source://syntax_tree//lib/syntax_tree/node.rb#6 + def start_char; end + + # Returns the value of attribute start_column. + # + # source://syntax_tree//lib/syntax_tree/node.rb#6 + def start_column; end + + # Returns the value of attribute start_line. + # + # source://syntax_tree//lib/syntax_tree/node.rb#6 + def start_line; end + + # source://syntax_tree//lib/syntax_tree/node.rb#39 + def to(other); end + + class << self + # A convenience method that is typically used when you don't care about the + # location of a node, but need to create a Location instance to pass to a + # constructor. + # + # source://syntax_tree//lib/syntax_tree/node.rb#90 + def default; end + + # source://syntax_tree//lib/syntax_tree/node.rb#76 + def fixed(line:, char:, column:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#65 + def token(line:, char:, column:, size:); end + end +end + +# Formats an Until or While node. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11378 +class SyntaxTree::LoopFormatter + # @return [LoopFormatter] a new instance of LoopFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#11385 + def initialize(keyword, node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11390 + def format(q); end + + # [String] the name of the keyword used for this loop + # + # source://syntax_tree//lib/syntax_tree/node.rb#11380 + def keyword; end + + # [Until | While] the node that is being formatted + # + # source://syntax_tree//lib/syntax_tree/node.rb#11383 + def node; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#11437 + def format_break(q); end +end + +# MAssign is a parent node of any kind of multiple assignment. This includes +# splitting out variables on the left like: +# +# first, second, third = value +# +# as well as splitting out variables on the right, as in: +# +# value = first, second, third +# +# Both sides support splats, as well as variables following them. There's also +# destructuring behavior that you can achieve with the following: +# +# first, = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#7500 +class SyntaxTree::MAssign < ::SyntaxTree::Node + # @return [MAssign] a new instance of MAssign + # + # source://syntax_tree//lib/syntax_tree/node.rb#7510 + def initialize(target:, value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7554 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7517 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7521 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7508 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7525 + def copy(target: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7521 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7539 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7543 + def format(q); end + + # [MLHS | MLHSParen] the target of the multiple assignment + # + # source://syntax_tree//lib/syntax_tree/node.rb#7502 + def target; end + + # [Node] the value being assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#7505 + def value; end +end + +# MLHS represents a list of values being destructured on the left-hand side +# of a multiple assignment. +# +# first, second, third = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#7638 +class SyntaxTree::MLHS < ::SyntaxTree::Node + # @return [MLHS] a new instance of MLHS + # + # source://syntax_tree//lib/syntax_tree/node.rb#7655 + def initialize(parts:, location:, comma: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7693 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7662 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7666 + def child_nodes; end + + # [boolean] whether or not there is a trailing comma at the end of this + # list, which impacts destructuring. It's an attr_accessor so that while + # the syntax tree is being built it can be set by its parent node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7650 + def comma; end + + # [boolean] whether or not there is a trailing comma at the end of this + # list, which impacts destructuring. It's an attr_accessor so that while + # the syntax tree is being built it can be set by its parent node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7650 + def comma=(_arg0); end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7653 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7670 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil), comma: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7666 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7684 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7688 + def format(q); end + + # [ + # Array[ + # ARefField | ArgStar | ConstPathField | Field | Ident | MLHSParen | + # TopConstField | VarField + # ] + # ] the parts of the left-hand side of a multiple assignment + # + # source://syntax_tree//lib/syntax_tree/node.rb#7645 + def parts; end +end + +# MLHSParen represents parentheses being used to destruct values in a multiple +# assignment on the left hand side. +# +# (left, right) = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#7704 +class SyntaxTree::MLHSParen < ::SyntaxTree::Node + # @return [MLHSParen] a new instance of MLHSParen + # + # source://syntax_tree//lib/syntax_tree/node.rb#7716 + def initialize(contents:, location:, comma: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7769 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7723 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7727 + def child_nodes; end + + # [boolean] whether or not there is a trailing comma at the end of this + # list, which impacts destructuring. It's an attr_accessor so that while + # the syntax tree is being built it can be set by its parent node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7711 + def comma; end + + # [boolean] whether or not there is a trailing comma at the end of this + # list, which impacts destructuring. It's an attr_accessor so that while + # the syntax tree is being built it can be set by its parent node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7711 + def comma=(_arg0); end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7714 + def comments; end + + # [MLHS | MLHSParen] the contents inside of the parentheses + # + # source://syntax_tree//lib/syntax_tree/node.rb#7706 + def contents; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7731 + def copy(contents: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7727 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7744 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7748 + def format(q); end +end + +# MRHS represents the values that are being assigned on the right-hand side of +# a multiple assignment. +# +# values = first, second, third +# +# source://syntax_tree//lib/syntax_tree/node.rb#7869 +class SyntaxTree::MRHS < ::SyntaxTree::Node + # @return [MRHS] a new instance of MRHS + # + # source://syntax_tree//lib/syntax_tree/node.rb#7876 + def initialize(parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7911 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7882 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7886 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7874 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7890 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7886 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7903 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7907 + def format(q); end + + # [Array[Node]] the parts that are being assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#7871 + def parts; end +end + +# This visitor transforms the AST into a Ruby pattern matching expression that +# would match correctly against the AST. +# +# source://syntax_tree//lib/syntax_tree/match_visitor.rb#6 +class SyntaxTree::MatchVisitor < ::SyntaxTree::FieldVisitor + # @return [MatchVisitor] a new instance of MatchVisitor + # + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#9 + def initialize(q); end + + # Returns the value of attribute q. + # + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#7 + def q; end + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#13 + def visit(node); end + + private + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#30 + def comments(node); end + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#44 + def field(name, value); end + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#52 + def list(name, values); end + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#65 + def node(node, _type); end + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#86 + def pairs(name, values); end + + # source://syntax_tree//lib/syntax_tree/match_visitor.rb#112 + def text(name, value); end +end + +# This module is responsible for rendering mermaid (https://mermaid.js.org/) +# flow charts. +# +# source://syntax_tree//lib/syntax_tree/mermaid.rb#9 +module SyntaxTree::Mermaid + class << self + # Escape a label to be used in the mermaid syntax. This is used to escape + # HTML entities such that they render properly within the quotes. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#158 + def escape(label); end + + # Create a new flowchart. If a block is given, it will be yielded to and + # the flowchart will be rendered. Otherwise, the flowchart will be + # returned. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#165 + def flowchart; end + end +end + +# This is the main class that handles rendering a flowchart. It keeps track +# of its nodes and links and renders them according to the mermaid syntax. +# +# source://syntax_tree//lib/syntax_tree/mermaid.rb#12 +class SyntaxTree::Mermaid::FlowChart + # @return [FlowChart] a new instance of FlowChart + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#15 + def initialize; end + + # Retrieve a node that has already been added to the flowchart by its id. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#25 + def fetch(id); end + + # Add a link to the flowchart between two nodes with an optional label. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#30 + def link(from, to, label = T.unsafe(nil), type: T.unsafe(nil), color: T.unsafe(nil)); end + + # Returns the value of attribute links. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#13 + def links; end + + # Add a node to the flowchart with an optional label. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#39 + def node(id, label = T.unsafe(nil), shape: T.unsafe(nil)); end + + # Returns the value of attribute nodes. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#13 + def nodes; end + + # Returns the value of attribute output. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#13 + def output; end + + # Returns the value of attribute prefix. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#13 + def prefix; end + + # Return the rendered flowchart. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#64 + def render; end + + # Add a subgraph to the flowchart. Within the given block, all of the + # nodes will be rendered within the subgraph. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#49 + def subgraph(label); end +end + +# This class represents a link between two nodes in a flowchart. It is not +# meant to be interacted with directly, but rather used as a data structure +# by the FlowChart class. +# +# source://syntax_tree//lib/syntax_tree/mermaid.rb#78 +class SyntaxTree::Mermaid::Link + # @return [Link] a new instance of Link + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#84 + def initialize(from, to, label, type, color); end + + # Returns the value of attribute color. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#82 + def color; end + + # Returns the value of attribute from. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#82 + def from; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#82 + def label; end + + # source://syntax_tree//lib/syntax_tree/mermaid.rb#95 + def render; end + + # Returns the value of attribute to. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#82 + def to; end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#82 + def type; end + + private + + # source://syntax_tree//lib/syntax_tree/mermaid.rb#108 + def sides; end +end + +# source://syntax_tree//lib/syntax_tree/mermaid.rb#80 +SyntaxTree::Mermaid::Link::COLORS = T.let(T.unsafe(nil), Array) + +# source://syntax_tree//lib/syntax_tree/mermaid.rb#79 +SyntaxTree::Mermaid::Link::TYPES = T.let(T.unsafe(nil), Array) + +# This class represents a node in a flowchart. Unlike the Link class, it can +# be used directly. It is the return value of the #node method, and is meant +# to be passed around to #link methods to create links between nodes. +# +# source://syntax_tree//lib/syntax_tree/mermaid.rb#121 +class SyntaxTree::Mermaid::Node + # @return [Node] a new instance of Node + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#126 + def initialize(id, label, shape); end + + # Returns the value of attribute id. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#124 + def id; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#124 + def label; end + + # source://syntax_tree//lib/syntax_tree/mermaid.rb#134 + def render; end + + # Returns the value of attribute shape. + # + # source://syntax_tree//lib/syntax_tree/mermaid.rb#124 + def shape; end + + private + + # source://syntax_tree//lib/syntax_tree/mermaid.rb#141 + def bounds; end +end + +# source://syntax_tree//lib/syntax_tree/mermaid.rb#122 +SyntaxTree::Mermaid::Node::SHAPES = T.let(T.unsafe(nil), Array) + +# This visitor transforms the AST into a mermaid flow chart. +# +# source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#5 +class SyntaxTree::MermaidVisitor < ::SyntaxTree::FieldVisitor + # @return [MermaidVisitor] a new instance of MermaidVisitor + # + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#8 + def initialize; end + + # Returns the value of attribute flowchart. + # + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#6 + def flowchart; end + + # Returns the value of attribute target. + # + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#6 + def target; end + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#13 + def visit_program(node); end + + private + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#20 + def comments(node); end + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#24 + def field(name, value); end + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#37 + def list(name, values); end + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#43 + def node(node, type); end + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#55 + def pairs(name, values); end + + # source://syntax_tree//lib/syntax_tree/mermaid_visitor.rb#65 + def text(name, value); end +end + +# MethodAddBlock represents a method call with a block argument. +# +# method {} +# +# source://syntax_tree//lib/syntax_tree/node.rb#7563 +class SyntaxTree::MethodAddBlock < ::SyntaxTree::Node + # @return [MethodAddBlock] a new instance of MethodAddBlock + # + # source://syntax_tree//lib/syntax_tree/node.rb#7573 + def initialize(call:, block:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7622 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7580 + def accept(visitor); end + + # [BlockNode] the block being sent with the method call + # + # source://syntax_tree//lib/syntax_tree/node.rb#7568 + def block; end + + # [ARef | CallNode | Command | CommandCall | Super | ZSuper] the method call + # + # source://syntax_tree//lib/syntax_tree/node.rb#7565 + def call; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7584 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7571 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7588 + def copy(call: T.unsafe(nil), block: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7584 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7602 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7606 + def format(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7627 + def format_contents(q); end +end + +# ModuleDeclaration represents defining a module using the +module+ keyword. +# +# module Namespace +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#7779 +class SyntaxTree::ModuleDeclaration < ::SyntaxTree::Node + # @return [ModuleDeclaration] a new instance of ModuleDeclaration + # + # source://syntax_tree//lib/syntax_tree/node.rb#7789 + def initialize(constant:, bodystmt:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7849 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7796 + def accept(visitor); end + + # [BodyStmt] the expressions to be executed in the context of the module + # + # source://syntax_tree//lib/syntax_tree/node.rb#7784 + def bodystmt; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7800 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7787 + def comments; end + + # [ConstPathRef | ConstRef | TopConstRef] the name of the module + # + # source://syntax_tree//lib/syntax_tree/node.rb#7781 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7804 + def copy(constant: T.unsafe(nil), bodystmt: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7800 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7818 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7827 + def format(q); end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#7856 + def format_declaration(q); end +end + +# This visitor walks through the tree and copies each node as it is being +# visited. This is useful for mutating the tree before it is formatted. +# +# source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#6 +class SyntaxTree::MutationVisitor < ::SyntaxTree::BasicVisitor + # @return [MutationVisitor] a new instance of MutationVisitor + # + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#9 + def initialize; end + + # Create a new mutation based on the given query that will mutate the node + # using the given block. The block should return a new node that will take + # the place of the given node in the tree. These blocks frequently make use + # of the `copy` method on nodes to create a new node with the same + # properties as the original node. + # + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#18 + def mutate(query, &block); end + + # Returns the value of attribute mutations. + # + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#7 + def mutations; end + + # This is the base visit method for each node in the tree. It first creates + # a copy of the node using the visit_* methods defined below. Then it checks + # each mutation in sequence and calls it if it finds a match. + # + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#25 + def visit(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#38 + def visit_BEGIN(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#46 + def visit_CHAR(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#51 + def visit_END(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#59 + def visit___end__(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#64 + def visit_alias(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#69 + def visit_aref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#74 + def visit_aref_field(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#89 + def visit_arg_block(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#79 + def visit_arg_paren(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#94 + def visit_arg_star(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#84 + def visit_args(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#99 + def visit_args_forward(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#104 + def visit_array(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#112 + def visit_aryptn(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#122 + def visit_assign(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#127 + def visit_assoc(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#132 + def visit_assoc_splat(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#137 + def visit_backref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#142 + def visit_backtick(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#147 + def visit_bare_assoc_hash(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#152 + def visit_begin(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#162 + def visit_binary(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#295 + def visit_block(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#167 + def visit_block_var(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#172 + def visit_blockarg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#177 + def visit_bodystmt(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#187 + def visit_break(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#192 + def visit_call(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#202 + def visit_case(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#216 + def visit_class(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#225 + def visit_comma(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#230 + def visit_command(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#239 + def visit_command_call(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#249 + def visit_comment(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#254 + def visit_const(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#259 + def visit_const_path_field(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#264 + def visit_const_path_ref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#269 + def visit_const_ref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#274 + def visit_cvar(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#279 + def visit_def(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#290 + def visit_defined(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#313 + def visit_dyna_symbol(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#318 + def visit_else(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#326 + def visit_elsif(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#334 + def visit_embdoc(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#339 + def visit_embexpr_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#344 + def visit_embexpr_end(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#349 + def visit_embvar(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#354 + def visit_ensure(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#362 + def visit_excessed_comma(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#367 + def visit_field(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#375 + def visit_float(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#380 + def visit_fndptn(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#390 + def visit_for(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#395 + def visit_gvar(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#400 + def visit_hash(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#405 + def visit_heredoc(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#414 + def visit_heredoc_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#419 + def visit_heredoc_end(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#424 + def visit_hshptn(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#434 + def visit_ident(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#439 + def visit_if(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#448 + def visit_if_op(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#453 + def visit_imaginary(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#458 + def visit_in(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#466 + def visit_int(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#471 + def visit_ivar(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#476 + def visit_kw(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#481 + def visit_kwrest_param(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#486 + def visit_label(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#491 + def visit_label_end(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#496 + def visit_lambda(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#504 + def visit_lambda_var(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#509 + def visit_lbrace(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#514 + def visit_lbracket(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#519 + def visit_lparen(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#524 + def visit_massign(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#529 + def visit_method_add_block(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#534 + def visit_mlhs(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#539 + def visit_mlhs_paren(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#544 + def visit_module(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#552 + def visit_mrhs(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#557 + def visit_next(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#812 + def visit_not(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#562 + def visit_op(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#567 + def visit_opassign(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#572 + def visit_params(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#588 + def visit_paren(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#593 + def visit_period(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#157 + def visit_pinned_begin(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#854 + def visit_pinned_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#598 + def visit_program(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#603 + def visit_qsymbols(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#611 + def visit_qsymbols_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#616 + def visit_qwords(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#624 + def visit_qwords_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#304 + def visit_range(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#211 + def visit_rassign(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#629 + def visit_rational(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#634 + def visit_rbrace(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#639 + def visit_rbracket(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#644 + def visit_redo(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#654 + def visit_regexp_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#649 + def visit_regexp_content(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#659 + def visit_regexp_end(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#664 + def visit_regexp_literal(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#674 + def visit_rescue(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#669 + def visit_rescue_ex(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#684 + def visit_rescue_mod(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#689 + def visit_rest_param(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#694 + def visit_retry(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#699 + def visit_return(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#704 + def visit_rparen(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#709 + def visit_sclass(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#714 + def visit_statements(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#724 + def visit_string_concat(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#719 + def visit_string_content(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#729 + def visit_string_dvar(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#734 + def visit_string_embexpr(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#739 + def visit_string_literal(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#744 + def visit_super(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#749 + def visit_symbeg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#754 + def visit_symbol_content(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#759 + def visit_symbol_literal(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#764 + def visit_symbols(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#772 + def visit_symbols_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#777 + def visit_tlambda(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#782 + def visit_tlambeg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#787 + def visit_top_const_field(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#792 + def visit_top_const_ref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#797 + def visit_tstring_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#802 + def visit_tstring_content(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#807 + def visit_tstring_end(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#817 + def visit_unary(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#822 + def visit_undef(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#827 + def visit_unless(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#836 + def visit_until(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#844 + def visit_var_field(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#849 + def visit_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#859 + def visit_vcall(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#864 + def visit_void_stmt(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#869 + def visit_when(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#878 + def visit_while(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#886 + def visit_word(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#891 + def visit_words(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#899 + def visit_words_beg(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#904 + def visit_xstring(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#909 + def visit_xstring_literal(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#914 + def visit_yield(node); end + + # source://syntax_tree//lib/syntax_tree/mutation_visitor.rb#919 + def visit_zsuper(node); end +end + +# Next represents using the +next+ keyword. +# +# next +# +# The +next+ keyword can also optionally be called with an argument: +# +# next value +# +# +next+ can even be called with multiple arguments, but only if parentheses +# are omitted, as in: +# +# next first, second, third +# +# If a single value is being given, parentheses can be used, as in: +# +# next(value) +# +# source://syntax_tree//lib/syntax_tree/node.rb#7933 +class SyntaxTree::Next < ::SyntaxTree::Node + # @return [Next] a new instance of Next + # + # source://syntax_tree//lib/syntax_tree/node.rb#7940 + def initialize(arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7975 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7946 + def accept(visitor); end + + # [Args] the arguments passed to the next keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#7935 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7950 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7938 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7954 + def copy(arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7950 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#7967 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#7971 + def format(q); end +end + +# This is the parent node of all of the syntax tree nodes. It's pretty much +# exclusively here to make it easier to operate with the tree in cases where +# you're trying to monkey-patch or strictly type. +# +# source://syntax_tree//lib/syntax_tree/node.rb#105 +class SyntaxTree::Node + # @raise [NotImplementedError] + # + # source://syntax_tree//lib/syntax_tree/node.rb#109 + def accept(visitor); end + + # @raise [NotImplementedError] + # + # source://syntax_tree//lib/syntax_tree/node.rb#113 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#149 + def construct_keys; end + + # @raise [NotImplementedError] + # + # source://syntax_tree//lib/syntax_tree/node.rb#117 + def deconstruct; end + + # @raise [NotImplementedError] + # + # source://syntax_tree//lib/syntax_tree/node.rb#121 + def deconstruct_keys(keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#133 + def end_char; end + + # @raise [NotImplementedError] + # + # source://syntax_tree//lib/syntax_tree/node.rb#125 + def format(q); end + + # [Location] the location of this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#107 + def location; end + + # source://syntax_tree//lib/syntax_tree/node.rb#137 + def pretty_print(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#129 + def start_char; end + + # source://syntax_tree//lib/syntax_tree/node.rb#141 + def to_json(*opts); end + + # source://syntax_tree//lib/syntax_tree/node.rb#145 + def to_mermaid; end +end + +# Not represents the unary +not+ method being called on an expression. +# +# not value +# +# source://syntax_tree//lib/syntax_tree/node.rb#11077 +class SyntaxTree::Not < ::SyntaxTree::Node + # @return [Not] a new instance of Not + # + # source://syntax_tree//lib/syntax_tree/node.rb#11088 + def initialize(statement:, parentheses:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11150 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11095 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11099 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11086 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11103 + def copy(statement: T.unsafe(nil), parentheses: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11099 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11117 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11126 + def format(q); end + + # [boolean] whether or not parentheses were used + # + # source://syntax_tree//lib/syntax_tree/node.rb#11082 + def parentheses; end + + # [boolean] whether or not parentheses were used + # + # source://syntax_tree//lib/syntax_tree/node.rb#11082 + def parentheses?; end + + # [nil | Node] the statement on which to operate + # + # source://syntax_tree//lib/syntax_tree/node.rb#11079 + def statement; end +end + +# Op represents an operator literal in the source. +# +# 1 + 2 +# +# In the example above, the Op node represents the + operator. +# +# source://syntax_tree//lib/syntax_tree/node.rb#7985 +class SyntaxTree::Op < ::SyntaxTree::Node + # @return [Op] a new instance of Op + # + # source://syntax_tree//lib/syntax_tree/node.rb#7995 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8028 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8002 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8006 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#7993 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8010 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8006 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8020 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8024 + def format(q); end + + # [Symbol] the symbol version of the value + # + # source://syntax_tree//lib/syntax_tree/node.rb#7990 + def name; end + + # [String] the operator + # + # source://syntax_tree//lib/syntax_tree/node.rb#7987 + def value; end +end + +# OpAssign represents assigning a value to a variable or constant using an +# operator like += or ||=. +# +# variable += value +# +# source://syntax_tree//lib/syntax_tree/node.rb#8038 +class SyntaxTree::OpAssign < ::SyntaxTree::Node + # @return [OpAssign] a new instance of OpAssign + # + # source://syntax_tree//lib/syntax_tree/node.rb#8052 + def initialize(target:, operator:, value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8111 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8060 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8064 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8050 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8068 + def copy(target: T.unsafe(nil), operator: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8064 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8083 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8093 + def format(q); end + + # [Op] the operator being used for the assignment + # + # source://syntax_tree//lib/syntax_tree/node.rb#8044 + def operator; end + + # [ARefField | ConstPathField | Field | TopConstField | VarField] the target + # to assign the result of the expression to + # + # source://syntax_tree//lib/syntax_tree/node.rb#8041 + def target; end + + # [Node] the expression to be assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#8047 + def value; end + + private + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#8118 + def skip_indent?; end +end + +# The list of nodes that represent patterns inside of pattern matching so that +# when a pattern is being printed it knows if it's nested. +# +# source://syntax_tree//lib/syntax_tree/node.rb#6174 +SyntaxTree::PATTERNS = T.let(T.unsafe(nil), Array) + +# Params represents defining parameters on a method or lambda. +# +# def method(param) end +# +# source://syntax_tree//lib/syntax_tree/node.rb#8196 +class SyntaxTree::Params < ::SyntaxTree::Node + # @return [Params] a new instance of Params + # + # source://syntax_tree//lib/syntax_tree/node.rb#8298 + def initialize(location:, requireds: T.unsafe(nil), optionals: T.unsafe(nil), rest: T.unsafe(nil), posts: T.unsafe(nil), keywords: T.unsafe(nil), keyword_rest: T.unsafe(nil), block: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8428 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8328 + def accept(visitor); end + + # Returns a range representing the possible number of arguments accepted + # by this params node not including the block. For example: + # + # def foo(a, b = 1, c:, d: 2, &block) + # ... + # end + # + # has arity 2..4. + # + # source://syntax_tree//lib/syntax_tree/node.rb#8451 + def arity; end + + # [nil | BlockArg] the optional block parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8293 + def block; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8332 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8296 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8346 + def copy(location: T.unsafe(nil), requireds: T.unsafe(nil), optionals: T.unsafe(nil), rest: T.unsafe(nil), posts: T.unsafe(nil), keywords: T.unsafe(nil), keyword_rest: T.unsafe(nil), block: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8332 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8374 + def deconstruct_keys(_keys); end + + # Params nodes are the most complicated in the tree. Occasionally you want + # to know if they are "empty", which means not having any parameters + # declared. This logic accesses every kind of parameter and determines if + # it's missing. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#8323 + def empty?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8388 + def format(q); end + + # [nil | :nil | ArgsForward | KwRestParam] the optional keyword rest + # parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8290 + def keyword_rest; end + + # [Array[ [ Label, nil | Node ] ]] any keyword parameters and their + # optional default values + # + # source://syntax_tree//lib/syntax_tree/node.rb#8286 + def keywords; end + + # [Array[ [ Ident, Node ] ]] any optional parameters and their default + # values + # + # source://syntax_tree//lib/syntax_tree/node.rb#8274 + def optionals; end + + # [Array[ Ident | MLHSParen ]] any positional parameters that exist after a + # rest parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8282 + def posts; end + + # [Array[ Ident | MLHSParen ]] any required parameters + # + # source://syntax_tree//lib/syntax_tree/node.rb#8270 + def requireds; end + + # [nil | ArgsForward | ExcessedComma | RestParam] the optional rest + # parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8278 + def rest; end + + private + + # source://syntax_tree//lib/syntax_tree/node.rb#8467 + def format_contents(q, parts); end +end + +# Formats the keyword position of the parameters. This includes the label, +# as well as an optional default value. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8224 +class SyntaxTree::Params::KeywordFormatter + # @return [KeywordFormatter] a new instance of KeywordFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8231 + def initialize(name, value); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8236 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8240 + def format(q); end + + # [Ident] the name of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8226 + def name; end + + # [nil | Node] the value of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8229 + def value; end +end + +# Formats the keyword_rest position of the parameters. This can be the **nil +# syntax, the ... syntax, or the ** syntax. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8252 +class SyntaxTree::Params::KeywordRestFormatter + # @return [KeywordRestFormatter] a new instance of KeywordRestFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8256 + def initialize(value); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8260 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8264 + def format(q); end + + # [:nil | ArgsForward | KwRestParam] the value of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8254 + def value; end +end + +# Formats the optional position of the parameters. This includes the label, +# as well as the default value. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8199 +class SyntaxTree::Params::OptionalFormatter + # @return [OptionalFormatter] a new instance of OptionalFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8206 + def initialize(name, value); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8211 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8215 + def format(q); end + + # [Ident] the name of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8201 + def name; end + + # [Node] the value of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#8204 + def value; end +end + +# Paren represents using balanced parentheses in a couple places in a Ruby +# program. In general parentheses can be used anywhere a Ruby expression can +# be used. +# +# (1 + 2) +# +# source://syntax_tree//lib/syntax_tree/node.rb#8479 +class SyntaxTree::Paren < ::SyntaxTree::Node + # @return [Paren] a new instance of Paren + # + # source://syntax_tree//lib/syntax_tree/node.rb#8489 + def initialize(lparen:, contents:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8545 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8496 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8500 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8487 + def comments; end + + # [nil | Node] the expression inside the parentheses + # + # source://syntax_tree//lib/syntax_tree/node.rb#8484 + def contents; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8504 + def copy(lparen: T.unsafe(nil), contents: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8500 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8518 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8527 + def format(q); end + + # [LParen] the left parenthesis that opened this statement + # + # source://syntax_tree//lib/syntax_tree/node.rb#8481 + def lparen; end +end + +# If you have a modifier statement (for instance a modifier if statement or a +# modifier while loop) there are times when you need to wrap the entire +# statement in parentheses. This occurs when you have something like: +# +# foo[:foo] = +# if bar? +# baz +# end +# +# Normally we would shorten this to an inline version, which would result in: +# +# foo[:foo] = baz if bar? +# +# but this actually has different semantic meaning. The first example will +# result in a nil being inserted into the hash for the :foo key, whereas the +# second example will result in an empty hash because the if statement applies +# to the entire assignment. +# +# We can fix this in a couple of ways. We can use the then keyword, as in: +# +# foo[:foo] = if bar? then baz end +# +# But this isn't used very often. We can also just leave it as is with the +# multi-line version, but for a short predicate and short value it looks +# verbose. The last option and the one used here is to add parentheses on +# both sides of the expression, as in: +# +# foo[:foo] = (baz if bar?) +# +# This approach maintains the nice conciseness of the inline version, while +# keeping the correct semantic meaning. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8155 +module SyntaxTree::Parentheses + class << self + # source://syntax_tree//lib/syntax_tree/node.rb#8175 + def break(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8167 + def flat(q); end + end +end + +# source://syntax_tree//lib/syntax_tree/node.rb#8156 +SyntaxTree::Parentheses::NODES = T.let(T.unsafe(nil), Array) + +# Parser is a subclass of the Ripper library that subscribes to the stream of +# tokens and nodes coming from the parser and builds up a syntax tree. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#6 +class SyntaxTree::Parser < ::Ripper + # @return [Parser] a new instance of Parser + # + # source://syntax_tree//lib/syntax_tree/parser.rb#116 + def initialize(source, *_arg1); end + + # [Array[ Comment | EmbDoc ]] the list of comments that have been found + # while parsing the source. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#114 + def comments; end + + # [Array[ SingleByteString | MultiByteString ]] the list of objects that + # represent the start of each line in character offsets + # + # source://syntax_tree//lib/syntax_tree/parser.rb#105 + def line_counts; end + + # [String] the source being parsed + # + # source://syntax_tree//lib/syntax_tree/parser.rb#101 + def source; end + + # [Array[ untyped ]] a running list of tokens that have been found in the + # source. This list changes a lot as certain nodes will "consume" these + # tokens to determine their bounds. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#110 + def tokens; end + + private + + # Attaches comments to the nodes in the tree that most closely correspond to + # the location of the comments. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2911 + def attach_comments(program, comments); end + + # This represents the current place in the source string that we've gotten + # to so far. We have a memoized line_counts object that we can use to get + # the number of characters that we've had to go through to get to the + # beginning of this line, then we add the number of columns into this line + # that we've gone through. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#197 + def char_pos; end + + # @raise [ParseError] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#295 + def consume_error(name, location); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#312 + def consume_keyword(name); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#318 + def consume_operator(name); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#300 + def consume_token(type); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#306 + def consume_tstring_end(location); end + + # This represents the current column we're in relative to the beginning of + # the current line. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#203 + def current_column; end + + # A helper function to find a :: operator. We do special handling instead of + # using find_token here because we don't pop off all of the :: operators so + # you could end up getting the wrong information if you have for instance + # ::X::Y::Z. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#328 + def find_colon2_before(const); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#272 + def find_keyword(name); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#277 + def find_keyword_between(name, left, right); end + + # Finds the next position in the source string that begins a statement. This + # is used to bind statements lists and make sure they don't include a + # preceding comment. For example, we want the following comment to be + # attached to the class node and not the statement node: + # + # ... + # end + # + # By finding the next non-space character, we can make sure that the bounds + # of the statement list are correct. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#349 + def find_next_statement_start(position); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#290 + def find_operator(name); end + + # As we build up a list of tokens, we'll periodically need to go backwards + # and find the ones that we've already hit in order to determine the + # location information for nodes that use them. For example, if you have a + # module node then you'll look backward for a kw token to determine your + # start location. + # + # This works with nesting since we're deleting tokens from the list once + # they've been used up. For example if you had nested module declarations + # then the innermost declaration would grab the last kw node that matches + # "module" (which would happen to be the innermost keyword). Then the outer + # one would only be able to grab the first one. In this way all of the + # tokens act as their own stack. + # + # If we're expecting to be able to find a token and consume it, but can't + # actually find it, then we need to raise an error. This is _usually_ caused + # by a syntax error in the source that we're printing. It could also be + # caused by accidentally attempting to consume a token twice by two + # different parser event handlers. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#254 + def find_token(type); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#259 + def find_token_between(type, left, right); end + + # Returns the current location that is being looked at for the parser for + # the purpose of locating the error. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#210 + def find_token_error(location); end + + # Ripper doesn't support capturing lambda local variables until 3.2. To + # mitigate this, we have to parse that code for ourselves. We use the range + # from the parentheses to find where we _should_ be looking. Then we check + # if the resulting tokens match a pattern that we determine means that the + # declaration has block-local variables. Once it does, we parse those out + # and convert them into Ident nodes. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2362 + def lambda_locals(source); end + + # Responsible for finding the nearest nodes to the given comment within the + # context of the given encapsulating node. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2946 + def nearest_nodes(node, comment); end + + # :call-seq: + # on_BEGIN: (Statements statements) -> BEGINBlock + # + # source://syntax_tree//lib/syntax_tree/parser.rb#371 + def on_BEGIN(statements); end + + # :call-seq: + # on_CHAR: (String value) -> CHAR + # + # source://syntax_tree//lib/syntax_tree/parser.rb#395 + def on_CHAR(value); end + + # :call-seq: + # on_END: (Statements statements) -> ENDBlock + # + # source://syntax_tree//lib/syntax_tree/parser.rb#410 + def on_END(statements); end + + # :call-seq: + # on___end__: (String value) -> EndContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#434 + def on___end__(value); end + + # :call-seq: + # on_alias: ( + # (DynaSymbol | SymbolLiteral) left, + # (DynaSymbol | SymbolLiteral) right + # ) -> AliasNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#453 + def on_alias(left, right); end + + # If we encounter a parse error, just immediately bail out so that our + # runner can catch it. + # + # @raise [ParseError] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2863 + def on_alias_error(error, *_arg1); end + + # :call-seq: + # on_aref: (untyped collection, (nil | Args) index) -> ARef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#465 + def on_aref(collection, index); end + + # :call-seq: + # on_aref_field: ( + # untyped collection, + # (nil | Args) index + # ) -> ARefField + # + # source://syntax_tree//lib/syntax_tree/parser.rb#481 + def on_aref_field(collection, index); end + + # :call-seq: + # on_arg_paren: ( + # (nil | Args | ArgsForward) arguments + # ) -> ArgParen + # + # source://syntax_tree//lib/syntax_tree/parser.rb#500 + def on_arg_paren(arguments); end + + # :call-seq: + # on_args_add: (Args arguments, untyped argument) -> Args + # + # source://syntax_tree//lib/syntax_tree/parser.rb#522 + def on_args_add(arguments, argument); end + + # :call-seq: + # on_args_add_block: ( + # Args arguments, + # (false | untyped) block + # ) -> Args + # + # source://syntax_tree//lib/syntax_tree/parser.rb#543 + def on_args_add_block(arguments, block); end + + # :call-seq: + # on_args_add_star: (Args arguments, untyped star) -> Args + # + # source://syntax_tree//lib/syntax_tree/parser.rb#581 + def on_args_add_star(arguments, argument); end + + # :call-seq: + # on_args_forward: () -> ArgsForward + # + # source://syntax_tree//lib/syntax_tree/parser.rb#603 + def on_args_forward; end + + # :call-seq: + # on_args_new: () -> Args + # + # source://syntax_tree//lib/syntax_tree/parser.rb#611 + def on_args_new; end + + # :call-seq: + # on_array: ((nil | Args) contents) -> + # ArrayLiteral | QSymbols | QWords | Symbols | Words + # + # source://syntax_tree//lib/syntax_tree/parser.rb#622 + def on_array(contents); end + + # :call-seq: + # on_aryptn: ( + # (nil | VarRef) constant, + # (nil | Array[untyped]) requireds, + # (nil | VarField) rest, + # (nil | Array[untyped]) posts + # ) -> AryPtn + # + # source://syntax_tree//lib/syntax_tree/parser.rb#701 + def on_aryptn(constant, requireds, rest, posts); end + + # :call-seq: + # on_assign: ( + # ( + # ARefField | + # ConstPathField | + # Field | + # TopConstField | + # VarField + # ) target, + # untyped value + # ) -> Assign + # + # source://syntax_tree//lib/syntax_tree/parser.rb#756 + def on_assign(target, value); end + + # If we encounter a parse error, just immediately bail out so that our + # runner can catch it. + # + # @raise [ParseError] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2863 + def on_assign_error(error, *_arg1); end + + # :call-seq: + # on_assoc_new: (untyped key, untyped value) -> Assoc + # + # source://syntax_tree//lib/syntax_tree/parser.rb#766 + def on_assoc_new(key, value); end + + # :call-seq: + # on_assoc_splat: (untyped value) -> AssocSplat + # + # source://syntax_tree//lib/syntax_tree/parser.rb#775 + def on_assoc_splat(value); end + + # :call-seq: + # on_backref: (String value) -> Backref + # + # source://syntax_tree//lib/syntax_tree/parser.rb#790 + def on_backref(value); end + + # :call-seq: + # on_backtick: (String value) -> Backtick + # + # source://syntax_tree//lib/syntax_tree/parser.rb#805 + def on_backtick(value); end + + # :call-seq: + # on_bare_assoc_hash: ( + # Array[AssocNew | AssocSplat] assocs + # ) -> BareAssocHash + # + # source://syntax_tree//lib/syntax_tree/parser.rb#826 + def on_bare_assoc_hash(assocs); end + + # :call-seq: + # on_begin: (untyped bodystmt) -> Begin | PinnedBegin + # + # source://syntax_tree//lib/syntax_tree/parser.rb#835 + def on_begin(bodystmt); end + + # :call-seq: + # on_binary: ( + # untyped left, + # (Op | Symbol) operator, + # untyped right + # ) -> Binary + # + # source://syntax_tree//lib/syntax_tree/parser.rb#874 + def on_binary(left, operator, right); end + + # :call-seq: + # on_block_var: (Params params, (nil | Array[Ident]) locals) -> BlockVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#906 + def on_block_var(params, locals); end + + # :call-seq: + # on_blockarg: (Ident name) -> BlockArg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#946 + def on_blockarg(name); end + + # :call-seq: + # on_bodystmt: ( + # Statements statements, + # (nil | Rescue) rescue_clause, + # (nil | Statements) else_clause, + # (nil | Ensure) ensure_clause + # ) -> BodyStmt + # + # source://syntax_tree//lib/syntax_tree/parser.rb#962 + def on_bodystmt(statements, rescue_clause, else_clause, ensure_clause); end + + # :call-seq: + # on_brace_block: ( + # (nil | BlockVar) block_var, + # Statements statements + # ) -> BlockNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#988 + def on_brace_block(block_var, statements); end + + # :call-seq: + # on_break: (Args arguments) -> Break + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1025 + def on_break(arguments); end + + # :call-seq: + # on_call: ( + # untyped receiver, + # (:"::" | Op | Period) operator, + # (:call | Backtick | Const | Ident | Op) message + # ) -> CallNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1040 + def on_call(receiver, operator, message); end + + # :call-seq: + # on_case: (untyped value, untyped consequent) -> Case | RAssign + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1061 + def on_case(value, consequent); end + + # :call-seq: + # on_class: ( + # (ConstPathRef | ConstRef | TopConstRef) constant, + # untyped superclass, + # BodyStmt bodystmt + # ) -> ClassDeclaration + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1096 + def on_class(constant, superclass, bodystmt); end + + # If we encounter a parse error, just immediately bail out so that our + # runner can catch it. + # + # @raise [ParseError] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2863 + def on_class_name_error(error, *_arg1); end + + # :call-seq: + # on_comma: (String value) -> Comma + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1120 + def on_comma(value); end + + # :call-seq: + # on_command: ((Const | Ident) message, Args arguments) -> Command + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1139 + def on_command(message, arguments); end + + # :call-seq: + # on_command_call: ( + # untyped receiver, + # (:"::" | Op | Period) operator, + # (Const | Ident | Op) message, + # (nil | Args) arguments + # ) -> CommandCall + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1155 + def on_command_call(receiver, operator, message, arguments); end + + # :call-seq: + # on_comment: (String value) -> Comment + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1170 + def on_comment(value); end + + # :call-seq: + # on_const: (String value) -> Const + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1208 + def on_const(value); end + + # :call-seq: + # on_const_path_field: (untyped parent, Const constant) -> + # ConstPathField | Field + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1224 + def on_const_path_field(parent, constant); end + + # :call-seq: + # on_const_path_ref: (untyped parent, Const constant) -> ConstPathRef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1243 + def on_const_path_ref(parent, constant); end + + # :call-seq: + # on_const_ref: (Const constant) -> ConstRef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1253 + def on_const_ref(constant); end + + # :call-seq: + # on_cvar: (String value) -> CVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1259 + def on_cvar(value); end + + # :call-seq: + # on_def: ( + # (Backtick | Const | Ident | Kw | Op) name, + # (nil | Params | Paren) params, + # untyped bodystmt + # ) -> DefNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1278 + def on_def(name, params, bodystmt); end + + # :call-seq: + # on_defined: (untyped value) -> Defined + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1346 + def on_defined(value); end + + # :call-seq: + # on_defs: ( + # untyped target, + # (Op | Period) operator, + # (Backtick | Const | Ident | Kw | Op) name, + # (Params | Paren) params, + # BodyStmt bodystmt + # ) -> DefNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1370 + def on_defs(target, operator, name, params, bodystmt); end + + # :call-seq: + # on_do_block: (BlockVar block_var, BodyStmt bodystmt) -> BlockNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1435 + def on_do_block(block_var, bodystmt); end + + # :call-seq: + # on_dot2: ((nil | untyped) left, (nil | untyped) right) -> RangeNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1459 + def on_dot2(left, right); end + + # :call-seq: + # on_dot3: ((nil | untyped) left, (nil | untyped) right) -> RangeNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1475 + def on_dot3(left, right); end + + # :call-seq: + # on_dyna_symbol: (StringContent string_content) -> DynaSymbol + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1491 + def on_dyna_symbol(string_content); end + + # :call-seq: + # on_else: (Statements statements) -> Else + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1517 + def on_else(statements); end + + # :call-seq: + # on_elsif: ( + # untyped predicate, + # Statements statements, + # (nil | Elsif | Else) consequent + # ) -> Elsif + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1558 + def on_elsif(predicate, statements, consequent); end + + # :call-seq: + # on_embdoc: (String value) -> EmbDoc + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1588 + def on_embdoc(value); end + + # :call-seq: + # on_embdoc_beg: (String value) -> EmbDoc + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1595 + def on_embdoc_beg(value); end + + # :call-seq: + # on_embdoc_end: (String value) -> EmbDoc + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1606 + def on_embdoc_end(value); end + + # :call-seq: + # on_embexpr_beg: (String value) -> EmbExprBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1630 + def on_embexpr_beg(value); end + + # :call-seq: + # on_embexpr_end: (String value) -> EmbExprEnd + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1649 + def on_embexpr_end(value); end + + # :call-seq: + # on_embvar: (String value) -> EmbVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1668 + def on_embvar(value); end + + # :call-seq: + # on_ensure: (Statements statements) -> Ensure + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1687 + def on_ensure(statements); end + + # The handler for this event accepts no parameters (though in previous + # versions of Ruby it accepted a string literal with a value of ","). + # + # :call-seq: + # on_excessed_comma: () -> ExcessedComma + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1714 + def on_excessed_comma(*_arg0); end + + # :call-seq: + # on_fcall: ((Const | Ident) value) -> CallNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1722 + def on_fcall(value); end + + # :call-seq: + # on_field: ( + # untyped parent, + # (:"::" | Op | Period) operator + # (Const | Ident) name + # ) -> Field + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1738 + def on_field(parent, operator, name); end + + # :call-seq: + # on_float: (String value) -> FloatLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1749 + def on_float(value); end + + # :call-seq: + # on_fndptn: ( + # (nil | untyped) constant, + # VarField left, + # Array[untyped] values, + # VarField right + # ) -> FndPtn + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1769 + def on_fndptn(constant, left, values, right); end + + # :call-seq: + # on_for: ( + # (MLHS | VarField) value, + # untyped collection, + # Statements statements + # ) -> For + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1821 + def on_for(index, collection, statements); end + + # :call-seq: + # on_gvar: (String value) -> GVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1859 + def on_gvar(value); end + + # :call-seq: + # on_hash: ((nil | Array[AssocNew | AssocSplat]) assocs) -> HashLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1874 + def on_hash(assocs); end + + # :call-seq: + # on_heredoc_beg: (String value) -> HeredocBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1887 + def on_heredoc_beg(value); end + + # :call-seq: + # on_heredoc_dedent: (StringContent string, Integer width) -> Heredoc + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1906 + def on_heredoc_dedent(string, width); end + + # :call-seq: + # on_heredoc_end: (String value) -> Heredoc + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1920 + def on_heredoc_end(value); end + + # :call-seq: + # on_hshptn: ( + # (nil | untyped) constant, + # Array[[Label | StringContent, untyped]] keywords, + # (nil | VarField) keyword_rest + # ) -> HshPtn + # + # source://syntax_tree//lib/syntax_tree/parser.rb#1956 + def on_hshptn(constant, keywords, keyword_rest); end + + # :call-seq: + # on_ident: (String value) -> Ident + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2026 + def on_ident(value); end + + # :call-seq: + # on_if: ( + # untyped predicate, + # Statements statements, + # (nil | Elsif | Else) consequent + # ) -> IfNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2045 + def on_if(predicate, statements, consequent); end + + # :call-seq: + # on_if_mod: (untyped predicate, untyped statement) -> IfNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2085 + def on_if_mod(predicate, statement); end + + # :call-seq: + # on_ifop: (untyped predicate, untyped truthy, untyped falsy) -> IfOp + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2074 + def on_ifop(predicate, truthy, falsy); end + + # :call-seq: + # on_imaginary: (String value) -> Imaginary + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2107 + def on_imaginary(value); end + + # :call-seq: + # on_in: (RAssign pattern, nil statements, nil consequent) -> RAssign + # | ( + # untyped pattern, + # Statements statements, + # (nil | In | Else) consequent + # ) -> In + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2127 + def on_in(pattern, statements, consequent); end + + # :call-seq: + # on_int: (String value) -> Int + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2172 + def on_int(value); end + + # :call-seq: + # on_ivar: (String value) -> IVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2187 + def on_ivar(value); end + + # :call-seq: + # on_kw: (String value) -> Kw + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2202 + def on_kw(value); end + + # :call-seq: + # on_kwrest_param: ((nil | Ident) name) -> KwRestParam + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2221 + def on_kwrest_param(name); end + + # :call-seq: + # on_label: (String value) -> Label + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2230 + def on_label(value); end + + # :call-seq: + # on_label_end: (String value) -> LabelEnd + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2245 + def on_label_end(value); end + + # :call-seq: + # on_lambda: ( + # (Params | Paren) params, + # (BodyStmt | Statements) statements + # ) -> Lambda + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2267 + def on_lambda(params, statements); end + + # :call-seq: + # on_lambda_var: (Params params, Array[ Ident ] locals) -> LambdaVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2349 + def on_lambda_var(params, locals); end + + # :call-seq: + # on_lbrace: (String value) -> LBrace + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2432 + def on_lbrace(value); end + + # :call-seq: + # on_lbracket: (String value) -> LBracket + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2451 + def on_lbracket(value); end + + # :call-seq: + # on_lparen: (String value) -> LParen + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2470 + def on_lparen(value); end + + # :call-seq: + # on_massign: ((MLHS | MLHSParen) target, untyped value) -> MAssign + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2493 + def on_massign(target, value); end + + # :call-seq: + # on_method_add_arg: ( + # CallNode call, + # (ArgParen | Args) arguments + # ) -> CallNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2509 + def on_method_add_arg(call, arguments); end + + # :call-seq: + # on_method_add_block: ( + # (Break | Call | Command | CommandCall, Next) call, + # Block block + # ) -> Break | MethodAddBlock + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2527 + def on_method_add_block(call, block); end + + # :call-seq: + # on_mlhs_add: ( + # MLHS mlhs, + # (ARefField | Field | Ident | MLHSParen | VarField) part + # ) -> MLHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2556 + def on_mlhs_add(mlhs, part); end + + # :call-seq: + # on_mlhs_add_post: (MLHS left, MLHS right) -> MLHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2565 + def on_mlhs_add_post(left, right); end + + # :call-seq: + # on_mlhs_add_star: ( + # MLHS mlhs, + # (nil | ARefField | Field | Ident | VarField) part + # ) -> MLHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2577 + def on_mlhs_add_star(mlhs, part); end + + # :call-seq: + # on_mlhs_new: () -> MLHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2590 + def on_mlhs_new; end + + # :call-seq: + # on_mlhs_paren: ((MLHS | MLHSParen) contents) -> MLHSParen + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2600 + def on_mlhs_paren(contents); end + + # :call-seq: + # on_module: ( + # (ConstPathRef | ConstRef | TopConstRef) constant, + # BodyStmt bodystmt + # ) -> ModuleDeclaration + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2618 + def on_module(constant, bodystmt); end + + # :call-seq: + # on_mrhs_add: (MRHS mrhs, untyped part) -> MRHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2650 + def on_mrhs_add(mrhs, part); end + + # :call-seq: + # on_mrhs_add_star: (MRHS mrhs, untyped value) -> MRHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2659 + def on_mrhs_add_star(mrhs, value); end + + # :call-seq: + # on_mrhs_new: () -> MRHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2640 + def on_mrhs_new; end + + # :call-seq: + # on_mrhs_new_from_args: (Args arguments) -> MRHS + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2681 + def on_mrhs_new_from_args(arguments); end + + # :call-seq: + # on_next: (Args arguments) -> Next + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2687 + def on_next(arguments); end + + # :call-seq: + # on_op: (String value) -> Op + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2706 + def on_op(value); end + + # :call-seq: + # on_opassign: ( + # ( + # ARefField | + # ConstPathField | + # Field | + # TopConstField | + # VarField + # ) target, + # Op operator, + # untyped value + # ) -> OpAssign + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2735 + def on_opassign(target, operator, value); end + + # If we encounter a parse error, just immediately bail out so that our + # runner can catch it. + # + # @raise [ParseError] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2863 + def on_param_error(error, *_arg1); end + + # :call-seq: + # on_params: ( + # (nil | Array[Ident]) requireds, + # (nil | Array[[Ident, untyped]]) optionals, + # (nil | ArgsForward | ExcessedComma | RestParam) rest, + # (nil | Array[Ident]) posts, + # (nil | Array[[Ident, nil | untyped]]) keywords, + # (nil | :nil | ArgsForward | KwRestParam) keyword_rest, + # (nil | :& | BlockArg) block + # ) -> Params + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2758 + def on_params(requireds, optionals, rest, posts, keywords, keyword_rest, block); end + + # :call-seq: + # on_paren: (untyped contents) -> Paren + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2823 + def on_paren(contents); end + + # If we encounter a parse error, just immediately bail out so that our + # runner can catch it. + # + # @raise [ParseError] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2863 + def on_parse_error(error, *_arg1); end + + # :call-seq: + # on_period: (String value) -> Period + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2873 + def on_period(value); end + + # :call-seq: + # on_program: (Statements statements) -> Program + # + # source://syntax_tree//lib/syntax_tree/parser.rb#2888 + def on_program(statements); end + + # :call-seq: + # on_qsymbols_add: (QSymbols qsymbols, TStringContent element) -> QSymbols + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3000 + def on_qsymbols_add(qsymbols, element); end + + # :call-seq: + # on_qsymbols_beg: (String value) -> QSymbolsBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3010 + def on_qsymbols_beg(value); end + + # :call-seq: + # on_qsymbols_new: () -> QSymbols + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3029 + def on_qsymbols_new; end + + # :call-seq: + # on_qwords_add: (QWords qwords, TStringContent element) -> QWords + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3041 + def on_qwords_add(qwords, element); end + + # :call-seq: + # on_qwords_beg: (String value) -> QWordsBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3051 + def on_qwords_beg(value); end + + # :call-seq: + # on_qwords_new: () -> QWords + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3070 + def on_qwords_new; end + + # :call-seq: + # on_rational: (String value) -> RationalLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3082 + def on_rational(value); end + + # :call-seq: + # on_rbrace: (String value) -> RBrace + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3097 + def on_rbrace(value); end + + # :call-seq: + # on_rbracket: (String value) -> RBracket + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3116 + def on_rbracket(value); end + + # :call-seq: + # on_redo: () -> Redo + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3135 + def on_redo; end + + # :call-seq: + # on_regexp_add: ( + # RegexpContent regexp_content, + # (StringDVar | StringEmbExpr | TStringContent) part + # ) -> RegexpContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3146 + def on_regexp_add(regexp_content, part); end + + # :call-seq: + # on_regexp_beg: (String value) -> RegexpBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3156 + def on_regexp_beg(value); end + + # :call-seq: + # on_regexp_end: (String value) -> RegexpEnd + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3175 + def on_regexp_end(value); end + + # :call-seq: + # on_regexp_literal: ( + # RegexpContent regexp_content, + # (nil | RegexpEnd) ending + # ) -> RegexpLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3193 + def on_regexp_literal(regexp_content, ending); end + + # :call-seq: + # on_regexp_new: () -> RegexpContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3211 + def on_regexp_new; end + + # :call-seq: + # on_rescue: ( + # (nil | [untyped] | MRHS | MRHSAddStar) exceptions, + # (nil | Field | VarField) variable, + # Statements statements, + # (nil | Rescue) consequent + # ) -> Rescue + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3228 + def on_rescue(exceptions, variable, statements, consequent); end + + # :call-seq: + # on_rescue_mod: (untyped statement, untyped value) -> RescueMod + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3281 + def on_rescue_mod(statement, value); end + + # :call-seq: + # on_rest_param: ((nil | Ident) name) -> RestParam + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3293 + def on_rest_param(name); end + + # :call-seq: + # on_retry: () -> Retry + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3302 + def on_retry; end + + # :call-seq: + # on_return: (Args arguments) -> ReturnNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3310 + def on_return(arguments); end + + # :call-seq: + # on_return0: () -> ReturnNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3321 + def on_return0; end + + # :call-seq: + # on_rparen: (String value) -> RParen + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3329 + def on_rparen(value); end + + # :call-seq: + # on_sclass: (untyped target, BodyStmt bodystmt) -> SClass + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3348 + def on_sclass(target, bodystmt); end + + # :call-seq: + # on_semicolon: (String value) -> Semicolon + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3381 + def on_semicolon(value); end + + # stmts_add is a parser event that represents a single statement inside a + # list of statements within any lexical block. It accepts as arguments the + # parent stmts node as well as an stmt which can be any expression in + # Ruby. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3400 + def on_stmts_add(statements, statement); end + + # :call-seq: + # on_stmts_new: () -> Statements + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3413 + def on_stmts_new; end + + # :call-seq: + # on_string_add: ( + # String string, + # (StringEmbExpr | StringDVar | TStringContent) part + # ) -> StringContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3426 + def on_string_add(string, part); end + + # :call-seq: + # on_string_concat: ( + # (StringConcat | StringLiteral) left, + # StringLiteral right + # ) -> StringConcat + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3443 + def on_string_concat(left, right); end + + # :call-seq: + # on_string_content: () -> StringContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3453 + def on_string_content; end + + # :call-seq: + # on_string_dvar: ((Backref | VarRef) variable) -> StringDVar + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3463 + def on_string_dvar(variable); end + + # :call-seq: + # on_string_embexpr: (Statements statements) -> StringEmbExpr + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3474 + def on_string_embexpr(statements); end + + # :call-seq: + # on_string_literal: (String string) -> Heredoc | StringLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3504 + def on_string_literal(string); end + + # :call-seq: + # on_super: ((ArgParen | Args) arguments) -> Super + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3544 + def on_super(arguments); end + + # symbeg is a token that represents the beginning of a symbol literal. In + # most cases it will contain just ":" as in the value, but if its a dynamic + # symbol being defined it will contain ":'" or ":\"". + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3556 + def on_symbeg(value); end + + # :call-seq: + # on_symbol: ( + # (Backtick | Const | CVar | GVar | Ident | IVar | Kw | Op) value + # ) -> SymbolContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3577 + def on_symbol(value); end + + # :call-seq: + # on_symbol_literal: ( + # ( + # Backtick | Const | CVar | GVar | Ident | + # IVar | Kw | Op | SymbolContent + # ) value + # ) -> SymbolLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3590 + def on_symbol_literal(value); end + + # :call-seq: + # on_symbols_add: (Symbols symbols, Word word) -> Symbols + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3606 + def on_symbols_add(symbols, word); end + + # :call-seq: + # on_symbols_beg: (String value) -> SymbolsBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3616 + def on_symbols_beg(value); end + + # :call-seq: + # on_symbols_new: () -> Symbols + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3635 + def on_symbols_new; end + + # :call-seq: + # on_tlambda: (String value) -> TLambda + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3647 + def on_tlambda(value); end + + # :call-seq: + # on_tlambeg: (String value) -> TLamBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3666 + def on_tlambeg(value); end + + # :call-seq: + # on_top_const_field: (Const constant) -> TopConstRef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3685 + def on_top_const_field(constant); end + + # :call-seq: + # on_top_const_ref: (Const constant) -> TopConstRef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3696 + def on_top_const_ref(constant); end + + # :call-seq: + # on_tstring_beg: (String value) -> TStringBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3707 + def on_tstring_beg(value); end + + # :call-seq: + # on_tstring_content: (String value) -> TStringContent + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3726 + def on_tstring_content(value); end + + # :call-seq: + # on_tstring_end: (String value) -> TStringEnd + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3741 + def on_tstring_end(value); end + + # :call-seq: + # on_unary: (:not operator, untyped statement) -> Not + # | (Symbol operator, untyped statement) -> Unary + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3761 + def on_unary(operator, statement); end + + # :call-seq: + # on_undef: (Array[DynaSymbol | SymbolLiteral] symbols) -> Undef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3804 + def on_undef(symbols); end + + # :call-seq: + # on_unless: ( + # untyped predicate, + # Statements statements, + # ((nil | Elsif | Else) consequent) + # ) -> UnlessNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3819 + def on_unless(predicate, statements, consequent); end + + # :call-seq: + # on_unless_mod: (untyped predicate, untyped statement) -> UnlessNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3848 + def on_unless_mod(predicate, statement); end + + # :call-seq: + # on_until: (untyped predicate, Statements statements) -> UntilNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3862 + def on_until(predicate, statements); end + + # :call-seq: + # on_until_mod: (untyped predicate, untyped statement) -> UntilNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3893 + def on_until_mod(predicate, statement); end + + # :call-seq: + # on_var_alias: (GVar left, (Backref | GVar) right) -> AliasNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3906 + def on_var_alias(left, right); end + + # :call-seq: + # on_var_field: ( + # (nil | Const | CVar | GVar | Ident | IVar) value + # ) -> VarField + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3920 + def on_var_field(value); end + + # :call-seq: + # on_var_ref: ((Const | CVar | GVar | Ident | IVar | Kw) value) -> VarRef + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3935 + def on_var_ref(value); end + + # :call-seq: + # on_vcall: (Ident ident) -> VCall + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3941 + def on_vcall(ident); end + + # :call-seq: + # on_void_stmt: () -> VoidStmt + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3947 + def on_void_stmt; end + + # :call-seq: + # on_when: ( + # Args arguments, + # Statements statements, + # (nil | Else | When) consequent + # ) -> When + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3960 + def on_when(arguments, statements, consequent); end + + # :call-seq: + # on_while: (untyped predicate, Statements statements) -> WhileNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3992 + def on_while(predicate, statements); end + + # :call-seq: + # on_while_mod: (untyped predicate, untyped statement) -> WhileNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4023 + def on_while_mod(predicate, statement); end + + # :call-seq: + # on_word_add: ( + # Word word, + # (StringEmbExpr | StringDVar | TStringContent) part + # ) -> Word + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4039 + def on_word_add(word, part); end + + # :call-seq: + # on_word_new: () -> Word + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4048 + def on_word_new; end + + # :call-seq: + # on_words_add: (Words words, Word word) -> Words + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4058 + def on_words_add(words, word); end + + # :call-seq: + # on_words_beg: (String value) -> WordsBeg + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4068 + def on_words_beg(value); end + + # :call-seq: + # on_words_new: () -> Words + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4087 + def on_words_new; end + + # :call-seq: + # on_xstring_add: ( + # XString xstring, + # (StringEmbExpr | StringDVar | TStringContent) part + # ) -> XString + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4106 + def on_xstring_add(xstring, part); end + + # :call-seq: + # on_xstring_literal: (XString xstring) -> Heredoc | XStringLiteral + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4130 + def on_xstring_literal(xstring); end + + # :call-seq: + # on_xstring_new: () -> XString + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4115 + def on_xstring_new; end + + # :call-seq: + # on_yield: ((Args | Paren) arguments) -> YieldNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4153 + def on_yield(arguments); end + + # :call-seq: + # on_yield0: () -> YieldNode + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4164 + def on_yield0; end + + # :call-seq: + # on_zsuper: () -> ZSuper + # + # source://syntax_tree//lib/syntax_tree/parser.rb#4172 + def on_zsuper; end +end + +# Represents a line in the source. If this class is being used, it means +# that there are characters in the string that are multi-byte, so we will +# build up an array of indices, such that array[byteindex] will be equal to +# the index of the character within the string. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#38 +class SyntaxTree::Parser::MultiByteString + # @return [MultiByteString] a new instance of MultiByteString + # + # source://syntax_tree//lib/syntax_tree/parser.rb#41 + def initialize(start, line); end + + # Technically it's possible for the column index to be a negative value if + # there's a BOM at the beginning of the file, which is the reason we need + # to compare it to 0 here. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#55 + def [](byteindex); end + + # Returns the value of attribute indices. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#39 + def indices; end + + # Returns the value of attribute start. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#39 + def start; end +end + +# A special parser error so that we can get nice syntax displays on the +# error message when prettier prints out the results. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#9 +class SyntaxTree::Parser::ParseError < ::StandardError + # @return [ParseError] a new instance of ParseError + # + # source://syntax_tree//lib/syntax_tree/parser.rb#12 + def initialize(error, lineno, column); end + + # Returns the value of attribute column. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#10 + def column; end + + # Returns the value of attribute lineno. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#10 + def lineno; end +end + +# Ugh... I really do not like this class. Basically, ripper doesn't provide +# enough information about where pins are located in the tree. It only gives +# events for ^ ops and var_ref nodes. You have to piece it together +# yourself. +# +# Note that there are edge cases here that we straight up do not address, +# because I honestly think it's going to be faster to write a new parser +# than to address them. For example, this will not work properly: +# +# foo in ^((bar = 0; bar; baz)) +# +# If someone actually does something like that, we'll have to find another +# way to make this work. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#656 +class SyntaxTree::Parser::PinVisitor < ::SyntaxTree::Visitor + # @return [PinVisitor] a new instance of PinVisitor + # + # source://syntax_tree//lib/syntax_tree/parser.rb#659 + def initialize(pins); end + + # Returns the value of attribute pins. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#657 + def pins; end + + # Returns the value of attribute stack. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#657 + def stack; end + + # source://syntax_tree//lib/syntax_tree/parser.rb#664 + def visit(node); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#672 + def visit_var_ref(node); end + + class << self + # source://syntax_tree//lib/syntax_tree/parser.rb#677 + def visit(node, tokens); end + end +end + +# Semicolons are tokens that get added to the token list but never get +# attached to the AST. Because of this they only need to track their +# associated location so they can be used for computing bounds. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#3371 +class SyntaxTree::Parser::Semicolon + # @return [Semicolon] a new instance of Semicolon + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3374 + def initialize(location); end + + # Returns the value of attribute location. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#3372 + def location; end +end + +# Represents a line in the source. If this class is being used, it means +# that every character in the string is 1 byte in length, so we can just +# return the start of the line + the index. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#22 +class SyntaxTree::Parser::SingleByteString + # @return [SingleByteString] a new instance of SingleByteString + # + # source://syntax_tree//lib/syntax_tree/parser.rb#25 + def initialize(start); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#29 + def [](byteindex); end + + # Returns the value of attribute start. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#23 + def start; end +end + +# This represents all of the tokens coming back from the lexer. It is +# replacing a simple array because it keeps track of the last deleted token +# from the list for better error messages. +# +# source://syntax_tree//lib/syntax_tree/parser.rb#63 +class SyntaxTree::Parser::TokenList + # @return [TokenList] a new instance of TokenList + # + # source://syntax_tree//lib/syntax_tree/parser.rb#66 + def initialize; end + + # source://syntax_tree//lib/syntax_tree/parser.rb#71 + def <<(token); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#75 + def [](index); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/parser.rb#79 + def any?(&block); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#91 + def delete(value); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#95 + def delete_at(index); end + + # Returns the value of attribute last_deleted. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#64 + def last_deleted; end + + # source://syntax_tree//lib/syntax_tree/parser.rb#83 + def reverse_each(&block); end + + # source://syntax_tree//lib/syntax_tree/parser.rb#87 + def rindex(&block); end + + # Returns the value of attribute tokens. + # + # source://syntax_tree//lib/syntax_tree/parser.rb#64 + def tokens; end +end + +# A pattern is an object that wraps a Ruby pattern matching expression. The +# expression would normally be passed to an `in` clause within a `case` +# expression or a rightward assignment expression. For example, in the +# following snippet: +# +# case node +# in Const[value: "SyntaxTree"] +# end +# +# the pattern is the `Const[value: "SyntaxTree"]` expression. Within Syntax +# Tree, every node generates these kinds of expressions using the +# #construct_keys method. +# +# The pattern gets compiled into an object that responds to call by running +# the #compile method. This method itself will run back through Syntax Tree to +# parse the expression into a tree, then walk the tree to generate the +# necessary callable objects. For example, if you wanted to compile the +# expression above into a callable, you would: +# +# callable = SyntaxTree::Pattern.new("Const[value: 'SyntaxTree']").compile +# callable.call(node) +# +# The callable object returned by #compile is guaranteed to respond to #call +# with a single argument, which is the node to match against. It also is +# guaranteed to respond to #===, which means it itself can be used in a `case` +# expression, as in: +# +# case node +# when callable +# end +# +# If the query given to the initializer cannot be compiled into a valid +# matcher (either because of a syntax error or because it is using syntax we +# do not yet support) then a SyntaxTree::Pattern::CompilationError will be +# raised. +# +# source://syntax_tree//lib/syntax_tree/pattern.rb#39 +class SyntaxTree::Pattern + # @return [Pattern] a new instance of Pattern + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#61 + def initialize(query); end + + # source://syntax_tree//lib/syntax_tree/pattern.rb#65 + def compile; end + + # Returns the value of attribute query. + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#59 + def query; end + + private + + # Shortcut for combining two procs into one that returns true if both return + # true. + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#80 + def combine_and(left, right); end + + # Shortcut for combining two procs into one that returns true if either + # returns true. + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#86 + def combine_or(left, right); end + + # in [foo, bar, baz] + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#109 + def compile_aryptn(node); end + + # in foo | bar + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#134 + def compile_binary(node); end + + # in Ident + # in String + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#142 + def compile_const(node); end + + # in SyntaxTree::Ident + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#159 + def compile_const_path_ref(node); end + + # in :"" + # in :"foo" + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#172 + def compile_dyna_symbol(node); end + + # Raise an error because the given node is not supported. + # + # @raise [CompilationError] + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#91 + def compile_error(node); end + + # in Ident[value: String] + # in { value: String } + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#188 + def compile_hshptn(node); end + + # Compile any kind of node. Dispatch out to the individual compilation + # methods based on the type of node. + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#260 + def compile_node(node); end + + # in /foo/ + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#214 + def compile_regexp_literal(node); end + + # in "" + # in "foo" + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#226 + def compile_string_literal(node); end + + # in :+ + # in :foo + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#238 + def compile_symbol_literal(node); end + + # in Foo + # in nil + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#246 + def compile_var_ref(node); end + + # There are a couple of nodes (string literals, dynamic symbols, and regexp) + # that contain list of parts. This can include plain string content, + # interpolated expressions, and interpolated variables. We only support + # plain string content, so this method will extract out the plain string + # content if it is the only element in the list. + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#100 + def extract_string(node); end +end + +# Raised when the query given to a pattern is either invalid Ruby syntax or +# is using syntax that we don't yet support. +# +# source://syntax_tree//lib/syntax_tree/pattern.rb#42 +class SyntaxTree::Pattern::CompilationError < ::StandardError + # @return [CompilationError] a new instance of CompilationError + # + # source://syntax_tree//lib/syntax_tree/pattern.rb#43 + def initialize(repr); end +end + +# Period represents the use of the +.+ operator. It is usually found in method +# calls. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8553 +class SyntaxTree::Period < ::SyntaxTree::Node + # @return [Period] a new instance of Period + # + # source://syntax_tree//lib/syntax_tree/node.rb#8560 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8595 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8566 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8570 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8558 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8574 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8570 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8587 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8591 + def format(q); end + + # [String] the period + # + # source://syntax_tree//lib/syntax_tree/node.rb#8555 + def value; end +end + +# PinnedBegin represents a pinning a nested statement within pattern matching. +# +# case value +# in ^(statement) +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#1962 +class SyntaxTree::PinnedBegin < ::SyntaxTree::Node + # @return [PinnedBegin] a new instance of PinnedBegin + # + # source://syntax_tree//lib/syntax_tree/node.rb#1969 + def initialize(statement:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2014 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1975 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1979 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#1967 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1983 + def copy(statement: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#1979 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#1996 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#2000 + def format(q); end + + # [Node] the expression being pinned + # + # source://syntax_tree//lib/syntax_tree/node.rb#1964 + def statement; end +end + +# PinnedVarRef represents a pinned variable reference within a pattern +# matching pattern. +# +# case value +# in ^variable +# end +# +# This can be a plain local variable like the example above. It can also be a +# a class variable, a global variable, or an instance variable. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11661 +class SyntaxTree::PinnedVarRef < ::SyntaxTree::Node + # @return [PinnedVarRef] a new instance of PinnedVarRef + # + # source://syntax_tree//lib/syntax_tree/node.rb#11668 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11706 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11674 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11678 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11666 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11682 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11678 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11695 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11699 + def format(q); end + + # [Const | CVar | GVar | Ident | IVar] the value of this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11663 + def value; end +end + +# This visitor pretty-prints the AST into an equivalent s-expression. +# +# source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#5 +class SyntaxTree::PrettyPrintVisitor < ::SyntaxTree::FieldVisitor + # @return [PrettyPrintVisitor] a new instance of PrettyPrintVisitor + # + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#8 + def initialize(q); end + + # Returns the value of attribute q. + # + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#6 + def q; end + + # This is here because we need to make sure the operator is cast to a string + # before we print it out. + # + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#14 + def visit_binary(node); end + + # This is here to make it a little nicer to look at labels since they + # typically have their : at the end of the value. + # + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#25 + def visit_label(node); end + + private + + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#36 + def comments(node); end + + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#45 + def field(_name, value); end + + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#50 + def list(_name, values); end + + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#55 + def node(_node, type); end + + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#62 + def pairs(_name, values); end + + # source://syntax_tree//lib/syntax_tree/pretty_print_visitor.rb#78 + def text(_name, value); end +end + +# Program represents the overall syntax tree. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8601 +class SyntaxTree::Program < ::SyntaxTree::Node + # @return [Program] a new instance of Program + # + # source://syntax_tree//lib/syntax_tree/node.rb#8608 + def initialize(statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8648 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8614 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8618 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8606 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8622 + def copy(statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8618 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8635 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8639 + def format(q); end + + # [Statements] the top-level expressions of the program + # + # source://syntax_tree//lib/syntax_tree/node.rb#8603 + def statements; end +end + +# QSymbols represents a symbol literal array without interpolation. +# +# %i[one two three] +# +# source://syntax_tree//lib/syntax_tree/node.rb#8657 +class SyntaxTree::QSymbols < ::SyntaxTree::Node + # @return [QSymbols] a new instance of QSymbols + # + # source://syntax_tree//lib/syntax_tree/node.rb#8667 + def initialize(beginning:, elements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8727 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8674 + def accept(visitor); end + + # [QSymbolsBeg] the token that opens this array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#8659 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8678 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8665 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8682 + def copy(beginning: T.unsafe(nil), elements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8678 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8696 + def deconstruct_keys(_keys); end + + # [Array[ TStringContent ]] the elements of the array + # + # source://syntax_tree//lib/syntax_tree/node.rb#8662 + def elements; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8705 + def format(q); end +end + +# QSymbolsBeg represents the beginning of a symbol literal array. +# +# %i[one two three] +# +# In the snippet above, QSymbolsBeg represents the "%i[" token. Note that +# these kinds of arrays can start with a lot of different delimiter types +# (e.g., %i| or %i<). +# +# source://syntax_tree//lib/syntax_tree/node.rb#8740 +class SyntaxTree::QSymbolsBeg < ::SyntaxTree::Node + # @return [QSymbolsBeg] a new instance of QSymbolsBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#8744 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8770 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8749 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8753 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8757 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8753 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8766 + def deconstruct_keys(_keys); end + + # [String] the beginning of the array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#8742 + def value; end +end + +# QWords represents a string literal array without interpolation. +# +# %w[one two three] +# +# source://syntax_tree//lib/syntax_tree/node.rb#8779 +class SyntaxTree::QWords < ::SyntaxTree::Node + # @return [QWords] a new instance of QWords + # + # source://syntax_tree//lib/syntax_tree/node.rb#8789 + def initialize(beginning:, elements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8845 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8796 + def accept(visitor); end + + # [QWordsBeg] the token that opens this array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#8781 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8800 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8787 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8804 + def copy(beginning: T.unsafe(nil), elements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8800 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8814 + def deconstruct_keys(_keys); end + + # [Array[ TStringContent ]] the elements of the array + # + # source://syntax_tree//lib/syntax_tree/node.rb#8784 + def elements; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8823 + def format(q); end +end + +# QWordsBeg represents the beginning of a string literal array. +# +# %w[one two three] +# +# In the snippet above, QWordsBeg represents the "%w[" token. Note that these +# kinds of arrays can start with a lot of different delimiter types (e.g., +# %w| or %w<). +# +# source://syntax_tree//lib/syntax_tree/node.rb#8858 +class SyntaxTree::QWordsBeg < ::SyntaxTree::Node + # @return [QWordsBeg] a new instance of QWordsBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#8862 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8888 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8867 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8871 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8875 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8871 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8884 + def deconstruct_keys(_keys); end + + # [String] the beginning of the array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#8860 + def value; end +end + +# Responsible for providing information about quotes to be used for strings +# and dynamic symbols. +# +# source://syntax_tree//lib/syntax_tree/node.rb#4615 +module SyntaxTree::Quotes + class << self + # If there is some part of this string that matches an escape sequence or + # that contains the interpolation pattern ("#{"), then we are locked into + # whichever quote the user chose. (If they chose single quotes, then double + # quoting would activate the escape sequence, and if they chose double + # quotes, then single quotes would deactivate it.) + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#4624 + def locked?(node, quote); end + + # Find the matching closing quote for the given opening quote. + # + # source://syntax_tree//lib/syntax_tree/node.rb#4631 + def matching(quote); end + + # Escape and unescape single and double quotes as needed to be able to + # enclose +content+ with +enclosing+. + # + # source://syntax_tree//lib/syntax_tree/node.rb#4637 + def normalize(content, enclosing); end + end +end + +# The matching pairs of quotes that can be used with % literals. +# +# source://syntax_tree//lib/syntax_tree/node.rb#4617 +SyntaxTree::Quotes::PAIRS = T.let(T.unsafe(nil), Hash) + +# RAssign represents a single-line pattern match. +# +# value in pattern +# value => pattern +# +# source://syntax_tree//lib/syntax_tree/node.rb#3201 +class SyntaxTree::RAssign < ::SyntaxTree::Node + # @return [RAssign] a new instance of RAssign + # + # source://syntax_tree//lib/syntax_tree/node.rb#3215 + def initialize(value:, operator:, pattern:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3277 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3223 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3227 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#3213 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3231 + def copy(value: T.unsafe(nil), operator: T.unsafe(nil), pattern: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3227 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#3246 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#3256 + def format(q); end + + # [Kw | Op] the operator being used to match against the pattern, which is + # either => or in + # + # source://syntax_tree//lib/syntax_tree/node.rb#3207 + def operator; end + + # [Node] the pattern on the right-hand side of the expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#3210 + def pattern; end + + # [Node] the left-hand expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#3203 + def value; end +end + +# RBrace represents the use of a right brace, i.e., +++. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8945 +class SyntaxTree::RBrace < ::SyntaxTree::Node + # @return [RBrace] a new instance of RBrace + # + # source://syntax_tree//lib/syntax_tree/node.rb#8949 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8975 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8954 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8958 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8962 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8958 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8971 + def deconstruct_keys(_keys); end + + # [String] the right brace + # + # source://syntax_tree//lib/syntax_tree/node.rb#8947 + def value; end +end + +# RBracket represents the use of a right bracket, i.e., +]+. +# +# source://syntax_tree//lib/syntax_tree/node.rb#8981 +class SyntaxTree::RBracket < ::SyntaxTree::Node + # @return [RBracket] a new instance of RBracket + # + # source://syntax_tree//lib/syntax_tree/node.rb#8985 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9011 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8990 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8994 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8998 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8994 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9007 + def deconstruct_keys(_keys); end + + # [String] the right bracket + # + # source://syntax_tree//lib/syntax_tree/node.rb#8983 + def value; end +end + +# RParen represents the use of a right parenthesis, i.e., +)+. +# +# source://syntax_tree//lib/syntax_tree/node.rb#9751 +class SyntaxTree::RParen < ::SyntaxTree::Node + # @return [RParen] a new instance of RParen + # + # source://syntax_tree//lib/syntax_tree/node.rb#9755 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9781 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9760 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9764 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9768 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9764 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9777 + def deconstruct_keys(_keys); end + + # [String] the parenthesis + # + # source://syntax_tree//lib/syntax_tree/node.rb#9753 + def value; end +end + +# RangeNode represents using the .. or the ... operator between two +# expressions. Usually this is to create a range object. +# +# 1..2 +# +# Sometimes this operator is used to create a flip-flop. +# +# if value == 5 .. value == 10 +# end +# +# One of the sides of the expression may be nil, but not both. +# +# source://syntax_tree//lib/syntax_tree/node.rb#4540 +class SyntaxTree::RangeNode < ::SyntaxTree::Node + # @return [RangeNode] a new instance of RangeNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#4553 + def initialize(left:, operator:, right:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4607 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4561 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4565 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#4551 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4569 + def copy(left: T.unsafe(nil), operator: T.unsafe(nil), right: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4565 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#4584 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#4594 + def format(q); end + + # [nil | Node] the left side of the expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#4542 + def left; end + + # [Op] the operator used for this range + # + # source://syntax_tree//lib/syntax_tree/node.rb#4545 + def operator; end + + # [nil | Node] the right side of the expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#4548 + def right; end +end + +# RationalLiteral represents the use of a rational number literal. +# +# 1r +# +# source://syntax_tree//lib/syntax_tree/node.rb#8897 +class SyntaxTree::RationalLiteral < ::SyntaxTree::Node + # @return [RationalLiteral] a new instance of RationalLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#8904 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8939 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8910 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8914 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#8902 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8918 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8914 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#8931 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#8935 + def format(q); end + + # [String] the rational number literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#8899 + def value; end +end + +# Redo represents the use of the +redo+ keyword. +# +# redo +# +# source://syntax_tree//lib/syntax_tree/node.rb#9020 +class SyntaxTree::Redo < ::SyntaxTree::Node + # @return [Redo] a new instance of Redo + # + # source://syntax_tree//lib/syntax_tree/node.rb#9024 + def initialize(location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9054 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9029 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9033 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9022 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9037 + def copy(location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9033 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9046 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9050 + def format(q); end +end + +# RegexpBeg represents the start of a regular expression literal. +# +# /.+/ +# +# In the example above, RegexpBeg represents the first / token. Regular +# expression literals can also be declared using the %r syntax, as in: +# +# %r{.+} +# +# source://syntax_tree//lib/syntax_tree/node.rb#9116 +class SyntaxTree::RegexpBeg < ::SyntaxTree::Node + # @return [RegexpBeg] a new instance of RegexpBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#9120 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9146 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9125 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9129 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9133 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9129 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9142 + def deconstruct_keys(_keys); end + + # [String] the beginning of the regular expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#9118 + def value; end +end + +# RegexpContent represents the body of a regular expression. +# +# /.+ #{pattern} .+/ +# +# In the example above, a RegexpContent node represents everything contained +# within the forward slashes. +# +# source://syntax_tree//lib/syntax_tree/node.rb#9065 +class SyntaxTree::RegexpContent < ::SyntaxTree::Node + # @return [RegexpContent] a new instance of RegexpContent + # + # source://syntax_tree//lib/syntax_tree/node.rb#9073 + def initialize(beginning:, parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9101 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9079 + def accept(visitor); end + + # [String] the opening of the regular expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#9067 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9083 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9087 + def copy(beginning: T.unsafe(nil), parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9083 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9097 + def deconstruct_keys(_keys); end + + # [Array[ StringDVar | StringEmbExpr | TStringContent ]] the parts of the + # regular expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#9071 + def parts; end +end + +# RegexpEnd represents the end of a regular expression literal. +# +# /.+/m +# +# In the example above, the RegexpEnd event represents the /m at the end of +# the regular expression literal. You can also declare regular expression +# literals using %r, as in: +# +# %r{.+}m +# +# source://syntax_tree//lib/syntax_tree/node.rb#9161 +class SyntaxTree::RegexpEnd < ::SyntaxTree::Node + # @return [RegexpEnd] a new instance of RegexpEnd + # + # source://syntax_tree//lib/syntax_tree/node.rb#9165 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9191 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9170 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9174 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9178 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9174 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9187 + def deconstruct_keys(_keys); end + + # [String] the end of the regular expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#9163 + def value; end +end + +# RegexpLiteral represents a regular expression literal. +# +# /.+/ +# +# source://syntax_tree//lib/syntax_tree/node.rb#9200 +class SyntaxTree::RegexpLiteral < ::SyntaxTree::Node + # @return [RegexpLiteral] a new instance of RegexpLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#9214 + def initialize(beginning:, ending:, parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9296 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9222 + def accept(visitor); end + + # [String] the beginning of the regular expression literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#9202 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9226 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9212 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9230 + def copy(beginning: T.unsafe(nil), ending: T.unsafe(nil), parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9226 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9245 + def deconstruct_keys(_keys); end + + # [String] the ending of the regular expression literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#9205 + def ending; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9256 + def format(q); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9302 + def options; end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # regular expression literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#9209 + def parts; end + + private + + # If the first part of this regex is plain string content, we have a space + # or an =, and we're contained within a command or command_call node, then + # we want to use braces because otherwise we could end up with an ambiguous + # operator, e.g. foo / bar/ or foo /=bar/ + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#9318 + def ambiguous?(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#9308 + def include?(pattern); end +end + +# Rescue represents the use of the rescue keyword inside of a BodyStmt node. +# +# begin +# rescue +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#9408 +class SyntaxTree::Rescue < ::SyntaxTree::Node + # @return [Rescue] a new instance of Rescue + # + # source://syntax_tree//lib/syntax_tree/node.rb#9424 + def initialize(keyword:, exception:, statements:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9520 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9455 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9433 + def bind_end(end_char, end_column); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9459 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9422 + def comments; end + + # [nil | Rescue] the optional next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#9419 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9463 + def copy(keyword: T.unsafe(nil), exception: T.unsafe(nil), statements: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9459 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9485 + def deconstruct_keys(_keys); end + + # [nil | RescueEx] the exceptions being rescued + # + # source://syntax_tree//lib/syntax_tree/node.rb#9413 + def exception; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9496 + def format(q); end + + # [Kw] the rescue keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#9410 + def keyword; end + + # [Statements] the expressions to evaluate when an error is rescued + # + # source://syntax_tree//lib/syntax_tree/node.rb#9416 + def statements; end +end + +# RescueEx represents the list of exceptions being rescued in a rescue clause. +# +# begin +# rescue Exception => exception +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#9333 +class SyntaxTree::RescueEx < ::SyntaxTree::Node + # @return [RescueEx] a new instance of RescueEx + # + # source://syntax_tree//lib/syntax_tree/node.rb#9344 + def initialize(exceptions:, variable:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9396 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9351 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9355 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9342 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9359 + def copy(exceptions: T.unsafe(nil), variable: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9355 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9373 + def deconstruct_keys(_keys); end + + # [nil | Node] the list of exceptions being rescued + # + # source://syntax_tree//lib/syntax_tree/node.rb#9335 + def exceptions; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9382 + def format(q); end + + # [nil | Field | VarField] the expression being used to capture the raised + # exception + # + # source://syntax_tree//lib/syntax_tree/node.rb#9339 + def variable; end +end + +# RescueMod represents the use of the modifier form of a +rescue+ clause. +# +# expression rescue value +# +# source://syntax_tree//lib/syntax_tree/node.rb#9531 +class SyntaxTree::RescueMod < ::SyntaxTree::Node + # @return [RescueMod] a new instance of RescueMod + # + # source://syntax_tree//lib/syntax_tree/node.rb#9541 + def initialize(statement:, value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9597 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9548 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9552 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9539 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9556 + def copy(statement: T.unsafe(nil), value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9552 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9570 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9579 + def format(q); end + + # [Node] the expression to execute + # + # source://syntax_tree//lib/syntax_tree/node.rb#9533 + def statement; end + + # [Node] the value to use if the executed expression raises an error + # + # source://syntax_tree//lib/syntax_tree/node.rb#9536 + def value; end +end + +# RestParam represents defining a parameter in a method definition that +# accepts all remaining positional parameters. +# +# def method(*rest) end +# +# source://syntax_tree//lib/syntax_tree/node.rb#9608 +class SyntaxTree::RestParam < ::SyntaxTree::Node + # @return [RestParam] a new instance of RestParam + # + # source://syntax_tree//lib/syntax_tree/node.rb#9615 + def initialize(name:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9651 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9621 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9625 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9613 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9629 + def copy(name: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9625 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9642 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9646 + def format(q); end + + # [nil | Ident] the name of the parameter + # + # source://syntax_tree//lib/syntax_tree/node.rb#9610 + def name; end +end + +# Retry represents the use of the +retry+ keyword. +# +# retry +# +# source://syntax_tree//lib/syntax_tree/node.rb#9660 +class SyntaxTree::Retry < ::SyntaxTree::Node + # @return [Retry] a new instance of Retry + # + # source://syntax_tree//lib/syntax_tree/node.rb#9664 + def initialize(location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9694 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9669 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9673 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9662 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9677 + def copy(location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9673 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9686 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9690 + def format(q); end +end + +# Return represents using the +return+ keyword with arguments. +# +# return value +# +# source://syntax_tree//lib/syntax_tree/node.rb#9703 +class SyntaxTree::ReturnNode < ::SyntaxTree::Node + # @return [ReturnNode] a new instance of ReturnNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#9710 + def initialize(arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9745 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9716 + def accept(visitor); end + + # [nil | Args] the arguments being passed to the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#9705 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9720 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9708 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9724 + def copy(arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9720 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9737 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9741 + def format(q); end +end + +# SClass represents a block of statements that should be evaluated within the +# context of the singleton class of an object. It's frequently used to define +# singleton methods. +# +# class << self +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#9793 +class SyntaxTree::SClass < ::SyntaxTree::Node + # @return [SClass] a new instance of SClass + # + # source://syntax_tree//lib/syntax_tree/node.rb#9803 + def initialize(target:, bodystmt:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9854 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9810 + def accept(visitor); end + + # [BodyStmt] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#9798 + def bodystmt; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9814 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9801 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9818 + def copy(target: T.unsafe(nil), bodystmt: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9814 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9832 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9841 + def format(q); end + + # [Node] the target of the singleton class to enter + # + # source://syntax_tree//lib/syntax_tree/node.rb#9795 + def target; end +end + +# Provides an interface for searching for a pattern of nodes against a +# subtree of an AST. +# +# source://syntax_tree//lib/syntax_tree/search.rb#6 +class SyntaxTree::Search + # @return [Search] a new instance of Search + # + # source://syntax_tree//lib/syntax_tree/search.rb#9 + def initialize(pattern); end + + # Returns the value of attribute pattern. + # + # source://syntax_tree//lib/syntax_tree/search.rb#7 + def pattern; end + + # source://syntax_tree//lib/syntax_tree/search.rb#13 + def scan(root); end +end + +# Everything that has a block of code inside of it has a list of statements. +# Normally we would just track those as a node that has an array body, but we +# have some special handling in order to handle empty statement lists. They +# need to have the right location information, so all of the parent node of +# stmts nodes will report back down the location information. We then +# propagate that onto void_stmt nodes inside the stmts in order to make sure +# all comments get printed appropriately. +# +# source://syntax_tree//lib/syntax_tree/node.rb#9867 +class SyntaxTree::Statements < ::SyntaxTree::Node + # @return [Statements] a new instance of Statements + # + # source://syntax_tree//lib/syntax_tree/node.rb#9874 + def initialize(body:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10000 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9927 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9880 + def bind(parser, start_char, start_column, end_char, end_column); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9909 + def bind_end(end_char, end_column); end + + # [Array[ Node ]] the list of expressions contained within this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9869 + def body; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9931 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#9872 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9935 + def copy(body: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#9931 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9948 + def deconstruct_keys(_keys); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#9921 + def empty?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#9952 + def format(q); end + + private + + # As efficiently as possible, gather up all of the comments that have been + # found while this statements list was being parsed and add them into the + # body. + # + # source://syntax_tree//lib/syntax_tree/node.rb#10009 + def attach_comments(parser, start_char, end_char); end +end + +# StringConcat represents concatenating two strings together using a backward +# slash. +# +# "first" \ +# "second" +# +# source://syntax_tree//lib/syntax_tree/node.rb#10124 +class SyntaxTree::StringConcat < ::SyntaxTree::Node + # @return [StringConcat] a new instance of StringConcat + # + # source://syntax_tree//lib/syntax_tree/node.rb#10135 + def initialize(left:, right:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10179 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10142 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10146 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10133 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10150 + def copy(left: T.unsafe(nil), right: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10146 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10164 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10168 + def format(q); end + + # [Heredoc | StringConcat | StringLiteral] the left side of the + # concatenation + # + # source://syntax_tree//lib/syntax_tree/node.rb#10127 + def left; end + + # [StringLiteral] the right side of the concatenation + # + # source://syntax_tree//lib/syntax_tree/node.rb#10130 + def right; end +end + +# StringContent represents the contents of a string-like value. +# +# "string" +# +# source://syntax_tree//lib/syntax_tree/node.rb#10051 +class SyntaxTree::StringContent < ::SyntaxTree::Node + # @return [StringContent] a new instance of StringContent + # + # source://syntax_tree//lib/syntax_tree/node.rb#10059 + def initialize(parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10086 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10065 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10069 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10057 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10073 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10069 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10082 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10090 + def format(q); end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # string + # + # source://syntax_tree//lib/syntax_tree/node.rb#10054 + def parts; end +end + +# StringDVar represents shorthand interpolation of a variable into a string. +# It allows you to take an instance variable, class variable, or global +# variable and omit the braces when interpolating. +# +# "#@variable" +# +# source://syntax_tree//lib/syntax_tree/node.rb#10190 +class SyntaxTree::StringDVar < ::SyntaxTree::Node + # @return [StringDVar] a new instance of StringDVar + # + # source://syntax_tree//lib/syntax_tree/node.rb#10197 + def initialize(variable:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10234 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10203 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10207 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10195 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10211 + def copy(variable: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10207 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10224 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10228 + def format(q); end + + # [Backref | VarRef] the variable being interpolated + # + # source://syntax_tree//lib/syntax_tree/node.rb#10192 + def variable; end +end + +# StringEmbExpr represents interpolated content. It can be contained within a +# couple of different parent nodes, including regular expressions, strings, +# and dynamic symbols. +# +# "string #{expression}" +# +# source://syntax_tree//lib/syntax_tree/node.rb#10245 +class SyntaxTree::StringEmbExpr < ::SyntaxTree::Node + # @return [StringEmbExpr] a new instance of StringEmbExpr + # + # source://syntax_tree//lib/syntax_tree/node.rb#10252 + def initialize(statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10309 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10258 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10262 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10250 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10266 + def copy(statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10262 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10279 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10283 + def format(q); end + + # [Statements] the expressions to be interpolated + # + # source://syntax_tree//lib/syntax_tree/node.rb#10247 + def statements; end +end + +# StringLiteral represents a string literal. +# +# "string" +# +# source://syntax_tree//lib/syntax_tree/node.rb#10318 +class SyntaxTree::StringLiteral < ::SyntaxTree::Node + # @return [StringLiteral] a new instance of StringLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#10329 + def initialize(parts:, quote:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10403 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10336 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10340 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10327 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10344 + def copy(parts: T.unsafe(nil), quote: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10340 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10358 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10362 + def format(q); end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # string literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#10321 + def parts; end + + # [nil | String] which quote was used by the string literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#10324 + def quote; end +end + +# Super represents using the +super+ keyword with arguments. It can optionally +# use parentheses. +# +# super(value) +# +# source://syntax_tree//lib/syntax_tree/node.rb#10414 +class SyntaxTree::Super < ::SyntaxTree::Node + # @return [Super] a new instance of Super + # + # source://syntax_tree//lib/syntax_tree/node.rb#10421 + def initialize(arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10465 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10427 + def accept(visitor); end + + # [ArgParen | Args] the arguments to the keyword + # + # source://syntax_tree//lib/syntax_tree/node.rb#10416 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10431 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10419 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10435 + def copy(arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10431 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10448 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10452 + def format(q); end +end + +# SymBeg represents the beginning of a symbol literal. +# +# :symbol +# +# SymBeg is also used for dynamic symbols, as in: +# +# :"symbol" +# +# Finally, SymBeg is also used for symbols using the %s syntax, as in: +# +# %s[symbol] +# +# The value of this node is a string. In most cases (as in the first example +# above) it will contain just ":". In the case of dynamic symbols it will +# contain ":'" or ":\"". In the case of %s symbols, it will contain the start +# of the symbol including the %s and the delimiter. +# +# source://syntax_tree//lib/syntax_tree/node.rb#10486 +class SyntaxTree::SymBeg < ::SyntaxTree::Node + # @return [SymBeg] a new instance of SymBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#10490 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10516 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10495 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10499 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10503 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10499 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10512 + def deconstruct_keys(_keys); end + + # [String] the beginning of the symbol + # + # source://syntax_tree//lib/syntax_tree/node.rb#10488 + def value; end +end + +# SymbolContent represents symbol contents and is always the child of a +# SymbolLiteral node. +# +# :symbol +# +# source://syntax_tree//lib/syntax_tree/node.rb#10526 +class SyntaxTree::SymbolContent < ::SyntaxTree::Node + # @return [SymbolContent] a new instance of SymbolContent + # + # source://syntax_tree//lib/syntax_tree/node.rb#10531 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10557 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10536 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10540 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10544 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10540 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10553 + def deconstruct_keys(_keys); end + + # [Backtick | Const | CVar | GVar | Ident | IVar | Kw | Op] the value of the + # symbol + # + # source://syntax_tree//lib/syntax_tree/node.rb#10529 + def value; end +end + +# SymbolLiteral represents a symbol in the system with no interpolation +# (as opposed to a DynaSymbol which has interpolation). +# +# :symbol +# +# source://syntax_tree//lib/syntax_tree/node.rb#10567 +class SyntaxTree::SymbolLiteral < ::SyntaxTree::Node + # @return [SymbolLiteral] a new instance of SymbolLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#10575 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10612 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10581 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10585 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10573 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10589 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10585 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10602 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10606 + def format(q); end + + # [Backtick | Const | CVar | GVar | Ident | IVar | Kw | Op | TStringContent] + # the value of the symbol + # + # source://syntax_tree//lib/syntax_tree/node.rb#10570 + def value; end +end + +# Symbols represents a symbol array literal with interpolation. +# +# %I[one two three] +# +# source://syntax_tree//lib/syntax_tree/node.rb#10621 +class SyntaxTree::Symbols < ::SyntaxTree::Node + # @return [Symbols] a new instance of Symbols + # + # source://syntax_tree//lib/syntax_tree/node.rb#10631 + def initialize(beginning:, elements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10687 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10638 + def accept(visitor); end + + # [SymbolsBeg] the token that opens this array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#10623 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10642 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10629 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10646 + def copy(beginning: T.unsafe(nil), elements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10642 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10656 + def deconstruct_keys(_keys); end + + # [Array[ Word ]] the words in the symbol array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#10626 + def elements; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10665 + def format(q); end +end + +# SymbolsBeg represents the start of a symbol array literal with +# interpolation. +# +# %I[one two three] +# +# In the snippet above, SymbolsBeg represents the "%I[" token. Note that these +# kinds of arrays can start with a lot of different delimiter types +# (e.g., %I| or %I<). +# +# source://syntax_tree//lib/syntax_tree/node.rb#10701 +class SyntaxTree::SymbolsBeg < ::SyntaxTree::Node + # @return [SymbolsBeg] a new instance of SymbolsBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#10705 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10731 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10710 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10714 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10718 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10714 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10727 + def deconstruct_keys(_keys); end + + # [String] the beginning of the symbol literal array + # + # source://syntax_tree//lib/syntax_tree/node.rb#10703 + def value; end +end + +# TLamBeg represents the beginning of the body of a lambda literal using +# braces. +# +# -> { value } +# +# In the example above the TLamBeg represents the +{+ operator. +# +# source://syntax_tree//lib/syntax_tree/node.rb#10782 +class SyntaxTree::TLamBeg < ::SyntaxTree::Node + # @return [TLamBeg] a new instance of TLamBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#10786 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10812 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10791 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10795 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10799 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10795 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10808 + def deconstruct_keys(_keys); end + + # [String] the beginning of the body of the lambda literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#10784 + def value; end +end + +# TLambda represents the beginning of a lambda literal. +# +# -> { value } +# +# In the example above the TLambda represents the +->+ operator. +# +# source://syntax_tree//lib/syntax_tree/node.rb#10741 +class SyntaxTree::TLambda < ::SyntaxTree::Node + # @return [TLambda] a new instance of TLambda + # + # source://syntax_tree//lib/syntax_tree/node.rb#10745 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10771 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10750 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10754 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10758 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10754 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10767 + def deconstruct_keys(_keys); end + + # [String] the beginning of the lambda literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#10743 + def value; end +end + +# TStringBeg represents the beginning of a string literal. +# +# "string" +# +# In the example above, TStringBeg represents the first set of quotes. Strings +# can also use single quotes. They can also be declared using the +%q+ and +# +%Q+ syntax, as in: +# +# %q{string} +# +# source://syntax_tree//lib/syntax_tree/node.rb#10934 +class SyntaxTree::TStringBeg < ::SyntaxTree::Node + # @return [TStringBeg] a new instance of TStringBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#10938 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10964 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10943 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10947 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10951 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10947 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10960 + def deconstruct_keys(_keys); end + + # [String] the beginning of the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#10936 + def value; end +end + +# TStringContent represents plain characters inside of an entity that accepts +# string content like a string, heredoc, command string, or regular +# expression. +# +# "string" +# +# In the example above, TStringContent represents the +string+ token contained +# within the string. +# +# source://syntax_tree//lib/syntax_tree/node.rb#10977 +class SyntaxTree::TStringContent < ::SyntaxTree::Node + # @return [TStringContent] a new instance of TStringContent + # + # source://syntax_tree//lib/syntax_tree/node.rb#10984 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11023 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10994 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10998 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10982 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11002 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10998 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11015 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11019 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#10990 + def match?(pattern); end + + # [String] the content of the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#10979 + def value; end +end + +# TStringEnd represents the end of a string literal. +# +# "string" +# +# In the example above, TStringEnd represents the second set of quotes. +# Strings can also use single quotes. They can also be declared using the +%q+ +# and +%Q+ syntax, as in: +# +# %q{string} +# +# source://syntax_tree//lib/syntax_tree/node.rb#11038 +class SyntaxTree::TStringEnd < ::SyntaxTree::Node + # @return [TStringEnd] a new instance of TStringEnd + # + # source://syntax_tree//lib/syntax_tree/node.rb#11042 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11068 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11047 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11051 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11055 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11051 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11064 + def deconstruct_keys(_keys); end + + # [String] the end of the string + # + # source://syntax_tree//lib/syntax_tree/node.rb#11040 + def value; end +end + +# In order for an `if` or `unless` expression to be shortened to a ternary, +# there has to be one and only one consequent clause which is an Else. Both +# the body of the main node and the body of the Else node must have only one +# statement, and that statement must not be on the denied list of potential +# statements. +# +# source://syntax_tree//lib/syntax_tree/node.rb#6254 +module SyntaxTree::Ternaryable + class << self + # source://syntax_tree//lib/syntax_tree/node.rb#6256 + def call(q, node); end + + private + + # Certain expressions cannot be reduced to a ternary without adding + # parentheses around them. In this case we say they cannot be ternaried + # and default instead to breaking them into multiple lines. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#6294 + def ternaryable?(statement); end + end +end + +# TopConstField is always the child node of some kind of assignment. It +# represents when you're assigning to a constant that is being referenced at +# the top level. +# +# ::Constant = value +# +# source://syntax_tree//lib/syntax_tree/node.rb#10823 +class SyntaxTree::TopConstField < ::SyntaxTree::Node + # @return [TopConstField] a new instance of TopConstField + # + # source://syntax_tree//lib/syntax_tree/node.rb#10830 + def initialize(constant:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10866 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10836 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10840 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10828 + def comments; end + + # [Const] the constant being assigned + # + # source://syntax_tree//lib/syntax_tree/node.rb#10825 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10844 + def copy(constant: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10840 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10857 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10861 + def format(q); end +end + +# TopConstRef is very similar to TopConstField except that it is not involved +# in an assignment. +# +# ::Constant +# +# source://syntax_tree//lib/syntax_tree/node.rb#10876 +class SyntaxTree::TopConstRef < ::SyntaxTree::Node + # @return [TopConstRef] a new instance of TopConstRef + # + # source://syntax_tree//lib/syntax_tree/node.rb#10883 + def initialize(constant:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10919 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10889 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10893 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#10881 + def comments; end + + # [Const] the constant being referenced + # + # source://syntax_tree//lib/syntax_tree/node.rb#10878 + def constant; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10897 + def copy(constant: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10893 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#10910 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#10914 + def format(q); end +end + +# This module is responsible for translating the Syntax Tree syntax tree into +# other representations. +# +# source://syntax_tree//lib/syntax_tree/translation.rb#6 +module SyntaxTree::Translation + class << self + # This method translates the given node into the representation defined by + # the whitequark/parser gem. We don't explicitly list it as a dependency + # because it's not required for the core functionality of Syntax Tree. + # + # source://syntax_tree//lib/syntax_tree/translation.rb#10 + def to_parser(node, buffer); end + + # This method translates the given node into the representation defined by + # the rubocop/rubocop-ast gem. We don't explicitly list it as a dependency + # because it's not required for the core functionality of Syntax Tree. + # + # source://syntax_tree//lib/syntax_tree/translation.rb#20 + def to_rubocop_ast(node, buffer); end + end +end + +# Unary represents a unary method being called on an expression, as in +!+ or +# +~+. +# +# !value +# +# source://syntax_tree//lib/syntax_tree/node.rb#11161 +class SyntaxTree::Unary < ::SyntaxTree::Node + # @return [Unary] a new instance of Unary + # + # source://syntax_tree//lib/syntax_tree/node.rb#11171 + def initialize(operator:, statement:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11214 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11178 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11182 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11169 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11186 + def copy(operator: T.unsafe(nil), statement: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11182 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11200 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11209 + def format(q); end + + # [String] the operator being used + # + # source://syntax_tree//lib/syntax_tree/node.rb#11163 + def operator; end + + # [Node] the statement on which to operate + # + # source://syntax_tree//lib/syntax_tree/node.rb#11166 + def statement; end +end + +# Undef represents the use of the +undef+ keyword. +# +# undef method +# +# source://syntax_tree//lib/syntax_tree/node.rb#11224 +class SyntaxTree::Undef < ::SyntaxTree::Node + # @return [Undef] a new instance of Undef + # + # source://syntax_tree//lib/syntax_tree/node.rb#11255 + def initialize(symbols:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11298 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11261 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11265 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11253 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11269 + def copy(symbols: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11265 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11282 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11286 + def format(q); end + + # [Array[ DynaSymbol | SymbolLiteral ]] the symbols to undefine + # + # source://syntax_tree//lib/syntax_tree/node.rb#11250 + def symbols; end +end + +# Undef accepts a variable number of arguments that can be either DynaSymbol +# or SymbolLiteral objects. For SymbolLiteral objects we descend directly +# into the value in order to have it come out as bare words. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11228 +class SyntaxTree::Undef::UndefArgumentFormatter + # @return [UndefArgumentFormatter] a new instance of UndefArgumentFormatter + # + # source://syntax_tree//lib/syntax_tree/node.rb#11232 + def initialize(node); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11236 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11244 + def format(q); end + + # [DynaSymbol | SymbolLiteral] the symbol to undefine + # + # source://syntax_tree//lib/syntax_tree/node.rb#11230 + def node; end +end + +# Unless represents the first clause in an +unless+ chain. +# +# unless predicate +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#11308 +class SyntaxTree::UnlessNode < ::SyntaxTree::Node + # @return [UnlessNode] a new instance of UnlessNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#11321 + def initialize(predicate:, statements:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11366 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11329 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11333 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11319 + def comments; end + + # [nil | Elsif | Else] the next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#11316 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11337 + def copy(predicate: T.unsafe(nil), statements: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11333 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11352 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11362 + def format(q); end + + # Checks if the node was originally found in the modifier form. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#11372 + def modifier?; end + + # [Node] the expression to be checked + # + # source://syntax_tree//lib/syntax_tree/node.rb#11310 + def predicate; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#11313 + def statements; end +end + +# Until represents an +until+ loop. +# +# until predicate +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#11454 +class SyntaxTree::UntilNode < ::SyntaxTree::Node + # @return [UntilNode] a new instance of UntilNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#11464 + def initialize(predicate:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11506 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11471 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11475 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11462 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11479 + def copy(predicate: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11475 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11493 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11502 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#11511 + def modifier?; end + + # [Node] the expression to be checked + # + # source://syntax_tree//lib/syntax_tree/node.rb#11456 + def predicate; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#11459 + def statements; end +end + +# VCall represent any plain named object with Ruby that could be either a +# local variable or a method call. +# +# variable +# +# source://syntax_tree//lib/syntax_tree/node.rb#11716 +class SyntaxTree::VCall < ::SyntaxTree::Node + # @return [VCall] a new instance of VCall + # + # source://syntax_tree//lib/syntax_tree/node.rb#11723 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11758 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11729 + def accept(visitor); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#11762 + def access_control?; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11766 + def arity; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11733 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11721 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11737 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11733 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11750 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11754 + def format(q); end + + # [Ident] the value of this expression + # + # source://syntax_tree//lib/syntax_tree/node.rb#11718 + def value; end +end + +# source://syntax_tree//lib/syntax_tree/version.rb#4 +SyntaxTree::VERSION = T.let(T.unsafe(nil), String) + +# VarField represents a variable that is being assigned a value. As such, it +# is always a child of an assignment type node. +# +# variable = value +# +# In the example above, the VarField node represents the +variable+ token. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11522 +class SyntaxTree::VarField < ::SyntaxTree::Node + # @return [VarField] a new instance of VarField + # + # source://syntax_tree//lib/syntax_tree/node.rb#11529 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11568 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11535 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11539 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11527 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11543 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11539 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11556 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11560 + def format(q); end + + # [nil | :nil | Const | CVar | GVar | Ident | IVar] the target of this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11524 + def value; end +end + +# VarRef represents a variable reference. +# +# true +# +# This can be a plain local variable like the example above. It can also be a +# constant, a class variable, a global variable, an instance variable, a +# keyword (like +self+, +nil+, +true+, or +false+), or a numbered block +# variable. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11581 +class SyntaxTree::VarRef < ::SyntaxTree::Node + # @return [VarRef] a new instance of VarRef + # + # source://syntax_tree//lib/syntax_tree/node.rb#11588 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11623 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11594 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11598 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11586 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11602 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11598 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11615 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11619 + def format(q); end + + # Oh man I hate this so much. Basically, ripper doesn't provide enough + # functionality to actually know where pins are within an expression. So we + # have to walk the tree ourselves and insert more information. In doing so, + # we have to replace this node by a pinned node when necessary. + # + # To be clear, this method should just not exist. It's not good. It's a + # place of shame. But it's necessary for now, so I'm keeping it. + # + # source://syntax_tree//lib/syntax_tree/node.rb#11634 + def pin(parent, pin); end + + # [Const | CVar | GVar | Ident | IVar | Kw] the value of this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11583 + def value; end +end + +# Visitor is a parent class that provides the ability to walk down the tree +# and handle a subset of nodes. By defining your own subclass, you can +# explicitly handle a node type by defining a visit_* method. +# +# source://syntax_tree//lib/syntax_tree/visitor.rb#7 +class SyntaxTree::Visitor < ::SyntaxTree::BasicVisitor + # Visit a BEGINBlock node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_BEGIN(node); end + + # Visit a CHAR node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_CHAR(node); end + + # Visit an ENDBlock node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_END(node); end + + # Visit an EndContent node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit___end__(node); end + + # Visit an AliasNode node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_alias(node); end + + # Visit an ARef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_aref(node); end + + # Visit an ARefField node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_aref_field(node); end + + # Visit an ArgBlock node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_arg_block(node); end + + # Visit an ArgParen node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_arg_paren(node); end + + # Visit an ArgStar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_arg_star(node); end + + # Visit an Args node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_args(node); end + + # Visit an ArgsForward node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_args_forward(node); end + + # Visit an ArrayLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_array(node); end + + # Visit an AryPtn node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_aryptn(node); end + + # Visit an Assign node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_assign(node); end + + # Visit an Assoc node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_assoc(node); end + + # Visit an AssocSplat node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_assoc_splat(node); end + + # Visit a Backref node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_backref(node); end + + # Visit a Backtick node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_backtick(node); end + + # Visit a BareAssocHash node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_bare_assoc_hash(node); end + + # Visit a Begin node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_begin(node); end + + # Visit a Binary node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_binary(node); end + + # Visit a Block node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_block(node); end + + # Visit a BlockVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_block_var(node); end + + # Visit a BlockArg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_blockarg(node); end + + # Visit a BodyStmt node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_bodystmt(node); end + + # Visit a Break node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_break(node); end + + # Visit a Call node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_call(node); end + + # Visit a Case node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_case(node); end + + # Visit a ClassDeclaration node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_class(node); end + + # Visit a Comma node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_comma(node); end + + # Visit a Command node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_command(node); end + + # Visit a CommandCall node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_command_call(node); end + + # Visit a Comment node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_comment(node); end + + # Visit a Const node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_const(node); end + + # Visit a ConstPathField node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_const_path_field(node); end + + # Visit a ConstPathRef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_const_path_ref(node); end + + # Visit a ConstRef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_const_ref(node); end + + # Visit a CVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_cvar(node); end + + # Visit a Def node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_def(node); end + + # Visit a Defined node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_defined(node); end + + # Visit a DynaSymbol node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_dyna_symbol(node); end + + # Visit an Else node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_else(node); end + + # Visit an Elsif node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_elsif(node); end + + # Visit an EmbDoc node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_embdoc(node); end + + # Visit an EmbExprBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_embexpr_beg(node); end + + # Visit an EmbExprEnd node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_embexpr_end(node); end + + # Visit an EmbVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_embvar(node); end + + # Visit an Ensure node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_ensure(node); end + + # Visit an ExcessedComma node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_excessed_comma(node); end + + # Visit a Field node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_field(node); end + + # Visit a FloatLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_float(node); end + + # Visit a FndPtn node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_fndptn(node); end + + # Visit a For node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_for(node); end + + # Visit a GVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_gvar(node); end + + # Visit a HashLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_hash(node); end + + # Visit a Heredoc node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_heredoc(node); end + + # Visit a HeredocBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_heredoc_beg(node); end + + # Visit a HeredocEnd node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_heredoc_end(node); end + + # Visit a HshPtn node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_hshptn(node); end + + # Visit an Ident node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_ident(node); end + + # Visit an IfNode node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_if(node); end + + # Visit an IfOp node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_if_op(node); end + + # Visit an Imaginary node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_imaginary(node); end + + # Visit an In node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_in(node); end + + # Visit an Int node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_int(node); end + + # Visit an IVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_ivar(node); end + + # Visit a Kw node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_kw(node); end + + # Visit a KwRestParam node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_kwrest_param(node); end + + # Visit a Label node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_label(node); end + + # Visit a LabelEnd node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_label_end(node); end + + # Visit a Lambda node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_lambda(node); end + + # Visit a LambdaVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_lambda_var(node); end + + # Visit a LBrace node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_lbrace(node); end + + # Visit a LBracket node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_lbracket(node); end + + # Visit a LParen node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_lparen(node); end + + # Visit a MAssign node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_massign(node); end + + # Visit a MethodAddBlock node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_method_add_block(node); end + + # Visit a MLHS node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_mlhs(node); end + + # Visit a MLHSParen node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_mlhs_paren(node); end + + # Visit a ModuleDeclaration node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_module(node); end + + # Visit a MRHS node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_mrhs(node); end + + # Visit a Next node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_next(node); end + + # Visit a Not node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_not(node); end + + # Visit an Op node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_op(node); end + + # Visit an OpAssign node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_opassign(node); end + + # Visit a Params node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_params(node); end + + # Visit a Paren node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_paren(node); end + + # Visit a Period node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_period(node); end + + # Visit a PinnedBegin node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_pinned_begin(node); end + + # Visit a PinnedVarRef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_pinned_var_ref(node); end + + # Visit a Program node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_program(node); end + + # Visit a QSymbols node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_qsymbols(node); end + + # Visit a QSymbolsBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_qsymbols_beg(node); end + + # Visit a QWords node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_qwords(node); end + + # Visit a QWordsBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_qwords_beg(node); end + + # Visit a RangeNode node + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_range(node); end + + # Visit a RAssign node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rassign(node); end + + # Visit a RationalLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rational(node); end + + # Visit a RBrace node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rbrace(node); end + + # Visit a RBracket node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rbracket(node); end + + # Visit a Redo node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_redo(node); end + + # Visit a RegexpBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_regexp_beg(node); end + + # Visit a RegexpContent node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_regexp_content(node); end + + # Visit a RegexpEnd node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_regexp_end(node); end + + # Visit a RegexpLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_regexp_literal(node); end + + # Visit a Rescue node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rescue(node); end + + # Visit a RescueEx node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rescue_ex(node); end + + # Visit a RescueMod node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rescue_mod(node); end + + # Visit a RestParam node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rest_param(node); end + + # Visit a Retry node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_retry(node); end + + # Visit a Return node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_return(node); end + + # Visit a RParen node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_rparen(node); end + + # Visit a SClass node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_sclass(node); end + + # Visit a Statements node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_statements(node); end + + # Visit a StringConcat node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_string_concat(node); end + + # Visit a StringContent node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_string_content(node); end + + # Visit a StringDVar node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_string_dvar(node); end + + # Visit a StringEmbExpr node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_string_embexpr(node); end + + # Visit a StringLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_string_literal(node); end + + # Visit a Super node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_super(node); end + + # Visit a SymBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_symbeg(node); end + + # Visit a SymbolContent node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_symbol_content(node); end + + # Visit a SymbolLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_symbol_literal(node); end + + # Visit a Symbols node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_symbols(node); end + + # Visit a SymbolsBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_symbols_beg(node); end + + # Visit a TLambda node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_tlambda(node); end + + # Visit a TLamBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_tlambeg(node); end + + # Visit a TopConstField node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_top_const_field(node); end + + # Visit a TopConstRef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_top_const_ref(node); end + + # Visit a TStringBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_tstring_beg(node); end + + # Visit a TStringContent node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_tstring_content(node); end + + # Visit a TStringEnd node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_tstring_end(node); end + + # Visit an Unary node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_unary(node); end + + # Visit an Undef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_undef(node); end + + # Visit an UnlessNode node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_unless(node); end + + # Visit an UntilNode node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_until(node); end + + # Visit a VarField node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_var_field(node); end + + # Visit a VarRef node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_var_ref(node); end + + # Visit a VCall node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_vcall(node); end + + # Visit a VoidStmt node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_void_stmt(node); end + + # Visit a When node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_when(node); end + + # Visit a WhileNode node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_while(node); end + + # Visit a Word node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_word(node); end + + # Visit a Words node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_words(node); end + + # Visit a WordsBeg node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_words_beg(node); end + + # Visit a XString node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_xstring(node); end + + # Visit a XStringLiteral node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_xstring_literal(node); end + + # Visit a YieldNode node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_yield(node); end + + # Visit a ZSuper node. + # + # source://syntax_tree//lib/syntax_tree/basic_visitor.rb#113 + def visit_zsuper(node); end +end + +# VoidStmt represents an empty lexical block of code. +# +# ;; +# +# source://syntax_tree//lib/syntax_tree/node.rb#11775 +class SyntaxTree::VoidStmt < ::SyntaxTree::Node + # @return [VoidStmt] a new instance of VoidStmt + # + # source://syntax_tree//lib/syntax_tree/node.rb#11779 + def initialize(location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11808 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11784 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11788 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11777 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11792 + def copy(location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11788 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11801 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11805 + def format(q); end +end + +# When represents a +when+ clause in a +case+ chain. +# +# case value +# when predicate +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#11819 +class SyntaxTree::When < ::SyntaxTree::Node + # @return [When] a new instance of When + # + # source://syntax_tree//lib/syntax_tree/node.rb#11832 + def initialize(arguments:, statements:, consequent:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11924 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11840 + def accept(visitor); end + + # [Args] the arguments to the when clause + # + # source://syntax_tree//lib/syntax_tree/node.rb#11821 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11844 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11830 + def comments; end + + # [nil | Else | When] the next clause in the chain + # + # source://syntax_tree//lib/syntax_tree/node.rb#11827 + def consequent; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11848 + def copy(arguments: T.unsafe(nil), statements: T.unsafe(nil), consequent: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11844 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11863 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11889 + def format(q); end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#11824 + def statements; end +end + +# We're going to keep a single instance of this separator around so we don't +# have to allocate a new one every time we format a when clause. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11887 +SyntaxTree::When::SEPARATOR = T.let(T.unsafe(nil), SyntaxTree::When::Separator) + +# We have a special separator here for when clauses which causes them to +# fill as much of the line as possible as opposed to everything breaking +# into its own line as soon as you hit the print limit. +# +# source://syntax_tree//lib/syntax_tree/node.rb#11876 +class SyntaxTree::When::Separator + # source://syntax_tree//lib/syntax_tree/node.rb#11877 + def call(q); end +end + +# While represents a +while+ loop. +# +# while predicate +# end +# +# source://syntax_tree//lib/syntax_tree/node.rb#11935 +class SyntaxTree::WhileNode < ::SyntaxTree::Node + # @return [WhileNode] a new instance of WhileNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#11945 + def initialize(predicate:, statements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11987 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11952 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11956 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#11943 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11960 + def copy(predicate: T.unsafe(nil), statements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11956 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#11974 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#11983 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#11992 + def modifier?; end + + # [Node] the expression to be checked + # + # source://syntax_tree//lib/syntax_tree/node.rb#11937 + def predicate; end + + # [Statements] the expressions to be executed + # + # source://syntax_tree//lib/syntax_tree/node.rb#11940 + def statements; end +end + +# WithScope is a module intended to be included in classes inheriting from +# Visitor. The module overrides a few visit methods to automatically keep +# track of local variables and arguments defined in the current scope. +# Example usage: +# +# class MyVisitor < Visitor +# include WithScope +# +# def visit_ident(node) +# # Check if we're visiting an identifier for an argument, a local +# # variable or something else +# local = current_scope.find_local(node) +# +# if local.type == :argument +# # handle identifiers for arguments +# elsif local.type == :variable +# # handle identifiers for variables +# else +# # handle other identifiers, such as method names +# end +# end +# end +# +# source://syntax_tree//lib/syntax_tree/with_scope.rb#27 +module SyntaxTree::WithScope + # source://syntax_tree//lib/syntax_tree/with_scope.rb#122 + def initialize(*args, **kwargs, &block); end + + # Returns the value of attribute current_scope. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#120 + def current_scope; end + + # Visit for capturing local variables defined in regex named capture groups + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#236 + def visit_binary(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#189 + def visit_block_var(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#182 + def visit_blockarg(node); end + + # Visits for nodes that create new scopes, such as classes, modules + # and method definitions. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#131 + def visit_class(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#147 + def visit_def(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#175 + def visit_kwrest_param(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#189 + def visit_lambda_var(node); end + + # When we find a method invocation with a block, only the code that happens + # inside of the block needs a fresh scope. The method invocation + # itself happens in the same scope. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#142 + def visit_method_add_block(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#135 + def visit_module(node); end + + # Visit for keeping track of local arguments, such as method and block + # arguments. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#153 + def visit_params(node); end + + # Visit for keeping track of local variable definitions + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#207 + def visit_pinned_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#168 + def visit_rest_param(node); end + + # Visit for keeping track of local variable definitions + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#199 + def visit_var_field(node); end + + # Visits for keeping track of variable and argument usages + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#215 + def visit_var_ref(node); end + + # When using regex named capture groups, vcalls might actually be a variable + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#227 + def visit_vcall(node); end + + private + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#285 + def add_argument_definitions(list); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#299 + def next_scope_id; end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#303 + def with_scope(parent_scope = T.unsafe(nil)); end +end + +# The scope class is used to keep track of local variables and arguments +# inside a particular scope. +# +# source://syntax_tree//lib/syntax_tree/with_scope.rb#30 +class SyntaxTree::WithScope::Scope + # @return [Scope] a new instance of Scope + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#68 + def initialize(id, parent = T.unsafe(nil)); end + + # Adding a local definition will either insert a new entry in the locals + # hash or append a new definition location to an existing local. Notice + # that it's not possible to change the type of a local after it has been + # registered. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#78 + def add_local_definition(identifier, type); end + + # Adding a local usage will either insert a new entry in the locals + # hash or append a new usage location to an existing local. Notice that + # it's not possible to change the type of a local after it has been + # registered. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#95 + def add_local_usage(identifier, type); end + + # Try to find the local given its name in this scope or any of its + # parents. + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#102 + def find_local(name); end + + # [Integer] a unique identifier for this scope + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#59 + def id; end + + # [Hash[String, Local]] The local variables and arguments defined in this + # scope + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#66 + def locals; end + + # [scope | nil] The parent scope + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#62 + def parent; end + + private + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#108 + def resolve_local(name, type); end +end + +# This class tracks the occurrences of a local variable or argument. +# +# source://syntax_tree//lib/syntax_tree/with_scope.rb#32 +class SyntaxTree::WithScope::Scope::Local + # @return [Local] a new instance of Local + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#43 + def initialize(type); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#49 + def add_definition(location); end + + # source://syntax_tree//lib/syntax_tree/with_scope.rb#53 + def add_usage(location); end + + # [Array[Location]] The locations of all definitions and assignments of + # this local + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#38 + def definitions; end + + # [Symbol] The type of the local (e.g. :argument, :variable) + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#34 + def type; end + + # [Array[Location]] The locations of all usages of this local + # + # source://syntax_tree//lib/syntax_tree/with_scope.rb#41 + def usages; end +end + +# Word represents an element within a special array literal that accepts +# interpolation. +# +# %W[a#{b}c xyz] +# +# In the example above, there would be two Word nodes within a parent Words +# node. +# +# source://syntax_tree//lib/syntax_tree/node.rb#12004 +class SyntaxTree::Word < ::SyntaxTree::Node + # @return [Word] a new instance of Word + # + # source://syntax_tree//lib/syntax_tree/node.rb#12012 + def initialize(parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12051 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12022 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12026 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#12010 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12030 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12026 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12043 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12047 + def format(q); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/node.rb#12018 + def match?(pattern); end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # word + # + # source://syntax_tree//lib/syntax_tree/node.rb#12007 + def parts; end +end + +# Words represents a string literal array with interpolation. +# +# %W[one two three] +# +# source://syntax_tree//lib/syntax_tree/node.rb#12060 +class SyntaxTree::Words < ::SyntaxTree::Node + # @return [Words] a new instance of Words + # + # source://syntax_tree//lib/syntax_tree/node.rb#12070 + def initialize(beginning:, elements:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12126 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12077 + def accept(visitor); end + + # [WordsBeg] the token that opens this array literal + # + # source://syntax_tree//lib/syntax_tree/node.rb#12062 + def beginning; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12081 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#12068 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12085 + def copy(beginning: T.unsafe(nil), elements: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12081 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12095 + def deconstruct_keys(_keys); end + + # [Array[ Word ]] the elements of this array + # + # source://syntax_tree//lib/syntax_tree/node.rb#12065 + def elements; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12104 + def format(q); end +end + +# WordsBeg represents the beginning of a string literal array with +# interpolation. +# +# %W[one two three] +# +# In the snippet above, a WordsBeg would be created with the value of "%W[". +# Note that these kinds of arrays can start with a lot of different delimiter +# types (e.g., %W| or %W<). +# +# source://syntax_tree//lib/syntax_tree/node.rb#12140 +class SyntaxTree::WordsBeg < ::SyntaxTree::Node + # @return [WordsBeg] a new instance of WordsBeg + # + # source://syntax_tree//lib/syntax_tree/node.rb#12144 + def initialize(value:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12170 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12149 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12153 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12157 + def copy(value: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12153 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12166 + def deconstruct_keys(_keys); end + + # [String] the start of the word literal array + # + # source://syntax_tree//lib/syntax_tree/node.rb#12142 + def value; end +end + +# XString represents the contents of an XStringLiteral. +# +# `ls` +# +# source://syntax_tree//lib/syntax_tree/node.rb#12179 +class SyntaxTree::XString < ::SyntaxTree::Node + # @return [XString] a new instance of XString + # + # source://syntax_tree//lib/syntax_tree/node.rb#12184 + def initialize(parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12210 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12189 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12193 + def child_nodes; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12197 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12193 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12206 + def deconstruct_keys(_keys); end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # xstring + # + # source://syntax_tree//lib/syntax_tree/node.rb#12182 + def parts; end +end + +# XStringLiteral represents a string that gets executed. +# +# `ls` +# +# source://syntax_tree//lib/syntax_tree/node.rb#12219 +class SyntaxTree::XStringLiteral < ::SyntaxTree::Node + # @return [XStringLiteral] a new instance of XStringLiteral + # + # source://syntax_tree//lib/syntax_tree/node.rb#12227 + def initialize(parts:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12264 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12233 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12237 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#12225 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12241 + def copy(parts: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12237 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12254 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12258 + def format(q); end + + # [Array[ StringEmbExpr | StringDVar | TStringContent ]] the parts of the + # xstring + # + # source://syntax_tree//lib/syntax_tree/node.rb#12222 + def parts; end +end + +# This module provides an object representation of the YARV bytecode. +# +# source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#4 +module SyntaxTree::YARV + class << self + # A convenience method for creating a CallData object. + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#88 + def calldata(method, argc = T.unsafe(nil), flags = T.unsafe(nil), kw_arg = T.unsafe(nil)); end + + # Compile the given source into a YARV instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv.rb#25 + def compile(source, options = T.unsafe(nil)); end + + # Compile and interpret the given source. + # + # source://syntax_tree//lib/syntax_tree/yarv.rb#30 + def interpret(source, options = T.unsafe(nil)); end + end +end + +# ### Summary +# +# `adjuststack` accepts a single integer argument and removes that many +# elements from the top of the stack. +# +# ### Usage +# +# ~~~ruby +# x = [true] +# x[0] ||= nil +# x[0] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#69 +class SyntaxTree::YARV::AdjustStack < ::SyntaxTree::YARV::Instruction + # @return [AdjustStack] a new instance of AdjustStack + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#72 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#88 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#100 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#84 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#76 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#92 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#70 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#96 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#80 + def to_a(_iseq); end +end + +# ### Summary +# +# `anytostring` ensures that the value on top of the stack is a string. +# +# It pops two values off the stack. If the first value is a string it +# pushes it back on the stack. If the first value is not a string, it uses +# Ruby's built in string coercion to coerce the second value to a string +# and then pushes that back on the stack. +# +# This is used in conjunction with `objtostring` as a fallback for when an +# object's `to_s` method does not return a string. +# +# ### Usage +# +# ~~~ruby +# "#{5}" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#123 +class SyntaxTree::YARV::AnyToString < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#136 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#148 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#132 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#124 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#140 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#144 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#128 + def to_a(_iseq); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#5 +class SyntaxTree::YARV::Assembler + # @return [Assembler] a new instance of Assembler + # + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#66 + def initialize(lines); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#70 + def assemble; end + + # Returns the value of attribute lines. + # + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#64 + def lines; end + + private + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#88 + def assemble_iseq(iseq, lines); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#408 + def find_local(iseq, operands); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#417 + def parse(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#449 + def parse_calldata(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#444 + def parse_nested(lines); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#432 + def parse_number(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#424 + def parse_options(value, options); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#436 + def parse_string(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#440 + def parse_symbol(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#428 + def parse_type(value, type); end + + class << self + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#78 + def assemble(source); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#82 + def assemble_file(filepath); end + end +end + +# source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#28 +SyntaxTree::YARV::Assembler::CALLDATA_FLAGS = T.let(T.unsafe(nil), Hash) + +# source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#43 +SyntaxTree::YARV::Assembler::DEFINED_TYPES = T.let(T.unsafe(nil), Array) + +# source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#6 +class SyntaxTree::YARV::Assembler::ObjectVisitor < ::SyntaxTree::YARV::Compiler::RubyVisitor + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#7 + def visit_dyna_symbol(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/assembler.rb#15 + def visit_string_literal(node); end +end + +# This object represents a single basic block, wherein all contained +# instructions do not branch except for the last one. +# +# source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#7 +class SyntaxTree::YARV::BasicBlock + # @return [BasicBlock] a new instance of BasicBlock + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#23 + def initialize(block_start, insns); end + + # This is the index into the list of instructions where this block starts. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#12 + def block_start; end + + # Yield each instruction in this basic block along with its index from the + # original instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#35 + def each_with_length; end + + # This is the unique identifier for this basic block. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#9 + def id; end + + # This is an array of basic blocks that lead into this block. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#18 + def incoming_blocks; end + + # This is the set of instructions that this block contains. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#15 + def insns; end + + # This is an array of basic blocks that this block leads into. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#21 + def outgoing_blocks; end + + # This method is used to verify that the basic block is well formed. It + # checks that the only instruction in this basic block that branches is + # the last instruction. + # + # source://syntax_tree//lib/syntax_tree/yarv/basic_block.rb#48 + def verify; end +end + +# Parses the given source code into a syntax tree, compiles that syntax tree +# into YARV bytecode. +# +# source://syntax_tree//lib/syntax_tree/yarv/bf.rb#7 +class SyntaxTree::YARV::Bf + # @return [Bf] a new instance of Bf + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#10 + def initialize(source); end + + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#14 + def compile; end + + # Returns the value of attribute source. + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#8 + def source; end + + private + + # $tape[$cursor] += value + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#84 + def change_by(iseq, value); end + + # $tape[$cursor] = $stdin.getc.ord + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#133 + def input_char(iseq); end + + # Jump back to the start of the loop. + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#163 + def loop_end(iseq, start_label, end_label); end + + # unless $tape[$cursor] == 0 + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#146 + def loop_start(iseq); end + + # $stdout.putc($tape[$cursor].chr) + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#120 + def output_char(iseq); end + + # $cursor += value + # + # source://syntax_tree//lib/syntax_tree/yarv/bf.rb#105 + def shift_by(iseq, value); end +end + +# ### Summary +# +# `branchif` has one argument: the jump index. It pops one value off the +# stack: the jump condition. +# +# If the value popped off the stack is true, `branchif` jumps to +# the jump index and continues executing there. +# +# ### Usage +# +# ~~~ruby +# x = true +# x ||= "foo" +# puts x +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#175 +class SyntaxTree::YARV::BranchIf < ::SyntaxTree::YARV::Instruction + # @return [BranchIf] a new instance of BranchIf + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#178 + def initialize(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#194 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#210 + def branch_targets; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#206 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#190 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#182 + def disasm(fmt); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#214 + def falls_through?; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#176 + def label; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#198 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#202 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#186 + def to_a(_iseq); end +end + +# ### Summary +# +# `branchnil` has one argument: the jump index. It pops one value off the +# stack: the jump condition. +# +# If the value popped off the stack is nil, `branchnil` jumps to +# the jump index and continues executing there. +# +# ### Usage +# +# ~~~ruby +# x = nil +# if x&.to_s +# puts "hi" +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#236 +class SyntaxTree::YARV::BranchNil < ::SyntaxTree::YARV::Instruction + # @return [BranchNil] a new instance of BranchNil + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#239 + def initialize(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#255 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#271 + def branch_targets; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#267 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#251 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#243 + def disasm(fmt); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#275 + def falls_through?; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#237 + def label; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#259 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#263 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#247 + def to_a(_iseq); end +end + +# ### Summary +# +# `branchunless` has one argument: the jump index. It pops one value off +# the stack: the jump condition. +# +# If the value popped off the stack is false or nil, `branchunless` jumps +# to the jump index and continues executing there. +# +# ### Usage +# +# ~~~ruby +# if 2 + 3 +# puts "foo" +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#296 +class SyntaxTree::YARV::BranchUnless < ::SyntaxTree::YARV::Instruction + # @return [BranchUnless] a new instance of BranchUnless + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#299 + def initialize(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#315 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#331 + def branch_targets; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#327 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#311 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#303 + def disasm(fmt); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#335 + def falls_through?; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#297 + def label; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#319 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#323 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#307 + def to_a(_iseq); end +end + +# This is an operand to various YARV instructions that represents the +# information about a specific call site. +# +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#7 +class SyntaxTree::YARV::CallData + # @return [CallData] a new instance of CallData + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#31 + def initialize(method, argc = T.unsafe(nil), flags = T.unsafe(nil), kw_arg = T.unsafe(nil)); end + + # Returns the value of attribute argc. + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#29 + def argc; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#43 + def flag?(mask); end + + # Returns the value of attribute flags. + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#29 + def flags; end + + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#53 + def inspect; end + + # Returns the value of attribute kw_arg. + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#29 + def kw_arg; end + + # Returns the value of attribute method. + # + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#29 + def method; end + + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#47 + def to_h; end + + class << self + # source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#77 + def from(serialized); end + end +end + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_ARGS_BLOCKARG = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_ARGS_SIMPLE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_ARGS_SPLAT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_BLOCKISEQ = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_FCALL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_KWARG = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_KW_SPLAT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_KW_SPLAT_MUT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_OPT_SEND = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_SUPER = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_TAILCALL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_VCALL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/calldata.rb#27 +SyntaxTree::YARV::CallData::CALL_ZSUPER = T.let(T.unsafe(nil), Integer) + +# ### Summary +# +# `checkkeyword` checks if a keyword was passed at the callsite that +# called into the method represented by the instruction sequence. It has +# two arguments: the index of the local variable that stores the keywords +# metadata and the index of the keyword within that metadata. It pushes +# a boolean onto the stack indicating whether or not the keyword was +# given. +# +# ### Usage +# +# ~~~ruby +# def evaluate(value: rand) +# value +# end +# +# evaluate(value: 3) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#359 +class SyntaxTree::YARV::CheckKeyword < ::SyntaxTree::YARV::Instruction + # @return [CheckKeyword] a new instance of CheckKeyword + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#362 + def initialize(keyword_bits_index, keyword_index); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#386 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#400 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#382 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#367 + def disasm(fmt); end + + # Returns the value of attribute keyword_bits_index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#360 + def keyword_bits_index; end + + # Returns the value of attribute keyword_index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#360 + def keyword_index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#392 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#396 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#374 + def to_a(iseq); end +end + +# ### Summary +# +# `checkmatch` checks if the current pattern matches the current value. It +# pops the target and the pattern off the stack and pushes a boolean onto +# the stack if it matches or not. +# +# ### Usage +# +# ~~~ruby +# foo in Foo +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#417 +class SyntaxTree::YARV::CheckMatch < ::SyntaxTree::YARV::Instruction + # @return [CheckMatch] a new instance of CheckMatch + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#426 + def initialize(type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#442 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#458 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#438 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#430 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#446 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#450 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#454 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#434 + def to_a(_iseq); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#424 + def type; end + + private + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#472 + def check?(pattern, target); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#422 +SyntaxTree::YARV::CheckMatch::VM_CHECKMATCH_ARRAY = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#419 +SyntaxTree::YARV::CheckMatch::VM_CHECKMATCH_TYPE_CASE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#421 +SyntaxTree::YARV::CheckMatch::VM_CHECKMATCH_TYPE_MASK = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#420 +SyntaxTree::YARV::CheckMatch::VM_CHECKMATCH_TYPE_RESCUE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#418 +SyntaxTree::YARV::CheckMatch::VM_CHECKMATCH_TYPE_WHEN = T.let(T.unsafe(nil), Integer) + +# ### Summary +# +# `checktype` checks if the value on top of the stack is of a certain type. +# The type is the only argument. It pops the value off the stack and pushes +# a boolean onto the stack indicating whether or not the value is of the +# given type. +# +# ### Usage +# +# ~~~ruby +# foo in [bar] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#501 +class SyntaxTree::YARV::CheckType < ::SyntaxTree::YARV::Instruction + # @return [CheckType] a new instance of CheckType + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#526 + def initialize(type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#588 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#608 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#584 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#530 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#592 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#596 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#600 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#580 + def to_a(_iseq); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#524 + def type; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#508 +SyntaxTree::YARV::CheckType::TYPE_ARRAY = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#511 +SyntaxTree::YARV::CheckType::TYPE_BIGNUM = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#503 +SyntaxTree::YARV::CheckType::TYPE_CLASS = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#515 +SyntaxTree::YARV::CheckType::TYPE_COMPLEX = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#513 +SyntaxTree::YARV::CheckType::TYPE_DATA = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#519 +SyntaxTree::YARV::CheckType::TYPE_FALSE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#512 +SyntaxTree::YARV::CheckType::TYPE_FILE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#521 +SyntaxTree::YARV::CheckType::TYPE_FIXNUM = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#505 +SyntaxTree::YARV::CheckType::TYPE_FLOAT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#509 +SyntaxTree::YARV::CheckType::TYPE_HASH = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#514 +SyntaxTree::YARV::CheckType::TYPE_MATCH = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#504 +SyntaxTree::YARV::CheckType::TYPE_MODULE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#517 +SyntaxTree::YARV::CheckType::TYPE_NIL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#502 +SyntaxTree::YARV::CheckType::TYPE_OBJECT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#516 +SyntaxTree::YARV::CheckType::TYPE_RATIONAL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#507 +SyntaxTree::YARV::CheckType::TYPE_REGEXP = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#506 +SyntaxTree::YARV::CheckType::TYPE_STRING = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#510 +SyntaxTree::YARV::CheckType::TYPE_STRUCT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#520 +SyntaxTree::YARV::CheckType::TYPE_SYMBOL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#518 +SyntaxTree::YARV::CheckType::TYPE_TRUE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#522 +SyntaxTree::YARV::CheckType::TYPE_UNDEF = T.let(T.unsafe(nil), Integer) + +# This class is an experiment in transforming Syntax Tree nodes into their +# corresponding YARV instruction sequences. It attempts to mirror the +# behavior of RubyVM::InstructionSequence.compile. +# +# You use this as with any other visitor. First you parse code into a tree, +# then you visit it with this compiler. Visiting the root node of the tree +# will return a SyntaxTree::YARV::Compiler::InstructionSequence object. +# With that object you can call #to_a on it, which will return a serialized +# form of the instruction sequence as an array. This array _should_ mirror +# the array given by RubyVM::InstructionSequence#to_a. +# +# As an example, here is how you would compile a single expression: +# +# program = SyntaxTree.parse("1 + 2") +# program.accept(SyntaxTree::YARV::Compiler.new).to_a +# +# [ +# "YARVInstructionSequence/SimpleDataFormat", +# 3, +# 1, +# 1, +# {:arg_size=>0, :local_size=>0, :stack_max=>2}, +# "<compiled>", +# "<compiled>", +# "<compiled>", +# 1, +# :top, +# [], +# {}, +# [], +# [ +# [:putobject_INT2FIX_1_], +# [:putobject, 2], +# [:opt_plus, {:mid=>:+, :flag=>16, :orig_argc=>1}], +# [:leave] +# ] +# ] +# +# Note that this is the same output as calling: +# +# RubyVM::InstructionSequence.compile("1 + 2").to_a +# +# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#47 +class SyntaxTree::YARV::Compiler < ::SyntaxTree::BasicVisitor + # @return [Compiler] a new instance of Compiler + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#293 + def initialize(options = T.unsafe(nil)); end + + # The current instruction sequence that is being compiled. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#286 + def iseq; end + + # A boolean to track if we're currently compiling the last statement + # within a set of statements. This information is necessary to determine + # if we need to return the value of the last statement. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#291 + def last_statement; end + + # These options mirror the compilation options that we currently support + # that can be also passed to RubyVM::InstructionSequence.compile. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#283 + def options; end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#299 + def visit_BEGIN(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#303 + def visit_CHAR(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#311 + def visit_END(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#339 + def visit_alias(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#347 + def visit_aref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#369 + def visit_arg_block(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#373 + def visit_arg_paren(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#377 + def visit_arg_star(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#382 + def visit_args(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#386 + def visit_array(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#421 + def visit_aryptn(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#424 + def visit_assign(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#522 + def visit_assoc(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#527 + def visit_assoc_splat(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#531 + def visit_backref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#535 + def visit_bare_assoc_hash(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#543 + def visit_begin(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#546 + def visit_binary(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#575 + def visit_block(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#585 + def visit_block_var(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#599 + def visit_blockarg(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#605 + def visit_bodystmt(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#609 + def visit_break(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#612 + def visit_call(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#712 + def visit_case(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#757 + def visit_class(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#792 + def visit_command(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#805 + def visit_command_call(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#818 + def visit_const_path_field(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#822 + def visit_const_path_ref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#827 + def visit_def(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#850 + def visit_defined(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#907 + def visit_dyna_symbol(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#913 + def visit_else(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#918 + def visit_elsif(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#929 + def visit_ensure(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#932 + def visit_field(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#936 + def visit_float(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#940 + def visit_fndptn(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#943 + def visit_for(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#976 + def visit_hash(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#988 + def visit_heredoc(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#985 + def visit_hshptn(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#999 + def visit_if(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1053 + def visit_if_op(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1074 + def visit_imaginary(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1078 + def visit_int(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1082 + def visit_kwrest_param(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1088 + def visit_label(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1092 + def visit_lambda(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1106 + def visit_lambda_var(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1110 + def visit_massign(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1116 + def visit_method_add_block(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1129 + def visit_mlhs(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1142 + def visit_module(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1171 + def visit_mrhs(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1180 + def visit_next(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1183 + def visit_not(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1188 + def visit_opassign(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1254 + def visit_params(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1360 + def visit_paren(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1364 + def visit_pinned_begin(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1367 + def visit_pinned_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1370 + def visit_program(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1421 + def visit_qsymbols(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1425 + def visit_qwords(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1434 + def visit_range(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1444 + def visit_rassign(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1521 + def visit_rational(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1525 + def visit_redo(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1528 + def visit_regexp_literal(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1538 + def visit_rescue(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1541 + def visit_rescue_ex(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1544 + def visit_rescue_mod(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1547 + def visit_rest_param(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1553 + def visit_retry(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1556 + def visit_return(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1559 + def visit_sclass(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1580 + def visit_statements(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1594 + def visit_string_concat(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1606 + def visit_string_embexpr(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1610 + def visit_string_literal(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1619 + def visit_super(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1633 + def visit_symbol_literal(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1637 + def visit_symbols(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1656 + def visit_top_const_ref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1660 + def visit_tstring_content(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1668 + def visit_unary(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1689 + def visit_undef(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1699 + def visit_unless(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1725 + def visit_until(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1744 + def visit_var_field(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1761 + def visit_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1796 + def visit_vcall(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1808 + def visit_when(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1812 + def visit_while(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1831 + def visit_word(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1840 + def visit_words(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1850 + def visit_xstring_literal(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1863 + def visit_yield(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1869 + def visit_zsuper(_node); end + + private + + # This is a helper that is used in places where arguments may be present + # or they may be wrapped in parentheses. It's meant to descend down the + # tree and return an array of argument nodes. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1887 + def argument_parts(node); end + + # Constant names when they are being assigned or referenced come in as a + # tree, but it's more convenient to work with them as an array. This + # method converts them into that array. This is nice because it's the + # operand that goes to opt_getconstant_path in Ruby 3.2. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1908 + def constant_names(node); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2196 + def last_statement?; end + + # For the most part when an OpAssign (operator assignment) node with a ||= + # operator is being compiled it's a matter of reading the target, checking + # if the value should be evaluated, evaluating it if so, and then writing + # the result back to the target. + # + # However, in certain kinds of assignments (X, ::X, X::Y, @@x, and $x) we + # first check if the value is defined using the defined instruction. I + # don't know why it is necessary, and suspect that it isn't. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#1936 + def opassign_defined(node); end + + # Whenever a value is interpolated into a string-like structure, these + # three instructions are pushed. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2016 + def push_interpolate; end + + # Visit a type of pattern in a pattern match. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2029 + def visit_pattern(node, end_label); end + + # There are a lot of nodes in the AST that act as contains of parts of + # strings. This includes things like string literals, regular expressions, + # heredocs, etc. This method will visit all the parts of a string within + # those containers. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2137 + def visit_string_parts(node); end + + # The current instruction sequence that we're compiling is always stored + # on the compiler. When we descend into a node that has its own + # instruction sequence, this method can be called to temporarily set the + # new value of the instruction sequence, yield, and then set it back. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2167 + def with_child_iseq(child_iseq); end + + # When we're compiling the last statement of a set of statements within a + # scope, the instructions sometimes change from pops to leaves. These + # kinds of peephole optimizations can reduce the overall number of + # instructions. Therefore, we keep track of whether we're compiling the + # last statement of a scope and allow visit methods to query that + # information. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2185 + def with_last_statement; end + + # OpAssign nodes can have a number of different kinds of nodes as their + # "target" (i.e., the left-hand side of the assignment). When compiling + # these nodes we typically need to first fetch the current value of the + # variable, then perform some kind of action, then store the result back + # into the variable. This method handles that by first fetching the value, + # then yielding to the block, then storing the result. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#2206 + def with_opassign(node); end +end + +# This represents a set of options that can be passed to the compiler to +# control how it compiles the code. It mirrors the options that can be +# passed to RubyVM::InstructionSequence.compile, except it only includes +# options that actually change the behavior. +# +# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#52 +class SyntaxTree::YARV::Compiler::Options + # @return [Options] a new instance of Options + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#53 + def initialize(frozen_string_literal: T.unsafe(nil), inline_const_cache: T.unsafe(nil), operands_unification: T.unsafe(nil), peephole_optimization: T.unsafe(nil), specialized_instruction: T.unsafe(nil), tailcall_optimization: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#80 + def frozen_string_literal!; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#84 + def frozen_string_literal?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#88 + def inline_const_cache?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#92 + def operands_unification?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#96 + def peephole_optimization?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#100 + def specialized_instruction?; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#104 + def tailcall_optimization?; end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#69 + def to_hash; end +end + +# This visitor is responsible for converting Syntax Tree nodes into their +# corresponding Ruby structures. This is used to convert the operands of +# some instructions like putobject that push a Ruby object directly onto +# the stack. It is only used when the entire structure can be represented +# at compile-time, as opposed to constructed at run-time. +# +# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#114 +class SyntaxTree::YARV::Compiler::RubyVisitor < ::SyntaxTree::BasicVisitor + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_BEGIN(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_CHAR(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_END(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit___end__(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_alias(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_aref(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_aref_field(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_arg_block(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_arg_paren(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_arg_star(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_args(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_args_forward(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#128 + def visit_array(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_aryptn(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_assign(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_assoc(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_assoc_splat(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_backref(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_backtick(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#132 + def visit_bare_assoc_hash(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_begin(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_binary(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_block(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_block_var(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_blockarg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_bodystmt(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_break(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_call(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_case(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_class(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_comma(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_command(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_command_call(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_comment(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_const(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_const_path_field(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_const_path_ref(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_const_ref(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_cvar(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_def(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_defined(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_dyna_symbol(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_else(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_elsif(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_embdoc(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_embexpr_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_embexpr_end(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_embvar(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_ensure(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_excessed_comma(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_field(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#141 + def visit_float(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_fndptn(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_for(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_gvar(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#132 + def visit_hash(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_heredoc(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_heredoc_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_heredoc_end(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_hshptn(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_ident(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_if(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_if_op(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#147 + def visit_imaginary(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_in(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#151 + def visit_int(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_ivar(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_kw(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_kwrest_param(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#166 + def visit_label(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_label_end(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_lambda(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_lambda_var(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_lbrace(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_lbracket(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_lparen(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_massign(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_method_add_block(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_mlhs(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_mlhs_paren(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_module(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#170 + def visit_mrhs(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_next(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_not(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_op(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_opassign(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_params(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_paren(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_period(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_pinned_begin(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_pinned_var_ref(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_program(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#174 + def visit_qsymbols(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_qsymbols_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#178 + def visit_qwords(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_qwords_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#182 + def visit_range(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rassign(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#187 + def visit_rational(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rbrace(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rbracket(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_redo(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_regexp_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_regexp_content(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_regexp_end(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#191 + def visit_regexp_literal(node); end + + # This isn't actually a visit method, though maybe it should be. It is + # responsible for converting the set of string options on a regular + # expression into its equivalent integer. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#249 + def visit_regexp_literal_flags(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rescue(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rescue_ex(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rescue_mod(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rest_param(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_retry(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_return(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_rparen(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_sclass(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_statements(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_string_concat(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_string_content(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_string_dvar(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_string_embexpr(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_string_literal(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_super(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_symbeg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_symbol_content(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#204 + def visit_symbol_literal(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#208 + def visit_symbols(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_symbols_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_tlambda(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_tlambeg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_top_const_field(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_top_const_ref(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_tstring_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#212 + def visit_tstring_content(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_tstring_end(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_unary(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_undef(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_unless(_node); end + + # @raise [CompilationError] + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_unsupported(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_until(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_var_field(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#216 + def visit_var_ref(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_vcall(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_void_stmt(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_when(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_while(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#231 + def visit_word(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#241 + def visit_words(node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_words_beg(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_xstring(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_xstring_literal(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_yield(_node); end + + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#268 + def visit_zsuper(_node); end + + class << self + # This will attempt to compile the given node. If it's possible, then + # it will return the compiled object. Otherwise it will return nil. + # + # source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#122 + def compile(node); end + end +end + +# This error is raised whenever a node cannot be converted into a Ruby +# object at compile-time. +# +# source://syntax_tree//lib/syntax_tree/yarv/compiler.rb#117 +class SyntaxTree::YARV::Compiler::RubyVisitor::CompilationError < ::StandardError; end + +# ### Summary +# +# `concatarray` concatenates the two Arrays on top of the stack. +# +# It coerces the two objects at the top of the stack into Arrays by +# calling `to_a` if necessary, and makes sure to `dup` the first Array if +# it was already an Array, to avoid mutating it when concatenating. +# +# ### Usage +# +# ~~~ruby +# [1, *2] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#674 +class SyntaxTree::YARV::ConcatArray < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#687 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#699 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#683 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#675 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#691 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#695 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#679 + def to_a(_iseq); end +end + +# ### Summary +# +# `concatstrings` pops a number of strings from the stack joins them +# together into a single string and pushes that string back on the stack. +# +# This does no coercion and so is always used in conjunction with +# `objtostring` and `anytostring` to ensure the stack contents are always +# strings. +# +# ### Usage +# +# ~~~ruby +# "#{5}" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#720 +class SyntaxTree::YARV::ConcatStrings < ::SyntaxTree::YARV::Instruction + # @return [ConcatStrings] a new instance of ConcatStrings + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#723 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#739 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#755 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#735 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#727 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#743 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#721 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#747 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#751 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#731 + def to_a(_iseq); end +end + +# This class represents a control flow graph of a YARV instruction sequence. +# It constructs a graph of basic blocks that hold subsets of the list of +# instructions from the instruction sequence. +# +# You can use this class by calling the ::compile method and passing it a +# YARV instruction sequence. It will return a control flow graph object. +# +# iseq = RubyVM::InstructionSequence.compile("1 + 2") +# iseq = SyntaxTree::YARV::InstructionSequence.from(iseq.to_a) +# cfg = SyntaxTree::YARV::ControlFlowGraph.compile(iseq) +# +# source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#16 +class SyntaxTree::YARV::ControlFlowGraph + # @return [ControlFlowGraph] a new instance of ControlFlowGraph + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#173 + def initialize(iseq, insns, blocks); end + + # This is the set of basic blocks that this control-flow graph contains. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#171 + def blocks; end + + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#179 + def disasm; end + + # This is the list of instructions that this control flow graph contains. + # It is effectively the same as the list of instructions in the + # instruction sequence but with line numbers and events filtered out. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#168 + def insns; end + + # This is the instruction sequence that this control flow graph + # corresponds to. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#163 + def iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#202 + def to_dfg; end + + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#210 + def to_mermaid; end + + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#206 + def to_son; end + + # This method is used to verify that the control flow graph is well + # formed. It does this by checking that each basic block is itself well + # formed. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#248 + def verify; end + + class << self + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#252 + def compile(iseq); end + end +end + +# This class is responsible for creating a control flow graph from the +# given instruction sequence. +# +# source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#19 +class SyntaxTree::YARV::ControlFlowGraph::Compiler + # @return [Compiler] a new instance of Compiler + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#34 + def initialize(iseq); end + + # This method is used to compile the instruction sequence into a control + # flow graph. It returns an instance of ControlFlowGraph. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#54 + def compile; end + + # This is a hash of indices in the YARV instruction sequence that point + # to their corresponding instruction. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#25 + def insns; end + + # This is the instruction sequence that is being compiled. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#21 + def iseq; end + + # This is a hash of labels that point to their corresponding index into + # the YARV instruction sequence. Note that this is not the same as the + # index into the list of instructions on the instruction sequence + # object. Instead, this is the index into the C array, so it includes + # operands. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#32 + def labels; end + + private + + # Builds up a set of basic blocks by iterating over the starts of each + # block. They are keyed by the index of their first instruction. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#92 + def build_basic_blocks; end + + # Connect the blocks by letting them know which blocks are incoming and + # outgoing from each block. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#123 + def connect_basic_blocks(blocks); end + + # Finds the indices of the instructions that start a basic block because + # they're either: + # + # * the start of an instruction sequence + # * the target of a branch + # * fallen through to from a branch + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#72 + def find_basic_block_starts; end + + # If there are blocks that are unreachable, we can remove them from the + # graph entirely at this point. + # + # source://syntax_tree//lib/syntax_tree/yarv/control_flow_graph.rb#145 + def prune_basic_blocks(blocks); end +end + +# Constructs a data-flow-graph of a YARV instruction sequence, via a +# control-flow-graph. Data flow is discovered locally and then globally. The +# graph only considers data flow through the stack - local variables and +# objects are considered fully escaped in this analysis. +# +# You can use this class by calling the ::compile method and passing it a +# control flow graph. It will return a data flow graph object. +# +# iseq = RubyVM::InstructionSequence.compile("1 + 2") +# iseq = SyntaxTree::YARV::InstructionSequence.from(iseq.to_a) +# cfg = SyntaxTree::YARV::ControlFlowGraph.compile(iseq) +# dfg = SyntaxTree::YARV::DataFlowGraph.compile(cfg) +# +# source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#18 +class SyntaxTree::YARV::DataFlowGraph + # @return [DataFlowGraph] a new instance of DataFlowGraph + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#68 + def initialize(cfg, insn_flows, block_flows); end + + # Returns the value of attribute block_flows. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#66 + def block_flows; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#74 + def blocks; end + + # Returns the value of attribute cfg. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#66 + def cfg; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#78 + def disasm; end + + # Returns the value of attribute insn_flows. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#66 + def insn_flows; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#127 + def to_mermaid; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#123 + def to_son; end + + # Verify that we constructed the data flow graph correctly. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#179 + def verify; end + + class << self + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#204 + def compile(cfg); end + end +end + +# This represents an object that goes on the stack that is passed between +# basic blocks. +# +# source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#32 +class SyntaxTree::YARV::DataFlowGraph::BlockArgument + # @return [BlockArgument] a new instance of BlockArgument + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#35 + def initialize(name); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#39 + def local?; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#33 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#43 + def to_str; end +end + +# This class is responsible for creating a data flow graph from the given +# control flow graph. +# +# source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#210 +class SyntaxTree::YARV::DataFlowGraph::Compiler + # @return [Compiler] a new instance of Compiler + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#221 + def initialize(cfg); end + + # This data structure will hold the data flow between basic blocks. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#219 + def block_flows; end + + # This is the control flow graph that is being compiled. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#212 + def cfg; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#227 + def compile; end + + # This data structure will hold the data flow between instructions + # within individual basic blocks. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#216 + def insn_flows; end + + private + + # Find the data that flows between basic blocks. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#304 + def find_external_flow; end + + # Find the data flow within each basic block. Using an abstract stack, + # connect from consumers of data to the producers of that data. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#237 + def find_internal_flow; end +end + +# This object represents the flow of data between instructions. +# +# source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#20 +class SyntaxTree::YARV::DataFlowGraph::DataFlow + # @return [DataFlow] a new instance of DataFlow + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#24 + def initialize; end + + # Returns the value of attribute in. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#21 + def in; end + + # Returns the value of attribute out. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#22 + def out; end +end + +# This represents an object that goes on the stack that is passed between +# instructions within a basic block. +# +# source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#50 +class SyntaxTree::YARV::DataFlowGraph::LocalArgument + # @return [LocalArgument] a new instance of LocalArgument + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#53 + def initialize(length); end + + # Returns the value of attribute length. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#51 + def length; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#57 + def local?; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#51 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/data_flow_graph.rb#61 + def to_str; end +end + +# This class is responsible for taking a compiled instruction sequence and +# walking through it to generate equivalent Ruby code. +# +# source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#7 +class SyntaxTree::YARV::Decompiler + include ::SyntaxTree::DSL + + # @return [Decompiler] a new instance of Decompiler + # + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#32 + def initialize(iseq); end + + # Returns the value of attribute block_label. + # + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#30 + def block_label; end + + # Returns the value of attribute iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#30 + def iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#37 + def to_ruby; end + + private + + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#52 + def decompile(iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#256 + def local_name(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#43 + def node_for(value); end +end + +# When we're decompiling, we use a looped case statement to emulate +# jumping around in the same way the virtual machine would. This class +# provides convenience methods for generating the AST nodes that have to +# do with that label. +# +# source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#12 +class SyntaxTree::YARV::Decompiler::BlockLabel + include ::SyntaxTree::DSL + + # @return [BlockLabel] a new instance of BlockLabel + # + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#16 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#20 + def field; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#14 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/decompiler.rb#24 + def ref; end +end + +# ### Summary +# +# `defineclass` defines a class. First it pops the superclass off the +# stack, then it pops the object off the stack that the class should be +# defined under. It has three arguments: the name of the constant, the +# instruction sequence associated with the class, and various flags that +# indicate if it is a singleton class, a module, or a regular class. +# +# ### Usage +# +# ~~~ruby +# class Foo +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#775 +class SyntaxTree::YARV::DefineClass < ::SyntaxTree::YARV::Instruction + # @return [DefineClass] a new instance of DefineClass + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#784 + def initialize(name, class_iseq, flags); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#806 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#823 + def call(vm); end + + # Returns the value of attribute class_iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#782 + def class_iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#802 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#790 + def disasm(fmt); end + + # Returns the value of attribute flags. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#782 + def flags; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#811 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#782 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#815 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#819 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#798 + def to_a(_iseq); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#780 +SyntaxTree::YARV::DefineClass::FLAG_HAS_SUPERCLASS = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#779 +SyntaxTree::YARV::DefineClass::FLAG_SCOPED = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#776 +SyntaxTree::YARV::DefineClass::TYPE_CLASS = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#778 +SyntaxTree::YARV::DefineClass::TYPE_MODULE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#777 +SyntaxTree::YARV::DefineClass::TYPE_SINGLETON_CLASS = T.let(T.unsafe(nil), Integer) + +# ### Summary +# +# `definemethod` defines a method on the class of the current value of +# `self`. It accepts two arguments. The first is the name of the method +# being defined. The second is the instruction sequence representing the +# body of the method. +# +# ### Usage +# +# ~~~ruby +# def value = "value" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1068 +class SyntaxTree::YARV::DefineMethod < ::SyntaxTree::YARV::Instruction + # @return [DefineMethod] a new instance of DefineMethod + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1071 + def initialize(method_name, method_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1092 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1101 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1088 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1076 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1097 + def length; end + + # Returns the value of attribute method_iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1069 + def method_iseq; end + + # Returns the value of attribute method_name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1069 + def method_name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1084 + def to_a(_iseq); end +end + +# ### Summary +# +# `definesmethod` defines a method on the singleton class of the current +# value of `self`. It accepts two arguments. The first is the name of the +# method being defined. The second is the instruction sequence representing +# the body of the method. It pops the object off the stack that the method +# should be defined on. +# +# ### Usage +# +# ~~~ruby +# def self.value = "value" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1137 +class SyntaxTree::YARV::DefineSMethod < ::SyntaxTree::YARV::Instruction + # @return [DefineSMethod] a new instance of DefineSMethod + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1140 + def initialize(method_name, method_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1161 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1174 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1157 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1145 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1166 + def length; end + + # Returns the value of attribute method_iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1138 + def method_iseq; end + + # Returns the value of attribute method_name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1138 + def method_name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1170 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1153 + def to_a(_iseq); end +end + +# ### Summary +# +# `defined` checks if the top value of the stack is defined. If it is, it +# pushes its value onto the stack. Otherwise it pushes `nil`. +# +# ### Usage +# +# ~~~ruby +# defined?(x) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#859 +class SyntaxTree::YARV::Defined < ::SyntaxTree::YARV::Instruction + # @return [Defined] a new instance of Defined + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#880 + def initialize(type, name, message); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#939 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#956 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#935 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#886 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#944 + def length; end + + # Returns the value of attribute message. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#878 + def message; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#878 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#948 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#952 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#931 + def to_a(_iseq); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#878 + def type; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#872 +SyntaxTree::YARV::Defined::TYPE_ASGN = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#865 +SyntaxTree::YARV::Defined::TYPE_CONST = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#876 +SyntaxTree::YARV::Defined::TYPE_CONST_FROM = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#864 +SyntaxTree::YARV::Defined::TYPE_CVAR = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#873 +SyntaxTree::YARV::Defined::TYPE_EXPR = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#871 +SyntaxTree::YARV::Defined::TYPE_FALSE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#875 +SyntaxTree::YARV::Defined::TYPE_FUNC = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#863 +SyntaxTree::YARV::Defined::TYPE_GVAR = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#861 +SyntaxTree::YARV::Defined::TYPE_IVAR = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#862 +SyntaxTree::YARV::Defined::TYPE_LVAR = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#866 +SyntaxTree::YARV::Defined::TYPE_METHOD = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#860 +SyntaxTree::YARV::Defined::TYPE_NIL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#874 +SyntaxTree::YARV::Defined::TYPE_REF = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#869 +SyntaxTree::YARV::Defined::TYPE_SELF = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#870 +SyntaxTree::YARV::Defined::TYPE_TRUE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#867 +SyntaxTree::YARV::Defined::TYPE_YIELD = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#868 +SyntaxTree::YARV::Defined::TYPE_ZSUPER = T.let(T.unsafe(nil), Integer) + +# ### Summary +# +# `definedivar` checks if an instance variable is defined. It is a +# specialization of the `defined` instruction. It accepts three arguments: +# the name of the instance variable, an inline cache, and the string that +# should be pushed onto the stack in the event that the instance variable +# is defined. +# +# ### Usage +# +# ~~~ruby +# defined?(@value) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1011 +class SyntaxTree::YARV::DefinedIVar < ::SyntaxTree::YARV::Instruction + # @return [DefinedIVar] a new instance of DefinedIVar + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1014 + def initialize(name, cache, message); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1035 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1012 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1048 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1031 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1020 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1040 + def length; end + + # Returns the value of attribute message. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1012 + def message; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1012 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1044 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1027 + def to_a(_iseq); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#5 +class SyntaxTree::YARV::Disassembler + # @return [Disassembler] a new instance of Disassembler + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#46 + def initialize(current_iseq = T.unsafe(nil)); end + + # Helpers for various instructions + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#58 + def calldata(value); end + + # Returns the value of attribute current_iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#44 + def current_iseq; end + + # Sets the attribute current_iseq + # + # @param value the value to set the attribute current_iseq to. + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#44 + def current_iseq=(_arg0); end + + # Returns the value of attribute current_prefix. + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#43 + def current_prefix; end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#62 + def enqueue(iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#66 + def event(name); end + + # Entrypoints + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#116 + def format!; end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#123 + def format_insns!(insns, length = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#87 + def inline_storage(cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#91 + def instruction(name, operands = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#95 + def label(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#99 + def local(index, explicit: T.unsafe(nil), implicit: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#108 + def object(value); end + + # Returns the value of attribute output. + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#41 + def output; end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#167 + def print(string); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#171 + def puts(string); end + + # Returns the value of attribute queue. + # + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#41 + def queue; end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#175 + def string; end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#179 + def with_prefix(value); end + + private + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#192 + def format_iseq(iseq); end +end + +# This class is another object that handles disassembling a YARV +# instruction sequence but it renders it without any of the extra spacing +# or alignment. +# +# source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#9 +class SyntaxTree::YARV::Disassembler::Squished + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#10 + def calldata(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#14 + def enqueue(iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#17 + def event(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#20 + def inline_storage(cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#24 + def instruction(name, operands = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#28 + def label(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#32 + def local(index, **_arg1); end + + # source://syntax_tree//lib/syntax_tree/yarv/disassembler.rb#36 + def object(value); end +end + +# ### Summary +# +# `dup` copies the top value of the stack and pushes it onto the stack. +# +# ### Usage +# +# ~~~ruby +# $global = 5 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1206 +class SyntaxTree::YARV::Dup < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1219 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1231 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1215 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1207 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1223 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1227 + def pushes; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1235 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1211 + def to_a(_iseq); end +end + +# ### Summary +# +# `duparray` dups an Array literal and pushes it onto the stack. +# +# ### Usage +# +# ~~~ruby +# [true] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1250 +class SyntaxTree::YARV::DupArray < ::SyntaxTree::YARV::Instruction + # @return [DupArray] a new instance of DupArray + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1253 + def initialize(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1269 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1281 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1265 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1257 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1273 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1251 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1277 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1261 + def to_a(_iseq); end +end + +# ### Summary +# +# `duphash` dups a Hash literal and pushes it onto the stack. +# +# ### Usage +# +# ~~~ruby +# { a: 1 } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1296 +class SyntaxTree::YARV::DupHash < ::SyntaxTree::YARV::Instruction + # @return [DupHash] a new instance of DupHash + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1299 + def initialize(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1315 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1327 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1311 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1303 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1319 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1297 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1323 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1307 + def to_a(_iseq); end +end + +# ### Summary +# +# `dupn` duplicates the top `n` stack elements. +# +# ### Usage +# +# ~~~ruby +# Object::X ||= true +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1342 +class SyntaxTree::YARV::DupN < ::SyntaxTree::YARV::Instruction + # @return [DupN] a new instance of DupN + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1345 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1361 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1373 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1357 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1349 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1365 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1343 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1369 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1353 + def to_a(_iseq); end +end + +# ### Summary +# +# `expandarray` looks at the top of the stack, and if the value is an array +# it replaces it on the stack with `number` elements of the array, or `nil` +# if the elements are missing. +# +# ### Usage +# +# ~~~ruby +# x, = [true, false, nil] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1392 +class SyntaxTree::YARV::ExpandArray < ::SyntaxTree::YARV::Instruction + # @return [ExpandArray] a new instance of ExpandArray + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1395 + def initialize(number, flags); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1412 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1429 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1408 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1400 + def disasm(fmt); end + + # Returns the value of attribute flags. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1393 + def flags; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1417 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1393 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1421 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1425 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1404 + def to_a(_iseq); end +end + +# ### Summary +# +# `getblockparam` is a similar instruction to `getlocal` in that it looks +# for a local variable in the current instruction sequence's local table and +# walks recursively up the parent instruction sequences until it finds it. +# The local it retrieves, however, is a special block local that was passed +# to the current method. It pushes the value of the block local onto the +# stack. +# +# ### Usage +# +# ~~~ruby +# def foo(&block) +# block +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1486 +class SyntaxTree::YARV::GetBlockParam < ::SyntaxTree::YARV::Instruction + # @return [GetBlockParam] a new instance of GetBlockParam + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1489 + def initialize(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1508 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1521 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1504 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1494 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1487 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1513 + def length; end + + # Returns the value of attribute level. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1487 + def level; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1517 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1498 + def to_a(iseq); end +end + +# ### Summary +# +# `getblockparamproxy` is almost the same as `getblockparam` except that it +# pushes a proxy object onto the stack instead of the actual value of the +# block local. This is used when a method is being called on the block +# local. +# +# ### Usage +# +# ~~~ruby +# def foo(&block) +# block.call +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1541 +class SyntaxTree::YARV::GetBlockParamProxy < ::SyntaxTree::YARV::Instruction + # @return [GetBlockParamProxy] a new instance of GetBlockParamProxy + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1544 + def initialize(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1566 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1579 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1562 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1549 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1542 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1571 + def length; end + + # Returns the value of attribute level. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1542 + def level; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1575 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1556 + def to_a(iseq); end +end + +# ### Summary +# +# `getclassvariable` looks for a class variable in the current class and +# pushes its value onto the stack. It uses an inline cache to reduce the +# need to lookup the class variable in the class hierarchy every time. +# +# ### Usage +# +# ~~~ruby +# @@class_variable +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1596 +class SyntaxTree::YARV::GetClassVariable < ::SyntaxTree::YARV::Instruction + # @return [GetClassVariable] a new instance of GetClassVariable + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1599 + def initialize(name, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1619 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1597 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1632 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1615 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1604 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1624 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1597 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1628 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1611 + def to_a(_iseq); end +end + +# ### Summary +# +# `getconstant` performs a constant lookup and pushes the value of the +# constant onto the stack. It pops both the class it should look in and +# whether or not it should look globally as well. +# +# ### Usage +# +# ~~~ruby +# Constant +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1651 +class SyntaxTree::YARV::GetConstant < ::SyntaxTree::YARV::Instruction + # @return [GetConstant] a new instance of GetConstant + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1654 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1670 + def ==(other); end + + # @raise [NameError] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1686 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1666 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1658 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1674 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1652 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1678 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1682 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1662 + def to_a(_iseq); end +end + +# ### Summary +# +# `getglobal` pushes the value of a global variables onto the stack. +# +# ### Usage +# +# ~~~ruby +# $$ +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1717 +class SyntaxTree::YARV::GetGlobal < ::SyntaxTree::YARV::Instruction + # @return [GetGlobal] a new instance of GetGlobal + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1720 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1736 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1748 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1732 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1724 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1740 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1718 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1744 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1728 + def to_a(_iseq); end +end + +# ### Summary +# +# `getinstancevariable` pushes the value of an instance variable onto the +# stack. It uses an inline cache to avoid having to look up the instance +# variable in the class hierarchy every time. +# +# This instruction has two forms, but both have the same structure. Before +# Ruby 3.2, the inline cache corresponded to both the get and set +# instructions and could be shared. Since Ruby 3.2, it uses object shapes +# instead so the caches are unique per instruction. +# +# ### Usage +# +# ~~~ruby +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1772 +class SyntaxTree::YARV::GetInstanceVariable < ::SyntaxTree::YARV::Instruction + # @return [GetInstanceVariable] a new instance of GetInstanceVariable + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1775 + def initialize(name, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1795 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1773 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1808 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1791 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1780 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1800 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1773 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1804 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1787 + def to_a(_iseq); end +end + +# ### Summary +# +# `getlocal` fetches the value of a local variable from a frame determined +# by the level and index arguments. The level is the number of frames back +# to look and the index is the index in the local table. It pushes the value +# it finds onto the stack. +# +# ### Usage +# +# ~~~ruby +# value = 5 +# tap { tap { value } } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1828 +class SyntaxTree::YARV::GetLocal < ::SyntaxTree::YARV::Instruction + # @return [GetLocal] a new instance of GetLocal + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1831 + def initialize(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1850 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1862 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1846 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1836 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1829 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1854 + def length; end + + # Returns the value of attribute level. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1829 + def level; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1858 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1840 + def to_a(iseq); end +end + +# ### Summary +# +# `getlocal_WC_0` is a specialized version of the `getlocal` instruction. It +# fetches the value of a local variable from the current frame determined by +# the index given as its only argument. +# +# ### Usage +# +# ~~~ruby +# value = 5 +# value +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1880 +class SyntaxTree::YARV::GetLocalWC0 < ::SyntaxTree::YARV::Instruction + # @return [GetLocalWC0] a new instance of GetLocalWC0 + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1883 + def initialize(index); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1899 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1915 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1911 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1895 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1887 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1881 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1903 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1907 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1891 + def to_a(iseq); end +end + +# ### Summary +# +# `getlocal_WC_1` is a specialized version of the `getlocal` instruction. It +# fetches the value of a local variable from the parent frame determined by +# the index given as its only argument. +# +# ### Usage +# +# ~~~ruby +# value = 5 +# self.then { value } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1933 +class SyntaxTree::YARV::GetLocalWC1 < ::SyntaxTree::YARV::Instruction + # @return [GetLocalWC1] a new instance of GetLocalWC1 + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1936 + def initialize(index); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1952 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1968 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1964 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1948 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1940 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1934 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1956 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1960 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1944 + def to_a(iseq); end +end + +# ### Summary +# +# `getspecial` pushes the value of a special local variable onto the stack. +# +# ### Usage +# +# ~~~ruby +# 1 if (a == 1) .. (b == 2) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1983 +class SyntaxTree::YARV::GetSpecial < ::SyntaxTree::YARV::Instruction + # @return [GetSpecial] a new instance of GetSpecial + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1990 + def initialize(key, type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2007 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2019 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2003 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1995 + def disasm(fmt); end + + # Returns the value of attribute key. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1988 + def key; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2011 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2015 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1999 + def to_a(_iseq); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1988 + def type; end +end + +# $~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1985 +SyntaxTree::YARV::GetSpecial::SVAR_BACKREF = T.let(T.unsafe(nil), Integer) + +# flipflop +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1986 +SyntaxTree::YARV::GetSpecial::SVAR_FLIPFLOP_START = T.let(T.unsafe(nil), Integer) + +# $_ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#1984 +SyntaxTree::YARV::GetSpecial::SVAR_LASTLINE = T.let(T.unsafe(nil), Integer) + +# This is a base class for all YARV instructions. It provides a few +# convenience methods for working with instructions. +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#7 +class SyntaxTree::YARV::Instruction + # This returns an array of labels. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#33 + def branch_targets; end + + # This method creates an instruction that represents the canonical + # (non-specialized) form of this instruction. If this instruction is not + # a specialized instruction, then this method returns `self`. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#11 + def canonical; end + + # Whether or not this instruction falls through to the next instruction if + # its branching fails. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#44 + def falls_through?; end + + # Whether or not this instruction leaves the current frame. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#38 + def leaves?; end + + # This returns the size of the instruction in terms of the number of slots + # it occupies in the instruction sequence. Effectively this is 1 plus the + # number of operands. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#18 + def length; end + + # This returns the number of values that are popped off the stack. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#28 + def pops; end + + # This returns the number of values that are pushed onto the stack. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#23 + def pushes; end + + # Does the instruction have side effects? Control-flow counts as a + # side-effect, as do some special-case instructions like Leave. By default + # every instruction is marked as having side effects. + # + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#51 + def side_effects?; end +end + +# This class is meant to mirror RubyVM::InstructionSequence. It contains a +# list of instructions along with the metadata pertaining to them. It also +# functions as a builder for the instruction sequence. +# +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#9 +class SyntaxTree::YARV::InstructionSequence + # @return [InstructionSequence] a new instance of InstructionSequence + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#168 + def initialize(name, file, line, type, parent_iseq = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#652 + def adjuststack(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#656 + def anytostring; end + + # Returns the value of attribute argument_options. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#143 + def argument_options; end + + # This is the list of information about the arguments to this + # instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#142 + def argument_size; end + + # This is the list of information about the arguments to this + # instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#142 + def argument_size=(_arg0); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#472 + def block_child_iseq(line); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#660 + def branchif(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#664 + def branchnil(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#668 + def branchunless(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#565 + def catch_break(iseq, begin_label, end_label, exit_label, restore_sp); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#575 + def catch_ensure(iseq, begin_label, end_label, exit_label, restore_sp); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#585 + def catch_next(begin_label, end_label, exit_label, restore_sp); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#595 + def catch_redo(begin_label, end_label, exit_label, restore_sp); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#605 + def catch_rescue(iseq, begin_label, end_label, exit_label, restore_sp); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#615 + def catch_retry(begin_label, end_label, exit_label, restore_sp); end + + # The catch table for this instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#146 + def catch_table; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#672 + def checkkeyword(keyword_bits_index, keyword_index); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#676 + def checkmatch(type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#680 + def checktype(type); end + + # Child instruction sequence methods + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#468 + def child_iseq(name, line, type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#478 + def class_child_iseq(name, line); end + + # This method converts our linked list of instructions into a final array + # and performs any other compilation steps necessary. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#305 + def compile!; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#684 + def concatarray; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#688 + def concatstrings(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#692 + def defineclass(name, class_iseq, flags); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#696 + def defined(type, name, message); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#700 + def definedivar(name, cache, message); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#709 + def definemethod(name, method_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#713 + def definesmethod(name, method_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#292 + def disasm; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#717 + def dup; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#721 + def duparray(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#725 + def duphash(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#729 + def dupn(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#232 + def eval; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#648 + def event(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#733 + def expandarray(length, flags); end + + # The source location of the instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#132 + def file; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#737 + def getblockparam(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#741 + def getblockparamproxy(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#745 + def getclassvariable(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#753 + def getconstant(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#757 + def getglobal(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#761 + def getinstancevariable(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#769 + def getlocal(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#788 + def getspecial(key, type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#207 + def inline_storage; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#213 + def inline_storage_for(name); end + + # The hash of names of instance and class variables pointing to the + # index of their associated inline storage. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#156 + def inline_storages; end + + # The list of instructions for this instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#149 + def insns; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#299 + def inspect; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#792 + def intern; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#796 + def invokeblock(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#800 + def invokesuper(calldata, block_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#804 + def jump(label); end + + # Instruction push methods + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#629 + def label; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#808 + def leave; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#219 + def length; end + + # The source location of the instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#132 + def line; end + + # The table of local variables. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#152 + def local_table; end + + # Query methods + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#199 + def local_variable(name, level = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#482 + def method_child_iseq(name, line); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#486 + def module_child_iseq(name, line); end + + # The name of the instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#129 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#812 + def newarray(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#816 + def newarraykwsplat(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#820 + def newhash(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#824 + def newrange(exclude_end); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#828 + def nop; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#832 + def objtostring(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#836 + def once(iseq, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#840 + def opt_aref_with(object, calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#844 + def opt_aset_with(object, calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#848 + def opt_case_dispatch(case_dispatch_hash, else_label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#852 + def opt_getconstant_path(names); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#888 + def opt_getinlinecache(label, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#892 + def opt_setinlinecache(cache); end + + # These are various compilation options provided. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#166 + def options; end + + # The parent instruction sequence, if there is one. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#138 + def parent_iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#896 + def pop; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#633 + def push(value); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#900 + def putnil; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#904 + def putobject(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#922 + def putself; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#926 + def putspecialobject(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#930 + def putstring(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#934 + def send(calldata, block_iseq = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#938 + def setblockparam(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#942 + def setclassvariable(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#950 + def setconstant(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#954 + def setglobal(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#958 + def setinstancevariable(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#966 + def setlocal(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#985 + def setn(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#989 + def setspecial(key); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#490 + def singleton_class_child_iseq(line); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#341 + def specialize_instructions!; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#993 + def splatarray(flag); end + + # An object that will track the current size of the stack and the + # maximum size of the stack for this instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#163 + def stack; end + + # The index of the next inline storage that will be created. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#159 + def storage_index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#997 + def swap; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#1001 + def throw(type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#236 + def to_a; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#280 + def to_cfg; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#284 + def to_dfg; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#288 + def to_son; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#1005 + def topn(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#1009 + def toregexp(options, length); end + + # The type of the instruction sequence. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#135 + def type; end + + class << self + # This method will create a new instruction sequence from a serialized + # RubyVM::InstructionSequence object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#1015 + def from(source, options = T.unsafe(nil), parent_iseq = T.unsafe(nil)); end + + # This provides a handle to the rb_iseq_load function, which allows you + # to pass a serialized iseq to Ruby and have it return a + # RubyVM::InstructionSequence object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#13 + def iseq_load(iseq); end + end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#510 +class SyntaxTree::YARV::InstructionSequence::CatchBreak < ::SyntaxTree::YARV::InstructionSequence::CatchEntry + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#511 + def to_a; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#523 +class SyntaxTree::YARV::InstructionSequence::CatchEnsure < ::SyntaxTree::YARV::InstructionSequence::CatchEntry + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#524 + def to_a; end +end + +# Catch table methods +# +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#498 +class SyntaxTree::YARV::InstructionSequence::CatchEntry + # @return [CatchEntry] a new instance of CatchEntry + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#501 + def initialize(iseq, begin_label, end_label, exit_label, restore_sp); end + + # Returns the value of attribute begin_label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#499 + def begin_label; end + + # Returns the value of attribute end_label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#499 + def end_label; end + + # Returns the value of attribute exit_label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#499 + def exit_label; end + + # Returns the value of attribute iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#499 + def iseq; end + + # Returns the value of attribute restore_sp. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#499 + def restore_sp; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#535 +class SyntaxTree::YARV::InstructionSequence::CatchNext < ::SyntaxTree::YARV::InstructionSequence::CatchEntry + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#536 + def to_a; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#541 +class SyntaxTree::YARV::InstructionSequence::CatchRedo < ::SyntaxTree::YARV::InstructionSequence::CatchEntry + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#542 + def to_a; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#547 +class SyntaxTree::YARV::InstructionSequence::CatchRescue < ::SyntaxTree::YARV::InstructionSequence::CatchEntry + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#548 + def to_a; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#559 +class SyntaxTree::YARV::InstructionSequence::CatchRetry < ::SyntaxTree::YARV::InstructionSequence::CatchEntry + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#560 + def to_a; end +end + +# When the list of instructions is first being created, it's stored as a +# linked list. This is to make it easier to perform peephole optimizations +# and other transformations like instruction specialization. +# +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#35 +class SyntaxTree::YARV::InstructionSequence::InstructionList + include ::Enumerable + + # @return [InstructionList] a new instance of InstructionList + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#48 + def initialize; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#53 + def each(&_blk); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#58 + def each_node; end + + # Returns the value of attribute head_node. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#46 + def head_node; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#68 + def push(instruction); end + + # Returns the value of attribute tail_node. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#46 + def tail_node; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#36 +class SyntaxTree::YARV::InstructionSequence::InstructionList::Node + # @return [Node] a new instance of Node + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#39 + def initialize(value, next_node = T.unsafe(nil)); end + + # Returns the value of attribute next_node. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#37 + def next_node; end + + # Sets the attribute next_node + # + # @param value the value to set the attribute next_node to. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#37 + def next_node=(_arg0); end + + # Returns the value of attribute value. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#37 + def value; end + + # Sets the attribute value + # + # @param value the value to set the attribute value to. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#37 + def value=(_arg0); end +end + +# This represents the destination of instructions that jump. Initially it +# does not track its position so that when we perform optimizations the +# indices don't get messed up. +# +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#107 +class SyntaxTree::YARV::InstructionSequence::Label + # @return [Label] a new instance of Label + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#115 + def initialize(name = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#123 + def inspect; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#108 + def name; end + + # When we're serializing the instruction sequence, we need to be able to + # look up the label from the branch instructions and then access the + # subsequent node. So we'll store the reference here. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#113 + def node; end + + # When we're serializing the instruction sequence, we need to be able to + # look up the label from the branch instructions and then access the + # subsequent node. So we'll store the reference here. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#113 + def node=(_arg0); end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#119 + def patch!(name); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#83 +SyntaxTree::YARV::InstructionSequence::MAGIC = T.let(T.unsafe(nil), String) + +# This object is used to track the size of the stack at any given time. It +# is effectively a mini symbolic interpreter. It's necessary because when +# instruction sequences get serialized they include a :stack_max field on +# them. This field is used to determine how much stack space to allocate +# for the instruction sequence. +# +# source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#90 +class SyntaxTree::YARV::InstructionSequence::Stack + # @return [Stack] a new instance of Stack + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#93 + def initialize; end + + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#98 + def change_by(value); end + + # Returns the value of attribute current_size. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#91 + def current_size; end + + # Returns the value of attribute maximum_size. + # + # source://syntax_tree//lib/syntax_tree/yarv/instruction_sequence.rb#91 + def maximum_size; end +end + +# ### Summary +# +# `intern` converts the top element of the stack to a symbol and pushes the +# symbol onto the stack. +# +# ### Usage +# +# ~~~ruby +# :"#{"foo"}" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2042 +class SyntaxTree::YARV::Intern < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2055 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2067 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2051 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2043 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2059 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2063 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2047 + def to_a(_iseq); end +end + +# ### Summary +# +# `invokeblock` invokes the block given to the current method. It pops the +# arguments for the block off the stack and pushes the result of running the +# block onto the stack. +# +# ### Usage +# +# ~~~ruby +# def foo +# yield +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2086 +class SyntaxTree::YARV::InvokeBlock < ::SyntaxTree::YARV::Instruction + # @return [InvokeBlock] a new instance of InvokeBlock + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2089 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2105 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2121 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2087 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2101 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2093 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2109 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2113 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2117 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2097 + def to_a(_iseq); end +end + +# ### Summary +# +# `invokesuper` is similar to the `send` instruction, except that it calls +# the super method. It pops the receiver and arguments off the stack and +# pushes the return value onto the stack. +# +# ### Usage +# +# ~~~ruby +# def foo +# super +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2140 +class SyntaxTree::YARV::InvokeSuper < ::SyntaxTree::YARV::Instruction + # @return [InvokeSuper] a new instance of InvokeSuper + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2143 + def initialize(calldata, block_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2164 + def ==(other); end + + # Returns the value of attribute block_iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2141 + def block_iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2178 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2141 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2160 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2148 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2169 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2174 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2156 + def to_a(_iseq); end +end + +# ### Summary +# +# `jump` unconditionally jumps to the label given as its only argument. +# +# ### Usage +# +# ~~~ruby +# x = 0 +# if x == 0 +# puts "0" +# else +# puts "2" +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2217 +class SyntaxTree::YARV::Jump < ::SyntaxTree::YARV::Instruction + # @return [Jump] a new instance of Jump + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2220 + def initialize(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2236 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2248 + def branch_targets; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2244 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2232 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2224 + def disasm(fmt); end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2218 + def label; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2240 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2228 + def to_a(_iseq); end +end + +# ### Summary +# +# `leave` exits the current frame. +# +# ### Usage +# +# ~~~ruby +# ;; +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2263 +class SyntaxTree::YARV::Leave < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2276 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2290 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2272 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2264 + def disasm(fmt); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2294 + def leaves?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2280 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2284 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2268 + def to_a(_iseq); end +end + +# This module contains the instructions that used to be a part of YARV but +# have been replaced or removed in more recent versions. +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#7 +module SyntaxTree::YARV::Legacy; end + +# ### Summary +# +# `getclassvariable` looks for a class variable in the current class and +# pushes its value onto the stack. +# +# This version of the `getclassvariable` instruction is no longer used +# since in Ruby 3.0 it gained an inline cache.` +# +# ### Usage +# +# ~~~ruby +# @@class_variable +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#22 +class SyntaxTree::YARV::Legacy::GetClassVariable < ::SyntaxTree::YARV::Instruction + # @return [GetClassVariable] a new instance of GetClassVariable + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#25 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#41 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#57 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#53 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#37 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#29 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#45 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#23 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#49 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#33 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_getinlinecache` is a wrapper around a series of `putobject` and +# `getconstant` instructions that allows skipping past them if the inline +# cache is currently set. It pushes the value of the cache onto the stack +# if it is set, otherwise it pushes `nil`. +# +# This instruction is no longer used since in Ruby 3.2 it was replaced by +# the consolidated `opt_getconstant_path` instruction. +# +# ### Usage +# +# ~~~ruby +# Constant +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#78 +class SyntaxTree::YARV::Legacy::OptGetInlineCache < ::SyntaxTree::YARV::Instruction + # @return [OptGetInlineCache] a new instance of OptGetInlineCache + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#81 + def initialize(label, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#101 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#118 + def branch_targets; end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#79 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#114 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#97 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#86 + def disasm(fmt); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#122 + def falls_through?; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#79 + def label; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#106 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#110 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#93 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_newarray_max` is a specialization that occurs when the `max` method +# is called on an array literal. It pops the values of the array off the +# stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# [a, b, c].max +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#139 +class SyntaxTree::YARV::Legacy::OptNewArrayMax < ::SyntaxTree::YARV::Instruction + # @return [OptNewArrayMax] a new instance of OptNewArrayMax + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#142 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#158 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#174 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#154 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#146 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#162 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#140 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#166 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#170 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#150 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_newarray_min` is a specialization that occurs when the `min` method +# is called on an array literal. It pops the values of the array off the +# stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# [a, b, c].min +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#191 +class SyntaxTree::YARV::Legacy::OptNewArrayMin < ::SyntaxTree::YARV::Instruction + # @return [OptNewArrayMin] a new instance of OptNewArrayMin + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#194 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#210 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#226 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#206 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#198 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#214 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#192 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#218 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#222 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#202 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_setinlinecache` sets an inline cache for a constant lookup. It pops +# the value it should set off the top of the stack. It uses this value to +# set the cache. It then pushes that value back onto the top of the stack. +# +# This instruction is no longer used since in Ruby 3.2 it was replaced by +# the consolidated `opt_getconstant_path` instruction. +# +# ### Usage +# +# ~~~ruby +# Constant +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#246 +class SyntaxTree::YARV::Legacy::OptSetInlineCache < ::SyntaxTree::YARV::Instruction + # @return [OptSetInlineCache] a new instance of OptSetInlineCache + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#249 + def initialize(cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#265 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#247 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#281 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#261 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#253 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#269 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#273 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#277 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#257 + def to_a(_iseq); end +end + +# ### Summary +# +# `setclassvariable` looks for a class variable in the current class and +# sets its value to the value it pops off the top of the stack. +# +# This version of the `setclassvariable` instruction is no longer used +# since in Ruby 3.0 it gained an inline cache. +# +# ### Usage +# +# ~~~ruby +# @@class_variable = 1 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#299 +class SyntaxTree::YARV::Legacy::SetClassVariable < ::SyntaxTree::YARV::Instruction + # @return [SetClassVariable] a new instance of SetClassVariable + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#302 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#318 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#334 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#330 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#314 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#306 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#322 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#300 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#326 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/legacy.rb#310 + def to_a(_iseq); end +end + +# This represents every local variable associated with an instruction +# sequence. There are two kinds of locals: plain locals that are what you +# expect, and block proxy locals, which represent local variables +# associated with blocks that were passed into the current instruction +# sequence. +# +# source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#10 +class SyntaxTree::YARV::LocalTable + # @return [LocalTable] a new instance of LocalTable + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#43 + def initialize; end + + # Add a BlockLocal to the local table. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#73 + def block(name); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#47 + def empty?; end + + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#51 + def find(name, level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#56 + def has?(name); end + + # Returns the value of attribute locals. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#41 + def locals; end + + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#64 + def name_at(index); end + + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#60 + def names; end + + # This is the offset from the top of the stack where this local variable + # lives. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#84 + def offset(index); end + + # Add a PlainLocal to the local table. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#78 + def plain(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#68 + def size; end +end + +# A local representing a block passed into the current instruction +# sequence. +# +# source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#13 +class SyntaxTree::YARV::LocalTable::BlockLocal + # @return [BlockLocal] a new instance of BlockLocal + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#16 + def initialize(name); end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#14 + def name; end +end + +# The result of looking up a local variable in the current local table. +# +# source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#31 +class SyntaxTree::YARV::LocalTable::Lookup + # @return [Lookup] a new instance of Lookup + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#34 + def initialize(local, index, level); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#32 + def index; end + + # Returns the value of attribute level. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#32 + def level; end + + # Returns the value of attribute local. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#32 + def local; end +end + +# A regular local variable. +# +# source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#22 +class SyntaxTree::YARV::LocalTable::PlainLocal + # @return [PlainLocal] a new instance of PlainLocal + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#25 + def initialize(name); end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/local_table.rb#23 + def name; end +end + +# ### Summary +# +# `newarray` puts a new array initialized with `number` values from the +# stack. It pops `number` values off the stack and pushes the array onto the +# stack. +# +# ### Usage +# +# ~~~ruby +# ["string"] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2311 +class SyntaxTree::YARV::NewArray < ::SyntaxTree::YARV::Instruction + # @return [NewArray] a new instance of NewArray + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2314 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2330 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2346 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2326 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2318 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2334 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2312 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2338 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2342 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2322 + def to_a(_iseq); end +end + +# ### Summary +# +# `newarraykwsplat` is a specialized version of `newarray` that takes a ** +# splat argument. It pops `number` values off the stack and pushes the array +# onto the stack. +# +# ### Usage +# +# ~~~ruby +# ["string", **{ foo: "bar" }] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2363 +class SyntaxTree::YARV::NewArrayKwSplat < ::SyntaxTree::YARV::Instruction + # @return [NewArrayKwSplat] a new instance of NewArrayKwSplat + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2366 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2382 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2398 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2378 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2370 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2386 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2364 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2390 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2394 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2374 + def to_a(_iseq); end +end + +# ### Summary +# +# `newhash` puts a new hash onto the stack, using `number` elements from the +# stack. `number` needs to be even. It pops `number` elements off the stack +# and pushes a hash onto the stack. +# +# ### Usage +# +# ~~~ruby +# def foo(key, value) +# { key => value } +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2417 +class SyntaxTree::YARV::NewHash < ::SyntaxTree::YARV::Instruction + # @return [NewHash] a new instance of NewHash + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2420 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2436 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2452 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2432 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2424 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2440 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2418 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2444 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2448 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2428 + def to_a(_iseq); end +end + +# ### Summary +# +# `newrange` creates a new range object from the top two values on the +# stack. It pops both of them off, and then pushes on the new range. It +# takes one argument which is 0 if the end is included or 1 if the end value +# is excluded. +# +# ### Usage +# +# ~~~ruby +# x = 0 +# y = 1 +# p (x..y), (x...y) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2472 +class SyntaxTree::YARV::NewRange < ::SyntaxTree::YARV::Instruction + # @return [NewRange] a new instance of NewRange + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2475 + def initialize(exclude_end); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2491 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2507 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2487 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2479 + def disasm(fmt); end + + # Returns the value of attribute exclude_end. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2473 + def exclude_end; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2495 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2499 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2503 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2483 + def to_a(_iseq); end +end + +# ### Summary +# +# `nop` is a no-operation instruction. It is used to pad the instruction +# sequence so there is a place for other instructions to jump to. +# +# ### Usage +# +# ~~~ruby +# raise rescue true +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2523 +class SyntaxTree::YARV::Nop < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2536 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2540 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2532 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2524 + def disasm(fmt); end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2543 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2528 + def to_a(_iseq); end +end + +# ### Summary +# +# `objtostring` pops a value from the stack, calls `to_s` on that value and +# then pushes the result back to the stack. +# +# It has various fast paths for classes like String, Symbol, Module, Class, +# etc. For everything else it calls `to_s`. +# +# ### Usage +# +# ~~~ruby +# "#{5}" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2562 +class SyntaxTree::YARV::ObjToString < ::SyntaxTree::YARV::Instruction + # @return [ObjToString] a new instance of ObjToString + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2565 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2581 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2597 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2563 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2577 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2569 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2585 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2589 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2593 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2573 + def to_a(_iseq); end +end + +# ### Summary +# +# `once` is an instruction that wraps an instruction sequence and ensures +# that is it only ever executed once for the lifetime of the program. It +# uses a cache to ensure that it is only executed once. It pushes the result +# of running the instruction sequence onto the stack. +# +# ### Usage +# +# ~~~ruby +# END { puts "END" } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2615 +class SyntaxTree::YARV::Once < ::SyntaxTree::YARV::Instruction + # @return [Once] a new instance of Once + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2618 + def initialize(iseq, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2636 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2616 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2648 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2632 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2623 + def disasm(fmt); end + + # Returns the value of attribute iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2616 + def iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2640 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2644 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2628 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_and` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `&` operator is used. There is a fast path for if +# both operands are integers. It pops both the receiver and the argument off +# the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 2 & 3 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2668 +class SyntaxTree::YARV::OptAnd < ::SyntaxTree::YARV::Instruction + # @return [OptAnd] a new instance of OptAnd + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2671 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2687 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2707 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2669 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2703 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2683 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2675 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2691 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2695 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2699 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2679 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_aref` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `[]` operator is used. There are fast paths if the +# receiver is an integer, array, or hash. +# +# ### Usage +# +# ~~~ruby +# 7[2] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2724 +class SyntaxTree::YARV::OptAref < ::SyntaxTree::YARV::Instruction + # @return [OptAref] a new instance of OptAref + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2727 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2743 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2763 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2725 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2759 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2739 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2731 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2747 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2751 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2755 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2735 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_aref_with` is a specialization of the `opt_aref` instruction that +# occurs when the `[]` operator is used with a string argument known at +# compile time. There are fast paths if the receiver is a hash. It pops the +# receiver off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# { 'test' => true }['test'] +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2781 +class SyntaxTree::YARV::OptArefWith < ::SyntaxTree::YARV::Instruction + # @return [OptArefWith] a new instance of OptArefWith + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2784 + def initialize(object, calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2804 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2821 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2782 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2800 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2789 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2809 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2782 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2813 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2817 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2796 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_aset` is an instruction for setting the hash value by the key in +# the `recv[obj] = set` format. It is a specialization of the +# `opt_send_without_block` instruction. It pops the receiver, the key, and +# the value off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# {}[:key] = value +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2839 +class SyntaxTree::YARV::OptAset < ::SyntaxTree::YARV::Instruction + # @return [OptAset] a new instance of OptAset + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2842 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2858 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2878 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2840 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2874 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2854 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2846 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2862 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2866 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2870 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2850 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_aset_with` is an instruction for setting the hash value by the known +# string key in the `recv[obj] = set` format. It pops the receiver and the +# value off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# {}["key"] = value +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2895 +class SyntaxTree::YARV::OptAsetWith < ::SyntaxTree::YARV::Instruction + # @return [OptAsetWith] a new instance of OptAsetWith + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2898 + def initialize(object, calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2918 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2935 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2896 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2914 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2903 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2923 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2896 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2927 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2931 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2910 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_case_dispatch` is a branch instruction that moves the control flow +# for case statements that have clauses where they can all be used as hash +# keys for an internal hash. +# +# It has two arguments: the `case_dispatch_hash` and an `else_label`. It +# pops one value off the stack: a hash key. `opt_case_dispatch` looks up the +# key in the `case_dispatch_hash` and jumps to the corresponding label if +# there is one. If there is no value in the `case_dispatch_hash`, +# `opt_case_dispatch` jumps to the `else_label` index. +# +# ### Usage +# +# ~~~ruby +# case 1 +# when 1 +# puts "foo" +# else +# puts "bar" +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2964 +class SyntaxTree::YARV::OptCaseDispatch < ::SyntaxTree::YARV::Instruction + # @return [OptCaseDispatch] a new instance of OptCaseDispatch + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2967 + def initialize(case_dispatch_hash, else_label); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2991 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3009 + def branch_targets; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3005 + def call(vm); end + + # Returns the value of attribute case_dispatch_hash. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2965 + def case_dispatch_hash; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2987 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2972 + def disasm(fmt); end + + # Returns the value of attribute else_label. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2965 + def else_label; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3013 + def falls_through?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2997 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3001 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#2979 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_div` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `/` operator is used. There are fast paths for if +# both operands are integers, or if both operands are floats. It pops both +# the receiver and the argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 2 / 3 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3031 +class SyntaxTree::YARV::OptDiv < ::SyntaxTree::YARV::Instruction + # @return [OptDiv] a new instance of OptDiv + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3034 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3050 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3070 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3032 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3066 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3046 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3038 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3054 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3058 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3062 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3042 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_empty_p` is an optimization applied when the method `empty?` is +# called. It pops the receiver off the stack and pushes on the result of the +# method call. +# +# ### Usage +# +# ~~~ruby +# "".empty? +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3087 +class SyntaxTree::YARV::OptEmptyP < ::SyntaxTree::YARV::Instruction + # @return [OptEmptyP] a new instance of OptEmptyP + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3090 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3106 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3126 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3088 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3122 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3102 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3094 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3110 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3114 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3118 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3098 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_eq` is a specialization of the `opt_send_without_block` instruction +# that occurs when the == operator is used. Fast paths exist when both +# operands are integers, floats, symbols or strings. It pops both the +# receiver and the argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 2 == 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3144 +class SyntaxTree::YARV::OptEq < ::SyntaxTree::YARV::Instruction + # @return [OptEq] a new instance of OptEq + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3147 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3163 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3183 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3145 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3179 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3159 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3151 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3167 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3171 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3175 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3155 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_ge` is a specialization of the `opt_send_without_block` instruction +# that occurs when the >= operator is used. Fast paths exist when both +# operands are integers or floats. It pops both the receiver and the +# argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 4 >= 3 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3201 +class SyntaxTree::YARV::OptGE < ::SyntaxTree::YARV::Instruction + # @return [OptGE] a new instance of OptGE + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3204 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3220 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3240 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3202 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3236 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3216 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3208 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3224 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3228 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3232 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3212 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_gt` is a specialization of the `opt_send_without_block` instruction +# that occurs when the > operator is used. Fast paths exist when both +# operands are integers or floats. It pops both the receiver and the +# argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 4 > 3 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3314 +class SyntaxTree::YARV::OptGT < ::SyntaxTree::YARV::Instruction + # @return [OptGT] a new instance of OptGT + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3317 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3333 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3353 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3315 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3349 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3329 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3321 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3337 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3341 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3345 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3325 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_getconstant_path` performs a constant lookup on a chain of constant +# names. It accepts as its argument an array of constant names, and pushes +# the value of the constant onto the stack. +# +# ### Usage +# +# ~~~ruby +# ::Object +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3257 +class SyntaxTree::YARV::OptGetConstantPath < ::SyntaxTree::YARV::Instruction + # @return [OptGetConstantPath] a new instance of OptGetConstantPath + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3260 + def initialize(names); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3277 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3289 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3273 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3264 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3281 + def length; end + + # Returns the value of attribute names. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3258 + def names; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3285 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3269 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_le` is a specialization of the `opt_send_without_block` instruction +# that occurs when the <= operator is used. Fast paths exist when both +# operands are integers or floats. It pops both the receiver and the +# argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 3 <= 4 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3371 +class SyntaxTree::YARV::OptLE < ::SyntaxTree::YARV::Instruction + # @return [OptLE] a new instance of OptLE + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3374 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3390 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3410 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3372 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3406 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3386 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3378 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3394 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3398 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3402 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3382 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_lt` is a specialization of the `opt_send_without_block` instruction +# that occurs when the < operator is used. Fast paths exist when both +# operands are integers or floats. It pops both the receiver and the +# argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 3 < 4 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3485 +class SyntaxTree::YARV::OptLT < ::SyntaxTree::YARV::Instruction + # @return [OptLT] a new instance of OptLT + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3488 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3504 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3524 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3486 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3520 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3500 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3492 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3508 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3512 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3516 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3496 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_ltlt` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `<<` operator is used. Fast paths exists when the +# receiver is either a String or an Array. It pops both the receiver and the +# argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# "" << 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3542 +class SyntaxTree::YARV::OptLTLT < ::SyntaxTree::YARV::Instruction + # @return [OptLTLT] a new instance of OptLTLT + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3545 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3561 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3581 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3543 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3577 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3557 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3549 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3565 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3569 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3573 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3553 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_length` is a specialization of `opt_send_without_block`, when the +# `length` method is called. There are fast paths when the receiver is +# either a string, hash, or array. It pops the receiver off the stack and +# pushes on the result of the method call. +# +# ### Usage +# +# ~~~ruby +# "".length +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3428 +class SyntaxTree::YARV::OptLength < ::SyntaxTree::YARV::Instruction + # @return [OptLength] a new instance of OptLength + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3431 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3447 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3467 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3429 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3463 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3443 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3435 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3451 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3455 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3459 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3439 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_minus` is a specialization of the `opt_send_without_block` +# instruction that occurs when the `-` operator is used. There are fast +# paths for if both operands are integers or if both operands are floats. It +# pops both the receiver and the argument off the stack and pushes on the +# result. +# +# ### Usage +# +# ~~~ruby +# 3 - 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3600 +class SyntaxTree::YARV::OptMinus < ::SyntaxTree::YARV::Instruction + # @return [OptMinus] a new instance of OptMinus + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3603 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3619 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3639 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3601 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3635 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3615 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3607 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3623 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3627 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3631 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3611 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_mod` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `%` operator is used. There are fast paths for if +# both operands are integers or if both operands are floats. It pops both +# the receiver and the argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 4 % 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3657 +class SyntaxTree::YARV::OptMod < ::SyntaxTree::YARV::Instruction + # @return [OptMod] a new instance of OptMod + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3660 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3676 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3696 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3658 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3692 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3672 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3664 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3680 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3684 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3688 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3668 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_mult` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `*` operator is used. There are fast paths for if +# both operands are integers or floats. It pops both the receiver and the +# argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 3 * 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3714 +class SyntaxTree::YARV::OptMult < ::SyntaxTree::YARV::Instruction + # @return [OptMult] a new instance of OptMult + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3717 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3733 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3753 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3715 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3749 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3729 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3721 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3737 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3741 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3745 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3725 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_neq` is an optimization that tests whether two values at the top of +# the stack are not equal by testing their equality and calling the `!` on +# the result. This allows `opt_neq` to use the fast paths optimized in +# `opt_eq` when both operands are Integers, Floats, Symbols, or Strings. It +# pops both the receiver and the argument off the stack and pushes on the +# result. +# +# ### Usage +# +# ~~~ruby +# 2 != 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3773 +class SyntaxTree::YARV::OptNEq < ::SyntaxTree::YARV::Instruction + # @return [OptNEq] a new instance of OptNEq + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3776 + def initialize(eq_calldata, neq_calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3796 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3813 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3792 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3781 + def disasm(fmt); end + + # Returns the value of attribute eq_calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3774 + def eq_calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3801 + def length; end + + # Returns the value of attribute neq_calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3774 + def neq_calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3805 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3809 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3788 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_newarray_send` is a specialization that occurs when a dynamic array +# literal is created and immediately sent the `min`, `max`, or `hash` +# methods. It pops the values of the array off the stack and pushes on the +# result of the method call. +# +# ### Usage +# +# ~~~ruby +# [a, b, c].max +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3832 +class SyntaxTree::YARV::OptNewArraySend < ::SyntaxTree::YARV::Instruction + # @return [OptNewArraySend] a new instance of OptNewArraySend + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3835 + def initialize(number, method); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3855 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3872 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3851 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3840 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3860 + def length; end + + # Returns the value of attribute method. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3833 + def method; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3833 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3864 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3868 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3847 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_nil_p` is an optimization applied when the method `nil?` is called. +# It returns true immediately when the receiver is `nil` and defers to the +# `nil?` method in other cases. It pops the receiver off the stack and +# pushes on the result. +# +# ### Usage +# +# ~~~ruby +# "".nil? +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3890 +class SyntaxTree::YARV::OptNilP < ::SyntaxTree::YARV::Instruction + # @return [OptNilP] a new instance of OptNilP + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3893 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3909 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3929 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3891 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3925 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3905 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3897 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3913 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3917 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3921 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3901 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_not` negates the value on top of the stack by calling the `!` method +# on it. It pops the receiver off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# !true +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3945 +class SyntaxTree::YARV::OptNot < ::SyntaxTree::YARV::Instruction + # @return [OptNot] a new instance of OptNot + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3948 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3964 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3984 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3946 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3980 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3960 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3952 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3968 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3972 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3976 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#3956 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_or` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `|` operator is used. There is a fast path for if +# both operands are integers. It pops both the receiver and the argument off +# the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 2 | 3 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4002 +class SyntaxTree::YARV::OptOr < ::SyntaxTree::YARV::Instruction + # @return [OptOr] a new instance of OptOr + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4005 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4021 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4041 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4003 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4037 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4017 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4009 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4025 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4029 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4033 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4013 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_plus` is a specialization of the `opt_send_without_block` instruction +# that occurs when the `+` operator is used. There are fast paths for if +# both operands are integers, floats, strings, or arrays. It pops both the +# receiver and the argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# 2 + 3 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4059 +class SyntaxTree::YARV::OptPlus < ::SyntaxTree::YARV::Instruction + # @return [OptPlus] a new instance of OptPlus + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4062 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4078 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4098 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4060 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4094 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4074 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4066 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4082 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4086 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4090 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4070 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_regexpmatch2` is a specialization of the `opt_send_without_block` +# instruction that occurs when the `=~` operator is used. It pops both the +# receiver and the argument off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# /a/ =~ "a" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4115 +class SyntaxTree::YARV::OptRegExpMatch2 < ::SyntaxTree::YARV::Instruction + # @return [OptRegExpMatch2] a new instance of OptRegExpMatch2 + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4118 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4134 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4154 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4116 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4150 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4130 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4122 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4138 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4142 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4146 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4126 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_send_without_block` is a specialization of the send instruction that +# occurs when a method is being called without a block. It pops the receiver +# and the arguments off the stack and pushes on the result. +# +# ### Usage +# +# ~~~ruby +# puts "Hello, world!" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4171 +class SyntaxTree::YARV::OptSendWithoutBlock < ::SyntaxTree::YARV::Instruction + # @return [OptSendWithoutBlock] a new instance of OptSendWithoutBlock + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4174 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4190 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4210 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4172 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4206 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4186 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4178 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4194 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4198 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4202 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4182 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_size` is a specialization of `opt_send_without_block`, when the +# `size` method is called. There are fast paths when the receiver is either +# a string, hash, or array. It pops the receiver off the stack and pushes on +# the result. +# +# ### Usage +# +# ~~~ruby +# "".size +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4228 +class SyntaxTree::YARV::OptSize < ::SyntaxTree::YARV::Instruction + # @return [OptSize] a new instance of OptSize + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4231 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4247 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4267 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4229 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4263 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4243 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4235 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4251 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4255 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4259 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4239 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_str_freeze` pushes a frozen known string value with no interpolation +# onto the stack using the #freeze method. If the method gets overridden, +# this will fall back to a send. +# +# ### Usage +# +# ~~~ruby +# "hello".freeze +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4284 +class SyntaxTree::YARV::OptStrFreeze < ::SyntaxTree::YARV::Instruction + # @return [OptStrFreeze] a new instance of OptStrFreeze + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4287 + def initialize(object, calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4307 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4320 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4285 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4303 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4292 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4312 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4285 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4316 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4299 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_str_uminus` pushes a frozen known string value with no interpolation +# onto the stack. If the method gets overridden, this will fall back to a +# send. +# +# ### Usage +# +# ~~~ruby +# -"string" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4337 +class SyntaxTree::YARV::OptStrUMinus < ::SyntaxTree::YARV::Instruction + # @return [OptStrUMinus] a new instance of OptStrUMinus + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4340 + def initialize(object, calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4360 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4373 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4338 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4356 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4345 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4365 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4338 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4369 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4352 + def to_a(_iseq); end +end + +# ### Summary +# +# `opt_succ` is a specialization of the `opt_send_without_block` instruction +# when the method being called is `succ`. Fast paths exist when the receiver +# is either a String or a Fixnum. It pops the receiver off the stack and +# pushes on the result. +# +# ### Usage +# +# ~~~ruby +# "".succ +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4391 +class SyntaxTree::YARV::OptSucc < ::SyntaxTree::YARV::Instruction + # @return [OptSucc] a new instance of OptSucc + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4394 + def initialize(calldata); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4410 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4430 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4392 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4426 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4406 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4398 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4414 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4418 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4422 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4402 + def to_a(_iseq); end +end + +# ### Summary +# +# `pop` pops the top value off the stack. +# +# ### Usage +# +# ~~~ruby +# a ||= 2 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4445 +class SyntaxTree::YARV::Pop < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4458 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4466 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4454 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4446 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4462 + def pops; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4470 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4450 + def to_a(_iseq); end +end + +# ### Summary +# +# `putnil` pushes a global nil object onto the stack. +# +# ### Usage +# +# ~~~ruby +# nil +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4485 +class SyntaxTree::YARV::PutNil < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4498 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4510 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4506 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4494 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4486 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4502 + def pushes; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4514 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4490 + def to_a(_iseq); end +end + +# ### Summary +# +# `putobject` pushes a known value onto the stack. +# +# ### Usage +# +# ~~~ruby +# 5 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4529 +class SyntaxTree::YARV::PutObject < ::SyntaxTree::YARV::Instruction + # @return [PutObject] a new instance of PutObject + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4532 + def initialize(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4548 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4560 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4544 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4536 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4552 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4530 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4556 + def pushes; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4564 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4540 + def to_a(_iseq); end +end + +# ### Summary +# +# `putobject_INT2FIX_0_` pushes 0 on the stack. It is a specialized +# instruction resulting from the operand unification optimization. It is +# equivalent to `putobject 0`. +# +# ### Usage +# +# ~~~ruby +# 0 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4581 +class SyntaxTree::YARV::PutObjectInt2Fix0 < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4594 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4606 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4602 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4590 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4582 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4598 + def pushes; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4610 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4586 + def to_a(_iseq); end +end + +# ### Summary +# +# `putobject_INT2FIX_1_` pushes 1 on the stack. It is a specialized +# instruction resulting from the operand unification optimization. It is +# equivalent to `putobject 1`. +# +# ### Usage +# +# ~~~ruby +# 1 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4627 +class SyntaxTree::YARV::PutObjectInt2Fix1 < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4640 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4652 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4648 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4636 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4628 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4644 + def pushes; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4656 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4632 + def to_a(_iseq); end +end + +# ### Summary +# +# `putself` pushes the current value of self onto the stack. +# +# ### Usage +# +# ~~~ruby +# puts "Hello, world!" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4671 +class SyntaxTree::YARV::PutSelf < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4684 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4692 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4680 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4672 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4688 + def pushes; end + + # @return [Boolean] + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4696 + def side_effects?; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4676 + def to_a(_iseq); end +end + +# ### Summary +# +# `putspecialobject` pushes one of three special objects onto the stack. +# These are either the VM core special object, the class base special +# object, or the constant base special object. +# +# ### Usage +# +# ~~~ruby +# alias foo bar +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4713 +class SyntaxTree::YARV::PutSpecialObject < ::SyntaxTree::YARV::Instruction + # @return [PutSpecialObject] a new instance of PutSpecialObject + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4720 + def initialize(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4736 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4748 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4732 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4724 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4740 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4718 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4744 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4728 + def to_a(_iseq); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4715 +SyntaxTree::YARV::PutSpecialObject::OBJECT_CBASE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4716 +SyntaxTree::YARV::PutSpecialObject::OBJECT_CONST_BASE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4714 +SyntaxTree::YARV::PutSpecialObject::OBJECT_VMCORE = T.let(T.unsafe(nil), Integer) + +# ### Summary +# +# `putstring` pushes an unfrozen string literal onto the stack. +# +# ### Usage +# +# ~~~ruby +# "foo" +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4772 +class SyntaxTree::YARV::PutString < ::SyntaxTree::YARV::Instruction + # @return [PutString] a new instance of PutString + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4775 + def initialize(object); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4791 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4803 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4787 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4779 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4795 + def length; end + + # Returns the value of attribute object. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4773 + def object; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4799 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4783 + def to_a(_iseq); end +end + +# A sea of nodes is an intermediate representation used by a compiler to +# represent both control and data flow in the same graph. The way we use it +# allows us to have the vertices of the graph represent either an +# instruction in the instruction sequence or a synthesized node that we add +# to the graph. The edges of the graph represent either control flow or data +# flow. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#11 +class SyntaxTree::YARV::SeaOfNodes + # @return [SeaOfNodes] a new instance of SeaOfNodes + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#462 + def initialize(dfg, nodes, local_graphs); end + + # Returns the value of attribute dfg. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#460 + def dfg; end + + # Returns the value of attribute local_graphs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#460 + def local_graphs; end + + # Returns the value of attribute nodes. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#460 + def nodes; end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#468 + def to_mermaid; end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#499 + def verify; end + + class << self + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#529 + def compile(dfg); end + end +end + +# The compiler is responsible for taking a data flow graph and turning it +# into a sea of nodes. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#100 +class SyntaxTree::YARV::SeaOfNodes::Compiler + # @return [Compiler] a new instance of Compiler + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#103 + def initialize(dfg); end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#113 + def compile; end + + # Returns the value of attribute dfg. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#101 + def dfg; end + + # Returns the value of attribute nodes. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#101 + def nodes; end + + private + + # Eliminate as many unnecessary nodes as we can. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#339 + def cleanup_insn_nodes; end + + # We don't always build things in an optimal way. Go back and fix up + # some mess we left. Ideally we wouldn't create these problems in the + # first place. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#315 + def cleanup_phi_nodes; end + + # Connect one node to another. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#423 + def connect(from, to, type, label = T.unsafe(nil)); end + + # Connect control flow that flows between basic blocks. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#246 + def connect_local_graphs_control(local_graphs); end + + # Connect data flow that flows between basic blocks. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#271 + def connect_local_graphs_data(local_graphs); end + + # Connect all of the inputs to all of the outputs of a node. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#433 + def connect_over(node); end + + # Create a sub-graph for a single basic block - block block argument + # inputs and outputs will be left dangling, to be connected later. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#136 + def create_local_graph(block); end + + # Counter for synthetic nodes. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#130 + def id_counter; end + + # Remove a node from the graph. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#447 + def remove(node); end +end + +# The edge of a graph represents either control flow or data flow. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#67 +class SyntaxTree::YARV::SeaOfNodes::Edge + # @return [Edge] a new instance of Edge + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#75 + def initialize(from, to, type, label); end + + # Returns the value of attribute from. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#70 + def from; end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#73 + def label; end + + # Returns the value of attribute to. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#71 + def to; end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#72 + def type; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#68 +SyntaxTree::YARV::SeaOfNodes::Edge::TYPES = T.let(T.unsafe(nil), Array) + +# This object represents a node in the graph that holds a YARV +# instruction. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#14 +class SyntaxTree::YARV::SeaOfNodes::InsnNode + # @return [InsnNode] a new instance of InsnNode + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#17 + def initialize(insn, offset); end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#25 + def id; end + + # Returns the value of attribute inputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#15 + def inputs; end + + # Returns the value of attribute insn. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#15 + def insn; end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#29 + def label; end + + # Returns the value of attribute offset. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#15 + def offset; end + + # Returns the value of attribute outputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#15 + def outputs; end +end + +# Merge nodes are present in any block that has multiple incoming blocks. +# It provides a place for Phi nodes to attach their results. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#52 +class SyntaxTree::YARV::SeaOfNodes::MergeNode + # @return [MergeNode] a new instance of MergeNode + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#55 + def initialize(id); end + + # Returns the value of attribute id. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#53 + def id; end + + # Returns the value of attribute inputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#53 + def inputs; end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#61 + def label; end + + # Returns the value of attribute outputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#53 + def outputs; end +end + +# Phi nodes are used to represent the merging of data flow from multiple +# incoming blocks. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#36 +class SyntaxTree::YARV::SeaOfNodes::PhiNode + # @return [PhiNode] a new instance of PhiNode + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#39 + def initialize(id); end + + # Returns the value of attribute id. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#37 + def id; end + + # Returns the value of attribute inputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#37 + def inputs; end + + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#45 + def label; end + + # Returns the value of attribute outputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#37 + def outputs; end +end + +# A subgraph represents the local data and control flow of a single basic +# block. +# +# source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#87 +class SyntaxTree::YARV::SeaOfNodes::SubGraph + # @return [SubGraph] a new instance of SubGraph + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#90 + def initialize(first_fixed, last_fixed, inputs, outputs); end + + # Returns the value of attribute first_fixed. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#88 + def first_fixed; end + + # Returns the value of attribute inputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#88 + def inputs; end + + # Returns the value of attribute last_fixed. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#88 + def last_fixed; end + + # Returns the value of attribute outputs. + # + # source://syntax_tree//lib/syntax_tree/yarv/sea_of_nodes.rb#88 + def outputs; end +end + +# ### Summary +# +# `send` invokes a method with an optional block. It pops its receiver and +# the arguments for the method off the stack and pushes the return value +# onto the stack. It has two arguments: the calldata for the call site and +# the optional block instruction sequence. +# +# ### Usage +# +# ~~~ruby +# "hello".tap { |i| p i } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4821 +class SyntaxTree::YARV::Send < ::SyntaxTree::YARV::Instruction + # @return [Send] a new instance of Send + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4824 + def initialize(calldata, block_iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4845 + def ==(other); end + + # Returns the value of attribute block_iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4822 + def block_iseq; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4863 + def call(vm); end + + # Returns the value of attribute calldata. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4822 + def calldata; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4841 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4829 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4850 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4854 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4859 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4837 + def to_a(_iseq); end +end + +# ### Summary +# +# `setblockparam` sets the value of a block local variable on a frame +# determined by the level and index arguments. The level is the number of +# frames back to look and the index is the index in the local table. It pops +# the value it is setting off the stack. +# +# ### Usage +# +# ~~~ruby +# def foo(&bar) +# bar = baz +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4905 +class SyntaxTree::YARV::SetBlockParam < ::SyntaxTree::YARV::Instruction + # @return [SetBlockParam] a new instance of SetBlockParam + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4908 + def initialize(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4927 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4940 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4923 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4913 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4906 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4932 + def length; end + + # Returns the value of attribute level. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4906 + def level; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4936 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4917 + def to_a(iseq); end +end + +# ### Summary +# +# `setclassvariable` looks for a class variable in the current class and +# sets its value to the value it pops off the top of the stack. It uses an +# inline cache to reduce the need to lookup the class variable in the class +# hierarchy every time. +# +# ### Usage +# +# ~~~ruby +# @@class_variable = 1 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4958 +class SyntaxTree::YARV::SetClassVariable < ::SyntaxTree::YARV::Instruction + # @return [SetClassVariable] a new instance of SetClassVariable + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4961 + def initialize(name, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4981 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4959 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4994 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4977 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4966 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4986 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4959 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4990 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#4973 + def to_a(_iseq); end +end + +# ### Summary +# +# `setconstant` pops two values off the stack: the value to set the +# constant to and the constant base to set it in. +# +# ### Usage +# +# ~~~ruby +# Constant = 1 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5012 +class SyntaxTree::YARV::SetConstant < ::SyntaxTree::YARV::Instruction + # @return [SetConstant] a new instance of SetConstant + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5015 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5031 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5043 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5027 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5019 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5035 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5013 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5039 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5023 + def to_a(_iseq); end +end + +# ### Summary +# +# `setglobal` sets the value of a global variable to a value popped off the +# top of the stack. +# +# ### Usage +# +# ~~~ruby +# $global = 5 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5060 +class SyntaxTree::YARV::SetGlobal < ::SyntaxTree::YARV::Instruction + # @return [SetGlobal] a new instance of SetGlobal + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5063 + def initialize(name); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5079 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5091 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5075 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5067 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5083 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5061 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5087 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5071 + def to_a(_iseq); end +end + +# ### Summary +# +# `setinstancevariable` pops a value off the top of the stack and then sets +# the instance variable associated with the instruction to that value. +# +# This instruction has two forms, but both have the same structure. Before +# Ruby 3.2, the inline cache corresponded to both the get and set +# instructions and could be shared. Since Ruby 3.2, it uses object shapes +# instead so the caches are unique per instruction. +# +# ### Usage +# +# ~~~ruby +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5114 +class SyntaxTree::YARV::SetInstanceVariable < ::SyntaxTree::YARV::Instruction + # @return [SetInstanceVariable] a new instance of SetInstanceVariable + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5117 + def initialize(name, cache); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5137 + def ==(other); end + + # Returns the value of attribute cache. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5115 + def cache; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5150 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5133 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5122 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5142 + def length; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5115 + def name; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5146 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5129 + def to_a(_iseq); end +end + +# ### Summary +# +# `setlocal` sets the value of a local variable on a frame determined by the +# level and index arguments. The level is the number of frames back to +# look and the index is the index in the local table. It pops the value it +# is setting off the stack. +# +# ### Usage +# +# ~~~ruby +# value = 5 +# tap { tap { value = 10 } } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5170 +class SyntaxTree::YARV::SetLocal < ::SyntaxTree::YARV::Instruction + # @return [SetLocal] a new instance of SetLocal + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5173 + def initialize(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5192 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5204 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5188 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5178 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5171 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5196 + def length; end + + # Returns the value of attribute level. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5171 + def level; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5200 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5182 + def to_a(iseq); end +end + +# ### Summary +# +# `setlocal_WC_0` is a specialized version of the `setlocal` instruction. It +# sets the value of a local variable on the current frame to the value at +# the top of the stack as determined by the index given as its only +# argument. +# +# ### Usage +# +# ~~~ruby +# value = 5 +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5222 +class SyntaxTree::YARV::SetLocalWC0 < ::SyntaxTree::YARV::Instruction + # @return [SetLocalWC0] a new instance of SetLocalWC0 + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5225 + def initialize(index); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5241 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5257 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5253 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5237 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5229 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5223 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5245 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5249 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5233 + def to_a(iseq); end +end + +# ### Summary +# +# `setlocal_WC_1` is a specialized version of the `setlocal` instruction. It +# sets the value of a local variable on the parent frame to the value at the +# top of the stack as determined by the index given as its only argument. +# +# ### Usage +# +# ~~~ruby +# value = 5 +# self.then { value = 10 } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5275 +class SyntaxTree::YARV::SetLocalWC1 < ::SyntaxTree::YARV::Instruction + # @return [SetLocalWC1] a new instance of SetLocalWC1 + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5278 + def initialize(index); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5294 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5310 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5306 + def canonical; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5290 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5282 + def disasm(fmt); end + + # Returns the value of attribute index. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5276 + def index; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5298 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5302 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5286 + def to_a(iseq); end +end + +# ### Summary +# +# `setn` sets a value in the stack to a value popped off the top of the +# stack. It then pushes that value onto the top of the stack as well. +# +# ### Usage +# +# ~~~ruby +# {}[:key] = 'val' +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5326 +class SyntaxTree::YARV::SetN < ::SyntaxTree::YARV::Instruction + # @return [SetN] a new instance of SetN + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5329 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5345 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5361 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5341 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5333 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5349 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5327 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5353 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5357 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5337 + def to_a(_iseq); end +end + +# ### Summary +# +# `setspecial` pops a value off the top of the stack and sets a special +# local variable to that value. The special local variable is determined by +# the key given as its only argument. +# +# ### Usage +# +# ~~~ruby +# baz if (foo == 1) .. (bar == 1) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5378 +class SyntaxTree::YARV::SetSpecial < ::SyntaxTree::YARV::Instruction + # @return [SetSpecial] a new instance of SetSpecial + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5381 + def initialize(key); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5397 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5409 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5393 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5385 + def disasm(fmt); end + + # Returns the value of attribute key. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5379 + def key; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5401 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5405 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5389 + def to_a(_iseq); end +end + +# ### Summary +# +# `splatarray` coerces the array object at the top of the stack into Array +# by calling `to_a`. It pushes a duplicate of the array if there is a flag, +# and the original array if there isn't one. +# +# ### Usage +# +# ~~~ruby +# x = *(5) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5433 +class SyntaxTree::YARV::SplatArray < ::SyntaxTree::YARV::Instruction + # @return [SplatArray] a new instance of SplatArray + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5436 + def initialize(flag); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5452 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5468 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5448 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5440 + def disasm(fmt); end + + # Returns the value of attribute flag. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5434 + def flag; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5456 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5460 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5464 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5444 + def to_a(_iseq); end +end + +# ### Summary +# +# `swap` swaps the top two elements in the stack. +# +# ### TracePoint +# +# `swap` does not dispatch any events. +# +# ### Usage +# +# ~~~ruby +# !!defined?([[]]) +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5507 +class SyntaxTree::YARV::Swap < ::SyntaxTree::YARV::Instruction + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5520 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5532 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5516 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5508 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5524 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5528 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5512 + def to_a(_iseq); end +end + +# ### Summary +# +# `throw` pops a value off the top of the stack and throws it. It is caught +# using the instruction sequence's (or an ancestor's) catch table. It pushes +# on the result of throwing the value. +# +# ### Usage +# +# ~~~ruby +# [1, 2, 3].map { break 2 } +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5550 +class SyntaxTree::YARV::Throw < ::SyntaxTree::YARV::Instruction + # @return [Throw] a new instance of Throw + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5566 + def initialize(type); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5582 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5598 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5578 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5570 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5586 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5590 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5594 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5574 + def to_a(_iseq); end + + # Returns the value of attribute type. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5564 + def type; end + + private + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5625 + def error_backtrace(vm); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5553 +SyntaxTree::YARV::Throw::RUBY_TAG_BREAK = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5559 +SyntaxTree::YARV::Throw::RUBY_TAG_FATAL = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5554 +SyntaxTree::YARV::Throw::RUBY_TAG_NEXT = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5551 +SyntaxTree::YARV::Throw::RUBY_TAG_NONE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5557 +SyntaxTree::YARV::Throw::RUBY_TAG_RAISE = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5556 +SyntaxTree::YARV::Throw::RUBY_TAG_REDO = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5555 +SyntaxTree::YARV::Throw::RUBY_TAG_RETRY = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5552 +SyntaxTree::YARV::Throw::RUBY_TAG_RETURN = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5558 +SyntaxTree::YARV::Throw::RUBY_TAG_THROW = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5561 +SyntaxTree::YARV::Throw::VM_THROW_NO_ESCAPE_FLAG = T.let(T.unsafe(nil), Integer) + +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5562 +SyntaxTree::YARV::Throw::VM_THROW_STATE_MASK = T.let(T.unsafe(nil), Integer) + +# ### Summary +# +# `toregexp` pops a number of values off the stack, combines them into a new +# regular expression, and pushes the new regular expression onto the stack. +# +# ### Usage +# +# ~~~ruby +# /foo #{bar}/ +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5700 +class SyntaxTree::YARV::ToRegExp < ::SyntaxTree::YARV::Instruction + # @return [ToRegExp] a new instance of ToRegExp + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5703 + def initialize(options, length); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5720 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5733 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5716 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5708 + def disasm(fmt); end + + # Returns the value of attribute length. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5701 + def length; end + + # Returns the value of attribute options. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5701 + def options; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5725 + def pops; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5729 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5712 + def to_a(_iseq); end +end + +# ### Summary +# +# `topn` pushes a single value onto the stack that is a copy of the value +# within the stack that is `number` of slots down from the top. +# +# ### Usage +# +# ~~~ruby +# case 3 +# when 1..5 +# puts "foo" +# end +# ~~~ +# +# source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5653 +class SyntaxTree::YARV::TopN < ::SyntaxTree::YARV::Instruction + # @return [TopN] a new instance of TopN + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5656 + def initialize(number); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5672 + def ==(other); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5684 + def call(vm); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5668 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5660 + def disasm(fmt); end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5676 + def length; end + + # Returns the value of attribute number. + # + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5654 + def number; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5680 + def pushes; end + + # source://syntax_tree//lib/syntax_tree/yarv/instructions.rb#5664 + def to_a(_iseq); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#8 +class SyntaxTree::YARV::VM + extend ::Forwardable + + # @return [VM] a new instance of VM + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#216 + def initialize(events = T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#623 + def catch(tag, &block); end + + # Helper methods for instructions + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#494 + def const_base; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#610 + def eval(source, binding = T.unsafe(nil), filename = T.unsafe(nil), lineno = T.unsafe(nil)); end + + # Returns the value of attribute events. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#209 + def events; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#344 + def find_catch_entry(frame, type); end + + # Returns the value of attribute frame. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#214 + def frame; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#498 + def frame_at(level); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#504 + def frame_svar; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#510 + def frame_yield; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#516 + def frozen_core; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#520 + def jump(label); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#524 + def leave; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#606 + def load(filepath); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#528 + def local_get(index, level); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#532 + def local_set(index, level, value); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def pop(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def push(*args, **_arg1, &block); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#598 + def require(filepath); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#549 + def require_internal(filepath, loading: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#602 + def require_relative(filepath); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#543 + def require_resolved(filepath); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#360 + def run_block_frame(iseq, frame, *args, **kwargs, &block); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#366 + def run_class_frame(iseq, clazz); end + + # Helper methods for frames + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#230 + def run_frame(frame); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#370 + def run_method_frame(name, nesting, iseq, _self, *args, **kwargs, &block); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#384 + def run_rescue_frame(iseq, frame, error); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#356 + def run_top_frame(iseq); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#391 + def setup_arguments(iseq, args, kwargs, block); end + + # Returns the value of attribute stack. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#211 + def stack; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#619 + def throw(tag, value = T.unsafe(nil)); end + + class << self + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#222 + def run(iseq); end + end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#48 +class SyntaxTree::YARV::VM::BlockFrame < ::SyntaxTree::YARV::VM::Frame + # @return [BlockFrame] a new instance of BlockFrame + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#49 + def initialize(iseq, parent, stack_index); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#89 +class SyntaxTree::YARV::VM::BreakError < ::SyntaxTree::YARV::VM::ThrownError; end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#64 +class SyntaxTree::YARV::VM::ClassFrame < ::SyntaxTree::YARV::VM::Frame + # @return [ClassFrame] a new instance of ClassFrame + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#65 + def initialize(iseq, parent, stack_index, _self); end +end + +# Methods for overriding runtime behavior +# +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#540 +SyntaxTree::YARV::VM::DLEXT = T.let(T.unsafe(nil), String) + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#205 +SyntaxTree::YARV::VM::FROZEN_CORE = T.let(T.unsafe(nil), SyntaxTree::YARV::VM::FrozenCore) + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#25 +class SyntaxTree::YARV::VM::Frame + # @return [Frame] a new instance of Frame + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#29 + def initialize(iseq, parent, stack_index, _self, nesting); end + + # Returns the value of attribute _self. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#26 + def _self; end + + # Returns the value of attribute iseq. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#26 + def iseq; end + + # Returns the value of attribute line. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#27 + def line; end + + # Sets the attribute line + # + # @param value the value to set the attribute line to. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#27 + def line=(_arg0); end + + # Returns the value of attribute nesting. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#26 + def nesting; end + + # Returns the value of attribute parent. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#26 + def parent; end + + # Returns the value of attribute pc. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#27 + def pc; end + + # Sets the attribute pc + # + # @param value the value to set the attribute pc to. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#27 + def pc=(_arg0); end + + # Returns the value of attribute stack_index. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#26 + def stack_index; end + + # Returns the value of attribute svars. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#26 + def svars; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#95 +class SyntaxTree::YARV::VM::FrozenCore; end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#9 +class SyntaxTree::YARV::VM::Jump + # @return [Jump] a new instance of Jump + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#12 + def initialize(label); end + + # Returns the value of attribute label. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#10 + def label; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#17 +class SyntaxTree::YARV::VM::Leave + # @return [Leave] a new instance of Leave + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#20 + def initialize(value); end + + # Returns the value of attribute value. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#18 + def value; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#54 +class SyntaxTree::YARV::VM::MethodFrame < ::SyntaxTree::YARV::VM::Frame + # @return [MethodFrame] a new instance of MethodFrame + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#57 + def initialize(iseq, nesting, parent, stack_index, _self, name, block); end + + # Returns the value of attribute block. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#55 + def block; end + + # Returns the value of attribute name. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#55 + def name; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#92 +class SyntaxTree::YARV::VM::NextError < ::SyntaxTree::YARV::VM::ThrownError; end + +# This is the main entrypoint for events firing in the VM, which allows +# us to implement tracing. +# +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#122 +class SyntaxTree::YARV::VM::NullEvents + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#123 + def publish_frame_change(frame); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#126 + def publish_instruction(iseq, insn); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#129 + def publish_stack_change(stack); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#132 + def publish_tracepoint(event); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#70 +class SyntaxTree::YARV::VM::RescueFrame < ::SyntaxTree::YARV::VM::Frame + # @return [RescueFrame] a new instance of RescueFrame + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#71 + def initialize(iseq, parent, stack_index); end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#86 +class SyntaxTree::YARV::VM::ReturnError < ::SyntaxTree::YARV::VM::ThrownError; end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#541 +SyntaxTree::YARV::VM::SOEXT = T.let(T.unsafe(nil), String) + +# This is a simple implementation of tracing that prints to STDOUT. +# +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#137 +class SyntaxTree::YARV::VM::STDOUTEvents + # @return [STDOUTEvents] a new instance of STDOUTEvents + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#140 + def initialize; end + + # Returns the value of attribute disassembler. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#138 + def disassembler; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#144 + def publish_frame_change(frame); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#148 + def publish_instruction(iseq, insn); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#153 + def publish_stack_change(stack); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#157 + def publish_tracepoint(event); end +end + +# This represents the global VM stack. It effectively is an array, but +# wraps mutating functions with instrumentation. +# +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#164 +class SyntaxTree::YARV::VM::Stack + # @return [Stack] a new instance of Stack + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#167 + def initialize(events); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#196 + def [](*_arg0, **_arg1, &_arg2); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#200 + def []=(*_arg0, **_arg1, &_arg2); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#172 + def concat(*_arg0, **_arg1, &_arg2); end + + # Returns the value of attribute events. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#165 + def events; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#176 + def last; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#180 + def length; end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#188 + def pop(*_arg0, **_arg1, &_arg2); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#184 + def push(*_arg0, **_arg1, &_arg2); end + + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#192 + def slice!(*_arg0, **_arg1, &_arg2); end + + # Returns the value of attribute values. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#165 + def values; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#76 +class SyntaxTree::YARV::VM::ThrownError < ::StandardError + # @return [ThrownError] a new instance of ThrownError + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#79 + def initialize(value, backtrace); end + + # Returns the value of attribute value. + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#77 + def value; end +end + +# source://syntax_tree//lib/syntax_tree/yarv/vm.rb#42 +class SyntaxTree::YARV::VM::TopFrame < ::SyntaxTree::YARV::VM::Frame + # @return [TopFrame] a new instance of TopFrame + # + # source://syntax_tree//lib/syntax_tree/yarv/vm.rb#43 + def initialize(iseq); end +end + +# Yield represents using the +yield+ keyword with arguments. +# +# yield value +# +# source://syntax_tree//lib/syntax_tree/node.rb#12273 +class SyntaxTree::YieldNode < ::SyntaxTree::Node + # @return [YieldNode] a new instance of YieldNode + # + # source://syntax_tree//lib/syntax_tree/node.rb#12280 + def initialize(arguments:, location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12334 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12286 + def accept(visitor); end + + # [nil | Args | Paren] the arguments passed to the yield + # + # source://syntax_tree//lib/syntax_tree/node.rb#12275 + def arguments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12290 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#12278 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12294 + def copy(arguments: T.unsafe(nil), location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12290 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12307 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12311 + def format(q); end +end + +# ZSuper represents the bare +super+ keyword with no arguments. +# +# super +# +# source://syntax_tree//lib/syntax_tree/node.rb#12343 +class SyntaxTree::ZSuper < ::SyntaxTree::Node + # @return [ZSuper] a new instance of ZSuper + # + # source://syntax_tree//lib/syntax_tree/node.rb#12347 + def initialize(location:); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12377 + def ===(other); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12352 + def accept(visitor); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12356 + def child_nodes; end + + # [Array[ Comment | EmbDoc ]] the comments attached to this node + # + # source://syntax_tree//lib/syntax_tree/node.rb#12345 + def comments; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12360 + def copy(location: T.unsafe(nil)); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12356 + def deconstruct; end + + # source://syntax_tree//lib/syntax_tree/node.rb#12369 + def deconstruct_keys(_keys); end + + # source://syntax_tree//lib/syntax_tree/node.rb#12373 + def format(q); end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/tapioca@0.11.9.rbi b/ruby-client-sdk/sorbet/rbi/gems/tapioca@0.11.9.rbi new file mode 100755 index 000000000..cfa75c4b4 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/tapioca@0.11.9.rbi @@ -0,0 +1,3498 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `tapioca` gem. +# Please instead update this file by running `bin/tapioca gem tapioca`. + +class Bundler::Dependency < ::Gem::Dependency + include ::Tapioca::BundlerExt::AutoRequireHook +end + +# source://tapioca//lib/tapioca/helpers/git_attributes.rb#4 +class GitAttributes + class << self + # source://tapioca//lib/tapioca/helpers/git_attributes.rb#9 + sig { params(path: ::Pathname).void } + def create_generated_attribute_file(path); end + + # source://tapioca//lib/tapioca/helpers/git_attributes.rb#16 + sig { params(path: ::Pathname).void } + def create_vendored_attribute_file(path); end + + private + + # source://tapioca//lib/tapioca/helpers/git_attributes.rb#25 + sig { params(path: ::Pathname, content: ::String).void } + def create_gitattributes_file(path, content); end + end +end + +# We need to do the alias-method-chain dance since Bootsnap does the same, +# and prepended modules and alias-method-chain don't play well together. +# +# So, why does Bootsnap do alias-method-chain and not prepend? Glad you asked! +# That's because RubyGems does alias-method-chain for Kernel#require and such, +# so, if Bootsnap were to do prepend, it might end up breaking RubyGems. +# +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#68 +class Module + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#101 + def append_features(constant); end + + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#71 + def autoload(const_name, path); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#111 + def extend_object(obj); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#91 + def prepend_features(constant); end +end + +# source://tapioca//lib/tapioca/rbi_ext/model.rb#4 +module RBI; end + +# source://tapioca//lib/tapioca/rbi_ext/model.rb#5 +class RBI::Tree < ::RBI::NodeWithComments + # source://rbi/0.1.1/lib/rbi/model.rb#119 + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Tree).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + # source://rbi/0.1.1/lib/rbi/model.rb#126 + sig { params(node: ::RBI::Node).void } + def <<(node); end + + # source://rbi/0.1.1/lib/rbi/printer.rb#226 + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + # source://rbi/0.1.1/lib/rbi/rewriters/add_sig_templates.rb#66 + sig { params(with_todo_comment: T::Boolean).void } + def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end + + # source://rbi/0.1.1/lib/rbi/rewriters/annotate.rb#49 + sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } + def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#38 + sig do + params( + name: ::String, + superclass_name: T.nilable(::String), + block: T.nilable(T.proc.params(scope: ::RBI::Scope).void) + ).returns(::RBI::Scope) + end + def create_class(name, superclass_name: T.unsafe(nil), &block); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#45 + sig { params(name: ::String, value: ::String).void } + def create_constant(name, value:); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#55 + sig { params(name: ::String).void } + def create_extend(name); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#50 + sig { params(name: ::String).void } + def create_include(name); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#89 + sig do + params( + name: ::String, + parameters: T::Array[::RBI::TypedParam], + return_type: ::String, + class_method: T::Boolean, + visibility: ::RBI::Visibility, + comments: T::Array[::RBI::Comment] + ).void + end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 + sig { params(name: ::String).void } + def create_mixes_in_class_methods(name); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#25 + sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } + def create_module(name, &block); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#9 + sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } + def create_path(constant, &block); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#74 + sig do + params( + name: ::String, + type: ::String, + variance: ::Symbol, + fixed: T.nilable(::String), + upper: T.nilable(::String), + lower: T.nilable(::String) + ).void + end + def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end + + # source://rbi/0.1.1/lib/rbi/rewriters/deannotate.rb#41 + sig { params(annotation: ::String).void } + def deannotate!(annotation); end + + # source://rbi/0.1.1/lib/rbi/model.rb#132 + sig { returns(T::Boolean) } + def empty?; end + + # source://rbi/0.1.1/lib/rbi/rewriters/group_nodes.rb#38 + sig { void } + def group_nodes!; end + + # source://rbi/0.1.1/lib/rbi/index.rb#68 + sig { returns(::RBI::Index) } + def index; end + + # source://rbi/0.1.1/lib/rbi/rewriters/merge_trees.rb#324 + sig do + params( + other: ::RBI::Tree, + left_name: ::String, + right_name: ::String, + keep: ::RBI::Rewriters::Merge::Keep + ).returns(::RBI::MergeTree) + end + def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end + + # source://rbi/0.1.1/lib/rbi/rewriters/nest_non_public_methods.rb#46 + sig { void } + def nest_non_public_methods!; end + + # source://rbi/0.1.1/lib/rbi/rewriters/nest_singleton_methods.rb#36 + sig { void } + def nest_singleton_methods!; end + + # source://rbi/0.1.1/lib/rbi/model.rb#110 + sig { returns(T::Array[::RBI::Node]) } + def nodes; end + + # source://rbi/0.1.1/lib/rbi/printer.rb#233 + sig { override.returns(T::Boolean) } + def oneline?; end + + # source://rbi/0.1.1/lib/rbi/rewriters/sort_nodes.rb#119 + sig { void } + def sort_nodes!; end + + private + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#116 + sig { params(node: ::RBI::Node).returns(::RBI::Node) } + def create_node(node); end + + # source://tapioca//lib/tapioca/rbi_ext/model.rb#111 + sig { returns(T::Hash[::String, ::RBI::Node]) } + def nodes_cache; end +end + +# source://tapioca//lib/tapioca/rbi_ext/model.rb#126 +class RBI::TypedParam < ::T::Struct + const :param, ::RBI::Param + const :type, ::String + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#5 +module T::Generic + include ::Kernel + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13 + def [](*types); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#53 + def has_attached_class!(variance = T.unsafe(nil), &bounds_proc); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#21 + def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#37 + def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end +end + +# This module intercepts calls to generic type instantiations and type variable definitions. +# Tapioca stores the data from those calls in a `GenericTypeRegistry` which can then be used +# to look up the original call details when we are trying to do code generation. +# +# We are interested in the data of the `[]`, `type_member` and `type_template` calls which +# are all needed to generate good generic information at runtime. +# +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#12 +module T::Generic::TypeStoragePatch + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13 + def [](*types); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#53 + def has_attached_class!(variance = T.unsafe(nil), &bounds_proc); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#21 + def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#37 + def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end +end + +# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#28 +module T::Private::Methods + class << self + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#30 + def finalize_proc(decl); end + end +end + +class T::Private::Methods::Declaration < ::Struct + def bind; end + def bind=(_); end + def checked; end + def checked=(_); end + def finalized; end + def finalized=(_); end + def mod; end + def mod=(_); end + def mode; end + def mode=(_); end + def on_failure; end + def on_failure=(_); end + def override_allow_incompatible; end + def override_allow_incompatible=(_); end + def params; end + def params=(_); end + def raw; end + def raw=(_); end + def returns; end + def returns=(_); end + def type_parameters; end + def type_parameters=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +class T::Private::Methods::DeclarationBlock < ::Struct + def blk; end + def blk=(_); end + def final; end + def final=(_); end + def loc; end + def loc=(_); end + def mod; end + def mod=(_); end + def raw; end + def raw=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#29 +module T::Private::Methods::ProcBindPatch + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#30 + def finalize_proc(decl); end +end + +class T::Types::Proc < ::T::Types::Base; end + +# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#6 +module T::Types::ProcBindPatch + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#7 + def initialize(arg_types, returns, bind = T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#15 + def name; end +end + +# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#6 +class T::Types::Simple < ::T::Types::Base + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#79 + def name; end +end + +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#74 +module T::Types::Simple::GenericPatch + # This method intercepts calls to the `name` method for simple types, so that + # it can ask the name to the type if the type is generic, since, by this point, + # we've created a clone of that type with the `name` method returning the + # appropriate name for that specific concrete type. + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#79 + def name; end +end + +# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#7 +module T::Types::Simple::NamePatch + # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#10 + def name; end + + # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#16 + def qualified_name_of(constant); end +end + +# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#8 +T::Types::Simple::NamePatch::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#99 +module T::Utils::Private + class << self + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#101 + def coerce_and_check_module_types(val, check_val, check_module_type); end + end +end + +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#100 +module T::Utils::Private::PrivateCoercePatch + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#101 + def coerce_and_check_module_types(val, check_val, check_module_type); end +end + +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4 +module Tapioca + class << self + # source://tapioca//lib/tapioca.rb#19 + sig do + type_parameters(:Result) + .params( + blk: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def silence_warnings(&blk); end + end +end + +# source://tapioca//lib/tapioca.rb#37 +Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5 +module Tapioca::BundlerExt; end + +# This is a module that gets prepended to `Bundler::Dependency` and +# makes sure even gems marked as `require: false` are required during +# `Bundler.require`. +# +# source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#9 +module Tapioca::BundlerExt::AutoRequireHook + requires_ancestor { Bundler::Dependency } + + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#46 + sig { returns(T.untyped) } + def autorequire; end + + class << self + # @return [Boolean] + # + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#26 + def enabled?; end + + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#22 + sig { params(name: T.untyped).returns(T::Boolean) } + def excluded?(name); end + + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#36 + sig do + type_parameters(:Result) + .params( + exclude: T::Array[::String], + blk: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def override_require_false(exclude:, &blk); end + end +end + +# source://tapioca//lib/tapioca.rb#60 +Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#59 +Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#58 +Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/cli.rb#5 +class Tapioca::Cli < ::Thor + include ::Tapioca::CliHelper + include ::Tapioca::ConfigHelper + include ::Tapioca::EnvHelper + + # source://tapioca//lib/tapioca/cli.rb#355 + def __print_version; end + + # source://tapioca//lib/tapioca/cli.rb#337 + def annotations; end + + # source://tapioca//lib/tapioca/cli.rb#309 + def check_shims; end + + # source://tapioca//lib/tapioca/cli.rb#46 + def configure; end + + # source://tapioca//lib/tapioca/cli.rb#138 + def dsl(*constant_or_paths); end + + # @raise [MalformattedArgumentError] + # + # source://tapioca//lib/tapioca/cli.rb#253 + def gem(*gems); end + + # source://tapioca//lib/tapioca/cli.rb#27 + def init; end + + # source://tapioca//lib/tapioca/cli.rb#57 + def require; end + + # source://tapioca//lib/tapioca/cli.rb#74 + def todo; end + + private + + # source://tapioca//lib/tapioca/cli.rb#369 + def print_init_next_steps; end + + class << self + # source://tapioca//lib/tapioca/cli.rb#361 + def exit_on_failure?; end + end +end + +# source://tapioca//lib/tapioca/cli.rb#10 +Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/cli_helper.rb#5 +module Tapioca::CliHelper + requires_ancestor { Thor::Shell } + + # source://tapioca//lib/tapioca/helpers/cli_helper.rb#33 + sig { params(options: T::Hash[::Symbol, T.untyped]).returns(T.nilable(::String)) } + def netrc_file(options); end + + # source://tapioca//lib/tapioca/helpers/cli_helper.rb#26 + sig { params(options: T::Hash[::Symbol, T.untyped]).returns(::Tapioca::RBIFormatter) } + def rbi_formatter(options); end + + # source://tapioca//lib/tapioca/helpers/cli_helper.rb#12 + sig { params(message: ::String, color: T.any(::Symbol, T::Array[::Symbol])).void } + def say_error(message = T.unsafe(nil), *color); end +end + +# source://tapioca//lib/tapioca/commands.rb#5 +module Tapioca::Commands; end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/commands/abstract_dsl.rb#6 +class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracker + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIFilesHelper + + abstract! + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#31 + sig do + params( + requested_constants: T::Array[::String], + requested_paths: T::Array[::Pathname], + outpath: ::Pathname, + only: T::Array[::String], + exclude: T::Array[::String], + file_header: T::Boolean, + tapioca_path: ::String, + quiet: T::Boolean, + verbose: T::Boolean, + number_of_workers: T.nilable(::Integer), + auto_strictness: T::Boolean, + gem_dir: ::String, + rbi_formatter: ::Tapioca::RBIFormatter, + app_root: ::String, + halt_upon_load_error: T::Boolean + ).void + end + def initialize(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + + private + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#94 + sig { returns(T::Array[::String]) } + def all_requested_constants; end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#284 + sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } + def build_error_for_files(cause, files); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#208 + sig do + params( + constant_name: ::String, + rbi: ::RBI::File, + outpath: ::Pathname, + quiet: T::Boolean + ).returns(T.nilable(::Pathname)) + end + def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#146 + sig { params(constant_names: T::Array[::String], ignore_missing: T::Boolean).returns(T::Array[::Module]) } + def constantize(constant_names, ignore_missing: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#169 + sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } + def constantize_compilers(compiler_names); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344 + sig { returns(T::Array[::String]) } + def constants_from_requested_paths; end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#117 + sig { returns(::Tapioca::Dsl::Pipeline) } + def create_pipeline; end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#247 + sig { params(constant_name: ::String).returns(::Pathname) } + def dsl_rbi_filename(constant_name); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#132 + sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) } + def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339 + sig { params(constant: ::String).returns(::String) } + def generate_command_for(constant); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#70 + sig { params(outpath: ::Pathname, quiet: T::Boolean).returns(T::Set[::Pathname]) } + def generate_dsl_rbi_files(outpath, quiet:); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#107 + sig { void } + def load_application; end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#226 + sig { params(dir: ::Pathname).void } + def perform_dsl_verification(dir); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#102 + sig { returns(::Tapioca::Dsl::Pipeline) } + def pipeline; end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235 + sig { params(files: T::Set[::Pathname]).void } + def purge_stale_dsl_rbi_files(files); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#334 + sig { params(constant: ::String).returns(::String) } + def rbi_filename_for(constant); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#315 + sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } + def rbi_files_in(path); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293 + sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } + def report_diff_and_exit_if_out_of_date(diff, command); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#188 + sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) } + def resolve(name); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322 + sig { params(class_name: ::String).returns(::String) } + def underscore(class_name); end + + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252 + sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } + def verify_dsl_rbi(tmp_dir:); end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/commands/abstract_gem.rb#6 +class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIFilesHelper + + abstract! + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#32 + sig do + params( + gem_names: T::Array[::String], + exclude: T::Array[::String], + include_dependencies: T::Boolean, + prerequire: T.nilable(::String), + postrequire: ::String, + typed_overrides: T::Hash[::String, ::String], + outpath: ::Pathname, + file_header: T::Boolean, + include_doc: T::Boolean, + include_loc: T::Boolean, + include_exported_rbis: T::Boolean, + number_of_workers: T.nilable(::Integer), + auto_strictness: T::Boolean, + dsl_dir: ::String, + rbi_formatter: ::Tapioca::RBIFormatter, + halt_upon_load_error: T::Boolean + ).void + end + def initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + + private + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#221 + sig { returns(T::Array[::String]) } + def added_rbis; end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#282 + sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } + def build_error_for_files(cause, files); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#110 + sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } + def compile_gem_rbi(gem); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#216 + sig { params(gem_name: ::String).returns(::Pathname) } + def existing_rbi(gem_name); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#264 + sig { returns(T::Hash[::String, ::String]) } + def existing_rbis; end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#228 + sig { params(gem_name: ::String).returns(::Pathname) } + def expected_rbi(gem_name); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#270 + sig { returns(T::Hash[::String, ::String]) } + def expected_rbis; end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#98 + sig do + params( + gem: ::Tapioca::Gemfile::GemSpec, + dependencies: T::Array[::Tapioca::Gemfile::GemSpec] + ).returns(T::Array[::Tapioca::Gemfile::GemSpec]) + end + def gem_dependencies(gem, dependencies = T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#233 + sig { params(gem_name: ::String).returns(T::Boolean) } + def gem_rbi_exists?(gem_name); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#277 + sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } + def gem_rbi_filename(gem_name, version); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#77 + sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } + def gems_to_generate(gem_names); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#287 + sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } + def merge_with_exported_rbi(gem, file); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#258 + sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } + def move(old_filename, new_filename); end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#168 + sig { void } + def perform_additions; end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#141 + sig { void } + def perform_removals; end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#211 + sig { returns(T::Array[::String]) } + def removed_rbis; end + + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#238 + sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } + def report_diff_and_exit_if_out_of_date(diff, command); end +end + +# source://tapioca//lib/tapioca/commands/annotations.rb#6 +class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracker + # source://tapioca//lib/tapioca/commands/annotations.rb#18 + sig do + params( + central_repo_root_uris: T::Array[::String], + auth: T.nilable(::String), + netrc_file: T.nilable(::String), + central_repo_index_path: ::String, + typed_overrides: T::Hash[::String, ::String] + ).void + end + def initialize(central_repo_root_uris:, auth: T.unsafe(nil), netrc_file: T.unsafe(nil), central_repo_index_path: T.unsafe(nil), typed_overrides: T.unsafe(nil)); end + + private + + # source://tapioca//lib/tapioca/commands/annotations.rb#193 + sig { params(name: ::String, content: ::String).returns(::String) } + def add_header(name, content); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#213 + sig { params(name: ::String, content: ::String).returns(::String) } + def apply_typed_override(name, content); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#39 + sig { override.void } + def execute; end + + # source://tapioca//lib/tapioca/commands/annotations.rb#136 + sig { params(repo_uris: T::Array[::String], gem_name: ::String).void } + def fetch_annotation(repo_uris, gem_name); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#113 + sig { params(gem_names: T::Array[::String]).returns(T::Array[::String]) } + def fetch_annotations(gem_names); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#152 + sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } + def fetch_file(repo_uri, path); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#169 + sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } + def fetch_http_file(repo_uri, path); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#102 + sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) } + def fetch_index(repo_uri, repo_number:); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#81 + sig { returns(T::Hash[::String, Tapioca::RepoIndex]) } + def fetch_indexes; end + + # source://tapioca//lib/tapioca/commands/annotations.rb#161 + sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } + def fetch_local_file(repo_uri, path); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#50 + sig { returns(T::Array[::String]) } + def list_gemfile_gems; end + + # source://tapioca//lib/tapioca/commands/annotations.rb#225 + sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) } + def merge_files(gem_name, contents); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#60 + sig { params(project_gems: T::Array[::String]).void } + def remove_expired_annotations(project_gems); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#252 + sig { returns(T::Hash[::String, T.nilable(::String)]) } + def repo_tokens; end + + # source://tapioca//lib/tapioca/commands/annotations.rb#280 + sig { params(path: ::String, repo_uri: ::String, message: ::String).void } + def say_http_error(path, repo_uri, message:); end + + # source://tapioca//lib/tapioca/commands/annotations.rb#264 + sig { params(repo_uri: ::String).returns(T.nilable(::String)) } + def token_for(repo_uri); end +end + +# source://tapioca//lib/tapioca/commands/check_shims.rb#6 +class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIFilesHelper + + # source://tapioca//lib/tapioca/commands/check_shims.rb#22 + sig do + params( + gem_rbi_dir: ::String, + dsl_rbi_dir: ::String, + annotations_rbi_dir: ::String, + shim_rbi_dir: ::String, + todo_rbi_file: ::String, + payload: T::Boolean, + number_of_workers: T.nilable(::Integer) + ).void + end + def initialize(gem_rbi_dir:, dsl_rbi_dir:, annotations_rbi_dir:, shim_rbi_dir:, todo_rbi_file:, payload:, number_of_workers:); end + + private + + # source://tapioca//lib/tapioca/commands/check_shims.rb#44 + sig { override.void } + def execute; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/commands/command.rb#6 +class Tapioca::Commands::Command + include ::Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + include ::Tapioca::CliHelper + extend ::Thor::Base::ClassMethods + extend ::Thor::Invocation::ClassMethods + + abstract! + + # source://tapioca//lib/tapioca/commands/command.rb#20 + sig { void } + def initialize; end + + # source://thor/1.3.0/lib/thor/base.rb#155 + sig { returns(::Thor::Actions) } + def file_writer; end + + # source://tapioca//lib/tapioca/commands/command.rb#25 + sig(:final) { void } + def run; end + + private + + # source://tapioca//lib/tapioca/commands/command.rb#53 + sig do + params( + path: T.any(::Pathname, ::String), + content: ::String, + force: T::Boolean, + skip: T::Boolean, + verbose: T::Boolean + ).void + end + def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/commands/command.rb#37 + sig { params(command: ::Symbol, args: ::String).returns(::String) } + def default_command(command, *args); end + + # @abstract + # + # source://tapioca//lib/tapioca/commands/command.rb#34 + sig { abstract.void } + def execute; end + + # source://tapioca//lib/tapioca/commands/command.rb#63 + sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void } + def remove_file(path, verbose: T.unsafe(nil)); end +end + +# source://tapioca//lib/tapioca/commands/command.rb#10 +class Tapioca::Commands::Command::FileWriter < ::Thor + include ::Thor::Actions + extend ::Thor::Actions::ClassMethods +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/commands/command_without_tracker.rb#6 +class Tapioca::Commands::CommandWithoutTracker < ::Tapioca::Commands::Command + abstract! + + # source://tapioca//lib/tapioca/commands/command_without_tracker.rb#12 + sig { void } + def initialize; end +end + +# source://tapioca//lib/tapioca/commands/configure.rb#6 +class Tapioca::Commands::Configure < ::Tapioca::Commands::CommandWithoutTracker + # source://tapioca//lib/tapioca/commands/configure.rb#14 + sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void } + def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end + + private + + # source://tapioca//lib/tapioca/commands/configure.rb#79 + sig { void } + def create_binstub; end + + # source://tapioca//lib/tapioca/commands/configure.rb#69 + sig { void } + def create_post_require; end + + # source://tapioca//lib/tapioca/commands/configure.rb#40 + sig { void } + def create_sorbet_config; end + + # source://tapioca//lib/tapioca/commands/configure.rb#50 + sig { void } + def create_tapioca_config; end + + # source://tapioca//lib/tapioca/commands/configure.rb#32 + sig { override.void } + def execute; end + + # source://tapioca//lib/tapioca/commands/configure.rb#92 + sig { returns(::Bundler::Installer) } + def installer; end + + # source://tapioca//lib/tapioca/commands/configure.rb#97 + sig { returns(T.any(::Bundler::StubSpecification, ::Gem::Specification)) } + def spec; end +end + +# source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#6 +class Tapioca::Commands::DslCompilerList < ::Tapioca::Commands::AbstractDsl + private + + # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#10 + sig { override.void } + def execute; end +end + +# source://tapioca//lib/tapioca/commands/dsl_generate.rb#6 +class Tapioca::Commands::DslGenerate < ::Tapioca::Commands::AbstractDsl + private + + # source://tapioca//lib/tapioca/commands/dsl_generate.rb#10 + sig { override.void } + def execute; end +end + +# source://tapioca//lib/tapioca/commands/dsl_verify.rb#6 +class Tapioca::Commands::DslVerify < ::Tapioca::Commands::AbstractDsl + private + + # source://tapioca//lib/tapioca/commands/dsl_verify.rb#10 + sig { override.void } + def execute; end +end + +# source://tapioca//lib/tapioca/commands/gem_generate.rb#6 +class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem + private + + # source://tapioca//lib/tapioca/commands/gem_generate.rb#10 + sig { override.void } + def execute; end +end + +# source://tapioca//lib/tapioca/commands/gem_sync.rb#6 +class Tapioca::Commands::GemSync < ::Tapioca::Commands::AbstractGem + private + + # source://tapioca//lib/tapioca/commands/gem_sync.rb#10 + sig { override.void } + def execute; end +end + +# source://tapioca//lib/tapioca/commands/gem_verify.rb#6 +class Tapioca::Commands::GemVerify < ::Tapioca::Commands::AbstractGem + private + + # source://tapioca//lib/tapioca/commands/gem_verify.rb#10 + sig { override.void } + def execute; end + + # source://tapioca//lib/tapioca/commands/gem_verify.rb#17 + sig { void } + def perform_sync_verification; end +end + +# source://tapioca//lib/tapioca/commands/require.rb#6 +class Tapioca::Commands::Require < ::Tapioca::Commands::CommandWithoutTracker + # source://tapioca//lib/tapioca/commands/require.rb#13 + sig { params(requires_path: ::String, sorbet_config_path: ::String).void } + def initialize(requires_path:, sorbet_config_path:); end + + private + + # source://tapioca//lib/tapioca/commands/require.rb#23 + sig { override.void } + def execute; end +end + +# source://tapioca//lib/tapioca/commands/todo.rb#6 +class Tapioca::Commands::Todo < ::Tapioca::Commands::CommandWithoutTracker + include ::Tapioca::SorbetHelper + + # source://tapioca//lib/tapioca/commands/todo.rb#26 + sig { params(todo_file: ::String, file_header: T::Boolean).void } + def initialize(todo_file:, file_header:); end + + # source://tapioca//lib/tapioca/commands/todo.rb#34 + sig { void } + def run_with_deprecation; end + + private + + # source://tapioca//lib/tapioca/commands/todo.rb#44 + sig { override.void } + def execute; end + + # source://tapioca//lib/tapioca/commands/todo.rb#68 + sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) } + def rbi(constants, command:); end + + # source://tapioca//lib/tapioca/commands/todo.rb#88 + sig { returns(T::Array[::String]) } + def unresolved_constants; end +end + +# source://tapioca//lib/tapioca/commands/todo.rb#9 +Tapioca::Commands::Todo::DEPRECATION_MESSAGE = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/config_helper.rb#5 +module Tapioca::ConfigHelper + requires_ancestor { Thor } + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#18 + sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void } + def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#12 + sig { returns(::String) } + def command_name; end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#15 + sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } + def defaults; end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#34 + sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } + def options; end + + private + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#151 + sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } + def build_error(msg); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#176 + sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) } + def build_error_message(config_file, errors); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#56 + sig do + params( + options: ::Thor::CoreExt::HashWithIndifferentAccess + ).returns(::Thor::CoreExt::HashWithIndifferentAccess) + end + def config_options(options); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#46 + sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } + def filter_defaults(options); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#194 + sig do + params( + options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) + ).returns(::Thor::CoreExt::HashWithIndifferentAccess) + end + def merge_options(*options); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#70 + sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void } + def validate_config!(config_file, config); end + + # source://tapioca//lib/tapioca/helpers/config_helper.rb#102 + sig do + params( + command_options: T::Hash[::Symbol, ::Thor::Option], + config_key: ::String, + config_options: T::Hash[T.untyped, T.untyped] + ).returns(T::Array[::Tapioca::ConfigHelper::ConfigError]) + end + def validate_config_options(command_options, config_key, config_options); end +end + +# source://tapioca//lib/tapioca/helpers/config_helper.rb#146 +class Tapioca::ConfigHelper::ConfigError < ::T::Struct + const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://tapioca//lib/tapioca/helpers/config_helper.rb#141 +class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct + const :message, ::String + const :colors, T::Array[::Symbol] + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://tapioca//lib/tapioca.rb#44 +Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#40 +Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#56 +Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#41 +Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#46 +Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) + +# source://tapioca//lib/tapioca.rb#38 +Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#39 +Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/rbi_formatter.rb#29 +Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) + +# source://tapioca//lib/tapioca.rb#55 +Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) + +# source://tapioca//lib/tapioca.rb#42 +Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#43 +Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/dsl/compilers.rb#5 +module Tapioca::Dsl; end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/dsl/compiler.rb#6 +class Tapioca::Dsl::Compiler + extend T::Generic + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIHelper + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + extend ::Tapioca::Runtime::AttachedClassOf + extend ::Tapioca::Runtime::Reflection + + abstract! + + ConstantType = type_member { { upper: Module } } + + # source://tapioca//lib/tapioca/dsl/compiler.rb#64 + sig { params(pipeline: ::Tapioca::Dsl::Pipeline, root: ::RBI::Tree, constant: ConstantType).void } + def initialize(pipeline, root, constant); end + + # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. + # + # source://tapioca//lib/tapioca/dsl/compiler.rb#81 + sig { params(error: ::String).void } + def add_error(error); end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#72 + sig { params(compiler_name: ::String).returns(T::Boolean) } + def compiler_enabled?(compiler_name); end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#20 + sig { returns(ConstantType) } + def constant; end + + # @abstract + # + # source://tapioca//lib/tapioca/dsl/compiler.rb#77 + sig { abstract.void } + def decorate; end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#23 + sig { returns(::RBI::Tree) } + def root; end + + private + + # source://tapioca//lib/tapioca/dsl/compiler.rb#130 + sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } + def compile_method_parameters_to_rbi(method_def); end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#166 + sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } + def compile_method_return_type_to_rbi(method_def); end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#120 + sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } + def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end + + # Get the types of each parameter from a method signature + # + # source://tapioca//lib/tapioca/dsl/compiler.rb#94 + sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } + def parameters_types_from_signature(method_def, signature); end + + class << self + # @abstract + # + # source://tapioca//lib/tapioca/dsl/compiler.rb#34 + sig { abstract.returns(T::Enumerable[::Module]) } + def gather_constants; end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#29 + sig { params(constant: ::Module).returns(T::Boolean) } + def handles?(constant); end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#37 + sig { returns(T::Set[::Module]) } + def processable_constants; end + + private + + # source://tapioca//lib/tapioca/dsl/compiler.rb#47 + sig { returns(T::Enumerable[T::Class[T.anything]]) } + def all_classes; end + + # source://tapioca//lib/tapioca/dsl/compiler.rb#55 + sig { returns(T::Enumerable[::Module]) } + def all_modules; end + end +end + +# source://tapioca//lib/tapioca/dsl/compilers.rb#6 +module Tapioca::Dsl::Compilers; end + +# DSL compilers are either built-in to Tapioca and live under the +# `Tapioca::Dsl::Compilers` namespace (i.e. this namespace), and +# can be referred to by just using the class name, or they live in +# a different namespace and can only be referred to using their fully +# qualified name. This constant encapsulates that dual lookup when +# a compiler needs to be resolved by name. +# +# source://tapioca//lib/tapioca/dsl/compilers.rb#13 +Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca/dsl/pipeline.rb#6 +class Tapioca::Dsl::Pipeline + # source://tapioca//lib/tapioca/dsl/pipeline.rb#34 + sig do + params( + requested_constants: T::Array[::Module], + requested_paths: T::Array[::Pathname], + requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], + excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], + error_handler: T.proc.params(error: ::String).void, + number_of_workers: T.nilable(::Integer) + ).void + end + def initialize(requested_constants:, requested_paths: T.unsafe(nil), requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#10 + sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } + def active_compilers; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#93 + sig { params(error: ::String).void } + def add_error(error); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#98 + sig { params(compiler_name: ::String).returns(T::Boolean) } + def compiler_enabled?(compiler_name); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#107 + sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } + def compilers; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#19 + sig { returns(T.proc.params(error: ::String).void) } + def error_handler; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#22 + sig { returns(T::Array[::String]) } + def errors; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#13 + sig { returns(T::Array[::Module]) } + def requested_constants; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#16 + sig { returns(T::Array[::Pathname]) } + def requested_paths; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#58 + sig do + type_parameters(:T) + .params( + blk: T.proc.params(constant: ::Module, rbi: ::RBI::File).returns(T.type_parameter(:T)) + ).returns(T::Array[T.type_parameter(:T)]) + end + def run(&blk); end + + private + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#195 + sig { void } + def abort_if_pending_migrations!; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#141 + sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) } + def filter_anonymous_and_reloaded_constants(constants); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#124 + sig do + params( + requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], + excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)] + ).returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) + end + def gather_active_compilers(requested_compilers, excluded_compilers); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#132 + sig do + params( + requested_constants: T::Array[::Module], + requested_paths: T::Array[::Pathname] + ).returns(T::Set[::Module]) + end + def gather_constants(requested_constants, requested_paths); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#169 + sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } + def rbi_for_constant(constant); end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#188 + sig { params(error: ::String).returns(T.noreturn) } + def report_error(error); end +end + +# source://tapioca//lib/tapioca/helpers/env_helper.rb#5 +module Tapioca::EnvHelper + requires_ancestor { Thor } + + # source://tapioca//lib/tapioca/helpers/env_helper.rb#12 + sig { params(options: T::Hash[::Symbol, T.untyped]).void } + def set_environment(options); end +end + +class Tapioca::Error < ::StandardError; end + +# source://tapioca//lib/tapioca/executor.rb#5 +class Tapioca::Executor + # source://tapioca//lib/tapioca/executor.rb#11 + sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void } + def initialize(queue, number_of_workers: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/executor.rb#28 + sig do + type_parameters(:T) + .params( + block: T.proc.params(item: T.untyped).returns(T.type_parameter(:T)) + ).returns(T::Array[T.type_parameter(:T)]) + end + def run_in_parallel(&block); end + + private + + # source://tapioca//lib/tapioca/executor.rb#37 + sig { returns(::Integer) } + def max_processors; end +end + +# source://tapioca//lib/tapioca/executor.rb#8 +Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) + +# source://tapioca//lib/tapioca/gem/events.rb#5 +module Tapioca::Gem; end + +# source://tapioca//lib/tapioca/gem/events.rb#77 +class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded + # source://tapioca//lib/tapioca/gem/events.rb#84 + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } + def initialize(symbol, constant, node); end + + # source://tapioca//lib/tapioca/gem/events.rb#81 + sig { returns(::RBI::Const) } + def node; end +end + +# source://tapioca//lib/tapioca/gem/events.rb#26 +class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event + # source://tapioca//lib/tapioca/gem/events.rb#36 + sig { params(symbol: ::String, constant: ::BasicObject).void } + def initialize(symbol, constant); end + + # source://tapioca//lib/tapioca/gem/events.rb#33 + sig { returns(::BasicObject) } + def constant; end + + # source://tapioca//lib/tapioca/gem/events.rb#30 + sig { returns(::String) } + def symbol; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/gem/events.rb#6 +class Tapioca::Gem::Event + abstract! +end + +# source://tapioca//lib/tapioca/gem/events.rb#43 +class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound + # source://tapioca//lib/tapioca/gem/events.rb#52 + sig { params(symbol: ::String, constant: ::Module).void } + def initialize(symbol, constant); end + + # source://tapioca//lib/tapioca/gem/events.rb#47 + sig { override.returns(::Module) } + def constant; end +end + +# source://tapioca//lib/tapioca/gem/events.rb#103 +class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end + +# source://tapioca//lib/tapioca/gem/listeners/base.rb#6 +module Tapioca::Gem::Listeners; end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/gem/listeners/base.rb#7 +class Tapioca::Gem::Listeners::Base + abstract! + + # source://tapioca//lib/tapioca/gem/listeners/base.rb#14 + sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } + def initialize(pipeline); end + + # source://tapioca//lib/tapioca/gem/listeners/base.rb#19 + sig { params(event: ::Tapioca::Gem::NodeAdded).void } + def dispatch(event); end + + private + + # source://tapioca//lib/tapioca/gem/listeners/base.rb#49 + sig { params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/base.rb#37 + sig { params(event: ::Tapioca::Gem::ConstNodeAdded).void } + def on_const(event); end + + # source://tapioca//lib/tapioca/gem/listeners/base.rb#45 + sig { params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + # source://tapioca//lib/tapioca/gem/listeners/base.rb#41 + sig { params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#7 +class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#31 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#7 +class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#60 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#55 + sig { params(location: ::String).returns(T::Boolean) } + def mixed_in_by_gem?(location); end + + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/methods.rb#7 +class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIHelper + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#35 + sig do + params( + tree: ::RBI::Tree, + module_name: ::String, + mod: ::Module, + for_visibility: T::Array[::Symbol], + attached_class: T.nilable(::Module) + ).void + end + def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil), attached_class: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#71 + sig do + params( + tree: ::RBI::Tree, + symbol_name: ::String, + constant: ::Module, + method: T.nilable(::UnboundMethod), + visibility: ::RBI::Visibility + ).void + end + def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#212 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#205 + sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } + def initialize_method_for(constant); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#173 + sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } + def method_names_by_visibility(mod); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#197 + sig { params(attached_class: T.nilable(::Module), method_name: ::Symbol).returns(T.nilable(T::Boolean)) } + def method_new_in_abstract_class?(attached_class, method_name); end + + # Check whether the method is defined by the constant. + # + # In most cases, it works to check that the constant is the method owner. However, + # in the case that a method is also defined in a module prepended to the constant, it + # will be owned by the prepended module, not the constant. + # + # This method implements a better way of checking whether a constant defines a method. + # It walks up the ancestor tree via the `super_method` method; if any of the super + # methods are owned by the constant, it means that the constant declares the method. + # + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#159 + sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) } + def method_owned_by_constant?(method, constant); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#16 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end + + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#182 + sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) } + def struct_method?(constant, method_name); end +end + +# source://tapioca//lib/tapioca/gem/listeners/mixins.rb#7 +class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#42 + sig do + params( + tree: ::RBI::Tree, + constant: ::Module, + mods: T::Array[::Module], + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type + ).void + end + def add_mixins(tree, constant, mods, mixin_type); end + + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#84 + sig { params(mixin_name: ::String).returns(T::Boolean) } + def filtered_mixin?(mixin_name); end + + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#91 + sig { params(constant: ::Module).returns(T::Array[::Module]) } + def interesting_ancestors_of(constant); end + + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#75 + sig do + params( + constant: ::Module, + mixin: ::Module, + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type + ).returns(T::Boolean) + end + def mixed_in_by_gem?(constant, mixin, mixin_type); end + + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#7 +class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#20 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#7 +class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base + private + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#25 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#13 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#7 +class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#27 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#7 +class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base + private + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#32 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#13 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#7 +class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base + private + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#23 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#13 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#7 +class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIHelper + + private + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#26 + sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) } + def compile_signature(signature, parameters); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#78 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#18 + sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#68 + sig { params(signature: T.untyped).returns(T::Boolean) } + def signature_final?(signature); end +end + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#13 +Tapioca::Gem::Listeners::SorbetSignatures::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp) + +# source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#7 +class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#27 + sig { params(tree: ::RBI::Tree, constant: ::Module).void } + def compile_type_variable_declarations(tree, constant); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#63 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#50 + sig { params(type_variable: ::Tapioca::TypeVariableModule).returns(T.nilable(::RBI::Node)) } + def node_from_type_variable(type_variable); end + + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/source_location.rb#7 +class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base + private + + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#41 + sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void } + def add_source_location_comment(node, file, line); end + + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#13 + sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } + def on_const(event); end + + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#35 + sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#19 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#7 +class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + private + + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#36 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#15 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#7 +class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#27 + sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } + def initialize(pipeline); end + + private + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#55 + sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } + def documentation_comments(name, sigs: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#99 + sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } + def ignore?(event); end + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#36 + sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } + def on_const(event); end + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46 + sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#41 + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#10 +Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#24 +Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca/gem/events.rb#105 +class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded + # source://tapioca//lib/tapioca/gem/events.rb#130 + sig do + params( + symbol: ::String, + constant: ::Module, + method: ::UnboundMethod, + node: ::RBI::Method, + signature: T.untyped, + parameters: T::Array[[::Symbol, ::String]] + ).void + end + def initialize(symbol, constant, method, node, signature, parameters); end + + # source://tapioca//lib/tapioca/gem/events.rb#109 + sig { returns(::UnboundMethod) } + def method; end + + # source://tapioca//lib/tapioca/gem/events.rb#112 + sig { returns(::RBI::Method) } + def node; end + + # source://tapioca//lib/tapioca/gem/events.rb#118 + sig { returns(T::Array[[::Symbol, ::String]]) } + def parameters; end + + # source://tapioca//lib/tapioca/gem/events.rb#115 + sig { returns(T.untyped) } + def signature; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/gem/events.rb#57 +class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event + abstract! + + # source://tapioca//lib/tapioca/gem/events.rb#70 + sig { params(symbol: ::String, constant: ::Module).void } + def initialize(symbol, constant); end + + # source://tapioca//lib/tapioca/gem/events.rb#67 + sig { returns(::Module) } + def constant; end + + # source://tapioca//lib/tapioca/gem/events.rb#64 + sig { returns(::String) } + def symbol; end +end + +# source://tapioca//lib/tapioca/gem/pipeline.rb#6 +class Tapioca::Gem::Pipeline + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + include ::Tapioca::SorbetHelper + include ::Tapioca::RBIHelper + + # source://tapioca//lib/tapioca/gem/pipeline.rb#17 + sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void } + def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#48 + sig { returns(::RBI::Tree) } + def compile; end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#119 + sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) } + def constant_in_gem?(name); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#14 + sig { returns(::Tapioca::Gemfile::GemSpec) } + def gem; end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#137 + sig { params(method: ::UnboundMethod).returns(T::Boolean) } + def method_in_gem?(method); end + + # Helpers + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#147 + sig { params(constant: ::Module).returns(T.nilable(::String)) } + def name_of(constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#71 + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } + def push_const(symbol, constant, node); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#61 + sig { params(symbol: ::String, constant: ::BasicObject).void } + def push_constant(symbol, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#66 + sig { params(symbol: ::String, constant: ::Module).void } + def push_foreign_constant(symbol, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#85 + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } + def push_foreign_scope(symbol, constant, node); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#99 + sig do + params( + symbol: ::String, + constant: ::Module, + method: ::UnboundMethod, + node: ::RBI::Method, + signature: T.untyped, + parameters: T::Array[[::Symbol, ::String]] + ).void + end + def push_method(symbol, constant, method, node, signature, parameters); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#78 + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } + def push_scope(symbol, constant, node); end + + # Events handling + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#56 + sig { params(symbol: ::String).void } + def push_symbol(symbol); end + + # Constants and properties filtering + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#106 + sig { params(symbol_name: ::String).returns(T::Boolean) } + def symbol_in_payload?(symbol_name); end + + private + + # source://tapioca//lib/tapioca/gem/pipeline.rb#441 + sig { params(name: ::String).void } + def add_to_alias_namespace(name); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#446 + sig { params(name: ::String).returns(T::Boolean) } + def alias_namespaced?(name); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#244 + sig { params(name: ::String, constant: ::Module).void } + def compile_alias(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#230 + sig { params(symbol: ::String, constant: ::BasicObject).void } + def compile_constant(symbol, constant); end + + # Compiling + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#219 + sig { params(symbol: ::String, constant: ::Module).void } + def compile_foreign_constant(symbol, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#300 + sig { params(name: ::String, constant: ::Module).void } + def compile_module(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#265 + sig { params(name: ::String, value: ::BasicObject).void } + def compile_object(name, value); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#311 + sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) } + def compile_scope(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#325 + sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) } + def compile_superclass(constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#422 + sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } + def defined_in_gem?(constant, strict: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#177 + sig { params(event: ::Tapioca::Gem::Event).void } + def dispatch(event); end + + # Helpers + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#465 + sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } + def generic_name_of(constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#434 + sig { params(constant: ::Module).returns(T::Set[::String]) } + def get_file_candidates(constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#162 + sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } + def load_bootstrap_symbols(gem); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#481 + sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } + def name_of_proxy_target(constant, class_name); end + + # Events handling + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#172 + sig { returns(::Tapioca::Gem::Event) } + def next_event; end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#200 + sig { params(event: ::Tapioca::Gem::ConstantFound).void } + def on_constant(event); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#212 + sig { params(event: ::Tapioca::Gem::NodeAdded).void } + def on_node(event); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#191 + sig { params(event: ::Tapioca::Gem::SymbolFound).void } + def on_symbol(event); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#453 + sig { params(name: ::String).void } + def seen!(name); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#458 + sig { params(name: ::String).returns(T::Boolean) } + def seen?(name); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#393 + sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } + def skip_alias?(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#381 + sig { params(name: ::String, constant: T.anything).returns(T::Boolean) } + def skip_constant?(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#409 + sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } + def skip_foreign_constant?(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#414 + sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } + def skip_module?(name, constant); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#401 + sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) } + def skip_object?(name, constant); end + + # Constants and properties filtering + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#376 + sig { params(name: ::String).returns(T::Boolean) } + def skip_symbol?(name); end +end + +# this looks something like: +# "(eval at /path/to/file.rb:123)" +# and we are just interested in the "/path/to/file.rb" part +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#116 +Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://tapioca//lib/tapioca/gem/pipeline.rb#11 +Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca/gem/events.rb#90 +class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded + # source://tapioca//lib/tapioca/gem/events.rb#97 + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } + def initialize(symbol, constant, node); end + + # source://tapioca//lib/tapioca/gem/events.rb#94 + sig { returns(::RBI::Scope) } + def node; end +end + +# source://tapioca//lib/tapioca/gem/events.rb#13 +class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event + # source://tapioca//lib/tapioca/gem/events.rb#20 + sig { params(symbol: ::String).void } + def initialize(symbol); end + + # source://tapioca//lib/tapioca/gem/events.rb#17 + sig { returns(::String) } + def symbol; end +end + +# source://tapioca//lib/tapioca/helpers/gem_helper.rb#5 +module Tapioca::GemHelper + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#9 + sig { params(app_dir: T.any(::Pathname, ::String), full_gem_path: ::String).returns(T::Boolean) } + def gem_in_app_dir?(app_dir, full_gem_path); end + + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#17 + sig { params(full_gem_path: ::String).returns(T::Boolean) } + def gem_in_bundle_path?(full_gem_path); end + + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#22 + sig { params(full_gem_path: ::String).returns(T::Boolean) } + def gem_in_ruby_path?(full_gem_path); end + + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#27 + sig { params(path: T.any(::Pathname, ::String)).returns(::String) } + def to_realpath(path); end + + private + + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#36 + sig { params(path: T.any(::Pathname, ::String), dir: T.any(::Pathname, ::String)).returns(T::Boolean) } + def path_in_dir?(path, dir); end +end + +# source://tapioca//lib/tapioca/gemfile.rb#7 +class Tapioca::Gemfile + # source://tapioca//lib/tapioca/gemfile.rb#27 + sig { params(excluded_gems: T::Array[::String]).void } + def initialize(excluded_gems); end + + # source://tapioca//lib/tapioca/gemfile.rb#18 + sig { returns(::Bundler::Definition) } + def definition; end + + # source://tapioca//lib/tapioca/gemfile.rb#21 + sig { returns(T::Array[::Tapioca::Gemfile::GemSpec]) } + def dependencies; end + + # source://tapioca//lib/tapioca/gemfile.rb#40 + sig { params(gem_name: ::String).returns(T.nilable(::Tapioca::Gemfile::GemSpec)) } + def gem(gem_name); end + + # source://tapioca//lib/tapioca/gemfile.rb#24 + sig { returns(T::Array[::String]) } + def missing_specs; end + + # source://tapioca//lib/tapioca/gemfile.rb#45 + sig { void } + def require_bundle; end + + private + + # source://tapioca//lib/tapioca/gemfile.rb#92 + sig { returns(::String) } + def dir; end + + # source://tapioca//lib/tapioca/gemfile.rb#54 + sig { returns(::File) } + def gemfile; end + + # source://tapioca//lib/tapioca/gemfile.rb#87 + sig { returns(T::Array[::Symbol]) } + def groups; end + + # source://tapioca//lib/tapioca/gemfile.rb#57 + sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) } + def load_dependencies; end + + # @return [File] + # + # source://tapioca//lib/tapioca/gemfile.rb#54 + def lockfile; end + + # source://tapioca//lib/tapioca/gemfile.rb#68 + sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) } + def materialize_deps; end + + # source://tapioca//lib/tapioca/gemfile.rb#82 + sig { returns(::Bundler::Runtime) } + def runtime; end +end + +# source://tapioca//lib/tapioca/gemfile.rb#96 +class Tapioca::Gemfile::GemSpec + include ::Tapioca::GemHelper + + # source://tapioca//lib/tapioca/gemfile.rb#135 + sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } + def initialize(spec); end + + # source://tapioca//lib/tapioca/gemfile.rb#145 + sig { params(other: ::BasicObject).returns(T::Boolean) } + def ==(other); end + + # source://tapioca//lib/tapioca/gemfile.rb#170 + sig { params(path: ::String).returns(T::Boolean) } + def contains_path?(path); end + + # source://tapioca//lib/tapioca/gemfile.rb#160 + sig { returns(T::Array[::Gem::Dependency]) } + def dependencies; end + + # source://tapioca//lib/tapioca/gemfile.rb#189 + sig { returns(T::Boolean) } + def export_rbi_files?; end + + # source://tapioca//lib/tapioca/gemfile.rb#184 + sig { returns(T::Array[::String]) } + def exported_rbi_files; end + + # source://tapioca//lib/tapioca/gemfile.rb#194 + sig { returns(::RBI::MergeTree) } + def exported_rbi_tree; end + + # source://tapioca//lib/tapioca/gemfile.rb#132 + sig { returns(T::Array[::Pathname]) } + def files; end + + # source://tapioca//lib/tapioca/gemfile.rb#129 + sig { returns(::String) } + def full_gem_path; end + + # source://tapioca//lib/tapioca/gemfile.rb#150 + sig { params(gemfile_dir: ::String).returns(T::Boolean) } + def ignore?(gemfile_dir); end + + # source://tapioca//lib/tapioca/gemfile.rb#155 + sig { returns(::String) } + def name; end + + # source://tapioca//lib/tapioca/gemfile.rb#179 + sig { void } + def parse_yard_docs; end + + # source://tapioca//lib/tapioca/gemfile.rb#165 + sig { returns(::String) } + def rbi_file_name; end + + # source://tapioca//lib/tapioca/gemfile.rb#206 + sig { params(file: ::Pathname).returns(::Pathname) } + def relative_path_for(file); end + + # @return [String] + # + # source://tapioca//lib/tapioca/gemfile.rb#129 + def version; end + + private + + # source://tapioca//lib/tapioca/gemfile.rb#217 + sig { returns(T::Array[::Pathname]) } + def collect_files; end + + # source://tapioca//lib/tapioca/gemfile.rb#232 + sig { returns(T.nilable(T::Boolean)) } + def default_gem?; end + + # source://tapioca//lib/tapioca/gemfile.rb#291 + sig { returns(T::Boolean) } + def gem_ignored?; end + + # source://tapioca//lib/tapioca/gemfile.rb#270 + sig { params(path: ::String).returns(T::Boolean) } + def has_parent_gemspec?(path); end + + # source://tapioca//lib/tapioca/gemfile.rb#237 + sig { returns(::Regexp) } + def require_paths_prefix_matcher; end + + # source://tapioca//lib/tapioca/gemfile.rb#249 + sig { params(file: ::String).returns(::Pathname) } + def resolve_to_ruby_lib_dir(file); end + + # source://tapioca//lib/tapioca/gemfile.rb#263 + sig { returns(::String) } + def version_string; end + + class << self + # source://tapioca//lib/tapioca/gemfile.rb#104 + sig { returns(T::Hash[::String, ::Tapioca::Gemfile::GemSpec]) } + def spec_lookup_by_file_path; end + end +end + +# source://tapioca//lib/tapioca/gemfile.rb#116 +Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca/gemfile.rb#10 +Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } + +# source://tapioca//lib/tapioca/loaders/loader.rb#5 +module Tapioca::Loaders; end + +# source://tapioca//lib/tapioca/loaders/dsl.rb#6 +class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader + # source://tapioca//lib/tapioca/loaders/dsl.rb#38 + sig do + params( + tapioca_path: ::String, + eager_load: T::Boolean, + app_root: ::String, + halt_upon_load_error: T::Boolean + ).void + end + def initialize(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#27 + sig { override.void } + def load; end + + protected + + # source://tapioca//lib/tapioca/loaders/dsl.rb#81 + sig { void } + def load_application; end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#63 + sig { void } + def load_dsl_compilers; end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#48 + sig { void } + def load_dsl_extensions; end + + class << self + # source://tapioca//lib/tapioca/loaders/dsl.rb#15 + sig do + params( + tapioca_path: ::String, + eager_load: T::Boolean, + app_root: ::String, + halt_upon_load_error: T::Boolean + ).void + end + def load_application(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + end +end + +# source://tapioca//lib/tapioca/loaders/gem.rb#6 +class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader + # source://tapioca//lib/tapioca/loaders/gem.rb#49 + sig do + params( + bundle: ::Tapioca::Gemfile, + prerequire: T.nilable(::String), + postrequire: ::String, + default_command: ::String, + halt_upon_load_error: T::Boolean + ).void + end + def initialize(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end + + # source://tapioca//lib/tapioca/loaders/gem.rb#34 + sig { override.void } + def load; end + + protected + + # source://tapioca//lib/tapioca/loaders/gem.rb#80 + sig { params(file: ::String, error: ::LoadError).void } + def explain_failed_require(file, error); end + + # source://tapioca//lib/tapioca/loaders/gem.rb#60 + sig { void } + def require_gem_file; end + + class << self + # source://tapioca//lib/tapioca/loaders/gem.rb#21 + sig do + params( + bundle: ::Tapioca::Gemfile, + prerequire: T.nilable(::String), + postrequire: ::String, + default_command: ::String, + halt_upon_load_error: T::Boolean + ).void + end + def load_application(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end + end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/loaders/loader.rb#6 +class Tapioca::Loaders::Loader + include ::Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + include ::Tapioca::CliHelper + include ::Tapioca::GemHelper + extend ::Thor::Base::ClassMethods + extend ::Thor::Invocation::ClassMethods + + abstract! + + # @abstract + # + # source://tapioca//lib/tapioca/loaders/loader.rb#17 + sig { abstract.void } + def load; end + + private + + # source://tapioca//lib/tapioca/loaders/loader.rb#198 + sig { void } + def eager_load_rails_app; end + + # @return [Array<T.class_of(Rails::Engine)>] + # + # source://tapioca//lib/tapioca/loaders/loader.rb#169 + def engines; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#29 + sig do + params( + gemfile: ::Tapioca::Gemfile, + initialize_file: T.nilable(::String), + require_file: T.nilable(::String), + halt_upon_load_error: T::Boolean + ).void + end + def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#127 + sig { void } + def load_engines_in_classic_mode; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#105 + sig { void } + def load_engines_in_zeitwerk_mode; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#49 + sig do + params( + environment_load: T::Boolean, + eager_load: T::Boolean, + app_root: ::String, + halt_upon_load_error: T::Boolean + ).void + end + def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#80 + sig { void } + def load_rails_engines; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#219 + sig { params(file: T.nilable(::String)).void } + def require_helper(file); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#94 + def run_initializers; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#183 + sig { params(path: ::String).void } + def safe_require(path); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#190 + sig { void } + def silence_deprecations; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#152 + sig { params(blk: T.proc.void).void } + def with_rails_application(&blk); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#145 + sig { returns(T::Boolean) } + def zeitwerk_mode?; end +end + +# source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#5 +module Tapioca::RBIFilesHelper + requires_ancestor { Tapioca::SorbetHelper } + requires_ancestor { Thor::Shell } + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#48 + sig do + params( + index: ::RBI::Index, + shim_rbi_dir: ::String, + todo_rbi_file: ::String + ).returns(T::Hash[::String, T::Array[::RBI::Node]]) + end + def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#13 + sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void } + def index_rbi(index, kind, file); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#25 + sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void } + def index_rbis(index, kind, dir, number_of_workers:); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#65 + sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) } + def location_to_payload_url(loc, path_prefix:); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#86 + sig do + params( + command: ::String, + gem_dir: ::String, + dsl_dir: ::String, + auto_strictness: T::Boolean, + gems: T::Array[::Tapioca::Gemfile::GemSpec], + compilers: T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)] + ).void + end + def validate_rbi_files(command:, gem_dir:, dsl_dir:, auto_strictness:, gems: T.unsafe(nil), compilers: T.unsafe(nil)); end + + private + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#209 + sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) } + def extract_empty_scopes(nodes); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#214 + sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } + def extract_methods_and_attrs(nodes); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#224 + sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) } + def extract_mixins(nodes); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#234 + sig do + params( + nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] + ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) + end + def extract_nodes_with_sigs(nodes); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#202 + sig do + params( + nodes: T::Array[::RBI::Node], + shim_rbi_dir: ::String, + todo_rbi_file: ::String + ).returns(T::Array[::RBI::Node]) + end + def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#266 + sig { params(path: ::String).returns(::String) } + def gem_name_from_rbi_path(path); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#155 + sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void } + def parse_and_index_files(index, files, number_of_workers:); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#171 + sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) } + def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#239 + sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void } + def update_gem_rbis_strictnesses(errors, gem_dir); end +end + +# source://tapioca//lib/tapioca/rbi_formatter.rb#5 +class Tapioca::RBIFormatter < ::RBI::Formatter + # source://tapioca//lib/tapioca/rbi_formatter.rb#22 + sig { params(file: ::RBI::File).void } + def write_empty_body_comment!(file); end + + # source://tapioca//lib/tapioca/rbi_formatter.rb#15 + sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void } + def write_header!(file, command, reason: T.unsafe(nil)); end +end + +# source://tapioca//lib/tapioca/helpers/rbi_helper.rb#5 +module Tapioca::RBIHelper + include ::Tapioca::SorbetHelper + extend ::Tapioca::SorbetHelper + extend ::Tapioca::RBIHelper + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#91 + sig { params(type: ::String).returns(::String) } + def as_nilable_type(type); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72 + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_block_param(name, type:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#62 + sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } + def create_kw_opt_param(name, type:, default:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#57 + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_kw_param(name, type:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#67 + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_kw_rest_param(name, type:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#47 + sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } + def create_opt_param(name, type:, default:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#42 + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_param(name, type:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#52 + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_rest_param(name, type:); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#77 + sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) } + def create_typed_param(param, type); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#82 + sig { params(sig_string: ::String).returns(::String) } + def sanitize_signature_types(sig_string); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 + sig { params(name: ::String).returns(T::Boolean) } + def valid_method_name?(name); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#114 + sig { params(name: ::String).returns(T::Boolean) } + def valid_parameter_name?(name); end + + class << self + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#23 + sig do + params( + type: ::String, + variance: ::Symbol, + fixed: T.nilable(::String), + upper: T.nilable(::String), + lower: T.nilable(::String) + ).returns(::String) + end + def serialize_type_variable(type, variance, fixed, upper, lower); end + end +end + +# source://tapioca//lib/tapioca/repo_index.rb#5 +class Tapioca::RepoIndex + # source://tapioca//lib/tapioca/repo_index.rb#26 + sig { void } + def initialize; end + + # source://tapioca//lib/tapioca/repo_index.rb#31 + sig { params(gem_name: ::String).void } + def <<(gem_name); end + + # source://tapioca//lib/tapioca/repo_index.rb#36 + sig { returns(T::Enumerable[::String]) } + def gems; end + + # source://tapioca//lib/tapioca/repo_index.rb#41 + sig { params(gem_name: ::String).returns(T::Boolean) } + def has_gem?(gem_name); end + + class << self + # source://tapioca//lib/tapioca/repo_index.rb#18 + sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) } + def from_hash(hash); end + + # source://tapioca//lib/tapioca/repo_index.rb#13 + sig { params(json: ::String).returns(Tapioca::RepoIndex) } + def from_json(json); end + end +end + +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#5 +module Tapioca::Runtime; end + +# This module should only be included when running versions of Ruby +# older than 3.2. Because the Class#attached_object method is not +# available, it implements finding the attached class of a singleton +# class by iterating through ObjectSpace. +module Tapioca::Runtime::AttachedClassOf + # source://tapioca//lib/tapioca/runtime/attached_class_of_32.rb#14 + sig { params(singleton_class: ::Class).returns(T.nilable(::Module)) } + def attached_class_of(singleton_class); end +end + +# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#6 +class Tapioca::Runtime::DynamicMixinCompiler + include ::Tapioca::Runtime::AttachedClassOf + include ::Tapioca::Runtime::Reflection + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#20 + sig { params(constant: ::Module).void } + def initialize(constant); end + + # @return [Array<Symbol>] + # + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 + def class_attribute_predicates; end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 + sig { returns(T::Array[::Symbol]) } + def class_attribute_readers; end + + # @return [Array<Symbol>] + # + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 + def class_attribute_writers; end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#137 + sig { params(tree: ::RBI::Tree).void } + def compile_class_attributes(tree); end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#180 + sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) } + def compile_mixes_in_class_methods(tree); end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 + sig { returns(T::Array[::Module]) } + def dynamic_extends; end + + # @return [Array<Module>] + # + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 + def dynamic_includes; end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#132 + sig { returns(T::Boolean) } + def empty_attributes?; end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#222 + sig { params(qualified_mixin_name: ::String).returns(T::Boolean) } + def filtered_mixin?(qualified_mixin_name); end + + # @return [Array<Symbol>] + # + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 + def instance_attribute_predicates; end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 + sig { returns(T::Array[::Symbol]) } + def instance_attribute_readers; end + + # @return [Array<Symbol>] + # + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 + def instance_attribute_writers; end + + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#215 + sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) } + def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end +end + +# This class is responsible for storing and looking up information related to generic types. +# +# The class stores 2 different kinds of data, in two separate lookup tables: +# 1. a lookup of generic type instances by name: `@generic_instances` +# 2. a lookup of type variable serializer by constant and type variable +# instance: `@type_variables` +# +# By storing the above data, we can cheaply query each constant against this registry +# to see if it declares any generic type variables. This becomes a simple lookup in the +# `@type_variables` hash table with the given constant. +# +# If there is no entry, then we can cheaply know that we can skip generic type +# information generation for this type. +# +# On the other hand, if we get a result, then the result will be a hash of type +# variable to type variable serializers. This allows us to associate type variables +# to the constant names that represent them, easily. +# +# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#23 +module Tapioca::Runtime::GenericTypeRegistry + class << self + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 + sig { params(instance: ::Object).returns(T::Boolean) } + def generic_type_instance?(instance); end + + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#85 + sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) } + def lookup_type_variables(constant); end + + # This method is responsible for building the name of the instantiated concrete type + # and cloning the given constant so that we can return a type that is the same + # as the current type but is a different instance and has a different name method. + # + # We cache those cloned instances by their name in `@generic_instances`, so that + # we don't keep instantiating a new type every single time it is referenced. + # For example, `[Foo[Integer], Foo[Integer], Foo[Integer], Foo[String]]` will only + # result in 2 clones (1 for `Foo[Integer]` and another for `Foo[String]`) and + # 2 hash lookups (for the other two `Foo[Integer]`s). + # + # This method returns the created or cached clone of the constant. + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#65 + sig { params(constant: T.untyped, types: T.untyped).returns(::Module) } + def register_type(constant, types); end + + # This method is called from intercepted calls to `type_member` and `type_template`. + # We get passed all the arguments to those methods, as well as the `T::Types::TypeVariable` + # instance generated by the Sorbet defined `type_member`/`type_template` call on `T::Generic`. + # + # This method creates a `String` with that data and stores it in the + # `@type_variables` lookup table, keyed by the `constant` and `type_variable`. + # + # Finally, the original `type_variable` is returned from this method, so that the caller + # can return it from the original methods as well. + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#104 + sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void } + def register_type_variable(constant, type_variable); end + + private + + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#113 + sig { params(constant: ::Module, name: ::String).returns(::Module) } + def create_generic_type(constant, name); end + + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#155 + sig { params(constant: T::Class[T.anything]).returns(T::Class[T.anything]) } + def create_safe_subclass(constant); end + + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#182 + sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) } + def lookup_or_initialize_type_variables(constant); end + end +end + +# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#34 +class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#38 + sig { params(raw_type: ::Module, underlying_type: ::Module).void } + def initialize(raw_type, underlying_type); end + + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45 + sig { params(obj: T.untyped).returns(T::Boolean) } + def valid?(obj); end +end + +module Tapioca::Runtime::Reflection + include ::Tapioca::Runtime::AttachedClassOf + extend ::Tapioca::Runtime::AttachedClassOf + extend ::Tapioca::Runtime::Reflection + + # source://tapioca//lib/tapioca/runtime/reflection.rb#196 + sig { params(constant: ::Module).returns(T.untyped) } + def abstract_type_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#77 + sig { params(constant: ::Module).returns(T::Array[::Module]) } + def ancestors_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#92 + sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) } + def are_equal?(object, other); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#56 + sig { params(object: ::BasicObject).returns(T::Class[T.anything]) } + def class_of(object); end + + # @param constant [BasicObject] + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#38 + def constant_defined?(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#49 + sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) } + def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#61 + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def constants_of(constant); end + + # Returns an array with all classes that are < than the supplied class. + # + # class C; end + # descendants_of(C) # => [] + # + # class B < C; end + # descendants_of(C) # => [B] + # + # class A < B; end + # descendants_of(C) # => [B, A] + # + # class D < C; end + # descendants_of(C) # => [B, A, D] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#167 + sig do + type_parameters(:U) + .params( + klass: T.all(T.type_parameter(:U), T::Class[T.anything]) + ).returns(T::Array[T.type_parameter(:U)]) + end + def descendants_of(klass); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#189 + sig { params(constant: ::Module).returns(T::Set[::String]) } + def file_candidates_for(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#202 + sig { params(constant: ::Module).returns(T::Boolean) } + def final_module?(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#112 + sig { params(constant: ::Module).returns(T::Array[::Module]) } + def inherited_ancestors_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#145 + sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } + def method_of(constant, method); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#66 + sig { params(constant: ::Module).returns(T.nilable(::String)) } + def name_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#140 + sig { params(type: ::T::Types::Base).returns(::String) } + def name_of_type(type); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#87 + sig { params(object: ::BasicObject).returns(::Integer) } + def object_id_of(object); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#107 + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def private_instance_methods_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#102 + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def protected_instance_methods_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#97 + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def public_instance_methods_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#121 + sig { params(constant: ::Module).returns(T.nilable(::String)) } + def qualified_name_of(constant); end + + # Examines the call stack to identify the closest location where a "require" is performed + # by searching for the label "<top (required)>". If none is found, it returns the location + # labeled "<main>", which is the original call site. + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#179 + sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) } + def resolve_loc(locations); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#207 + sig { params(constant: ::Module).returns(T::Boolean) } + def sealed_module?(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#133 + sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } + def signature_of(method); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#72 + sig { params(constant: ::Module).returns(T::Class[T.anything]) } + def singleton_class_of(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#82 + sig { params(constant: T::Class[T.anything]).returns(T.nilable(T::Class[T.anything])) } + def superclass_of(constant); end + + private + + # source://tapioca//lib/tapioca/runtime/reflection.rb#244 + sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) } + def child_module_for_parent_with_name(parent, name); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#255 + sig { params(method: ::UnboundMethod).returns(T::Boolean) } + def method_defined_by_forwardable_module?(method); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#230 + sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + def methods_for(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#214 + sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + def relevant_methods_for(constant); end +end + +# source://tapioca//lib/tapioca/runtime/reflection.rb#25 +Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#21 +Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#22 +Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#28 +Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#32 +Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#23 +Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#27 +Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#31 +Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#30 +Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#29 +Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#35 +Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#24 +Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/reflection.rb#26 +Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) + +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#6 +module Tapioca::Runtime::Trackers + class << self + # source://tapioca//lib/tapioca/runtime/trackers.rb#34 + sig { void } + def disable_all!; end + + # source://tapioca//lib/tapioca/runtime/trackers.rb#39 + sig { params(tracker: ::Tapioca::Runtime::Trackers::Tracker).void } + def register_tracker(tracker); end + + # source://tapioca//lib/tapioca/runtime/trackers.rb#21 + sig do + type_parameters(:Return) + .params( + blk: T.proc.returns(T.type_parameter(:Return)) + ).returns(T.type_parameter(:Return)) + end + def with_trackers_enabled(&blk); end + end +end + +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#7 +module Tapioca::Runtime::Trackers::Autoload + extend ::Tapioca::Runtime::Trackers::Tracker + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#19 + sig { void } + def eager_load_all!; end + + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#31 + sig { params(constant_name: ::String).void } + def register(constant_name); end + + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#42 + sig do + type_parameters(:Result) + .params( + block: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def with_disabled_exits(&block); end + end +end + +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#11 +Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc) + +# Registers a TracePoint immediately upon load to track points at which +# classes and modules are opened for definition. This is used to track +# correspondence between classes/modules and files, as this information isn't +# available in the ruby runtime without extra accounting. +module Tapioca::Runtime::Trackers::ConstantDefinition + extend ::Tapioca::Runtime::Trackers::Tracker + extend ::Tapioca::Runtime::AttachedClassOf + extend ::Tapioca::Runtime::Reflection + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#61 + def build_constant_location(tp, locations); end + + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#55 + def disable!; end + + # Returns the files in which this class or module was opened. Doesn't know + # about situations where the class was opened prior to +require+ing, + # or where metaprogramming was used via +eval+, etc. + # + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#71 + def files_for(klass); end + + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#75 + def locations_for(klass); end + end +end + +module Tapioca::Runtime::Trackers::Mixin + extend ::Tapioca::Runtime::Trackers::Tracker + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#56 + sig do + params( + mixin: ::Module + ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) + end + def constants_with_mixin(mixin); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#61 + sig do + params( + mixin: ::Module, + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, + constant: ::Module + ).returns(T.nilable(::String)) + end + def mixin_location(mixin, mixin_type, constant); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#35 + sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void } + def register(constant, mixin, mixin_type); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#43 + def resolve_to_attached_class(constant, mixin, mixin_type); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#30 + sig do + type_parameters(:Result) + .params( + block: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def with_disabled_registration(&block); end + + private + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#76 + sig do + params( + mixin: ::Module + ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) + end + def find_or_initialize_mixin_lookup(mixin); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#68 + sig do + params( + constant: ::Module, + mixin: ::Module, + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, + location: ::String + ).void + end + def register_with_location(constant, mixin, mixin_type, location); end + end +end + +class Tapioca::Runtime::Trackers::Mixin::Type < ::T::Enum + enums do + Prepend = new + Include = new + Extend = new + end +end + +# source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#7 +module Tapioca::Runtime::Trackers::RequiredAncestor + extend ::Tapioca::Runtime::Trackers::Tracker + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#15 + sig { params(requiring: ::T::Helpers, block: T.proc.void).void } + def register(requiring, block); end + + # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#23 + sig { params(mod: ::Module).returns(T::Array[T.proc.void]) } + def required_ancestors_blocks_by(mod); end + + # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#28 + sig { params(mod: ::Module).returns(T::Array[T.untyped]) } + def required_ancestors_by(mod); end + end +end + +# @abstract Subclasses must implement the `abstract` methods below. +module Tapioca::Runtime::Trackers::Tracker + abstract! + + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#26 + sig { void } + def disable!; end + + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#30 + def enabled?; end + + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#34 + def with_disabled_tracker(&block); end + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#17 + sig { params(base: T.all(::Module, ::Tapioca::Runtime::Trackers::Tracker)).void } + def extended(base); end + end +end + +# source://tapioca//lib/tapioca.rb#33 +Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#32 +Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 +module Tapioca::SorbetHelper + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#34 + sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) } + def sorbet(*sorbet_args); end + + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#39 + sig { returns(::String) } + def sorbet_path; end + + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#46 + sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) } + def sorbet_supports?(feature, version: T.unsafe(nil)); end +end + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#24 +Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#13 +Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname) + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 +Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#8 +Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#20 +Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#22 +Tapioca::SorbetHelper::SPOOM_CONTEXT = T.let(T.unsafe(nil), Spoom::Context) + +# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#5 +module Tapioca::Static; end + +# source://tapioca//lib/tapioca/static/requires_compiler.rb#6 +class Tapioca::Static::RequiresCompiler + # source://tapioca//lib/tapioca/static/requires_compiler.rb#10 + sig { params(sorbet_path: ::String).void } + def initialize(sorbet_path); end + + # source://tapioca//lib/tapioca/static/requires_compiler.rb#15 + sig { returns(::String) } + def compile; end + + private + + # source://tapioca//lib/tapioca/static/requires_compiler.rb#29 + sig { params(config: ::Spoom::Sorbet::Config).returns(T::Array[::String]) } + def collect_files(config); end + + # source://tapioca//lib/tapioca/static/requires_compiler.rb#44 + sig { params(file_path: ::String).returns(T::Enumerable[::String]) } + def collect_requires(file_path); end + + # source://tapioca//lib/tapioca/static/requires_compiler.rb#51 + sig { params(config: ::Spoom::Sorbet::Config, file_path: ::Pathname).returns(T::Boolean) } + def file_ignored_by_sorbet?(config, file_path); end + + # source://tapioca//lib/tapioca/static/requires_compiler.rb#80 + sig { params(path: ::Pathname).returns(T::Array[::String]) } + def path_parts(path); end +end + +# source://tapioca//lib/tapioca/static/symbol_loader.rb#6 +module Tapioca::Static::SymbolLoader + extend ::Tapioca::SorbetHelper + extend ::Tapioca::Runtime::AttachedClassOf + extend ::Tapioca::Runtime::Reflection + + class << self + # source://tapioca//lib/tapioca/static/symbol_loader.rb#23 + sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } + def engine_symbols(gem); end + + # source://tapioca//lib/tapioca/static/symbol_loader.rb#40 + sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } + def gem_symbols(gem); end + + # source://tapioca//lib/tapioca/static/symbol_loader.rb#13 + sig { returns(T::Set[::String]) } + def payload_symbols; end + + # source://tapioca//lib/tapioca/static/symbol_loader.rb#45 + sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) } + def symbols_from_paths(paths); end + + private + + # @return [Array<T.class_of(Rails::Engine)>] + # + # source://sorbet-runtime/0.5.11089/lib/types/private/methods/_methods.rb#255 + def engines(*args, **_arg1, &blk); end + + # source://tapioca//lib/tapioca/static/symbol_loader.rb#74 + sig { params(input: ::String, table_type: ::String).returns(::String) } + def symbol_table_json_from(input, table_type: T.unsafe(nil)); end + end +end + +# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#6 +class Tapioca::Static::SymbolTableParser + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#30 + sig { void } + def initialize; end + + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#65 + sig { params(name: ::String).returns(::String) } + def fully_qualified_name(name); end + + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#36 + sig { params(object: T::Hash[::String, T.untyped]).void } + def parse_object(object); end + + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#27 + sig { returns(T::Set[::String]) } + def symbols; end + + class << self + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#15 + sig { params(json_string: ::String).returns(T::Set[::String]) } + def parse_json(json_string); end + end +end + +# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 +Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca.rb#35 +Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca.rb#34 +Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#137 +class Tapioca::TypeVariable < ::T::Types::TypeVariable + # @return [TypeVariable] a new instance of TypeVariable + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#138 + def initialize(name, variance); end + + # Returns the value of attribute name. + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#143 + def name; end +end + +# This is subclassing from `Module` so that instances of this type will be modules. +# The reason why we want that is because that means those instances will automatically +# get bound to the constant names they are assigned to by Ruby. As a result, we don't +# need to do any matching of constants to type variables to bind their names, Ruby will +# do that automatically for us and we get the `name` method for free from `Module`. +# +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#151 +class Tapioca::TypeVariableModule < ::Module + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#177 + sig do + params( + context: ::Module, + type: ::Tapioca::TypeVariableModule::Type, + variance: ::Symbol, + fixed: T.untyped, + lower: T.untyped, + upper: T.untyped, + bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped])) + ).void + end + def initialize(context, type, variance, fixed, lower, upper, bounds_proc); end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#218 + sig { returns(::Tapioca::TypeVariable) } + def coerce_to_type_variable; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#198 + sig { returns(T::Boolean) } + def fixed?; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#192 + sig { returns(T.nilable(::String)) } + def name; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#203 + sig { returns(::String) } + def serialize; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#163 + sig { returns(::Tapioca::TypeVariableModule::Type) } + def type; end + + private + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#238 + sig { returns(T::Hash[::Symbol, T.untyped]) } + def bounds; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#228 + sig do + params( + fixed: T.untyped, + lower: T.untyped, + upper: T.untyped + ).returns(T.proc.returns(T::Hash[::Symbol, T.untyped])) + end + def build_bounds_proc(fixed, lower, upper); end +end + +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#154 +class Tapioca::TypeVariableModule::Type < ::T::Enum + enums do + Member = new + Template = new + HasAttachedClass = new + end +end + +# source://tapioca//lib/tapioca/version.rb#5 +Tapioca::VERSION = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/source_uri.rb#6 +module URI + include ::URI::RFC2396_REGEXP +end + +# source://tapioca//lib/tapioca/helpers/source_uri.rb#7 +class URI::Source < ::URI::File + # source://tapioca//lib/tapioca/helpers/source_uri.rb#58 + sig { params(v: T.nilable(::String)).returns(T::Boolean) } + def check_host(v); end + + # source://uri/0.12.1/uri/generic.rb#243 + def gem_name; end + + # source://tapioca//lib/tapioca/helpers/source_uri.rb#25 + sig { returns(T.nilable(::String)) } + def gem_version; end + + # source://uri/0.12.1/uri/generic.rb#283 + def line_number; end + + # source://tapioca//lib/tapioca/helpers/source_uri.rb#51 + sig { params(v: T.nilable(::String)).void } + def set_path(v); end + + # source://tapioca//lib/tapioca/helpers/source_uri.rb#70 + sig { returns(::String) } + def to_s; end + + class << self + # source://tapioca//lib/tapioca/helpers/source_uri.rb#38 + sig do + params( + gem_name: ::String, + gem_version: T.nilable(::String), + path: ::String, + line_number: T.nilable(::String) + ).returns(::URI::Source) + end + def build(gem_name:, gem_version:, path:, line_number:); end + end +end + +# source://tapioca//lib/tapioca/helpers/source_uri.rb#10 +URI::Source::COMPONENT = T.let(T.unsafe(nil), Array) + +class URI::WSS < ::URI::WS; end diff --git a/ruby-client-sdk/sorbet/rbi/gems/thor@1.3.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/thor@1.3.0.rbi new file mode 100755 index 000000000..9ed8f62fc --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/thor@1.3.0.rbi @@ -0,0 +1,4345 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `thor` gem. +# Please instead update this file by running `bin/tapioca gem thor`. + +# source://thor//lib/thor/shell/lcs_diff.rb#1 +module LCSDiff + protected + + # Overwrite show_diff to show diff with colors if Diff::LCS is + # available. + # + # source://thor//lib/thor/shell/lcs_diff.rb#6 + def show_diff(destination, content); end + + private + + # Check if Diff::LCS is loaded. If it is, use it to create pretty output + # for diff. + # + # @return [Boolean] + # + # source://thor//lib/thor/shell/lcs_diff.rb#37 + def diff_lcs_loaded?; end + + # source://thor//lib/thor/shell/lcs_diff.rb#21 + def output_diff_line(diff); end +end + +# source://thor//lib/thor/command.rb#1 +class Thor + include ::Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + extend ::Thor::Base::ClassMethods + extend ::Thor::Invocation::ClassMethods + + # source://thor//lib/thor.rb#652 + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + class << self + # Adds and declares option group for required at least one of options in the + # block of arguments. You can declare options as the outside of the block. + # + # If :for is given as option, it allows you to change the options from + # a previous defined command. + # + # ==== Parameters + # Array[Thor::Option.name] + # options<Hash>:: :for is applied for previous defined command. + # + # ==== Examples + # + # at_least_one do + # option :one + # option :two + # end + # + # Or + # + # option :one + # option :two + # at_least_one :one, :two + # + # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError + # will be raised. + # + # You can use at_least_one and exclusive at the same time. + # + # exclusive do + # at_least_one do + # option :one + # option :two + # end + # end + # + # Then it is required either only one of "--one" or "--two". + # + # source://thor//lib/thor.rb#246 + def at_least_one(*args, &block); end + + # Extend check unknown options to accept a hash of conditions. + # + # === Parameters + # options<Hash>: A hash containing :only and/or :except keys + # + # source://thor//lib/thor.rb#350 + def check_unknown_options!(options = T.unsafe(nil)); end + + # Overwrite check_unknown_options? to take subcommands and options into account. + # + # @return [Boolean] + # + # source://thor//lib/thor.rb#363 + def check_unknown_options?(config); end + + # Prints help information for the given command. + # + # ==== Parameters + # shell<Thor::Shell> + # command_name<String> + # + # source://thor//lib/thor.rb#258 + def command_help(shell, command_name); end + + # Sets the default command when thor is executed without an explicit command to be called. + # + # ==== Parameters + # meth<Symbol>:: name of the default command + # + # source://thor//lib/thor.rb#21 + def default_command(meth = T.unsafe(nil)); end + + # Sets the default command when thor is executed without an explicit command to be called. + # + # ==== Parameters + # meth<Symbol>:: name of the default command + # + # source://thor//lib/thor.rb#21 + def default_task(meth = T.unsafe(nil)); end + + # source://thor//lib/thor/base.rb#26 + def deprecation_warning(message); end + + # Defines the usage and the description of the next command. + # + # ==== Parameters + # usage<String> + # description<String> + # options<String> + # + # source://thor//lib/thor.rb#54 + def desc(usage, description, options = T.unsafe(nil)); end + + # Disable the check for required options for the given commands. + # This is useful if you have a command that does not need the required options + # to work, like help. + # + # ==== Parameters + # Symbol ...:: A list of commands that should be affected. + # + # source://thor//lib/thor.rb#434 + def disable_required_check!(*command_names); end + + # @return [Boolean] + # + # source://thor//lib/thor.rb#438 + def disable_required_check?(command); end + + # Adds and declares option group for exclusive options in the + # block and arguments. You can declare options as the outside of the block. + # + # If :for is given as option, it allows you to change the options from + # a previous defined command. + # + # ==== Parameters + # Array[Thor::Option.name] + # options<Hash>:: :for is applied for previous defined command. + # + # ==== Examples + # + # exclusive do + # option :one + # option :two + # end + # + # Or + # + # option :one + # option :two + # exclusive :one, :two + # + # If you give "--one" and "--two" at the same time ExclusiveArgumentsError + # will be raised. + # + # source://thor//lib/thor.rb#203 + def exclusive(*args, &block); end + + # Prints help information for this class. + # + # ==== Parameters + # shell<Thor::Shell> + # + # source://thor//lib/thor.rb#288 + def help(shell, subcommand = T.unsafe(nil)); end + + # Defines the long description of the next command. + # + # Long description is by default indented, line-wrapped and repeated whitespace merged. + # In order to print long description verbatim, with indentation and spacing exactly + # as found in the code, use the +wrap+ option + # + # long_desc 'your very long description', wrap: false + # + # ==== Parameters + # long description<String> + # options<Hash> + # + # source://thor//lib/thor.rb#78 + def long_desc(long_description, options = T.unsafe(nil)); end + + # Maps an input to a command. If you define: + # + # map "-T" => "list" + # + # Running: + # + # thor -T + # + # Will invoke the list command. + # + # ==== Parameters + # Hash[String|Array => Symbol]:: Maps the string or the strings in the array to the given command. + # + # source://thor//lib/thor.rb#101 + def map(mappings = T.unsafe(nil), **kw); end + + # Adds and declares option group for required at least one of options in the + # block of arguments. You can declare options as the outside of the block. + # + # If :for is given as option, it allows you to change the options from + # a previous defined command. + # + # ==== Parameters + # Array[Thor::Option.name] + # options<Hash>:: :for is applied for previous defined command. + # + # ==== Examples + # + # at_least_one do + # option :one + # option :two + # end + # + # Or + # + # option :one + # option :two + # at_least_one :one, :two + # + # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError + # will be raised. + # + # You can use at_least_one and exclusive at the same time. + # + # exclusive do + # at_least_one do + # option :one + # option :two + # end + # end + # + # Then it is required either only one of "--one" or "--two". + # + # source://thor//lib/thor.rb#246 + def method_at_least_one(*args, &block); end + + # Adds and declares option group for exclusive options in the + # block and arguments. You can declare options as the outside of the block. + # + # If :for is given as option, it allows you to change the options from + # a previous defined command. + # + # ==== Parameters + # Array[Thor::Option.name] + # options<Hash>:: :for is applied for previous defined command. + # + # ==== Examples + # + # exclusive do + # option :one + # option :two + # end + # + # Or + # + # option :one + # option :two + # exclusive :one, :two + # + # If you give "--one" and "--two" at the same time ExclusiveArgumentsError + # will be raised. + # + # source://thor//lib/thor.rb#203 + def method_exclusive(*args, &block); end + + # Adds an option to the set of method options. If :for is given as option, + # it allows you to change the options from a previous defined command. + # + # def previous_command + # # magic + # end + # + # method_option :foo, :for => :previous_command + # + # def next_command + # # magic + # end + # + # ==== Parameters + # name<Symbol>:: The name of the argument. + # options<Hash>:: Described below. + # + # ==== Options + # :desc - Description for the argument. + # :required - If the argument is required or not. + # :default - Default value for this argument. It cannot be required and have default values. + # :aliases - Aliases for this option. + # :type - The type of the argument, can be :string, :hash, :array, :numeric or :boolean. + # :banner - String to show on usage notes. + # :hide - If you want to hide this option from the help. + # + # source://thor//lib/thor.rb#163 + def method_option(name, options = T.unsafe(nil)); end + + # Declares the options for the next command to be declared. + # + # ==== Parameters + # Hash[Symbol => Object]:: The hash key is the name of the option and the value + # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric + # or :required (string). If you give a value, the type of the value is used. + # + # source://thor//lib/thor.rb#129 + def method_options(options = T.unsafe(nil)); end + + # Adds an option to the set of method options. If :for is given as option, + # it allows you to change the options from a previous defined command. + # + # def previous_command + # # magic + # end + # + # method_option :foo, :for => :previous_command + # + # def next_command + # # magic + # end + # + # ==== Parameters + # name<Symbol>:: The name of the argument. + # options<Hash>:: Described below. + # + # ==== Options + # :desc - Description for the argument. + # :required - If the argument is required or not. + # :default - Default value for this argument. It cannot be required and have default values. + # :aliases - Aliases for this option. + # :type - The type of the argument, can be :string, :hash, :array, :numeric or :boolean. + # :banner - String to show on usage notes. + # :hide - If you want to hide this option from the help. + # + # source://thor//lib/thor.rb#163 + def option(name, options = T.unsafe(nil)); end + + # Declares the options for the next command to be declared. + # + # ==== Parameters + # Hash[Symbol => Object]:: The hash key is the name of the option and the value + # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric + # or :required (string). If you give a value, the type of the value is used. + # + # source://thor//lib/thor.rb#129 + def options(options = T.unsafe(nil)); end + + # Allows for custom "Command" package naming. + # + # === Parameters + # name<String> + # options<Hash> + # + # source://thor//lib/thor.rb#12 + def package_name(name, _ = T.unsafe(nil)); end + + # Returns commands ready to be printed. + # + # source://thor//lib/thor.rb#309 + def printable_commands(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # Returns commands ready to be printed. + # + # source://thor//lib/thor.rb#309 + def printable_tasks(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # Registers another Thor subclass as a command. + # + # ==== Parameters + # klass<Class>:: Thor subclass to register + # command<String>:: Subcommand name to use + # usage<String>:: Short usage for the subcommand + # description<String>:: Description for the subcommand + # + # source://thor//lib/thor.rb#37 + def register(klass, subcommand_name, usage, description, options = T.unsafe(nil)); end + + # Stop parsing of options as soon as an unknown option or a regular + # argument is encountered. All remaining arguments are passed to the command. + # This is useful if you have a command that can receive arbitrary additional + # options, and where those additional options should not be handled by + # Thor. + # + # ==== Example + # + # To better understand how this is useful, let's consider a command that calls + # an external command. A user may want to pass arbitrary options and + # arguments to that command. The command itself also accepts some options, + # which should be handled by Thor. + # + # class_option "verbose", :type => :boolean + # stop_on_unknown_option! :exec + # check_unknown_options! :except => :exec + # + # desc "exec", "Run a shell command" + # def exec(*args) + # puts "diagnostic output" if options[:verbose] + # Kernel.exec(*args) + # end + # + # Here +exec+ can be called with +--verbose+ to get diagnostic output, + # e.g.: + # + # $ thor exec --verbose echo foo + # diagnostic output + # foo + # + # But if +--verbose+ is given after +echo+, it is passed to +echo+ instead: + # + # $ thor exec echo --verbose foo + # --verbose foo + # + # ==== Parameters + # Symbol ...:: A list of commands that should be affected. + # + # source://thor//lib/thor.rb#420 + def stop_on_unknown_option!(*command_names); end + + # @return [Boolean] + # + # source://thor//lib/thor.rb#424 + def stop_on_unknown_option?(command); end + + # source://thor//lib/thor.rb#329 + def subcommand(subcommand, subcommand_class); end + + # source://thor//lib/thor.rb#325 + def subcommand_classes; end + + # source://thor//lib/thor.rb#320 + def subcommands; end + + # source://thor//lib/thor.rb#329 + def subtask(subcommand, subcommand_class); end + + # source://thor//lib/thor.rb#320 + def subtasks; end + + # Prints help information for the given command. + # + # ==== Parameters + # shell<Thor::Shell> + # command_name<String> + # + # source://thor//lib/thor.rb#258 + def task_help(shell, command_name); end + + protected + + # The banner for this class. You can customize it if you are invoking the + # thor class by another ways which is not the Thor::Runner. It receives + # the command that is going to be invoked and a boolean which indicates if + # the namespace should be displayed as arguments. + # + # source://thor//lib/thor.rb#535 + def banner(command, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://thor//lib/thor.rb#541 + def baseclass; end + + # source://thor//lib/thor.rb#549 + def create_command(meth); end + + # source://thor//lib/thor.rb#549 + def create_task(meth); end + + # help command has the required check disabled by default. + # + # source://thor//lib/thor.rb#467 + def disable_required_check; end + + # The method responsible for dispatching given the args. + # + # @yield [instance] + # + # source://thor//lib/thor.rb#494 + def dispatch(meth, given_args, given_opts, config); end + + # source://thor//lib/thor.rb#545 + def dynamic_command_class; end + + # this is the logic that takes the command name passed in by the user + # and determines whether it is an unambiguous substrings of a command or + # alias name. + # + # source://thor//lib/thor.rb#615 + def find_command_possibilities(meth); end + + # this is the logic that takes the command name passed in by the user + # and determines whether it is an unambiguous substrings of a command or + # alias name. + # + # source://thor//lib/thor.rb#615 + def find_task_possibilities(meth); end + + # source://thor//lib/thor.rb#575 + def initialize_added; end + + # Returns this class at least one of required options array set. + # + # ==== Returns + # Array[Array[Thor::Option.name]] + # + # source://thor//lib/thor.rb#458 + def method_at_least_one_option_names; end + + # Returns this class exclusive options array set. + # + # ==== Returns + # Array[Array[Thor::Option.name]] + # + # source://thor//lib/thor.rb#449 + def method_exclusive_option_names; end + + # receives a (possibly nil) command name and returns a name that is in + # the commands hash. In addition to normalizing aliases, this logic + # will determine if a shortened command is an unambiguous substring of + # a command or alias. + # + # +normalize_command_name+ also converts names like +animal-prison+ + # into +animal_prison+. + # + # @raise [AmbiguousTaskError] + # + # source://thor//lib/thor.rb#594 + def normalize_command_name(meth); end + + # receives a (possibly nil) command name and returns a name that is in + # the commands hash. In addition to normalizing aliases, this logic + # will determine if a shortened command is an unambiguous substring of + # a command or alias. + # + # +normalize_command_name+ also converts names like +animal-prison+ + # into +animal_prison+. + # + # @raise [AmbiguousTaskError] + # + # source://thor//lib/thor.rb#594 + def normalize_task_name(meth); end + + # source://thor//lib/thor.rb#482 + def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end + + # source://thor//lib/thor.rb#471 + def print_exclusive_options(shell, command = T.unsafe(nil)); end + + # Retrieve the command name from given args. + # + # source://thor//lib/thor.rb#581 + def retrieve_command_name(args); end + + # Retrieve the command name from given args. + # + # source://thor//lib/thor.rb#581 + def retrieve_task_name(args); end + + # Sort the commands, lexicographically by default. + # + # Can be overridden in the subclass to change the display order of the + # commands. + # + # source://thor//lib/thor.rb#642 + def sort_commands!(list); end + + # source://thor//lib/thor.rb#462 + def stop_on_unknown_option; end + + # source://thor//lib/thor.rb#630 + def subcommand_help(cmd); end + + # source://thor//lib/thor.rb#630 + def subtask_help(cmd); end + end +end + +# source://thor//lib/thor/actions/empty_directory.rb#2 +module Thor::Actions + mixes_in_class_methods ::Thor::Actions::ClassMethods + + # Extends initializer to add more configuration options. + # + # ==== Configuration + # behavior<Symbol>:: The actions default behavior. Can be :invoke or :revoke. + # It also accepts :force, :skip and :pretend to set the behavior + # and the respective option. + # + # destination_root<String>:: The root directory needed for some actions. + # + # source://thor//lib/thor/actions.rb#72 + def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end + + # Wraps an action object and call it accordingly to the thor class behavior. + # + # source://thor//lib/thor/actions.rb#89 + def action(instance); end + + # Create a new file relative to the destination root with the given data, + # which is the return value of a block or a data string. + # + # ==== Parameters + # destination<String>:: the relative path to the destination root. + # data<String|NilClass>:: the data to append to the file. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # create_file "lib/fun_party.rb" do + # hostname = ask("What is the virtual hostname I should use?") + # "vhost.name = #{hostname}" + # end + # + # create_file "config/apache.conf", "your apache config" + # + # source://thor//lib/thor/actions/create_file.rb#22 + def add_file(destination, *args, &block); end + + # Create a new file relative to the destination root from the given source. + # + # ==== Parameters + # destination<String>:: the relative path to the destination root. + # source<String|NilClass>:: the relative path to the source root. + # config<Hash>:: give :verbose => false to not log the status. + # :: give :symbolic => false for hard link. + # + # ==== Examples + # + # create_link "config/apache.conf", "/etc/apache.conf" + # + # source://thor//lib/thor/actions/create_link.rb#17 + def add_link(destination, *args); end + + # Append text to a file. Since it depends on insert_into_file, it's reversible. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # data<String>:: the data to append to the file, can be also given as a block. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # append_to_file 'config/environments/test.rb', 'config.gem "rspec"' + # + # append_to_file 'config/environments/test.rb' do + # 'config.gem "rspec"' + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#193 + def append_file(path, *args, &block); end + + # Append text to a file. Since it depends on insert_into_file, it's reversible. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # data<String>:: the data to append to the file, can be also given as a block. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # append_to_file 'config/environments/test.rb', 'config.gem "rspec"' + # + # append_to_file 'config/environments/test.rb' do + # 'config.gem "rspec"' + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#193 + def append_to_file(path, *args, &block); end + + # Loads an external file and execute it in the instance binding. + # + # ==== Parameters + # path<String>:: The path to the file to execute. Can be a web address or + # a relative path from the source root. + # + # ==== Examples + # + # apply "http://gist.github.com/103208" + # + # apply "recipes/jquery.rb" + # + # source://thor//lib/thor/actions.rb#216 + def apply(path, config = T.unsafe(nil)); end + + # Returns the value of attribute behavior. + # + # source://thor//lib/thor/actions.rb#10 + def behavior; end + + # Sets the attribute behavior + # + # @param value the value to set the attribute behavior to. + # + # source://thor//lib/thor/actions.rb#10 + def behavior=(_arg0); end + + # Changes the mode of the given file or directory. + # + # ==== Parameters + # mode<Integer>:: the file mode + # path<String>:: the name of the file to change mode + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # chmod "script/server", 0755 + # + # source://thor//lib/thor/actions/file_manipulation.rb#146 + def chmod(path, mode, config = T.unsafe(nil)); end + + # Comment all lines matching a given regex. It will leave the space + # which existed before the beginning of the line in tact and will insert + # a single space after the comment hash. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # flag<Regexp|String>:: the regexp or string used to decide which lines to comment + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # comment_lines 'config/initializers/session_store.rb', /cookie_store/ + # + # source://thor//lib/thor/actions/file_manipulation.rb#310 + def comment_lines(path, flag, *args); end + + # ==== Examples + # + # copy_file "README", "doc/README" + # + # copy_file "doc/README" + # + # source://thor//lib/thor/actions/file_manipulation.rb#21 + def copy_file(source, *args, &block); end + + # Create a new file relative to the destination root with the given data, + # which is the return value of a block or a data string. + # + # ==== Parameters + # destination<String>:: the relative path to the destination root. + # data<String|NilClass>:: the data to append to the file. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # create_file "lib/fun_party.rb" do + # hostname = ask("What is the virtual hostname I should use?") + # "vhost.name = #{hostname}" + # end + # + # create_file "config/apache.conf", "your apache config" + # + # source://thor//lib/thor/actions/create_file.rb#22 + def create_file(destination, *args, &block); end + + # Create a new file relative to the destination root from the given source. + # + # ==== Parameters + # destination<String>:: the relative path to the destination root. + # source<String|NilClass>:: the relative path to the source root. + # config<Hash>:: give :verbose => false to not log the status. + # :: give :symbolic => false for hard link. + # + # ==== Examples + # + # create_link "config/apache.conf", "/etc/apache.conf" + # + # source://thor//lib/thor/actions/create_link.rb#17 + def create_link(destination, *args); end + + # Returns the root for this thor class (also aliased as destination root). + # + # source://thor//lib/thor/actions.rb#99 + def destination_root; end + + # Sets the root for this thor class. Relatives path are added to the + # directory where the script was invoked and expanded. + # + # source://thor//lib/thor/actions.rb#106 + def destination_root=(root); end + + # Copies recursively the files from source directory to root directory. + # If any of the files finishes with .tt, it's considered to be a template + # and is placed in the destination without the extension .tt. If any + # empty directory is found, it's copied and all .empty_directory files are + # ignored. If any file name is wrapped within % signs, the text within + # the % signs will be executed as a method and replaced with the returned + # value. Let's suppose a doc directory with the following files: + # + # doc/ + # components/.empty_directory + # README + # rdoc.rb.tt + # %app_name%.rb + # + # When invoked as: + # + # directory "doc" + # + # It will create a doc directory in the destination with the following + # files (assuming that the `app_name` method returns the value "blog"): + # + # doc/ + # components/ + # README + # rdoc.rb + # blog.rb + # + # <b>Encoded path note:</b> Since Thor internals use Object#respond_to? to check if it can + # expand %something%, this `something` should be a public method in the class calling + # #directory. If a method is private, Thor stack raises PrivateMethodEncodedError. + # + # ==== Parameters + # source<String>:: the relative path to the source root. + # destination<String>:: the relative path to the destination root. + # config<Hash>:: give :verbose => false to not log the status. + # If :recursive => false, does not look for paths recursively. + # If :mode => :preserve, preserve the file mode from the source. + # If :exclude_pattern => /regexp/, prevents copying files that match that regexp. + # + # ==== Examples + # + # directory "doc" + # directory "doc", "docs", :recursive => false + # + # source://thor//lib/thor/actions/directory.rb#49 + def directory(source, *args, &block); end + + # Creates an empty directory. + # + # ==== Parameters + # destination<String>:: the relative path to the destination root. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # empty_directory "doc" + # + # source://thor//lib/thor/actions/empty_directory.rb#13 + def empty_directory(destination, config = T.unsafe(nil)); end + + # Receives a file or directory and search for it in the source paths. + # + # @raise [Error] + # + # source://thor//lib/thor/actions.rb#133 + def find_in_source_paths(file); end + + # Gets the content at the given address and places it at the given relative + # destination. If a block is given instead of destination, the content of + # the url is yielded and used as location. + # + # +get+ relies on open-uri, so passing application user input would provide + # a command injection attack vector. + # + # ==== Parameters + # source<String>:: the address of the given content. + # destination<String>:: the relative path to the destination root. + # config<Hash>:: give :verbose => false to not log the status, and + # :http_headers => <Hash> to add headers to an http request. + # + # ==== Examples + # + # get "http://gist.github.com/103208", "doc/README" + # + # get "http://gist.github.com/103208", "doc/README", :http_headers => {"Content-Type" => "application/json"} + # + # get "http://gist.github.com/103208" do |content| + # content.split("\n").first + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#82 + def get(source, *args, &block); end + + # Run a regular expression replacement on a file. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # flag<Regexp|String>:: the regexp or string to be replaced + # replacement<String>:: the replacement, can be also given as a block + # config<Hash>:: give :verbose => false to not log the status, and + # :force => true, to force the replacement regardless of runner behavior. + # + # ==== Example + # + # gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1' + # + # gsub_file 'README', /rake/, :green do |match| + # match << " no more. Use thor!" + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#263 + def gsub_file(path, flag, *args, &block); end + + # Goes to the root and execute the given block. + # + # source://thor//lib/thor/actions.rb#200 + def in_root; end + + # Injects text right after the class definition. Since it depends on + # insert_into_file, it's reversible. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # klass<String|Class>:: the class to be manipulated + # data<String>:: the data to append to the class, can be also given as a block. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # inject_into_class "app/controllers/application_controller.rb", "ApplicationController", " filter_parameter :password\n" + # + # inject_into_class "app/controllers/application_controller.rb", "ApplicationController" do + # " filter_parameter :password\n" + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#217 + def inject_into_class(path, klass, *args, &block); end + + # source://thor//lib/thor/actions/inject_into_file.rb#26 + def inject_into_file(destination, *args, &block); end + + # Injects text right after the module definition. Since it depends on + # insert_into_file, it's reversible. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # module_name<String|Class>:: the module to be manipulated + # data<String>:: the data to append to the class, can be also given as a block. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # inject_into_module "app/helpers/application_helper.rb", "ApplicationHelper", " def help; 'help'; end\n" + # + # inject_into_module "app/helpers/application_helper.rb", "ApplicationHelper" do + # " def help; 'help'; end\n" + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#240 + def inject_into_module(path, module_name, *args, &block); end + + # source://thor//lib/thor/actions/inject_into_file.rb#26 + def insert_into_file(destination, *args, &block); end + + # Do something in the root or on a provided subfolder. If a relative path + # is given it's referenced from the current root. The full path is yielded + # to the block you provide. The path is set back to the previous path when + # the method exits. + # + # Returns the value yielded by the block. + # + # ==== Parameters + # dir<String>:: the directory to move to. + # config<Hash>:: give :verbose => true to log and use padding. + # + # source://thor//lib/thor/actions.rb#170 + def inside(dir = T.unsafe(nil), config = T.unsafe(nil), &block); end + + # Links the file from the relative source to the relative destination. If + # the destination is not given it's assumed to be equal to the source. + # + # ==== Parameters + # source<String>:: the relative path to the source root. + # destination<String>:: the relative path to the destination root. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # link_file "README", "doc/README" + # + # link_file "doc/README" + # + # source://thor//lib/thor/actions/file_manipulation.rb#51 + def link_file(source, *args); end + + # Prepend text to a file. Since it depends on insert_into_file, it's reversible. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # data<String>:: the data to prepend to the file, can be also given as a block. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # prepend_to_file 'config/environments/test.rb', 'config.gem "rspec"' + # + # prepend_to_file 'config/environments/test.rb' do + # 'config.gem "rspec"' + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#171 + def prepend_file(path, *args, &block); end + + # Prepend text to a file. Since it depends on insert_into_file, it's reversible. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # data<String>:: the data to prepend to the file, can be also given as a block. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # prepend_to_file 'config/environments/test.rb', 'config.gem "rspec"' + # + # prepend_to_file 'config/environments/test.rb' do + # 'config.gem "rspec"' + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#171 + def prepend_to_file(path, *args, &block); end + + # Returns the given path relative to the absolute root (ie, root where + # the script started). + # + # source://thor//lib/thor/actions.rb#114 + def relative_to_original_destination_root(path, remove_dot = T.unsafe(nil)); end + + # Removes a file at the given location. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # remove_file 'README' + # remove_file 'app/controllers/application_controller.rb' + # + # source://thor//lib/thor/actions/file_manipulation.rb#327 + def remove_dir(path, config = T.unsafe(nil)); end + + # Removes a file at the given location. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # remove_file 'README' + # remove_file 'app/controllers/application_controller.rb' + # + # source://thor//lib/thor/actions/file_manipulation.rb#327 + def remove_file(path, config = T.unsafe(nil)); end + + # Executes a command returning the contents of the command. + # + # ==== Parameters + # command<String>:: the command to be executed. + # config<Hash>:: give :verbose => false to not log the status, :capture => true to hide to output. Specify :with + # to append an executable to command execution. + # + # ==== Example + # + # inside('vendor') do + # run('ln -s ~/edge rails') + # end + # + # source://thor//lib/thor/actions.rb#248 + def run(command, config = T.unsafe(nil)); end + + # Executes a ruby script (taking into account WIN32 platform quirks). + # + # ==== Parameters + # command<String>:: the command to be executed. + # config<Hash>:: give :verbose => false to not log the status. + # + # source://thor//lib/thor/actions.rb#285 + def run_ruby_script(command, config = T.unsafe(nil)); end + + # Holds source paths in instance so they can be manipulated. + # + # source://thor//lib/thor/actions.rb#127 + def source_paths; end + + # Gets an ERB template at the relative source, executes it and makes a copy + # at the relative destination. If the destination is not given it's assumed + # to be equal to the source removing .tt from the filename. + # + # ==== Parameters + # source<String>:: the relative path to the source root. + # destination<String>:: the relative path to the destination root. + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Examples + # + # template "README", "doc/README" + # + # template "doc/README" + # + # source://thor//lib/thor/actions/file_manipulation.rb#118 + def template(source, *args, &block); end + + # Run a thor command. A hash of options can be given and it's converted to + # switches. + # + # ==== Parameters + # command<String>:: the command to be invoked + # args<Array>:: arguments to the command + # config<Hash>:: give :verbose => false to not log the status, :capture => true to hide to output. + # Other options are given as parameter to Thor. + # + # + # ==== Examples + # + # thor :install, "http://gist.github.com/103208" + # #=> thor install http://gist.github.com/103208 + # + # thor :list, :all => true, :substring => 'rails' + # #=> thor list --all --substring=rails + # + # source://thor//lib/thor/actions.rb#308 + def thor(command, *args); end + + # Uncomment all lines matching a given regex. It will leave the space + # which existed before the comment hash in tact but will remove any spacing + # between the comment hash and the beginning of the line. + # + # ==== Parameters + # path<String>:: path of the file to be changed + # flag<Regexp|String>:: the regexp or string used to decide which lines to uncomment + # config<Hash>:: give :verbose => false to not log the status. + # + # ==== Example + # + # uncomment_lines 'config/initializers/session_store.rb', /active_record/ + # + # source://thor//lib/thor/actions/file_manipulation.rb#291 + def uncomment_lines(path, flag, *args); end + + protected + + # source://thor//lib/thor/actions.rb#329 + def _cleanup_options_and_set(options, key); end + + # Allow current root to be shared between invocations. + # + # source://thor//lib/thor/actions.rb#325 + def _shared_configuration; end + + private + + # source://thor//lib/thor/actions/file_manipulation.rb#348 + def capture(*args); end + + # source://thor//lib/thor/actions/file_manipulation.rb#344 + def concat(string); end + + # Returns the value of attribute output_buffer. + # + # source://thor//lib/thor/actions/file_manipulation.rb#339 + def output_buffer; end + + # Sets the attribute output_buffer + # + # @param value the value to set the attribute output_buffer to. + # + # source://thor//lib/thor/actions/file_manipulation.rb#339 + def output_buffer=(_arg0); end + + # source://thor//lib/thor/actions/file_manipulation.rb#352 + def with_output_buffer(buf = T.unsafe(nil)); end + + class << self + # source://thor//lib/thor/actions.rb#12 + def included(base); end + end +end + +# Thor::Actions#capture depends on what kind of buffer is used in ERB. +# Thus CapturableERB fixes ERB to use String buffer. +# +# source://thor//lib/thor/actions/file_manipulation.rb#364 +class Thor::Actions::CapturableERB < ::ERB + # source://thor//lib/thor/actions/file_manipulation.rb#365 + def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end +end + +# source://thor//lib/thor/actions.rb#17 +module Thor::Actions::ClassMethods + # Add runtime options that help actions execution. + # + # source://thor//lib/thor/actions.rb#48 + def add_runtime_options!; end + + # Hold source paths for one Thor instance. source_paths_for_search is the + # method responsible to gather source_paths from this current class, + # inherited paths and the source root. + # + # source://thor//lib/thor/actions.rb#22 + def source_paths; end + + # Returns the source paths in the following order: + # + # 1) This class source paths + # 2) Source root + # 3) Parents source paths + # + # source://thor//lib/thor/actions.rb#38 + def source_paths_for_search; end + + # Stores and return the source root for this class + # + # source://thor//lib/thor/actions.rb#27 + def source_root(path = T.unsafe(nil)); end +end + +# CreateFile is a subset of Template, which instead of rendering a file with +# ERB, it gets the content from the user. +# +# source://thor//lib/thor/actions/create_file.rb#32 +class Thor::Actions::CreateFile < ::Thor::Actions::EmptyDirectory + # @return [CreateFile] a new instance of CreateFile + # + # source://thor//lib/thor/actions/create_file.rb#35 + def initialize(base, destination, data, config = T.unsafe(nil)); end + + # source://thor//lib/thor/actions/create_file.rb#33 + def data; end + + # Checks if the content of the file at the destination is identical to the rendered result. + # + # ==== Returns + # Boolean:: true if it is identical, false otherwise. + # + # @return [Boolean] + # + # source://thor//lib/thor/actions/create_file.rb#45 + def identical?; end + + # source://thor//lib/thor/actions/create_file.rb#60 + def invoke!; end + + # Holds the content to be added to the file. + # + # source://thor//lib/thor/actions/create_file.rb#52 + def render; end + + protected + + # Shows the file collision menu to the user and gets the result. + # + # @return [Boolean] + # + # source://thor//lib/thor/actions/create_file.rb#100 + def force_on_collision?; end + + # If force is true, run the action, otherwise check if it's not being + # skipped. If both are false, show the file_collision menu, if the menu + # returns true, force it, otherwise skip. + # + # source://thor//lib/thor/actions/create_file.rb#86 + def force_or_skip_or_conflict(force, skip, &block); end + + # Now on conflict we check if the file is identical or not. + # + # source://thor//lib/thor/actions/create_file.rb#73 + def on_conflict_behavior(&block); end +end + +# CreateLink is a subset of CreateFile, which instead of taking a block of +# data, just takes a source string from the user. +# +# source://thor//lib/thor/actions/create_link.rb#27 +class Thor::Actions::CreateLink < ::Thor::Actions::CreateFile + # source://thor//lib/thor/actions/create_link.rb#28 + def data; end + + # @return [Boolean] + # + # source://thor//lib/thor/actions/create_link.rb#56 + def exists?; end + + # Checks if the content of the file at the destination is identical to the rendered result. + # + # ==== Returns + # Boolean:: true if it is identical, false otherwise. + # + # @return [Boolean] + # + # source://thor//lib/thor/actions/create_link.rb#35 + def identical?; end + + # source://thor//lib/thor/actions/create_link.rb#40 + def invoke!; end +end + +# source://thor//lib/thor/actions/directory.rb#55 +class Thor::Actions::Directory < ::Thor::Actions::EmptyDirectory + # @return [Directory] a new instance of Directory + # + # source://thor//lib/thor/actions/directory.rb#58 + def initialize(base, source, destination = T.unsafe(nil), config = T.unsafe(nil), &block); end + + # source://thor//lib/thor/actions/directory.rb#64 + def invoke!; end + + # source://thor//lib/thor/actions/directory.rb#69 + def revoke!; end + + # Returns the value of attribute source. + # + # source://thor//lib/thor/actions/directory.rb#56 + def source; end + + protected + + # source://thor//lib/thor/actions/directory.rb#75 + def execute!; end + + # source://thor//lib/thor/actions/directory.rb#99 + def file_level_lookup(previous_lookup); end + + # source://thor//lib/thor/actions/directory.rb#103 + def files(lookup); end +end + +# source://thor//lib/thor/actions/empty_directory.rb#23 +class Thor::Actions::EmptyDirectory + # Initializes given the source and destination. + # + # ==== Parameters + # base<Thor::Base>:: A Thor::Base instance + # source<String>:: Relative path to the source of this file + # destination<String>:: Relative path to the destination of this file + # config<Hash>:: give :verbose => false to not log the status. + # + # @return [EmptyDirectory] a new instance of EmptyDirectory + # + # source://thor//lib/thor/actions/empty_directory.rb#34 + def initialize(base, destination, config = T.unsafe(nil)); end + + # source://thor//lib/thor/actions/empty_directory.rb#24 + def base; end + + # source://thor//lib/thor/actions/empty_directory.rb#24 + def config; end + + # source://thor//lib/thor/actions/empty_directory.rb#24 + def destination; end + + # Checks if the destination file already exists. + # + # ==== Returns + # Boolean:: true if the file exists, false otherwise. + # + # @return [Boolean] + # + # source://thor//lib/thor/actions/empty_directory.rb#45 + def exists?; end + + # source://thor//lib/thor/actions/empty_directory.rb#24 + def given_destination; end + + # source://thor//lib/thor/actions/empty_directory.rb#49 + def invoke!; end + + # source://thor//lib/thor/actions/empty_directory.rb#24 + def relative_destination; end + + # source://thor//lib/thor/actions/empty_directory.rb#56 + def revoke!; end + + protected + + # Filenames in the encoded form are converted. If you have a file: + # + # %file_name%.rb + # + # It calls #file_name from the base and replaces %-string with the + # return value (should be String) of #file_name: + # + # user.rb + # + # The method referenced can be either public or private. + # + # source://thor//lib/thor/actions/empty_directory.rb#103 + def convert_encoded_instructions(filename); end + + # Sets the absolute destination value from a relative destination value. + # It also stores the given and relative destination. Let's suppose our + # script is being executed on "dest", it sets the destination root to + # "dest". The destination, given_destination and relative_destination + # are related in the following way: + # + # inside "bar" do + # empty_directory "baz" + # end + # + # destination #=> dest/bar/baz + # relative_destination #=> bar/baz + # given_destination #=> baz + # + # source://thor//lib/thor/actions/empty_directory.rb#85 + def destination=(destination); end + + # Receives a hash of options and just execute the block if some + # conditions are met. + # + # source://thor//lib/thor/actions/empty_directory.rb#113 + def invoke_with_conflict_check(&block); end + + # What to do when the destination file already exists. + # + # source://thor//lib/thor/actions/empty_directory.rb#132 + def on_conflict_behavior; end + + # source://thor//lib/thor/actions/empty_directory.rb#126 + def on_file_clash_behavior; end + + # Shortcut for pretend. + # + # @return [Boolean] + # + # source://thor//lib/thor/actions/empty_directory.rb#67 + def pretend?; end + + # Shortcut to say_status shell method. + # + # source://thor//lib/thor/actions/empty_directory.rb#138 + def say_status(status, color); end +end + +# source://thor//lib/thor/actions/inject_into_file.rb#36 +class Thor::Actions::InjectIntoFile < ::Thor::Actions::EmptyDirectory + # @return [InjectIntoFile] a new instance of InjectIntoFile + # + # source://thor//lib/thor/actions/inject_into_file.rb#39 + def initialize(base, destination, data, config); end + + # Returns the value of attribute behavior. + # + # source://thor//lib/thor/actions/inject_into_file.rb#37 + def behavior; end + + # Returns the value of attribute flag. + # + # source://thor//lib/thor/actions/inject_into_file.rb#37 + def flag; end + + # source://thor//lib/thor/actions/inject_into_file.rb#52 + def invoke!; end + + # Returns the value of attribute replacement. + # + # source://thor//lib/thor/actions/inject_into_file.rb#37 + def replacement; end + + # source://thor//lib/thor/actions/inject_into_file.rb#74 + def revoke!; end + + protected + + # source://thor//lib/thor/actions/inject_into_file.rb#110 + def content; end + + # Adds the content to the file. + # + # source://thor//lib/thor/actions/inject_into_file.rb#120 + def replace!(regexp, string, force); end + + # @return [Boolean] + # + # source://thor//lib/thor/actions/inject_into_file.rb#114 + def replacement_present?; end + + # source://thor//lib/thor/actions/inject_into_file.rb#90 + def say_status(behavior, warning: T.unsafe(nil), color: T.unsafe(nil)); end +end + +# Injects the given content into a file. Different from gsub_file, this +# method is reversible. +# +# ==== Parameters +# destination<String>:: Relative path to the destination root +# data<String>:: Data to add to the file. Can be given as a block. +# config<Hash>:: give :verbose => false to not log the status and the flag +# for injection (:after or :before) or :force => true for +# insert two or more times the same content. +# +# ==== Examples +# +# insert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n" +# +# insert_into_file "config/environment.rb", :after => "Rails::Initializer.run do |config|\n" do +# gems = ask "Which gems would you like to add?" +# gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n") +# end +# +# source://thor//lib/thor/actions/inject_into_file.rb#24 +Thor::Actions::WARNINGS = T.let(T.unsafe(nil), Hash) + +# source://thor//lib/thor/error.rb#57 +class Thor::AmbiguousCommandError < ::Thor::Error; end + +# source://thor//lib/thor/error.rb#59 +Thor::AmbiguousTaskError = Thor::AmbiguousCommandError + +# source://thor//lib/thor/parser/argument.rb#2 +class Thor::Argument + # @raise [ArgumentError] + # @return [Argument] a new instance of Argument + # + # source://thor//lib/thor/parser/argument.rb#8 + def initialize(name, options = T.unsafe(nil)); end + + # Returns the value of attribute banner. + # + # source://thor//lib/thor/parser/argument.rb#5 + def banner; end + + # Returns the value of attribute default. + # + # source://thor//lib/thor/parser/argument.rb#5 + def default; end + + # Returns the value of attribute description. + # + # source://thor//lib/thor/parser/argument.rb#5 + def description; end + + # Returns the value of attribute enum. + # + # source://thor//lib/thor/parser/argument.rb#5 + def enum; end + + # source://thor//lib/thor/parser/argument.rb#55 + def enum_to_s; end + + # Returns the value of attribute name. + # + # source://thor//lib/thor/parser/argument.rb#5 + def human_name; end + + # Returns the value of attribute name. + # + # source://thor//lib/thor/parser/argument.rb#5 + def name; end + + # source://thor//lib/thor/parser/argument.rb#27 + def print_default; end + + # Returns the value of attribute required. + # + # source://thor//lib/thor/parser/argument.rb#5 + def required; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/argument.rb#42 + def required?; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/argument.rb#46 + def show_default?; end + + # Returns the value of attribute type. + # + # source://thor//lib/thor/parser/argument.rb#5 + def type; end + + # source://thor//lib/thor/parser/argument.rb#38 + def usage; end + + protected + + # source://thor//lib/thor/parser/argument.rb#74 + def default_banner; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/argument.rb#70 + def valid_type?(type); end + + # @raise [ArgumentError] + # + # source://thor//lib/thor/parser/argument.rb#65 + def validate!; end +end + +# source://thor//lib/thor/parser/argument.rb#3 +Thor::Argument::VALID_TYPES = T.let(T.unsafe(nil), Array) + +# source://thor//lib/thor/parser/arguments.rb#2 +class Thor::Arguments + # Takes an array of Thor::Argument objects. + # + # @return [Arguments] a new instance of Arguments + # + # source://thor//lib/thor/parser/arguments.rb#26 + def initialize(arguments = T.unsafe(nil)); end + + # source://thor//lib/thor/parser/arguments.rb#40 + def parse(args); end + + # source://thor//lib/thor/parser/arguments.rb#53 + def remaining; end + + private + + # Raises an error if @non_assigned_required array is not empty. + # + # @raise [RequiredArgumentMissingError] + # + # source://thor//lib/thor/parser/arguments.rb#186 + def check_requirement!; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/arguments.rb#84 + def current_is_value?; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/arguments.rb#64 + def last?; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/arguments.rb#59 + def no_or_skip?(arg); end + + # Runs through the argument array getting all strings until no string is + # found or a switch is found. + # + # ["a", "b", "c"] + # + # And returns it as an array: + # + # ["a", "b", "c"] + # + # source://thor//lib/thor/parser/arguments.rb#118 + def parse_array(name); end + + # Runs through the argument array getting strings that contains ":" and + # mark it as a hash: + # + # [ "name:string", "age:integer" ] + # + # Becomes: + # + # { "name" => "string", "age" => "integer" } + # + # source://thor//lib/thor/parser/arguments.rb#97 + def parse_hash(name); end + + # Check if the peek is numeric format and return a Float or Integer. + # Check if the peek is included in enum if enum is provided. + # Otherwise raises an error. + # + # source://thor//lib/thor/parser/arguments.rb#139 + def parse_numeric(name); end + + # Parse string: + # for --string-arg, just return the current value in the pile + # for --no-string-arg, nil + # Check if the peek is included in enum if enum is provided. Otherwise raises an error. + # + # source://thor//lib/thor/parser/arguments.rb#158 + def parse_string(name); end + + # source://thor//lib/thor/parser/arguments.rb#68 + def peek; end + + # source://thor//lib/thor/parser/arguments.rb#72 + def shift; end + + # source://thor//lib/thor/parser/arguments.rb#76 + def unshift(arg); end + + # Raises an error if the switch is an enum and the values aren't included on it. + # + # source://thor//lib/thor/parser/arguments.rb#172 + def validate_enum_value!(name, value, message); end + + class << self + # source://thor//lib/thor/parser/arguments.rb#19 + def parse(*args); end + + # Receives an array of args and returns two arrays, one with arguments + # and one with switches. + # + # source://thor//lib/thor/parser/arguments.rb#8 + def split(args); end + end +end + +# source://thor//lib/thor/parser/arguments.rb#3 +Thor::Arguments::NUMERIC = T.let(T.unsafe(nil), Regexp) + +# source://thor//lib/thor/error.rb#104 +class Thor::AtLeastOneRequiredArgumentError < ::Thor::InvocationError; end + +# source://thor//lib/thor/shell.rb#4 +module Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + + mixes_in_class_methods ::Thor::Base::ClassMethods + mixes_in_class_methods ::Thor::Invocation::ClassMethods + + # It receives arguments in an Array and two hashes, one for options and + # other for configuration. + # + # Notice that it does not check if all required arguments were supplied. + # It should be done by the parser. + # + # ==== Parameters + # args<Array[Object]>:: An array of objects. The objects are applied to their + # respective accessors declared with <tt>argument</tt>. + # + # options<Hash>:: An options hash that will be available as self.options. + # The hash given is converted to a hash with indifferent + # access, magic predicates (options.skip?) and then frozen. + # + # config<Hash>:: Configuration for this Thor class. + # + # source://thor//lib/thor/base.rb#53 + def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end + + # Returns the value of attribute args. + # + # source://thor//lib/thor/base.rb#35 + def args; end + + # Sets the attribute args + # + # @param value the value to set the attribute args to. + # + # source://thor//lib/thor/base.rb#35 + def args=(_arg0); end + + # Returns the value of attribute options. + # + # source://thor//lib/thor/base.rb#35 + def options; end + + # Sets the attribute options + # + # @param value the value to set the attribute options to. + # + # source://thor//lib/thor/base.rb#35 + def options=(_arg0); end + + # Returns the value of attribute parent_options. + # + # source://thor//lib/thor/base.rb#35 + def parent_options; end + + # Sets the attribute parent_options + # + # @param value the value to set the attribute parent_options to. + # + # source://thor//lib/thor/base.rb#35 + def parent_options=(_arg0); end + + class << self + # source://thor//lib/thor/base.rb#116 + def included(base); end + + # Whenever a class inherits from Thor or Thor::Group, we should track the + # class and the file on Thor::Base. This is the method responsible for it. + # + # source://thor//lib/thor/base.rb#144 + def register_klass_file(klass); end + + # Returns the shell used in all Thor classes. If you are in a Unix platform + # it will use a colored log, otherwise it will use a basic one without color. + # + # source://thor//lib/thor/shell.rb#11 + def shell; end + + # Sets the attribute shell + # + # @param value the value to set the attribute shell to. + # + # source://thor//lib/thor/shell.rb#6 + def shell=(_arg0); end + + # Returns the files where the subclasses are kept. + # + # ==== Returns + # Hash[path<String> => Class] + # + # source://thor//lib/thor/base.rb#137 + def subclass_files; end + + # Returns the classes that inherits from Thor or Thor::Group. + # + # ==== Returns + # Array[Class] + # + # source://thor//lib/thor/base.rb#128 + def subclasses; end + end +end + +# source://thor//lib/thor/base.rb#153 +module Thor::Base::ClassMethods + # Returns the commands for this Thor class and all subclasses. + # + # ==== Returns + # Hash:: An ordered hash with commands names as keys and Thor::Command + # objects as values. + # + # source://thor//lib/thor/base.rb#482 + def all_commands; end + + # Returns the commands for this Thor class and all subclasses. + # + # ==== Returns + # Hash:: An ordered hash with commands names as keys and Thor::Command + # objects as values. + # + # source://thor//lib/thor/base.rb#482 + def all_tasks; end + + # If you want to use defaults that don't match the type of an option, + # either specify `check_default_type: false` or call `allow_incompatible_default_type!` + # + # source://thor//lib/thor/base.rb#189 + def allow_incompatible_default_type!; end + + # Adds an argument to the class and creates an attr_accessor for it. + # + # Arguments are different from options in several aspects. The first one + # is how they are parsed from the command line, arguments are retrieved + # from position: + # + # thor command NAME + # + # Instead of: + # + # thor command --name=NAME + # + # Besides, arguments are used inside your code as an accessor (self.argument), + # while options are all kept in a hash (self.options). + # + # Finally, arguments cannot have type :default or :boolean but can be + # optional (supplying :optional => :true or :required => false), although + # you cannot have a required argument after a non-required argument. If you + # try it, an error is raised. + # + # ==== Parameters + # name<Symbol>:: The name of the argument. + # options<Hash>:: Described below. + # + # ==== Options + # :desc - Description for the argument. + # :required - If the argument is required or not. + # :optional - If the argument is optional or not. + # :type - The type of the argument, can be :string, :hash, :array, :numeric. + # :default - Default value for this argument. It cannot be required and have default values. + # :banner - String to show on usage notes. + # + # ==== Errors + # ArgumentError:: Raised if you supply a required argument after a non required one. + # + # source://thor//lib/thor/base.rb#261 + def argument(name, options = T.unsafe(nil)); end + + # Returns this class arguments, looking up in the ancestors chain. + # + # ==== Returns + # Array[Thor::Argument] + # + # source://thor//lib/thor/base.rb#293 + def arguments; end + + # source://thor//lib/thor/base.rb#162 + def attr_accessor(*_arg0); end + + # source://thor//lib/thor/base.rb#154 + def attr_reader(*_arg0); end + + # source://thor//lib/thor/base.rb#158 + def attr_writer(*_arg0); end + + # source://thor//lib/thor/base.rb#193 + def check_default_type; end + + # If you want to raise an error when the default value of an option does not match + # the type call check_default_type! + # This will be the default; for compatibility a deprecation warning is issued if necessary. + # + # source://thor//lib/thor/base.rb#183 + def check_default_type!; end + + # source://thor//lib/thor/base.rb#172 + def check_unknown_options; end + + # If you want to raise an error for unknown options, call check_unknown_options! + # This is disabled by default to allow dynamic invocations. + # + # source://thor//lib/thor/base.rb#168 + def check_unknown_options!; end + + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#176 + def check_unknown_options?(config); end + + # Adds and declares option group for required at least one of options in the + # block and arguments. You can declare options as the outside of the block. + # + # ==== Examples + # + # class_at_least_one do + # class_option :one + # class_option :two + # end + # + # Or + # + # class_option :one + # class_option :two + # class_at_least_one :one, :two + # + # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError + # will be raised. + # + # You can use class_at_least_one and class_exclusive at the same time. + # + # class_exclusive do + # class_at_least_one do + # class_option :one + # class_option :two + # end + # end + # + # Then it is required either only one of "--one" or "--two". + # + # source://thor//lib/thor/base.rb#392 + def class_at_least_one(*args, &block); end + + # Returns this class at least one of required options array set, looking up in the ancestors chain. + # + # ==== Returns + # Array[Array[Thor::Option.name]] + # + # source://thor//lib/thor/base.rb#411 + def class_at_least_one_option_names; end + + # Adds and declares option group for exclusive options in the + # block and arguments. You can declare options as the outside of the block. + # + # ==== Parameters + # Array[Thor::Option.name] + # + # ==== Examples + # + # class_exclusive do + # class_option :one + # class_option :two + # end + # + # Or + # + # class_option :one + # class_option :two + # class_exclusive :one, :two + # + # If you give "--one" and "--two" at the same time ExclusiveArgumentsError + # will be raised. + # + # source://thor//lib/thor/base.rb#357 + def class_exclusive(*args, &block); end + + # Returns this class exclusive options array set, looking up in the ancestors chain. + # + # ==== Returns + # Array[Array[Thor::Option.name]] + # + # source://thor//lib/thor/base.rb#402 + def class_exclusive_option_names; end + + # Adds an option to the set of class options + # + # ==== Parameters + # name<Symbol>:: The name of the argument. + # options<Hash>:: Described below. + # + # ==== Options + # :desc:: -- Description for the argument. + # :required:: -- If the argument is required or not. + # :default:: -- Default value for this argument. + # :group:: -- The group for this options. Use by class options to output options in different levels. + # :aliases:: -- Aliases for this option. <b>Note:</b> Thor follows a convention of one-dash-one-letter options. Thus aliases like "-something" wouldn't be parsed; use either "\--something" or "-s" instead. + # :type:: -- The type of the argument, can be :string, :hash, :array, :numeric or :boolean. + # :banner:: -- String to show on usage notes. + # :hide:: -- If you want to hide this option from the help. + # + # source://thor//lib/thor/base.rb#328 + def class_option(name, options = T.unsafe(nil)); end + + # Adds a bunch of options to the set of class options. + # + # class_options :foo => false, :bar => :required, :baz => :string + # + # If you prefer more detailed declaration, check class_option. + # + # ==== Parameters + # Hash[Symbol => Object] + # + # source://thor//lib/thor/base.rb#306 + def class_options(options = T.unsafe(nil)); end + + # Returns the commands for this Thor class. + # + # ==== Returns + # Hash:: An ordered hash with commands names as keys and Thor::Command + # objects as values. + # + # source://thor//lib/thor/base.rb#471 + def commands; end + + # If true, option set will not suspend the execution of the command when + # a required option is not provided. + # + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#207 + def disable_required_check?(command_name); end + + # A flag that makes the process exit with status 1 if any error happens. + # + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#628 + def exit_on_failure?; end + + # Defines the group. This is used when thor list is invoked so you can specify + # that only commands from a pre-defined group will be shown. Defaults to standard. + # + # ==== Parameters + # name<String|Symbol> + # + # source://thor//lib/thor/base.rb#457 + def group(name = T.unsafe(nil)); end + + # @raise [InvocationError] + # + # source://thor//lib/thor/base.rb#618 + def handle_argument_error(command, error, args, arity); end + + # @raise [UndefinedCommandError] + # + # source://thor//lib/thor/base.rb#613 + def handle_no_command_error(command, has_namespace = T.unsafe(nil)); end + + # @raise [UndefinedCommandError] + # + # source://thor//lib/thor/base.rb#613 + def handle_no_task_error(command, has_namespace = T.unsafe(nil)); end + + # Sets the namespace for the Thor or Thor::Group class. By default the + # namespace is retrieved from the class name. If your Thor class is named + # Scripts::MyScript, the help method, for example, will be called as: + # + # thor scripts:my_script -h + # + # If you change the namespace: + # + # namespace :my_scripts + # + # You change how your commands are invoked: + # + # thor my_scripts -h + # + # Finally, if you change your namespace to default: + # + # namespace :default + # + # Your commands can be invoked with a shortcut. Instead of: + # + # thor :my_command + # + # source://thor//lib/thor/base.rb#566 + def namespace(name = T.unsafe(nil)); end + + # All methods defined inside the given block are not added as commands. + # + # So you can do: + # + # class MyScript < Thor + # no_commands do + # def this_is_not_a_command + # end + # end + # end + # + # You can also add the method and remove it from the command list: + # + # class MyScript < Thor + # def this_is_not_a_command + # end + # remove_command :this_is_not_a_command + # end + # + # source://thor//lib/thor/base.rb#530 + def no_commands(&block); end + + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#540 + def no_commands?; end + + # source://thor//lib/thor/base.rb#536 + def no_commands_context; end + + # All methods defined inside the given block are not added as commands. + # + # So you can do: + # + # class MyScript < Thor + # no_commands do + # def this_is_not_a_command + # end + # end + # end + # + # You can also add the method and remove it from the command list: + # + # class MyScript < Thor + # def this_is_not_a_command + # end + # remove_command :this_is_not_a_command + # end + # + # source://thor//lib/thor/base.rb#530 + def no_tasks(&block); end + + # Allows to use private methods from parent in child classes as commands. + # + # ==== Parameters + # names<Array>:: Method names to be used as commands + # + # ==== Examples + # + # public_command :foo + # public_command :foo, :bar, :baz + # + # source://thor//lib/thor/base.rb#606 + def public_command(*names); end + + # Allows to use private methods from parent in child classes as commands. + # + # ==== Parameters + # names<Array>:: Method names to be used as commands + # + # ==== Examples + # + # public_command :foo + # public_command :foo, :bar, :baz + # + # source://thor//lib/thor/base.rb#606 + def public_task(*names); end + + # Removes a previous defined argument. If :undefine is given, undefine + # accessors as well. + # + # ==== Parameters + # names<Array>:: Arguments to be removed + # + # ==== Examples + # + # remove_argument :foo + # remove_argument :foo, :bar, :baz, :undefine => true + # + # source://thor//lib/thor/base.rb#426 + def remove_argument(*names); end + + # Removes a previous defined class option. + # + # ==== Parameters + # names<Array>:: Class options to be removed + # + # ==== Examples + # + # remove_class_option :foo + # remove_class_option :foo, :bar, :baz + # + # source://thor//lib/thor/base.rb#445 + def remove_class_option(*names); end + + # Removes a given command from this Thor class. This is usually done if you + # are inheriting from another class and don't want it to be available + # anymore. + # + # By default it only remove the mapping to the command. But you can supply + # :undefine => true to undefine the method from the class as well. + # + # ==== Parameters + # name<Symbol|String>:: The name of the command to be removed + # options<Hash>:: You can give :undefine => true if you want commands the method + # to be undefined from the class as well. + # + # source://thor//lib/thor/base.rb#500 + def remove_command(*names); end + + # Removes a given command from this Thor class. This is usually done if you + # are inheriting from another class and don't want it to be available + # anymore. + # + # By default it only remove the mapping to the command. But you can supply + # :undefine => true to undefine the method from the class as well. + # + # ==== Parameters + # name<Symbol|String>:: The name of the command to be removed + # options<Hash>:: You can give :undefine => true if you want commands the method + # to be undefined from the class as well. + # + # source://thor//lib/thor/base.rb#500 + def remove_task(*names); end + + # Parses the command and options from the given args, instantiate the class + # and invoke the command. This method is used when the arguments must be parsed + # from an array. If you are inside Ruby and want to use a Thor class, you + # can simply initialize it: + # + # script = MyScript.new(args, options, config) + # script.invoke(:command, first_arg, second_arg, third_arg) + # + # source://thor//lib/thor/base.rb#582 + def start(given_args = T.unsafe(nil), config = T.unsafe(nil)); end + + # If true, option parsing is suspended as soon as an unknown option or a + # regular argument is encountered. All remaining arguments are passed to + # the command as regular arguments. + # + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#201 + def stop_on_unknown_option?(command_name); end + + # source://thor//lib/thor/base.rb#218 + def strict_args_position; end + + # If you want only strict string args (useful when cascading thor classes), + # call strict_args_position! This is disabled by default to allow dynamic + # invocations. + # + # source://thor//lib/thor/base.rb#214 + def strict_args_position!; end + + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#222 + def strict_args_position?(config); end + + # Returns the commands for this Thor class. + # + # ==== Returns + # Hash:: An ordered hash with commands names as keys and Thor::Command + # objects as values. + # + # source://thor//lib/thor/base.rb#471 + def tasks; end + + protected + + # SIGNATURE: Sets the baseclass. This is where the superclass lookup + # finishes. + # + # source://thor//lib/thor/base.rb#777 + def baseclass; end + + # The basename of the program invoking the thor class. + # + # source://thor//lib/thor/base.rb#771 + def basename; end + + # Build an option and adds it to the given scope. + # + # ==== Parameters + # name<Symbol>:: The name of the argument. + # options<Hash>:: Described in both class_option and method_option. + # scope<Hash>:: Options hash that is being built up + # + # source://thor//lib/thor/base.rb#688 + def build_option(name, options, scope); end + + # Receives a hash of options, parse them and add to the scope. This is a + # fast way to set a bunch of options: + # + # build_options :foo => true, :bar => :required, :baz => :string + # + # ==== Parameters + # Hash[Symbol => Object] + # + # source://thor//lib/thor/base.rb#699 + def build_options(options, scope); end + + # Get target(method_options or class_options) options + # of before and after by block evaluation. + # + # source://thor//lib/thor/base.rb#808 + def built_option_names(target, opt = T.unsafe(nil), &block); end + + # Prints the class options per group. If an option does not belong to + # any group, it's printed as Class option. + # + # source://thor//lib/thor/base.rb#638 + def class_options_help(shell, groups = T.unsafe(nil)); end + + # Get command scope member by name. + # + # source://thor//lib/thor/base.rb#816 + def command_scope_member(name, options = T.unsafe(nil)); end + + # SIGNATURE: Creates a new command if valid_command? is true. This method is + # called when a new method is added to the class. + # + # source://thor//lib/thor/base.rb#782 + def create_command(meth); end + + # SIGNATURE: Creates a new command if valid_command? is true. This method is + # called when a new method is added to the class. + # + # source://thor//lib/thor/base.rb#782 + def create_task(meth); end + + # SIGNATURE: The hook invoked by start. + # + # @raise [NotImplementedError] + # + # source://thor//lib/thor/base.rb#792 + def dispatch(command, given_args, given_opts, config); end + + # Finds a command with the given name. If the command belongs to the current + # class, just return it, otherwise dup it and add the fresh copy to the + # current command hash. + # + # source://thor//lib/thor/base.rb#708 + def find_and_refresh_command(name); end + + # Finds a command with the given name. If the command belongs to the current + # class, just return it, otherwise dup it and add the fresh copy to the + # current command hash. + # + # source://thor//lib/thor/base.rb#708 + def find_and_refresh_task(name); end + + # Retrieves a value from superclass. If it reaches the baseclass, + # returns default. + # + # source://thor//lib/thor/base.rb#749 + def from_superclass(method, default = T.unsafe(nil)); end + + # Every time someone inherits from a Thor class, register the klass + # and file into baseclass. + # + # source://thor//lib/thor/base.rb#721 + def inherited(klass); end + + # SIGNATURE: Defines behavior when the initialize method is added to the + # class. + # + # source://thor//lib/thor/base.rb#788 + def initialize_added; end + + # Raises an error if the word given is a Thor reserved word. + # + # @return [Boolean] + # + # source://thor//lib/thor/base.rb#677 + def is_thor_reserved_word?(word, type); end + + # Fire this callback whenever a method is added. Added methods are + # tracked as commands by invoking the create_command method. + # + # source://thor//lib/thor/base.rb#729 + def method_added(meth); end + + # Receives a set of options and print them. + # + # source://thor//lib/thor/base.rb#656 + def print_options(shell, options, group_name = T.unsafe(nil)); end + + # Register a relation of options for target(method_option/class_option) + # by args and block. + # + # source://thor//lib/thor/base.rb#798 + def register_options_relation_for(target, relation, *args, &block); end +end + +# source://thor//lib/thor/command.rb#2 +class Thor::Command < ::Struct + # @return [Command] a new instance of Command + # + # source://thor//lib/thor/command.rb#5 + def initialize(name, description, long_description, wrap_long_description, usage, options = T.unsafe(nil), options_relation = T.unsafe(nil)); end + + # Returns the formatted usage by injecting given required arguments + # and required options into the given usage. + # + # source://thor//lib/thor/command.rb#42 + def formatted_usage(klass, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#15 + def hidden?; end + + # source://thor//lib/thor/command.rb#70 + def method_at_least_one_option_names; end + + # source://thor//lib/thor/command.rb#66 + def method_exclusive_option_names; end + + # By default, a command invokes a method in the thor class. You can change this + # implementation to create custom commands. + # + # source://thor//lib/thor/command.rb#21 + def run(instance, args = T.unsafe(nil)); end + + protected + + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#114 + def handle_argument_error?(instance, error, caller); end + + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#121 + def handle_no_method_error?(instance, error, caller); end + + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#104 + def local_method?(instance, name); end + + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#87 + def not_debugging?(instance); end + + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#100 + def private_method?(instance); end + + # Given a target, checks if this class name is a public method. + # + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#96 + def public_method?(instance); end + + # Add usage with required arguments + # + # source://thor//lib/thor/command.rb#77 + def required_arguments_for(klass, usage); end + + # source://thor//lib/thor/command.rb#91 + def required_options; end + + # source://thor//lib/thor/command.rb#109 + def sans_backtrace(backtrace, caller); end + + private + + # source://thor//lib/thor/command.rb#9 + def initialize_copy(other); end +end + +# source://thor//lib/thor/command.rb#3 +Thor::Command::FILE_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#2 +module Thor::CoreExt; end + +# A hash with indifferent access and magic predicates. +# +# hash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true +# +# hash[:foo] #=> 'bar' +# hash['foo'] #=> 'bar' +# hash.foo? #=> true +# +# source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#11 +class Thor::CoreExt::HashWithIndifferentAccess < ::Hash + # @return [HashWithIndifferentAccess] a new instance of HashWithIndifferentAccess + # + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#12 + def initialize(hash = T.unsafe(nil)); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#19 + def [](key); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#23 + def []=(key, value); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#27 + def delete(key); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#31 + def except(*keys); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#37 + def fetch(key, *args); end + + # @return [Boolean] + # + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#45 + def key?(key); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#53 + def merge(other); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#57 + def merge!(other); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#72 + def replace(other_hash); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#64 + def reverse_merge(other); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#68 + def reverse_merge!(other_hash); end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#41 + def slice(*keys); end + + # Convert to a Hash with String keys. + # + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#77 + def to_hash; end + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#49 + def values_at(*indices); end + + protected + + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#83 + def convert_key(key); end + + # Magic predicates. For instance: + # + # options.force? # => !!options['force'] + # options.shebang # => "/usr/lib/local/ruby" + # options.test_framework?(:rspec) # => options[:test_framework] == :rspec + # + # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#93 + def method_missing(method, *args); end +end + +# source://thor//lib/thor/error.rb#3 +module Thor::Correctable + # source://thor//lib/thor/error.rb#8 + def corrections; end + + # source://thor//lib/thor/error.rb#4 + def to_s; end +end + +# A dynamic command that handles method missing scenarios. +# +# source://thor//lib/thor/command.rb#137 +class Thor::DynamicCommand < ::Thor::Command + # @return [DynamicCommand] a new instance of DynamicCommand + # + # source://thor//lib/thor/command.rb#138 + def initialize(name, options = T.unsafe(nil)); end + + # source://thor//lib/thor/command.rb#142 + def run(instance, args = T.unsafe(nil)); end +end + +# source://thor//lib/thor/command.rb#150 +Thor::DynamicTask = Thor::DynamicCommand + +# Thor::Error is raised when it's caused by wrong usage of thor classes. Those +# errors have their backtrace suppressed and are nicely shown to the user. +# +# Errors that are caused by the developer, like declaring a method which +# overwrites a thor keyword, SHOULD NOT raise a Thor::Error. This way, we +# ensure that developer errors are shown with full backtrace. +# +# source://thor//lib/thor/error.rb#20 +class Thor::Error < ::StandardError; end + +# source://thor//lib/thor/error.rb#101 +class Thor::ExclusiveArgumentError < ::Thor::InvocationError; end + +# Thor has a special class called Thor::Group. The main difference to Thor class +# is that it invokes all commands at once. It also include some methods that allows +# invocations to be done at the class method, which are not available to Thor +# commands. +# +# source://thor//lib/thor/group.rb#7 +class Thor::Group + include ::Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + extend ::Thor::Base::ClassMethods + extend ::Thor::Invocation::ClassMethods + + protected + + # Shortcut to invoke with padding and block handling. Use internally by + # invoke and invoke_from_option class methods. + # + # source://thor//lib/thor/group.rb#265 + def _invoke_for_class_method(klass, command = T.unsafe(nil), *args, &block); end + + class << self + # Overwrite class options help to allow invoked generators options to be + # shown recursively when invoking a generator. + # + # source://thor//lib/thor/group.rb#161 + def class_options_help(shell, groups = T.unsafe(nil)); end + + # The description for this Thor::Group. If none is provided, but a source root + # exists, tries to find the USAGE one folder above it, otherwise searches + # in the superclass. + # + # ==== Parameters + # description<String>:: The description for this Thor::Group. + # + # source://thor//lib/thor/group.rb#16 + def desc(description = T.unsafe(nil)); end + + # Get invocations array and merge options from invocations. Those + # options are added to group_options hash. Options that already exists + # in base_options are not added twice. + # + # source://thor//lib/thor/group.rb#172 + def get_options_from_invocations(group_options, base_options); end + + # @raise [error] + # + # source://thor//lib/thor/group.rb#207 + def handle_argument_error(command, error, _args, arity); end + + # Prints help information. + # + # ==== Options + # short:: When true, shows only usage. + # + # source://thor//lib/thor/group.rb#29 + def help(shell); end + + # Stores invocation blocks used on invoke_from_option. + # + # source://thor//lib/thor/group.rb#45 + def invocation_blocks; end + + # Stores invocations for this class merging with superclass values. + # + # source://thor//lib/thor/group.rb#39 + def invocations; end + + # Invoke the given namespace or class given. It adds an instance + # method that will invoke the klass and command. You can give a block to + # configure how it will be invoked. + # + # The namespace/class given will have its options showed on the help + # usage. Check invoke_from_option for more information. + # + # source://thor//lib/thor/group.rb#56 + def invoke(*names, &block); end + + # Invoke a thor class based on the value supplied by the user to the + # given option named "name". A class option must be created before this + # method is invoked for each name given. + # + # ==== Examples + # + # class GemGenerator < Thor::Group + # class_option :test_framework, :type => :string + # invoke_from_option :test_framework + # end + # + # ==== Boolean options + # + # In some cases, you want to invoke a thor class if some option is true or + # false. This is automatically handled by invoke_from_option. Then the + # option name is used to invoke the generator. + # + # ==== Preparing for invocation + # + # In some cases you want to customize how a specified hook is going to be + # invoked. You can do that by overwriting the class method + # prepare_for_invocation. The class method must necessarily return a klass + # and an optional command. + # + # ==== Custom invocations + # + # You can also supply a block to customize how the option is going to be + # invoked. The block receives two parameters, an instance of the current + # class and the klass to be invoked. + # + # source://thor//lib/thor/group.rb#110 + def invoke_from_option(*names, &block); end + + # Returns commands ready to be printed. + # + # source://thor//lib/thor/group.rb#199 + def printable_commands(*_arg0); end + + # Returns commands ready to be printed. + # + # source://thor//lib/thor/group.rb#199 + def printable_tasks(*_arg0); end + + # Remove a previously added invocation. + # + # ==== Examples + # + # remove_invocation :test_framework + # + # source://thor//lib/thor/group.rb#149 + def remove_invocation(*names); end + + protected + + # The banner for this class. You can customize it if you are invoking the + # thor class by another ways which is not the Thor::Runner. + # + # source://thor//lib/thor/group.rb#238 + def banner; end + + # source://thor//lib/thor/group.rb#248 + def baseclass; end + + # source://thor//lib/thor/group.rb#252 + def create_command(meth); end + + # source://thor//lib/thor/group.rb#252 + def create_task(meth); end + + # The method responsible for dispatching given the args. + # + # @yield [instance] + # + # source://thor//lib/thor/group.rb#217 + def dispatch(command, given_args, given_opts, config); end + + # Represents the whole class as a command. + # + # source://thor//lib/thor/group.rb#243 + def self_command; end + + # Represents the whole class as a command. + # + # source://thor//lib/thor/group.rb#243 + def self_task; end + end +end + +# Shortcuts for help. +# +# source://thor//lib/thor/base.rb#17 +Thor::HELP_MAPPINGS = T.let(T.unsafe(nil), Array) + +# A command that is hidden in help messages but still invocable. +# +# source://thor//lib/thor/command.rb#129 +class Thor::HiddenCommand < ::Thor::Command + # @return [Boolean] + # + # source://thor//lib/thor/command.rb#130 + def hidden?; end +end + +# source://thor//lib/thor/command.rb#134 +Thor::HiddenTask = Thor::HiddenCommand + +# source://thor//lib/thor/invocation.rb#2 +module Thor::Invocation + mixes_in_class_methods ::Thor::Invocation::ClassMethods + + # Make initializer aware of invocations and the initialization args. + # + # source://thor//lib/thor/invocation.rb#23 + def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil), &block); end + + # Make the current command chain accessible with in a Thor-(sub)command + # + # source://thor//lib/thor/invocation.rb#30 + def current_command_chain; end + + # Receives a name and invokes it. The name can be a string (either "command" or + # "namespace:command"), a Thor::Command, a Class or a Thor instance. If the + # command cannot be guessed by name, it can also be supplied as second argument. + # + # You can also supply the arguments, options and configuration values for + # the command to be invoked, if none is given, the same values used to + # initialize the invoker are used to initialize the invoked. + # + # When no name is given, it will invoke the default command of the current class. + # + # ==== Examples + # + # class A < Thor + # def foo + # invoke :bar + # invoke "b:hello", ["Erik"] + # end + # + # def bar + # invoke "b:hello", ["Erik"] + # end + # end + # + # class B < Thor + # def hello(name) + # puts "hello #{name}" + # end + # end + # + # You can notice that the method "foo" above invokes two commands: "bar", + # which belongs to the same class and "hello" which belongs to the class B. + # + # By using an invocation system you ensure that a command is invoked only once. + # In the example above, invoking "foo" will invoke "b:hello" just once, even + # if it's invoked later by "bar" method. + # + # When class A invokes class B, all arguments used on A initialization are + # supplied to B. This allows lazy parse of options. Let's suppose you have + # some rspec commands: + # + # class Rspec < Thor::Group + # class_option :mock_framework, :type => :string, :default => :rr + # + # def invoke_mock_framework + # invoke "rspec:#{options[:mock_framework]}" + # end + # end + # + # As you noticed, it invokes the given mock framework, which might have its + # own options: + # + # class Rspec::RR < Thor::Group + # class_option :style, :type => :string, :default => :mock + # end + # + # Since it's not rspec concern to parse mock framework options, when RR + # is invoked all options are parsed again, so RR can extract only the options + # that it's going to use. + # + # If you want Rspec::RR to be initialized with its own set of options, you + # have to do that explicitly: + # + # invoke "rspec:rr", [], :style => :foo + # + # Besides giving an instance, you can also give a class to invoke: + # + # invoke Rspec::RR, [], :style => :foo + # + # source://thor//lib/thor/invocation.rb#102 + def invoke(name = T.unsafe(nil), *args); end + + # Invoke all commands for the current instance. + # + # source://thor//lib/thor/invocation.rb#133 + def invoke_all; end + + # Invoke the given command if the given args. + # + # source://thor//lib/thor/invocation.rb#122 + def invoke_command(command, *args); end + + # Invoke the given command if the given args. + # + # source://thor//lib/thor/invocation.rb#122 + def invoke_task(command, *args); end + + # Invokes using shell padding. + # + # source://thor//lib/thor/invocation.rb#138 + def invoke_with_padding(*args); end + + protected + + # Initialize klass using values stored in the @_initializer. + # + # source://thor//lib/thor/invocation.rb#166 + def _parse_initialization_options(args, opts, config); end + + # This method simply retrieves the class and command to be invoked. + # If the name is nil or the given name is a command in the current class, + # use the given name and return self as class. Otherwise, call + # prepare_for_invocation in the current class. + # + # source://thor//lib/thor/invocation.rb#153 + def _retrieve_class_and_command(name, sent_command = T.unsafe(nil)); end + + # This method simply retrieves the class and command to be invoked. + # If the name is nil or the given name is a command in the current class, + # use the given name and return self as class. Otherwise, call + # prepare_for_invocation in the current class. + # + # source://thor//lib/thor/invocation.rb#153 + def _retrieve_class_and_task(name, sent_command = T.unsafe(nil)); end + + # Configuration values that are shared between invocations. + # + # source://thor//lib/thor/invocation.rb#145 + def _shared_configuration; end + + class << self + # source://thor//lib/thor/invocation.rb#3 + def included(base); end + end +end + +# source://thor//lib/thor/invocation.rb#8 +module Thor::Invocation::ClassMethods + # This method is responsible for receiving a name and find the proper + # class and command for it. The key is an optional parameter which is + # available only in class methods invocations (i.e. in Thor::Group). + # + # source://thor//lib/thor/invocation.rb#12 + def prepare_for_invocation(key, name); end +end + +# Raised when a command was found, but not invoked properly. +# +# source://thor//lib/thor/error.rb#62 +class Thor::InvocationError < ::Thor::Error; end + +# source://thor//lib/thor/line_editor/basic.rb#2 +module Thor::LineEditor + class << self + # source://thor//lib/thor/line_editor.rb#10 + def best_available; end + + # source://thor//lib/thor/line_editor.rb#6 + def readline(prompt, options = T.unsafe(nil)); end + end +end + +# source://thor//lib/thor/line_editor/basic.rb#3 +class Thor::LineEditor::Basic + # @return [Basic] a new instance of Basic + # + # source://thor//lib/thor/line_editor/basic.rb#10 + def initialize(prompt, options); end + + # Returns the value of attribute options. + # + # source://thor//lib/thor/line_editor/basic.rb#4 + def options; end + + # Returns the value of attribute prompt. + # + # source://thor//lib/thor/line_editor/basic.rb#4 + def prompt; end + + # source://thor//lib/thor/line_editor/basic.rb#15 + def readline; end + + private + + # @return [Boolean] + # + # source://thor//lib/thor/line_editor/basic.rb#32 + def echo?; end + + # source://thor//lib/thor/line_editor/basic.rb#22 + def get_input; end + + class << self + # @return [Boolean] + # + # source://thor//lib/thor/line_editor/basic.rb#6 + def available?; end + end +end + +# source://thor//lib/thor/line_editor/readline.rb#3 +class Thor::LineEditor::Readline < ::Thor::LineEditor::Basic + # source://thor//lib/thor/line_editor/readline.rb#13 + def readline; end + + private + + # @return [Boolean] + # + # source://thor//lib/thor/line_editor/readline.rb#28 + def add_to_history?; end + + # source://thor//lib/thor/line_editor/readline.rb#42 + def completion_options; end + + # source://thor//lib/thor/line_editor/readline.rb#32 + def completion_proc; end + + # @return [Boolean] + # + # source://thor//lib/thor/line_editor/readline.rb#46 + def use_path_completion?; end + + class << self + # @return [Boolean] + # + # source://thor//lib/thor/line_editor/readline.rb#4 + def available?; end + end +end + +# source://thor//lib/thor/line_editor/readline.rb#50 +class Thor::LineEditor::Readline::PathCompletion + # @return [PathCompletion] a new instance of PathCompletion + # + # source://thor//lib/thor/line_editor/readline.rb#54 + def initialize(text); end + + # source://thor//lib/thor/line_editor/readline.rb#58 + def matches; end + + private + + # source://thor//lib/thor/line_editor/readline.rb#68 + def absolute_matches; end + + # source://thor//lib/thor/line_editor/readline.rb#82 + def base_path; end + + # source://thor//lib/thor/line_editor/readline.rb#78 + def glob_pattern; end + + # source://thor//lib/thor/line_editor/readline.rb#64 + def relative_matches; end + + # Returns the value of attribute text. + # + # source://thor//lib/thor/line_editor/readline.rb#51 + def text; end +end + +# source://thor//lib/thor/error.rb#98 +class Thor::MalformattedArgumentError < ::Thor::InvocationError; end + +# source://thor//lib/thor/nested_context.rb#2 +class Thor::NestedContext + # @return [NestedContext] a new instance of NestedContext + # + # source://thor//lib/thor/nested_context.rb#3 + def initialize; end + + # source://thor//lib/thor/nested_context.rb#7 + def enter; end + + # @return [Boolean] + # + # source://thor//lib/thor/nested_context.rb#15 + def entered?; end + + private + + # source://thor//lib/thor/nested_context.rb#25 + def pop; end + + # source://thor//lib/thor/nested_context.rb#21 + def push; end +end + +# source://thor//lib/thor/parser/option.rb#2 +class Thor::Option < ::Thor::Argument + # @return [Option] a new instance of Option + # + # source://thor//lib/thor/parser/option.rb#7 + def initialize(name, options = T.unsafe(nil)); end + + # Returns the value of attribute aliases. + # + # source://thor//lib/thor/parser/option.rb#3 + def aliases; end + + # source://thor//lib/thor/parser/option.rb#99 + def aliases_for_usage; end + + # source://thor//lib/thor/parser/option.rb#118 + def array?; end + + # source://thor//lib/thor/parser/option.rb#118 + def boolean?; end + + # Returns the value of attribute group. + # + # source://thor//lib/thor/parser/option.rb#3 + def group; end + + # source://thor//lib/thor/parser/option.rb#118 + def hash?; end + + # Returns the value of attribute hide. + # + # source://thor//lib/thor/parser/option.rb#3 + def hide; end + + # source://thor//lib/thor/parser/option.rb#79 + def human_name; end + + # Returns the value of attribute lazy_default. + # + # source://thor//lib/thor/parser/option.rb#3 + def lazy_default; end + + # source://thor//lib/thor/parser/option.rb#118 + def numeric?; end + + # Returns the value of attribute repeatable. + # + # source://thor//lib/thor/parser/option.rb#3 + def repeatable; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/option.rb#107 + def show_default?; end + + # source://thor//lib/thor/parser/option.rb#118 + def string?; end + + # source://thor//lib/thor/parser/option.rb#75 + def switch_name; end + + # source://thor//lib/thor/parser/option.rb#83 + def usage(padding = T.unsafe(nil)); end + + protected + + # source://thor//lib/thor/parser/option.rb#168 + def dasherize(str); end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/option.rb#160 + def dasherized?; end + + # source://thor//lib/thor/parser/option.rb#164 + def undasherize(str); end + + # @raise [ArgumentError] + # + # source://thor//lib/thor/parser/option.rb#126 + def validate!; end + + # source://thor//lib/thor/parser/option.rb#131 + def validate_default_type!; end + + private + + # source://thor//lib/thor/parser/option.rb#174 + def normalize_aliases(aliases); end + + class << self + # This parse quick options given as method_options. It makes several + # assumptions, but you can be more specific using the option method. + # + # parse :foo => "bar" + # #=> Option foo with default value bar + # + # parse [:foo, :baz] => "bar" + # #=> Option foo with default value bar and alias :baz + # + # parse :foo => :required + # #=> Required option foo without default value + # + # parse :foo => 2 + # #=> Option foo with default value 2 and type numeric + # + # parse :foo => :numeric + # #=> Option foo without default value and type numeric + # + # parse :foo => true + # #=> Option foo with default value true and type boolean + # + # The valid types are :boolean, :numeric, :hash, :array and :string. If none + # is given a default type is assumed. This default type accepts arguments as + # string (--foo=value) or booleans (just --foo). + # + # By default all options are optional, unless :required is given. + # + # source://thor//lib/thor/parser/option.rb#45 + def parse(key, value); end + end +end + +# source://thor//lib/thor/parser/option.rb#5 +Thor::Option::VALID_TYPES = T.let(T.unsafe(nil), Array) + +# source://thor//lib/thor/parser/options.rb#2 +class Thor::Options < ::Thor::Arguments + # Takes a hash of Thor::Option and a hash with defaults. + # + # If +stop_on_unknown+ is true, #parse will stop as soon as it encounters + # an unknown option or a regular argument. + # + # @return [Options] a new instance of Options + # + # source://thor//lib/thor/parser/options.rb#32 + def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil), relations = T.unsafe(nil)); end + + # source://thor//lib/thor/parser/options.rb#156 + def check_at_least_one!; end + + # source://thor//lib/thor/parser/options.rb#144 + def check_exclusive!; end + + # @raise [UnknownArgumentError] + # + # source://thor//lib/thor/parser/options.rb#168 + def check_unknown!; end + + # source://thor//lib/thor/parser/options.rb#89 + def parse(args); end + + # source://thor//lib/thor/parser/options.rb#65 + def peek; end + + # source://thor//lib/thor/parser/options.rb#61 + def remaining; end + + # source://thor//lib/thor/parser/options.rb#79 + def shift; end + + # source://thor//lib/thor/parser/options.rb#84 + def unshift(arg, is_value: T.unsafe(nil)); end + + protected + + # source://thor//lib/thor/parser/options.rb#189 + def assign_result!(option, result); end + + # Check if the current value in peek is a registered switch. + # + # Two booleans are returned. The first is true if the current value + # starts with a hyphen; the second is true if it is a registered switch. + # + # @return [Boolean] + # + # source://thor//lib/thor/parser/options.rb#203 + def current_is_switch?; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/options.rb#215 + def current_is_switch_formatted?; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/options.rb#225 + def current_is_value?; end + + # Option names changes to swith name or human name + # + # source://thor//lib/thor/parser/options.rb#179 + def names_to_switch_names(names = T.unsafe(nil)); end + + # Check if the given argument is actually a shortcut. + # + # source://thor//lib/thor/parser/options.rb#244 + def normalize_switch(arg); end + + # Parse boolean values which can be given as --foo=true, --foo or --no-foo. + # + # source://thor//lib/thor/parser/options.rb#255 + def parse_boolean(switch); end + + # Parse the value at the peek analyzing if it requires an input or not. + # + # source://thor//lib/thor/parser/options.rb#273 + def parse_peek(switch, option); end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/options.rb#248 + def parsing_options?; end + + # @return [Boolean] + # + # source://thor//lib/thor/parser/options.rb#230 + def switch?(arg); end + + # source://thor//lib/thor/parser/options.rb#234 + def switch_option(arg); end + + class << self + # Receives a hash and makes it switches. + # + # source://thor//lib/thor/parser/options.rb#11 + def to_switches(options); end + end +end + +# source://thor//lib/thor/parser/options.rb#5 +Thor::Options::EQ_RE = T.let(T.unsafe(nil), Regexp) + +# source://thor//lib/thor/parser/options.rb#3 +Thor::Options::LONG_RE = T.let(T.unsafe(nil), Regexp) + +# source://thor//lib/thor/parser/options.rb#8 +Thor::Options::OPTS_END = T.let(T.unsafe(nil), String) + +# source://thor//lib/thor/parser/options.rb#7 +Thor::Options::SHORT_NUM = T.let(T.unsafe(nil), Regexp) + +# source://thor//lib/thor/parser/options.rb#4 +Thor::Options::SHORT_RE = T.let(T.unsafe(nil), Regexp) + +# Allow either -x -v or -xv style for single char args +# +# source://thor//lib/thor/parser/options.rb#6 +Thor::Options::SHORT_SQ_RE = T.let(T.unsafe(nil), Regexp) + +# Adds a compatibility layer to your Thor classes which allows you to use +# rake package tasks. For example, to use rspec rake tasks, one can do: +# +# require 'thor/rake_compat' +# require 'rspec/core/rake_task' +# +# class Default < Thor +# include Thor::RakeCompat +# +# RSpec::Core::RakeTask.new(:spec) do |t| +# t.spec_opts = ['--options', './.rspec'] +# t.spec_files = FileList['spec/**/*_spec.rb'] +# end +# end +# +# source://thor//lib/thor/rake_compat.rb#20 +module Thor::RakeCompat + include ::FileUtils::StreamUtils_ + include ::FileUtils + include ::Rake::FileUtilsExt + include ::Rake::DSL + + class << self + # @private + # + # source://thor//lib/thor/rake_compat.rb#27 + def included(base); end + + # source://thor//lib/thor/rake_compat.rb#23 + def rake_classes; end + end +end + +# source://thor//lib/thor/error.rb#95 +class Thor::RequiredArgumentMissingError < ::Thor::InvocationError; end + +# source://thor//lib/thor/util.rb#4 +module Thor::Sandbox; end + +# source://thor//lib/thor/shell.rb#23 +module Thor::Shell + # Add shell to initialize config values. + # + # ==== Configuration + # shell<Object>:: An instance of the shell to be used. + # + # ==== Examples + # + # class MyScript < Thor + # argument :first, :type => :numeric + # end + # + # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new + # + # source://thor//lib/thor/shell.rb#44 + def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end + + # source://thor//lib/thor/shell.rb#59 + def ask(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def error(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def file_collision(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def no?(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def print_in_columns(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def print_table(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def print_wrapped(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def say(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def say_error(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def say_status(*args, &block); end + + # source://thor//lib/thor/shell.rb#59 + def set_color(*args, &block); end + + # Holds the shell for the given Thor instance. If no shell is given, + # it gets a default shell from Thor::Base.shell. + # + # source://thor//lib/thor/shell.rb#52 + def shell; end + + # Sets the attribute shell + # + # @param value the value to set the attribute shell to. + # + # source://thor//lib/thor/shell.rb#25 + def shell=(_arg0); end + + # source://thor//lib/thor/shell.rb#59 + def terminal_width(*args, &block); end + + # Yields the given block with padding. + # + # source://thor//lib/thor/shell.rb#66 + def with_padding; end + + # source://thor//lib/thor/shell.rb#59 + def yes?(*args, &block); end + + protected + + # Allow shell to be shared between invocations. + # + # source://thor//lib/thor/shell.rb#77 + def _shared_configuration; end +end + +# source://thor//lib/thor/shell/basic.rb#7 +class Thor::Shell::Basic + # Initialize base, mute and padding to nil. + # + # @return [Basic] a new instance of Basic + # + # source://thor//lib/thor/shell/basic.rb#13 + def initialize; end + + # Asks something to the user and receives a response. + # + # If a default value is specified it will be presented to the user + # and allows them to select that value with an empty response. This + # option is ignored when limited answers are supplied. + # + # If asked to limit the correct responses, you can pass in an + # array of acceptable answers. If one of those is not supplied, + # they will be shown a message stating that one of those answers + # must be given and re-asked the question. + # + # If asking for sensitive information, the :echo option can be set + # to false to mask user input from $stdin. + # + # If the required input is a path, then set the path option to + # true. This will enable tab completion for file paths relative + # to the current working directory on systems that support + # Readline. + # + # ==== Example + # ask("What is your name?") + # + # ask("What is the planet furthest from the sun?", :default => "Pluto") + # + # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"]) + # + # ask("What is your password?", :echo => false) + # + # ask("Where should the file be saved?", :path => true) + # + # source://thor//lib/thor/shell/basic.rb#80 + def ask(statement, *args); end + + # Returns the value of attribute base. + # + # source://thor//lib/thor/shell/basic.rb#8 + def base; end + + # Sets the attribute base + # + # @param value the value to set the attribute base to. + # + # source://thor//lib/thor/shell/basic.rb#8 + def base=(_arg0); end + + # Called if something goes wrong during the execution. This is used by Thor + # internally and should not be used inside your scripts. If something went + # wrong, you can always raise an exception. If you raise a Thor::Error, it + # will be rescued and wrapped in the method below. + # + # source://thor//lib/thor/shell/basic.rb#251 + def error(statement); end + + # Deals with file collision and returns true if the file should be + # overwritten and false otherwise. If a block is given, it uses the block + # response as the content for the diff. + # + # ==== Parameters + # destination<String>:: the destination file to solve conflicts + # block<Proc>:: an optional block that returns the value to be used in diff and merge + # + # source://thor//lib/thor/shell/basic.rb#207 + def file_collision(destination); end + + # Sets the output padding while executing a block and resets it. + # + # source://thor//lib/thor/shell/basic.rb#43 + def indent(count = T.unsafe(nil)); end + + # Mute everything that's inside given block + # + # source://thor//lib/thor/shell/basic.rb#22 + def mute; end + + # Check if base is muted + # + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#31 + def mute?; end + + # Make a question the to user and returns true if the user replies "n" or + # "no". + # + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#156 + def no?(statement, color = T.unsafe(nil)); end + + # Returns the value of attribute padding. + # + # source://thor//lib/thor/shell/basic.rb#9 + def padding; end + + # Sets the output padding, not allowing less than zero values. + # + # source://thor//lib/thor/shell/basic.rb#37 + def padding=(value); end + + # Prints values in columns + # + # ==== Parameters + # Array[String, String, ...] + # + # source://thor//lib/thor/shell/basic.rb#165 + def print_in_columns(array); end + + # Prints a table. + # + # ==== Parameters + # Array[Array[String, String, ...]] + # + # ==== Options + # indent<Integer>:: Indent the first column by indent value. + # colwidth<Integer>:: Force the first column to colwidth spaces wide. + # borders<Boolean>:: Adds ascii borders. + # + # source://thor//lib/thor/shell/basic.rb#180 + def print_table(array, options = T.unsafe(nil)); end + + # Prints a long string, word-wrapping the text to the current width of the + # terminal display. Ideal for printing heredocs. + # + # ==== Parameters + # String + # + # ==== Options + # indent<Integer>:: Indent each line of the printed paragraph by indent value. + # + # source://thor//lib/thor/shell/basic.rb#194 + def print_wrapped(message, options = T.unsafe(nil)); end + + # Say (print) something to the user. If the sentence ends with a whitespace + # or tab character, a new line is not appended (print + flush). Otherwise + # are passed straight to puts (behavior got from Highline). + # + # ==== Example + # say("I know you knew that.") + # + # source://thor//lib/thor/shell/basic.rb#98 + def say(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end + + # Say (print) an error to the user. If the sentence ends with a whitespace + # or tab character, a new line is not appended (print + flush). Otherwise + # are passed straight to puts (behavior got from Highline). + # + # ==== Example + # say_error("error: something went wrong") + # + # source://thor//lib/thor/shell/basic.rb#115 + def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end + + # Say a status with the given color and appends the message. Since this + # method is used frequently by actions, it allows nil or false to be given + # in log_status, avoiding the message from being shown. If a Symbol is + # given in log_status, it's used as the color. + # + # source://thor//lib/thor/shell/basic.rb#130 + def say_status(status, message, log_status = T.unsafe(nil)); end + + # Apply color to the given string with optional bold. Disabled in the + # Thor::Shell::Basic class. + # + # source://thor//lib/thor/shell/basic.rb#258 + def set_color(string, *_arg1); end + + # Make a question the to user and returns true if the user replies "y" or + # "yes". + # + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#149 + def yes?(statement, color = T.unsafe(nil)); end + + protected + + # source://thor//lib/thor/shell/basic.rb#362 + def answer_match(possibilities, answer, case_insensitive); end + + # source://thor//lib/thor/shell/basic.rb#349 + def ask_filtered(statement, color, options); end + + # source://thor//lib/thor/shell/basic.rb#332 + def ask_simply(statement, color, options); end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#269 + def can_display_colors?; end + + # source://thor//lib/thor/shell/basic.rb#296 + def file_collision_help(block_given); end + + # source://thor//lib/thor/shell/basic.rb#383 + def git_merge_tool; end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#286 + def is?(value); end + + # source://thor//lib/thor/shell/basic.rb#273 + def lookup_color(color); end + + # source://thor//lib/thor/shell/basic.rb#370 + def merge(destination, content); end + + # source://thor//lib/thor/shell/basic.rb#379 + def merge_tool; end + + # source://thor//lib/thor/shell/basic.rb#264 + def prepare_message(message, *color); end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#324 + def quiet?; end + + # source://thor//lib/thor/shell/basic.rb#313 + def show_diff(destination, content); end + + # source://thor//lib/thor/shell/basic.rb#282 + def stderr; end + + # source://thor//lib/thor/shell/basic.rb#278 + def stdout; end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/basic.rb#328 + def unix?; end +end + +# Inherit from Thor::Shell::Basic and add set_color behavior. Check +# Thor::Shell::Basic to see all available methods. +# +# source://thor//lib/thor/shell/color.rb#9 +class Thor::Shell::Color < ::Thor::Shell::Basic + include ::LCSDiff + + # Set color by using a string or one of the defined constants. If a third + # option is set to true, it also adds bold to the string. This is based + # on Highline implementation and it automatically appends CLEAR to the end + # of the returned String. + # + # Pass foreground, background and bold options to this method as + # symbols. + # + # Example: + # + # set_color "Hi!", :red, :on_white, :bold + # + # The available colors are: + # + # :bold + # :black + # :red + # :green + # :yellow + # :blue + # :magenta + # :cyan + # :white + # :on_black + # :on_red + # :on_green + # :on_yellow + # :on_blue + # :on_magenta + # :on_cyan + # :on_white + # + # source://thor//lib/thor/shell/color.rb#82 + def set_color(string, *colors); end + + protected + + # @return [Boolean] + # + # source://thor//lib/thor/shell/color.rb#110 + def are_colors_disabled?; end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/color.rb#106 + def are_colors_supported?; end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/color.rb#102 + def can_display_colors?; end +end + +# Set the terminal's foreground ANSI color to black. +# +# source://thor//lib/thor/shell/color.rb#18 +Thor::Shell::Color::BLACK = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to blue. +# +# source://thor//lib/thor/shell/color.rb#26 +Thor::Shell::Color::BLUE = T.let(T.unsafe(nil), String) + +# The start of an ANSI bold sequence. +# +# source://thor//lib/thor/shell/color.rb#15 +Thor::Shell::Color::BOLD = T.let(T.unsafe(nil), String) + +# Embed in a String to clear all previous ANSI sequences. +# +# source://thor//lib/thor/shell/color.rb#13 +Thor::Shell::Color::CLEAR = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to cyan. +# +# source://thor//lib/thor/shell/color.rb#30 +Thor::Shell::Color::CYAN = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to green. +# +# source://thor//lib/thor/shell/color.rb#22 +Thor::Shell::Color::GREEN = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to magenta. +# +# source://thor//lib/thor/shell/color.rb#28 +Thor::Shell::Color::MAGENTA = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to black. +# +# source://thor//lib/thor/shell/color.rb#35 +Thor::Shell::Color::ON_BLACK = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to blue. +# +# source://thor//lib/thor/shell/color.rb#43 +Thor::Shell::Color::ON_BLUE = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to cyan. +# +# source://thor//lib/thor/shell/color.rb#47 +Thor::Shell::Color::ON_CYAN = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to green. +# +# source://thor//lib/thor/shell/color.rb#39 +Thor::Shell::Color::ON_GREEN = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to magenta. +# +# source://thor//lib/thor/shell/color.rb#45 +Thor::Shell::Color::ON_MAGENTA = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to red. +# +# source://thor//lib/thor/shell/color.rb#37 +Thor::Shell::Color::ON_RED = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to white. +# +# source://thor//lib/thor/shell/color.rb#49 +Thor::Shell::Color::ON_WHITE = T.let(T.unsafe(nil), String) + +# Set the terminal's background ANSI color to yellow. +# +# source://thor//lib/thor/shell/color.rb#41 +Thor::Shell::Color::ON_YELLOW = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to red. +# +# source://thor//lib/thor/shell/color.rb#20 +Thor::Shell::Color::RED = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to white. +# +# source://thor//lib/thor/shell/color.rb#32 +Thor::Shell::Color::WHITE = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground ANSI color to yellow. +# +# source://thor//lib/thor/shell/color.rb#24 +Thor::Shell::Color::YELLOW = T.let(T.unsafe(nil), String) + +# source://thor//lib/thor/shell/column_printer.rb#5 +class Thor::Shell::ColumnPrinter + # @return [ColumnPrinter] a new instance of ColumnPrinter + # + # source://thor//lib/thor/shell/column_printer.rb#8 + def initialize(stdout, options = T.unsafe(nil)); end + + # Returns the value of attribute options. + # + # source://thor//lib/thor/shell/column_printer.rb#6 + def options; end + + # source://thor//lib/thor/shell/column_printer.rb#14 + def print(array); end + + # Returns the value of attribute stdout. + # + # source://thor//lib/thor/shell/column_printer.rb#6 + def stdout; end +end + +# Inherit from Thor::Shell::Basic and add set_color behavior. Check +# Thor::Shell::Basic to see all available methods. +# +# source://thor//lib/thor/shell/html.rb#9 +class Thor::Shell::HTML < ::Thor::Shell::Basic + include ::LCSDiff + + # Ask something to the user and receives a response. + # + # ==== Example + # ask("What is your name?") + # + # TODO: Implement #ask for Thor::Shell::HTML + # + # @raise [NotImplementedError] + # + # source://thor//lib/thor/shell/html.rb#73 + def ask(statement, color = T.unsafe(nil)); end + + # Set color by using a string or one of the defined constants. If a third + # option is set to true, it also adds bold to the string. This is based + # on Highline implementation and it automatically appends CLEAR to the end + # of the returned String. + # + # source://thor//lib/thor/shell/html.rb#54 + def set_color(string, *colors); end + + protected + + # @return [Boolean] + # + # source://thor//lib/thor/shell/html.rb#79 + def can_display_colors?; end +end + +# Set the terminal's foreground HTML color to black. +# +# source://thor//lib/thor/shell/html.rb#16 +Thor::Shell::HTML::BLACK = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to blue. +# +# source://thor//lib/thor/shell/html.rb#24 +Thor::Shell::HTML::BLUE = T.let(T.unsafe(nil), String) + +# The start of an HTML bold sequence. +# +# source://thor//lib/thor/shell/html.rb#13 +Thor::Shell::HTML::BOLD = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to cyan. +# +# source://thor//lib/thor/shell/html.rb#28 +Thor::Shell::HTML::CYAN = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to green. +# +# source://thor//lib/thor/shell/html.rb#20 +Thor::Shell::HTML::GREEN = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to magenta. +# +# source://thor//lib/thor/shell/html.rb#26 +Thor::Shell::HTML::MAGENTA = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to black. +# +# source://thor//lib/thor/shell/html.rb#33 +Thor::Shell::HTML::ON_BLACK = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to blue. +# +# source://thor//lib/thor/shell/html.rb#41 +Thor::Shell::HTML::ON_BLUE = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to cyan. +# +# source://thor//lib/thor/shell/html.rb#45 +Thor::Shell::HTML::ON_CYAN = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to green. +# +# source://thor//lib/thor/shell/html.rb#37 +Thor::Shell::HTML::ON_GREEN = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to magenta. +# +# source://thor//lib/thor/shell/html.rb#43 +Thor::Shell::HTML::ON_MAGENTA = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to red. +# +# source://thor//lib/thor/shell/html.rb#35 +Thor::Shell::HTML::ON_RED = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to white. +# +# source://thor//lib/thor/shell/html.rb#47 +Thor::Shell::HTML::ON_WHITE = T.let(T.unsafe(nil), String) + +# Set the terminal's background HTML color to yellow. +# +# source://thor//lib/thor/shell/html.rb#39 +Thor::Shell::HTML::ON_YELLOW = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to red. +# +# source://thor//lib/thor/shell/html.rb#18 +Thor::Shell::HTML::RED = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to white. +# +# source://thor//lib/thor/shell/html.rb#30 +Thor::Shell::HTML::WHITE = T.let(T.unsafe(nil), String) + +# Set the terminal's foreground HTML color to yellow. +# +# source://thor//lib/thor/shell/html.rb#22 +Thor::Shell::HTML::YELLOW = T.let(T.unsafe(nil), String) + +# source://thor//lib/thor/shell.rb#24 +Thor::Shell::SHELL_DELEGATED_METHODS = T.let(T.unsafe(nil), Array) + +# source://thor//lib/thor/shell/table_printer.rb#6 +class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter + # @return [TablePrinter] a new instance of TablePrinter + # + # source://thor//lib/thor/shell/table_printer.rb#9 + def initialize(stdout, options = T.unsafe(nil)); end + + # source://thor//lib/thor/shell/table_printer.rb#18 + def print(array); end + + private + + # source://thor//lib/thor/shell/table_printer.rb#120 + def as_unicode; end + + # source://thor//lib/thor/shell/table_printer.rb#72 + def format_cell(column, row_size, index); end + + # source://thor//lib/thor/shell/table_printer.rb#115 + def indentation; end + + # source://thor//lib/thor/shell/table_printer.rb#47 + def prepare(array); end + + # source://thor//lib/thor/shell/table_printer.rb#96 + def print_border_separator; end + + # source://thor//lib/thor/shell/table_printer.rb#103 + def truncate(string); end +end + +# source://thor//lib/thor/shell/table_printer.rb#7 +Thor::Shell::TablePrinter::BORDER_SEPARATOR = T.let(T.unsafe(nil), Symbol) + +# source://thor//lib/thor/shell/terminal.rb#3 +module Thor::Shell::Terminal + class << self + # source://thor//lib/thor/shell/terminal.rb#9 + def terminal_width; end + + # @return [Boolean] + # + # source://thor//lib/thor/shell/terminal.rb#20 + def unix?; end + + private + + # Calculate the dynamic width of the terminal + # + # source://thor//lib/thor/shell/terminal.rb#27 + def dynamic_width; end + + # source://thor//lib/thor/shell/terminal.rb#31 + def dynamic_width_stty; end + + # source://thor//lib/thor/shell/terminal.rb#35 + def dynamic_width_tput; end + end +end + +# source://thor//lib/thor/shell/terminal.rb#4 +Thor::Shell::Terminal::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) + +# source://thor//lib/thor/shell/wrapped_printer.rb#6 +class Thor::Shell::WrappedPrinter < ::Thor::Shell::ColumnPrinter + # source://thor//lib/thor/shell/wrapped_printer.rb#7 + def print(message); end +end + +# source://thor//lib/thor/base.rb#23 +Thor::TEMPLATE_EXTNAME = T.let(T.unsafe(nil), String) + +# Thor methods that should not be overwritten by the user. +# +# source://thor//lib/thor/base.rb#20 +Thor::THOR_RESERVED_WORDS = T.let(T.unsafe(nil), Array) + +# source://thor//lib/thor/command.rb#126 +Thor::Task = Thor::Command + +# Raised when a command was not found. +# +# source://thor//lib/thor/error.rb#24 +class Thor::UndefinedCommandError < ::Thor::Error + include ::Thor::Correctable + + # @return [UndefinedCommandError] a new instance of UndefinedCommandError + # + # source://thor//lib/thor/error.rb#43 + def initialize(command, all_commands, namespace); end + + # Returns the value of attribute all_commands. + # + # source://thor//lib/thor/error.rb#41 + def all_commands; end + + # Returns the value of attribute command. + # + # source://thor//lib/thor/error.rb#41 + def command; end +end + +# source://thor//lib/thor/error.rb#25 +class Thor::UndefinedCommandError::SpellChecker + # @return [SpellChecker] a new instance of SpellChecker + # + # source://thor//lib/thor/error.rb#28 + def initialize(error); end + + # source://thor//lib/thor/error.rb#32 + def corrections; end + + # Returns the value of attribute error. + # + # source://thor//lib/thor/error.rb#26 + def error; end + + # source://thor//lib/thor/error.rb#36 + def spell_checker; end +end + +# source://thor//lib/thor/error.rb#55 +Thor::UndefinedTaskError = Thor::UndefinedCommandError + +# source://thor//lib/thor/error.rb#65 +class Thor::UnknownArgumentError < ::Thor::Error + include ::Thor::Correctable + + # @return [UnknownArgumentError] a new instance of UnknownArgumentError + # + # source://thor//lib/thor/error.rb#85 + def initialize(switches, unknown); end + + # Returns the value of attribute switches. + # + # source://thor//lib/thor/error.rb#83 + def switches; end + + # Returns the value of attribute unknown. + # + # source://thor//lib/thor/error.rb#83 + def unknown; end +end + +# source://thor//lib/thor/error.rb#66 +class Thor::UnknownArgumentError::SpellChecker + # @return [SpellChecker] a new instance of SpellChecker + # + # source://thor//lib/thor/error.rb#69 + def initialize(error); end + + # source://thor//lib/thor/error.rb#73 + def corrections; end + + # Returns the value of attribute error. + # + # source://thor//lib/thor/error.rb#67 + def error; end + + # source://thor//lib/thor/error.rb#78 + def spell_checker; end +end + +# This module holds several utilities: +# +# 1) Methods to convert thor namespaces to constants and vice-versa. +# +# Thor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> "foo:bar:baz" +# +# 2) Loading thor files and sandboxing: +# +# Thor::Util.load_thorfile("~/.thor/foo") +# +# source://thor//lib/thor/util.rb#17 +module Thor::Util + class << self + # Receives a string and convert it to camel case. camel_case returns CamelCase. + # + # ==== Parameters + # String + # + # ==== Returns + # String + # + # source://thor//lib/thor/util.rb#104 + def camel_case(str); end + + # Returns a string that has had any glob characters escaped. + # The glob characters are `* ? { } [ ]`. + # + # ==== Examples + # + # Thor::Util.escape_globs('[apps]') # => '\[apps\]' + # + # ==== Parameters + # String + # + # ==== Returns + # String + # + # source://thor//lib/thor/util.rb#264 + def escape_globs(path); end + + # Returns a string that has had any HTML characters escaped. + # + # ==== Examples + # + # Thor::Util.escape_html('<div>') # => "<div>" + # + # ==== Parameters + # String + # + # ==== Returns + # String + # + # source://thor//lib/thor/util.rb#280 + def escape_html(string); end + + # Receives a namespace and search for it in the Thor::Base subclasses. + # + # ==== Parameters + # namespace<String>:: The namespace to search for. + # + # source://thor//lib/thor/util.rb#24 + def find_by_namespace(namespace); end + + # Receives a namespace and tries to retrieve a Thor or Thor::Group class + # from it. It first searches for a class using the all the given namespace, + # if it's not found, removes the highest entry and searches for the class + # again. If found, returns the highest entry as the class name. + # + # ==== Examples + # + # class Foo::Bar < Thor + # def baz + # end + # end + # + # class Baz::Foo < Thor::Group + # end + # + # Thor::Util.namespace_to_thor_class("foo:bar") #=> Foo::Bar, nil # will invoke default command + # Thor::Util.namespace_to_thor_class("baz:foo") #=> Baz::Foo, nil + # Thor::Util.namespace_to_thor_class("foo:bar:baz") #=> Foo::Bar, "baz" + # + # ==== Parameters + # namespace<String> + # + # source://thor//lib/thor/util.rb#131 + def find_class_and_command_by_namespace(namespace, fallback = T.unsafe(nil)); end + + # Receives a namespace and tries to retrieve a Thor or Thor::Group class + # from it. It first searches for a class using the all the given namespace, + # if it's not found, removes the highest entry and searches for the class + # again. If found, returns the highest entry as the class name. + # + # ==== Examples + # + # class Foo::Bar < Thor + # def baz + # end + # end + # + # class Baz::Foo < Thor::Group + # end + # + # Thor::Util.namespace_to_thor_class("foo:bar") #=> Foo::Bar, nil # will invoke default command + # Thor::Util.namespace_to_thor_class("baz:foo") #=> Baz::Foo, nil + # Thor::Util.namespace_to_thor_class("foo:bar:baz") #=> Foo::Bar, "baz" + # + # ==== Parameters + # namespace<String> + # + # source://thor//lib/thor/util.rb#131 + def find_class_and_task_by_namespace(namespace, fallback = T.unsafe(nil)); end + + # Where to look for Thor files. + # + # source://thor//lib/thor/util.rb#213 + def globs_for(path); end + + # Receives a path and load the thor file in the path. The file is evaluated + # inside the sandbox to avoid namespacing conflicts. + # + # source://thor//lib/thor/util.rb#153 + def load_thorfile(path, content = T.unsafe(nil), debug = T.unsafe(nil)); end + + # Receives a constant and converts it to a Thor namespace. Since Thor + # commands can be added to a sandbox, this method is also responsible for + # removing the sandbox namespace. + # + # This method should not be used in general because it's used to deal with + # older versions of Thor. On current versions, if you need to get the + # namespace from a class, just call namespace on it. + # + # ==== Parameters + # constant<Object>:: The constant to be converted to the thor path. + # + # ==== Returns + # String:: If we receive Foo::Bar::Baz it returns "foo:bar:baz" + # + # source://thor//lib/thor/util.rb#43 + def namespace_from_thor_class(constant); end + + # Given the contents, evaluate it inside the sandbox and returns the + # namespaces defined in the sandbox. + # + # ==== Parameters + # contents<String> + # + # ==== Returns + # Array[Object] + # + # source://thor//lib/thor/util.rb#58 + def namespaces_in_content(contents, file = T.unsafe(nil)); end + + # Return the path to the ruby interpreter taking into account multiple + # installations and windows extensions. + # + # source://thor//lib/thor/util.rb#221 + def ruby_command; end + + # Receives a string and convert it to snake case. SnakeCase returns snake_case. + # + # ==== Parameters + # String + # + # ==== Returns + # String + # + # source://thor//lib/thor/util.rb#90 + def snake_case(str); end + + # Returns the thor classes declared inside the given class. + # + # source://thor//lib/thor/util.rb#74 + def thor_classes_in(klass); end + + # Returns the root where thor files are located, depending on the OS. + # + # source://thor//lib/thor/util.rb#192 + def thor_root; end + + # Returns the files in the thor root. On Windows thor_root will be something + # like this: + # + # C:\Documents and Settings\james\.thor + # + # If we don't #gsub the \ character, Dir.glob will fail. + # + # source://thor//lib/thor/util.rb#203 + def thor_root_glob; end + + # source://thor//lib/thor/util.rb#168 + def user_home; end + end +end diff --git a/ruby-client-sdk/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi new file mode 100755 index 000000000..ccdfd066d --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi @@ -0,0 +1,65 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `unicode-display_width` gem. +# Please instead update this file by running `bin/tapioca gem unicode-display_width`. + +# source://unicode-display_width//lib/unicode/display_width/constants.rb#3 +module Unicode; end + +# source://unicode-display_width//lib/unicode/display_width/constants.rb#4 +class Unicode::DisplayWidth + # @return [DisplayWidth] a new instance of DisplayWidth + # + # source://unicode-display_width//lib/unicode/display_width.rb#104 + def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end + + # source://unicode-display_width//lib/unicode/display_width.rb#110 + def get_config(**kwargs); end + + # source://unicode-display_width//lib/unicode/display_width.rb#118 + def of(string, **kwargs); end + + class << self + # source://unicode-display_width//lib/unicode/display_width/index.rb#14 + def decompress_index(index, level); end + + # source://unicode-display_width//lib/unicode/display_width.rb#86 + def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end + + # source://unicode-display_width//lib/unicode/display_width.rb#12 + def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end + + # Same as .width_no_overwrite - but with applying overwrites for each char + # + # source://unicode-display_width//lib/unicode/display_width.rb#57 + def width_all_features(string, ambiguous, overwrite, options); end + + # source://unicode-display_width//lib/unicode/display_width.rb#30 + def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); end + end +end + +# source://unicode-display_width//lib/unicode/display_width.rb#9 +Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://unicode-display_width//lib/unicode/display_width/constants.rb#7 +Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String) + +# source://unicode-display_width//lib/unicode/display_width.rb#10 +Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Array) + +# source://unicode-display_width//lib/unicode/display_width/index.rb#11 +Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array) + +# source://unicode-display_width//lib/unicode/display_width/constants.rb#8 +Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String) + +# source://unicode-display_width//lib/unicode/display_width.rb#8 +Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer) + +# source://unicode-display_width//lib/unicode/display_width/constants.rb#6 +Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String) + +# source://unicode-display_width//lib/unicode/display_width/constants.rb#5 +Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/ruby-client-sdk/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi new file mode 100755 index 000000000..3e94330ef --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi @@ -0,0 +1,428 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `yard-sorbet` gem. +# Please instead update this file by running `bin/tapioca gem yard-sorbet`. + +class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base + include ::YARDSorbet::Handlers::StructClassHandler +end + +# Types are documentation +# +# source://yard-sorbet//lib/yard-sorbet/version.rb#5 +module YARDSorbet; end + +# Extract & re-add directives to a docstring +# +# source://yard-sorbet//lib/yard-sorbet/directives.rb#6 +module YARDSorbet::Directives + class << self + # source://yard-sorbet//lib/yard-sorbet/directives.rb#21 + sig { params(docstring: ::String, directives: T::Array[::String]).void } + def add_directives(docstring, directives); end + + # source://yard-sorbet//lib/yard-sorbet/directives.rb#10 + sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) } + def extract_directives(docstring); end + end +end + +# Custom YARD Handlers +# +# @see https://rubydoc.info/gems/yard/YARD/Handlers/Base YARD Base Handler documentation +# +# source://yard-sorbet//lib/yard-sorbet/handlers.rb#7 +module YARDSorbet::Handlers; end + +# Apllies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present). +# +# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7 +class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base + # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#21 + sig { void } + def process; end +end + +# Extra text for class namespaces +# +# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#18 +YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String) + +# The text accompanying the `@abstract` tag. +# +# @see https://github.com/lsegal/yard/blob/main/templates/default/docstring/html/abstract.erb The `@abstract` tag template +# +# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#16 +YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String) + +# Handle `enums` calls, registering enum values as constants +# +# source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#7 +class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base + # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#14 + sig { void } + def process; end + + private + + # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#29 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) } + def const_assign_node?(node); end +end + +# Extends any modules included via `mixes_in_class_methods` +# +# @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation +# +# source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#9 +class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base + # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#16 + sig { void } + def process; end + + private + + # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#28 + sig { returns(::YARD::CodeObjects::NamespaceObject) } + def included_in; end +end + +# Tracks modules that invoke `mixes_in_class_methods` for use in {IncludeHandler} +# +# @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation +# +# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9 +class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base + # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#23 + sig { void } + def process; end + + class << self + # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#18 + sig { params(code_obj: ::String).returns(T.nilable(T::Array[::String])) } + def mixed_in_class_methods(code_obj); end + end +end + +# A YARD Handler for Sorbet type declarations +# +# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#7 +class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base + # Swap the method definition docstring and the sig docstring. + # Parse relevant parts of the `sig` and include them as well. + # + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#24 + sig { void } + def process; end + + private + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73 + sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void } + def document_attr_methods(method_objects); end + + # An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr* + # declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr* + # declarations. + # + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#60 + sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) } + def merged_into_attr?(attr_node); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#78 + sig do + params( + attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode), + docstring: T.nilable(::String), + include_params: T::Boolean + ).void + end + def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#99 + sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void } + def parse_params(node, docstring); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#109 + sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void } + def parse_return(node, docstring); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#87 + sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void } + def parse_sig(docstring, include_params: T.unsafe(nil)); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#50 + sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).void } + def process_attr(attr_node); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#36 + sig { params(def_node: ::YARD::Parser::Ruby::MethodDefinitionNode).void } + def process_def(def_node); end +end + +# YARD types that can have docstrings attached to them +# +# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#14 +YARDSorbet::Handlers::SigHandler::Documentable = T.type_alias { T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) } + +# Class-level handler that folds all `const` and `prop` declarations into the constructor documentation +# this needs to be injected as a module otherwise the default Class handler will overwrite documentation +# +# @note this module is included in `YARD::Handlers::Ruby::ClassHandler` +# +# source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#10 +module YARDSorbet::Handlers::StructClassHandler + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#14 + sig { void } + def process; end + + private + + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#50 + sig do + params( + object: ::YARD::CodeObjects::MethodObject, + props: T::Array[::YARDSorbet::TStructProp], + docstring: ::YARD::Docstring, + directives: T::Array[::String] + ).void + end + def decorate_t_struct_init(object, props, docstring, directives); end + + # Create a virtual `initialize` method with all the `prop`/`const` arguments + # + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#30 + sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void } + def process_t_struct_props(props, class_ns); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#60 + sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) } + def to_object_parameters(props); end +end + +# Handles all `const`/`prop` calls, creating accessor methods, and compiles them for later usage at the class level +# in creating a constructor +# +# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#8 +class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#15 + sig { void } + def process; end + + private + + # Add the source and docstring to the method object + # + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#28 + sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void } + def decorate_object(object, prop); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#38 + sig { returns(T::Boolean) } + def immutable?; end + + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#44 + sig { params(kwd: ::String).returns(T.nilable(::String)) } + def kw_arg(kwd); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#49 + sig { params(name: ::String).returns(::YARDSorbet::TStructProp) } + def make_prop(name); end + + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60 + sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) } + def params; end + + # Register the field explicitly as an attribute. + # + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#66 + sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void } + def register_attrs(object, name); end + + # Store the prop for use in the constructor definition + # + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#74 + sig { params(prop: ::YARDSorbet::TStructProp).void } + def update_state(prop); end +end + +# Helper methods for working with `YARD` AST Nodes +# +# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#6 +module YARDSorbet::NodeUtils + class << self + # Traverse AST nodes in breadth-first order + # + # @note This will skip over some node types. + # @yield [YARD::Parser::Ruby::AstNode] + # + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#21 + sig do + params( + node: ::YARD::Parser::Ruby::AstNode, + _blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void + ).void + end + def bfs_traverse(node, &_blk); end + + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#32 + sig { params(node: ::YARD::Parser::Ruby::AstNode).void } + def delete_node(node); end + + # Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like + # + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#38 + sig do + params( + node: ::YARD::Parser::Ruby::AstNode + ).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode)) + end + def get_method_node(node); end + + # Find and return the adjacent node (ascending) + # + # @raise [IndexError] if the node does not have an adjacent sibling (ascending) + # + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#45 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) } + def sibling_node(node); end + + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#52 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) } + def sigable_node?(node); end + + # @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names + # + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#63 + sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) } + def validated_attribute_names(attr_node); end + end +end + +# Command node types that can have type signatures +# +# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#10 +YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array) + +# Skip these method contents during BFS node traversal, they can have their own nested types via `T.Proc` +# +# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#12 +YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array) + +# Node types that can have type signatures +# +# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#14 +YARDSorbet::NodeUtils::SigableNode = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) } + +# Translate `sig` type syntax to `YARD` type syntax. +# +# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#6 +module YARDSorbet::SigToYARD + class << self + # @see https://yardoc.org/types.html + # + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#23 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } + def convert(node); end + + private + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#61 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) } + def build_generic_type(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#70 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } + def convert_aref(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#82 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } + def convert_array(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#90 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } + def convert_collection(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#97 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } + def convert_hash(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#105 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } + def convert_list(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#31 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } + def convert_node(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#43 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } + def convert_node_type(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#110 + sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) } + def convert_t_method(node); end + + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#121 + sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } + def convert_unknown(node); end + end +end + +# Used to store the details of a `T::Struct` `prop` definition +# +# source://yard-sorbet//lib/yard-sorbet/t_struct_prop.rb#6 +class YARDSorbet::TStructProp < ::T::Struct + const :default, T.nilable(::String) + const :doc, ::String + const :prop_name, ::String + const :source, ::String + const :types, T::Array[::String] + + class << self + # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# Helper methods for working with `YARD` tags +# +# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#6 +module YARDSorbet::TagUtils + class << self + # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#16 + sig do + params( + docstring: ::YARD::Docstring, + tag_name: ::String, + name: T.nilable(::String) + ).returns(T.nilable(::YARD::Tags::Tag)) + end + def find_tag(docstring, tag_name, name); end + + # Create or update a `YARD` tag with type information + # + # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#30 + sig do + params( + docstring: ::YARD::Docstring, + tag_name: ::String, + types: T.nilable(T::Array[::String]), + name: T.nilable(::String), + text: ::String + ).void + end + def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil)); end + end +end + +# The `void` return type, as a constant to reduce array allocations +# +# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#10 +YARDSorbet::TagUtils::VOID_RETURN_TYPE = T.let(T.unsafe(nil), Array) + +# {https://rubygems.org/gems/yard-sorbet Version history} +# +# source://yard-sorbet//lib/yard-sorbet/version.rb#7 +YARDSorbet::VERSION = T.let(T.unsafe(nil), String) diff --git a/ruby-client-sdk/sorbet/rbi/gems/yard@0.9.34.rbi b/ruby-client-sdk/sorbet/rbi/gems/yard@0.9.34.rbi new file mode 100755 index 000000000..fbb05f842 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/yard@0.9.34.rbi @@ -0,0 +1,18219 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `yard` gem. +# Please instead update this file by running `bin/tapioca gem yard`. + +# source://yard//lib/yard.rb#61 +::RUBY18 = T.let(T.unsafe(nil), FalseClass) + +# source://yard//lib/yard.rb#62 +::RUBY19 = T.let(T.unsafe(nil), TrueClass) + +# source://yard//lib/yard/core_ext/array.rb#2 +class Array + include ::Enumerable + + # Places values before or after another object (by value) in + # an array. This is used in tandem with the before and after + # methods of the {Insertion} class. + # + # @example Places an item before another + # [1, 2, 3].place(4).before(3) # => [1, 2, 4, 3] + # @example Places an item after another + # [:a, :b, :c].place(:x).after(:a) # => [:a, :x, :b, :c] + # @param values [Array] value to insert + # @return [Insertion] an insertion object to + # @see Insertion#before + # @see Insertion#after + # + # source://yard//lib/yard/core_ext/array.rb#15 + def place(*values); end +end + +# source://yard//lib/yard/core_ext/file.rb#4 +class File < ::IO + class << self + # Cleans a path by removing extraneous '..', '.' and '/' characters + # + # @example Clean a path + # File.cleanpath('a/b//./c/../e') # => "a/b/e" + # @param path [String] the path to clean + # @param rel_root [Boolean] allows relative path above root value + # @return [String] the sanitized path + # + # source://yard//lib/yard/core_ext/file.rb#37 + def cleanpath(path, rel_root = T.unsafe(nil)); end + + # Forces opening a file (for writing) by first creating the file's directory + # + # @param file [String] the filename to open + # @since 0.5.2 + # + # source://yard//lib/yard/core_ext/file.rb#57 + def open!(file, *args, &block); end + + # Reads a file with binary encoding + # + # @return [String] the ascii-8bit encoded data + # @since 0.5.3 + # + # source://yard//lib/yard/core_ext/file.rb#66 + def read_binary(file); end + + # Turns a path +to+ into a relative path from starting + # point +from+. The argument +from+ is assumed to be + # a filename. To treat it as a directory, make sure it + # ends in +File::SEPARATOR+ ('/' on UNIX filesystems). + # + # @param from [String] the starting filename + # (or directory with +from_isdir+ set to +true+). + # @param to [String] the final path that should be made relative. + # @return [String] the relative path from +from+ to +to+. + # + # source://yard//lib/yard/core_ext/file.rb#19 + def relative_path(from, to); end + end +end + +# source://yard//lib/yard/core_ext/file.rb#5 +File::RELATIVE_PARENTDIR = T.let(T.unsafe(nil), String) + +# source://yard//lib/yard/core_ext/file.rb#6 +File::RELATIVE_SAMEDIR = T.let(T.unsafe(nil), String) + +# :stopdoc: +# +# source://yard//lib/yard/rubygems/backports/gem.rb#2 +module Gem + class << self + # Returns the Gem::SourceIndex of specifications that are in the Gem.path + # + # source://yard//lib/yard/rubygems/backports/gem.rb#6 + def source_index; end + end +end + +# Cache is an alias for SourceIndex to allow older YAMLized source index +# objects to load properly. +# +# source://yard//lib/yard/rubygems/backports/source_index.rb#363 +Gem::Cache = Gem::SourceIndex + +# The SourceIndex object indexes all the gems available from a +# particular source (e.g. a list of gem directories, or a remote +# source). A SourceIndex maps a gem full name to a gem +# specification. +# +# NOTE:: The class used to be named Cache, but that became +# confusing when cached source fetchers where introduced. The +# constant Gem::Cache is an alias for this class to allow old +# YAMLized source index objects to load properly. +# +# source://yard//lib/yard/rubygems/backports/source_index.rb#21 +class Gem::SourceIndex + include ::Enumerable + + # Constructs a source index instance from the provided specifications, which + # is a Hash of gem full names and Gem::Specifications. + # -- + # TODO merge @gems and @prerelease_gems and provide a separate method + # #prerelease_gems + # + # @return [SourceIndex] a new instance of SourceIndex + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#102 + def initialize(specifications = T.unsafe(nil)); end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#348 + def ==(other); end + + # Add a gem specification to the source index. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#193 + def add_spec(gem_spec, name = T.unsafe(nil)); end + + # Add gem specifications to the source index. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#202 + def add_specs(*gem_specs); end + + # TODO: remove method + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#109 + def all_gems; end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#352 + def dump; end + + # Iterate over the specifications in the source index. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#218 + def each(&block); end + + # Find a gem by an exact match on the short name. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#256 + def find_name(gem_name, requirement = T.unsafe(nil)); end + + # The signature for the given gem specification. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#242 + def gem_signature(gem_full_name); end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#34 + def gems; end + + # The signature for the source index. Changes in the signature indicate a + # change in the index. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#233 + def index_signature; end + + # Returns an Array specifications for the latest released versions + # of each gem in this index. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#143 + def latest_specs(include_prerelease = T.unsafe(nil)); end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#248 + def length; end + + # Reconstruct the source index from the specifications in +spec_dirs+. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#124 + def load_gems_in(*spec_dirs); end + + # Returns an Array of Gem::Specifications that are not up to date. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#330 + def outdated; end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#113 + def prerelease_gems; end + + # An array including only the prerelease gemspecs + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#179 + def prerelease_specs; end + + # Replaces the gems in the source index from specifications in the + # directories this source index was created from. Raises an exception if + # this source index wasn't created from a directory (via from_gems_in or + # from_installed_gems, or having spec_dirs set). + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#322 + def refresh!; end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#117 + def released_gems; end + + # An array including only the released gemspecs + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#186 + def released_specs; end + + # Remove a gem specification named +full_name+. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#211 + def remove_spec(full_name); end + + # Search for a gem by Gem::Dependency +gem_pattern+. If +only_platform+ + # is true, only gems matching Gem::Platform.local will be returned. An + # Array of matching Gem::Specification objects is returned. + # + # For backwards compatibility, a String or Regexp pattern may be passed as + # +gem_pattern+, and a Gem::Requirement for +platform_only+. This + # behavior is deprecated and will be removed. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#270 + def search(gem_pattern, platform_only = T.unsafe(nil)); end + + # source://yard//lib/yard/rubygems/backports/source_index.rb#248 + def size; end + + # Directories to use to refresh this SourceIndex when calling refresh! + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#39 + def spec_dirs; end + + # Directories to use to refresh this SourceIndex when calling refresh! + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#39 + def spec_dirs=(_arg0); end + + # The gem specification given a full gem spec name. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#225 + def specification(full_name); end + + class << self + # Creates a new SourceIndex from the ruby format gem specifications in + # +spec_dirs+. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#80 + def from_gems_in(*spec_dirs); end + + # Factory method to construct a source index instance for a given + # path. + # + # deprecated:: + # If supplied, from_installed_gems will act just like + # +from_gems_in+. This argument is deprecated and is provided + # just for backwards compatibility, and should not generally + # be used. + # + # return:: + # SourceIndex instance + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#61 + def from_installed_gems(*deprecated); end + + # Returns a list of directories from Gem.path that contain specifications. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#72 + def installed_spec_directories; end + + # Loads a ruby-format specification from +file_name+ and returns the + # loaded spec. + # + # source://yard//lib/yard/rubygems/backports/source_index.rb#90 + def load_specification(file_name); end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#17 +class IRB::SLex + # @return [SLex] a new instance of SLex + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#25 + def initialize; end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#60 + def create(token, preproc = T.unsafe(nil), postproc = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#29 + def def_rule(token, preproc = T.unsafe(nil), postproc = T.unsafe(nil), &block); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#36 + def def_rules(*tokens, &block); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#77 + def inspect; end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#64 + def match(token); end + + # need a check? + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#51 + def postproc(token); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#45 + def preproc(token, proc); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#56 + def search(token); end +end + +# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#18 +IRB::SLex::DOUT = T.let(T.unsafe(nil), IRB::Notifier::CompositeNotifier) + +# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#20 +IRB::SLex::D_DEBUG = T.let(T.unsafe(nil), IRB::Notifier::LeveledNotifier) + +# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#21 +IRB::SLex::D_DETAIL = T.let(T.unsafe(nil), IRB::Notifier::LeveledNotifier) + +# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#19 +IRB::SLex::D_WARN = T.let(T.unsafe(nil), IRB::Notifier::LeveledNotifier) + +# ---------------------------------------------------------------------- +# +# class Node - +# +# ---------------------------------------------------------------------- +# +# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#86 +class IRB::SLex::Node + # if postproc is nil, this node is an abstract node. + # if postproc is non-nil, this node is a real node. + # + # @return [Node] a new instance of Node + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#89 + def initialize(preproc = T.unsafe(nil), postproc = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#113 + def create_subnode(chrs, preproc = T.unsafe(nil), postproc = T.unsafe(nil)); end + + # chrs: String + # character array + # io must have getc()/ungetc(); and ungetc() must be + # able to be called arbitrary number of times. + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#161 + def match(chrs, op = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#198 + def match_io(io, op = T.unsafe(nil)); end + + # Returns the value of attribute postproc. + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#96 + def postproc; end + + # Sets the attribute postproc + # + # @param value the value to set the attribute postproc to. + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#96 + def postproc=(_arg0); end + + # Returns the value of attribute preproc. + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#95 + def preproc; end + + # Sets the attribute preproc + # + # @param value the value to set the attribute preproc to. + # + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#95 + def preproc=(_arg0); end + + # source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#98 + def search(chrs, opt = T.unsafe(nil)); end +end + +# The Insertion class inserts a value before or after another +# value in a list. +# +# @example +# Insertion.new([1, 2, 3], 4).before(3) # => [1, 2, 4, 3] +# +# source://yard//lib/yard/core_ext/insertion.rb#7 +class Insertion + # Creates an insertion object on a list with a value to be + # inserted. To finalize the insertion, call {#before} or + # {#after} on the object. + # + # @param list [Array] the list to perform the insertion on + # @param value [Object] the value to insert + # @return [Insertion] a new instance of Insertion + # + # source://yard//lib/yard/core_ext/insertion.rb#14 + def initialize(list, value); end + + # Inserts the value after +val+. + # + # @example If subsections are ignored + # Insertion.new([1, [2], 3], :X).after(1) # => [1, [2], :X, 3] + # @param val [Object] the object the value will be inserted after + # @param recursive [Boolean] look inside sublists + # + # source://yard//lib/yard/core_ext/insertion.rb#30 + def after(val, recursive = T.unsafe(nil)); end + + # Alias for {#after} with +recursive+ set to true + # + # @since 0.6.0 + # + # source://yard//lib/yard/core_ext/insertion.rb#38 + def after_any(val); end + + # Inserts the value before +val+ + # + # @param val [Object] the object the value will be inserted before + # @param recursive [Boolean] look inside sublists + # + # source://yard//lib/yard/core_ext/insertion.rb#22 + def before(val, recursive = T.unsafe(nil)); end + + # Alias for {#before} with +recursive+ set to true + # + # @since 0.6.0 + # + # source://yard//lib/yard/core_ext/insertion.rb#34 + def before_any(val); end + + private + + # This method performs the actual insertion + # + # @param val [Object] the value to insert + # @param rel [Fixnum] the relative index (0 or 1) of where the object + # should be placed + # @param recursive [Boolean] look inside sublists + # @param list [Array] the list to place objects into + # + # source://yard//lib/yard/core_ext/insertion.rb#49 + def insertion(val, rel, recursive = T.unsafe(nil), list = T.unsafe(nil)); end +end + +# source://yard//lib/yard/core_ext/module.rb#2 +class Module + # Returns the class name of a full module namespace path + # + # @example + # module A::B::C; class_name end # => "C" + # @return [String] the last part of a module path + # + # source://yard//lib/yard/core_ext/module.rb#8 + def class_name; end +end + +class Object < ::BasicObject + include ::Kernel + include ::PP::ObjectMixin + + private + + # source://yard//lib/yard/globals.rb#8 + def P(namespace, name = T.unsafe(nil), type = T.unsafe(nil)); end + + # source://yard//lib/yard/globals.rb#20 + def log; end +end + +# Keep track of Ruby version for compatibility code +# +# @deprecated Use {YARD.ruby18?} or {YARD.ruby19?} instead. +# +# source://yard//lib/yard.rb#61 +RUBY18 = T.let(T.unsafe(nil), FalseClass) + +# source://yard//lib/yard.rb#62 +RUBY19 = T.let(T.unsafe(nil), TrueClass) + +# source://yard//lib/yard/core_ext/string.rb#2 +class String + include ::Comparable + + # Splits text into tokens the way a shell would, handling quoted + # text as a single token. Use '\"' and "\'" to escape quotes and + # '\\' to escape a backslash. + # + # @return [Array] an array representing the tokens + # + # source://yard//lib/yard/core_ext/string.rb#8 + def shell_split; end +end + +# A subclass of Hash where all keys are converted into Symbols, and +# optionally, all String values are converted into Symbols. +# +# source://yard//lib/yard/core_ext/symbol_hash.rb#4 +class SymbolHash < ::Hash + # Creates a new SymbolHash object + # + # @param symbolize_value [Boolean] converts any String values into Symbols + # if this is set to +true+. + # @return [SymbolHash] a new instance of SymbolHash + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#9 + def initialize(symbolize_value = T.unsafe(nil)); end + + # Accessed a symbolized key + # + # @param key [#to_sym] the key to access + # @return [Object] the value associated with the key + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#49 + def [](key); end + + # Assigns a value to a symbolized key + # + # @param key [#to_sym] the key + # @param value [Object] the value to be assigned. If this is a String and + # values are set to be symbolized, it will be converted into a Symbol. + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#42 + def []=(key, value); end + + # Deleted a key and value associated with it + # + # @param key [#to_sym] the key to delete + # @return [void] + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#54 + def delete(key); end + + # Tests if a symbolized key exists + # + # @param key [#to_sym] the key to test + # @return [Boolean] whether the key exists + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#59 + def has_key?(key); end + + # Tests if a symbolized key exists + # + # @param key [#to_sym] the key to test + # @return [Boolean] whether the key exists + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#59 + def key?(key); end + + # Merges the contents of another hash into a new SymbolHash object + # + # @param hash [Hash] the hash of objects to copy + # @return [SymbolHash] a new SymbolHash containing the merged data + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#74 + def merge(hash); end + + # Updates the object with the contents of another Hash object. + # This method modifies the original SymbolHash object + # + # @param hash [Hash] the hash object to copy the values from + # @return [SymbolHash] self + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#67 + def merge!(hash); end + + # Updates the object with the contents of another Hash object. + # This method modifies the original SymbolHash object + # + # @param hash [Hash] the hash object to copy the values from + # @return [SymbolHash] self + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#67 + def update(hash); end + + class << self + # @overload [] + # @overload [] + # + # source://yard//lib/yard/core_ext/symbol_hash.rb#28 + def [](*hsh); end + end +end + +# Gem::YARDoc provides methods to generate YARDoc and yri data for installed gems +# upon gem installation. +# +# This file is automatically required by RubyGems 1.9 and newer. +# +# source://yard//lib/yard.rb#2 +module YARD + class << self + # Loads gems that match the name 'yard-*' (recommended) or 'yard_*' except + # those listed in +~/.yard/ignored_plugins+. This is called immediately + # after YARD is loaded to allow plugin support. + # + # @deprecated Use {Config.load_plugins} + # @return [Boolean] true if all plugins loaded successfully, false otherwise. + # + # source://yard//lib/yard.rb#31 + def load_plugins; end + + # An alias to {Parser::SourceParser}'s parsing method + # + # @example Parse a glob of files + # YARD.parse('lib/**/*.rb') + # @see Parser::SourceParser.parse + # + # source://yard//lib/yard.rb#20 + def parse(*args); end + + # An alias to {Parser::SourceParser}'s parsing method + # + # @example Parse a string of input + # YARD.parse_string('class Foo; end') + # @see Parser::SourceParser.parse_string + # + # source://yard//lib/yard.rb#27 + def parse_string(*args); end + + # @return [Boolean] whether YARD is being run in Ruby 1.8 mode + # + # source://yard//lib/yard.rb#44 + def ruby18?; end + + # @return [Boolean] whether YARD is being run in Ruby 1.9 mode + # + # source://yard//lib/yard.rb#47 + def ruby19?; end + + # @return [Boolean] whether YARD is being run in Ruby 2.0 + # + # source://yard//lib/yard.rb#50 + def ruby2?; end + + # @return [Boolean] whether YARD is being run in Ruby 3.1 + # + # source://yard//lib/yard.rb#56 + def ruby31?; end + + # @return [Boolean] whether YARD is being run in Ruby 3.0 + # + # source://yard//lib/yard.rb#53 + def ruby3?; end + + # @return [Boolean] whether YARD is being run inside of Windows + # + # source://yard//lib/yard.rb#34 + def windows?; end + end +end + +# Namespace for command-line interface components +# +# source://yard//lib/yard/autoload.rb#6 +module YARD::CLI; end + +# Abstract base class for CLI utilities. Provides some helper methods for +# the option parser +# +# @abstract +# @since 0.6.0 +# +# source://yard//lib/yard/cli/command.rb#11 +class YARD::CLI::Command + # @since 0.6.0 + # + # source://yard//lib/yard/cli/command.rb#16 + def description; end + + protected + + # Adds a set of common options to the tail of the OptionParser + # + # @param opts [OptionParser] the option parser object + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/command.rb#24 + def common_options(opts); end + + # Loads a Ruby script. If <tt>Config.options[:safe_mode]</tt> is enabled, + # this method will do nothing. + # + # @param file [String] the path to the script to load + # @since 0.6.2 + # + # source://yard//lib/yard/cli/command.rb#68 + def load_script(file); end + + # Parses the option and gracefully handles invalid switches + # + # @param opts [OptionParser] the option parser object + # @param args [Array<String>] the arguments passed from input. This + # array will be modified. + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/command.rb#55 + def parse_options(opts, args); end + + # Callback when an unrecognize option is parsed + # + # @param err [OptionParser::ParseError] the exception raised by the + # option parser + # @since 0.6.0 + # + # source://yard//lib/yard/cli/command.rb#80 + def unrecognized_option(err); end + + class << self + # Helper method to run the utility on an instance. + # + # @see #run + # @since 0.6.0 + # + # source://yard//lib/yard/cli/command.rb#14 + def run(*args); end + end +end + +# This class parses a command name out of the +yard+ CLI command and calls +# that command in the form: +# +# $ yard command_name [options] +# +# If no command or arguments are specified, or if the arguments immediately +# begin with a +--opt+ (not +--help+), the {default_command} will be used +# (which itself defaults to +:doc+). +# +# == Adding a Command +# +# To add a custom command via plugin, create a mapping in {commands} from +# the Symbolic command name to the {Command} class that implements the +# command. To implement a command, see the documentation for the {Command} +# class. +# +# @see Command +# @see commands +# @see default_command +# +# source://yard//lib/yard/cli/command_parser.rb#23 +class YARD::CLI::CommandParser + # @return [CommandParser] a new instance of CommandParser + # + # source://yard//lib/yard/cli/command_parser.rb#56 + def initialize; end + + # Runs the {Command} object matching the command name of the first + # argument. + # + # @return [void] + # + # source://yard//lib/yard/cli/command_parser.rb#63 + def run(*args); end + + private + + # source://yard//lib/yard/cli/command_parser.rb#80 + def commands; end + + # source://yard//lib/yard/cli/command_parser.rb#82 + def list_commands; end + + class << self + # @return [Hash{Symbol => Command}] the mapping of command names to + # command classes to parse the user command. + # + # source://yard//lib/yard/cli/command_parser.rb#27 + def commands; end + + # @return [Hash{Symbol => Command}] the mapping of command names to + # command classes to parse the user command. + # + # source://yard//lib/yard/cli/command_parser.rb#27 + def commands=(_arg0); end + + # @return [Symbol] the default command name to use when no options + # are specified or + # + # source://yard//lib/yard/cli/command_parser.rb#31 + def default_command; end + + # @return [Symbol] the default command name to use when no options + # are specified or + # + # source://yard//lib/yard/cli/command_parser.rb#31 + def default_command=(_arg0); end + + # Convenience method to create a new CommandParser and call {#run} + # + # @return [void] + # + # source://yard//lib/yard/cli/command_parser.rb#54 + def run(*args); end + end +end + +# CLI command to view or edit configuration options +# +# @since 0.6.2 +# +# source://yard//lib/yard/cli/config.rb#6 +class YARD::CLI::Config < ::YARD::CLI::Command + # @return [Config] a new instance of Config + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#26 + def initialize; end + + # @return [Boolean] whether to append values to existing key + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#20 + def append; end + + # @return [Boolean] whether to append values to existing key + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#20 + def append=(_arg0); end + + # @return [Boolean] whether the value being set should be inside a list + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#17 + def as_list; end + + # @return [Boolean] whether the value being set should be inside a list + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#17 + def as_list=(_arg0); end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#36 + def description; end + + # @return [String, nil] command to use when configuring ~/.gemrc file. + # If the string is nil, configuration should not occur. + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#24 + def gem_install_cmd; end + + # @return [String, nil] command to use when configuring ~/.gemrc file. + # If the string is nil, configuration should not occur. + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#24 + def gem_install_cmd=(_arg0); end + + # @return [Symbol, nil] the key to view/edit, if any + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#8 + def key; end + + # @return [Symbol, nil] the key to view/edit, if any + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#8 + def key=(_arg0); end + + # @return [Boolean] whether to reset the {#key} + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#14 + def reset; end + + # @return [Boolean] whether to reset the {#key} + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#14 + def reset=(_arg0); end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#40 + def run(*args); end + + # @return [Array, nil] the list of values to set (or single value), if modifying + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#11 + def values; end + + # @return [Array, nil] the list of values to set (or single value), if modifying + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#11 + def values=(_arg0); end + + private + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#57 + def configure_gemrc; end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#111 + def encode_value(value); end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#103 + def encode_values; end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#97 + def list_configuration; end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#78 + def modify_item; end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#120 + def optparse(*args); end + + # @since 0.6.2 + # + # source://yard//lib/yard/cli/config.rb#92 + def view_item; end +end + +# CLI command to return the objects that were added/removed from 2 versions +# of a project (library, gem, working copy). +# +# @since 0.6.0 +# +# source://yard//lib/yard/cli/diff.rb#11 +class YARD::CLI::Diff < ::YARD::CLI::Command + # @return [Diff] a new instance of Diff + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#12 + def initialize; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#24 + def description; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#28 + def run(*args); end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#83 + def added_objects(registry1, registry2); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#78 + def all_objects; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#233 + def cleanup(gemfile); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#175 + def expand_and_parse(gemfile, io); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#187 + def expand_gem(gemfile, io); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#181 + def generate_yardoc(dir); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#118 + def load_gem_data(gemfile); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#102 + def load_git_commit(commit); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#87 + def modified_objects(registry1, registry2); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#239 + def optparse(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#98 + def removed_objects(registry1, registry2); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/diff.rb#225 + def require_rubygems; end +end + +# Display one object +# +# @since 0.8.6 +# +# source://yard//lib/yard/cli/display.rb#6 +class YARD::CLI::Display < ::YARD::CLI::Yardoc + # @return [Display] a new instance of Display + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#9 + def initialize(*args); end + + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#7 + def description; end + + # @return [String] the output data for all formatted objects + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#27 + def format_objects; end + + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#61 + def output_options(opts); end + + # Parses commandline options. + # + # @param args [Array<String>] each tokenized argument + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#46 + def parse_arguments(*args); end + + # Runs the commandline utility, parsing arguments and displaying an object + # from the {Registry}. + # + # @param args [Array<String>] the list of arguments. + # @return [void] + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#21 + def run(*args); end + + # @since 0.8.6 + # + # source://yard//lib/yard/cli/display.rb#33 + def wrap_layout(contents); end +end + +# @since 0.6.0 +# +# source://yard//lib/yard/cli/gems.rb#5 +class YARD::CLI::Gems < ::YARD::CLI::Command + # @return [Gems] a new instance of Gems + # @since 0.6.0 + # + # source://yard//lib/yard/cli/gems.rb#6 + def initialize; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/gems.rb#11 + def description; end + + # Runs the commandline utility, parsing arguments and generating + # YARD indexes for gems. + # + # @param args [Array<String>] the list of arguments + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/gems.rb#18 + def run(*args); end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/gems.rb#47 + def add_gems(gems); end + + # Builds .yardoc files for all non-existing gems + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/gems.rb#27 + def build_gems; end + + # Parses options + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/gems.rb#61 + def optparse(*args); end +end + +# A command-line utility to generate Graphviz graphs from +# a set of objects +# +# @see Graph#run +# @since 0.6.0 +# +# source://yard//lib/yard/cli/graph.rb#24 +class YARD::CLI::Graph < ::YARD::CLI::YardoptsCommand + # Creates a new instance of the command-line utility + # + # @return [Graph] a new instance of Graph + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#34 + def initialize; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#42 + def description; end + + # The set of objects to include in the graph. + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#31 + def objects; end + + # The options parsed out of the commandline. + # Default options are: + # :format => :dot + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#28 + def options; end + + # Runs the command-line utility. + # + # @example + # grapher = Graph.new + # grapher.run('--private') + # @param args [Array<String>] each tokenized argument + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#52 + def run(*args); end + + private + + # Parses commandline options. + # + # @param args [Array<String>] each tokenized argument + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#69 + def optparse(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/graph.rb#65 + def unrecognized_option(err); end +end + +# Options to pass to the {Graph} CLI. +# +# source://yard//lib/yard/cli/graph.rb#5 +class YARD::CLI::GraphOptions < ::YARD::Templates::TemplateOptions + # @return [String] any contents to pass to the digraph + # + # source://yard//lib/yard/cli/graph.rb#16 + def contents; end + + # @return [String] any contents to pass to the digraph + # + # source://yard//lib/yard/cli/graph.rb#16 + def contents=(_arg0); end + + # @return [Boolean] whether to show the object dependencies + # + # source://yard//lib/yard/cli/graph.rb#13 + def dependencies; end + + # @return [Boolean] whether to show the object dependencies + # + # source://yard//lib/yard/cli/graph.rb#13 + def dependencies=(_arg0); end + + # @return [:dot] the default output format + # + # source://yard//lib/yard/options.rb#82 + def format; end + + # source://yard//lib/yard/options.rb#82 + def format=(_arg0); end + + # @return [Boolean] whether to list the full class diagram + # + # source://yard//lib/yard/cli/graph.rb#10 + def full; end + + # @return [Boolean] whether to list the full class diagram + # + # source://yard//lib/yard/cli/graph.rb#10 + def full=(_arg0); end +end + +# Handles help for commands +# +# @since 0.6.0 +# +# source://yard//lib/yard/cli/help.rb#6 +class YARD::CLI::Help < ::YARD::CLI::Command + # @since 0.6.0 + # + # source://yard//lib/yard/cli/help.rb#7 + def description; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/help.rb#9 + def run(*args); end +end + +# CLI command to support internationalization (a.k.a. i18n). +# I18n feature is based on gettext technology. +# This command generates .pot file from docstring and extra +# documentation. +# +# @since 0.8.0 +# @todo Support msgminit and msgmerge features? +# +# source://yard//lib/yard/cli/i18n.rb#13 +class YARD::CLI::I18n < ::YARD::CLI::Yardoc + # @return [I18n] a new instance of I18n + # @since 0.8.0 + # + # source://yard//lib/yard/cli/i18n.rb#14 + def initialize; end + + # @since 0.8.0 + # + # source://yard//lib/yard/cli/i18n.rb#19 + def description; end + + # @since 0.8.0 + # + # source://yard//lib/yard/cli/i18n.rb#23 + def run(*args); end + + private + + # @since 0.8.0 + # + # source://yard//lib/yard/cli/i18n.rb#44 + def general_options(opts); end + + # @since 0.8.0 + # + # source://yard//lib/yard/cli/i18n.rb#61 + def generate_pot(relative_base_path); end +end + +# Lists all constant and method names in the codebase. Uses {Yardoc} --list. +# +# source://yard//lib/yard/cli/list.rb#5 +class YARD::CLI::List < ::YARD::CLI::Command + # source://yard//lib/yard/cli/list.rb#6 + def description; end + + # Runs the commandline utility, parsing arguments and displaying a + # list of objects + # + # @param args [Array<String>] the list of arguments. + # @return [void] + # + # source://yard//lib/yard/cli/list.rb#13 + def run(*args); end +end + +# Lists all markup types +# +# @since 0.8.6 +# +# source://yard//lib/yard/cli/markup_types.rb#6 +class YARD::CLI::MarkupTypes < ::YARD::CLI::Command + # @since 0.8.6 + # + # source://yard//lib/yard/cli/markup_types.rb#7 + def description; end + + # Runs the commandline utility, parsing arguments and displaying a + # list of markup types + # + # @param args [Array<String>] the list of arguments. + # @return [void] + # @since 0.8.6 + # + # source://yard//lib/yard/cli/markup_types.rb#14 + def run(*args); end +end + +# A local documentation server +# +# @since 0.6.0 +# +# source://yard//lib/yard/cli/server.rb#7 +class YARD::CLI::Server < ::YARD::CLI::Command + # Creates a new instance of the Server command line utility + # + # @return [Server] a new instance of Server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#29 + def initialize; end + + # @return [YARD::Server::Adapter] the adapter to use for loading the web server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#18 + def adapter; end + + # @return [YARD::Server::Adapter] the adapter to use for loading the web server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#18 + def adapter=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#41 + def description; end + + # @return [Hash] a list of library names and yardoc files to serve + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#15 + def libraries; end + + # @return [Hash] a list of library names and yardoc files to serve + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#15 + def libraries=(_arg0); end + + # @return [Hash] a list of options to pass to the doc server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#9 + def options; end + + # @return [Hash] a list of options to pass to the doc server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#9 + def options=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#45 + def run(*args); end + + # @return [Array<String>] a list of scripts to load + # @since 0.6.2 + # + # source://yard//lib/yard/cli/server.rb#22 + def scripts; end + + # @return [Array<String>] a list of scripts to load + # @since 0.6.2 + # + # source://yard//lib/yard/cli/server.rb#22 + def scripts=(_arg0); end + + # @return [Hash] a list of options to pass to the web server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#12 + def server_options; end + + # @return [Hash] a list of options to pass to the web server + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#12 + def server_options=(_arg0); end + + # @return [Array<String>] a list of template paths to register + # @since 0.6.2 + # + # source://yard//lib/yard/cli/server.rb#26 + def template_paths; end + + # @return [Array<String>] a list of template paths to register + # @since 0.6.2 + # + # source://yard//lib/yard/cli/server.rb#26 + def template_paths=(_arg0); end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#131 + def add_gems; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#140 + def add_gems_from_gemfile(gemfile = T.unsafe(nil)); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#76 + def add_libraries(args); end + + # @param library [String] The library name. + # @param dir [String, nil] The argument provided on the CLI after the + # library name. Is supposed to point to either a project directory + # with a Yard options file, or a yardoc db. + # @return [LibraryVersion, nil] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#115 + def create_library_version_if_yardopts_exist(library, dir); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#249 + def extract_db_from_options_file(options_file); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#239 + def generate_doc_for_first_time(libver); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#56 + def load_scripts; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#60 + def load_template_paths; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#156 + def optparse(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/server.rb#66 + def select_adapter; end +end + +# @since 0.6.0 +# +# source://yard//lib/yard/cli/stats.rb#5 +class YARD::CLI::Stats < ::YARD::CLI::Yardoc + include ::YARD::Templates::Helpers::BaseHelper + + # @param parse [Boolean] whether to parse and load registry (see {#parse}) + # @return [Stats] a new instance of Stats + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#18 + def initialize(parse = T.unsafe(nil)); end + + # @return [Array<CodeObjects::Base>] all the parsed objects in the registry, + # removing any objects that are not visible (private, protected) depending + # on the arguments passed to the command. + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#108 + def all_objects; end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#25 + def description; end + + # Prints a statistic to standard out. This method is optimized for + # getting Integer values, though it allows any data to be printed. + # + # @param name [String] the statistic name + # @param data [Integer, String] the numeric (or any) data representing + # the statistic. If +data+ is an Integer, it should represent the + # total objects of a type. + # @param undoc [Integer, nil] number of undocumented objects for the type + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#162 + def output(name, data, undoc = T.unsafe(nil)); end + + # @return [Boolean] whether to parse and load registry + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#15 + def parse; end + + # @return [Boolean] whether to parse and load registry + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#15 + def parse=(_arg0); end + + # Prints statistics for different object types + # + # To add statistics for a specific type, add a method +#stats_for_TYPE+ + # to this class that calls {#output}. + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#54 + def print_statistics; end + + # Prints list of undocumented objects + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#79 + def print_undocumented_objects; end + + # Runs the commandline utility, parsing arguments and generating + # output if set. + # + # @param args [Array<String>] the list of arguments + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#34 + def run(*args); end + + # Statistics for attributes + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#135 + def stats_for_attributes; end + + # Statistics for classes + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#125 + def stats_for_classes; end + + # Statistics for constants + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#130 + def stats_for_constants; end + + # Statistics for files + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#113 + def stats_for_files; end + + # Statistics for methods + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#144 + def stats_for_methods; end + + # Statistics for modules + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#120 + def stats_for_modules; end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#199 + def general_options(opts); end + + # Parses commandline options. + # + # @param args [Array<String>] each tokenized argument + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#185 + def optparse(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/stats.rb#176 + def type_statistics(type); end +end + +# Maintains the order in which +stats_for_+ statistics methods should be +# printed. +# +# @see #print_statistics +# @since 0.6.0 +# +# source://yard//lib/yard/cli/stats.rb#12 +YARD::CLI::Stats::STATS_ORDER = T.let(T.unsafe(nil), Array) + +# A tool to view documentation in the console like `ri` +# +# source://yard//lib/yard/cli/yri.rb#7 +class YARD::CLI::YRI < ::YARD::CLI::Command + # @return [YRI] a new instance of YRI + # + # source://yard//lib/yard/cli/yri.rb#31 + def initialize; end + + # source://yard//lib/yard/cli/yri.rb#41 + def description; end + + # Runs the command-line utility. + # + # @example + # YRI.new.run('String#reverse') + # @param args [Array<String>] each tokenized argument + # + # source://yard//lib/yard/cli/yri.rb#50 + def run(*args); end + + protected + + # Caches the .yardoc file where an object can be found in the {CACHE_FILE} + # + # @return [void] + # + # source://yard//lib/yard/cli/yri.rb#85 + def cache_object(name, path); end + + # Locates an object by name starting in the cached paths and then + # searching through any search paths. + # + # @param name [String] the full name of the object + # @return [CodeObjects::Base] an object if found + # @return [nil] if no object is found + # + # source://yard//lib/yard/cli/yri.rb#113 + def find_object(name); end + + # @param object [CodeObjects::Base] the object to print. + # @return [String] the formatted output for an object. + # + # source://yard//lib/yard/cli/yri.rb#98 + def print_object(object); end + + # Prints the command usage + # + # @return [void] + # @since 0.5.6 + # + # source://yard//lib/yard/cli/yri.rb#78 + def print_usage; end + + private + + # Adds paths in {SEARCH_PATHS_FILE} + # + # @since 0.5.1 + # + # source://yard//lib/yard/cli/yri.rb#181 + def add_default_paths; end + + # Adds all RubyGems yardoc files to search paths + # + # @return [void] + # + # source://yard//lib/yard/cli/yri.rb#161 + def add_gem_paths; end + + # Loads {CACHE_FILE} + # + # @return [void] + # + # source://yard//lib/yard/cli/yri.rb#151 + def load_cache; end + + # Parses commandline options. + # + # @param args [Array<String>] each tokenized argument + # + # source://yard//lib/yard/cli/yri.rb#190 + def optparse(*args); end + + # Tries to load the object with name. If successful, caches the object + # with the cache_path + # + # @param name [String] the object path + # @param cache_path [String] the location of the yardoc + # db containing the object to cache for future lookups. + # No caching is done if this is nil. + # @return [void] + # + # source://yard//lib/yard/cli/yri.rb#143 + def try_load_object(name, cache_path); end + + class << self + # Helper method to run the utility on an instance. + # + # @see #run + # + # source://yard//lib/yard/cli/yri.rb#29 + def run(*args); end + end +end + +# The location in {YARD::CONFIG_DIR} where the YRI cache file is loaded +# from. +# +# source://yard//lib/yard/cli/yri.rb#10 +YARD::CLI::YRI::CACHE_FILE = T.let(T.unsafe(nil), String) + +# Default search paths that should be loaded dynamically into YRI. These paths +# take precedence over all other paths ({SEARCH_PATHS_FILE} and RubyGems +# paths). To add a path, call: +# +# DEFAULT_SEARCH_PATHS.push("/path/to/.yardoc") +# +# @return [Array<String>] a list of extra search paths +# @since 0.6.0 +# +# source://yard//lib/yard/cli/yri.rb#25 +YARD::CLI::YRI::DEFAULT_SEARCH_PATHS = T.let(T.unsafe(nil), Array) + +# A file containing all paths, delimited by newlines, to search for +# yardoc databases. +# +# @since 0.5.1 +# +# source://yard//lib/yard/cli/yri.rb#15 +YARD::CLI::YRI::SEARCH_PATHS_FILE = T.let(T.unsafe(nil), String) + +# source://yard//lib/yard/cli/yardoc.rb#145 +class YARD::CLI::Yardoc < ::YARD::CLI::YardoptsCommand + # Creates a new instance of the commandline utility + # + # @return [Yardoc] a new instance of Yardoc + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#207 + def initialize; end + + # The list of all objects to process. Override this method to change + # which objects YARD should generate documentation for. + # + # @deprecated To hide methods use the +@private+ tag instead. + # @return [Array<CodeObjects::Base>] a list of code objects to process + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#330 + def all_objects; end + + # Keep track of which APIs are to be shown + # + # @return [Array<String>] a list of APIs + # @since 0.8.1 + # + # source://yard//lib/yard/cli/yardoc.rb#180 + def apis; end + + # Keep track of which APIs are to be shown + # + # @return [Array<String>] a list of APIs + # @since 0.8.1 + # + # source://yard//lib/yard/cli/yardoc.rb#180 + def apis=(_arg0); end + + # @return [Array<String>] a list of assets to copy after generation + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#197 + def assets; end + + # @return [Array<String>] a list of assets to copy after generation + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#197 + def assets=(_arg0); end + + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#234 + def description; end + + # @return [Array<String>] list of excluded paths (regexp matches) + # @since 0.5.3 + # + # source://yard//lib/yard/cli/yardoc.rb#155 + def excluded; end + + # @return [Array<String>] list of excluded paths (regexp matches) + # @since 0.5.3 + # + # source://yard//lib/yard/cli/yardoc.rb#155 + def excluded=(_arg0); end + + # @return [Boolean] whether yard exits with error status code if a warning occurs + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#204 + def fail_on_warning; end + + # @return [Boolean] whether yard exits with error status code if a warning occurs + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#204 + def fail_on_warning=(_arg0); end + + # @return [Array<String>] list of Ruby source files to process + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#151 + def files; end + + # @return [Array<String>] list of Ruby source files to process + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#151 + def files=(_arg0); end + + # @return [Boolean] whether to generate output + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#166 + def generate; end + + # @return [Boolean] whether to generate output + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#166 + def generate=(_arg0); end + + # @return [Boolean] whether markup option was specified + # @since 0.7.0 + # + # source://yard//lib/yard/cli/yardoc.rb#201 + def has_markup; end + + # @return [Boolean] whether markup option was specified + # @since 0.7.0 + # + # source://yard//lib/yard/cli/yardoc.rb#201 + def has_markup=(_arg0); end + + # Keep track of which APIs are to be hidden + # + # @return [Array<String>] a list of APIs to be hidden + # @since 0.8.7 + # + # source://yard//lib/yard/cli/yardoc.rb#185 + def hidden_apis; end + + # Keep track of which APIs are to be hidden + # + # @return [Array<String>] a list of APIs to be hidden + # @since 0.8.7 + # + # source://yard//lib/yard/cli/yardoc.rb#185 + def hidden_apis=(_arg0); end + + # @return [Array<Symbol>] a list of tags to hide from templates + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#189 + def hidden_tags; end + + # @return [Array<Symbol>] a list of tags to hide from templates + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#189 + def hidden_tags=(_arg0); end + + # @return [Boolean] whether to print a list of objects + # @since 0.5.5 + # + # source://yard//lib/yard/cli/yardoc.rb#170 + def list; end + + # @return [Boolean] whether to print a list of objects + # @since 0.5.5 + # + # source://yard//lib/yard/cli/yardoc.rb#170 + def list=(_arg0); end + + # @return [Hash] the hash of options passed to the template. + # @see Templates::Engine#render + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#148 + def options; end + + # Parses commandline arguments + # + # @param args [Array<String>] the list of arguments + # @return [Boolean] whether or not arguments are valid + # @since 0.5.6 + # + # source://yard//lib/yard/cli/yardoc.rb#291 + def parse_arguments(*args); end + + # Runs the commandline utility, parsing arguments and generating + # output if set. + # + # @param args [Array<String>] the list of arguments. If the list only + # contains a single nil value, skip calling of {#parse_arguments} + # @return [void] + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#244 + def run(*args); end + + # @return [Boolean] whether objects should be serialized to .yardoc db + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#163 + def save_yardoc; end + + # @return [Boolean] whether objects should be serialized to .yardoc db + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#163 + def save_yardoc=(_arg0); end + + # @return [Boolean] whether to print statistics after parsing + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#193 + def statistics; end + + # @return [Boolean] whether to print statistics after parsing + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#193 + def statistics=(_arg0); end + + # @return [Boolean] whether to use the existing yardoc db if the + # .yardoc already exists. Also makes use of file checksums to + # parse only changed files. + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#160 + def use_cache; end + + # @return [Boolean] whether to use the existing yardoc db if the + # .yardoc already exists. Also makes use of file checksums to + # parse only changed files. + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#160 + def use_cache=(_arg0); end + + # Keep track of which visibilities are to be shown + # + # @return [Array<Symbol>] a list of visibilities + # @since 0.5.6 + # + # source://yard//lib/yard/cli/yardoc.rb#175 + def visibilities; end + + # Keep track of which visibilities are to be shown + # + # @return [Array<Symbol>] a list of visibilities + # @since 0.5.6 + # + # source://yard//lib/yard/cli/yardoc.rb#175 + def visibilities=(_arg0); end + + private + + # Adds verifier rule for APIs + # + # @return [void] + # @since 0.8.1 + # + # source://yard//lib/yard/cli/yardoc.rb#474 + def add_api_verifier; end + + # Adds a set of extra documentation files to be processed + # + # @param files [Array<String>] the set of documentation files + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#413 + def add_extra_files(*files); end + + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#507 + def add_tag(tag_data, factory_method = T.unsafe(nil)); end + + # Adds verifier rule for visibilities + # + # @return [void] + # @since 0.5.6 + # + # source://yard//lib/yard/cli/yardoc.rb#466 + def add_visibility_verifier; end + + # Applies the specified locale to collected objects + # + # @return [void] + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardoc.rb#494 + def apply_locale; end + + # Copies any assets to the output directory + # + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#389 + def copy_assets; end + + # @param file [String] the filename to validate + # @param check_exists [Boolean] whether the file should exist on disk + # @return [Boolean] whether the file is allowed to be used + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#425 + def extra_file_valid?(file, check_exists = T.unsafe(nil)); end + + # Adds general options + # + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#541 + def general_options(opts); end + + # Parses commandline options. + # + # @param args [Array<String>] each tokenized argument + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#516 + def optparse(*args); end + + # Adds output options + # + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#586 + def output_options(opts); end + + # Parses the file arguments into Ruby files and extra files, which are + # separated by a '-' element. + # + # @example Parses a set of Ruby source files + # parse_files %w(file1 file2 file3) + # @example Parses a set of Ruby files with a separator and extra files + # parse_files %w(file1 file2 - extrafile1 extrafile2) + # @param files [Array<String>] the list of files to parse + # @return [void] + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#446 + def parse_files(*files); end + + # Prints a list of all objects + # + # @return [void] + # @since 0.5.5 + # + # source://yard//lib/yard/cli/yardoc.rb#403 + def print_list; end + + # Generates output for objects + # + # @param checksums [Hash, nil] if supplied, a list of checksums for files. + # @return [void] + # @since 0.5.1 + # + # source://yard//lib/yard/cli/yardoc.rb#340 + def run_generate(checksums); end + + # Runs a list of objects against the {Verifier} object passed into the + # template and returns the subset of verified objects. + # + # @param list [Array<CodeObjects::Base>] a list of code objects + # @return [Array<CodeObjects::Base>] a list of code objects that match + # the verifier. If no verifier is supplied, all objects are returned. + # + # source://yard//lib/yard/cli/yardoc.rb#502 + def run_verifier(list); end + + # Adds tag options + # + # @since 0.6.0 + # + # source://yard//lib/yard/cli/yardoc.rb#753 + def tag_options(opts); end + + # Verifies that the markup options are valid before parsing any code. + # Failing early is better than failing late. + # + # @return [Boolean] whether the markup provider was successfully loaded. + # @since 0.2.1 + # + # source://yard//lib/yard/cli/yardoc.rb#364 + def verify_markup_options; end +end + +# Default options used in +yard doc+ command. +# +# source://yard//lib/yard/cli/yardoc.rb#8 +class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions + # @return [CodeObjects::ExtraFileObject] the file object being rendered. + # The +object+ key is not used so that a file may be rendered in the context + # of an object's namespace (for generating links). + # + # source://yard//lib/yard/cli/yardoc.rb#48 + def file; end + + # @return [CodeObjects::ExtraFileObject] the file object being rendered. + # The +object+ key is not used so that a file may be rendered in the context + # of an object's namespace (for generating links). + # + # source://yard//lib/yard/cli/yardoc.rb#48 + def file=(_arg0); end + + # @return [Array<CodeObjects::ExtraFileObject>] the list of extra files rendered along with objects + # + # source://yard//lib/yard/options.rb#82 + def files; end + + # source://yard//lib/yard/options.rb#82 + def files=(_arg0); end + + # @return [Symbol] the default output format (:html). + # + # source://yard//lib/yard/options.rb#82 + def format; end + + # source://yard//lib/yard/options.rb#82 + def format=(_arg0); end + + # @return [Numeric] An index value for rendering sequentially related templates + # + # source://yard//lib/yard/cli/yardoc.rb#39 + def index; end + + # @return [Numeric] An index value for rendering sequentially related templates + # + # source://yard//lib/yard/cli/yardoc.rb#39 + def index=(_arg0); end + + # @return [CodeObjects::Base] an extra item to send to a template that is not + # the main rendered object + # + # source://yard//lib/yard/cli/yardoc.rb#43 + def item; end + + # @return [CodeObjects::Base] an extra item to send to a template that is not + # the main rendered object + # + # source://yard//lib/yard/cli/yardoc.rb#43 + def item=(_arg0); end + + # @return [String] the current locale + # + # source://yard//lib/yard/cli/yardoc.rb#51 + def locale; end + + # @return [String] the current locale + # + # source://yard//lib/yard/cli/yardoc.rb#51 + def locale=(_arg0); end + + # @return [Array<CodeObjects::Base>] the list of code objects to render + # the templates with. + # + # source://yard//lib/yard/cli/yardoc.rb#36 + def objects; end + + # @return [Array<CodeObjects::Base>] the list of code objects to render + # the templates with. + # + # source://yard//lib/yard/cli/yardoc.rb#36 + def objects=(_arg0); end + + # @return [Boolean] whether the data should be rendered in a single page, + # if the template supports it. + # + # source://yard//lib/yard/options.rb#82 + def onefile; end + + # source://yard//lib/yard/options.rb#82 + def onefile=(_arg0); end + + # @return [CodeObjects::ExtraFileObject] the README file object rendered + # along with objects + # + # source://yard//lib/yard/cli/yardoc.rb#32 + def readme; end + + # @return [CodeObjects::ExtraFileObject] the README file object rendered + # along with objects + # + # source://yard//lib/yard/cli/yardoc.rb#32 + def readme=(_arg0); end + + # @return [Serializers::Base] the default serializer for generating output + # to disk. + # + # source://yard//lib/yard/options.rb#82 + def serializer; end + + # source://yard//lib/yard/options.rb#82 + def serializer=(_arg0); end + + # @return [String] the default title appended to each generated page + # + # source://yard//lib/yard/options.rb#82 + def title; end + + # source://yard//lib/yard/options.rb#82 + def title=(_arg0); end + + # @return [Verifier] the default verifier object to filter queries + # + # source://yard//lib/yard/options.rb#82 + def verifier; end + + # source://yard//lib/yard/options.rb#82 + def verifier=(_arg0); end +end + +# Abstract base class for command that reads .yardopts file +# +# @abstract +# @since 0.8.3 +# +# source://yard//lib/yard/cli/yardopts_command.rb#10 +class YARD::CLI::YardoptsCommand < ::YARD::CLI::Command + # Creates a new command that reads .yardopts + # + # @return [YardoptsCommand] a new instance of YardoptsCommand + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#25 + def initialize; end + + # The options file name (defaults to {DEFAULT_YARDOPTS_FILE}) + # + # @return [String] the filename to load extra options from + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#22 + def options_file; end + + # The options file name (defaults to {DEFAULT_YARDOPTS_FILE}) + # + # @return [String] the filename to load extra options from + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#22 + def options_file=(_arg0); end + + # Parses commandline arguments + # + # @param args [Array<String>] the list of arguments + # @return [Boolean] whether or not arguments are valid + # @since 0.5.6 + # + # source://yard//lib/yard/cli/yardopts_command.rb#36 + def parse_arguments(*args); end + + # @return [Boolean] whether to parse options from .document + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#18 + def use_document_file; end + + # @return [Boolean] whether to parse options from .document + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#18 + def use_document_file=(_arg0); end + + # @return [Boolean] whether to parse options from .yardopts + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#15 + def use_yardopts_file; end + + # @return [Boolean] whether to parse options from .yardopts + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#15 + def use_yardopts_file=(_arg0); end + + protected + + # Adds --[no-]yardopts / --[no-]document + # + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#48 + def yardopts_options(opts); end + + private + + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#92 + def parse_rdoc_document_file(file = T.unsafe(nil)); end + + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#96 + def parse_yardopts(file = T.unsafe(nil)); end + + # Parses out the yardopts/document options + # + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#78 + def parse_yardopts_options(*args); end + + # Reads a .document file in the directory to get source file globs + # + # @return [Array<String>] an array of files parsed from .document + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#102 + def support_rdoc_document_file!(file = T.unsafe(nil)); end + + # Parses the .yardopts file for default yard options + # + # @return [Array<String>] an array of options parsed from .yardopts + # @since 0.8.3 + # + # source://yard//lib/yard/cli/yardopts_command.rb#70 + def yardopts(file = T.unsafe(nil)); end +end + +# The configuration filename to load extra options from +# +# @since 0.8.3 +# +# source://yard//lib/yard/cli/yardopts_command.rb#12 +YARD::CLI::YardoptsCommand::DEFAULT_YARDOPTS_FILE = T.let(T.unsafe(nil), String) + +# @deprecated Use {Config::CONFIG_DIR} +# +# source://yard//lib/yard.rb#13 +YARD::CONFIG_DIR = T.let(T.unsafe(nil), String) + +# A "code object" is defined as any entity in the Ruby language. +# Classes, modules, methods, class variables and constants are the +# major objects, but DSL languages can create their own by inheriting +# from {CodeObjects::Base}. +# +# source://yard//lib/yard/autoload.rb#29 +module YARD::CodeObjects + extend ::YARD::CodeObjects::NamespaceMapper +end + +# All builtin Ruby classes and modules. +# +# source://yard//lib/yard/code_objects/base.rb#91 +YARD::CodeObjects::BUILTIN_ALL = T.let(T.unsafe(nil), Array) + +# All builtin Ruby classes for inheritance tree. +# +# @note MatchingData is a 1.8.x legacy class +# +# source://yard//lib/yard/code_objects/base.rb#78 +YARD::CodeObjects::BUILTIN_CLASSES = T.let(T.unsafe(nil), Array) + +# All builtin Ruby exception classes for inheritance tree. +# +# source://yard//lib/yard/code_objects/base.rb#67 +YARD::CodeObjects::BUILTIN_EXCEPTIONS = T.let(T.unsafe(nil), Array) + +# Hash of {BUILTIN_EXCEPTIONS} as keys and true as value (for O(1) lookups) +# +# source://yard//lib/yard/code_objects/base.rb#94 +YARD::CodeObjects::BUILTIN_EXCEPTIONS_HASH = T.let(T.unsafe(nil), Hash) + +# All builtin Ruby modules for mixin handling. +# +# source://yard//lib/yard/code_objects/base.rb#87 +YARD::CodeObjects::BUILTIN_MODULES = T.let(T.unsafe(nil), Array) + +# +Base+ is the superclass of all code objects recognized by YARD. A code +# object is any entity in the Ruby language (class, method, module). A +# DSL might subclass +Base+ to create a new custom object representing +# a new entity type. +# +# == Registry Integration +# Any created object associated with a namespace is immediately registered +# with the registry. This allows the Registry to act as an identity map +# to ensure that no object is represented by more than one Ruby object +# in memory. A unique {#path} is essential for this identity map to work +# correctly. +# +# == Custom Attributes +# Code objects allow arbitrary custom attributes to be set using the +# {#[]=} assignment method. +# +# == Namespaces +# There is a special type of object called a "namespace". These are subclasses +# of the {NamespaceObject} and represent Ruby entities that can have +# objects defined within them. Classically these are modules and classes, +# though a DSL might create a custom {NamespaceObject} to describe a +# specific set of objects. +# +# == Separators +# Custom classes with different separator tokens should define their own +# separators using the {NamespaceMapper.register_separator} method. The +# standard Ruby separators have already been defined ('::', '#', '.', etc). +# +# @abstract This class should not be used directly. Instead, create a +# subclass that implements {#path}, {#sep} or {#type}. You might also +# need to register custom separators if {#sep} uses alternate separator +# tokens. +# @see Registry +# @see #path +# @see #[]= +# @see NamespaceObject +# @see NamespaceMapper.register_separator +# +# source://yard//lib/yard/code_objects/base.rb#133 +class YARD::CodeObjects::Base + # Creates a new code object + # + # @example Create a method in the root namespace + # CodeObjects::Base.new(:root, '#method') # => #<yardoc method #method> + # @example Create class Z inside namespace X::Y + # CodeObjects::Base.new(P("X::Y"), :Z) # or + # CodeObjects::Base.new(Registry.root, "X::Y") + # @param namespace [NamespaceObject] the namespace the object belongs in, + # {Registry.root} or :root should be provided if it is associated with + # the top level namespace. + # @param name [Symbol, String] the name (or complex path) of the object. + # @return [Base] the newly created object + # @yield [self] a block to perform any extra initialization on the object + # @yieldparam self [Base] the newly initialized code object + # + # source://yard//lib/yard/code_objects/base.rb#238 + def initialize(namespace, name, *_arg2); end + + # Tests if another object is equal to this, including a proxy + # + # @param other [Base, Proxy] if other is a {Proxy}, tests if + # the paths are equal + # @return [Boolean] whether or not the objects are considered the same + # + # source://yard//lib/yard/code_objects/base.rb#322 + def ==(other); end + + # Accesses a custom attribute on the object + # + # @param key [#to_s] the name of the custom attribute + # @return [Object, nil] the custom attribute or nil if not found. + # @see #[]= + # + # source://yard//lib/yard/code_objects/base.rb#342 + def [](key); end + + # Sets a custom attribute on the object + # + # @param key [#to_s] the name of the custom attribute + # @param value [Object] the value to associate + # @return [void] + # @see #[] + # + # source://yard//lib/yard/code_objects/base.rb#355 + def []=(key, value); end + + # Associates a file with a code object, optionally adding the line where it was defined. + # By convention, '<stdin>' should be used to associate code that comes form standard input. + # + # @param file [String] the filename ('<stdin>' for standard input) + # @param line [Fixnum, nil] the line number where the object lies in the file + # @param has_comments [Boolean] whether or not the definition has comments associated. This + # will allow {#file} to return the definition where the comments were made instead + # of any empty definitions that might have been parsed before (module namespaces for instance). + # @raise [ArgumentError] + # + # source://yard//lib/yard/code_objects/base.rb#290 + def add_file(file, line = T.unsafe(nil), has_comments = T.unsafe(nil)); end + + # Add tags to the {#docstring} + # + # @see Docstring#add_tag + # @since 0.8.4 + # + # source://yard//lib/yard/code_objects/base.rb#560 + def add_tag(*tags); end + + # The non-localized documentation string associated with the object + # + # @return [Docstring] the documentation string + # @since 0.8.4 + # + # source://yard//lib/yard/code_objects/base.rb#166 + def base_docstring; end + + # Copies all data in this object to another code object, except for + # uniquely identifying information (path, namespace, name, scope). + # + # @param other [Base] the object to copy data to + # @return [Base] the other object + # @since 0.8.0 + # + # source://yard//lib/yard/code_objects/base.rb#263 + def copy_to(other); end + + # The documentation string associated with the object + # + # @param locale [String, I18n::Locale] (I18n::Locale.default) + # the locale of the documentation string. + # @return [Docstring] the documentation string + # + # source://yard//lib/yard/code_objects/base.rb#404 + def docstring(locale = T.unsafe(nil)); end + + # Attaches a docstring to a code object by parsing the comments attached to the statement + # and filling the {#tags} and {#docstring} methods with the parsed information. + # + # @param comments [String, Array<String>, Docstring] the comments attached to the code object to be parsed + # into a docstring and meta tags. + # + # source://yard//lib/yard/code_objects/base.rb#426 + def docstring=(comments); end + + # Marks whether or not the method is conditionally defined at runtime + # + # @return [Boolean] true if the method is conditionally defined at runtime + # + # source://yard//lib/yard/code_objects/base.rb#170 + def dynamic; end + + # Marks whether or not the method is conditionally defined at runtime + # + # @return [Boolean] true if the method is conditionally defined at runtime + # + # source://yard//lib/yard/code_objects/base.rb#170 + def dynamic=(_arg0); end + + # Is the object defined conditionally at runtime? + # + # @return [Boolean] + # @see #dynamic + # + # source://yard//lib/yard/code_objects/base.rb#178 + def dynamic?; end + + # Tests if another object is equal to this, including a proxy + # + # @param other [Base, Proxy] if other is a {Proxy}, tests if + # the paths are equal + # @return [Boolean] whether or not the objects are considered the same + # + # source://yard//lib/yard/code_objects/base.rb#322 + def eql?(other); end + + # Tests if another object is equal to this, including a proxy + # + # @param other [Base, Proxy] if other is a {Proxy}, tests if + # the paths are equal + # @return [Boolean] whether or not the objects are considered the same + # + # source://yard//lib/yard/code_objects/base.rb#322 + def equal?(other); end + + # Returns the filename the object was first parsed at, taking + # definitions with docstrings first. + # + # @return [String] a filename + # + # source://yard//lib/yard/code_objects/base.rb#306 + def file; end + + # The files the object was defined in. To add a file, use {#add_file}. + # + # @return [Array<Array(String, Integer)>] a list of files + # @see #add_file + # + # source://yard//lib/yard/code_objects/base.rb#137 + def files; end + + # Renders the object using the {Templates::Engine templating system}. + # + # @example Formats a class in plaintext + # puts P('MyClass').format + # @example Formats a method in html with rdoc markup + # puts P('MyClass#meth').format(:format => :html, :markup => :rdoc) + # @option options + # @option options + # @option options + # @option options + # @param options [Hash] a set of options to pass to the template + # @return [String] the rendered template + # @see Templates::Engine#render + # + # source://yard//lib/yard/code_objects/base.rb#504 + def format(options = T.unsafe(nil)); end + + # @return [String] the group this object is associated with + # @since 0.6.0 + # + # source://yard//lib/yard/code_objects/base.rb#174 + def group; end + + # @return [String] the group this object is associated with + # @since 0.6.0 + # + # source://yard//lib/yard/code_objects/base.rb#174 + def group=(_arg0); end + + # Tests if the {#docstring} has a tag + # + # @return [Boolean] + # @see Docstring#has_tag? + # + # source://yard//lib/yard/code_objects/base.rb#555 + def has_tag?(name); end + + # @return [Integer] the object's hash value (for equality checking) + # + # source://yard//lib/yard/code_objects/base.rb#333 + def hash; end + + # Inspects the object, returning the type and path + # + # @return [String] a string describing the object + # + # source://yard//lib/yard/code_objects/base.rb#512 + def inspect; end + + # Returns the line the object was first parsed at (or nil) + # + # @return [Fixnum] the line where the object was first defined. + # @return [nil] if there is no line associated with the object + # + # source://yard//lib/yard/code_objects/base.rb#314 + def line; end + + # @overload dynamic_attr_name + # @overload dynamic_attr_name= + # + # source://yard//lib/yard/code_objects/base.rb#372 + def method_missing(meth, *args, &block); end + + # The name of the object + # + # @param prefix [Boolean] whether to show a prefix. Implement + # this in a subclass to define how the prefix is showed. + # @return [Symbol] if prefix is false, the symbolized name + # @return [String] if prefix is true, prefix + the name as a String. + # This must be implemented by the subclass. + # + # source://yard//lib/yard/code_objects/base.rb#278 + def name(prefix = T.unsafe(nil)); end + + # The namespace the object is defined in. If the object is in the + # top level namespace, this is {Registry.root} + # + # @return [NamespaceObject] the namespace object + # + # source://yard//lib/yard/code_objects/base.rb#142 + def namespace; end + + # Sets the namespace the object is defined in. + # + # @param obj [NamespaceObject, :root, nil] the new namespace (:root + # for {Registry.root}). If obj is nil, the object is unregistered + # from the Registry. + # + # source://yard//lib/yard/code_objects/base.rb#521 + def namespace=(obj); end + + # The namespace the object is defined in. If the object is in the + # top level namespace, this is {Registry.root} + # + # @return [NamespaceObject] the namespace object + # + # source://yard//lib/yard/code_objects/base.rb#142 + def parent; end + + # Sets the namespace the object is defined in. + # + # @param obj [NamespaceObject, :root, nil] the new namespace (:root + # for {Registry.root}). If obj is nil, the object is unregistered + # from the Registry. + # + # source://yard//lib/yard/code_objects/base.rb#521 + def parent=(obj); end + + # Represents the unique path of the object. The default implementation + # joins the path of {#namespace} with {#name} via the value of {#sep}. + # Custom code objects should ensure that the path is unique to the code + # object by either overriding {#sep} or this method. + # + # @example The path of an instance method + # MethodObject.new(P("A::B"), :c).path # => "A::B#c" + # @return [String] the unique path of the object + # @see #sep + # + # source://yard//lib/yard/code_objects/base.rb#452 + def path; end + + # @param other [Base, String] another code object (or object path) + # @return [String] the shortest relative path from this object to +other+ + # @since 0.5.3 + # + # source://yard//lib/yard/code_objects/base.rb#474 + def relative_path(other); end + + # @return [Boolean] whether or not this object is a RootObject + # + # source://yard//lib/yard/code_objects/base.rb#566 + def root?; end + + # Override this method with a custom component separator. For instance, + # {MethodObject} implements sep as '#' or '.' (depending on if the + # method is instance or class respectively). {#path} depends on this + # value to generate the full path in the form: namespace.path + sep + name + # + # @return [String] the component that separates the namespace path + # and the name (default is {NSEP}) + # + # source://yard//lib/yard/code_objects/base.rb#575 + def sep; end + + # The one line signature representing an object. For a method, this will + # be of the form "def meth(arguments...)". This is usually the first + # source line. + # + # @return [String] a line of source + # + # source://yard//lib/yard/code_objects/base.rb#159 + def signature; end + + # The one line signature representing an object. For a method, this will + # be of the form "def meth(arguments...)". This is usually the first + # source line. + # + # @return [String] a line of source + # + # source://yard//lib/yard/code_objects/base.rb#159 + def signature=(_arg0); end + + # The source code associated with the object + # + # @return [String, nil] source, if present, or nil + # + # source://yard//lib/yard/code_objects/base.rb#146 + def source; end + + # Attaches source code to a code object with an optional file location + # + # @param statement [#source, String] the +Parser::Statement+ holding the source code or the raw source + # as a +String+ for the definition of the code object only (not the block) + # + # source://yard//lib/yard/code_objects/base.rb#387 + def source=(statement); end + + # Language of the source code associated with the object. Defaults to + # +:ruby+. + # + # @return [Symbol] the language type + # + # source://yard//lib/yard/code_objects/base.rb#152 + def source_type; end + + # Language of the source code associated with the object. Defaults to + # +:ruby+. + # + # @return [Symbol] the language type + # + # source://yard//lib/yard/code_objects/base.rb#152 + def source_type=(_arg0); end + + # Gets a tag from the {#docstring} + # + # @see Docstring#tag + # + # source://yard//lib/yard/code_objects/base.rb#547 + def tag(name); end + + # Gets a list of tags from the {#docstring} + # + # @see Docstring#tags + # + # source://yard//lib/yard/code_objects/base.rb#551 + def tags(name = T.unsafe(nil)); end + + # @note Override this method if your object has a special title that does + # not match the {#path} attribute value. This title will be used + # when linking or displaying the object. + # @return [String] the display title for an object + # @see 0.8.4 + # + # source://yard//lib/yard/code_objects/base.rb#467 + def title; end + + # @return [nil] this object does not turn into an array + # + # source://yard//lib/yard/code_objects/base.rb#336 + def to_ary; end + + # Represents the unique path of the object. The default implementation + # joins the path of {#namespace} with {#name} via the value of {#sep}. + # Custom code objects should ensure that the path is unique to the code + # object by either overriding {#sep} or this method. + # + # @example The path of an instance method + # MethodObject.new(P("A::B"), :c).path # => "A::B#c" + # @return [String] the unique path of the object + # @see #sep + # + # source://yard//lib/yard/code_objects/base.rb#452 + def to_s; end + + # Default type is the lowercase class name without the "Object" suffix. + # Override this method to provide a custom object type + # + # @return [Symbol] the type of code object this represents + # + # source://yard//lib/yard/code_objects/base.rb#436 + def type; end + + # @return [Symbol] the visibility of an object (:public, :private, :protected) + # + # source://yard//lib/yard/code_objects/base.rb#181 + def visibility; end + + # @return [Symbol] the visibility of an object (:public, :private, :protected) + # + # source://yard//lib/yard/code_objects/base.rb#183 + def visibility=(v); end + + protected + + # Override this method if your code object subclass does not allow + # copying of certain attributes. + # + # @return [Array<String>] the list of instance variable names (without + # "@" prefix) that should be copied when {#copy_to} is called + # @see #copy_to + # @since 0.8.0 + # + # source://yard//lib/yard/code_objects/base.rb#586 + def copyable_attributes; end + + private + + # Formats source code by removing leading indentation + # + # @param source [String] the source code to format + # @return [String] formatted source + # + # source://yard//lib/yard/code_objects/base.rb#598 + def format_source(source); end + + # source://yard//lib/yard/code_objects/base.rb#605 + def translate_docstring(locale); end + + class << self + # Compares the class with subclasses + # + # @param other [Object] the other object to compare classes with + # @return [Boolean] true if other is a subclass of self + # + # source://yard//lib/yard/code_objects/base.rb#219 + def ===(other); end + + # Allocates a new code object + # + # @raise [ArgumentError] + # @return [Base] + # @see #initialize + # @yield [obj] + # + # source://yard//lib/yard/code_objects/base.rb#189 + def new(namespace, name, *args, &block); end + end +end + +# Regular expression to match constant name +# +# source://yard//lib/yard/code_objects/base.rb#52 +YARD::CodeObjects::CONSTANTMATCH = T.let(T.unsafe(nil), Regexp) + +# Regular expression to match the beginning of a constant +# +# source://yard//lib/yard/code_objects/base.rb#55 +YARD::CodeObjects::CONSTANTSTART = T.let(T.unsafe(nil), Regexp) + +# Class method separator +# +# source://yard//lib/yard/code_objects/base.rb#46 +YARD::CodeObjects::CSEP = T.let(T.unsafe(nil), String) + +# Regex-quoted class method separator +# +# source://yard//lib/yard/code_objects/base.rb#49 +YARD::CodeObjects::CSEPQ = T.let(T.unsafe(nil), String) + +# A ClassObject represents a Ruby class in source code. It is a {ModuleObject} +# with extra inheritance semantics through the superclass. +# +# source://yard//lib/yard/code_objects/class_object.rb#7 +class YARD::CodeObjects::ClassObject < ::YARD::CodeObjects::NamespaceObject + # Creates a new class object in +namespace+ with +name+ + # + # @return [ClassObject] a new instance of ClassObject + # @see Base.new + # + # source://yard//lib/yard/code_objects/class_object.rb#15 + def initialize(namespace, name, *args, &block); end + + # Returns the list of constants matching the options hash. + # + # @option opts + # @option opts + # @param opts [Hash] the options hash to match + # @return [Array<ConstantObject>] the list of constant that matched + # + # source://yard//lib/yard/code_objects/class_object.rb#101 + def constants(opts = T.unsafe(nil)); end + + # Returns the inheritance tree of the object including self. + # + # @param include_mods [Boolean] whether or not to include mixins in the + # inheritance tree. + # @return [Array<NamespaceObject>] the list of code objects that make up + # the inheritance tree. + # + # source://yard//lib/yard/code_objects/class_object.rb#45 + def inheritance_tree(include_mods = T.unsafe(nil)); end + + # Returns only the constants that were inherited. + # + # @return [Array<ConstantObject>] the list of inherited constant objects + # + # source://yard//lib/yard/code_objects/class_object.rb#109 + def inherited_constants; end + + # Returns only the methods that were inherited. + # + # @return [Array<MethodObject>] the list of inherited method objects + # + # source://yard//lib/yard/code_objects/class_object.rb#79 + def inherited_meths(opts = T.unsafe(nil)); end + + # Whether or not the class is a Ruby Exception + # + # @return [Boolean] whether the object represents a Ruby exception + # + # source://yard//lib/yard/code_objects/class_object.rb#35 + def is_exception?; end + + # Returns the list of methods matching the options hash. Returns + # all methods if hash is empty. + # + # @option opts + # @option opts + # @param opts [Hash] the options hash to match + # @return [Array<MethodObject>] the list of methods that matched + # + # source://yard//lib/yard/code_objects/class_object.rb#66 + def meths(opts = T.unsafe(nil)); end + + # The {ClassObject} that this class object inherits from in Ruby source. + # + # @return [ClassObject] a class object that is the superclass of this one + # + # source://yard//lib/yard/code_objects/class_object.rb#10 + def superclass; end + + # Sets the superclass of the object + # + # @param object [Base, Proxy, String, Symbol, nil] the superclass value + # @return [void] + # + # source://yard//lib/yard/code_objects/class_object.rb#125 + def superclass=(object); end +end + +# Represents a class variable inside a namespace. The path is expressed +# in the form "A::B::@@classvariable" +# +# source://yard//lib/yard/code_objects/class_variable_object.rb#7 +class YARD::CodeObjects::ClassVariableObject < ::YARD::CodeObjects::Base + # @return [String] the class variable's value + # + # source://yard//lib/yard/code_objects/class_variable_object.rb#9 + def value; end + + # @return [String] the class variable's value + # + # source://yard//lib/yard/code_objects/class_variable_object.rb#9 + def value=(_arg0); end +end + +# A list of code objects. This array acts like a set (no unique items) +# but also disallows any {Proxy} objects from being added. +# +# source://yard//lib/yard/code_objects/base.rb#6 +class YARD::CodeObjects::CodeObjectList < ::Array + # Creates a new object list associated with a namespace + # + # @param owner [NamespaceObject] the namespace the list should be associated with + # @return [CodeObjectList] + # + # source://yard//lib/yard/code_objects/base.rb#11 + def initialize(owner = T.unsafe(nil)); end + + # Adds a new value to the list + # + # @param value [Base] a code object to add + # @return [CodeObjectList] self + # + # source://yard//lib/yard/code_objects/base.rb#19 + def <<(value); end + + # Adds a new value to the list + # + # @param value [Base] a code object to add + # @return [CodeObjectList] self + # + # source://yard//lib/yard/code_objects/base.rb#19 + def push(value); end +end + +# A +ConstantObject+ represents a Ruby constant (not a module or class). +# To access the constant's (source code) value, use {#value}. +# +# source://yard//lib/yard/code_objects/constant_object.rb#7 +class YARD::CodeObjects::ConstantObject < ::YARD::CodeObjects::Base + # The source code representing the constant's value + # + # @return [String] the value the constant is set to + # + # source://yard//lib/yard/code_objects/constant_object.rb#10 + def value; end + + # source://yard//lib/yard/code_objects/constant_object.rb#12 + def value=(value); end +end + +# Represents an instance method of a module that was mixed into the class +# scope of another namespace. +# +# @see MethodObject +# +# source://yard//lib/yard/code_objects/extended_method_object.rb#7 +class YARD::CodeObjects::ExtendedMethodObject + # Sets up a delegate for {MethodObject} obj. + # + # @param obj [MethodObject] the instance method to treat as a mixed in + # class method on another namespace. + # @return [ExtendedMethodObject] a new instance of ExtendedMethodObject + # + # source://yard//lib/yard/code_objects/extended_method_object.rb#17 + def initialize(obj); end + + # Sends all methods to the {MethodObject} assigned in {#initialize} + # + # @see #initialize + # @see MethodObject + # + # source://yard//lib/yard/code_objects/extended_method_object.rb#22 + def method_missing(sym, *args, &block); end + + # @return [Symbol] always +:class+ + # + # source://yard//lib/yard/code_objects/extended_method_object.rb#11 + def scope; end +end + +# An ExtraFileObject represents an extra documentation file (README or other +# file). It is not strictly a CodeObject (does not inherit from `Base`) although +# it implements `path`, `name` and `type`, and therefore should be structurally +# compatible with most CodeObject interfaces. +# +# source://yard//lib/yard/code_objects/extra_file_object.rb#7 +class YARD::CodeObjects::ExtraFileObject + # Creates a new extra file object. + # + # @param filename [String] the location on disk of the file + # @param contents [String] the file contents. If not set, the contents + # will be read from disk using the +filename+. + # @return [ExtraFileObject] a new instance of ExtraFileObject + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#18 + def initialize(filename, contents = T.unsafe(nil)); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#64 + def ==(other); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#30 + def attributes; end + + # Sets the attribute attributes + # + # @param value the value to set the attribute attributes to. + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#9 + def attributes=(_arg0); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#39 + def contents; end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#44 + def contents=(contents); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#64 + def eql?(other); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#64 + def equal?(other); end + + # Returns the value of attribute filename. + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#8 + def filename; end + + # Sets the attribute filename + # + # @param value the value to set the attribute filename to. + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#8 + def filename=(_arg0); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#70 + def hash; end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#57 + def inspect; end + + # @since 0.8.3 + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#12 + def locale; end + + # @param locale [String] the locale name to be translated. + # @return [void] + # @since 0.8.3 + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#52 + def locale=(locale); end + + # Returns the value of attribute name. + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#10 + def name; end + + # Sets the attribute name + # + # @param value the value to set the attribute name to. + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#10 + def name=(_arg0); end + + # Returns the value of attribute name. + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#10 + def path; end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#35 + def title; end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#57 + def to_s; end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#62 + def type; end + + private + + # source://yard//lib/yard/code_objects/extra_file_object.rb#74 + def ensure_parsed; end + + # @param data [String] the file contents + # + # source://yard//lib/yard/code_objects/extra_file_object.rb#81 + def parse_contents(data); end + + # source://yard//lib/yard/code_objects/extra_file_object.rb#129 + def translate(data); end +end + +# Instance method separator +# +# source://yard//lib/yard/code_objects/base.rb#40 +YARD::CodeObjects::ISEP = T.let(T.unsafe(nil), String) + +# Regex-quoted instance method separator +# +# source://yard//lib/yard/code_objects/base.rb#43 +YARD::CodeObjects::ISEPQ = T.let(T.unsafe(nil), String) + +# Regular expression to match a fully qualified method def (self.foo, Class.foo). +# +# source://yard//lib/yard/code_objects/base.rb#64 +YARD::CodeObjects::METHODMATCH = T.let(T.unsafe(nil), Regexp) + +# Regular expression to match a method name +# +# source://yard//lib/yard/code_objects/base.rb#61 +YARD::CodeObjects::METHODNAMEMATCH = T.let(T.unsafe(nil), Regexp) + +# A MacroObject represents a docstring defined through +@!macro NAME+ and can be +# reused by specifying the tag +@!macro NAME+. You can also provide the +# +attached+ type flag to the macro definition to have it attached to the +# specific DSL method so it will be implicitly reused. +# +# Macros are fully described in the {file:docs/Tags.md#macro Tags Overview} +# document. +# +# @example Creating a basic named macro +# # @!macro prop +# # @!method $1(${3-}) +# # @return [$2] the value of the $0 +# property :foo, String, :a, :b +# +# # @!macro prop +# property :bar, Numeric, :value +# @example Creating a macro that is attached to the method call +# # @!macro [attach] prop2 +# # @!method $1(value) +# property :foo +# +# # Extra data added to docstring +# property :bar +# +# source://yard//lib/yard/code_objects/macro_object.rb#30 +class YARD::CodeObjects::MacroObject < ::YARD::CodeObjects::Base + # @return [Boolean] whether this macro is attached to a method + # + # source://yard//lib/yard/code_objects/macro_object.rb#149 + def attached?; end + + # Expands the macro using + # + # @example Expanding a Macro + # macro.expand(%w(property foo bar), 'property :foo, :bar', '') #=> + # "...macro data interpolating this line of code..." + # @param call_params [Array<String>] a list of tokens that are passed + # to the method call + # @param full_source [String] the full method call (not including the block) + # @param block_source [String] the source passed in the block of the method + # call, if there is a block. + # @see expand + # + # source://yard//lib/yard/code_objects/macro_object.rb#167 + def expand(call_params = T.unsafe(nil), full_source = T.unsafe(nil), block_source = T.unsafe(nil)); end + + # @return [String] the macro data stored on the object + # + # source://yard//lib/yard/code_objects/macro_object.rb#142 + def macro_data; end + + # @return [String] the macro data stored on the object + # + # source://yard//lib/yard/code_objects/macro_object.rb#142 + def macro_data=(_arg0); end + + # @return [CodeObjects::Base] the method object that this macro is + # attached to. + # + # source://yard//lib/yard/code_objects/macro_object.rb#146 + def method_object; end + + # @return [CodeObjects::Base] the method object that this macro is + # attached to. + # + # source://yard//lib/yard/code_objects/macro_object.rb#146 + def method_object=(_arg0); end + + # Overrides {Base#path} so the macro path is ".macro.MACRONAME" + # + # source://yard//lib/yard/code_objects/macro_object.rb#152 + def path; end + + # Overrides the separator to be '.' + # + # source://yard//lib/yard/code_objects/macro_object.rb#155 + def sep; end + + class << self + # Applies a macro on a docstring by creating any macro data inside of + # the docstring first. Equivalent to calling {find_or_create} and {apply_macro} + # on the new macro object. + # + # @param docstring [Docstring] the docstring to create a macro out of + # @param call_params [Array<String>] the method name and parameters + # to the method call. These arguments will fill $0-N + # @param full_source [String] the full source line (excluding block) + # interpolated as $* + # @param block_source [String] Currently unused. Will support + # interpolating the block data as a variable. + # @return [String] the expanded macro data + # @see find_or_create + # + # source://yard//lib/yard/code_objects/macro_object.rb#120 + def apply(docstring, call_params = T.unsafe(nil), full_source = T.unsafe(nil), block_source = T.unsafe(nil), _method_object = T.unsafe(nil)); end + + # Applies a macro to a docstring, interpolating the macro's data on the + # docstring and appending any extra local docstring data that was in + # the original +docstring+ object. + # + # @param macro [MacroObject] the macro object + # @param call_params [Array<String>] the method name and parameters + # to the method call. These arguments will fill $0-N + # @param full_source [String] the full source line (excluding block) + # interpolated as $* + # @param block_source [String] Currently unused. Will support + # interpolating the block data as a variable. + # @return [String] the expanded macro data + # + # source://yard//lib/yard/code_objects/macro_object.rb#136 + def apply_macro(macro, docstring, call_params = T.unsafe(nil), full_source = T.unsafe(nil), block_source = T.unsafe(nil)); end + + # Creates a new macro and fills in the relevant properties. + # + # @param macro_name [String] the name of the macro, must be unique. + # @param data [String] the data the macro should expand when re-used + # @param method_object [CodeObjects::Base] an object to attach this + # macro to. If supplied, {#attached?} will be true + # @return [MacroObject] the newly created object + # + # source://yard//lib/yard/code_objects/macro_object.rb#40 + def create(macro_name, data, method_object = T.unsafe(nil)); end + + # Parses a given docstring and determines if the macro is "new" or + # not. If the macro has $variable names or if it has a @!macro tag + # with the [new] or [attached] flag, it is considered new. + # + # If a new macro is found, the macro is created and registered. Otherwise + # the macro name is searched and returned. If a macro is not found, + # nil is returned. + # + # @param macro_name [#to_s] the name of the macro + # @param method_object [CodeObjects::Base] an optional method to attach + # the macro to. Only used if the macro is being created, otherwise + # this argument is ignored. + # @return [MacroObject] the newly created or existing macro, depending + # on whether the @!macro tag was a new tag or not. + # @return [nil] if the +data+ has no macro tag or if the macro is + # not new and no macro by the macro name is found. + # + # source://yard//lib/yard/code_objects/macro_object.rb#71 + def create_docstring(macro_name, data, method_object = T.unsafe(nil)); end + + # Expands +macro_data+ using the interpolation parameters. + # + # Interpolation rules: + # * $0, $1, $2, ... = the Nth parameter in +call_params+ + # * $* = the full statement source (excluding block) + # * Also supports $!{N-M} ranges, as well as negative indexes on N or M + # * Use \$ to escape the variable name in a macro. + # + # @param macro_data [String] the macro data to expand (taken from {#macro_data}) + # + # source://yard//lib/yard/code_objects/macro_object.rb#93 + def expand(macro_data, call_params = T.unsafe(nil), full_source = T.unsafe(nil), block_source = T.unsafe(nil)); end + + # Finds a macro using +macro_name+ + # + # @param macro_name [#to_s] the name of the macro + # @return [MacroObject] if a macro is found + # @return [nil] if there is no registered macro by that name + # + # source://yard//lib/yard/code_objects/macro_object.rb#51 + def find(macro_name); end + + # Parses a given docstring and determines if the macro is "new" or + # not. If the macro has $variable names or if it has a @!macro tag + # with the [new] or [attached] flag, it is considered new. + # + # If a new macro is found, the macro is created and registered. Otherwise + # the macro name is searched and returned. If a macro is not found, + # nil is returned. + # + # @param macro_name [#to_s] the name of the macro + # @param method_object [CodeObjects::Base] an optional method to attach + # the macro to. Only used if the macro is being created, otherwise + # this argument is ignored. + # @return [MacroObject] the newly created or existing macro, depending + # on whether the @!macro tag was a new tag or not. + # @return [nil] if the +data+ has no macro tag or if the macro is + # not new and no macro by the macro name is found. + # + # source://yard//lib/yard/code_objects/macro_object.rb#71 + def find_or_create(macro_name, data, method_object = T.unsafe(nil)); end + end +end + +# source://yard//lib/yard/code_objects/macro_object.rb#31 +YARD::CodeObjects::MacroObject::MACRO_MATCH = T.let(T.unsafe(nil), Regexp) + +# Represents a Ruby method in source +# +# source://yard//lib/yard/code_objects/method_object.rb#7 +class YARD::CodeObjects::MethodObject < ::YARD::CodeObjects::Base + # Creates a new method object in +namespace+ with +name+ and an instance + # or class +scope+ + # + # If scope is +:module+, this object is instantiated as a public + # method in +:class+ scope, but also creates a new (empty) method + # as a private +:instance+ method on the same class or module. + # + # @param namespace [NamespaceObject] the namespace + # @param name [String, Symbol] the method name + # @param scope [Symbol] +:instance+, +:class+, or +:module+ + # @return [MethodObject] a new instance of MethodObject + # + # source://yard//lib/yard/code_objects/method_object.rb#37 + def initialize(namespace, name, scope = T.unsafe(nil), &block); end + + # Returns all alias names of the object + # + # @return [Array<MethodObject>] the alias names + # + # source://yard//lib/yard/code_objects/method_object.rb#149 + def aliases; end + + # Returns the read/writer info for the attribute if it is one + # + # @return [SymbolHash] if there is information about the attribute + # @return [nil] if the method is not an attribute + # @since 0.5.3 + # + # source://yard//lib/yard/code_objects/method_object.rb#93 + def attr_info; end + + # @return [Boolean] whether or not the method is the #initialize constructor method + # + # source://yard//lib/yard/code_objects/method_object.rb#78 + def constructor?; end + + # Whether the object is explicitly defined in source or whether it was + # inferred by a handler. For instance, attribute methods are generally + # inferred and therefore not explicitly defined in source. + # + # @return [Boolean] whether the object is explicitly defined in source. + # + # source://yard//lib/yard/code_objects/method_object.rb#18 + def explicit; end + + # Whether the object is explicitly defined in source or whether it was + # inferred by a handler. For instance, attribute methods are generally + # inferred and therefore not explicitly defined in source. + # + # @return [Boolean] whether the object is explicitly defined in source. + # + # source://yard//lib/yard/code_objects/method_object.rb#18 + def explicit=(_arg0); end + + # Tests if the object is defined as an alias of another method + # + # @return [Boolean] whether the object is an alias + # + # source://yard//lib/yard/code_objects/method_object.rb#126 + def is_alias?; end + + # Tests if the object is defined as an attribute in the namespace + # + # @return [Boolean] whether the object is an attribute + # + # source://yard//lib/yard/code_objects/method_object.rb#114 + def is_attribute?; end + + # Tests boolean {#explicit} value. + # + # @return [Boolean] whether the method is explicitly defined in source + # + # source://yard//lib/yard/code_objects/method_object.rb#134 + def is_explicit?; end + + # @return [Boolean] whether or not this method was created as a module + # function + # @since 0.8.0 + # + # source://yard//lib/yard/code_objects/method_object.rb#85 + def module_function?; end + + # Returns the name of the object. + # + # @example The name of an instance method (with prefix) + # an_instance_method.name(true) # => "#mymethod" + # @example The name of a class method (with prefix) + # a_class_method.name(true) # => "mymethod" + # @param prefix [Boolean] whether or not to show the prefix + # @return [String] returns {#sep} + +name+ for an instance method if + # prefix is true + # @return [Symbol] the name without {#sep} if prefix is set to false + # + # source://yard//lib/yard/code_objects/method_object.rb#175 + def name(prefix = T.unsafe(nil)); end + + # @return [MethodObject] the object that this method overrides + # @return [nil] if it does not override a method + # @since 0.6.0 + # + # source://yard//lib/yard/code_objects/method_object.rb#141 + def overridden_method; end + + # Returns the list of parameters parsed out of the method signature + # with their default values. + # + # @return [Array<Array(String, String)>] a list of parameter names followed + # by their default values (or nil) + # + # source://yard//lib/yard/code_objects/method_object.rb#25 + def parameters; end + + # Returns the list of parameters parsed out of the method signature + # with their default values. + # + # @return [Array<Array(String, String)>] a list of parameter names followed + # by their default values (or nil) + # + # source://yard//lib/yard/code_objects/method_object.rb#25 + def parameters=(_arg0); end + + # Override path handling for instance methods in the root namespace + # (they should still have a separator as a prefix). + # + # @return [String] the path of a method + # + # source://yard//lib/yard/code_objects/method_object.rb#161 + def path; end + + # @return [Boolean] whether the method is a reader attribute + # @since 0.5.3 + # + # source://yard//lib/yard/code_objects/method_object.rb#107 + def reader?; end + + # The scope of the method (+:class+ or +:instance+) + # + # @return [Symbol] the scope + # + # source://yard//lib/yard/code_objects/method_object.rb#11 + def scope; end + + # Changes the scope of an object from :instance or :class + # + # @param v [Symbol] the new scope + # + # source://yard//lib/yard/code_objects/method_object.rb#58 + def scope=(v); end + + # Override separator to differentiate between class and instance + # methods. + # + # @return [String] "#" for an instance method, "." for class + # + # source://yard//lib/yard/code_objects/method_object.rb#182 + def sep; end + + # @return [Boolean] whether the method is a writer attribute + # @since 0.5.3 + # + # source://yard//lib/yard/code_objects/method_object.rb#100 + def writer?; end + + protected + + # source://yard//lib/yard/code_objects/method_object.rb#192 + def copyable_attributes; end +end + +# Represents a Ruby module. +# +# source://yard//lib/yard/code_objects/module_object.rb#6 +class YARD::CodeObjects::ModuleObject < ::YARD::CodeObjects::NamespaceObject + # Returns the inheritance tree of mixins. + # + # @param include_mods [Boolean] if true, will include mixed in + # modules (which is likely what is wanted). + # @return [Array<NamespaceObject>] a list of namespace objects + # + # source://yard//lib/yard/code_objects/module_object.rb#12 + def inheritance_tree(include_mods = T.unsafe(nil)); end +end + +# Regular expression to match namespaces (const A or complex path A::B) +# +# source://yard//lib/yard/code_objects/base.rb#58 +YARD::CodeObjects::NAMESPACEMATCH = T.let(T.unsafe(nil), Regexp) + +# Namespace separator +# +# source://yard//lib/yard/code_objects/base.rb#34 +YARD::CodeObjects::NSEP = T.let(T.unsafe(nil), String) + +# Regex-quoted namespace separator +# +# source://yard//lib/yard/code_objects/base.rb#37 +YARD::CodeObjects::NSEPQ = T.let(T.unsafe(nil), String) + +# This module controls registration and accessing of namespace separators +# for {Registry} lookup. +# +# @since 0.9.1 +# +# source://yard//lib/yard/code_objects/namespace_mapper.rb#8 +module YARD::CodeObjects::NamespaceMapper + # Clears the map of separators. + # + # @return [void] + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#55 + def clear_separators; end + + # Gets or sets the default separator value to use when no + # separator for the namespace can be determined. + # + # @example + # default_separator "::" + # @param value [String, nil] the default separator, or nil to return the + # value + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#68 + def default_separator(value = T.unsafe(nil)); end + + # Registers a separator with an optional set of valid types that + # must follow the separator lexically. + # + # Calls all callbacks defined by {NamespaceMapper.on_invalidate} after + # the separator is registered. + # + # @example Registering separators for a method object + # # Anything after a "#" denotes a method object + # register_separator "#", :method + # # Anything after a "." denotes a method object + # register_separator ".", :method + # @param sep [String] the separator string for the namespace + # @param valid_types [Array<Symbol>] a list of object types that + # must follow the separator. If the list is empty, any type can + # follow the separator. + # @see .on_invalidate + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#27 + def register_separator(sep, *valid_types); end + + # @return [Array<String>] all of the registered separators + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#80 + def separators; end + + # @param type [String] the type to return separators for + # @return [Array<Symbol>] a list of separators registered to a type + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#97 + def separators_for_type(type); end + + # @return [Regexp] the regexp match of all separators + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#85 + def separators_match; end + + # @param sep [String] the separator to return types for + # @return [Array<Symbol>] a list of types registered to a separator + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#91 + def types_for_separator(sep); end + + # Unregisters a separator by a type. + # + # @param type [Symbol] the type to unregister + # @see #register_separator + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#43 + def unregister_separator_by_type(type); end + + class << self + # @return [String] the default separator when no separator can begin + # determined. + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#137 + def default_separator; end + + # @return [String] the default separator when no separator can begin + # determined. + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#137 + def default_separator=(_arg0); end + + # Invalidates all separators + # + # @return [void] + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#125 + def invalidate; end + + # @return [Hash] a mapping of types to separators + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#114 + def map; end + + # @return [Regexp] the full list of separators as a regexp match + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#131 + def map_match; end + + # Adds a callback that triggers when a new separator is registered or + # the cache is cleared by invalidation. + # + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#107 + def on_invalidate(&block); end + + # @return [Hash] a reverse mapping of separators to types + # @since 0.9.1 + # + # source://yard//lib/yard/code_objects/namespace_mapper.rb#119 + def rev_map; end + end +end + +# A "namespace" is any object that can store other objects within itself. +# The two main Ruby objects that can act as namespaces are modules +# ({ModuleObject}) and classes ({ClassObject}). +# +# source://yard//lib/yard/code_objects/namespace_object.rb#9 +class YARD::CodeObjects::NamespaceObject < ::YARD::CodeObjects::Base + # Creates a new namespace object inside +namespace+ with +name+. + # + # @return [NamespaceObject] a new instance of NamespaceObject + # @see Base#initialize + # + # source://yard//lib/yard/code_objects/namespace_object.rb#56 + def initialize(namespace, name, *args, &block); end + + # A hash containing two keys, :class and :instance, each containing + # a hash of objects and their alias names. + # + # @return [Hash] a list of methods + # + # source://yard//lib/yard/code_objects/namespace_object.rb#44 + def aliases; end + + # A hash containing two keys, class and instance, each containing + # the attribute name with a { :read, :write } hash for the read and + # write objects respectively. + # + # @example The attributes of an object + # >> Registry.at('YARD::Docstring').attributes + # => { + # :class => { }, + # :instance => { + # :ref_tags => { + # :read => #<yardoc method YARD::Docstring#ref_tags>, + # :write => nil + # }, + # :object => { + # :read => #<yardoc method YARD::Docstring#object>, + # :write => #<yardoc method YARD::Docstring#object=> + # }, + # ... + # } + # } + # @return [Hash] a list of methods + # + # source://yard//lib/yard/code_objects/namespace_object.rb#39 + def attributes; end + + # Looks for a child that matches the attributes specified by +opts+. + # + # @example Finds a child by name and scope + # namespace.child(:name => :to_s, :scope => :instance) + # # => #<yardoc method MyClass#to_s> + # @return [Base, nil] the first matched child object, or nil + # + # source://yard//lib/yard/code_objects/namespace_object.rb#86 + def child(opts = T.unsafe(nil)); end + + # The list of objects defined in this namespace + # + # @return [Array<Base>] a list of objects + # + # source://yard//lib/yard/code_objects/namespace_object.rb#16 + def children; end + + # Only the class attributes + # + # @return [Hash] a list of method names and their read/write objects + # @see #attributes + # + # source://yard//lib/yard/code_objects/namespace_object.rb#69 + def class_attributes; end + + # Class mixins + # + # @return [Array<ModuleObject>] a list of mixins + # + # source://yard//lib/yard/code_objects/namespace_object.rb#48 + def class_mixins; end + + # Returns all constants in the namespace + # + # @option opts + # @param opts [Hash] a customizable set of options + # @return [Array<ConstantObject>] a list of constant objects + # + # source://yard//lib/yard/code_objects/namespace_object.rb#164 + def constants(opts = T.unsafe(nil)); end + + # Returns class variables defined in this namespace. + # + # @return [Array<ClassVariableObject>] a list of class variable objects + # + # source://yard//lib/yard/code_objects/namespace_object.rb#186 + def cvars; end + + # @return [Array<String>] a list of ordered group names inside the namespace + # @since 0.6.0 + # + # source://yard//lib/yard/code_objects/namespace_object.rb#12 + def groups; end + + # @return [Array<String>] a list of ordered group names inside the namespace + # @since 0.6.0 + # + # source://yard//lib/yard/code_objects/namespace_object.rb#12 + def groups=(_arg0); end + + # Returns constants included from any mixins + # + # @return [Array<ConstantObject>] a list of constant objects + # + # source://yard//lib/yard/code_objects/namespace_object.rb#172 + def included_constants; end + + # Returns methods included from any mixins that match the attributes + # specified by +opts+. If no options are specified, returns all included + # methods. + # + # @option opts + # @option opts + # @option opts + # @param opts [Hash] a customizable set of options + # @see #meths + # + # source://yard//lib/yard/code_objects/namespace_object.rb#144 + def included_meths(opts = T.unsafe(nil)); end + + # Only the instance attributes + # + # @return [Hash] a list of method names and their read/write objects + # @see #attributes + # + # source://yard//lib/yard/code_objects/namespace_object.rb#76 + def instance_attributes; end + + # Instance mixins + # + # @return [Array<ModuleObject>] a list of mixins + # + # source://yard//lib/yard/code_objects/namespace_object.rb#52 + def instance_mixins; end + + # Returns all methods that match the attributes specified by +opts+. If + # no options are provided, returns all methods. + # + # @example Finds all private and protected class methods + # namespace.meths(:visibility => [:private, :protected], :scope => :class) + # # => [#<yardoc method MyClass.privmeth>, #<yardoc method MyClass.protmeth>] + # @option opts + # @option opts + # @option opts + # @param opts [Hash] a customizable set of options + # @return [Array<MethodObject>] a list of method objects + # + # source://yard//lib/yard/code_objects/namespace_object.rb#113 + def meths(opts = T.unsafe(nil)); end + + # Returns for specific scopes. If no scopes are provided, returns all mixins. + # + # @param scopes [Array<Symbol>] a list of scopes (:class, :instance) to + # return mixins for. If this is empty, all scopes will be returned. + # @return [Array<ModuleObject>] a list of mixins + # + # source://yard//lib/yard/code_objects/namespace_object.rb#194 + def mixins(*scopes); end +end + +# @private +# +# source://yard//lib/yard/code_objects/proxy.rb#8 +YARD::CodeObjects::PROXY_MATCH = T.let(T.unsafe(nil), Regexp) + +# The Proxy class is a way to lazily resolve code objects in +# cases where the object may not yet exist. A proxy simply stores +# an unresolved path until a method is called on the object, at which +# point it does a lookup using {Registry.resolve}. If the object is +# not found, a warning is raised and {ProxyMethodError} might be raised. +# +# @example Creates a Proxy to the String class from a module +# # When the String class is parsed this method will +# # begin to act like the String ClassObject. +# Proxy.new(mymoduleobj, "String") +# @see Registry.resolve +# @see ProxyMethodError +# +# source://yard//lib/yard/code_objects/proxy.rb#24 +class YARD::CodeObjects::Proxy + # Creates a new Proxy + # + # @raise [ArgumentError] if namespace is not a NamespaceObject + # @return [Proxy] self + # + # source://yard//lib/yard/code_objects/proxy.rb#34 + def initialize(namespace, name, type = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#118 + def <=>(other); end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#127 + def ==(other); end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#113 + def ===(other); end + + # Returns the class name of the object the proxy is mimicking, if + # resolved. Otherwise returns +Proxy+. + # + # @return [Class] the resolved object's class or +Proxy+ + # + # source://yard//lib/yard/code_objects/proxy.rb#142 + def class; end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#127 + def equal?(other); end + + # @return [Integer] the object's hash value (for equality checking) + # + # source://yard//lib/yard/code_objects/proxy.rb#137 + def hash; end + + # Returns a text representation of the Proxy + # + # @return [String] the object's #inspect method or P(OBJECTPATH) + # + # source://yard//lib/yard/code_objects/proxy.rb#91 + def inspect; end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#161 + def instance_of?(klass); end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#108 + def is_a?(klass); end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#166 + def kind_of?(klass); end + + # Dispatches the method to the resolved object. + # + # @raise [ProxyMethodError] if the proxy cannot find the real object + # + # source://yard//lib/yard/code_objects/proxy.rb#178 + def method_missing(meth, *args, &block); end + + # The name of the object + # + # @param prefix [Boolean] whether to show a prefix. Implement + # this in a subclass to define how the prefix is showed. + # @return [Symbol] if prefix is false, the symbolized name + # @return [String] if prefix is true, prefix + the name as a String. + # This must be implemented by the subclass. + # + # source://yard//lib/yard/code_objects/proxy.rb#85 + def name(prefix = T.unsafe(nil)); end + + # Returns the value of attribute namespace. + # + # source://yard//lib/yard/code_objects/proxy.rb#27 + def namespace; end + + # Returns the value of attribute namespace. + # + # source://yard//lib/yard/code_objects/proxy.rb#27 + def parent; end + + # If the proxy resolves to an object, returns its path, otherwise + # guesses at the correct path using the original namespace and name. + # + # @return [String] the assumed path of the proxy (or the real path + # of the resolved object) + # + # source://yard//lib/yard/code_objects/proxy.rb#100 + def path; end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#171 + def respond_to?(meth, include_private = T.unsafe(nil)); end + + # This class is never a root object + # + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/proxy.rb#200 + def root?; end + + # If the proxy resolves to an object, returns its path, otherwise + # guesses at the correct path using the original namespace and name. + # + # @return [String] the assumed path of the proxy (or the real path + # of the resolved object) + # + # source://yard//lib/yard/code_objects/proxy.rb#100 + def title; end + + # If the proxy resolves to an object, returns its path, otherwise + # guesses at the correct path using the original namespace and name. + # + # @return [String] the assumed path of the proxy (or the real path + # of the resolved object) + # + # source://yard//lib/yard/code_objects/proxy.rb#100 + def to_s; end + + # If the proxy resolves to an object, returns its path, otherwise + # guesses at the correct path using the original namespace and name. + # + # @return [String] the assumed path of the proxy (or the real path + # of the resolved object) + # + # source://yard//lib/yard/code_objects/proxy.rb#100 + def to_str; end + + # Returns the type of the proxy. If it cannot be resolved at the + # time of the call, it will either return the inferred proxy type + # (see {#type=}) or +:proxy+ + # + # @return [Symbol] the Proxy's type + # @see #type= + # + # source://yard//lib/yard/code_objects/proxy.rb#151 + def type; end + + # Allows a parser to infer the type of the proxy by its path. + # + # @param type [#to_sym] the proxy's inferred type + # @return [void] + # + # source://yard//lib/yard/code_objects/proxy.rb#158 + def type=(type); end + + private + + # source://yard//lib/yard/code_objects/proxy.rb#228 + def proxy_path; end + + # @note this method fixes a bug in 1.9.2: http://gist.github.com/437136 + # + # source://yard//lib/yard/code_objects/proxy.rb#205 + def to_ary; end + + # Attempts to find the object that this unresolved object + # references by checking if any objects by this name are + # registered all the way up the namespace tree. + # + # @return [Base, nil] the registered code object or nil + # + # source://yard//lib/yard/code_objects/proxy.rb#212 + def to_obj; end + + class << self + # source://yard//lib/yard/code_objects/proxy.rb#25 + def ===(other); end + end +end + +# A special type of +NoMethodError+ when raised from a {Proxy} +# +# source://yard//lib/yard/code_objects/proxy.rb#5 +class YARD::CodeObjects::ProxyMethodError < ::NoMethodError; end + +# Represents the root namespace object (the invisible Ruby module that +# holds all top level modules, class and other objects). +# +# source://yard//lib/yard/code_objects/root_object.rb#6 +class YARD::CodeObjects::RootObject < ::YARD::CodeObjects::ModuleObject + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/root_object.rb#12 + def equal?(other); end + + # source://yard//lib/yard/code_objects/root_object.rb#16 + def hash; end + + # source://yard//lib/yard/code_objects/root_object.rb#8 + def inspect; end + + # source://yard//lib/yard/code_objects/root_object.rb#7 + def path; end + + # @return [Boolean] + # + # source://yard//lib/yard/code_objects/root_object.rb#9 + def root?; end + + # source://yard//lib/yard/code_objects/root_object.rb#10 + def title; end +end + +# This class maintains all system-wide configuration for YARD and handles +# the loading of plugins. To access options call {options}, and to load +# a plugin use {load_plugin}. All other public methods are used by YARD +# during load time. +# +# == User Configuration Files +# +# Persistent user configuration files can be stored in the file +# +~/.yard/config+, which is read when YARD first loads. The file should +# be formatted as YAML, and should contain a map of keys and values. +# +# Although you can specify any key-value mapping in the configuration file, +# YARD defines special keys specified in {DEFAULT_CONFIG_OPTIONS}. +# +# An example of a configuration file is listed below: +# +# !!!yaml +# load_plugins: true # Auto-load plugins when YARD starts +# ignored_plugins: +# - yard-broken +# - broken2 # yard- prefix not necessary +# autoload_plugins: +# - yard-rspec +# +# == Automatic Loading of Plugins +# +# YARD 0.6.2 will no longer automatically load all plugins by default. This +# option can be reset by setting 'load_plugins' to true in the configuration +# file. In addition, you can specify a set of specific plugins to load on +# load through the 'autoload_plugins' list setting. This setting is +# independent of the 'load_plugins' value and will always be processed. +# +# == Ignored Plugins File +# +# YARD 0.5 and below used a +~/.yard/ignored_plugins+ file to specify +# plugins to be ignored at load time. Ignored plugins in 0.6.2 and above +# should now be specified in the main configuration file, though YARD +# will support the +ignored_plugins+ file until 0.7.x. +# +# == Safe Mode +# +# YARD supports running in safe-mode. By doing this, it will avoid executing +# any user code such as require files or queries. Plugins will still be +# loaded with safe mode on, because plugins are properly namespaced with +# a 'yard-' prefix, must be installed as a gem, and therefore cannot be +# touched by the user. To specify safe mode, use the +safe_mode+ key. +# +# == Plugin Specific Configuration +# +# Additional settings can be defined within the configuration file +# specifically to provide configuration for a plugin. A plugin that utilizes +# the YARD configuration is strongly encouraged to utilize namespacing of +# their configuration content. +# +# !!!yaml +# load_plugins: true # Auto-load plugins when YARD starts +# ignored_plugins: +# - yard-broken +# - broken2 # yard- prefix not necessary +# autoload_plugins: +# - yard-rspec +# # Plugin Specific Configuration +# yard-sample-plugin: +# show-results-inline: true +# +# As the configuration is available system wide, it can be +# accessed within the plugin code. +# +# +# if YARD::Config.options['yard-sample-plugin'] and +# YARD::Config.options['yard-sample-plugin']['show-results-inline'] +# # ... perform the action that places the results inline ... +# else +# # ... do the default behavior of not showing the results inline ... +# end +# +# When accessing the configuration, be aware that this file is user managed +# so configuration keys and values may not be present. Make no assumptions and +# instead ensure that you check for the existence of keys before proceeding to +# retrieve values. +# +# @see options +# @since 0.6.2 +# +# source://yard//lib/yard/config.rb#86 +class YARD::Config + class << self + # Legacy support for {IGNORED_PLUGINS} + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#221 + def add_ignored_plugins_file; end + + # @return [Array<String>] arguments from commandline and yardopts file + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#268 + def arguments; end + + # Loads settings from {CONFIG_FILE}. This method is called by YARD at + # load time and should not be called by the user. + # + # @return [void] + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#119 + def load; end + + # Load plugins set in :autoload_plugins + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#189 + def load_autoload_plugins; end + + # Load plugins from {arguments} + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#194 + def load_commandline_plugins; end + + # Check for command-line safe_mode switch in {arguments} + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#204 + def load_commandline_safemode; end + + # Load gem plugins if :load_plugins is true + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#169 + def load_gem_plugins; end + + # Loads an individual plugin by name. It is not necessary to include the + # +yard-+ plugin prefix here. + # + # @param name [String] the name of the plugin (with or without +yard-+ prefix) + # @return [Boolean] whether the plugin was successfully loaded + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#157 + def load_plugin(name); end + + # Print a warning if the plugin failed to load + # + # @return [false] + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#214 + def load_plugin_failed(name, exception); end + + # Loads gems that match the name 'yard-*' (recommended) or 'yard_*' except + # those listed in +~/.yard/ignored_plugins+. This is called immediately + # after YARD is loaded to allow plugin support. + # + # @return [Boolean] true if all plugins loaded successfully, false otherwise. + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#146 + def load_plugins; end + + # The system-wide configuration options for YARD + # + # @return [SymbolHash] a map a key-value pair settings. + # @see DEFAULT_CONFIG_OPTIONS + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#91 + def options; end + + # The system-wide configuration options for YARD + # + # @return [SymbolHash] a map a key-value pair settings. + # @see DEFAULT_CONFIG_OPTIONS + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#91 + def options=(_arg0); end + + # Loads the YAML configuration file into memory + # + # @return [Hash] the contents of the YAML file from disk + # @see CONFIG_FILE + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#236 + def read_config_file; end + + # Saves settings to {CONFIG_FILE}. + # + # @return [void] + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#135 + def save; end + + # Sanitizes and normalizes a plugin name to include the 'yard-' prefix. + # + # @param name [String] the plugin name + # @return [String] the sanitized and normalized plugin name. + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#252 + def translate_plugin_name(name); end + + # Translates plugin names to add yard- prefix. + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#228 + def translate_plugin_names; end + + # Temporarily loads .yardopts file into @yardopts + # + # @since 0.6.2 + # + # source://yard//lib/yard/config.rb#259 + def with_yardopts; end + end +end + +# The location where YARD stores user-specific settings +# +# @since 0.6.2 +# +# source://yard//lib/yard/config.rb#95 +YARD::Config::CONFIG_DIR = T.let(T.unsafe(nil), String) + +# The main configuration YAML file. +# +# @since 0.6.2 +# +# source://yard//lib/yard/config.rb#98 +YARD::Config::CONFIG_FILE = T.let(T.unsafe(nil), String) + +# Default configuration options +# +# @since 0.6.2 +# +# source://yard//lib/yard/config.rb#105 +YARD::Config::DEFAULT_CONFIG_OPTIONS = T.let(T.unsafe(nil), Hash) + +# File listing all ignored plugins +# +# @deprecated Set `ignored_plugins` in the {CONFIG_FILE} instead. +# @since 0.6.2 +# +# source://yard//lib/yard/config.rb#102 +YARD::Config::IGNORED_PLUGINS = T.let(T.unsafe(nil), String) + +# The prefix used for YARD plugins. Name your gem with this prefix +# to allow it to be used as a plugin. +# +# @since 0.6.2 +# +# source://yard//lib/yard/config.rb#114 +YARD::Config::YARD_PLUGIN_PREFIX = T.let(T.unsafe(nil), Regexp) + +# A documentation string, or "docstring" for short, encapsulates the +# comments and metadata, or "tags", of an object. Meta-data is expressed +# in the form +@tag VALUE+, where VALUE can span over multiple lines as +# long as they are indented. The following +@example+ tag shows how tags +# can be indented: +# +# # @example My example +# # a = "hello world" +# # a.reverse +# # @version 1.0 +# +# Tags can be nested in a documentation string, though the {Tags::Tag} +# itself is responsible for parsing the inner tags. +# +# source://yard//lib/yard/docstring.rb#16 +class YARD::Docstring < ::String + # Creates a new docstring with the raw contents attached to an optional + # object. Parsing will be done by the {DocstringParser} class. + # + # @example + # Docstring.new("hello world\n@return Object return", someobj) + # @note To properly parse directives with proper parser context within + # handlers, you should not use this method to create a Docstring. + # Instead, use the {parser}, which takes a handler object that + # can pass parser state onto directives. If a Docstring is created + # with this method, directives do not have access to any parser + # state, and may not function as expected. + # @param content [String] the raw comments to be parsed into a docstring + # and associated meta-data. + # @param object [CodeObjects::Base] an object to associate the docstring + # with. + # @return [Docstring] a new instance of Docstring + # + # source://yard//lib/yard/docstring.rb#103 + def initialize(content = T.unsafe(nil), object = T.unsafe(nil)); end + + # Adds another {Docstring}, copying over tags. + # + # @param other [Docstring, String] the other docstring (or string) to + # add. + # @return [Docstring] a new docstring with both docstrings combines + # + # source://yard//lib/yard/docstring.rb#116 + def +(other); end + + # Adds a tag or reftag object to the tag list. If you want to parse + # tag data based on the {Tags::DefaultFactory} tag factory, use + # {DocstringParser} instead. + # + # @param tags [Tags::Tag, Tags::RefTag] list of tag objects to add + # @return [void] + # + # source://yard//lib/yard/docstring.rb#242 + def add_tag(*tags); end + + # @return [String] the raw documentation (including raw tag text) + # + # source://yard//lib/yard/docstring.rb#53 + def all; end + + # Replaces the docstring with new raw content. Called by {#all=}. + # + # @param content [String] the raw comments to be parsed + # + # source://yard//lib/yard/docstring.rb#132 + def all=(content, parse = T.unsafe(nil)); end + + # Returns true if the docstring has no content that is visible to a template. + # + # @param only_visible_tags [Boolean] whether only {Tags::Library.visible_tags} + # should be checked, or if all tags should be considered. + # @return [Boolean] whether or not the docstring has content + # + # source://yard//lib/yard/docstring.rb#310 + def blank?(only_visible_tags = T.unsafe(nil)); end + + # Deletes all tags where the block returns true + # + # @return [void] + # @since 0.7.0 + # @yieldparam tag [Tags::Tag] the tag that is being tested + # @yieldreturn [Boolean] true if the tag should be deleted + # + # source://yard//lib/yard/docstring.rb#300 + def delete_tag_if(&block); end + + # Delete all tags with +name+ + # + # @param name [String] the tag name + # @return [void] + # @since 0.7.0 + # + # source://yard//lib/yard/docstring.rb#291 + def delete_tags(name); end + + # Deep-copies a docstring + # + # @note This method creates a new docstring with new tag lists, but does + # not create new individual tags. Modifying the tag objects will still + # affect the original tags. + # @return [Docstring] a new copied docstring + # @since 0.7.0 + # + # source://yard//lib/yard/docstring.rb#153 + def dup; end + + # Returns true if at least one tag by the name +name+ was declared + # + # @param name [String] the tag name to search for + # @return [Boolean] whether or not the tag +name+ was declared + # + # source://yard//lib/yard/docstring.rb#283 + def has_tag?(name); end + + # @return [Boolean] whether the docstring was started with "##" + # + # source://yard//lib/yard/docstring.rb#56 + def hash_flag; end + + # source://yard//lib/yard/docstring.rb#57 + def hash_flag=(v); end + + # @return [Fixnum] the first line of the {#line_range} + # @return [nil] if there is no associated {#line_range} + # + # source://yard//lib/yard/docstring.rb#167 + def line; end + + # @return [Range] line range in the {#object}'s file where the docstring was parsed from + # + # source://yard//lib/yard/docstring.rb#50 + def line_range; end + + # @return [Range] line range in the {#object}'s file where the docstring was parsed from + # + # source://yard//lib/yard/docstring.rb#50 + def line_range=(_arg0); end + + # @return [CodeObjects::Base] the object that owns the docstring. + # + # source://yard//lib/yard/docstring.rb#47 + def object; end + + # @return [CodeObjects::Base] the object that owns the docstring. + # + # source://yard//lib/yard/docstring.rb#47 + def object=(_arg0); end + + # @return [Array<Tags::RefTag>] the list of reference tags + # + # source://yard//lib/yard/docstring.rb#44 + def ref_tags; end + + # Replaces the docstring with new raw content. Called by {#all=}. + # + # @param content [String] the raw comments to be parsed + # + # source://yard//lib/yard/docstring.rb#132 + def replace(content, parse = T.unsafe(nil)); end + + # Resolves unresolved other docstring reference if there is + # unresolved reference. Does nothing if there is no unresolved + # reference. + # + # Normally, you don't need to call this method + # explicitly. Resolving unresolved reference is done implicitly. + # + # @return [void] + # + # source://yard//lib/yard/docstring.rb#328 + def resolve_reference; end + + # Gets the first line of a docstring to the period or the first paragraph. + # + # @return [String] The first line or paragraph of the docstring; always ends with a period. + # + # source://yard//lib/yard/docstring.rb#173 + def summary; end + + # Convenience method to return the first tag + # object in the list of tag objects of that name + # + # @example + # doc = Docstring.new("@return zero when nil") + # doc.tag(:return).text # => "zero when nil" + # @param name [#to_s] the tag name to return data for + # @return [Tags::Tag] the first tag in the list of {#tags} + # + # source://yard//lib/yard/docstring.rb#265 + def tag(name); end + + # Returns a list of tags specified by +name+ or all tags if +name+ is not specified. + # + # @param name [#to_s] the tag name to return data for, or nil for all tags + # @return [Array<Tags::Tag>] the list of tags by the specified tag name + # + # source://yard//lib/yard/docstring.rb#273 + def tags(name = T.unsafe(nil)); end + + # Reformats and returns a raw representation of the tag data using the + # current tag and docstring data, not the original text. + # + # @return [String] the updated raw formatted docstring data + # @since 0.7.0 + # @todo Add Tags::Tag#to_raw and refactor + # + # source://yard//lib/yard/docstring.rb#207 + def to_raw; end + + # source://yard//lib/yard/docstring.rb#125 + def to_s; end + + private + + # Maps valid reference tags + # + # @return [Array<Tags::RefTag>] the list of valid reference tags + # + # source://yard//lib/yard/docstring.rb#344 + def convert_ref_tags; end + + # Parses out comments split by newlines into a new code object + # + # @param comments [String] the newline delimited array of comments. If the comments + # are passed as a String, they will be split by newlines. + # @return [String] the non-metadata portion of the comments to + # be used as a docstring + # + # source://yard//lib/yard/docstring.rb#369 + def parse_comments(comments); end + + # A stable sort_by method. + # + # @param list [Enumerable] the list to sort. + # @return [Array] a stable sorted list. + # + # source://yard//lib/yard/docstring.rb#382 + def stable_sort_by(list); end + + class << self + # @note Plugin developers should make sure to reset this value + # after parsing finishes. This can be done via the + # {Parser::SourceParser.after_parse_list} callback. This will + # ensure that YARD can properly parse multiple projects in + # the same process. + # @return [Class<DocstringParser>] the parser class used to parse + # text and optional meta-data from docstrings. Defaults to + # {DocstringParser}. + # @see DocstringParser + # @see Parser::SourceParser.after_parse_list + # + # source://yard//lib/yard/docstring.rb#28 + def default_parser; end + + # @note Plugin developers should make sure to reset this value + # after parsing finishes. This can be done via the + # {Parser::SourceParser.after_parse_list} callback. This will + # ensure that YARD can properly parse multiple projects in + # the same process. + # @return [Class<DocstringParser>] the parser class used to parse + # text and optional meta-data from docstrings. Defaults to + # {DocstringParser}. + # @see DocstringParser + # @see Parser::SourceParser.after_parse_list + # + # source://yard//lib/yard/docstring.rb#28 + def default_parser=(_arg0); end + + # Creates a new docstring without performing any parsing through + # a {DocstringParser}. This method is called by +DocstringParser+ + # when creating the new docstring object. + # + # @param text [String] the textual portion of the docstring + # @param tags [Array<Tags::Tag>] the list of tag objects in the docstring + # @param object [CodeObjects::Base, nil] the object associated with the + # docstring. May be nil. + # @param raw_data [String] the complete docstring, including all + # original formatting and any unparsed tags/directives. + # @param ref_object [CodeObjects::Base, nil] a reference object used for + # the base set of documentation / tag information. + # + # source://yard//lib/yard/docstring.rb#77 + def new!(text, tags = T.unsafe(nil), object = T.unsafe(nil), raw_data = T.unsafe(nil), ref_object = T.unsafe(nil)); end + + # Creates a parser object using the current {default_parser}. + # Equivalent to: + # Docstring.default_parser.new(*args) + # + # @param args arguments are passed to the {DocstringParser} + # class. See {DocstringParser#initialize} for details on + # arguments. + # @return [DocstringParser] the parser object used to parse a + # docstring. + # + # source://yard//lib/yard/docstring.rb#38 + def parser(*args); end + end +end + +# Matches a tag at the start of a comment line +# +# @deprecated Use {DocstringParser::META_MATCH} +# +# source://yard//lib/yard/docstring.rb#61 +YARD::Docstring::META_MATCH = T.let(T.unsafe(nil), Regexp) + +# Parses text and creates a {Docstring} object to represent documentation +# for a {CodeObjects::Base}. To create a new docstring, you should initialize +# the parser and call {#parse} followed by {#to_docstring}. +# +# == Subclassing Notes +# +# The DocstringParser can be subclassed and substituted during parsing by +# setting the {Docstring.default_parser} attribute with the name of the +# subclass. This allows developers to change the way docstrings are +# parsed, allowing for completely different docstring syntaxes. +# +# @example Creating a Docstring with a DocstringParser +# DocstringParser.new.parse("text here").to_docstring +# @example Creating a Custom DocstringParser +# # Parses docstrings backwards! +# class ReverseDocstringParser +# def parse_content(content) +# super(content.reverse) +# end +# end +# +# # Set the parser as default when parsing +# YARD::Docstring.default_parser = ReverseDocstringParser +# @see #parse_content +# @since 0.8.0 +# +# source://yard//lib/yard/docstring_parser.rb#30 +class YARD::DocstringParser + # Creates a new parser to parse docstring data + # + # @param library [Tags::Library] a tag library for recognizing + # tags. + # @return [DocstringParser] a new instance of DocstringParser + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#81 + def initialize(library = T.unsafe(nil)); end + + # Creates a new directive using the registered {#library} + # + # @return [Tags::Directive] the directive object that is created + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#232 + def create_directive(tag_name, tag_buf); end + + # Creates a {Tags::RefTag} + # + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#226 + def create_ref_tag(tag_name, name, object_name); end + + # Creates a tag from the {Tags::DefaultFactory tag factory}. + # + # To add an already created tag object, append it to {#tags}. + # + # @param tag_name [String] the tag name + # @param tag_buf [String] the text attached to the tag with newlines removed. + # @return [Tags::Tag, Tags::RefTag] a tag + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#209 + def create_tag(tag_name, tag_buf = T.unsafe(nil)); end + + # @return [Array<Tags::Directive>] a list of directives identified + # by the parser. This list will not be passed on to the + # Docstring object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#45 + def directives; end + + # @return [Array<Tags::Directive>] a list of directives identified + # by the parser. This list will not be passed on to the + # Docstring object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#45 + def directives=(_arg0); end + + # @return [Handlers::Base, nil] the handler parsing this + # docstring. May be nil if this docstring parser is not + # initialized through + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#66 + def handler; end + + # @return [Handlers::Base, nil] the handler parsing this + # docstring. May be nil if this docstring parser is not + # initialized through + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#66 + def handler=(_arg0); end + + # @return [Tags::Library] the tag library being used to + # identify registered tags in the docstring. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#70 + def library; end + + # @return [Tags::Library] the tag library being used to + # identify registered tags in the docstring. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#70 + def library=(_arg0); end + + # @return [CodeObjects::Base, nil] the object associated with + # the docstring being parsed. May be nil if the docstring is + # not attached to any object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#56 + def object; end + + # @return [CodeObjects::Base, nil] the object associated with + # the docstring being parsed. May be nil if the docstring is + # not attached to any object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#56 + def object=(_arg0); end + + # Parses all content and returns itself. + # + # @param content [String] the docstring text to parse + # @param object [CodeObjects::Base] the object that the docstring + # is attached to. Will be passed to directives to act on + # this object. + # @param handler [Handlers::Base, nil] the handler object that is + # parsing this object. May be nil if this parser is not being + # called from a {Parser::SourceParser} context. + # @return [self] the parser object. To get the docstring, + # call {#to_docstring}. + # @see #to_docstring + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#113 + def parse(content, object = T.unsafe(nil), handler = T.unsafe(nil)); end + + # Parses a given block of text. + # + # @note Subclasses can override this method to perform custom + # parsing of content data. + # @param content [String] the content to parse + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#129 + def parse_content(content); end + + # Call post processing callbacks on parser. + # This is called implicitly by parser. Use this when + # manually configuring a {Docstring} object. + # + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#196 + def post_process; end + + # @return [String] the complete input string to the parser. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#36 + def raw_text; end + + # @return [String] the complete input string to the parser. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#36 + def raw_text=(_arg0); end + + # @return [CodeObjects::Base, nil] the object referenced by + # the docstring being parsed. May be nil if the docstring doesn't + # refer to any object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#61 + def reference; end + + # @return [CodeObjects::Base, nil] the object referenced by + # the docstring being parsed. May be nil if the docstring doesn't + # refer to any object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#61 + def reference=(_arg0); end + + # @return [OpenStruct] any arbitrary state to be passed between + # tags during parsing. Mainly used by directives to coordinate + # behaviour (so that directives can be aware of other directives + # used in a docstring). + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#51 + def state; end + + # @return [OpenStruct] any arbitrary state to be passed between + # tags during parsing. Mainly used by directives to coordinate + # behaviour (so that directives can be aware of other directives + # used in a docstring). + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#51 + def state=(_arg0); end + + # Backward compatibility to detect old tags that should be specified + # as directives in 0.8 and onward. + # + # @return [Boolean] + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#252 + def tag_is_directive?(tag_name); end + + # @return [Array<Tags::Tag>] the list of meta-data tags identified + # by the parser + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#40 + def tags; end + + # @return [Array<Tags::Tag>] the list of meta-data tags identified + # by the parser + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#40 + def tags=(_arg0); end + + # @return [String] the parsed text portion of the docstring, + # with tags removed. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#33 + def text; end + + # @return [String] the parsed text portion of the docstring, + # with tags removed. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#33 + def text=(_arg0); end + + # @return [Docstring] translates parsed text into + # a Docstring object. + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#95 + def to_docstring; end + + private + + # Calls all {after_parse} callbacks + # + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#324 + def call_after_parse_callbacks; end + + # Calls the {Tags::Directive#after_parse} callback on all the + # created directives. + # + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#319 + def call_directives_after_parse; end + + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#305 + def detect_reference(content); end + + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#301 + def namespace; end + + class << self + # Creates a callback that is called after a docstring is successfully + # parsed. Use this method to perform sanity checks on a docstring's + # tag data, or add any extra tags automatically to a docstring. + # + # @return [void] + # @since 0.8.0 + # @yield [parser] a block to be called after a docstring is parsed + # @yieldparam parser [DocstringParser] the docstring parser object + # with all directives and tags created. + # @yieldreturn [void] + # + # source://yard//lib/yard/docstring_parser.rb#266 + def after_parse(&block); end + + # @return [Array<Proc>] the {after_parse} callback proc objects + # @since 0.8.0 + # + # source://yard//lib/yard/docstring_parser.rb#271 + def after_parse_callbacks; end + end +end + +# The regular expression to match the tag syntax +# +# @since 0.8.0 +# +# source://yard//lib/yard/docstring_parser.rb#73 +YARD::DocstringParser::META_MATCH = T.let(T.unsafe(nil), Regexp) + +# source://yard//lib/yard/gem_index.rb#6 +module YARD::GemIndex + private + + # source://yard//lib/yard/gem_index.rb#25 + def all; end + + # source://yard//lib/yard/gem_index.rb#17 + def each(&block); end + + # source://yard//lib/yard/gem_index.rb#9 + def find_all_by_name(*args); end + + class << self + # source://yard//lib/yard/gem_index.rb#25 + def all; end + + # source://yard//lib/yard/gem_index.rb#17 + def each(&block); end + + # source://yard//lib/yard/gem_index.rb#9 + def find_all_by_name(*args); end + end +end + +# Handlers are called during the data processing part of YARD's +# parsing phase. This allows YARD as well as any custom extension to +# analyze source and generate {CodeObjects} to be stored for later use. +# +# source://yard//lib/yard/autoload.rb#66 +module YARD::Handlers; end + +# Handlers are pluggable semantic parsers for YARD's code generation +# phase. They allow developers to control what information gets +# generated by YARD, giving them the ability to, for instance, document +# any Ruby DSLs that a customized framework may use. A good example +# of this would be the ability to document and generate meta data for +# the 'describe' declaration of the RSpec testing framework by simply +# adding a handler for such a keyword. Similarly, any Ruby API that +# takes advantage of class level declarations could add these to the +# documentation in a very explicit format by treating them as first- +# class objects in any outputted documentation. +# +# == Overview of a Typical Handler Scenario +# +# Generally, a handler class will declare a set of statements which +# it will handle using the {handles} class declaration. It will then +# implement the {#process} method to do the work. The processing would +# usually involve the manipulation of the {#namespace}, {#owner} +# {CodeObjects::Base code objects} or the creation of new ones, in +# which case they should be registered by {#register}, a method that +# sets some basic attributes for the new objects. +# +# Handlers are usually simple and take up to a page of code to process +# and register a new object or add new attributes to the current +namespace+. +# +# == Setting up a Handler for Use +# +# A Handler is automatically registered when it is subclassed from the +# base class. The only other thing that needs to be done is to specify +# which statement the handler will process. This is done with the +handles+ +# declaration, taking either a {Parser::Ruby::Legacy::RubyToken}, {String} or `Regexp`. +# Here is a simple example which processes module statements. +# +# class MyModuleHandler < YARD::Handlers::Base +# handles TkMODULE +# +# def process +# # do something +# end +# end +# +# == Processing Handler Data +# +# The goal of a specific handler is really up to the developer, and as +# such there is no real guideline on how to process the data. However, +# it is important to know where the data is coming from to be able to use +# it. +# +# === +statement+ Attribute +# +# The +statement+ attribute pertains to the {Parser::Ruby::Legacy::Statement} object +# containing a set of tokens parsed in by the parser. This is the main set +# of data to be analyzed and processed. The comments attached to the statement +# can be accessed by the {Parser::Ruby::Legacy::Statement#comments} method, but generally +# the data to be processed will live in the +tokens+ attribute. This list +# can be converted to a +String+ using +#to_s+ to parse the data with +# regular expressions (or other text processing mechanisms), if needed. +# +# === +namespace+ Attribute +# +# The +namespace+ attribute is a {CodeObjects::NamespaceObject namespace object} +# which represents the current namespace that the parser is in. For instance: +# +# module SomeModule +# class MyClass +# def mymethod; end +# end +# end +# +# If a handler was to parse the 'class MyClass' statement, it would +# be necessary to know that it belonged inside the SomeModule module. +# This is the value that +namespace+ would return when processing such +# a statement. If the class was then entered and another handler was +# called on the method, the +namespace+ would be set to the 'MyClass' +# code object. +# +# === +owner+ Attribute +# +# The +owner+ attribute is similar to the +namespace+ attribute in that +# it also follows the scope of the code during parsing. However, a namespace +# object is loosely defined as a module or class and YARD has the ability +# to parse beyond module and class blocks (inside methods, for instance), +# so the +owner+ attribute would not be limited to modules and classes. +# +# To put this into context, the example from above will be used. If a method +# handler was added to the mix and decided to parse inside the method body, +# the +owner+ would be set to the method object but the namespace would remain +# set to the class. This would allow the developer to process any method +# definitions set inside a method (def x; def y; 2 end end) by adding them +# to the correct namespace (the class, not the method). +# +# In summary, the distinction between +namespace+ and +owner+ can be thought +# of as the difference between first-class Ruby objects (namespaces) and +# second-class Ruby objects (methods). +# +# === +visibility+ and +scope+ Attributes +# +# Mainly needed for parsing methods, the +visibility+ and +scope+ attributes +# refer to the public/protected/private and class/instance values (respectively) +# of the current parsing position. +# +# == Parsing Blocks in Statements +# +# In addition to parsing a statement and creating new objects, some +# handlers may wish to continue parsing the code inside the statement's +# block (if there is one). In this context, a block means the inside +# of any statement, be it class definition, module definition, if +# statement or classic 'Ruby block'. +# +# For example, a class statement would be "class MyClass" and the block +# would be a list of statements including the method definitions inside +# the class. For a class handler, the programmer would execute the +# {#parse_block} method to continue parsing code inside the block, with +# the +namespace+ now pointing to the class object the handler created. +# +# YARD has the ability to continue into any block: class, module, method, +# even if statements. For this reason, the block parsing method must be +# invoked explicitly out of efficiency sake. +# +# @abstract Subclass this class to provide a handler for YARD to use +# during the processing phase. +# @see CodeObjects::Base +# @see CodeObjects::NamespaceObject +# @see handles +# @see #namespace +# @see #owner +# @see #register +# @see #parse_block +# +# source://yard//lib/yard/handlers/base.rb#149 +class YARD::Handlers::Base + include ::YARD::CodeObjects + include ::YARD::Parser + + # @return [Base] a new instance of Base + # + # source://yard//lib/yard/handlers/base.rb#276 + def initialize(source_parser, stmt); end + + # Aborts a handler by raising {Handlers::HandlerAborted}. + # An exception will only be logged in debugging mode for + # this kind of handler exit. + # + # @raise [Handlers::HandlerAborted] + # @since 0.8.4 + # + # source://yard//lib/yard/handlers/base.rb#355 + def abort!; end + + # @abstract Implement this method to return the parameters in a method call + # statement. It should return an empty list if the statement is not a + # method call. + # @raise [NotImplementedError] + # @return [Array<String>] a list of argument names + # + # source://yard//lib/yard/handlers/base.rb#581 + def call_params; end + + # @abstract Implement this method to return the method being called in + # a method call. It should return nil if the statement is not a method + # call. + # @raise [NotImplementedError] + # @return [String] the method name being called + # @return [nil] if the statement is not a method call + # + # source://yard//lib/yard/handlers/base.rb#590 + def caller_method; end + + # Ensures that a specific +object+ has been parsed and loaded into the + # registry. This is necessary when adding data to a namespace, for instance, + # since the namespace may not have been processed yet (it can be located + # in a file that has not been handled). + # + # Calling this method defers the handler until all other files have been + # processed. If the object gets resolved, the rest of the handler continues, + # otherwise an exception is raised. + # + # @example Adding a mixin to the String class programmatically + # ensure_loaded! P('String') + # # "String" is now guaranteed to be loaded + # P('String').mixins << P('MyMixin') + # @param object [Proxy, CodeObjects::Base] the object to resolve. + # @param max_retries [Integer] the number of times to defer the handler + # before raising a +NamespaceMissingError+. + # @raise [NamespaceMissingError] if the object is not resolved within + # +max_retries+ attempts, this exception is raised and the handler + # finishes processing. + # + # source://yard//lib/yard/handlers/base.rb#561 + def ensure_loaded!(object, max_retries = T.unsafe(nil)); end + + # Returns the value of attribute extra_state. + # + # source://yard//lib/yard/handlers/base.rb#348 + def extra_state; end + + # Returns the value of attribute globals. + # + # source://yard//lib/yard/handlers/base.rb#347 + def globals; end + + # Returns the value of attribute namespace. + # + # source://yard//lib/yard/handlers/base.rb#341 + def namespace; end + + # Sets the attribute namespace + # + # @param value the value to set the attribute namespace to. + # + # source://yard//lib/yard/handlers/base.rb#342 + def namespace=(v); end + + # Returns the value of attribute owner. + # + # source://yard//lib/yard/handlers/base.rb#339 + def owner; end + + # Sets the attribute owner + # + # @param value the value to set the attribute owner to. + # + # source://yard//lib/yard/handlers/base.rb#340 + def owner=(v); end + + # Parses the semantic "block" contained in the statement node. + # + # @abstract Subclasses should call {Processor#process parser.process} + # @raise [NotImplementedError] + # + # source://yard//lib/yard/handlers/base.rb#304 + def parse_block(*_arg0); end + + # @return [Processor] the processor object that manages all global state + # during handling. + # + # source://yard//lib/yard/handlers/base.rb#310 + def parser; end + + # The main handler method called by the parser on a statement + # that matches the {handles} declaration. + # + # Subclasses should override this method to provide the handling + # functionality for the class. + # + # @raise [NotImplementedError] + # @return [Array<CodeObjects::Base>, CodeObjects::Base, Object] If this method returns a code object (or a list of them), + # they are passed to the +#register+ method which adds basic + # attributes. It is not necessary to return any objects and in + # some cases you may want to explicitly avoid the returning of + # any objects for post-processing by the register method. + # @see handles + # @see #register + # + # source://yard//lib/yard/handlers/base.rb#297 + def process; end + + # Executes a given block with specific state values for {#owner}, + # {#namespace} and {#scope}. + # + # @option opts + # @option opts + # @option opts + # @param opts [Hash] a customizable set of options + # @yield a block to execute with the given state values. + # + # source://yard//lib/yard/handlers/base.rb#370 + def push_state(opts = T.unsafe(nil)); end + + # Do some post processing on a list of code objects. + # Adds basic attributes to the list of objects like + # the filename, line number, {CodeObjects::Base#dynamic}, + # source code and {CodeObjects::Base#docstring}, + # but only if they don't exist. + # + # @param objects [Array<CodeObjects::Base>] the list of objects to post-process. + # @return [CodeObjects::Base, Array<CodeObjects::Base>] returns whatever is passed in, for chainability. + # + # source://yard//lib/yard/handlers/base.rb#407 + def register(*objects); end + + # Registers any docstring found for the object and expands macros + # + # @param object [CodeObjects::Base] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#450 + def register_docstring(object, docstring = T.unsafe(nil), stmt = T.unsafe(nil)); end + + # Registers the object as dynamic if the object is defined inside + # a method or block (owner != namespace) + # + # @param object [CodeObjects::Base] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#537 + def register_dynamic(object); end + + # Ensures that the object's namespace is loaded before attaching it + # to the namespace. + # + # @param object [CodeObjects::Base] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#429 + def register_ensure_loaded(object); end + + # Registers the file/line of the declaration with the object + # + # @param object [CodeObjects::Base] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#441 + def register_file_info(object, file = T.unsafe(nil), line = T.unsafe(nil), comments = T.unsafe(nil)); end + + # Registers the object as being inside a specific group + # + # @param object [CodeObjects::Base] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#473 + def register_group(object, group = T.unsafe(nil)); end + + # Registers the same method information on the module function, if + # the object was defined as a module function. + # + # @param object [CodeObjects::Base] the possible module function object + # to copy data for + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#523 + def register_module_function(object); end + + # @param object [CodeObjects::Base] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#499 + def register_source(object, source = T.unsafe(nil), type = T.unsafe(nil)); end + + # Registers any transitive tags from the namespace on the object + # + # @param object [CodeObjects::Base, nil] the object to register + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#487 + def register_transitive_tags(object); end + + # Registers visibility on a method object. If the object does not + # respond to setting visibility, nothing is done. + # + # @param object [#visibility=] the object to register + # @param visibility [Symbol] the visibility to set on the object + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/base.rb#511 + def register_visibility(object, visibility = T.unsafe(nil)); end + + # Returns the value of attribute scope. + # + # source://yard//lib/yard/handlers/base.rb#345 + def scope; end + + # Sets the attribute scope + # + # @param value the value to set the attribute scope to. + # + # source://yard//lib/yard/handlers/base.rb#346 + def scope=(v); end + + # @return [Object] the statement object currently being processed. Usually + # refers to one semantic language statement, though the strict definition + # depends on the parser used. + # + # source://yard//lib/yard/handlers/base.rb#315 + def statement; end + + # Returns the value of attribute visibility. + # + # source://yard//lib/yard/handlers/base.rb#343 + def visibility; end + + # Sets the attribute visibility + # + # @param value the value to set the attribute visibility to. + # + # source://yard//lib/yard/handlers/base.rb#344 + def visibility=(v); end + + class << self + # Clear all registered subclasses. Testing purposes only + # + # @return [void] + # + # source://yard//lib/yard/handlers/base.rb#159 + def clear_subclasses; end + + # @return [Array] a list of matchers for the handler object. + # @see handles? + # + # source://yard//lib/yard/handlers/base.rb#211 + def handlers; end + + # Declares the statement type which will be processed + # by this handler. + # + # A match need not be unique to a handler. Multiple + # handlers can process the same statement. However, + # in this case, care should be taken to make sure that + # {#parse_block} would only be executed by one of + # the handlers, otherwise the same code will be parsed + # multiple times and slow YARD down. + # + # @param matches [Parser::Ruby::Legacy::RubyToken, Symbol, String, Regexp] statements that match the declaration will be + # processed by this handler. A {String} match is + # equivalent to a +/\Astring/+ regular expression + # (match from the beginning of the line), and all + # token matches match only the first token of the + # statement. + # + # source://yard//lib/yard/handlers/base.rb#192 + def handles(*matches); end + + # This class is implemented by {Ruby::Base} and {Ruby::Legacy::Base}. + # To implement a base handler class for another language, implement + # this method to return true if the handler should process the given + # statement object. Use {handlers} to enumerate the matchers declared + # for the handler class. + # + # @param statement a statement object or node (depends on language type) + # @raise [NotImplementedError] + # @return [Boolean] whether or not this handler object should process + # the given statement + # + # source://yard//lib/yard/handlers/base.rb#205 + def handles?(statement); end + + # Declares that a handler should only be called when inside a filename + # by its basename or a regex match for the full path. + # + # @param filename [String, Regexp] a matching filename or regex + # @return [void] + # @since 0.6.2 + # + # source://yard//lib/yard/handlers/base.rb#235 + def in_file(filename); end + + # @private + # + # source://yard//lib/yard/handlers/base.rb#169 + def inherited(subclass); end + + # @return [Boolean] whether the filename matches the declared file + # match for a handler. If no file match is specified, returns true. + # @since 0.6.2 + # + # source://yard//lib/yard/handlers/base.rb#242 + def matches_file?(filename); end + + # Declares that the handler should only be called when inside a + # {CodeObjects::NamespaceObject}, not a method body. + # + # @return [void] + # + # source://yard//lib/yard/handlers/base.rb#219 + def namespace_only; end + + # @return [Boolean] whether the handler should only be processed inside + # a namespace. + # + # source://yard//lib/yard/handlers/base.rb#225 + def namespace_only?; end + + # Generates a +process+ method, equivalent to +def process; ... end+. + # Blocks defined with this syntax will be wrapped inside an anonymous + # module so that the handler class can be extended with mixins that + # override the +process+ method without alias chaining. + # + # @return [void] + # @see #process + # @since 0.5.4 + # + # source://yard//lib/yard/handlers/base.rb#269 + def process(&block); end + + # Returns all registered handler subclasses. + # + # @return [Array<Base>] a list of handlers + # + # source://yard//lib/yard/handlers/base.rb#165 + def subclasses; end + end +end + +# CRuby Handlers +# +# @since 0.8.0 +# +# source://yard//lib/yard/autoload.rb#74 +module YARD::Handlers::C; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/alias_handler.rb#2 +class YARD::Handlers::C::AliasHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/alias_handler.rb#3 +YARD::Handlers::C::AliasHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/attribute_handler.rb#2 +class YARD::Handlers::C::AttributeHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/attribute_handler.rb#3 +YARD::Handlers::C::AttributeHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/base.rb#5 +class YARD::Handlers::C::Base < ::YARD::Handlers::Base + include ::YARD::Parser::C + include ::YARD::Handlers::Common::MethodHandler + include ::YARD::Handlers::C::HandlerMethods + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#77 + def ensure_variable_defined!(var, max_retries = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#64 + def namespace_for_variable(var); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#94 + def namespaces; end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#60 + def override_comments; end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#104 + def parse_block(opts = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#113 + def process_file(file, object); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#98 + def processed_files; end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#38 + def register_docstring(object, docstring = T.unsafe(nil), stmt = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#42 + def register_file_info(object, file = T.unsafe(nil), line = T.unsafe(nil), comments = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#46 + def register_source(object, source = T.unsafe(nil), type = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#50 + def register_visibility(object, visibility = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#56 + def symbols; end + + private + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#158 + def remove_var_prefix(var); end + + class << self + # @return [Boolean] whether the handler handles this statement + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#10 + def handles?(statement, processor); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/base.rb#28 + def statement_class(type = T.unsafe(nil)); end + end +end + +# Generated by update_error_map.rb (Copy+past results) +# +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/base.rb#131 +YARD::Handlers::C::Base::ERROR_CLASS_NAMES = T.let(T.unsafe(nil), Hash) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/class_handler.rb#2 +class YARD::Handlers::C::ClassHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/class_handler.rb#3 +YARD::Handlers::C::ClassHandler::MATCH1 = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/class_handler.rb#9 +YARD::Handlers::C::ClassHandler::MATCH2 = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/constant_handler.rb#2 +class YARD::Handlers::C::ConstantHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/constant_handler.rb#3 +YARD::Handlers::C::ConstantHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/handler_methods.rb#5 +module YARD::Handlers::C::HandlerMethods + include ::YARD::Parser::C + include ::YARD::CodeObjects + include ::YARD::Handlers::Common::MethodHandler + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#86 + def handle_alias(var_name, new_name, old_name); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#75 + def handle_attribute(var_name, name, read, write); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#10 + def handle_class(var_name, class_name, parent, in_module = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#109 + def handle_constants(type, var_name, const_name, value); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#46 + def handle_method(scope, var_name, name, func_name, _source_file = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#33 + def handle_module(var_name, module_name, in_module = T.unsafe(nil)); end + + private + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#123 + def find_constant_docstring(object); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#154 + def find_method_body(object, symbol); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/handler_methods.rb#196 + def record_parameters(object, symbol, src); end +end + +# Handles the Init_Libname() method +# +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/init_handler.rb#3 +class YARD::Handlers::C::InitHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/init_handler.rb#4 +YARD::Handlers::C::InitHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/method_handler.rb#2 +class YARD::Handlers::C::MethodHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/method_handler.rb#3 +YARD::Handlers::C::MethodHandler::MATCH1 = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/method_handler.rb#14 +YARD::Handlers::C::MethodHandler::MATCH2 = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/method_handler.rb#18 +YARD::Handlers::C::MethodHandler::MATCH3 = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/mixin_handler.rb#2 +class YARD::Handlers::C::MixinHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/mixin_handler.rb#3 +YARD::Handlers::C::MixinHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/module_handler.rb#2 +class YARD::Handlers::C::ModuleHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/module_handler.rb#3 +YARD::Handlers::C::ModuleHandler::MATCH1 = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/module_handler.rb#4 +YARD::Handlers::C::ModuleHandler::MATCH2 = T.let(T.unsafe(nil), Regexp) + +# Parses comments +# +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/override_comment_handler.rb#3 +class YARD::Handlers::C::OverrideCommentHandler < ::YARD::Handlers::C::Base + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/override_comment_handler.rb#24 + def register_docstring(object, docstring = T.unsafe(nil), stmt = T.unsafe(nil)); end + + # @since 0.8.0 + # + # source://yard//lib/yard/handlers/c/override_comment_handler.rb#28 + def register_file_info(object, file = T.unsafe(nil), line = T.unsafe(nil), comments = T.unsafe(nil)); end +end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/path_handler.rb#2 +class YARD::Handlers::C::PathHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/path_handler.rb#3 +YARD::Handlers::C::PathHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/struct_handler.rb#2 +class YARD::Handlers::C::StructHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/struct_handler.rb#3 +YARD::Handlers::C::StructHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# Keeps track of function bodies for symbol lookup during Ruby method declarations +# +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/symbol_handler.rb#3 +class YARD::Handlers::C::SymbolHandler < ::YARD::Handlers::C::Base; end + +# @since 0.8.0 +# +# source://yard//lib/yard/handlers/c/symbol_handler.rb#4 +YARD::Handlers::C::SymbolHandler::MATCH = T.let(T.unsafe(nil), Regexp) + +# Shared logic between C and Ruby handlers. +# +# source://yard//lib/yard/autoload.rb#68 +module YARD::Handlers::Common; end + +# Shared functionality between Ruby and C method handlers. +# +# source://yard//lib/yard/handlers/common/method_handler.rb#6 +module YARD::Handlers::Common::MethodHandler + # @param obj [MethodObject] + # + # source://yard//lib/yard/handlers/common/method_handler.rb#8 + def add_predicate_return_tag(obj); end +end + +# Raise this error when a handler should exit before completing. +# The exception will be silenced, allowing the next handler(s) in the +# queue to be executed. +# +# @since 0.8.4 +# +# source://yard//lib/yard/handlers/base.rb#8 +class YARD::Handlers::HandlerAborted < ::RuntimeError; end + +# Raised during processing phase when a handler needs to perform +# an operation on an object's namespace but the namespace could +# not be resolved. +# +# source://yard//lib/yard/handlers/base.rb#13 +class YARD::Handlers::NamespaceMissingError < ::YARD::Parser::UndocumentableError + # @return [NamespaceMissingError] a new instance of NamespaceMissingError + # + # source://yard//lib/yard/handlers/base.rb#18 + def initialize(object); end + + # The object the error occurred on + # + # @return [CodeObjects::Base] a code object + # + # source://yard//lib/yard/handlers/base.rb#16 + def object; end + + # The object the error occurred on + # + # @return [CodeObjects::Base] a code object + # + # source://yard//lib/yard/handlers/base.rb#16 + def object=(_arg0); end +end + +# Iterates over all statements in a file and delegates them to the +# {Handlers::Base} objects that are registered to handle the statement. +# +# This class is passed to each handler and keeps overall processing state. +# For example, if the {#visibility} is set in a handler, all following +# statements will have access to this state. This allows "public", +# "protected" and "private" statements to be handled in classes and modules. +# In addition, the {#namespace} can be set during parsing to control +# where objects are being created from. You can also access extra stateful +# properties that any handler can set during the duration of the post +# processing of a file from {#extra_state}. If you need to access state +# across different files, look at {#globals}. +# +# @see Handlers::Base +# +# source://yard//lib/yard/handlers/processor.rb#20 +class YARD::Handlers::Processor + # Creates a new Processor for a +file+. + # + # @param parser [Parser::SourceParser] the parser used to initialize the processor + # @return [Processor] a new instance of Processor + # + # source://yard//lib/yard/handlers/processor.rb#92 + def initialize(parser); end + + # Share state across different handlers inside of a file. + # This attribute is similar to {#visibility}, {#scope}, {#namespace} + # and {#owner}, in that they all maintain state across all handlers + # for the entire source file. Use this attribute to store any data + # your handler might need to save during the parsing of a file. If + # you need to save state across files, see {#globals}. + # + # @return [OpenStruct] an open structure that can store arbitrary data + # @see #globals + # + # source://yard//lib/yard/handlers/processor.rb#88 + def extra_state; end + + # Share state across different handlers inside of a file. + # This attribute is similar to {#visibility}, {#scope}, {#namespace} + # and {#owner}, in that they all maintain state across all handlers + # for the entire source file. Use this attribute to store any data + # your handler might need to save during the parsing of a file. If + # you need to save state across files, see {#globals}. + # + # @return [OpenStruct] an open structure that can store arbitrary data + # @see #globals + # + # source://yard//lib/yard/handlers/processor.rb#88 + def extra_state=(_arg0); end + + # @return [String] the filename + # + # source://yard//lib/yard/handlers/processor.rb#41 + def file; end + + # @return [String] the filename + # + # source://yard//lib/yard/handlers/processor.rb#41 + def file=(_arg0); end + + # Searches for all handlers in {Base.subclasses} that match the +statement+ + # + # @param statement the statement object to match. + # @return [Array<Base>] a list of handlers to process the statement with. + # + # source://yard//lib/yard/handlers/processor.rb#151 + def find_handlers(statement); end + + # Handlers can share state for the entire post processing stage through + # this attribute. Note that post processing stage spans multiple files. + # To share state only within a single file, use {#extra_state} + # + # @example Sharing state among two handlers + # class Handler1 < YARD::Handlers::Ruby::Base + # handles :class + # process { globals.foo = :bar } + # end + # + # class Handler2 < YARD::Handlers::Ruby::Base + # handles :method + # process { puts globals.foo } + # end + # @return [OpenStruct] global shared state for post-processing stage + # @see #extra_state + # + # source://yard//lib/yard/handlers/processor.rb#77 + def globals; end + + # Handlers can share state for the entire post processing stage through + # this attribute. Note that post processing stage spans multiple files. + # To share state only within a single file, use {#extra_state} + # + # @example Sharing state among two handlers + # class Handler1 < YARD::Handlers::Ruby::Base + # handles :class + # process { globals.foo = :bar } + # end + # + # class Handler2 < YARD::Handlers::Ruby::Base + # handles :method + # process { puts globals.foo } + # end + # @return [OpenStruct] global shared state for post-processing stage + # @see #extra_state + # + # source://yard//lib/yard/handlers/processor.rb#77 + def globals=(_arg0); end + + # @return [CodeObjects::NamespaceObject] the current namespace + # + # source://yard//lib/yard/handlers/processor.rb#44 + def namespace; end + + # @return [CodeObjects::NamespaceObject] the current namespace + # + # source://yard//lib/yard/handlers/processor.rb#44 + def namespace=(_arg0); end + + # @return [CodeObjects::Base, nil] unlike the namespace, the owner + # is a non-namespace object that should be stored between statements. + # For instance, when parsing a method body, the {CodeObjects::MethodObject} + # is set as the owner, in case any extra method information is processed. + # + # source://yard//lib/yard/handlers/processor.rb#56 + def owner; end + + # @return [CodeObjects::Base, nil] unlike the namespace, the owner + # is a non-namespace object that should be stored between statements. + # For instance, when parsing a method body, the {CodeObjects::MethodObject} + # is set as the owner, in case any extra method information is processed. + # + # source://yard//lib/yard/handlers/processor.rb#56 + def owner=(_arg0); end + + # Continue parsing the remainder of the files in the +globals.ordered_parser+ + # object. After the remainder of files are parsed, processing will continue + # on the current file. + # + # @return [void] + # @see Parser::OrderedParser + # + # source://yard//lib/yard/handlers/processor.rb#140 + def parse_remaining_files; end + + # @return [Symbol] the parser type (:ruby, :ruby18, :c) + # + # source://yard//lib/yard/handlers/processor.rb#59 + def parser_type; end + + # @return [Symbol] the parser type (:ruby, :ruby18, :c) + # + # source://yard//lib/yard/handlers/processor.rb#59 + def parser_type=(_arg0); end + + # Processes a list of statements by finding handlers to process each + # one. + # + # @param statements [Array] a list of statements + # @return [void] + # + # source://yard//lib/yard/handlers/processor.rb#110 + def process(statements); end + + # @return [Symbol] the current scope (class, instance) + # + # source://yard//lib/yard/handlers/processor.rb#50 + def scope; end + + # @return [Symbol] the current scope (class, instance) + # + # source://yard//lib/yard/handlers/processor.rb#50 + def scope=(_arg0); end + + # @return [Symbol] the current visibility (public, private, protected) + # + # source://yard//lib/yard/handlers/processor.rb#47 + def visibility; end + + # @return [Symbol] the current visibility (public, private, protected) + # + # source://yard//lib/yard/handlers/processor.rb#47 + def visibility=(_arg0); end + + private + + # Returns the handler base class + # + # @return [Base] the base class + # + # source://yard//lib/yard/handlers/processor.rb#172 + def handler_base_class; end + + # The module holding the handlers to be loaded + # + # @return [Module] the module containing the handlers depending on + # {#parser_type}. + # + # source://yard//lib/yard/handlers/processor.rb#180 + def handler_base_namespace; end + + # @return [Boolean] + # + # source://yard//lib/yard/handlers/processor.rb#161 + def handles?(handler, statement); end + + # Loads handlers from {#handler_base_namespace}. This ensures that + # Ruby1.9 handlers are never loaded into 1.8; also lowers the amount + # of modules that are loaded + # + # @return [void] + # + # source://yard//lib/yard/handlers/processor.rb#188 + def load_handlers; end + + class << self + # @private + # @return [Hash] a list of registered parser type extensions + # @since 0.6.0 + # + # source://yard//lib/yard/handlers/processor.rb#33 + def namespace_for_handler; end + + # Registers a new namespace for handlers of the given type. + # + # @since 0.6.0 + # + # source://yard//lib/yard/handlers/processor.rb#24 + def register_handler_namespace(type, ns); end + end +end + +# All Ruby handlers +# +# source://yard//lib/yard/autoload.rb#92 +module YARD::Handlers::Ruby; end + +# Handles alias and alias_method calls +# +# source://yard//lib/yard/handlers/ruby/alias_handler.rb#3 +class YARD::Handlers::Ruby::AliasHandler < ::YARD::Handlers::Ruby::Base; end + +# Handles +attr_*+ statements in modules/classes +# +# source://yard//lib/yard/handlers/ruby/attribute_handler.rb#3 +class YARD::Handlers::Ruby::AttributeHandler < ::YARD::Handlers::Ruby::Base + protected + + # Strips out any non-essential arguments from the attr statement. + # + # @param params [Array<Parser::Ruby::AstNode>] a list of the parameters + # in the attr call. + # @raise [Parser::UndocumentableError] if the arguments are not valid. + # @return [Array<String>] the validated attribute names + # + # source://yard//lib/yard/handlers/ruby/attribute_handler.rb#75 + def validated_attribute_names(params); end +end + +# This is the base handler class for the new-style (1.9) Ruby parser. +# All handlers that subclass this base class will be used when the +# new-style parser is used. For implementing legacy handlers, see +# {Legacy::Base}. +# +# @abstract See {Handlers::Base} for subclassing information. +# @see Handlers::Base +# @see Legacy::Base +# +# source://yard//lib/yard/handlers/ruby/base.rb#65 +class YARD::Handlers::Ruby::Base < ::YARD::Handlers::Base + include ::YARD::Parser::Ruby + extend ::YARD::Parser::Ruby + + # source://yard//lib/yard/handlers/ruby/base.rb#144 + def call_params; end + + # source://yard//lib/yard/handlers/ruby/base.rb#155 + def caller_method; end + + # source://yard//lib/yard/handlers/ruby/base.rb#135 + def parse_block(inner_node, opts = T.unsafe(nil)); end + + class << self + # @return [Boolean] whether or not an {AstNode} object should be + # handled by this handler + # + # source://yard//lib/yard/handlers/ruby/base.rb#113 + def handles?(node); end + + # Matcher for handling a node with a specific meta-type. An {AstNode} + # has a {AstNode#type} to define its type but can also be associated + # with a set of types. For instance, +:if+ and +:unless+ are both + # of the meta-type +:condition+. + # + # A meta-type is any method on the {AstNode} class ending in "?", + # though you should not include the "?" suffix in your declaration. + # Some examples are: "condition", "call", "literal", "kw", "token", + # "ref". + # + # @example Handling any conditional statement (if, unless) + # handles meta_type(:condition) + # @param type [Symbol] the meta-type to match. A meta-type can be + # any method name + "?" that {AstNode} responds to. + # @return [void] + # + # source://yard//lib/yard/handlers/ruby/base.rb#105 + def meta_type(type); end + + # Matcher for handling any type of method call. Method calls can + # be expressed by many {AstNode} types depending on the syntax + # with which it is called, so YARD allows you to use this matcher + # to simplify matching a method call. + # + # @example Match the "describe" method call + # handles method_call(:describe) + # + # # The following will be matched: + # # describe(...) + # # object.describe(...) + # # describe "argument" do ... end + # @param name [#to_s] matches the method call of this name + # @return [void] + # + # source://yard//lib/yard/handlers/ruby/base.rb#86 + def method_call(name = T.unsafe(nil)); end + end +end + +# Matches if/unless conditions inside classes and attempts to process only +# one branch (by evaluating the condition if possible). +# +# @example A simple class conditional +# class Foo +# if 0 +# # This method is ignored +# def xyz; end +# end +# end +# +# source://yard//lib/yard/handlers/ruby/class_condition_handler.rb#12 +class YARD::Handlers::Ruby::ClassConditionHandler < ::YARD::Handlers::Ruby::Base + protected + + # Parses the condition part of the if/unless statement + # + # @return [true, false, nil] true if the condition can be definitely + # parsed to true, false if not, and nil if the condition cannot be + # parsed with certainty (it's dynamic) + # + # source://yard//lib/yard/handlers/ruby/class_condition_handler.rb#36 + def parse_condition; end + + # source://yard//lib/yard/handlers/ruby/class_condition_handler.rb#87 + def parse_else_block; end + + # source://yard//lib/yard/handlers/ruby/class_condition_handler.rb#83 + def parse_then_block; end +end + +# Handles class declarations +# +# source://yard//lib/yard/handlers/ruby/class_handler.rb#3 +class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::StructHandlerMethods + + private + + # source://yard//lib/yard/handlers/ruby/class_handler.rb#73 + def create_struct_superclass(superclass, superclass_def); end + + # Extract the parameters from the Struct.new AST node, returning them as a list + # of strings + # + # @param superclass [MethodCallNode] the AST node for the Struct.new call + # @return [Array<String>] the member names to generate methods for + # + # source://yard//lib/yard/handlers/ruby/class_handler.rb#67 + def extract_parameters(superclass); end + + # source://yard//lib/yard/handlers/ruby/class_handler.rb#92 + def parse_struct_superclass(klass, superclass); end + + # source://yard//lib/yard/handlers/ruby/class_handler.rb#98 + def parse_superclass(superclass); end + + # source://yard//lib/yard/handlers/ruby/class_handler.rb#82 + def struct_superclass_name(superclass); end +end + +# Handles a class variable (@@variable) +# +# source://yard//lib/yard/handlers/ruby/class_variable_handler.rb#3 +class YARD::Handlers::Ruby::ClassVariableHandler < ::YARD::Handlers::Ruby::Base; end + +# Handles any lone comment statement in a Ruby file +# +# source://yard//lib/yard/handlers/ruby/comment_handler.rb#3 +class YARD::Handlers::Ruby::CommentHandler < ::YARD::Handlers::Ruby::Base; end + +# Handles any constant assignment +# +# source://yard//lib/yard/handlers/ruby/constant_handler.rb#3 +class YARD::Handlers::Ruby::ConstantHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::StructHandlerMethods + + private + + # Extract the parameters from the Struct.new AST node, returning them as a list + # of strings + # + # @param superclass [MethodCallNode] the AST node for the Struct.new call + # @return [Array<String>] the member names to generate methods for + # + # source://yard//lib/yard/handlers/ruby/constant_handler.rb#49 + def extract_parameters(superclass); end + + # source://yard//lib/yard/handlers/ruby/constant_handler.rb#21 + def process_constant(statement); end + + # source://yard//lib/yard/handlers/ruby/constant_handler.rb#33 + def process_structclass(statement); end +end + +# Handles automatic detection of dsl-style methods +# +# source://yard//lib/yard/handlers/ruby/dsl_handler.rb#6 +class YARD::Handlers::Ruby::DSLHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::DSLHandlerMethods +end + +# source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#5 +module YARD::Handlers::Ruby::DSLHandlerMethods + include ::YARD::CodeObjects + include ::YARD::Parser + + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#14 + def handle_comments; end + + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#48 + def register_docstring(object, docstring = T.unsafe(nil), stmt = T.unsafe(nil)); end + + private + + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#72 + def find_attached_macro; end + + # @return [Boolean] + # + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#54 + def implicit_docstring?; end + + # @return [Boolean] whether caller method matches a macro or + # its alias names. + # + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#85 + def macro_name_matches(macro); end + + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#59 + def method_name; end + + # source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#68 + def method_signature; end +end + +# source://yard//lib/yard/handlers/ruby/dsl_handler_methods.rb#9 +YARD::Handlers::Ruby::DSLHandlerMethods::IGNORE_METHODS = T.let(T.unsafe(nil), Hash) + +# Helper methods to assist with processing decorators. +# +# source://yard//lib/yard/handlers/ruby/decorator_handler_methods.rb#3 +module YARD::Handlers::Ruby::DecoratorHandlerMethods + # @overload process_decorator + # + # source://yard//lib/yard/handlers/ruby/decorator_handler_methods.rb#43 + def process_decorator(*nodes, &block); end + + private + + # @yield [method, node, name.to_sym] + # + # source://yard//lib/yard/handlers/ruby/decorator_handler_methods.rb#78 + def process_decorator_parameter(node, opts = T.unsafe(nil), &block); end +end + +# Handles 'raise' calls inside methods +# +# source://yard//lib/yard/handlers/ruby/exception_handler.rb#3 +class YARD::Handlers::Ruby::ExceptionHandler < ::YARD::Handlers::Ruby::Base; end + +# Handles 'extend' call to include modules into the class scope of another +# +# @see MixinHandler +# +# source://yard//lib/yard/handlers/ruby/extend_handler.rb#4 +class YARD::Handlers::Ruby::ExtendHandler < ::YARD::Handlers::Ruby::MixinHandler + # source://yard//lib/yard/handlers/ruby/extend_handler.rb#8 + def scope; end + + private + + # source://yard//lib/yard/handlers/ruby/extend_handler.rb#12 + def process_mixin(mixin); end +end + +# To implement a custom handler matcher, subclass this class and implement +# {#matches?} to return whether a node matches the handler. +# +# @example A Custom Handler Matcher Extension +# # Implements a handler that checks for a specific string +# # in the node's source. +# class MyExtension < HandlesExtension +# def matches?(node) node.source.include?(name) end +# end +# +# # This handler will handle any node where the source includes 'foo' +# class MyHandler < Handlers::Ruby::Base +# handles MyExtension.new('foo') +# end +# +# source://yard//lib/yard/handlers/ruby/base.rb#19 +class YARD::Handlers::Ruby::HandlesExtension + # Creates a new extension with a specific matcher value +name+ + # + # @param name [Object] the matcher value to check against {#matches?} + # @return [HandlesExtension] a new instance of HandlesExtension + # + # source://yard//lib/yard/handlers/ruby/base.rb#22 + def initialize(name); end + + # Tests if the node matches the handler + # + # @param node [Parser::Ruby::AstNode] a Ruby node + # @raise [NotImplementedError] + # @return [Boolean] whether the +node+ matches the handler + # + # source://yard//lib/yard/handlers/ruby/base.rb#27 + def matches?(node); end + + protected + + # @return [String] the extension matcher value + # + # source://yard//lib/yard/handlers/ruby/base.rb#34 + def name; end +end + +# Handlers for old Ruby 1.8 parser +# +# source://yard//lib/yard/autoload.rb#93 +module YARD::Handlers::Ruby::Legacy; end + +# Handles alias and alias_method calls +# +# source://yard//lib/yard/handlers/ruby/legacy/alias_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::AliasHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Handles +attr_*+ statements in modules/classes +# +# source://yard//lib/yard/handlers/ruby/legacy/attribute_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::AttributeHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# This is the base handler for the legacy parser. To implement a legacy +# handler, subclass this class. +# +# @abstract See {Handlers::Base} for subclassing information. +# +# source://yard//lib/yard/handlers/ruby/legacy/base.rb#9 +class YARD::Handlers::Ruby::Legacy::Base < ::YARD::Handlers::Base + include ::YARD::Parser::Ruby::Legacy::RubyToken + + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#44 + def call_params; end + + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#53 + def caller_method; end + + # Parses a statement's block with a set of state values. If the + # statement has no block, nothing happens. A description of state + # values can be found at {Handlers::Base#push_state} + # + # @option opts + # @option opts + # @option opts + # @param opts [Hash] State options + # @see Handlers::Base#push_state #push_state + # + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#35 + def parse_block(opts = T.unsafe(nil)); end + + private + + # Extracts method information for macro expansion only + # + # @return [Array<String,Array<Array<String>>>] the method name followed by method + # arguments (name and optional value) + # @todo This is a duplicate implementation of {MethodHandler}. Refactor. + # + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#68 + def extract_method_details; end + + # The string value of a token. For example, the return value for the symbol :sym + # would be :sym. The return value for a string +"foo #{ bar}"+ would be the literal + # +"foo #{ bar}"+ without any interpolation. The return value of the identifier + # 'test' would be the same value: 'test'. Here is a list of common types and + # their return values: + # + # @example + # tokval(TokenList.new('"foo"').first) => "foo" + # tokval(TokenList.new(':foo').first) => :foo + # tokval(TokenList.new('CONSTANT').first, RubyToken::TkId) => "CONSTANT" + # tokval(TokenList.new('identifier').first, RubyToken::TkId) => "identifier" + # tokval(TokenList.new('3.25').first) => 3.25 + # tokval(TokenList.new('/xyz/i').first) => /xyz/i + # @param token [Token] The token of the class + # @param accepted_types [Array<Class<Token>>, Symbol] The allowed token types that this token can be. Defaults to [{TkVal}]. + # A list of types would be, for example, [+TkSTRING+, +TkSYMBOL+], to return + # the token's value if it is either of those types. If +TkVal+ is accepted, + # +TkNode+ is also accepted. + # + # Certain symbol keys are allowed to specify multiple types in one fell swoop. + # These symbols are: + # :string => +TkSTRING+, +TkDSTRING+, +TkDXSTRING+ and +TkXSTRING+ + # :attr => +TkSYMBOL+ and +TkSTRING+ + # :identifier => +TkIDENTIFIER, +TkFID+ and +TkGVAR+. + # :number => +TkFLOAT+, +TkINTEGER+ + # @return [Object] if the token is one of the accepted types, in its real value form. + # It should be noted that identifiers and constants are kept in String form. + # @return [nil] if the token is not any of the specified accepted types + # + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#112 + def tokval(token, *accepted_types); end + + # Returns a list of symbols or string values from a statement. + # The list must be a valid comma delimited list, and values + # will only be returned to the end of the list only. + # + # Example: + # attr_accessor :a, 'b', :c, :d => ['a', 'b', 'c', 'd'] + # attr_accessor 'a', UNACCEPTED_TYPE, 'c' => ['a', 'c'] + # + # The tokval list of a {Parser::Ruby::Legacy::TokenList} of the above + # code would be the {#tokval} value of :a, 'b', + # :c and :d. + # + # It should also be noted that this function stops immediately at + # any ruby keyword encountered: + # "attr_accessor :a, :b, :c if x == 5" => ['a', 'b', 'c'] + # + # @param tokenlist [TokenList] The list of tokens to process. + # @param accepted_types [Array<Class<Token>>] passed to {#tokval} + # @return [Array<String>] the list of tokvalues in the list. + # @return [Array<EMPTY>] if there are no symbols or Strings in the list + # @see #tokval + # + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#178 + def tokval_list(tokenlist, *accepted_types); end + + class << self + # @return [Boolean] whether or not a {Parser::Ruby::Legacy::Statement} object should be handled + # by this handler. + # + # source://yard//lib/yard/handlers/ruby/legacy/base.rb#15 + def handles?(stmt); end + end +end + +# Matches if/unless conditions inside classes and attempts to process only +# one branch (by evaluating the condition if possible). +# +# @example A simple class conditional +# class Foo +# if 0 +# # This method is ignored +# def xyz; end +# end +# end +# @since 0.5.4 +# +# source://yard//lib/yard/handlers/ruby/legacy/class_condition_handler.rb#4 +class YARD::Handlers::Ruby::Legacy::ClassConditionHandler < ::YARD::Handlers::Ruby::Legacy::Base + protected + + # Parses the condition part of the if/unless statement + # + # @return [true, false, nil] true if the condition can be definitely + # parsed to true, false if not, and nil if the condition cannot be + # parsed with certainty (it's dynamic) + # @since 0.5.5 + # + # source://yard//lib/yard/handlers/ruby/legacy/class_condition_handler.rb#29 + def parse_condition; end + + # @since 0.5.5 + # + # source://yard//lib/yard/handlers/ruby/legacy/class_condition_handler.rb#73 + def parse_else_block; end + + # @since 0.5.5 + # + # source://yard//lib/yard/handlers/ruby/legacy/class_condition_handler.rb#68 + def parse_then_block; end +end + +# Handles class declarations +# +# source://yard//lib/yard/handlers/ruby/legacy/class_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ClassHandler < ::YARD::Handlers::Ruby::Legacy::Base + include ::YARD::Handlers::Ruby::StructHandlerMethods + + private + + # source://yard//lib/yard/handlers/ruby/legacy/class_handler.rb#74 + def create_struct_superclass(superclass, superclass_def); end + + # Extracts the parameter list from the Struct.new declaration and returns it + # formatted as a list of member names. Expects the user will have used symbols + # to define the struct member names + # + # @param superstring [String] the string declaring the superclass + # @return [Array<String>] a list of member names + # + # source://yard//lib/yard/handlers/ruby/legacy/class_handler.rb#69 + def extract_parameters(superstring); end + + # source://yard//lib/yard/handlers/ruby/legacy/class_handler.rb#95 + def parse_struct_subclass(klass, superclass_def); end + + # source://yard//lib/yard/handlers/ruby/legacy/class_handler.rb#102 + def parse_superclass(superclass); end + + # source://yard//lib/yard/handlers/ruby/legacy/class_handler.rb#83 + def struct_superclass_name(superclass); end +end + +# Handles a class variable (@@variable) +# +# source://yard//lib/yard/handlers/ruby/legacy/class_variable_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ClassVariableHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# source://yard//lib/yard/handlers/ruby/legacy/class_variable_handler.rb#4 +YARD::Handlers::Ruby::Legacy::ClassVariableHandler::HANDLER_MATCH = T.let(T.unsafe(nil), Regexp) + +# Handles any lone comment statement in a Ruby file +# +# source://yard//lib/yard/handlers/ruby/legacy/comment_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::CommentHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Handles any constant assignment +# +# source://yard//lib/yard/handlers/ruby/legacy/constant_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ConstantHandler < ::YARD::Handlers::Ruby::Legacy::Base + include ::YARD::Handlers::Ruby::StructHandlerMethods + + private + + # source://yard//lib/yard/handlers/ruby/legacy/constant_handler.rb#25 + def extract_parameters(parameters); end + + # source://yard//lib/yard/handlers/ruby/legacy/constant_handler.rb#20 + def process_structclass(classname, parameters); end +end + +# source://yard//lib/yard/handlers/ruby/legacy/constant_handler.rb#5 +YARD::Handlers::Ruby::Legacy::ConstantHandler::HANDLER_MATCH = T.let(T.unsafe(nil), Regexp) + +# Handles automatic detection of dsl-style methods +# +# source://yard//lib/yard/handlers/ruby/legacy/dsl_handler.rb#7 +class YARD::Handlers::Ruby::Legacy::DSLHandler < ::YARD::Handlers::Ruby::Legacy::Base + include ::YARD::Handlers::Ruby::DSLHandlerMethods +end + +# Handles 'raise' calls inside methods +# +# source://yard//lib/yard/handlers/ruby/legacy/exception_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ExceptionHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Handles 'extend' call to include modules into the class scope of another +# +# @see MixinHandler +# +# source://yard//lib/yard/handlers/ruby/legacy/extend_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ExtendHandler < ::YARD::Handlers::Ruby::Legacy::MixinHandler + # source://yard//lib/yard/handlers/ruby/legacy/extend_handler.rb#7 + def scope; end + + private + + # source://yard//lib/yard/handlers/ruby/legacy/extend_handler.rb#11 + def process_mixin(mixin); end +end + +# Handles a method definition +# +# source://yard//lib/yard/handlers/ruby/legacy/method_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::MethodHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Handles the 'include' statement to mixin a module in the instance scope +# +# source://yard//lib/yard/handlers/ruby/legacy/mixin_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::MixinHandler < ::YARD::Handlers::Ruby::Legacy::Base + private + + # @raise [YARD::Parser::UndocumentableError] + # + # source://yard//lib/yard/handlers/ruby/legacy/mixin_handler.rb#26 + def process_mixin(mixin); end +end + +# Handles module_function calls to turn methods into public class methods. +# Also creates a private instance copy of the method. +# +# source://yard//lib/yard/handlers/ruby/legacy/module_function_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ModuleFunctionHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Handles the declaration of a module +# +# source://yard//lib/yard/handlers/ruby/legacy/module_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::ModuleHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Sets visibility of a class method to private. +# +# source://yard//lib/yard/handlers/ruby/legacy/private_class_method_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::PrivateClassMethodHandler < ::YARD::Handlers::Ruby::Legacy::Base + private + + # source://yard//lib/yard/handlers/ruby/legacy/private_class_method_handler.rb#15 + def privatize_class_method(name); end +end + +# Sets visibility of a constant (class, module, const) +# +# source://yard//lib/yard/handlers/ruby/legacy/private_constant_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::PrivateConstantHandler < ::YARD::Handlers::Ruby::Legacy::Base + private + + # source://yard//lib/yard/handlers/ruby/legacy/private_constant_handler.rb#15 + def privatize_constant(name); end +end + +# Handles 'private', 'protected', and 'public' calls. +# +# source://yard//lib/yard/handlers/ruby/legacy/visibility_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::VisibilityHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# Handles 'yield' calls +# +# source://yard//lib/yard/handlers/ruby/legacy/yield_handler.rb#3 +class YARD::Handlers::Ruby::Legacy::YieldHandler < ::YARD::Handlers::Ruby::Legacy::Base; end + +# source://yard//lib/yard/handlers/ruby/base.rb#37 +class YARD::Handlers::Ruby::MethodCallWrapper < ::YARD::Handlers::Ruby::HandlesExtension + # @return [Boolean] + # + # source://yard//lib/yard/handlers/ruby/base.rb#38 + def matches?(node); end +end + +# Handles a conditional inside a method +# +# source://yard//lib/yard/handlers/ruby/method_condition_handler.rb#3 +class YARD::Handlers::Ruby::MethodConditionHandler < ::YARD::Handlers::Ruby::Base; end + +# Handles a method definition +# +# source://yard//lib/yard/handlers/ruby/method_handler.rb#3 +class YARD::Handlers::Ruby::MethodHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Common::MethodHandler + + # source://yard//lib/yard/handlers/ruby/method_handler.rb#69 + def format_args; end +end + +# Handles the 'include' statement to mixin a module in the instance scope +# +# source://yard//lib/yard/handlers/ruby/mixin_handler.rb#3 +class YARD::Handlers::Ruby::MixinHandler < ::YARD::Handlers::Ruby::Base + protected + + # @raise [YARD::Parser::UndocumentableError] + # + # source://yard//lib/yard/handlers/ruby/mixin_handler.rb#25 + def process_mixin(mixin); end + + # source://yard//lib/yard/handlers/ruby/mixin_handler.rb#50 + def recipient(mixin); end +end + +# Handles module_function calls to turn methods into public class methods. +# Also creates a private instance copy of the method. +# +# source://yard//lib/yard/handlers/ruby/module_function_handler.rb#4 +class YARD::Handlers::Ruby::ModuleFunctionHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::DecoratorHandlerMethods + + # source://yard//lib/yard/handlers/ruby/module_function_handler.rb#34 + def make_module_function(instance_method, namespace); end +end + +# Handles the declaration of a module +# +# source://yard//lib/yard/handlers/ruby/module_handler.rb#3 +class YARD::Handlers::Ruby::ModuleHandler < ::YARD::Handlers::Ruby::Base; end + +# Sets visibility of a class method to private. +# +# source://yard//lib/yard/handlers/ruby/private_class_method_handler.rb#3 +class YARD::Handlers::Ruby::PrivateClassMethodHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::DecoratorHandlerMethods +end + +# Sets visibility of a constant (class, module, const) +# +# source://yard//lib/yard/handlers/ruby/private_constant_handler.rb#6 +class YARD::Handlers::Ruby::PrivateConstantHandler < ::YARD::Handlers::Ruby::Base + private + + # source://yard//lib/yard/handlers/ruby/private_constant_handler.rb#28 + def privatize_constant(node); end +end + +# Sets visibility of a class method to public. +# +# source://yard//lib/yard/handlers/ruby/public_class_method_handler.rb#3 +class YARD::Handlers::Ruby::PublicClassMethodHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::DecoratorHandlerMethods +end + +# Helper methods to parse @attr_* tags on a class. +# +# @deprecated The use of +@attr+ tags are deprecated since 0.8.0 in favour of +# the +@!attribute+ directive. This module should not be relied on. +# @since 0.5.6 +# +# source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#7 +module YARD::Handlers::Ruby::StructHandlerMethods + include ::YARD::CodeObjects + + # Creates the auto-generated docstring for the getter method of a struct's + # member. This is used so the generated documentation will look just like that + # of an attribute defined using attr_accessor. + # + # @param klass [ClassObject] the class whose members we're working with + # @param member [String] the name of the member we're generating documentation for + # @return [String] a docstring to be attached to the getter method for this member + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#62 + def add_reader_tags(klass, new_method, member); end + + # Creates the auto-generated docstring for the setter method of a struct's + # member. This is used so the generated documentation will look just like that + # of an attribute defined using attr_accessor. + # + # @param klass [ClassObject] the class whose members we're working with + # @param member [String] the name of the member we're generating documentation for + # @return [String] a docstring to be attached to the setter method for this member + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#77 + def add_writer_tags(klass, new_method, member); end + + # Creates the given member methods and attaches them to the given ClassObject. + # + # @param klass [ClassObject] the class to generate attributes for + # @param members [Array<String>] a list of member names + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#134 + def create_attributes(klass, members); end + + # Creates and registers a class object with the given name and superclass name. + # Returns it for further use. + # + # @param classname [String] the name of the class + # @param superclass [String] the name of the superclass + # @return [ClassObject] the class object for further processing/method attaching + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#92 + def create_class(classname, superclass); end + + # Determines whether to create an attribute method based on the class's + # tags. + # + # @param klass [ClassObject] the class whose tags we're searching + # @param member [String] the name of the struct member we need + # @param type [Symbol] (:read) reader method, or writer method? + # @return [Boolean] should the attribute be created? + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#38 + def create_member_method?(klass, member, type = T.unsafe(nil)); end + + # Creates the getter (reader) method and attaches it to the class as an attribute. + # Also sets up the docstring to prettify the documentation output. + # + # @param klass [ClassObject] the class to attach the method to + # @param member [String] the name of the member we're generating a method for + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#121 + def create_reader(klass, member); end + + # Creates the setter (writer) method and attaches it to the class as an attribute. + # Also sets up the docstring to prettify the documentation output. + # + # @param klass [ClassObject] the class to attach the method to + # @param member [String] the name of the member we're generating a method for + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#104 + def create_writer(klass, member); end + + # Extracts the user's defined @member tag for a given class and its member. Returns + # nil if the user did not define a @member tag for this struct entry. + # + # @param klass [ClassObject] the class whose tags we're searching + # @param member [String] the name of the struct member we need + # @param type [Symbol] reader method, or writer method? + # @return [Tags::Tag, nil] the tag matching the request, or nil if not found + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#17 + def member_tag_for_member(klass, member, type = T.unsafe(nil)); end + + # Retrieves all members defined in @attr* tags + # + # @param klass [ClassObject] the class with the attributes + # @return [Array<String>] the list of members defined as attributes on the class + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#26 + def members_from_tags(klass); end + + # Gets the return type for the member in a nicely formatted string. Used + # to be injected into auto-generated docstrings. + # + # @param member_tag [Tags::Tag] the tag object to check for types + # @return [String] the user-declared type of the struct member, or [Object] if + # the user did not define a type for this member. + # @since 0.5.6 + # + # source://yard//lib/yard/handlers/ruby/struct_handler_methods.rb#51 + def return_type_from_tag(member_tag); end +end + +# source://yard//lib/yard/handlers/ruby/base.rb#53 +class YARD::Handlers::Ruby::TestNodeWrapper < ::YARD::Handlers::Ruby::HandlesExtension + # @return [Boolean] + # + # source://yard//lib/yard/handlers/ruby/base.rb#54 + def matches?(node); end +end + +# Handles 'private', 'protected', and 'public' calls. +# +# source://yard//lib/yard/handlers/ruby/visibility_handler.rb#3 +class YARD::Handlers::Ruby::VisibilityHandler < ::YARD::Handlers::Ruby::Base + include ::YARD::Handlers::Ruby::DecoratorHandlerMethods +end + +# Handles 'yield' calls +# +# source://yard//lib/yard/handlers/ruby/yield_handler.rb#3 +class YARD::Handlers::Ruby::YieldHandler < ::YARD::Handlers::Ruby::Base; end + +# Namespace for internationalization (i18n) +# +# @since 0.8.0 +# +# source://yard//lib/yard/autoload.rb#151 +module YARD::I18n; end + +# +Locale+ is a unit of translation. It has {#name} and a set of +# messages. +# +# @since 0.8.2 +# +# source://yard//lib/yard/i18n/locale.rb#8 +class YARD::I18n::Locale + # Creates a locale for +name+ locale. + # + # @param name [String] the locale name. + # @return [Locale] a new instance of Locale + # @since 0.8.2 + # + # source://yard//lib/yard/i18n/locale.rb#34 + def initialize(name); end + + # Loads translation messages from +locale_directory+/{#name}.po. + # + # @param locale_directory [String] the directory path that has + # {#name}.po. + # @return [Boolean] +true+ if PO file exists, +false+ otherwise. + # @since 0.8.2 + # + # source://yard//lib/yard/i18n/locale.rb#44 + def load(locale_directory); end + + # @return [String] the name of the locale. It used IETF language + # tag format +[language[_territory][.codeset][@modifier]]+. + # @see http://tools.ietf.org/rfc/bcp/bcp47.txt BCP 47 - Tags for Identifying Languages + # @since 0.8.2 + # + # source://yard//lib/yard/i18n/locale.rb#29 + def name; end + + # @param message [String] the translation target message. + # @return [String] translated message. If translation isn't + # registered, the +message+ is returned. + # @since 0.8.2 + # + # source://yard//lib/yard/i18n/locale.rb#62 + def translate(message); end + + class << self + # @return [String, nil] the default locale name. + # @since 0.8.4 + # + # source://yard//lib/yard/i18n/locale.rb#15 + def default; end + + # @return [String, nil] the default locale name. + # @since 0.8.4 + # + # source://yard//lib/yard/i18n/locale.rb#20 + def default=(locale); end + end +end + +# +Message+ is a translation target message. It has message ID as +# {#id} and some properties {#locations} and {#comments}. +# +# @since 0.8.1 +# +# source://yard//lib/yard/i18n/message.rb#10 +class YARD::I18n::Message + # Creates a translate target message for message ID +id+. + # + # @param id [String] the message ID of the translate target message. + # @return [Message] a new instance of Message + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#24 + def initialize(id); end + + # @param other [Message] the +Message+ to be compared. + # @return [Boolean] checks whether this message is equal to another. + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#49 + def ==(other); end + + # Adds a comment for the message. + # + # @param comment [String] the comment for the message to be added. + # @return [void] + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#43 + def add_comment(comment); end + + # Adds location information for the message. + # + # @param path [String] the path where the message appears. + # @param line [Integer] the line number where the message appears. + # @return [void] + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#35 + def add_location(path, line); end + + # @return [Set] the set of comments for the messages. + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#19 + def comments; end + + # @return [String] the message ID of the translation target message. + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#12 + def id; end + + # path and line number where the message is appeared. + # + # @return [Set] the set of locations. Location is an array of + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/message.rb#16 + def locations; end +end + +# Acts as a container for {Message} objects. +# +# @since 0.8.1 +# +# source://yard//lib/yard/i18n/messages.rb#7 +class YARD::I18n::Messages + include ::Enumerable + + # Creates a new container. + # + # @return [Messages] a new instance of Messages + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/messages.rb#11 + def initialize; end + + # Checks if this messages list is equal to another messages list. + # + # @param other [Messages] the container to compare. + # @return [Boolean] whether +self+ and +other+ is equivalence or not. + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/messages.rb#45 + def ==(other); end + + # @param id [String] the message ID to perform a lookup on. + # @return [Message, nil] a registered message for the given +id+, + # or nil if no message for the ID is found. + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/messages.rb#27 + def [](id); end + + # Enumerates each {Message} in the container. + # + # @return [void] + # @since 0.8.1 + # @yieldparam message [Message] the next message object in + # the enumeration. + # + # source://yard//lib/yard/i18n/messages.rb#20 + def each(&block); end + + # Registers a {Message}, the message ID of which is +id+. If + # corresponding +Message+ is already registered, the previously + # registered object is returned. + # + # @param id [String] the ID of the message to be registered. + # @return [Message] the registered +Message+. + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/messages.rb#37 + def register(id); end + + protected + + # @return [Hash{String=>Message}] the set of message objects + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/messages.rb#53 + def messages; end +end + +# The +PotGenerator+ generates POT format string from +# {CodeObjects::Base} and {CodeObjects::ExtraFileObject}. +# +# == POT and PO +# +# POT is an acronym for "Portable Object Template". POT is a +# template file to create PO file. The extension for POT is +# ".pot". PO file is an acronym for "Portable Object". PO file has +# many parts of message ID (msgid) that is translation target +# message and message string (msgstr) that is translated message +# of message ID. If you want to translate "Hello" in English into +# "Bonjour" in French, "Hello" is the msgid ID and "Bonjour" is +# msgstr. The extension for PO is ".po". +# +# == How to extract msgids +# +# The +PotGenerator+ has two parse methods: +# +# * {#parse_objects} for {CodeObjects::Base} +# * {#parse_files} for {CodeObjects::ExtraFileObject} +# +# {#parse_objects} extracts msgids from docstring and tags of +# {CodeObjects::Base} objects. The docstring of +# {CodeObjects::Base} object is parsed and a paragraph is +# extracted as a msgid. Tag name and tag text are extracted as +# msgids from a tag. +# +# {#parse_files} extracts msgids from +# {CodeObjects::ExtraFileObject} objects. The file content of +# {CodeObjects::ExtraFileObject} object is parsed and a paragraph +# is extracted as a msgid. +# +# == Usage +# +# To create a .pot file by +PotGenerator+, instantiate a +# +PotGenerator+ with a relative working directory path from a +# directory path that has created .pot file, parse +# {CodeObjects::Base} objects and {CodeObjects::ExtraFileObject} +# objects, generate a POT and write the generated POT to a .pot +# file. The relative working directory path is ".." when the +# working directory path is "." and the POT is wrote into +# "po/yard.pot". +# +# @example Generate a .pot file +# po_file_path = "po/yard.pot" +# po_file_directory_pathname = Pathname.new(po_file_path).directory) +# working_directory_pathname = Pathname.new(".") +# relative_base_path = working_directory_pathname.relative_path_from(po_file_directory_pathname).to_s +# # relative_base_path -> ".." +# generator = YARD::I18n::PotGenerator.new(relative_base_path) +# generator.parse_objects(objects) +# generator.parse_files(files) +# pot = generator.generate +# po_file_directory_pathname.mkpath +# File.open(po_file_path, "w") do |pot_file| +# pot_file.print(pot) +# end +# @see http://www.gnu.org/software/gettext/manual/html_node/PO-Files.html GNU gettext manual about details of PO file +# @since 0.8.0 +# +# source://yard//lib/yard/i18n/pot_generator.rb#65 +class YARD::I18n::PotGenerator + # Creates a POT generator that uses +relative_base_path+ to + # generate locations for a msgid. +relative_base_path+ is + # prepended to all locations. + # + # @param relative_base_path [String] a relative working + # directory path from a directory path that has created .pot + # file. + # @return [PotGenerator] a new instance of PotGenerator + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#79 + def initialize(relative_base_path); end + + # Generates POT from +@messages+. + # + # One PO file entry is generated from a +Message+ in + # +@messages+. + # + # Locations of the +Message+ are used to generate the reference + # line that is started with "#: ". +relative_base_path+ passed + # when the generator is created is prepended to each path in location. + # + # Comments of the +Message+ are used to generate the + # translator-comment line that is started with "# ". + # + # @return [String] POT format string + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#122 + def generate; end + + # Extracted messages. + # + # @return [Messages] + # @since 0.8.1 + # + # source://yard//lib/yard/i18n/pot_generator.rb#70 + def messages; end + + # Parses {CodeObjects::ExtraFileObject} objects and stores + # extracted msgids into {#messages}. + # + # @param files [Array<CodeObjects::ExtraFileObject>] a list + # of {CodeObjects::ExtraFileObject} objects to be parsed. + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#103 + def parse_files(files); end + + # Parses {CodeObjects::Base} objects and stores extracted msgids + # into {#messages} + # + # @param objects [Array<CodeObjects::Base>] a list of + # {CodeObjects::Base} to be parsed. + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#91 + def parse_objects(objects); end + + private + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#160 + def current_time; end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#183 + def escape_message_id(message_id); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#194 + def extract_documents(object); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#268 + def extract_paragraphs(file); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#235 + def extract_tag_documents(tag); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#242 + def extract_tag_name(tag); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#255 + def extract_tag_text(tag); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#168 + def generate_message(pot, message); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#164 + def generate_pot_creation_date_value; end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#136 + def header; end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/pot_generator.rb#190 + def register_message(id); end +end + +# Provides some convenient features for translating a text. +# +# @since 0.8.0 +# +# source://yard//lib/yard/i18n/text.rb#5 +class YARD::I18n::Text + # Creates a text object that has translation related features for + # the input text. + # + # @option options + # @param input [#each_line] a text to be translated. + # @param options [Hash] a customizable set of options + # @return [Text] a new instance of Text + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/text.rb#12 + def initialize(input, options = T.unsafe(nil)); end + + # Extracts translation target messages from +@input+. + # + # @return [void] + # @since 0.8.0 + # @yield [:attribute, name, value, line_no] the block that + # receives extracted an attribute in header. It may called many + # times. + # @yield [:paragraph, text, start_line_no] the block that + # receives extracted a paragraph in body. Paragraph is a text + # block separated by one or more empty lines. Empty line is a + # line that contains only zero or more whitespaces. It may + # called many times. + # @yieldparam name [String] the name of extracted attribute. + # @yieldparam value [String] the value of extracted attribute. + # @yieldparam line_no [Integer] the defined line number of extracted + # attribute. + # @yieldparam text [String] the text of extracted paragraph. + # @yieldparam start_line_no [Integer] the start line number of + # extracted paragraph. + # + # source://yard//lib/yard/i18n/text.rb#35 + def extract_messages; end + + # Translates into +locale+. + # + # @param locale [Locale] the translation target locale. + # @return [String] translated text. + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/text.rb#52 + def translate(locale); end + + private + + # @since 0.8.0 + # @yield [part] + # + # source://yard//lib/yard/i18n/text.rb#134 + def emit_attribute_event(match_data, line_no); end + + # @since 0.8.0 + # @yield [part] + # + # source://yard//lib/yard/i18n/text.rb#147 + def emit_empty_line_event(line, line_no); end + + # @since 0.8.0 + # @yield [part] + # + # source://yard//lib/yard/i18n/text.rb#125 + def emit_markup_event(line, line_no); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/text.rb#156 + def emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block); end + + # @since 0.8.0 + # + # source://yard//lib/yard/i18n/text.rb#76 + def parse(&block); end +end + +# Handles console logging for info, warnings and errors. +# Uses the stdlib Logger class in Ruby for all the backend logic. +# +# source://yard//lib/yard/logging.rb#9 +class YARD::Logger < ::Logger + # Creates a new logger + # + # @return [Logger] a new instance of Logger + # + # source://yard//lib/yard/logging.rb#43 + def initialize(pipe, *args); end + + # Displays an unformatted line to the logger output stream. + # + # @param msg [String] the message to display + # @return [void] + # @since 0.8.2 + # + # source://yard//lib/yard/logging.rb#143 + def <<(msg = T.unsafe(nil)); end + + # Prints the backtrace +exc+ to the logger as error data. + # + # @param exc [Array<String>] the backtrace list + # @param level_meth [Symbol] the level to log backtrace at + # @return [void] + # + # source://yard//lib/yard/logging.rb#154 + def backtrace(exc, level_meth = T.unsafe(nil)); end + + # Captures the duration of a block of code for benchmark analysis. Also + # calls {#progress} on the message to display it to the user. + # + # @param msg [String] the message to display + # @param nontty_log [Symbol, nil] the level to log as if the output + # stream is not a TTY. Use +nil+ for no alternate logging. + # @return [void] + # @todo Implement capture storage for reporting of benchmarks + # @yield a block of arbitrary code to benchmark + # + # source://yard//lib/yard/logging.rb#80 + def capture(msg, nontty_log = T.unsafe(nil)); end + + # Clears the progress indicator in the TTY display. + # + # @return [void] + # @since 0.8.2 + # + # source://yard//lib/yard/logging.rb#121 + def clear_progress; end + + # Changes the debug level to DEBUG if $DEBUG is set + # and writes a debugging message. + # + # source://yard//lib/yard/logging.rb#59 + def debug(*args); end + + # Sets the logger level for the duration of the block + # + # @example + # log.enter_level(Logger::ERROR) do + # YARD.parse_string "def x; end" + # end + # @param new_level [Fixnum] the logger level for the duration of the block. + # values can be found in Ruby's Logger class. + # @yield the block with the logger temporarily set to +new_level+ + # + # source://yard//lib/yard/logging.rb#179 + def enter_level(new_level = T.unsafe(nil)); end + + # @return [IO] the IO object being logged to + # @since 0.8.2 + # + # source://yard//lib/yard/logging.rb#17 + def io; end + + # source://yard//lib/yard/logging.rb#18 + def io=(pipe); end + + # Displays an unformatted line to the logger output stream. + # + # @param msg [String] the message to display + # @return [void] + # @since 0.8.2 + # + # source://yard//lib/yard/logging.rb#143 + def print(msg = T.unsafe(nil)); end + + # Displays a progress indicator for a given message. This progress report + # is only displayed on TTY displays, otherwise the message is passed to + # the +nontty_log+ level. + # + # @param msg [String] the message to log + # @param nontty_log [Symbol, nil] the level to log as if the output + # stream is not a TTY. Use +nil+ for no alternate logging. + # @return [void] + # @since 0.8.2 + # + # source://yard//lib/yard/logging.rb#96 + def progress(msg, nontty_log = T.unsafe(nil)); end + + # Displays an unformatted line to the logger output stream, adding + # a newline. + # + # @param msg [String] the message to display + # @return [void] + # @since 0.8.2 + # + # source://yard//lib/yard/logging.rb#132 + def puts(msg = T.unsafe(nil)); end + + # @return [Boolean] whether backtraces should be shown (by default + # this is on). + # + # source://yard//lib/yard/logging.rb#22 + def show_backtraces; end + + # Sets the attribute show_backtraces + # + # @param value the value to set the attribute show_backtraces to. + # + # source://yard//lib/yard/logging.rb#23 + def show_backtraces=(_arg0); end + + # @return [Boolean] whether progress indicators should be shown when + # logging CLIs (by default this is off). + # + # source://yard//lib/yard/logging.rb#27 + def show_progress; end + + # Sets the attribute show_progress + # + # @param value the value to set the attribute show_progress to. + # + # source://yard//lib/yard/logging.rb#34 + def show_progress=(_arg0); end + + # Remembers when a warning occurs and writes a warning message. + # + # source://yard//lib/yard/logging.rb#65 + def warn(*args); end + + # Warns that the Ruby environment does not support continuations. Applies + # to JRuby, Rubinius and MacRuby. This warning will only display once + # per Ruby process. + # + # @deprecated Continuations are no longer needed by YARD 0.8.0+. + # @return [void] + # + # source://yard//lib/yard/logging.rb#167 + def warn_no_continuations; end + + # Returns the value of attribute warned. + # + # source://yard//lib/yard/logging.rb#69 + def warned; end + + # Sets the attribute warned + # + # @param value the value to set the attribute warned to. + # + # source://yard//lib/yard/logging.rb#69 + def warned=(_arg0); end + + private + + # Override this internal Logger method to clear line + # + # source://yard//lib/yard/logging.rb#190 + def add(*args); end + + # source://yard//lib/yard/logging.rb#195 + def clear_line; end + + # Log format (from Logger implementation). Used by Logger internally + # + # source://yard//lib/yard/logging.rb#201 + def format_log(sev, _time, _prog, msg); end + + # source://logger/1.5.3/logger.rb#682 + def print_no_newline(msg); end + + class << self + # The logger instance + # + # @return [Logger] the logger instance + # + # source://yard//lib/yard/logging.rb#38 + def instance(pipe = T.unsafe(nil)); end + end +end + +# The list of characters displayed beside the progress bar to indicate +# "movement". +# +# @since 0.8.2 +# +# source://yard//lib/yard/logging.rb#13 +YARD::Logger::PROGRESS_INDICATORS = T.let(T.unsafe(nil), Array) + +# Generalized options class for passing around large amounts of options between objects. +# +# The options class exists for better visibility and documentability of options being +# passed through to other objects. Because YARD has parser and template architectures +# that are heavily reliant on options, it is necessary to make these option keys easily +# visible and understood by developers. Since the options class is more than just a +# basic Hash, the subclass can provide aliasing and convenience methods to simplify +# option property access, and, if needed, support backward-compatibility for deprecated +# key names. +# +# == Hash and OpenStruct-like Access +# +# Although the options class allows for Hash-like access (<tt>opts[:key]</tt>), the recommended +# mechanism for accessing an option key will be via standard method calls on attributes +# +# The options class can also act as an open ended key value storage structure (like a +# Hash or OpenStruct), and allows for setting and getting of unregistered option keys. +# This methodology is not recommended, however, and is only supported for backward +# compatibility inside YARD. Whenever possible, developers should define all keys used +# by an options class. +# +# == Declaring Default Values +# +# Note that the options class can contain default value definitions for certain options, +# but to initialize these defaults, {#reset_defaults} must be called manually after +# initialization; the options object is always created empty until defaults are applied. +# +# @abstract Subclasses should define (and document) custom attributes that are expected +# to be made available as option keys. +# @example Defining an Options class with custom option keys +# class TemplateOptions < YARD::Options +# # @return [Symbol] the output format to generate templates in +# attr_accessor :format +# +# # @return [Symbol] the template to use when generating output +# attr_accessor :template +# end +# @example Initializing default option values +# class TemplateOptions < YARD::Options +# def reset_defaults +# super +# self.format = :html +# self.template = :default +# self.highlight = true +# # ... +# end +# end +# @example Using +default_attr+ to create default attributes +# class TemplateOptions < YARD::Options +# default_attr :format, :html +# default_attr :template, :default +# default_attr :highlight, true +# end +# @example Deprecating an option while still supporting it +# class TemplateOptions < YARD::Options +# # @return [Boolean] if syntax highlighting should be performed on code blocks. +# # Defaults to true. +# attr_accessor :highlight +# +# # @deprecated Use {#highlight} instead. +# # @return [Boolean] if no syntax highlighting should be performs on code blocks. +# # Defaults to false. +# attr_accessor :no_highlight +# def no_highlight=(value) @highlight = !value end +# def no_highlight; !highlight end +# end +# +# source://yard//lib/yard/options.rb#69 +class YARD::Options + # @return [Boolean] whether another Options object equals the + # keys and values of this options object + # + # source://yard//lib/yard/options.rb#157 + def ==(other); end + + # Delegates calls with Hash syntax to actual method with key name + # + # @example Calling on an option key with Hash syntax + # options[:format] # equivalent to: options.format + # @param key [Symbol, String] the option name to access + # @return the value of the option named +key+ + # + # source://yard//lib/yard/options.rb#91 + def [](key); end + + # Delegates setter calls with Hash syntax to the attribute setter with the key name + # + # @example Setting an option with Hash syntax + # options[:format] = :html # equivalent to: options.format = :html + # @param key [Symbol, String] the option to set + # @param value [Object] the value to set for the option + # @return [Object] the value being set + # + # source://yard//lib/yard/options.rb#100 + def []=(key, value); end + + # Deletes an option value for +key+ + # + # @param key [Symbol, String] the key to delete a value for + # @return [Object] the value that was deleted + # + # source://yard//lib/yard/options.rb#207 + def delete(key); end + + # Yields over every option key and value + # + # @return [void] + # @yield [key, value] every option key and value + # @yieldparam key [Symbol] the option key + # @yieldparam value [Object] the option value + # + # source://yard//lib/yard/options.rb#143 + def each; end + + # Inspects the object + # + # source://yard//lib/yard/options.rb#151 + def inspect; end + + # Creates a new options object and sets options hash or object value + # onto that object. + # + # @param opts [Options, Hash] + # @return [Options] the newly created options object + # @see #update + # + # source://yard//lib/yard/options.rb#123 + def merge(opts); end + + # Handles setting and accessing of unregistered keys similar + # to an OpenStruct object. + # + # @note It is not recommended to set and access unregistered keys on + # an Options object. Instead, register the attribute before using it. + # + # source://yard//lib/yard/options.rb#170 + def method_missing(meth, *args, &block); end + + # Resets all values to their defaults. + # + # @abstract Subclasses should override this method to perform custom + # value initialization if not using {default_attr}. Be sure to call + # +super+ so that default initialization can take place. + # @return [void] + # + # source://yard//lib/yard/options.rb#188 + def reset_defaults; end + + # @return [Hash] Converts options object to an options hash. All keys + # will be symbolized. + # + # source://yard//lib/yard/options.rb#129 + def to_hash; end + + # Updates values from an options hash or options object on this object. + # All keys passed should be key names defined by attributes on the class. + # + # @example Updating a set of options on an Options object + # opts.update(:template => :guide, :type => :fulldoc) + # @param opts [Hash, Options] + # @return [self] + # + # source://yard//lib/yard/options.rb#109 + def update(opts); end + + class << self + # Defines an attribute named +key+ and sets a default value for it + # + # @example Defining a default option key + # default_attr :name, 'Default Name' + # default_attr :time, lambda { Time.now } + # @param key [Symbol] the option key name + # @param default [Object, Proc] the default object value. If the default + # value is a proc, it is executed upon initialization. + # + # source://yard//lib/yard/options.rb#80 + def default_attr(key, default); end + end +end + +# The parser namespace holds all parsing engines used by YARD. +# Currently only Ruby and C (Ruby) parsers are implemented. +# +# source://yard//lib/yard/autoload.rb#161 +module YARD::Parser; end + +# Represents the abstract base parser class that parses source code in +# a specific way. A parser should implement {#parse}, {#tokenize} and +# {#enumerator}. +# +# == Registering a Custom Parser +# To register a parser, see {SourceParser.register_parser_type} +# +# @abstract +# @see #parse +# @see #tokenize +# @see #enumerator +# @since 0.5.6 +# +# source://yard//lib/yard/parser/base.rb#16 +class YARD::Parser::Base + # This default constructor does nothing. The subclass is responsible for + # storing the source contents and filename if they are required. + # + # @param source [String] the source contents + # @param filename [String] the name of the file if from disk + # @raise [NotImplementedError] + # @return [Base] a new instance of Base + # @since 0.5.6 + # + # source://yard//lib/yard/parser/base.rb#26 + def initialize(source, filename); end + + # This method should be implemented to return a list of semantic tokens + # representing the source code to be post-processed. Otherwise the method + # should return nil. + # + # @abstract + # @return [Array] a list of semantic tokens representing the source code + # to be post-processed + # @return [nil] if no post-processing should be done + # @since 0.5.6 + # + # source://yard//lib/yard/parser/base.rb#52 + def enumerator; end + + # This method should be implemented to parse the source and return itself. + # + # @abstract + # @raise [NotImplementedError] + # @return [Base] this method should return itself + # @since 0.5.6 + # + # source://yard//lib/yard/parser/base.rb#33 + def parse; end + + # This method should be implemented to tokenize given source + # + # @abstract + # @raise [NotImplementedError] + # @return [Array] a list/tree of lexical tokens + # @since 0.5.6 + # + # source://yard//lib/yard/parser/base.rb#40 + def tokenize; end + + class << self + # Convenience method to create a new parser and {#parse} + # + # @since 0.5.6 + # + # source://yard//lib/yard/parser/base.rb#18 + def parse(source, filename = T.unsafe(nil)); end + end +end + +# CRuby Parsing components +# +# source://yard//lib/yard/autoload.rb#162 +module YARD::Parser::C; end + +# source://yard//lib/yard/parser/c/statement.rb#41 +class YARD::Parser::C::BodyStatement < ::YARD::Parser::C::Statement + # Returns the value of attribute comments. + # + # source://yard//lib/yard/parser/c/statement.rb#42 + def comments; end + + # Sets the attribute comments + # + # @param value the value to set the attribute comments to. + # + # source://yard//lib/yard/parser/c/statement.rb#42 + def comments=(_arg0); end +end + +# source://yard//lib/yard/parser/c/c_parser.rb#5 +class YARD::Parser::C::CParser < ::YARD::Parser::Base + # @return [CParser] a new instance of CParser + # + # source://yard//lib/yard/parser/c/c_parser.rb#6 + def initialize(source, file = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#24 + def enumerator; end + + # source://yard//lib/yard/parser/c/c_parser.rb#19 + def parse; end + + # @raise [NotImplementedError] + # + # source://yard//lib/yard/parser/c/c_parser.rb#28 + def tokenize; end + + private + + # source://yard//lib/yard/parser/c/c_parser.rb#213 + def advance(num = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#216 + def advance_loop; end + + # source://yard//lib/yard/parser/c/c_parser.rb#195 + def attach_comment(statement); end + + # source://yard//lib/yard/parser/c/c_parser.rb#214 + def back(num = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#225 + def char(num = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#96 + def consume_body_statements; end + + # source://yard//lib/yard/parser/c/c_parser.rb#136 + def consume_comment(add_comment = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#59 + def consume_directive; end + + # source://yard//lib/yard/parser/c/c_parser.rb#47 + def consume_quote(type = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#73 + def consume_toplevel_statement; end + + # source://yard//lib/yard/parser/c/c_parser.rb#169 + def consume_until(end_char, bracket_level = T.unsafe(nil), brace_level = T.unsafe(nil), add_comment = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#132 + def consume_whitespace; end + + # source://yard//lib/yard/parser/c/c_parser.rb#227 + def nextchar(num = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#220 + def nextline; end + + # source://yard//lib/yard/parser/c/c_parser.rb#34 + def parse_toplevel; end + + # source://yard//lib/yard/parser/c/c_parser.rb#226 + def prevchar(num = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/c_parser.rb#118 + def strip_non_statement_data; end + + # source://yard//lib/yard/parser/c/c_parser.rb#229 + def struct; end +end + +# source://yard//lib/yard/parser/c/statement.rb#51 +class YARD::Parser::C::Comment < ::YARD::Parser::C::Statement + include ::YARD::Parser::C::CommentParser + + # @return [Comment] a new instance of Comment + # + # source://yard//lib/yard/parser/c/statement.rb#58 + def initialize(source, file = T.unsafe(nil), line = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/c/statement.rb#62 + def comments; end + + # Returns the value of attribute overrides. + # + # source://yard//lib/yard/parser/c/statement.rb#55 + def overrides; end + + # Sets the attribute overrides + # + # @param value the value to set the attribute overrides to. + # + # source://yard//lib/yard/parser/c/statement.rb#55 + def overrides=(_arg0); end + + # Returns the value of attribute statement. + # + # source://yard//lib/yard/parser/c/statement.rb#56 + def statement; end + + # Sets the attribute statement + # + # @param value the value to set the attribute statement to. + # + # source://yard//lib/yard/parser/c/statement.rb#56 + def statement=(_arg0); end + + # Returns the value of attribute type. + # + # source://yard//lib/yard/parser/c/statement.rb#54 + def type; end + + # Sets the attribute type + # + # @param value the value to set the attribute type to. + # + # source://yard//lib/yard/parser/c/statement.rb#54 + def type=(_arg0); end +end + +# source://yard//lib/yard/parser/c/comment_parser.rb#5 +module YARD::Parser::C::CommentParser + protected + + # source://yard//lib/yard/parser/c/comment_parser.rb#8 + def parse_comments(comments); end + + private + + # source://yard//lib/yard/parser/c/comment_parser.rb#42 + def parse_callseq(comments); end + + # source://yard//lib/yard/parser/c/comment_parser.rb#30 + def parse_overrides(comments); end + + # source://yard//lib/yard/parser/c/comment_parser.rb#87 + def parse_types(types); end + + # source://yard//lib/yard/parser/c/comment_parser.rb#126 + def remove_private_comments(comment); end +end + +# source://yard//lib/yard/parser/c/statement.rb#5 +class YARD::Parser::C::Statement + # @return [Statement] a new instance of Statement + # + # source://yard//lib/yard/parser/c/statement.rb#16 + def initialize(source, file = T.unsafe(nil), line = T.unsafe(nil)); end + + # Returns the value of attribute comments_hash_flag. + # + # source://yard//lib/yard/parser/c/statement.rb#14 + def comments_hash_flag; end + + # Sets the attribute comments_hash_flag + # + # @param value the value to set the attribute comments_hash_flag to. + # + # source://yard//lib/yard/parser/c/statement.rb#14 + def comments_hash_flag=(_arg0); end + + # source://yard//lib/yard/parser/c/statement.rb#26 + def comments_range; end + + # Returns the value of attribute file. + # + # source://yard//lib/yard/parser/c/statement.rb#8 + def file; end + + # Sets the attribute file + # + # @param value the value to set the attribute file to. + # + # source://yard//lib/yard/parser/c/statement.rb#8 + def file=(_arg0); end + + # source://yard//lib/yard/parser/c/statement.rb#30 + def first_line; end + + # @deprecated Groups are now defined by directives + # @see Tags::GroupDirective + # + # source://yard//lib/yard/parser/c/statement.rb#12 + def group; end + + # @deprecated Groups are now defined by directives + # @see Tags::GroupDirective + # + # source://yard//lib/yard/parser/c/statement.rb#12 + def group=(_arg0); end + + # Returns the value of attribute line. + # + # source://yard//lib/yard/parser/c/statement.rb#7 + def line; end + + # Sets the attribute line + # + # @param value the value to set the attribute line to. + # + # source://yard//lib/yard/parser/c/statement.rb#7 + def line=(_arg0); end + + # source://yard//lib/yard/parser/c/statement.rb#22 + def line_range; end + + # source://yard//lib/yard/parser/c/statement.rb#36 + def show; end + + # source://yard//lib/yard/parser/c/statement.rb#30 + def signature; end + + # Returns the value of attribute source. + # + # source://yard//lib/yard/parser/c/statement.rb#6 + def source; end + + # Sets the attribute source + # + # @param value the value to set the attribute source to. + # + # source://yard//lib/yard/parser/c/statement.rb#6 + def source=(_arg0); end +end + +# source://yard//lib/yard/parser/c/statement.rb#45 +class YARD::Parser::C::ToplevelStatement < ::YARD::Parser::C::Statement + # Returns the value of attribute block. + # + # source://yard//lib/yard/parser/c/statement.rb#46 + def block; end + + # Sets the attribute block + # + # @param value the value to set the attribute block to. + # + # source://yard//lib/yard/parser/c/statement.rb#46 + def block=(_arg0); end + + # Returns the value of attribute comments. + # + # source://yard//lib/yard/parser/c/statement.rb#48 + def comments; end + + # Sets the attribute comments + # + # @param value the value to set the attribute comments to. + # + # source://yard//lib/yard/parser/c/statement.rb#48 + def comments=(_arg0); end + + # Returns the value of attribute declaration. + # + # source://yard//lib/yard/parser/c/statement.rb#47 + def declaration; end + + # Sets the attribute declaration + # + # @param value the value to set the attribute declaration to. + # + # source://yard//lib/yard/parser/c/statement.rb#47 + def declaration=(_arg0); end +end + +# Responsible for parsing a list of files in order. The +# {#parse} method of this class can be called from the +# {SourceParser#globals} globals state list to re-enter +# parsing for the remainder of files in the list recursively. +# +# @see Processor#parse_remaining_files +# +# source://yard//lib/yard/parser/source_parser.rb#21 +class YARD::Parser::OrderedParser + # Creates a new OrderedParser with the global state and a list + # of files to parse. + # + # @note OrderedParser sets itself as the +ordered_parser+ key on + # global_state for later use in {Handlers::Processor}. + # @param global_state [OpenStruct] a structure containing all global + # state during parsing + # @param files [Array<String>] the list of files to parse + # @return [OrderedParser] a new instance of OrderedParser + # + # source://yard//lib/yard/parser/source_parser.rb#33 + def initialize(global_state, files); end + + # @return [Array<String>] the list of remaining files to parse + # + # source://yard//lib/yard/parser/source_parser.rb#23 + def files; end + + # @return [Array<String>] the list of remaining files to parse + # + # source://yard//lib/yard/parser/source_parser.rb#23 + def files=(_arg0); end + + # Parses the remainder of the {#files} list. + # + # @see Processor#parse_remaining_files + # + # source://yard//lib/yard/parser/source_parser.rb#42 + def parse; end +end + +# Raised when the parser sees a Ruby syntax error +# +# source://yard//lib/yard/parser/source_parser.rb#13 +class YARD::Parser::ParserSyntaxError < ::YARD::Parser::UndocumentableError; end + +# Ruby parsing components. +# +# source://yard//lib/yard/autoload.rb#171 +module YARD::Parser::Ruby + # Builds and s-expression by creating {AstNode} objects with + # the type provided by the first argument. + # + # @example An implicit list of keywords + # ast = s(s(:kw, "if"), s(:kw, "else")) + # ast.type # => :list + # @example A method call + # s(:command, s(:var_ref, "mymethod")) + # @overload s + # @overload s + # @see AstNode#initialize + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#25 + def s(*args); end +end + +# An AST node is characterized by a type and a list of children. It +# is most easily represented by the s-expression {#s} such as: +# # AST for "if true; 5 end": +# s(s(:if, s(:var_ref, s(:kw, "true")), s(s(:int, "5")), nil)) +# +# The node type is not considered part of the list, only its children. +# So +ast[0]+ does not refer to the type, but rather the first child +# (or object). Items that are not +AstNode+ objects can be part of the +# list, like Strings or Symbols representing names. To return only +# the AstNode children of the node, use {#children}. +# +# source://yard//lib/yard/parser/ruby/ast_node.rb#41 +class YARD::Parser::Ruby::AstNode < ::Array + # Creates a new AST node + # + # @option opts + # @option opts + # @option opts + # @option opts + # @option opts + # @param type [Symbol] the type of node being created + # @param arr [Array<AstNode>] the child nodes + # @param opts [Hash] any extra line options + # @return [AstNode] a new instance of AstNode + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#153 + def initialize(type, arr, opts = T.unsafe(nil)); end + + # @private + # @return [Boolean] whether the node is equal to another by checking + # the list and type + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#167 + def ==(other); end + + # @return [Boolean] whether the node has a block + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#261 + def block?; end + + # @return [Boolean] whether the node is a method call + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#241 + def call?; end + + # @return [Array<AstNode>] the {AstNode} children inside the node + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#199 + def children; end + + # Returns the value of attribute docstring. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def comments; end + + # Returns the value of attribute docstring_hash_flag. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#42 + def comments_hash_flag; end + + # Returns the value of attribute docstring_range. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def comments_range; end + + # @return [Boolean] whether the node is a if/elsif/else condition + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#251 + def condition?; end + + # @return [Boolean] whether the node is a method definition + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#246 + def def?; end + + # Returns the value of attribute docstring. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def docstring; end + + # Sets the attribute docstring + # + # @param value the value to set the attribute docstring to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def docstring=(_arg0); end + + # Returns the value of attribute docstring_hash_flag. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#42 + def docstring_hash_flag; end + + # Sets the attribute docstring_hash_flag + # + # @param value the value to set the attribute docstring_hash_flag to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#42 + def docstring_hash_flag=(_arg0); end + + # Returns the value of attribute docstring_range. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def docstring_range; end + + # Sets the attribute docstring_range + # + # @param value the value to set the attribute docstring_range to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def docstring_range=(_arg0); end + + # @return [String] the filename the node was parsed from + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#76 + def file; end + + # Sets the attribute file + # + # @param value the value to set the attribute file to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#49 + def file=(_arg0); end + + # @return [String] the first line of source represented by the node. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#278 + def first_line; end + + # @return [String] the full source that the node was parsed from + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#82 + def full_source; end + + # Sets the attribute full_source + # + # @param value the value to set the attribute full_source to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#49 + def full_source=(_arg0); end + + # @deprecated Groups are now defined by directives + # @see Tags::GroupDirective + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#47 + def group; end + + # @deprecated Groups are now defined by directives + # @see Tags::GroupDirective + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#47 + def group=(_arg0); end + + # @return [Boolean] whether the node has a {#line_range} set + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#268 + def has_line?; end + + # @return [String] inspects the object + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#323 + def inspect; end + + # Searches through the node and all descendants and returns the + # first node with a type matching any of +node_types+, otherwise + # returns the original node (self). + # + # @example Returns the first method definition in a block of code + # ast = YARD.parse_string("if true; def x; end end").ast + # ast.jump(:def) + # # => s(:def, s(:ident, "x"), s(:params, nil, nil, nil, nil, + # # nil), s(s(:void_stmt, ))) + # @example Returns first 'def' or 'class' statement + # ast = YARD.parse_string("class X; def y; end end") + # ast.jump(:def, :class).first + # # => + # @example If the node types are not present in the AST + # ast = YARD.parse("def x; end") + # ast.jump(:def) + # @param node_types [Array<Symbol>] a set of node types to match + # @return [AstNode] the matching node, if one was found + # @return [self] if no node was found + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#193 + def jump(*node_types); end + + # @return [Boolean] whether the node is a keyword + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#236 + def kw?; end + + # @return [Fixnum] the starting line number of the node + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#273 + def line; end + + # @return [Range] the line range in {#full_source} represented + # by the node + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#70 + def line_range; end + + # Sets the attribute line_range + # + # @param value the value to set the attribute line_range to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#49 + def line_range=(_arg0); end + + # @return [Boolean] whether the node is a literal value + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#231 + def literal?; end + + # @return [Boolean] whether the node is a loop + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#256 + def loop?; end + + # @return [AstNode, nil] the node's parent or nil if it is a root node. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#59 + def parent; end + + # @return [AstNode, nil] the node's parent or nil if it is a root node. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#59 + def parent=(_arg0); end + + # @return [nil] pretty prints the node + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#290 + def pretty_print(q); end + + # @return [Boolean] whether the node is a reference (variable, + # constant name) + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#226 + def ref?; end + + # @return [String] the first line of source the node represents + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#285 + def show; end + + # @return [String] the parse of {#full_source} that the node represents + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#89 + def source; end + + # Sets the attribute source + # + # @param value the value to set the attribute source to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def source=(_arg0); end + + # @return [Range] the character range in {#full_source} represented + # by the node + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#63 + def source_range; end + + # Sets the attribute source_range + # + # @param value the value to set the attribute source_range to. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#49 + def source_range=(_arg0); end + + # Returns the value of attribute source. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#43 + def to_s; end + + # @return [Boolean] whether the node is a token + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#220 + def token?; end + + # Traverses the object and yields each node (including descendants) in order. + # + # @return [void] + # @yield each descendant node in order + # @yieldparam self, [AstNode] or a child/descendant node + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#208 + def traverse; end + + # @return [Symbol] the node's unique symbolic type + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#56 + def type; end + + # @return [Symbol] the node's unique symbolic type + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#56 + def type=(_arg0); end + + # Resets node state in tree + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#331 + def unfreeze; end + + private + + # Resets line information + # + # @return [void] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#341 + def reset_line_info; end + + class << self + # Finds the node subclass that should be instantiated for a specific + # node type + # + # @param type [Symbol] the node type to find a subclass for + # @return [Class] a subclass of AstNode to instantiate the node with. + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#111 + def node_class_for(type); end + end +end + +# List of all known keywords +# +# @return [Hash] +# +# source://yard//lib/yard/parser/ruby/ast_node.rb#96 +YARD::Parser::Ruby::AstNode::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/ruby/ast_node.rb#530 +class YARD::Parser::Ruby::ClassNode < ::YARD::Parser::Ruby::KeywordNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#533 + def block; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#531 + def class_name; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#532 + def superclass; end +end + +# Represents a lone comment block in source +# +# source://yard//lib/yard/parser/ruby/ast_node.rb#548 +class YARD::Parser::Ruby::CommentNode < ::YARD::Parser::Ruby::AstNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#549 + def comments; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#549 + def docstring; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#550 + def docstring=(value); end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#554 + def first_line; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#553 + def source; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#515 +class YARD::Parser::Ruby::ConditionalNode < ::YARD::Parser::Ruby::KeywordNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#517 + def condition; end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#516 + def condition?; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#520 + def else_block; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#518 + def then_block; end + + private + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#527 + def cmod?; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#376 +class YARD::Parser::Ruby::KeywordNode < ::YARD::Parser::Ruby::AstNode + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#377 + def kw?; end +end + +# Handles Ruby parsing in Ruby 1.8. +# +# source://yard//lib/yard/autoload.rb#172 +module YARD::Parser::Ruby::Legacy; end + +# Lexical analyzer for Ruby source +# +# @private +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#314 +class YARD::Parser::Ruby::Legacy::RubyLex + include ::YARD::Parser::Ruby::Legacy::RubyToken + include ::IRB + + # @return [RubyLex] a new instance of RubyLex + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#437 + def initialize(content); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#472 + def char_no; end + + # Returns the value of attribute continue. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#430 + def continue; end + + # Returns the value of attribute exception_on_syntax_error. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#463 + def exception_on_syntax_error; end + + # Sets the attribute exception_on_syntax_error + # + # @param value the value to set the attribute exception_on_syntax_error to. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#463 + def exception_on_syntax_error=(_arg0); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#476 + def get_read; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#480 + def getc; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#484 + def getc_of_rests; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#488 + def gets; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1257 + def identify_comment; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#945 + def identify_gvar; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1062 + def identify_here_document; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#980 + def identify_identifier; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1130 + def identify_number(start); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1111 + def identify_quotation(initial_char); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1192 + def identify_string(ltype, quoted = T.unsafe(nil), opener = T.unsafe(nil), initial_char = T.unsafe(nil)); end + + # Returns the value of attribute indent. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#465 + def indent; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#510 + def lex; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#586 + def lex_init; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#759 + def lex_int2; end + + # Returns the value of attribute lex_state. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#431 + def lex_state; end + + # io functions + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#468 + def line_no; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#506 + def peek(i = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#502 + def peek_equal?(str); end + + # Returns the value of attribute read_auto_clean_up. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#462 + def read_auto_clean_up; end + + # Sets the attribute read_auto_clean_up + # + # @param value the value to set the attribute read_auto_clean_up to. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#462 + def read_auto_clean_up=(_arg0); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1280 + def read_escape; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#1242 + def skip_inner_expression; end + + # Returns the value of attribute skip_space. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#461 + def skip_space; end + + # Sets the attribute skip_space + # + # @param value the value to set the attribute skip_space to. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#461 + def skip_space=(_arg0); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#526 + def token; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#498 + def ungetc(c = T.unsafe(nil)); end + + class << self + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#433 + def debug?; end + end +end + +# , "when" +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#552 +YARD::Parser::Ruby::Legacy::RubyLex::ACCEPTS_COLON = T.let(T.unsafe(nil), Array) + +# Read an input stream character by character. We allow for unlimited +# ungetting of characters just read. +# +# We simplify the implementation greatly by reading the entire input +# into a buffer initially, and then simply traversing it using +# pointers. +# +# We also have to allow for the <i>here document diversion</i>. This +# little gem comes about when the lexer encounters a here +# document. At this point we effectively need to split the input +# stream into two parts: one to read the body of the here document, +# the other to read the rest of the input line where the here +# document was initially encountered. For example, we might have +# +# do_something(<<-A, <<-B) +# stuff +# for +# A +# stuff +# for +# B +# +# When the lexer encounters the <<A, it reads until the end of the +# line, and keeps it around for later. It then reads the body of the +# here document. Once complete, it needs to read the rest of the +# original line, but then skip the here document body. +# +# @private +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#343 +class YARD::Parser::Ruby::Legacy::RubyLex::BufferedReader + # @return [BufferedReader] a new instance of BufferedReader + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#346 + def initialize(content); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#365 + def column; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#419 + def divert_read_from(reserve); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#400 + def get_read; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#369 + def getc; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#388 + def getc_already_read; end + + # Returns the value of attribute line_num. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#344 + def line_num; end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#406 + def peek(at); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#415 + def peek_equal(str); end + + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#392 + def ungetc(_ch); end +end + +# , "when" +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#553 +YARD::Parser::Ruby::Legacy::RubyLex::DEINDENT_CLAUSE = T.let(T.unsafe(nil), Array) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#580 +YARD::Parser::Ruby::Legacy::RubyLex::DLtype2Token = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#548 +YARD::Parser::Ruby::Legacy::RubyLex::ENINDENT_CLAUSE = T.let(T.unsafe(nil), Array) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#571 +YARD::Parser::Ruby::Legacy::RubyLex::Ltype2Token = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#555 +YARD::Parser::Ruby::Legacy::RubyLex::PERCENT_LTYPE = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#564 +YARD::Parser::Ruby::Legacy::RubyLex::PERCENT_PAREN = T.let(T.unsafe(nil), Hash) + +# Legacy Ruby parser +# +# @since 0.5.6 +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#8 +class YARD::Parser::Ruby::Legacy::RubyParser < ::YARD::Parser::Base + # @return [RubyParser] a new instance of RubyParser + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#9 + def initialize(source, _filename); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#26 + def encoding_line; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#22 + def enumerator; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#13 + def parse; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#27 + def shebang_line; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_parser.rb#18 + def tokenize; end +end + +# Legacy lexical tokenizer module. +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#6 +module YARD::Parser::Ruby::Legacy::RubyToken + # @private + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#125 + def Token(token, value = T.unsafe(nil)); end + + # @private + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#119 + def set_token_position(line, char); end + + class << self + # @private + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#275 + def def_token(token_n, super_token = T.unsafe(nil), reading = T.unsafe(nil), *opts); end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#10 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_ARG = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#7 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_BEG = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#13 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_CLASS = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#12 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_DOT = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#9 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_END = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#11 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_FNAME = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#8 +YARD::Parser::Ruby::Legacy::RubyToken::EXPR_MID = T.let(T.unsafe(nil), Symbol) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#308 +YARD::Parser::Ruby::Legacy::RubyToken::NEWLINE_TOKEN = T.let(T.unsafe(nil), YARD::Parser::Ruby::Legacy::RubyToken::TkNL) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::OPASGN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkALIAS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkAMPER < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkAND < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkANDOP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkAREF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkASET < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkASSIGN < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkASSOC < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkAT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkUnknownChar; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBACKQUOTE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBACKSLASH < ::YARD::Parser::Ruby::Legacy::RubyToken::TkUnknownChar; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBACK_REF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBEGIN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBITAND < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBITNOT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBITOR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBITXOR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBREAK < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# Represents a block +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#54 +class YARD::Parser::Ruby::Legacy::RubyToken::TkBlockContents < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#55 + def text; end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCASE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCLASS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCMP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCOLON < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCOLON2 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCOLON3 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCOMMA < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCOMMENT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkCONSTANT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDEF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDEFINED < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDIV < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDO < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDOLLAR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkUnknownChar; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDOT < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDOT2 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDOT3 < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDREGEXP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkNode; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDSTRING < ::YARD::Parser::Ruby::Legacy::RubyToken::TkNode; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkDXSTRING < ::YARD::Parser::Ruby::Legacy::RubyToken::TkNode; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkELSE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkELSIF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkEND < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkEND_OF_SCRIPT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkWhitespace; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkENSURE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkEQQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#115 +class YARD::Parser::Ruby::Legacy::RubyToken::TkError < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkFALSE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkFID < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkFLOAT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkFOR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkGEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkGT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkGVAR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkIDENTIFIER < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkIF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkIF_MOD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkIN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkINTEGER < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkIVAR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# Represents a Ruby identifier +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#72 +class YARD::Parser::Ruby::Legacy::RubyToken::TkId < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # @return [TkId] a new instance of TkId + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#73 + def initialize(line_no, char_no, name); end + + # Returns the value of attribute name. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#77 + def name; end +end + +# Represents a Ruby keyword +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#81 +class YARD::Parser::Ruby::Legacy::RubyToken::TkKW < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLABEL < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLBRACE < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLBRACK < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLPAREN < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLSHFT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkLT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkMATCH < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkMINUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkMOD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkMODULE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkMULT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNEQ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNEXT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNIL < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNL < ::YARD::Parser::Ruby::Legacy::RubyToken::TkWhitespace; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNMATCH < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNOT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNOTOP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNTH_REF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#63 +class YARD::Parser::Ruby::Legacy::RubyToken::TkNode < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # Returns the value of attribute node. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#64 + def node; end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#98 +class YARD::Parser::Ruby::Legacy::RubyToken::TkOPASGN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + # @return [TkOPASGN] a new instance of TkOPASGN + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#99 + def initialize(line_no, char_no, op); end + + # Returns the value of attribute op. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#104 + def op; end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkOR < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkOROP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#92 +class YARD::Parser::Ruby::Legacy::RubyToken::TkOp < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#93 + def name; end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkPLUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkPOW < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkQUESTION < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRBRACE < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRBRACK < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkREDO < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkREGEXP < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRESCUE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRETRY < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRETURN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRPAREN < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkRSHFT < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# { reading => token_class } +# { reading => [token_class, *opt] } +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#271 +YARD::Parser::Ruby::Legacy::RubyToken::TkReading2Token = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSELF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSEMICOLON < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSPACE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkWhitespace; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSTAR < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSTRING < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSUPER < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSYMBEG < ::YARD::Parser::Ruby::Legacy::RubyToken::TkId; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkSYMBOL < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# Represents an end statement +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#59 +class YARD::Parser::Ruby::Legacy::RubyToken::TkStatementEnd < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#60 + def text; end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#272 +YARD::Parser::Ruby::Legacy::RubyToken::TkSymbol2Token = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkTHEN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkTRUE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUMINUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUNDEF < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUNLESS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUNLESS_MOD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUNTIL < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUNTIL_MOD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUPLUS < ::YARD::Parser::Ruby::Legacy::RubyToken::TkOp + class << self + def op_name; end + end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#107 +class YARD::Parser::Ruby::Legacy::RubyToken::TkUnknownChar < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # @return [TkUnknownChar] a new instance of TkUnknownChar + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#108 + def initialize(line_no, char_no, _id); end + + # Returns the value of attribute name. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#112 + def name; end +end + +# Represents a Ruby value +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#85 +class YARD::Parser::Ruby::Legacy::RubyToken::TkVal < ::YARD::Parser::Ruby::Legacy::RubyToken::Token + # @return [TkVal] a new instance of TkVal + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#86 + def initialize(line_no, char_no, value = T.unsafe(nil)); end +end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkWHEN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkWHILE < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkWHILE_MOD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# Represents whitespace +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#68 +class YARD::Parser::Ruby::Legacy::RubyToken::TkWhitespace < ::YARD::Parser::Ruby::Legacy::RubyToken::Token; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkXSTRING < ::YARD::Parser::Ruby::Legacy::RubyToken::TkVal; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TkYIELD < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::Tk__FILE__ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::Tk__LINE__ < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TklBEGIN < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#281 +class YARD::Parser::Ruby::Legacy::RubyToken::TklEND < ::YARD::Parser::Ruby::Legacy::RubyToken::TkKW; end + +# Represents a token in the Ruby lexer +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#16 +class YARD::Parser::Ruby::Legacy::RubyToken::Token + # Creates a new Token object + # + # @param line_no [Integer] the line number to initialize the token to + # @param char_no [Integer] the char number to initialize the token to + # @return [Token] a new instance of Token + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#37 + def initialize(line_no, char_no); end + + # @return [Integer] the character number in the file/stream the token + # is located. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#23 + def char_no; end + + # @return [Symbol] the lexical state at the token + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#29 + def lex_state; end + + # @return [Symbol] the lexical state at the token + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#29 + def lex_state=(_arg0); end + + # @return [Integer] the line number in the file/stream the token is + # located. + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#19 + def line_no; end + + # Chainable way to sets the text attribute + # + # @param text [String] the new text + # @return [Token] this token object + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#47 + def set_text(text); end + + # @return [String] the token text value + # + # source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#26 + def text; end +end + +# @private +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#32 +YARD::Parser::Ruby::Legacy::RubyToken::Token::NO_TEXT = T.let(T.unsafe(nil), String) + +# @private +# +# source://yard//lib/yard/parser/ruby/legacy/ruby_lex.rb#147 +YARD::Parser::Ruby::Legacy::RubyToken::TokenDefinitions = T.let(T.unsafe(nil), Array) + +# source://yard//lib/yard/parser/ruby/legacy/statement.rb#4 +class YARD::Parser::Ruby::Legacy::Statement + # @return [Statement] a new instance of Statement + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#14 + def initialize(tokens, block = T.unsafe(nil), comments = T.unsafe(nil)); end + + # Returns the value of attribute block. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#5 + def block; end + + # Returns the value of attribute comments. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#5 + def comments; end + + # Returns the value of attribute comments_hash_flag. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#12 + def comments_hash_flag; end + + # Sets the attribute comments_hash_flag + # + # @param value the value to set the attribute comments_hash_flag to. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#12 + def comments_hash_flag=(_arg0); end + + # Returns the value of attribute comments_range. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#6 + def comments_range; end + + # Sets the attribute comments_range + # + # @param value the value to set the attribute comments_range to. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#6 + def comments_range=(_arg0); end + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#21 + def first_line; end + + # @deprecated Groups are now defined by directives + # @see Tags::GroupDirective + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#10 + def group; end + + # @deprecated Groups are now defined by directives + # @see Tags::GroupDirective + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#10 + def group=(_arg0); end + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#34 + def inspect; end + + # @return [Fixnum] the first line of Ruby source + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#46 + def line; end + + # @return [Range<Fixnum>] the first to last lines of Ruby source + # @since 0.5.4 + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#52 + def line_range; end + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#41 + def show; end + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#21 + def signature; end + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#27 + def source(include_block = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#27 + def to_s(include_block = T.unsafe(nil)); end + + # Returns the value of attribute tokens. + # + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#5 + def tokens; end + + private + + # source://yard//lib/yard/parser/ruby/legacy/statement.rb#58 + def clean_tokens(tokens); end +end + +# source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#4 +class YARD::Parser::Ruby::Legacy::StatementList < ::Array + include ::YARD::Parser::Ruby::Legacy::RubyToken + + # Creates a new statement list + # + # @param content [TokenList, String] the tokens to create the list from + # @return [StatementList] a new instance of StatementList + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#17 + def initialize(content); end + + # Returns the value of attribute encoding_line. + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#7 + def encoding_line; end + + # Sets the attribute encoding_line + # + # @param value the value to set the attribute encoding_line to. + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#7 + def encoding_line=(_arg0); end + + # Returns the value of attribute shebang_line. + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#7 + def shebang_line; end + + # Sets the attribute shebang_line + # + # @param value the value to set the attribute shebang_line to. + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#7 + def shebang_line=(_arg0); end + + private + + # Handles the balancing of parentheses and blocks + # + # @param tk [RubyToken::Token] the token to process + # @return [Boolean] whether or not the current statement's parentheses and blocks + # are balanced after +tk+ + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#362 + def balances?(tk); end + + # Returns the next statement in the token stream + # + # @return [Statement] the next statement + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#45 + def next_statement; end + + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#34 + def parse_statements; end + + # Returns the next token in the stream that's not a space + # + # @return [RubyToken::Token] the next non-space token + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#388 + def peek_no_space; end + + # Processes a token in a block + # + # @param tk [RubyToken::Token] the token to process + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#194 + def process_block_token(tk); end + + # Processes a complex block-opening token; + # that is, a block opener such as +while+ or +for+ + # that is followed by an expression + # + # @param tk [RubyToken::Token] the token to process + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#293 + def process_complex_block_opener(tk); end + + # Processes a comment token that comes before a statement + # + # @param tk [RubyToken::Token] the token to process + # @return [Boolean] whether or not +tk+ was processed as an initial comment + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#213 + def process_initial_comment(tk); end + + # Processes a simple block-opening token; + # that is, a block opener such as +begin+ or +do+ + # that isn't followed by an expression + # + # @param tk [RubyToken::Token] the token to process + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#268 + def process_simple_block_opener(tk); end + + # Processes a token that closes a statement + # + # @param tk [RubyToken::Token] the token to process + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#305 + def process_statement_end(tk); end + + # Processes a single token + # + # @param tk [RubyToken::Token] the token to process + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#130 + def process_token(tk); end + + # Adds a token to the current statement, + # unless it's a newline, semicolon, or comment + # + # @param tk [RubyToken::Token] the token to process + # + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#380 + def push_token(tk); end + + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#111 + def sanitize_block; end + + # source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#96 + def sanitize_statement_end; end +end + +# The following list of tokens will require a block to be opened +# if used at the beginning of a statement. +# +# source://yard//lib/yard/parser/ruby/legacy/statement_list.rb#11 +YARD::Parser::Ruby::Legacy::StatementList::OPEN_BLOCK_TOKENS = T.let(T.unsafe(nil), Array) + +# source://yard//lib/yard/parser/ruby/legacy/token_list.rb#4 +class YARD::Parser::Ruby::Legacy::TokenList < ::Array + include ::YARD::Parser::Ruby::Legacy::RubyToken + + # @return [TokenList] a new instance of TokenList + # + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#7 + def initialize(content = T.unsafe(nil)); end + + # @param tokens [TokenList, Token, String] A list of tokens. If the token is a string, it + # is parsed with {RubyLex}. + # + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#21 + def <<(*tokens); end + + # @param tokens [TokenList, Token, String] A list of tokens. If the token is a string, it + # is parsed with {RubyLex}. + # + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#21 + def push(*tokens); end + + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#37 + def squeeze(type = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#11 + def to_s(full_statement = T.unsafe(nil), show_block = T.unsafe(nil)); end + + private + + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#53 + def convert_token(lex, tk); end + + # source://yard//lib/yard/parser/ruby/legacy/token_list.rb#44 + def parse_content(content); end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#372 +class YARD::Parser::Ruby::LiteralNode < ::YARD::Parser::Ruby::AstNode + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#373 + def literal?; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#541 +class YARD::Parser::Ruby::LoopNode < ::YARD::Parser::Ruby::KeywordNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#544 + def block; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#543 + def condition; end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#542 + def loop?; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#438 +class YARD::Parser::Ruby::MethodCallNode < ::YARD::Parser::Ruby::AstNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#464 + def block; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#462 + def block_param; end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#439 + def call?; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#442 + def method_name(name_only = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#440 + def namespace; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#453 + def parameters(include_block_param = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#474 + def call_has_paren?; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#470 + def index_adjust; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#479 +class YARD::Parser::Ruby::MethodDefinitionNode < ::YARD::Parser::Ruby::AstNode + def block(*_arg0); end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#481 + def def?; end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#480 + def kw?; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#484 + def method_name(name_only = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#482 + def namespace; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#489 + def parameters(include_block_param = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#495 + def signature; end + + private + + # source://yard//lib/yard/parser/ruby/ast_node.rb#510 + def index_adjust; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#536 +class YARD::Parser::Ruby::ModuleNode < ::YARD::Parser::Ruby::KeywordNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#538 + def block; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#537 + def module_name; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#380 +class YARD::Parser::Ruby::ParameterNode < ::YARD::Parser::Ruby::AstNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#430 + def args_forward; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#426 + def block_param; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#414 + def double_splat_param; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#396 + def named_params; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#406 + def splat_param; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#410 + def unnamed_end_params; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#385 + def unnamed_optional_params; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#381 + def unnamed_required_params; end +end + +# source://yard//lib/yard/parser/ruby/ast_node.rb#360 +class YARD::Parser::Ruby::ReferenceNode < ::YARD::Parser::Ruby::AstNode + # source://yard//lib/yard/parser/ruby/ast_node.rb#367 + def namespace; end + + # source://yard//lib/yard/parser/ruby/ast_node.rb#363 + def path; end + + # @return [Boolean] + # + # source://yard//lib/yard/parser/ruby/ast_node.rb#361 + def ref?; end +end + +# Internal parser class +# +# @since 0.5.6 +# +# source://yard//lib/yard/parser/ruby/ruby_parser.rb#27 +class YARD::Parser::Ruby::RipperParser < ::Ripper + # @return [RipperParser] a new instance of RipperParser + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#32 + def initialize(source, filename, *args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + def ast; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + def charno; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + def comments; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#29 + def encoding_line; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#64 + def enumerator; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + def file; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#68 + def file_encoding; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#29 + def frozen_string_line; end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_BEGIN(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_CHAR(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_END(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on___end__(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_alias(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_alias_error(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_arg_ambiguous(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_arg_paren(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_args_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_args_add_block(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_args_add_star(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_args_forward(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_args_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_aryptn(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_assign(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_assign_error(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_assoc_splat(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_backref(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_backtick(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_begin(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_binary(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_block_var(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_blockarg(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_brace_block(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_break(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_call(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_case(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_class(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_class_name_error(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_comma(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_command(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_command_call(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_const(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_const_path_field(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_const_ref(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_cvar(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_def(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_defined(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_defs(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_do_block(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_dot2(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_dot3(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_else(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_elsif(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_embexpr_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_embexpr_end(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_embvar(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_ensure(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_excessed_comma(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_fcall(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_field(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_float(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_fndptn(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_for(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_gvar(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_heredoc_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_heredoc_dedent(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_heredoc_end(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_hshptn(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_ident(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_if(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + def on_if_mod(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_ifop(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#222 + def on_ignored_nl(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_ignored_sp(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_imaginary(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_in(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_int(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_ivar(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#209 + def on_kw(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_kwrest_param(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_label_end(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_lbrace(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_lparen(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_magic_comment(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_massign(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_method_add_arg(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_method_add_block(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_mlhs_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_mlhs_add_post(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_mlhs_add_star(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_mlhs_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_mlhs_paren(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_module(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_mrhs_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_mrhs_add_star(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_mrhs_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_mrhs_new_from_args(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_next(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#222 + def on_nl(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_nokw_param(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#209 + def on_op(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_opassign(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_operator_ambiguous(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_param_error(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_paren(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_period(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + def on_qsymbols_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_qsymbols_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + def on_qsymbols_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + def on_qwords_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_qwords_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + def on_qwords_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_rational(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_rbrace(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_redo(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_regexp_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_regexp_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_regexp_end(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_regexp_literal(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_regexp_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_rescue_mod(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_rest_param(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_retry(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_return(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_return0(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_rparen(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_sclass(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_semicolon(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_stmts_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_stmts_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_string_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_string_concat(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_string_dvar(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_string_embexpr(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_super(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_symbeg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_symbol(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_symbol_literal(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + def on_symbols_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_symbols_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + def on_symbols_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_tlambda(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_tlambeg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_top_const_field(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_tstring_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_tstring_content(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_tstring_end(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_undef(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_unless(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + def on_unless_mod(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_until(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + def on_until_mod(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_var_alias(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_var_field(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_var_ref(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177 + def on_vcall(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_when(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_while(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449 + def on_while_mod(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_word_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_word_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474 + def on_words_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199 + def on_words_beg(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462 + def on_words_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188 + def on_words_sep(tok); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162 + def on_xstring_add(list, item); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_xstring_literal(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155 + def on_xstring_new(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_yield(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_yield0(*args); end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170 + def on_zsuper(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#55 + def parse; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + def root; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#29 + def shebang_line; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#28 + def tokens; end + + private + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#667 + def add_comment(line, node = T.unsafe(nil), before_node = T.unsafe(nil), into = T.unsafe(nil)); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#271 + def add_token(token, data); end + + # @return [Boolean] + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#611 + def comment_starts_line?(charno); end + + # @raise [ParserSyntaxError] + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#606 + def compile_error(msg); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#693 + def freeze_tree(node = T.unsafe(nil)); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#620 + def insert_comments; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#377 + def on_aref(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#385 + def on_aref_field(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#391 + def on_array(other); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#352 + def on_assoc_new(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#364 + def on_assoclist_from_args(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#360 + def on_bare_assoc_hash(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#347 + def on_body_stmt(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#347 + def on_bodystmt(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#542 + def on_comment(comment); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#441 + def on_const_path_ref(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#419 + def on_dyna_symbol(sym); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#592 + def on_embdoc(text); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#586 + def on_embdoc_beg(text); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#597 + def on_embdoc_end(text); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#356 + def on_hash(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#534 + def on_label(data); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#497 + def on_lambda(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#409 + def on_lbracket(tok); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#515 + def on_params(*args); end + + # @raise [ParserSyntaxError] + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#606 + def on_parse_error(msg); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#343 + def on_program(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#414 + def on_rbracket(tok); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#506 + def on_rescue(exc, *args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#232 + def on_sp(tok); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#501 + def on_string_content(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#484 + def on_string_literal(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#429 + def on_top_const_ref(*args); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#368 + def on_unary(op, val); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#511 + def on_void_stmt; end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#237 + def visit_event(node); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#251 + def visit_event_arr(node); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#259 + def visit_ns_token(token, data, ast_token = T.unsafe(nil)); end +end + +# @since 0.5.6 +# +# source://yard//lib/yard/parser/ruby/ruby_parser.rb#133 +YARD::Parser::Ruby::RipperParser::AST_TOKENS = T.let(T.unsafe(nil), Array) + +# @since 0.5.6 +# +# source://yard//lib/yard/parser/ruby/ruby_parser.rb#136 +YARD::Parser::Ruby::RipperParser::COMMENT_SKIP_NODE_TYPES = T.let(T.unsafe(nil), Array) + +# @since 0.5.6 +# +# source://yard//lib/yard/parser/ruby/ruby_parser.rb#78 +YARD::Parser::Ruby::RipperParser::MAPPINGS = T.let(T.unsafe(nil), Hash) + +# @since 0.5.6 +# +# source://yard//lib/yard/parser/ruby/ruby_parser.rb#131 +YARD::Parser::Ruby::RipperParser::REV_MAPPINGS = T.let(T.unsafe(nil), Hash) + +# Ruby 1.9 parser +# +# source://yard//lib/yard/parser/ruby/ruby_parser.rb#12 +class YARD::Parser::Ruby::RubyParser < ::YARD::Parser::Base + # @return [RubyParser] a new instance of RubyParser + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#13 + def initialize(source, filename); end + + # Ruby 1.9 parser + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#21 + def encoding_line; end + + # Ruby 1.9 parser + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#19 + def enumerator; end + + # Ruby 1.9 parser + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#22 + def frozen_string_line; end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#17 + def parse; end + + # Ruby 1.9 parser + # + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#20 + def shebang_line; end + + # source://yard//lib/yard/parser/ruby/ruby_parser.rb#18 + def tokenize; end +end + +# Supports {#each} enumeration over a source's tokens, yielding +# the token and a possible {CodeObjects::Base} associated with the +# constant or identifier token. +# +# source://yard//lib/yard/parser/ruby/token_resolver.rb#8 +class YARD::Parser::Ruby::TokenResolver + include ::Enumerable + include ::YARD::CodeObjects::NamespaceMapper + + # Creates a token resolver for given source. + # + # @param source [String] the source code to tokenize + # @param namespace [CodeObjects::Base] the object/namespace to resolve from + # @raise [ParserSyntaxError] + # @return [TokenResolver] a new instance of TokenResolver + # + # source://yard//lib/yard/parser/ruby/token_resolver.rb#16 + def initialize(source, namespace = T.unsafe(nil)); end + + # Iterates over each token, yielding the token and a possible code + # object that is associated with the token. + # + # @example Yielding code objects + # r = TokenResolver.new("A::B::C") + # r.each do |tok, obj| + # if obj + # puts "#{tok[0]} -> #{obj.path.inspect}" + # else + # puts "No object: #{tok.inspect}" + # end + # end + # + # # Prints: + # # :const -> "A" + # # No object: [:op, "::"] + # # :const -> "A::B" + # # No object: [:op, "::"] + # # :const -> "A::B::C" + # @yieldparam token [Array(Symbol,String,Array(Integer,Integer))] the + # current token object being iterated + # @yieldparam object [CodeObjects::Base, nil] the fully qualified code + # object associated with the current token, or nil if there is no object + # for the yielded token. + # + # source://yard//lib/yard/parser/ruby/token_resolver.rb#46 + def each; end + + protected + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#94 + def last_sep; end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#95 + def last_sep=(v); end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#94 + def next_object; end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#95 + def next_object=(v); end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#94 + def object; end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#95 + def object=(v); end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#94 + def skip_group; end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#95 + def skip_group=(v); end + + private + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#112 + def lookup(toktype, name); end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#134 + def object_resolved_types(obj = T.unsafe(nil)); end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#106 + def pop_state; end + + # source://yard//lib/yard/parser/ruby/token_resolver.rb#102 + def push_state; end + + class << self + # source://yard//lib/yard/parser/ruby/token_resolver.rb#92 + def state_attr(*attrs); end + end +end + +# Responsible for parsing a source file into the namespace. Parsing +# also invokes handlers to process the parsed statements and generate +# any code objects that may be recognized. +# +# == Custom Parsers +# SourceParser allows custom parsers to be registered and called when +# a certain filetype is recognized. To register a parser and hook it +# up to a set of file extensions, call {register_parser_type} +# +# @see register_parser_type +# @see Handlers::Base +# @see CodeObjects::Base +# +# source://yard//lib/yard/parser/source_parser.rb#64 +class YARD::Parser::SourceParser + # @overload initialize + # @return [SourceParser] a new instance of SourceParser + # + # source://yard//lib/yard/parser/source_parser.rb#406 + def initialize(parser_type = T.unsafe(nil), globals1 = T.unsafe(nil), globals2 = T.unsafe(nil)); end + + # @return [String] the contents of the file to be parsed + # @since 0.7.0 + # + # source://yard//lib/yard/parser/source_parser.rb#399 + def contents; end + + # @return [String] the filename being parsed by the parser. + # + # source://yard//lib/yard/parser/source_parser.rb#386 + def file; end + + # @return [String] the filename being parsed by the parser. + # + # source://yard//lib/yard/parser/source_parser.rb#386 + def file=(_arg0); end + + # @return [OpenStruct] an open struct containing arbitrary global state + # shared between files and handlers. + # @since 0.7.0 + # + # source://yard//lib/yard/parser/source_parser.rb#395 + def globals; end + + # The main parser method. This should not be called directly. Instead, + # use the class methods {parse} and {parse_string}. + # + # @param content [String, #read, Object] the source file to parse + # @return [Object, nil] the parser object used to parse the source + # + # source://yard//lib/yard/parser/source_parser.rb#418 + def parse(content = T.unsafe(nil)); end + + # @return [Symbol] the parser type associated with the parser instance. + # This should be set by the {#initialize constructor}. + # + # source://yard//lib/yard/parser/source_parser.rb#390 + def parser_type; end + + # Tokenizes but does not parse the block of code using the current {#parser_type} + # + # @param content [String] the block of code to tokenize + # @return [Array] a list of tokens + # + # source://yard//lib/yard/parser/source_parser.rb#462 + def tokenize(content); end + + private + + # Searches for encoding line and forces encoding + # + # @since 0.5.3 + # + # source://yard//lib/yard/parser/source_parser.rb#471 + def convert_encoding(content); end + + # @since 0.5.6 + # + # source://yard//lib/yard/parser/source_parser.rb#516 + def parser_class; end + + # source://yard//lib/yard/parser/source_parser.rb#501 + def parser_type=(value); end + + # Guesses the parser type to use depending on the file extension. + # + # @param filename [String] the filename to use to guess the parser type + # @return [Symbol] a parser type that matches the filename + # + # source://yard//lib/yard/parser/source_parser.rb#509 + def parser_type_for_filename(filename); end + + # Runs a {Handlers::Processor} object to post process the parsed statements. + # + # @return [void] + # + # source://yard//lib/yard/parser/source_parser.rb#491 + def post_process; end + + class << self + # Registers a callback to be called after an individual file is parsed. + # The block passed to this method will be called on subsequent parse + # calls. + # + # To register a callback that is called after the entire list of files + # is processed, see {after_parse_list}. + # + # @example Printing the length of each file after it is parsed + # SourceParser.after_parse_file do |parser| + # puts "#{parser.file} is #{parser.contents.size} characters" + # end + # YARD.parse('lib/**/*.rb') + # # prints: + # "lib/foo.rb is 1240 characters" + # "lib/foo_bar.rb is 248 characters" + # @return [Proc] the yielded block + # @see before_parse_file + # @see after_parse_list + # @since 0.7.0 + # @yield [parser] the yielded block is called once after each file + # that is parsed. This might happen many times for a single codebase. + # @yieldparam parser [SourceParser] the parser object that parsed + # the file. + # @yieldreturn [void] the return value for the block is ignored. + # + # source://yard//lib/yard/parser/source_parser.rb#324 + def after_parse_file(&block); end + + # @return [Array<Proc>] the list of callbacks to be called after + # parsing a file. Should only be used for testing. + # @since 0.7.0 + # + # source://yard//lib/yard/parser/source_parser.rb#352 + def after_parse_file_callbacks; end + + # Registers a callback to be called after a list of files is parsed + # via {parse}. The block passed to this method will be called on + # subsequent parse calls. + # + # @example Printing results after parsing occurs + # SourceParser.after_parse_list do + # puts "Finished parsing!" + # end + # YARD.parse + # # Prints "Finished parsing!" after parsing files + # @return [Proc] the yielded block + # @see before_parse_list + # @see before_parse_file + # @since 0.7.0 + # @yield [files, globals] the yielded block is called once before + # parsing all files + # @yieldparam files [Array<String>] the list of files that will be parsed. + # @yieldparam globals [OpenStruct] a global structure to store arbitrary + # state for post processing (see {Handlers::Processor#globals}) + # @yieldreturn [void] the return value for the block is ignored. + # + # source://yard//lib/yard/parser/source_parser.rb#258 + def after_parse_list(&block); end + + # @return [Array<Proc>] the list of callbacks to be called after + # parsing a list of files. Should only be used for testing. + # @since 0.7.0 + # + # source://yard//lib/yard/parser/source_parser.rb#338 + def after_parse_list_callbacks; end + + # Registers a callback to be called before an individual file is parsed. + # The block passed to this method will be called on subsequent parse + # calls. + # + # To register a callback that is called before the entire list of files + # is processed, see {before_parse_list}. + # + # @example Installing a simple callback + # SourceParser.before_parse_file do |parser| + # puts "I'm parsing #{parser.file}" + # end + # YARD.parse('lib/**/*.rb') + # # prints: + # "I'm parsing lib/foo.rb" + # "I'm parsing lib/foo_bar.rb" + # "I'm parsing lib/last_file.rb" + # @example Cancel parsing of any test_*.rb files + # SourceParser.before_parse_file do |parser| + # return false if parser.file =~ /^test_.+\.rb$/ + # end + # @return [Proc] the yielded block + # @see after_parse_file + # @see before_parse_list + # @since 0.7.0 + # @yield [parser] the yielded block is called once before each + # file that is parsed. This might happen many times for a single + # codebase. + # @yieldparam parser [SourceParser] the parser object that will {#parse} + # the file. + # @yieldreturn [Boolean] if the block returns +false+, parsing for + # the file is cancelled. + # + # source://yard//lib/yard/parser/source_parser.rb#295 + def before_parse_file(&block); end + + # @return [Array<Proc>] the list of callbacks to be called before + # parsing a file. Should only be used for testing. + # @since 0.7.0 + # + # source://yard//lib/yard/parser/source_parser.rb#345 + def before_parse_file_callbacks; end + + # Registers a callback to be called before a list of files is parsed + # via {parse}. The block passed to this method will be called on + # subsequent parse calls. + # + # @example Installing a simple callback + # SourceParser.before_parse_list do |files, globals| + # puts "Starting to parse..." + # end + # YARD.parse('lib/**/*.rb') + # # prints "Starting to parse..." + # @example Setting global state + # SourceParser.before_parse_list do |files, globals| + # globals.method_count = 0 + # end + # SourceParser.after_parse_list do |files, globals| + # puts "Found #{globals.method_count} methods" + # end + # class MyCountHandler < Handlers::Ruby::Base + # handles :def, :defs + # process { globals.method_count += 1 } + # end + # YARD.parse + # # Prints: "Found 37 methods" + # @example Using a global callback to cancel parsing + # SourceParser.before_parse_list do |files, globals| + # return false if files.include?('foo.rb') + # end + # + # YARD.parse(['foo.rb', 'bar.rb']) # callback cancels this method + # YARD.parse('bar.rb') # parses normally + # @return [Proc] the yielded block + # @see after_parse_list + # @see before_parse_file + # @since 0.7.0 + # @yield [files, globals] the yielded block is called once before + # parsing all files + # @yieldparam files [Array<String>] the list of files that will be parsed. + # @yieldparam globals [OpenStruct] a global structure to store arbitrary + # state for post processing (see {Handlers::Processor#globals}) + # @yieldreturn [Boolean] if the block returns +false+, parsing is + # cancelled. + # + # source://yard//lib/yard/parser/source_parser.rb#234 + def before_parse_list(&block); end + + # @return [Array<Proc>] the list of callbacks to be called before + # parsing a list of files. Should only be used for testing. + # @since 0.7.0 + # + # source://yard//lib/yard/parser/source_parser.rb#331 + def before_parse_list_callbacks; end + + # Parses a path or set of paths + # + # @param paths [String, Array<String>] a path, glob, or list of paths to + # parse + # @param excluded [Array<String, Regexp>] a list of excluded path matchers + # @param level [Fixnum] the logger level to use during parsing. See + # {YARD::Logger} + # @return [void] + # + # source://yard//lib/yard/parser/source_parser.rb#100 + def parse(paths = T.unsafe(nil), excluded = T.unsafe(nil), level = T.unsafe(nil)); end + + # Parses a string +content+ + # + # @param content [String] the block of code to parse + # @param ptype [Symbol] the parser type to use. See {parser_type}. + # @return the parser object that was used to parse +content+ + # + # source://yard//lib/yard/parser/source_parser.rb#123 + def parse_string(content, ptype = T.unsafe(nil)); end + + # @return [Symbol] the default parser type (defaults to :ruby) + # + # source://yard//lib/yard/parser/source_parser.rb#86 + def parser_type; end + + # source://yard//lib/yard/parser/source_parser.rb#88 + def parser_type=(value); end + + # @private + # @return [Hash] a list of registered parser type extensions + # @since 0.5.6 + # + # source://yard//lib/yard/parser/source_parser.rb#163 + def parser_type_extensions; end + + # source://yard//lib/yard/parser/source_parser.rb#164 + def parser_type_extensions=(value); end + + # Finds a parser type that is registered for the extension. If no + # type is found, the default Ruby type is returned. + # + # @return [Symbol] the parser type to be used for the extension + # @since 0.5.6 + # + # source://yard//lib/yard/parser/source_parser.rb#171 + def parser_type_for_extension(extension); end + + # @private + # @return [Hash{Symbol=>Object}] a list of registered parser types + # @since 0.5.6 + # + # source://yard//lib/yard/parser/source_parser.rb#157 + def parser_types; end + + # source://yard//lib/yard/parser/source_parser.rb#158 + def parser_types=(value); end + + # Registers a new parser type. + # + # @example Registering a parser for "java" files + # SourceParser.register_parser_type :java, JavaParser, 'java' + # @param type [Symbol] a symbolic name for the parser type + # @param parser_klass [Base] a class that implements parsing and tokenization + # @param extensions [Array<String>, String, Regexp] a list of extensions or a + # regex to match against the file extension + # @return [void] + # @see Parser::Base + # + # source://yard//lib/yard/parser/source_parser.rb#146 + def register_parser_type(type, parser_klass, extensions = T.unsafe(nil)); end + + # Tokenizes but does not parse the block of code + # + # @param content [String] the block of code to tokenize + # @param ptype [Symbol] the parser type to use. See {parser_type}. + # @return [Array] a list of tokens + # + # source://yard//lib/yard/parser/source_parser.rb#132 + def tokenize(content, ptype = T.unsafe(nil)); end + + # Returns the validated parser type. Basically, enforces that :ruby + # type is never set if the Ripper library is not available + # + # @param type [Symbol] the parser type to set + # @private + # @return [Symbol] the validated parser type + # + # source://yard//lib/yard/parser/source_parser.rb#184 + def validated_parser_type(type); end + + private + + # Parses a list of files in a queue. + # + # @param files [Array<String>] a list of files to queue for parsing + # @return [void] + # + # source://yard//lib/yard/parser/source_parser.rb#364 + def parse_in_order(*files); end + end +end + +# The default glob of files to be parsed. +# +# @since 0.9.0 +# +# source://yard//lib/yard/parser/source_parser.rb#71 +YARD::Parser::SourceParser::DEFAULT_PATH_GLOB = T.let(T.unsafe(nil), Array) + +# Byte order marks for various encodings +# +# @since 0.7.0 +# +# source://yard//lib/yard/parser/source_parser.rb#75 +YARD::Parser::SourceParser::ENCODING_BYTE_ORDER_MARKS = T.let(T.unsafe(nil), Hash) + +# source://yard//lib/yard/parser/source_parser.rb#66 +YARD::Parser::SourceParser::ENCODING_LINE = T.let(T.unsafe(nil), Regexp) + +# source://yard//lib/yard/parser/source_parser.rb#67 +YARD::Parser::SourceParser::FROZEN_STRING_LINE = T.let(T.unsafe(nil), Regexp) + +# source://yard//lib/yard/parser/source_parser.rb#65 +YARD::Parser::SourceParser::SHEBANG_LINE = T.let(T.unsafe(nil), Regexp) + +# Raised when an object is recognized but cannot be documented. This +# generally occurs when the Ruby syntax used to declare an object is +# too dynamic in nature. +# +# source://yard//lib/yard/parser/source_parser.rb#10 +class YARD::Parser::UndocumentableError < ::RuntimeError; end + +# The root path for YARD source libraries +# +# source://yard//lib/yard.rb#4 +YARD::ROOT = T.let(T.unsafe(nil), String) + +# Holds Rake tasks used by YARD +# +# source://yard//lib/yard/autoload.rb#192 +module YARD::Rake; end + +# The rake task to run {CLI::Yardoc} and generate documentation. +# +# source://yard//lib/yard/rake/yardoc_task.rb#8 +class YARD::Rake::YardocTask < ::Rake::TaskLib + # Creates a new task with name +name+. + # + # @param name [String, Symbol] the name of the rake task + # @return [YardocTask] a new instance of YardocTask + # @yield a block to allow any options to be modified on the task + # @yieldparam _self [YardocTask] the task object to allow any parameters + # to be changed. + # + # source://yard//lib/yard/rake/yardoc_task.rb#50 + def initialize(name = T.unsafe(nil)); end + + # Runs a +Proc+ after the task + # + # @return [Proc] a proc to call after running the task + # + # source://yard//lib/yard/rake/yardoc_task.rb#36 + def after; end + + # Runs a +Proc+ after the task + # + # @return [Proc] a proc to call after running the task + # + # source://yard//lib/yard/rake/yardoc_task.rb#36 + def after=(_arg0); end + + # Runs a +Proc+ before the task + # + # @return [Proc] a proc to call before running the task + # + # source://yard//lib/yard/rake/yardoc_task.rb#32 + def before; end + + # Runs a +Proc+ before the task + # + # @return [Proc] a proc to call before running the task + # + # source://yard//lib/yard/rake/yardoc_task.rb#32 + def before=(_arg0); end + + # The Ruby source files (and any extra documentation files separated by '-') + # to process. + # + # @example Task files assignment + # YARD::Rake::YardocTask.new do |t| + # t.files = ['app/**/*.rb', 'lib/**/*.rb', '-', 'doc/FAQ.md', 'doc/Changes.md'] + # end + # @return [Array<String>] a list of files + # + # source://yard//lib/yard/rake/yardoc_task.rb#28 + def files; end + + # The Ruby source files (and any extra documentation files separated by '-') + # to process. + # + # @example Task files assignment + # YARD::Rake::YardocTask.new do |t| + # t.files = ['app/**/*.rb', 'lib/**/*.rb', '-', 'doc/FAQ.md', 'doc/Changes.md'] + # end + # @return [Array<String>] a list of files + # + # source://yard//lib/yard/rake/yardoc_task.rb#28 + def files=(_arg0); end + + # The name of the task + # + # @return [String] the task name + # + # source://yard//lib/yard/rake/yardoc_task.rb#11 + def name; end + + # The name of the task + # + # @return [String] the task name + # + # source://yard//lib/yard/rake/yardoc_task.rb#11 + def name=(_arg0); end + + # Options to pass to {CLI::Yardoc} + # + # @return [Array<String>] the options passed to the commandline utility + # + # source://yard//lib/yard/rake/yardoc_task.rb#15 + def options; end + + # Options to pass to {CLI::Yardoc} + # + # @return [Array<String>] the options passed to the commandline utility + # + # source://yard//lib/yard/rake/yardoc_task.rb#15 + def options=(_arg0); end + + # Options to pass to {CLI::Stats} + # + # @return [Array<String>] the options passed to the stats utility + # + # source://yard//lib/yard/rake/yardoc_task.rb#19 + def stats_options; end + + # Options to pass to {CLI::Stats} + # + # @return [Array<String>] the options passed to the stats utility + # + # source://yard//lib/yard/rake/yardoc_task.rb#19 + def stats_options=(_arg0); end + + # @return [Verifier, Proc] an optional {Verifier} to run against all objects + # being generated. Any object that the verifier returns false for will be + # excluded from documentation. This attribute can also be a lambda. + # @see Verifier + # + # source://yard//lib/yard/rake/yardoc_task.rb#42 + def verifier; end + + # @return [Verifier, Proc] an optional {Verifier} to run against all objects + # being generated. Any object that the verifier returns false for will be + # excluded from documentation. This attribute can also be a lambda. + # @see Verifier + # + # source://yard//lib/yard/rake/yardoc_task.rb#42 + def verifier=(_arg0); end + + protected + + # Defines the rake task + # + # @return [void] + # + # source://yard//lib/yard/rake/yardoc_task.rb#68 + def define; end +end + +# The +Registry+ is the centralized data store for all {CodeObjects} created +# during parsing. The storage is a key value store with the object's path +# (see {CodeObjects::Base#path}) as the key and the object itself as the value. +# Object paths must be unique to be stored in the Registry. All lookups for +# objects are done on the singleton Registry instance using the {Registry.at} +# or {Registry.resolve} methods. +# +# == Saving / Loading a Registry +# The registry is saved to a "yardoc file" (actually a directory), which can +# be loaded back to perform any lookups. See {Registry.load!} and +# {Registry.save} for information on saving and loading of a yardoc file. +# +# == Threading Notes +# The registry class is a singleton class that is accessed directly in many +# places across YARD. To mitigate threading issues, YARD (0.6.5+) makes +# the Registry thread local. This means all access to a registry for a specific +# object set must occur in the originating thread. +# +# @example Loading the Registry +# Registry.load!('/path/to/yardocfile') # loads all objects into memory +# Registry.at('YARD::CodeObjects::Base').docstring +# # => "+Base+ is the superclass of all code objects ..." +# @example Getting an object by a specific path +# Registry.at('YARD::CodeObjects::Base#docstring') +# @example Performing a lookup on a method anywhere in the inheritance tree +# Registry.resolve(P('YARD::CodeObjects::Base'), '#docstring', true) +# +# source://yard//lib/yard/registry.rb#32 +module YARD::Registry + extend ::Enumerable + + class << self + # Returns the object at a specific path. + # + # @param path [String, :root] the pathname to look for. If +path+ is +root+, + # returns the {root} object. + # @return [CodeObjects::Base] the object at path + # @return [nil] if no object is found + # + # source://yard//lib/yard/registry.rb#261 + def [](path); end + + # Returns all objects in the registry that match one of the types provided + # in the +types+ list (if +types+ is provided). + # + # @example Returns all objects + # Registry.all + # @example Returns all classes and modules + # Registry.all(:class, :module) + # @param types [Array<Symbol>] an optional list of types to narrow the + # objects down by. Equivalent to performing a select: + # +Registry.all.select {|o| types.include(o.type) }+ + # @return [Array<CodeObjects::Base>] the list of objects found + # @see CodeObjects::Base#type + # + # source://yard//lib/yard/registry.rb#237 + def all(*types); end + + # Returns the object at a specific path. + # + # @param path [String, :root] the pathname to look for. If +path+ is +root+, + # returns the {root} object. + # @return [CodeObjects::Base] the object at path + # @return [nil] if no object is found + # + # source://yard//lib/yard/registry.rb#261 + def at(path); end + + # @param data [String] data to checksum + # @return [String] the SHA1 checksum for data + # + # source://yard//lib/yard/registry.rb#318 + def checksum_for(data); end + + # @return [Hash{String => String}] a set of checksums for files + # + # source://yard//lib/yard/registry.rb#312 + def checksums; end + + # Clears the registry + # + # @return [void] + # + # source://yard//lib/yard/registry.rb#200 + def clear; end + + # Deletes an object from the registry + # + # @param object [CodeObjects::Base] the object to remove + # @return [void] + # + # source://yard//lib/yard/registry.rb#194 + def delete(object); end + + # Deletes the yardoc file from disk + # + # @return [void] + # + # source://yard//lib/yard/registry.rb#176 + def delete_from_disk; end + + # Iterates over {all} with no arguments + # + # source://yard//lib/yard/registry.rb#221 + def each(&block); end + + # The registry singleton instance. + # + # @deprecated use Registry.methodname directly. + # @return [Registry] returns the registry instance + # + # source://yard//lib/yard/registry.rb#363 + def instance; end + + # Loads the registry and/or parses a list of files + # + # @example Loads the yardoc file or parses files 'a', 'b' and 'c' (but not both) + # Registry.load(['a', 'b', 'c']) + # @example Reparses files 'a' and 'b' regardless of whether yardoc file exists + # Registry.load(['a', 'b'], true) + # @param files [String, Array] if +files+ is an Array, it should represent + # a list of files that YARD should parse into the registry. If reload is + # set to false and the yardoc file already exists, these files are skipped. + # If files is a String, it should represent the yardoc file to load + # into the registry. + # @param reparse [Boolean] if reparse is false and a yardoc file already + # exists, any files passed in will be ignored. + # @raise [ArgumentError] if files is not a String or Array + # @return [Registry] the registry object (for chaining) + # + # source://yard//lib/yard/registry.rb#109 + def load(files = T.unsafe(nil), reparse = T.unsafe(nil)); end + + # Loads a yardoc file and forces all objects cached on disk into + # memory. Equivalent to calling {load_yardoc} followed by {load_all} + # + # @param file [String] the yardoc file to load + # @return [Registry] the registry object (for chaining) + # @see #load_yardoc + # @see #load_all + # @since 0.5.1 + # + # source://yard//lib/yard/registry.rb#144 + def load!(file = T.unsafe(nil)); end + + # Forces all objects cached on disk into memory + # + # @example Loads all objects from disk + # Registry.load + # Registry.all.count #=> 0 + # Registry.load_all + # Registry.all.count #=> 17 + # @return [Registry] the registry object (for chaining) + # @since 0.5.1 + # + # source://yard//lib/yard/registry.rb#159 + def load_all; end + + # Loads a yardoc file directly + # + # @param file [String] the yardoc file to load. + # @return [Registry] the registry object (for chaining) + # + # source://yard//lib/yard/registry.rb#130 + def load_yardoc(file = T.unsafe(nil)); end + + # @param name [String] the locale name. + # @return [I18n::Locale] the locale object for +name+. + # @since 0.8.3 + # + # source://yard//lib/yard/registry.rb#271 + def locale(name); end + + # Creates a pessmistic transactional lock on the database for writing. + # Use with {YARD.parse} to ensure the database is not written multiple + # times. + # + # @see locked_for_writing? + # + # source://yard//lib/yard/registry.rb#209 + def lock_for_writing(file = T.unsafe(nil), &block); end + + # @return [Boolean] whether the database is currently locked for writing + # + # source://yard//lib/yard/registry.rb#214 + def locked_for_writing?(file = T.unsafe(nil)); end + + # Returns the paths of all of the objects in the registry. + # + # @param reload [Boolean] whether to load entire database + # @return [Array<String>] all of the paths in the registry. + # + # source://yard//lib/yard/registry.rb#252 + def paths(reload = T.unsafe(nil)); end + + # Gets/sets the directory that has LANG.po files + # + # @return [String] the directory that has .po files + # + # source://yard//lib/yard/registry.rb#353 + def po_dir; end + + # Gets/sets the directory that has LANG.po files + # + # @return [String] the directory that has .po files + # + # source://yard//lib/yard/registry.rb#351 + def po_dir=(dir); end + + # The assumed types of a list of paths. This method is used by CodeObjects::Base + # + # @deprecated The registry no longer globally tracks proxy types. + # @private + # @return [{String => Symbol}] a set of unresolved paths and their assumed type + # + # source://yard//lib/yard/registry.rb#341 + def proxy_types; end + + # Registers a new object with the registry + # + # @param object [CodeObjects::Base] the object to register + # @return [CodeObjects::Base] the registered object + # + # source://yard//lib/yard/registry.rb#186 + def register(object); end + + # Attempts to find an object by name starting at +namespace+, performing + # a lookup similar to Ruby's method of resolving a constant in a namespace. + # + # @example Looks for instance method #reverse starting from A::B::C + # Registry.resolve(P("A::B::C"), "#reverse") + # @example Looks for a constant in the root namespace + # Registry.resolve(nil, 'CONSTANT') + # @example Looks for a class method respecting the inheritance tree + # Registry.resolve(myclass, 'mymethod', true) + # @example Looks for a constant but returns a proxy if not found + # Registry.resolve(P('A::B::C'), 'D', false, true) # => #<yardoc proxy A::B::C::D> + # @example Looks for a complex path from a namespace + # Registry.resolve(P('A::B'), 'B::D') # => #<yardoc class A::B::D> + # @param namespace [CodeObjects::NamespaceObject, nil] the starting namespace + # (module or class). If +nil+ or +:root+, starts from the {root} object. + # @param name [String, Symbol] the name (or complex path) to look for from + # +namespace+. + # @param inheritance [Boolean] Follows inheritance chain (mixins, superclass) + # when performing name resolution if set to +true+. + # @param proxy_fallback [Boolean] If +true+, returns a proxy representing + # the unresolved path (namespace + name) if no object is found. + # @param type [Symbol, nil] the {CodeObjects::Base#type} that the resolved + # object must be equal to. No type checking if nil. + # @return [CodeObjects::Base] the object if it is found + # @return [CodeObjects::Proxy] a Proxy representing the object if + # +proxy_fallback+ is +true+. + # @return [nil] if +proxy_fallback+ is +false+ and no object was found. + # @see P + # + # source://yard//lib/yard/registry.rb#303 + def resolve(namespace, name, inheritance = T.unsafe(nil), proxy_fallback = T.unsafe(nil), type = T.unsafe(nil)); end + + # The root namespace object. + # + # @return [CodeObjects::RootObject] the root object in the namespace + # + # source://yard//lib/yard/registry.rb#266 + def root; end + + # Saves the registry to +file+ + # + # @param file [String] the yardoc file to save to + # @return [Boolean] true if the file was saved + # + # source://yard//lib/yard/registry.rb#170 + def save(merge = T.unsafe(nil), file = T.unsafe(nil)); end + + # Whether or not the Registry storage should load everything into a + # single object database (for disk efficiency), or spread them out + # (for load time efficiency). + # + # @note Setting this attribute to nil will offload the decision to + # the {RegistryStore storage adapter}. + # @return [Boolean, nil] if this value is set to nil, the storage + # adapter will decide how to store the data. + # + # source://yard//lib/yard/registry.rb#335 + def single_object_db; end + + # Whether or not the Registry storage should load everything into a + # single object database (for disk efficiency), or spread them out + # (for load time efficiency). + # + # @note Setting this attribute to nil will offload the decision to + # the {RegistryStore storage adapter}. + # @return [Boolean, nil] if this value is set to nil, the storage + # adapter will decide how to store the data. + # + # source://yard//lib/yard/registry.rb#334 + def single_object_db=(v); end + + # Gets/sets the yardoc filename + # + # @return [String] the yardoc filename + # @see DEFAULT_YARDOC_FILE + # + # source://yard//lib/yard/registry.rb#88 + def yardoc_file; end + + # Gets/sets the yardoc filename + # + # @return [String] the yardoc filename + # @see DEFAULT_YARDOC_FILE + # + # source://yard//lib/yard/registry.rb#86 + def yardoc_file=(v); end + + # Returns the .yardoc file associated with a gem. + # + # @param gem [String] the name of the gem to search for + # @param ver_require [String] an optional Gem version requirement + # @param for_writing [Boolean] whether or not the method should search + # for writable locations + # @return [String] if +for_writing+ is set to +true+, returns the best + # location suitable to write the .yardoc file. Otherwise, the first + # existing location associated with the gem's .yardoc file. + # @return [nil] if +for_writing+ is set to false and no yardoc file + # is found, returns nil. + # + # source://yard//lib/yard/registry.rb#53 + def yardoc_file_for_gem(gem, ver_require = T.unsafe(nil), for_writing = T.unsafe(nil)); end + + private + + # source://yard//lib/yard/registry.rb#390 + def global_yardoc_file(spec, for_writing = T.unsafe(nil)); end + + # source://yard//lib/yard/registry.rb#410 + def local_yardoc_file(spec, for_writing = T.unsafe(nil)); end + + # source://yard//lib/yard/registry.rb#403 + def old_global_yardoc_file(spec, for_writing = T.unsafe(nil)); end + + # Attempts to resolve a name in a namespace + # + # @param namespace [CodeObjects::NamespaceObject] the starting namespace + # @param name [String] the name to look for + # @param type [Symbol, nil] the {CodeObjects::Base#type} that the resolved + # object must be equal to + # + # source://yard//lib/yard/registry.rb#375 + def partial_resolve(namespace, name, type = T.unsafe(nil)); end + + # @since 0.9.1 + # + # source://yard//lib/yard/registry.rb#434 + def thread_local_resolver; end + + # @since 0.6.5 + # + # source://yard//lib/yard/registry.rb#424 + def thread_local_store; end + + # @since 0.6.5 + # + # source://yard//lib/yard/registry.rb#429 + def thread_local_store=(value); end + end +end + +# source://yard//lib/yard/registry.rb#35 +YARD::Registry::DEFAULT_PO_DIR = T.let(T.unsafe(nil), String) + +# source://yard//lib/yard/registry.rb#33 +YARD::Registry::DEFAULT_YARDOC_FILE = T.let(T.unsafe(nil), String) + +# source://yard//lib/yard/registry.rb#34 +YARD::Registry::LOCAL_YARDOC_INDEX = T.let(T.unsafe(nil), String) + +# Handles all logic for complex lexical and inherited object resolution. +# Used by {Registry.resolve}, so there is no need to use this class +# directly. +# +# @see Registry.resolve +# @since 0.9.1 +# +# source://yard//lib/yard/registry_resolver.rb#9 +class YARD::RegistryResolver + include ::YARD::CodeObjects::NamespaceMapper + + # Creates a new resolver object for a registry. + # + # @param registry [Registry] only set this if customizing the registry + # object + # @return [RegistryResolver] a new instance of RegistryResolver + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#16 + def initialize(registry = T.unsafe(nil)); end + + # Performs a lookup on a given path in the registry. Resolution will occur + # in a similar way to standard Ruby identifier resolution, doing lexical + # lookup, as well as (optionally) through the inheritance chain. A proxy + # object can be returned if the lookup fails for future resolution. The + # proxy will be type hinted with the +type+ used in the original lookup. + # + # @example A lookup from root + # resolver.lookup_by_path("A::B::C") + # @example A lookup from the A::B namespace + # resolver.lookup_by_path("C", namespace: P("A::B")) + # @example A lookup on a method through the inheritance tree + # resolver.lookup_by_math("A::B#foo", inheritance: true) + # @option opts + # @option opts + # @option opts + # @option opts + # @param opts [Hash] a customizable set of options + # @return [CodeObjects::Base, CodeObjects::Proxy, nil] the first object + # that matches the path lookup. If proxy_fallback is provided, a proxy + # object will be returned in the event of no match, otherwise nil will + # be returned. + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#50 + def lookup_by_path(path, opts = T.unsafe(nil)); end + + private + + # Collects and returns all inherited namespaces for a given object + # + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#181 + def collect_namespaces(object); end + + # Performs a lexical lookup from a namespace for a path and a type hint. + # + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#104 + def lookup_path_direct(namespace, path, type); end + + # Performs a lookup through the inheritance chain on a path with a type hint. + # + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#121 + def lookup_path_inherited(namespace, path, type); end + + # @return [Regexp] the regexp that can be used to split a string on all + # occurrences of separator tokens + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#206 + def split_on_separators_match; end + + # @return [Regexp] the regexp match of the default separator + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#194 + def starts_with_default_separator_match; end + + # @return [Regexp] the regexp that matches strings starting with + # a separator + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#200 + def starts_with_separator_match; end + + # return [Boolean] if the obj's type matches the provided type. + # + # @since 0.9.1 + # + # source://yard//lib/yard/registry_resolver.rb#99 + def validate(obj, type); end +end + +# The data store for the {Registry}. +# +# @see Registry +# @see Serializers::YardocSerializer +# +# source://yard//lib/yard/registry_store.rb#9 +class YARD::RegistryStore + # @return [RegistryStore] a new instance of RegistryStore + # + # source://yard//lib/yard/registry_store.rb#14 + def initialize; end + + # Gets a {CodeObjects::Base} from the store + # + # @param key [String, Symbol] the path name of the object to look for. + # If it is empty or :root, returns the {#root} object. + # @return [CodeObjects::Base, nil] a code object or nil if none is found + # + # source://yard//lib/yard/registry_store.rb#33 + def [](key); end + + # Associates an object with a path + # + # @param key [String, Symbol] the path name (:root or '' for root object) + # @param value [CodeObjects::Base] the object to store + # @return [CodeObjects::Base] returns +value+ + # + # source://yard//lib/yard/registry_store.rb#55 + def []=(key, value); end + + # Returns the value of attribute checksums. + # + # source://yard//lib/yard/registry_store.rb#12 + def checksums; end + + # Deletes an object at a given path + # + # @param key [#to_sym] the key to delete + # @return [void] + # + # source://yard//lib/yard/registry_store.rb#75 + def delete(key); end + + # Deletes the .yardoc database on disk + # + # @param force [Boolean] if force is not set to true, the file/directory + # will only be removed if it ends with .yardoc. This helps with + # cases where the directory might have been named incorrectly. + # @return [Boolean] true if the .yardoc database was deleted, false + # otherwise. + # + # source://yard//lib/yard/registry_store.rb#218 + def destroy(force = T.unsafe(nil)); end + + # Returns the value of attribute file. + # + # source://yard//lib/yard/registry_store.rb#12 + def file; end + + # Gets a {CodeObjects::Base} from the store + # + # @param key [String, Symbol] the path name of the object to look for. + # If it is empty or :root, returns the {#root} object. + # @return [CodeObjects::Base, nil] a code object or nil if none is found + # + # source://yard//lib/yard/registry_store.rb#33 + def get(key); end + + # Gets all path names from the store. Loads the entire database + # if +reload+ is +true+ + # + # @param reload [Boolean] if false, does not load the entire database + # before a lookup. + # @return [Array<Symbol>] the path names of all the code objects + # + # source://yard//lib/yard/registry_store.rb#88 + def keys(reload = T.unsafe(nil)); end + + # @param file [String, nil] the name of the yardoc db to load + # @return [Boolean] whether the database was loaded + # + # source://yard//lib/yard/registry_store.rb#128 + def load(file = T.unsafe(nil)); end + + # Loads the .yardoc file and loads all cached objects into memory + # automatically. + # + # @param file [String, nil] the name of the yardoc db to load + # @return [Boolean] whether the database was loaded + # @see #load_all + # @since 0.5.1 + # + # source://yard//lib/yard/registry_store.rb#142 + def load!(file = T.unsafe(nil)); end + + # Loads all cached objects into memory + # + # @return [void] + # + # source://yard//lib/yard/registry_store.rb#153 + def load_all; end + + # @param name [String] the locale name. + # @return [I18n::Locale] the locale object for +name+. + # @since 0.8.3 + # + # source://yard//lib/yard/registry_store.rb#122 + def locale(name); end + + # Creates a pessmistic transactional lock on the database for writing. + # Use with {YARD.parse} to ensure the database is not written multiple + # times. + # + # @param file [String] if supplied, the path to the database + # @see #locked_for_writing? + # + # source://yard//lib/yard/registry_store.rb#201 + def lock_for_writing(file = T.unsafe(nil), &block); end + + # @param file [String] if supplied, the path to the database + # @return [Boolean] whether the database is currently locked for writing + # + # source://yard//lib/yard/registry_store.rb#207 + def locked_for_writing?(file = T.unsafe(nil)); end + + # @param type [Symbol] the type to look for + # @return [Array<String>] a list of object paths with a given + # {CodeObjects::Base#type} + # @since 0.8.0 + # + # source://yard//lib/yard/registry_store.rb#102 + def paths_for_type(type, reload = T.unsafe(nil)); end + + # @deprecated The registry no longer tracks proxy types + # + # source://yard//lib/yard/registry_store.rb#11 + def proxy_types; end + + # Associates an object with a path + # + # @param key [String, Symbol] the path name (:root or '' for root object) + # @param value [CodeObjects::Base] the object to store + # @return [CodeObjects::Base] returns +value+ + # + # source://yard//lib/yard/registry_store.rb#55 + def put(key, value); end + + # @return [CodeObjects::RootObject] the root object + # + # source://yard//lib/yard/registry_store.rb#117 + def root; end + + # Saves the database to disk + # + # @param merge [Boolean] if true, merges the data in memory with the + # data on disk, otherwise the data on disk is deleted. + # @param file [String, nil] if supplied, the name of the file to save to + # @return [Boolean] whether the database was saved + # + # source://yard//lib/yard/registry_store.rb#177 + def save(merge = T.unsafe(nil), file = T.unsafe(nil)); end + + # Gets all code objects from the store. Loads the entire database + # if +reload+ is +true+ + # + # @param reload [Boolean] if false, does not load the entire database + # before a lookup. + # @return [Array<CodeObjects::Base>] all the code objects + # + # source://yard//lib/yard/registry_store.rb#96 + def values(reload = T.unsafe(nil)); end + + # @param type [Symbol] the type to look for + # @return [Array<CodeObjects::Base>] a list of objects with a given + # {CodeObjects::Base#type} + # @since 0.8.0 + # + # source://yard//lib/yard/registry_store.rb#111 + def values_for_type(type, reload = T.unsafe(nil)); end + + protected + + # source://yard//lib/yard/registry_store.rb#243 + def checksums_path; end + + # source://yard//lib/yard/registry_store.rb#251 + def load_yardoc; end + + # source://yard//lib/yard/registry_store.rb#247 + def object_types_path; end + + # source://yard//lib/yard/registry_store.rb#234 + def objects_path; end + + # @deprecated The registry no longer tracks proxy types + # + # source://yard//lib/yard/registry_store.rb#239 + def proxy_types_path; end + + private + + # source://yard//lib/yard/registry_store.rb#319 + def all_disk_objects; end + + # source://yard//lib/yard/registry_store.rb#291 + def load_checksums; end + + # source://yard//lib/yard/registry_store.rb#313 + def load_locale(name); end + + # source://yard//lib/yard/registry_store.rb#281 + def load_object_types; end + + # @deprecated The registry no longer tracks proxy types + # + # source://yard//lib/yard/registry_store.rb#276 + def load_proxy_types; end + + # source://yard//lib/yard/registry_store.rb#299 + def load_root; end + + # source://yard//lib/yard/registry_store.rb#271 + def load_yardoc_old; end + + # source://yard//lib/yard/registry_store.rb#332 + def write_checksums; end + + # source://yard//lib/yard/registry_store.rb#338 + def write_complete_lock; end + + # source://yard//lib/yard/registry_store.rb#328 + def write_object_types; end + + # @deprecated The registry no longer tracks proxy types + # + # source://yard//lib/yard/registry_store.rb#324 + def write_proxy_types; end +end + +# Namespace for components that serialize to various endpoints +# +# source://yard//lib/yard/autoload.rb#196 +module YARD::Serializers; end + +# The abstract base serializer. Serializers allow templates to be +# rendered to various endpoints. For instance, a {FileSystemSerializer} +# would allow template contents to be written to the filesystem +# +# To implement a custom serializer, override the following methods: +# * {#serialize} +# * {#serialized_path} +# +# Optionally, a serializer can implement before and after filters: +# * {#before_serialize} +# * {#after_serialize} +# +# @abstract Override this class to implement a custom serializer. +# +# source://yard//lib/yard/serializers/base.rb#17 +class YARD::Serializers::Base + # Creates a new serializer with options + # + # @param opts [Hash] the options to assign to {#options} + # @return [Base] a new instance of Base + # + # source://yard//lib/yard/serializers/base.rb#28 + def initialize(opts = T.unsafe(nil)); end + + # Called after serialization. + # + # @abstract Should run code after serialization. + # @param data [String] the data that was serialized. + # @return [void] + # + # source://yard//lib/yard/serializers/base.rb#80 + def after_serialize(data); end + + # Called before serialization. + # + # @abstract Should run code before serialization. Should return false + # if serialization should not occur. + # @return [Boolean] whether or not serialization should occur + # + # source://yard//lib/yard/serializers/base.rb#73 + def before_serialize; end + + # Returns whether an object has been serialized + # + # @abstract This method should return whether the endpoint already exists. + # For instance, a file system serializer would check if the file exists + # on disk. You will most likely use +#basepath+ and {#serialized_path} to + # get the endpoint's location. + # @param object [CodeObjects::Base] the object to check existence of + # @return [Boolean] whether the endpoint exists. + # @since 0.6.0 + # + # source://yard//lib/yard/serializers/base.rb#62 + def exists?(object); end + + # All serializer options are saved so they can be passed to other serializers. + # + # @return [SymbolHash] the serializer options + # + # source://yard//lib/yard/serializers/base.rb#21 + def options; end + + # Serializes an object. + # + # @abstract This method should implement the logic that serializes + # +data+ to the respective endpoint. This method should also call + # the before and after callbacks {#before_serialize} and {#after_serialize} + # @param object [CodeObjects::Base, String] the object to serialize the + # data for. The object can also be a string (for non-object serialization) + # @param data [String] the contents that should be serialized + # + # source://yard//lib/yard/serializers/base.rb#42 + def serialize(object, data); end + + # The serialized path of an object + # + # @abstract This method should return the path of the object on the + # endpoint. For instance, for a file serializer, this should return + # the filename that represents the object on disk. + # @param object [CodeObjects::Base] the object to return a path for + # @return [String] the serialized path of an object + # + # source://yard//lib/yard/serializers/base.rb#51 + def serialized_path(object); end +end + +# Implements a serializer that reads from and writes to the filesystem. +# +# source://yard//lib/yard/serializers/file_system_serializer.rb#5 +class YARD::Serializers::FileSystemSerializer < ::YARD::Serializers::Base + # Creates a new FileSystemSerializer with options + # + # @option opts + # @option opts + # @param opts [Hash] a customizable set of options + # @return [FileSystemSerializer] a new instance of FileSystemSerializer + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#28 + def initialize(opts = T.unsafe(nil)); end + + # The base path to write data to. + # + # @return [String] a base path + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#8 + def basepath; end + + # source://yard//lib/yard/serializers/file_system_serializer.rb#10 + def basepath=(value); end + + # Checks the disk for an object and returns whether it was serialized. + # + # @param object [CodeObjects::Base] the object to check + # @return [Boolean] whether an object has been serialized to disk + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#71 + def exists?(object); end + + # The extension of the filename (defaults to +html+) + # + # @return [String] the extension of the file. Empty string for no extension. + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#17 + def extension; end + + # source://yard//lib/yard/serializers/file_system_serializer.rb#19 + def extension=(value); end + + # Serializes object with data to its serialized path (prefixed by the +#basepath+). + # + # @return [String] the written data (for chaining) + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#38 + def serialize(object, data); end + + # Implements the serialized path of a code object. + # + # @param object [CodeObjects::Base, CodeObjects::ExtraFileObject, String] the object to get a path for. The path of a string is the string itself. + # @return [String] if object is a String, returns + # object, otherwise the path on disk (without the basepath). + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#50 + def serialized_path(object); end + + private + + # Builds a filename mapping from object paths to filesystem path names. + # Needed to handle case sensitive YARD objects mapped into a case + # insensitive filesystem. Uses with {#mapped_name} to determine the + # mapping name for a given object. + # + # @note In order to use filesystem name mapping, you must initialize + # the serializer object after preparing the {YARD::Registry}. + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#84 + def build_filename_map; end + + # Remove special chars from filenames. + # Windows disallows \ / : * ? " < > | but we will just remove any + # non alphanumeric (plus period, underscore and dash). + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#111 + def encode_path_components(*components); end + + # @return [String] the filesystem mapped name of a given object. + # + # source://yard//lib/yard/serializers/file_system_serializer.rb#102 + def mapped_name(object); end +end + +# Serializes an object to a process (like less) +# +# @example Serializing to a pager (less) +# serializer = ProcessSerializer.new('less') +# serializer.serialize(object, "data!") +# +# source://yard//lib/yard/serializers/process_serializer.rb#9 +class YARD::Serializers::ProcessSerializer < ::YARD::Serializers::Base + # Creates a new ProcessSerializer for the shell command +cmd+ + # + # @param cmd [String] the command that will accept data on stdin + # @return [ProcessSerializer] a new instance of ProcessSerializer + # + # source://yard//lib/yard/serializers/process_serializer.rb#13 + def initialize(cmd); end + + # Overrides serialize behaviour and writes data to standard input + # of the associated command + # + # source://yard//lib/yard/serializers/process_serializer.rb#19 + def serialize(_object, data); end +end + +# A serializer that writes data to standard output. +# +# source://yard//lib/yard/serializers/stdout_serializer.rb#5 +class YARD::Serializers::StdoutSerializer < ::YARD::Serializers::Base + # Creates a serializer to print text to stdout + # + # @param wrap [Fixnum, nil] if wrap is a number, wraps text to +wrap+ + # columns, otherwise no wrapping is done. + # @return [StdoutSerializer] a new instance of StdoutSerializer + # + # source://yard//lib/yard/serializers/stdout_serializer.rb#10 + def initialize(wrap = T.unsafe(nil)); end + + # Overrides serialize behaviour to write data to standard output + # + # source://yard//lib/yard/serializers/stdout_serializer.rb#15 + def serialize(_object, data); end + + private + + # Wraps text to a specific column length + # + # @param text [String] the text to wrap + # @param _length [Fixnum] the column length to wrap to + # @return [String] the wrapped text + # + # source://yard//lib/yard/serializers/stdout_serializer.rb#26 + def word_wrap(text, _length = T.unsafe(nil)); end +end + +# source://yard//lib/yard/serializers/yardoc_serializer.rb#32 +class YARD::Serializers::YardocSerializer < ::YARD::Serializers::FileSystemSerializer + # @return [YardocSerializer] a new instance of YardocSerializer + # + # source://yard//lib/yard/serializers/yardoc_serializer.rb#33 + def initialize(yfile); end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#40 + def checksums_path; end + + # @return [Boolean] + # + # source://yard//lib/yard/serializers/yardoc_serializer.rb#45 + def complete?; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#42 + def complete_lock_path; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#101 + def deserialize(path, is_path = T.unsafe(nil)); end + + # Creates a pessmistic transactional lock on the database for writing. + # Use with {YARD.parse} to ensure the database is not written multiple + # times. + # + # @see #locked_for_writing? + # + # source://yard//lib/yard/serializers/yardoc_serializer.rb#54 + def lock_for_writing; end + + # @return [Boolean] whether the database is currently locked for writing + # + # source://yard//lib/yard/serializers/yardoc_serializer.rb#62 + def locked_for_writing?; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#41 + def object_types_path; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#37 + def objects_path; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#43 + def processing_path; end + + # @deprecated The registry no longer tracks proxy types + # + # source://yard//lib/yard/serializers/yardoc_serializer.rb#39 + def proxy_types_path; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#93 + def serialize(object); end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#66 + def serialized_path(object); end + + private + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#114 + def dump(object); end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#119 + def internal_dump(object, first_object = T.unsafe(nil)); end +end + +# Namespace for classes and modules that handle serving documentation over HTTP +# +# == Implementing a Custom Server +# To customize the YARD server, see the {Adapter} and {Router} classes. +# +# == Rack Middleware +# If you want to use the YARD server as a Rack middleware, see the documentation +# in {RackMiddleware}. +# +# @since 0.6.0 +# +# source://yard//lib/yard/autoload.rb#214 +module YARD::Server + class << self + # Registers a static path to be used in static asset lookup. + # + # @param path [String] the pathname to register + # @return [void] + # @since 0.6.2 + # + # source://yard//lib/yard/server.rb#8 + def register_static_path(path); end + end +end + +# This class implements the bridge between the {Router} and the server +# backend for a specific server type. YARD implements concrete adapters +# for WEBrick and Rack respectively, though other adapters can be made +# for other server architectures. +# +# == Subclassing Notes +# To create a concrete adapter class, implement the {#start} method to +# initiate the server backend. +# +# @abstract +# @since 0.6.0 +# +# source://yard//lib/yard/server/adapter.rb#23 +class YARD::Server::Adapter + # Creates a new adapter object + # + # @option opts + # @option opts + # @option opts + # @param libs [Hash{String=>Array<LibraryVersion>}] a list of libraries, + # see {#libraries} for formulating this list. + # @param opts [Hash] extra options to pass to the adapter + # @return [Adapter] a new instance of Adapter + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#71 + def initialize(libs, opts = T.unsafe(nil), server_opts = T.unsafe(nil)); end + + # Adds a library to the {#libraries} mapping for a given library object. + # + # @example Adding a new library to an adapter + # adapter.add_library LibraryVersion.new('mylib', '1.0', '/path/to/.yardoc') + # @param library [LibraryVersion] a library to add + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#88 + def add_library(library); end + + # @return [String] the location where static files are located, if any. + # To set this field on initialization, pass +:DocumentRoot+ to the + # +server_opts+ argument in {#initialize} + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#27 + def document_root; end + + # @return [String] the location where static files are located, if any. + # To set this field on initialization, pass +:DocumentRoot+ to the + # +server_opts+ argument in {#initialize} + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#27 + def document_root=(_arg0); end + + # @return [Hash{String=>Array<LibraryVersion>}] a map of libraries. + # @see LibraryVersion LibraryVersion for information on building a list of libraries + # @see #add_library + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#32 + def libraries; end + + # @return [Hash{String=>Array<LibraryVersion>}] a map of libraries. + # @see LibraryVersion LibraryVersion for information on building a list of libraries + # @see #add_library + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#32 + def libraries=(_arg0); end + + # @return [Hash] options passed and processed by adapters. The actual + # options mostly depend on the adapters themselves. + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#36 + def options; end + + # @return [Hash] options passed and processed by adapters. The actual + # options mostly depend on the adapters themselves. + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#36 + def options=(_arg0); end + + # @return [Router] the router object used to route URLs to commands + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#43 + def router; end + + # @return [Router] the router object used to route URLs to commands + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#43 + def router=(_arg0); end + + # @return [Hash] a set of options to pass to the server backend. Note + # that +:DocumentRoot+ also sets the {#document_root}. + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#40 + def server_options; end + + # @return [Hash] a set of options to pass to the server backend. Note + # that +:DocumentRoot+ also sets the {#document_root}. + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#40 + def server_options=(_arg0); end + + # Implement this method to connect your adapter to your server. + # + # @abstract + # @raise [NotImplementedError] + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#95 + def start; end + + class << self + # Performs any global initialization for the adapter. + # + # @note If you subclass this method, make sure to call +super+. + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#48 + def setup; end + + # Performs any global shutdown procedures for the adapter. + # + # @note If you subclass this method, make sure to call +super+. + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/server/adapter.rb#56 + def shutdown; end + end +end + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#16 +YARD::Server::CR = T.let(T.unsafe(nil), String) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#18 +YARD::Server::CRLF = T.let(T.unsafe(nil), String) + +# Commands implement specific kinds of server responses which are routed +# to by the {Router} class. To implement a custom command, subclass {Commands::Base}. +# +# @since 0.6.0 +# +# source://yard//lib/yard/autoload.rb#219 +module YARD::Server::Commands; end + +# This is the base command class used to implement custom commands for +# a server. A command will be routed to by the {Router} class and return +# a Rack-style response. +# +# == Attribute Initializers +# All attributes can be initialized via options passed into the {#initialize} +# method. When creating a custom command, the {Adapter#options} will +# automatically be mapped to attributes by the same name on your class. +# +# class MyCommand < Base +# attr_accessor :myattr +# end +# +# Adapter.new(libs, {:myattr => 'foo'}).start +# +# # when a request comes in, cmd.myattr == 'foo' +# +# == Subclassing Notes +# To implement a custom command, override the {#run} method, not {#call}. +# In your implementation, you should set the body and status for requests. +# See details in the +#run+ method documentation. +# +# Note that if your command deals directly with libraries, you should +# consider subclassing the more specific {LibraryCommand} class instead. +# +# @abstract +# @see #run +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/base.rb#34 +class YARD::Server::Commands::Base + # Creates a new command object, setting attributes named by keys + # in the options hash. After initialization, the options hash + # is saved in {#command_options} for further inspection. + # + # @example Creating a Command + # cmd = DisplayObjectCommand.new(:caching => true, :library => mylib) + # cmd.library # => mylib + # cmd.command_options # => {:caching => true, :library => mylib} + # @param opts [Hash] the options hash, saved to {#command_options} + # after initialization. + # @return [Base] a new instance of Base + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#75 + def initialize(opts = T.unsafe(nil)); end + + # @return [Adapter] the server adapter + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#41 + def adapter; end + + # @return [Adapter] the server adapter + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#41 + def adapter=(_arg0); end + + # @return [String] the response body. Defaults to empty string. + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#61 + def body; end + + # @return [String] the response body. Defaults to empty string. + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#61 + def body=(_arg0); end + + # @return [Boolean] whether to cache + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#44 + def caching; end + + # @return [Boolean] whether to cache + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#44 + def caching=(_arg0); end + + # The main method called by a router with a request object. + # + # @note This command should not be overridden by subclasses. Implement + # the callback method {#run} instead. + # @param request [Adapter Dependent] the request object + # @return [Array(Numeric,Hash,Array<String>)] a Rack-style response + # of status, headers, and body wrapped in an array. + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#89 + def call(request); end + + # @return [Hash] the options passed to the command's constructor + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#38 + def command_options; end + + # @return [Hash] the options passed to the command's constructor + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#38 + def command_options=(_arg0); end + + # @return [Hash{String => String}] response headers + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#55 + def headers; end + + # @return [Hash{String => String}] response headers + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#55 + def headers=(_arg0); end + + # @return [String] the path after the command base URI + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#52 + def path; end + + # @return [String] the path after the command base URI + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#52 + def path=(_arg0); end + + # @return [Rack::Request] request object + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#49 + def request; end + + # @return [Rack::Request] request object + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#49 + def request=(_arg0); end + + # Subclass this method to implement a custom command. This method + # should set the {#status} and {#body}, and optionally modify the + # {#headers}. Note that +#status+ defaults to 200. + # + # @abstract + # @example A custom command + # class ErrorCommand < Base + # def run + # self.body = 'ERROR! The System is down!' + # self.status = 500 + # self.headers['Content-Type'] = 'text/plain' + # end + # end + # @raise [NotImplementedError] + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#128 + def run; end + + # @return [Numeric] status code. Defaults to 200 per request + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#58 + def status; end + + # @return [Numeric] status code. Defaults to 200 per request + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#58 + def status=(_arg0); end + + protected + + # Override this method to implement custom caching mechanisms for + # + # @example Caching to memory + # $memory_cache = {} + # def cache(data) + # $memory_cache[path] = data + # end + # @param data [String] the data to cache + # @return [String] the same cached data (for chaining) + # @see StaticCaching + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#165 + def cache(data); end + + # Sets the body and headers for a 404 response. Does not modify the + # body if already set. + # + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#180 + def not_found; end + + # Sets the headers and status code for a redirection to a given URL + # + # @param url [String] the URL to redirect to + # @raise [FinishRequest] causes the request to terminate. + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#192 + def redirect(url); end + + # Renders a specific object if provided, or a regular template rendering + # if object is not provided. + # + # @param object [CodeObjects::Base, nil] calls {CodeObjects::Base#format} if + # an object is provided, or {Templates::Engine.render} if object is nil. Both + # receive +#options+ as an argument. + # @return [String] the resulting output to display + # @since 0.6.0 + # @todo This method is dependent on +#options+, it should be in {LibraryCommand}. + # + # source://yard//lib/yard/server/commands/base.rb#144 + def render(object = T.unsafe(nil)); end + + private + + # Add a conservative cache control policy to reduce load on + # requests served with "?1234567890" style timestamp query strings. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/base.rb#202 + def add_cache_control; end +end + +# Displays a README or extra file. +# +# @since 0.6.0 +# @todo Implement better support for detecting binary (image) filetypes +# +# source://yard//lib/yard/server/commands/display_file_command.rb#8 +class YARD::Server::Commands::DisplayFileCommand < ::YARD::Server::Commands::LibraryCommand + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_file_command.rb#9 + def index; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_file_command.rb#9 + def index=(_arg0); end + + # @raise [NotFoundError] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_file_command.rb#11 + def run; end +end + +# Displays documentation for a specific object identified by the path +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/display_object_command.rb#6 +class YARD::Server::Commands::DisplayObjectCommand < ::YARD::Server::Commands::LibraryCommand + include ::YARD::Server::DocServerHelper + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_object_command.rb#36 + def index; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_object_command.rb#47 + def not_found; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_object_command.rb#9 + def run; end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/display_object_command.rb#54 + def object_path; end +end + +# Displays an object wrapped in frames +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/frames_command.rb#6 +class YARD::Server::Commands::FramesCommand < ::YARD::Server::Commands::DisplayObjectCommand + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/frames_command.rb#7 + def run; end +end + +# This is the base command for all commands that deal directly with libraries. +# Some commands do not, but most (like {DisplayObjectCommand}) do. If your +# command deals with libraries directly, subclass this class instead. +# See {Base} for notes on how to subclass a command. +# +# @abstract +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/library_command.rb#32 +class YARD::Server::Commands::LibraryCommand < ::YARD::Server::Commands::Base + # @return [LibraryCommand] a new instance of LibraryCommand + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#63 + def initialize(opts = T.unsafe(nil)); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#68 + def call(request); end + + # @return [Boolean] whether to reparse data + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#53 + def incremental; end + + # @return [Boolean] whether to reparse data + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#53 + def incremental=(_arg0); end + + # @return [LibraryVersion] the object containing library information + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#41 + def library; end + + # @return [LibraryVersion] the object containing library information + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#41 + def library=(_arg0); end + + # @return [LibraryOptions] default options for the library + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#44 + def options; end + + # @return [LibraryOptions] default options for the library + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#44 + def options=(_arg0); end + + # @return [Serializers::Base] the serializer used to perform file linking + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#47 + def serializer; end + + # @return [Serializers::Base] the serializer used to perform file linking + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#47 + def serializer=(_arg0); end + + # @return [Boolean] whether router should route for multiple libraries + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#50 + def single_library; end + + # @return [Boolean] whether router should route for multiple libraries + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#50 + def single_library=(_arg0); end + + # @return [Boolean] whether or not this adapter calls +fork+ when serving + # library requests. Defaults to false. + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#57 + def use_fork; end + + # @return [Boolean] whether or not this adapter calls +fork+ when serving + # library requests. Defaults to false. + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#57 + def use_fork=(_arg0); end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#96 + def call_with_fork(request, &block); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#83 + def call_without_fork(request); end + + # @return [Boolean] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#109 + def can_fork?; end + + # Hack to load a custom fulldoc template object that does + # not do any rendering/generation. We need this to access the + # generate_*_list methods. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#171 + def fulldoc_template; end + + # @raise [LibraryNotPreparedError] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#147 + def load_yardoc; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#159 + def not_prepared; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#118 + def restore_template_info; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#113 + def save_default_template_info; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#123 + def setup_library; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#130 + def setup_yardopts; end +end + +# source://yard//lib/yard/server/commands/library_command.rb#35 +YARD::Server::Commands::LibraryCommand::CAN_FORK = T.let(T.unsafe(nil), TrueClass) + +# Returns the index of libraries served by the server. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/library_index_command.rb#13 +class YARD::Server::Commands::LibraryIndexCommand < ::YARD::Server::Commands::Base + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#14 + def options; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#14 + def options=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#16 + def run; end +end + +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/library_index_command.rb#5 +class YARD::Server::Commands::LibraryIndexOptions < ::YARD::CLI::YardocOptions + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#6 + def adapter; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#6 + def adapter=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#6 + def libraries; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_index_command.rb#6 + def libraries=(_arg0); end + + # source://yard//lib/yard/options.rb#82 + def serialize; end + + # source://yard//lib/yard/options.rb#82 + def serialize=(_arg0); end + + # source://yard//lib/yard/options.rb#82 + def template; end + + # source://yard//lib/yard/options.rb#82 + def template=(_arg0); end + + # source://yard//lib/yard/options.rb#82 + def type; end + + # source://yard//lib/yard/options.rb#82 + def type=(_arg0); end +end + +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/library_command.rb#7 +class YARD::Server::Commands::LibraryOptions < ::YARD::CLI::YardocOptions + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#8 + def adapter; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#14 + def command; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#14 + def command=(_arg0); end + + # @since 0.6.0 + # @yield [:adapter, adapter] + # + # source://yard//lib/yard/server/commands/library_command.rb#17 + def each(&block); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#15 + def frames; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#15 + def frames=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#9 + def library; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#12 + def serialize; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#11 + def serializer; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/library_command.rb#10 + def single_library; end +end + +# Returns a list of objects of a specific type +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/list_command.rb#6 +class YARD::Server::Commands::ListCommand < ::YARD::Server::Commands::LibraryCommand + include ::YARD::Templates::Helpers::BaseHelper + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/list_command.rb#9 + def run; end +end + +# Serves requests from the root of the server +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/root_request_command.rb#6 +class YARD::Server::Commands::RootRequestCommand < ::YARD::Server::Commands::Base + include ::YARD::Server::HTTPUtils + include ::YARD::Server::Commands::StaticFileHelpers + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/root_request_command.rb#9 + def run; end +end + +# Performs a search over the objects inside of a library and returns +# the results as HTML or plaintext +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/search_command.rb#7 +class YARD::Server::Commands::SearchCommand < ::YARD::Server::Commands::LibraryCommand + include ::YARD::Templates::Helpers::BaseHelper + include ::YARD::Templates::Helpers::ModuleHelper + include ::YARD::Server::DocServerHelper + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#12 + def query; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#12 + def query=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#12 + def results; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#12 + def results=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#14 + def run; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#26 + def visible_results; end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#58 + def search_for_object; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#47 + def serve_normal; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#37 + def serve_xhr; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/search_command.rb#32 + def url_for(object); end +end + +# Serves static content when no other router matches a request +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/static_file_command.rb#6 +class YARD::Server::Commands::StaticFileCommand < ::YARD::Server::Commands::LibraryCommand + include ::YARD::Server::HTTPUtils + include ::YARD::Server::Commands::StaticFileHelpers + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/static_file_command.rb#17 + def run; end +end + +# Defines the paths used to search for static assets. To define an +# extra path, use {YARD::Server.register_static_path} rather than +# modifying this constant directly. Also note that files in the +# document root will always take precedence over these paths. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/static_file_command.rb#15 +YARD::Server::Commands::StaticFileCommand::STATIC_PATHS = T.let(T.unsafe(nil), Array) + +# Include this module to get access to {#static_template_file?} +# and {favicon?} helpers. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/commands/static_file_helpers.rb#8 +module YARD::Server::Commands::StaticFileHelpers + include ::YARD::Server::HTTPUtils + + # Serves an empty favicon. + # + # @raise [FinishRequest] finalizes an empty body if the path matches + # /favicon.ico so browsers don't complain. + # @return [Boolean] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/static_file_helpers.rb#14 + def favicon?; end + + # Attempts to route a path to a static template file. + # + # @raise [FinishRequest] if a file was found and served + # @return [void] + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/static_file_helpers.rb#26 + def static_template_file?; end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/static_file_helpers.rb#42 + def find_file(adapter, url); end + + class << self + # @since 0.6.0 + # + # source://yard//lib/yard/server/commands/static_file_helpers.rb#42 + def find_file(adapter, url); end + end +end + +# A module that is mixed into {Templates::Template} in order to customize +# certain template methods. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/doc_server_helper.rb#6 +module YARD::Server::DocServerHelper + # @param path_components [Array<String>] components of a URL + # @return [String] the absolute path from any mounted base URI. + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#61 + def abs_url(*path_components); end + + # @example The base path for a library 'foo' + # base_path('docs') # => 'docs/foo' + # @param path [String] the path prefix for a base path URI + # @return [String] the base URI for a library with an extra +path+ prefix + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#69 + def base_path(path); end + + # @return [String] a timestamp for a given file + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#78 + def mtime(file); end + + # @return [String] a URL for a file with a timestamp + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#84 + def mtime_url(file); end + + # @return [Router] convenience method for accessing the router + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#75 + def router; end + + # Modifies {Templates::Helpers::HtmlHelper#url_for} to return a URL instead + # of a disk location. + # + # @param obj [String, CodeObjects::Base] the object (or object path) to link to + # @param anchor [String] the anchor to link to + # @param relative [Boolean] use a relative or absolute link + # @return [String] the URL location of the object + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#11 + def url_for(obj, anchor = T.unsafe(nil), relative = T.unsafe(nil)); end + + # Modifies {Templates::Helpers::HtmlHelper#url_for_file} to return a URL instead + # of a disk location. + # + # @param filename [String, CodeObjects::ExtraFileObject] the filename to link to + # @param anchor [String] optional anchor + # @return [String] the URL pointing to the file + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#24 + def url_for_file(filename, anchor = T.unsafe(nil)); end + + # Returns the frames URL for the page + # + # @return [String] the URL pointing to the frames page + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#43 + def url_for_frameset; end + + # Returns the URL for the alphabetic index page + # + # @return [String] the URL pointing to the first main page the + # user should see. + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#55 + def url_for_index; end + + # Modifies {Templates::Helpers::HtmlHelper#url_for_list} to return a URL + # based on the list prefix instead of a HTML filename. + # + # @param type [String, Symbol] the list type to generate a URL for + # @return [String] the URL pointing to the list + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#37 + def url_for_list(type); end + + # Returns the main URL, first checking a readme and then linking to the index + # + # @return [String] the URL pointing to the first main page the + # user should see. + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_helper.rb#49 + def url_for_main; end +end + +# A custom {Serializers::Base serializer} which returns resource URLs instead of +# static relative paths to files on disk. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/doc_server_serializer.rb#6 +class YARD::Server::DocServerSerializer < ::YARD::Serializers::FileSystemSerializer + # @return [DocServerSerializer] a new instance of DocServerSerializer + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_serializer.rb#7 + def initialize(_command = T.unsafe(nil)); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_serializer.rb#11 + def serialized_path(object); end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/doc_server_serializer.rb#31 + def urlencode(name); end +end + +# Short circuits a request by raising an error. This exception is caught +# by {Commands::Base#call} to immediately end a request and return a response. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/adapter.rb#6 +class YARD::Server::FinishRequest < ::RuntimeError; end + +# HTTPUtils provides utility methods for working with the HTTP protocol. +# +# This module is generally used internally by WEBrick +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#25 +module YARD::Server::HTTPUtils + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#443 + def _escape(str, regex); end + + # :stopdoc: + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#441 + def _make_regex(str); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#442 + def _make_regex!(str); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#449 + def _unescape(str, regex); end + + # Removes quotes and escapes from +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#223 + def dequote(str); end + + # Escapes HTTP reserved and unwise characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#467 + def escape(str); end + + # Escapes 8 bit characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#508 + def escape8bit(str); end + + # Escapes form reserved characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#481 + def escape_form(str); end + + # Escapes path +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#497 + def escape_path(str); end + + # Loads Apache-compatible mime.types in +file+. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#112 + def load_mime_types(file); end + + # Returns the mime type of +filename+ from the list in +mime_tab+. If no + # mime type was found application/octet-stream is returned. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#134 + def mime_type(filename, mime_tab); end + + # Normalizes a request path. Raises an exception if the path cannot be + # normalized. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#31 + def normalize_path(path); end + + # Parses form data in +io+ with the given +boundary+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#395 + def parse_form_data(io, boundary); end + + # Parses an HTTP header +raw+ into a hash of header fields with an Array + # of values. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#145 + def parse_header(raw); end + + # Parses the query component of a URI in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#371 + def parse_query(str); end + + # Parses q values in +value+ as used in Accept headers. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#202 + def parse_qvalues(value); end + + # Parses a Range header value +ranges_specifier+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#184 + def parse_range_header(ranges_specifier); end + + # Quotes and escapes quotes in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#233 + def quote(str); end + + # Splits a header value +str+ according to HTTP specification. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#175 + def split_header_value(str); end + + # Unescapes HTTP reserved and unwise characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#474 + def unescape(str); end + + # Unescapes form reserved characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#490 + def unescape_form(str); end + + class << self + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#443 + def _escape(str, regex); end + + # :stopdoc: + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#441 + def _make_regex(str); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#442 + def _make_regex!(str); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#449 + def _unescape(str, regex); end + + # Removes quotes and escapes from +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#223 + def dequote(str); end + + # Escapes HTTP reserved and unwise characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#467 + def escape(str); end + + # Escapes 8 bit characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#508 + def escape8bit(str); end + + # Escapes form reserved characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#481 + def escape_form(str); end + + # Escapes path +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#497 + def escape_path(str); end + + # Loads Apache-compatible mime.types in +file+. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#112 + def load_mime_types(file); end + + # Returns the mime type of +filename+ from the list in +mime_tab+. If no + # mime type was found application/octet-stream is returned. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#134 + def mime_type(filename, mime_tab); end + + # Normalizes a request path. Raises an exception if the path cannot be + # normalized. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#31 + def normalize_path(path); end + + # Parses form data in +io+ with the given +boundary+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#395 + def parse_form_data(io, boundary); end + + # Parses an HTTP header +raw+ into a hash of header fields with an Array + # of values. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#145 + def parse_header(raw); end + + # Parses the query component of a URI in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#371 + def parse_query(str); end + + # Parses q values in +value+ as used in Accept headers. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#202 + def parse_qvalues(value); end + + # Parses a Range header value +ranges_specifier+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#184 + def parse_range_header(ranges_specifier); end + + # Quotes and escapes quotes in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#233 + def quote(str); end + + # Splits a header value +str+ according to HTTP specification. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#175 + def split_header_value(str); end + + # Unescapes HTTP reserved and unwise characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#474 + def unescape(str); end + + # Unescapes form reserved characters in +str+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#490 + def unescape_form(str); end + end +end + +# Default mime types +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#47 +YARD::Server::HTTPUtils::DefaultMimeTypes = T.let(T.unsafe(nil), Hash) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#459 +YARD::Server::HTTPUtils::ESCAPED = T.let(T.unsafe(nil), Regexp) + +# Stores multipart form data. FormData objects are created when +# WEBrick::HTTPUtils.parse_form_data is called. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#242 +class YARD::Server::HTTPUtils::FormData < ::String + # Creates a new FormData object. + # + # +args+ is an Array of form data entries. One FormData will be created + # for each entry. + # + # This is called by WEBrick::HTTPUtils.parse_form_data for you + # + # @return [FormData] a new instance of FormData + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#267 + def initialize(*args); end + + # Adds +str+ to this FormData which may be the body, a header or a + # header entry. + # + # This is called by WEBrick::HTTPUtils.parse_form_data for you + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#300 + def <<(str); end + + # Retrieves the header at the first entry in +key+ + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#286 + def [](*key); end + + # Adds +data+ at the end of the chain of entries + # + # This is called by WEBrick::HTTPUtils.parse_form_data for you. + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#320 + def append_data(data); end + + # Yields each entry in this FormData + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#335 + def each_data; end + + # The filename of the form data part + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#254 + def filename; end + + # The filename of the form data part + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#254 + def filename=(_arg0); end + + # Returns all the FormData as an Array + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#347 + def list; end + + # The name of the form data part + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#249 + def name; end + + # The name of the form data part + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#249 + def name=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#256 + def next_data=(_arg0); end + + # Returns all the FormData as an Array + # A FormData will behave like an Array + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#347 + def to_ary; end + + # This FormData's body + # + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#363 + def to_s; end + + protected + + # @since 0.6.0 + # + # source://yard//lib/yard/server/http_utils.rb#256 + def next_data; end +end + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#244 +YARD::Server::HTTPUtils::FormData::EmptyHeader = T.let(T.unsafe(nil), Hash) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#243 +YARD::Server::HTTPUtils::FormData::EmptyRawHeader = T.let(T.unsafe(nil), Array) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#458 +YARD::Server::HTTPUtils::NONASCII = T.let(T.unsafe(nil), Regexp) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#456 +YARD::Server::HTTPUtils::UNESCAPED = T.let(T.unsafe(nil), Regexp) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#457 +YARD::Server::HTTPUtils::UNESCAPED_FORM = T.let(T.unsafe(nil), Regexp) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#460 +YARD::Server::HTTPUtils::UNESCAPED_PCHAR = T.let(T.unsafe(nil), Regexp) + +# @since 0.6.0 +# +# source://yard//lib/yard/server/http_utils.rb#17 +YARD::Server::LF = T.let(T.unsafe(nil), String) + +# This exception is raised when {LibraryVersion#prepare!} fails, or discovers +# that the library is not "prepared" to be served by +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/library_version.rb#9 +class YARD::Server::LibraryNotPreparedError < ::RuntimeError; end + +# A library version encapsulates a library's documentation at a specific version. +# Although the version is optional, this allows for creating multiple documentation +# points for a specific library, each representing a unique version. The term +# "library" used in other parts of the YARD::Server documentation refers to +# objects of this class unless otherwise noted. +# +# A library points to a location where a {#yardoc_file} is located so that +# its documentation may be loaded and served. Optionally, a {#source_path} is +# given to point to a location where any extra files (and {YARD::CLI::Yardoc .yardopts}) +# should be loaded from. Both of these methods may not be known immediately, +# since the yardoc file may not be built until later. Resolving the yardoc +# file and source path are dependent on the specific library "source type" used. +# Source types (known as "library source") are discussed in detail below. +# +# == Using with Adapters +# A list of libraries need to be passed into adapters upon creation. In +# most cases, you will never do this manually, but if you use a {RackMiddleware}, +# you will need to pass in this list yourself. To build this list of libraries, +# you should create a hash of library names mapped to an *Array* of LibraryVersion +# objects. For example: +# +# {'mylib' => [LibraryVersion.new('mylib', '1.0', ...), +# LibraryVersion.new('mylib', '2.0', ...)]} +# +# Note that you can also use {Adapter#add_library} for convenience. +# +# The "array" part is required, even for just one library version. +# +# == Library Sources +# The {#source} method represents the library source type, ie. where the +# library "comes from". It might come from "disk", or it might come from a +# "gem" (technically the disk, but a separate type nonetheless). In these +# two cases, the yardoc file sits somewhere on your filesystem, though +# it may also be built dynamically if it does not yet exist. This behaviour +# is controlled through the {#prepare!} method, which prepares the yardoc file +# given a specific library source. We will see how this works in detail in +# the following section. +# +# == Implementing a Custom Library Source +# YARD can be extended to support custom library sources in order to +# build or retrieve a yardoc file at runtime from many different locations. +# +# To implement this behaviour, 3 methods can be added to the +LibraryVersion+ +# class, +#load_yardoc_from_SOURCE+, +#yardoc_file_for_SOURCE+, and +# +#source_path_for_SOURCE+. In all cases, "SOURCE" represents the source +# type used in {#source} when creating the library object. The +# +#yardoc_file_for_SOURCE+ and +#source_path_for_SOURCE+ methods are called upon +# creation and should return the location where the source code for the library +# lives. The load method is called from {#prepare!} if there is no yardoc file +# and should set {#yardoc_file}. Below is a full example for +# implementing a custom library source, +:http+, which reads packaged .yardoc +# databases from zipped archives off of an HTTP server. +# +# Note that only +#load_yardoc_from_SOURCE+ is required. The other two +# methods are optional and can be set manually (via {#source_path=} and +# {#yardoc_file=}) on the object at any time. +# +# @example Implementing a Custom Library Source +# # Adds the source type "http" for .yardoc files zipped on HTTP servers +# class LibraryVersion +# def load_yardoc_from_http +# Thread.new do +# # zip/unzip method implementations are not shown +# download_zip_file("http://mysite.com/yardocs/#{self}.zip") +# unzip_file_to("/path/to/yardocs/#{self}") +# end +# +# # tell the server it's not ready yet (but it might be next time) +# raise LibraryNotPreparedError +# end +# +# def yardoc_file_for_http +# "/path/to/yardocs/#{self}/.yardoc" +# end +# +# def source_path_for_http +# File.dirname(yardoc_file) +# end +# end +# +# # Creating a library of this source type: +# LibraryVersion.new('name', '1.0', nil, :http) +# @since 0.6.0 +# +# source://yard//lib/yard/server/library_version.rb#94 +class YARD::Server::LibraryVersion + # @param name [String] the name of the library + # @param version [String] the specific (usually, but not always, numeric) library + # version + # @param yardoc [String] the location of the yardoc file, or nil if it is + # generated later + # @param source [Symbol] the location of the files used to build the yardoc. + # Builtin source types are +:disk+ or +:gem+. + # @return [LibraryVersion] a new instance of LibraryVersion + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#134 + def initialize(name, version = T.unsafe(nil), yardoc = T.unsafe(nil), source = T.unsafe(nil)); end + + # @return [Boolean] whether another LibraryVersion is equal to this one + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#153 + def ==(other); end + + # @return [Boolean] whether another LibraryVersion is equal to this one + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#153 + def eql?(other); end + + # @return [Boolean] whether another LibraryVersion is equal to this one + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#153 + def equal?(other); end + + # @return [Gem::Specification] a gemspec object for a given library. Used + # for :gem source types. + # @return [nil] if there is no installed gem for the library + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#191 + def gemspec; end + + # @return [Fixnum] used for Hash mapping. + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#150 + def hash; end + + # @return [String] the name of the library + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#96 + def name; end + + # @return [String] the name of the library + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#96 + def name=(_arg0); end + + # Prepares a library to be displayed by the server. This callback is + # performed before each request on a library to ensure that it is loaded + # and ready to be viewed. If any steps need to be performed prior to loading, + # they are performed through this method (though they should be implemented + # through the +load_yardoc_from_SOURCE+ method). + # + # @note You should not directly override this method. Instead, implement + # +load_yardoc_from_SOURCENAME+ when implementing loading for a specific + # source type. See the {LibraryVersion} documentation for "Implementing + # a Custom Library Source" + # @raise [LibraryNotPreparedError] if the library is not ready to be + # displayed. Usually when raising this error, you would simultaneously + # begin preparing the library for subsequent requests, although this + # is not necessary. + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#182 + def prepare!; end + + # @return [Boolean] whether the library has been completely processed + # and is ready to be served + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#162 + def ready?; end + + # @return [Symbol] the source type representing where the yardoc should be + # loaded from. Defaults are +:disk+ and +:gem+, though custom sources + # may be implemented. This value is used to inform {#prepare!} about how + # to load the necessary data in order to display documentation for an object. + # @see LibraryVersion LibraryVersion documentation for "Implementing a Custom Library Source" + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#116 + def source; end + + # @return [Symbol] the source type representing where the yardoc should be + # loaded from. Defaults are +:disk+ and +:gem+, though custom sources + # may be implemented. This value is used to inform {#prepare!} about how + # to load the necessary data in order to display documentation for an object. + # @see LibraryVersion LibraryVersion documentation for "Implementing a Custom Library Source" + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#116 + def source=(_arg0); end + + # @return [String] the location of the source code for a library. This + # value is filled by calling +#source_path_for_SOURCE+ on this class. + # @return [nil] if there is no source code + # @see LibraryVersion LibraryVersion documentation for "Implementing a Custom Library Source" + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#122 + def source_path; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#125 + def source_path=(_arg0); end + + # @param url_format [Boolean] if true, returns the string in a URI-compatible + # format (for appending to a URL). Otherwise, it is given in a more human + # readable format. + # @return [String] the string representation of the library. + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#145 + def to_s(url_format = T.unsafe(nil)); end + + # @return [String] the version of the specific library + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#99 + def version; end + + # @return [String] the version of the specific library + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#99 + def version=(_arg0); end + + # @note To implement a custom yardoc file getter, implement + # @return [String] the location of the yardoc file used to load the object + # information from. + # @return [nil] if no yardoc file exists yet. In this case, {#prepare!} will + # be called on this library to build the yardoc file. + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#106 + def yardoc_file; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#109 + def yardoc_file=(_arg0); end + + protected + + # Called when a library of source type "disk" is to be prepared. In this + # case, the {#yardoc_file} should already be set, but the library may not + # be prepared. Run preparation if not done. + # + # @raise [LibraryNotPreparedError] if the yardoc file has not been + # prepared. + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#206 + def load_yardoc_from_disk; end + + # Called when a library of source type "gem" is to be prepared. In this + # case, the {#yardoc_file} needs to point to the correct location for + # the installed gem. The yardoc file is built if it has not been done. + # + # @raise [LibraryNotPreparedError] if the gem does not have an existing + # yardoc file. + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#226 + def load_yardoc_from_gem; end + + # @return [String] the source path for a disk source + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#243 + def source_path_for_disk; end + + # @return [String] the source path for a gem source + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#248 + def source_path_for_gem; end + + # @return [String] the yardoc file for a gem source + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#253 + def yardoc_file_for_gem; end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#261 + def load_source_path; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#266 + def load_yardoc_file; end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/library_version.rb#271 + def serializer; end +end + +# Raises an error if a resource is not found. This exception is caught by +# {Commands::Base#call} to immediately end a request and return a 404 response +# code. If a message is provided, the body is set to the exception message. +# +# @since 0.6.0 +# +# source://yard//lib/yard/server/adapter.rb#11 +class YARD::Server::NotFoundError < ::RuntimeError; end + +# A router class implements the logic used to recognize a request for a specific +# URL and run specific {Commands::Base commands}. +# +# == Subclassing Notes +# To create a custom router, subclass this class and pass it into the adapter +# options through {Adapter#initialize} or by directly modifying {Adapter#router}. +# +# The most general customization is to change the URL prefixes recognized by +# routing, which can be done by overriding {#docs_prefix}, {#list_prefix}, +# {#static_prefix}, and {#search_prefix}. +# +# == Implementing Custom Caching +# By default, the Router class performs static disk-based caching on all +# requests through the +#check_static_cache+. To override this behaviour, +# or create your own caching mechanism, mixin your own custom module with +# this method implemented as per {StaticCaching#check_static_cache}. +# +# @example Creating a subclassed router +# # Adds 'my' to all routing prefixes +# class MyRouter < YARD::Server::Router +# def docs_prefix; 'mydocs' end +# def list_prefix; 'mylist' end +# def static_prefix; 'mystatic' end +# def search_prefix; 'mysearch' end +# end +# +# # Using it: +# WebrickAdapter.new(libraries, :router => MyRouter).start +# @since 0.6.0 +# +# source://yard//lib/yard/server/router.rb#32 +class YARD::Server::Router + include ::YARD::Server::StaticCaching + include ::YARD::Server::Commands + + # Creates a new router for a specific adapter + # + # @param adapter [Adapter] the adapter to route requests to + # @return [Router] a new instance of Router + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#45 + def initialize(adapter); end + + # @return [Adapter] the adapter used by the router + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#40 + def adapter; end + + # @return [Adapter] the adapter used by the router + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#40 + def adapter=(_arg0); end + + # Perform routing on a specific request, serving the request as a static + # file through {Commands::RootRequestCommand} if no route is found. + # + # @param request [Adapter Dependent] the request object + # @return [Array(Numeric,Hash,Array)] the Rack-style server response data + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#54 + def call(request); end + + # @return [String] the URI prefix for all object documentation requests + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#63 + def docs_prefix; end + + # @return [String] the URI prefix for all class/method/file list requests + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#66 + def list_prefix; end + + # @return [Array(LibraryVersion, Array<String>)] the library followed + # by the rest of the path components in the request path. LibraryVersion + # will be nil if no matching library was found. + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#79 + def parse_library_from_path(paths); end + + # @return [Adapter Dependent] the request data coming in with the routing + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#37 + def request; end + + # @return [Adapter Dependent] the request data coming in with the routing + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#37 + def request=(_arg0); end + + # @return [String] the URI prefix for all search requests + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#69 + def search_prefix; end + + # @return [String] the URI prefix for all static assets (templates) + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#72 + def static_prefix; end + + protected + + # Adds extra :library/:path option keys to the adapter options. + # Use this method when passing options to a command. + # + # @param library [LibraryVersion] the library to route for + # @param paths [Array<String>] path components (split by '/') + # @return [Hash] finalized options + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#181 + def final_options(library, paths); end + + # Performs routing algorithm to find which prefix is called, first + # parsing out library name/version information. + # + # @return [Array(Numeric,Hash,Array<String>)] the Rack-style response + # @return [nil] if no route is matched + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#105 + def route(path = T.unsafe(nil)); end + + # Routes requests from {#docs_prefix} and calls the appropriate command + # + # @param library [LibraryVersion] the library to route for + # @param paths [Array<String>] path components (split by '/') + # @return [Array(Numeric,Hash,Array<String>)] the Rack-style response + # @return [nil] if no route is matched + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#128 + def route_docs(library, paths); end + + # Routes for the index of a library / multiple libraries + # + # @return [Array(Numeric,Hash,Array<String>)] the Rack-style response + # @return [nil] if no route is matched + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#146 + def route_index; end + + # Routes requests from {#list_prefix} and calls the appropriate command + # + # @param library [LibraryVersion] the library to route for + # @param paths [Array<String>] path components (split by '/') + # @return [Array(Numeric,Hash,Array<String>)] the Rack-style response + # @return [nil] if no route is matched + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#157 + def route_list(library, paths); end + + # Routes requests from {#search_prefix} and calls the appropriate command + # + # @param library [LibraryVersion] the library to route for + # @param paths [Array<String>] path components (split by '/') + # @return [Array(Numeric,Hash,Array<String>)] the Rack-style response + # @return [nil] if no route is matched + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#165 + def route_search(library, paths); end + + # @since 0.6.0 + # + # source://yard//lib/yard/server/router.rb#170 + def route_static(library, paths); end +end + +# Implements static caching for requests. +# +# @see Router Router documentation for "Caching" +# @since 0.6.0 +# +# source://yard//lib/yard/server/static_caching.rb#7 +module YARD::Server::StaticCaching + # Called by a router to return the cached object. By default, this + # method performs disk-based caching. To perform other forms of caching, + # implement your own +#check_static_cache+ method and mix the module into + # the Router class. + # + # Note that caching does not occur here. This method simply checks for + # the existence of cached data. To actually cache a response, see + # {Commands::Base#cache}. + # + # @example Implementing In-Memory Cache Checking + # module MemoryCaching + # def check_static_cache + # # $memory_cache is filled by {Commands::Base#cache} + # cached_data = $memory_cache[request.path] + # if cached_data + # [200, {'Content-Type' => 'text/html'}, [cached_data]] + # else + # nil + # end + # end + # end + # + # class YARD::Server::Router; include MemoryCaching; end + # @return [Array(Numeric,Hash,Array)] the Rack-style response + # @return [nil] if no cache is available and routing should continue + # @see Commands::Base#cache + # @since 0.6.0 + # + # source://yard//lib/yard/server/static_caching.rb#34 + def check_static_cache; end +end + +# Stubs marshal dumps and acts a delegate class for an object by path +# +# @private +# +# source://yard//lib/yard/serializers/yardoc_serializer.rb#6 +class YARD::StubProxy + # @return [StubProxy] a new instance of StubProxy + # + # source://yard//lib/yard/serializers/yardoc_serializer.rb#13 + def initialize(path, transient = T.unsafe(nil)); end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#9 + def _dump(_depth); end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#11 + def hash; end + + # source://yard//lib/yard/serializers/yardoc_serializer.rb#18 + def method_missing(meth, *args, &block); end + + class << self + # source://yard//lib/yard/serializers/yardoc_serializer.rb#10 + def _load(str); end + end +end + +# source://yard//lib/yard/serializers/yardoc_serializer.rb#28 +YARD::StubProxy::FILELEN = T.let(T.unsafe(nil), Integer) + +# The root path for YARD builtin templates +# +# source://yard//lib/yard.rb#10 +YARD::TEMPLATE_ROOT = T.let(T.unsafe(nil), String) + +# Namespace for Tag components +# +# source://yard//lib/yard/autoload.rb#248 +module YARD::Tags; end + +# Defines an attribute with a given name, using indented block data as the +# attribute's docstring. If the type specifier is supplied with "r", "w", or +# "rw", the attribute is made readonly, writeonly or readwrite respectively. +# A readwrite attribute is the default, if no type is specified. The comment +# containing this directive does not need to be attached to any source, but +# if it is, that source code will be used as the method's source. +# +# To define a regular method, see {tag:!method} +# +# @example Defining a simple readonly attribute +# # @!attribute [r] count +# # @return [Fixnum] the size of the list +# @example Defining a simple readwrite attribute +# # @!attribute name +# # @return [String] the name of the user +# @note This directive should only be used if there is no explicit +attr_*+ +# declaration for the attribute in any source files (i.e., the attribute +# is declared dynamically via meta-programming). In all other cases, add +# documentation to the attribute declaration itself. +# @note For backwards compatibility support, you do not need to indent +# the attribute's docstring text. If an +@!attribute+ directive is seen with +# no indented block, the entire docstring is used as the new attribute's +# docstring text. +# @see tag:!method +# @since 0.7.0 +# +# source://yard//lib/yard/tags/directives.rb#461 +class YARD::Tags::AttributeDirective < ::YARD::Tags::MethodDirective + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#462 + def after_parse; end + + protected + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#470 + def method_name; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#476 + def method_signature; end + + private + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#486 + def create_attribute_data(object); end + + # @return [Boolean] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#516 + def readable?; end + + # @return [Boolean] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#512 + def writable?; end +end + +# source://yard//lib/yard/tags/default_factory.rb#4 +class YARD::Tags::DefaultFactory + # Parses tag text and creates a new tag with descriptive text + # + # @param tag_name the name of the tag to parse + # @param text [String] the raw tag text + # @return [Tag] a tag object with the tag_name and text values filled + # + # source://yard//lib/yard/tags/default_factory.rb#13 + def parse_tag(tag_name, text); end + + # Parses tag text and creates a new tag with a key name and descriptive text + # + # @param tag_name the name of the tag to parse + # @param text [String] the raw tag text + # @return [Tag] a tag object with the tag_name, name and text values filled + # + # source://yard//lib/yard/tags/default_factory.rb#22 + def parse_tag_with_name(tag_name, text); end + + # source://yard//lib/yard/tags/default_factory.rb#89 + def parse_tag_with_options(tag_name, text); end + + # source://yard//lib/yard/tags/default_factory.rb#70 + def parse_tag_with_title_and_text(tag_name, text); end + + # Parses tag text and creates a new tag with formally declared types and + # descriptive text + # + # @param tag_name the name of the tag to parse + # @param text [String] the raw tag text + # @raise [TagFormatError] + # @return [Tag] a tag object with the tag_name, types and text values filled + # + # source://yard//lib/yard/tags/default_factory.rb#33 + def parse_tag_with_types(tag_name, text); end + + # Parses tag text and creates a new tag with formally declared types, a key + # name and descriptive text + # + # @param tag_name the name of the tag to parse + # @param text [String] the raw tag text + # @return [Tag] a tag object with the tag_name, name, types and text values filled + # + # source://yard//lib/yard/tags/default_factory.rb#45 + def parse_tag_with_types_and_name(tag_name, text); end + + # Parses tag text and creates a new tag with formally declared types, a title + # on the first line and descriptive text + # + # @param tag_name the name of the tag to parse + # @param text [String] the raw tag text + # @return [Tag] a tag object with the tag_name, name, types and text values filled + # + # source://yard//lib/yard/tags/default_factory.rb#57 + def parse_tag_with_types_and_title(tag_name, text); end + + # source://yard//lib/yard/tags/default_factory.rb#75 + def parse_tag_with_types_name_and_default(tag_name, text); end + + private + + # Extracts the name from raw tag text returning the name and remaining value + # + # @param text [String] the raw tag text + # @return [Array] an array holding the name as the first element and the + # value as the second element + # + # source://yard//lib/yard/tags/default_factory.rb#101 + def extract_name_from_text(text); end + + # @raise [TagFormatError] + # + # source://yard//lib/yard/tags/default_factory.rb#105 + def extract_title_and_desc_from_text(text); end + + # Parses a [], <>, {} or () block at the beginning of a line of text + # into a list of comma delimited values. + # + # @example + # obj.parse_types('[String, Array<Hash, String>, nil]') # => [nil, ['String', 'Array<Hash, String>', 'nil'], ""] + # obj.parse_types('b<String> A string') # => ['b', ['String'], 'A string'] + # @return [Array(String, Array<String>, String)] the text before the type + # list (or nil), followed by the type list parsed into an array of + # strings, followed by the text following the type list. + # + # source://yard//lib/yard/tags/default_factory.rb#129 + def extract_types_and_name_from_text(text, opening_types = T.unsafe(nil), closing_types = T.unsafe(nil)); end + + # source://yard//lib/yard/tags/default_factory.rb#138 + def extract_types_and_name_from_text_unstripped(text, opening_types = T.unsafe(nil), closing_types = T.unsafe(nil)); end +end + +# source://yard//lib/yard/tags/default_factory.rb#6 +YARD::Tags::DefaultFactory::TYPELIST_CLOSING_CHARS = T.let(T.unsafe(nil), String) + +# source://yard//lib/yard/tags/default_factory.rb#5 +YARD::Tags::DefaultFactory::TYPELIST_OPENING_CHARS = T.let(T.unsafe(nil), String) + +# source://yard//lib/yard/tags/default_tag.rb#4 +class YARD::Tags::DefaultTag < ::YARD::Tags::Tag + # @return [DefaultTag] a new instance of DefaultTag + # + # source://yard//lib/yard/tags/default_tag.rb#7 + def initialize(tag_name, text, types = T.unsafe(nil), name = T.unsafe(nil), defaults = T.unsafe(nil)); end + + # Returns the value of attribute defaults. + # + # source://yard//lib/yard/tags/default_tag.rb#5 + def defaults; end +end + +# The base directive class. Subclass this class to create a custom +# directive, registering it with {Library.define_directive}. Directive +# classes are executed via the {#call} method, which perform all directive +# processing on the object. +# +# If processing occurs within a handler, the {#handler} attribute is +# available to access more information about parsing context and state. +# Handlers are only available when parsing from {Parser::SourceParser}, +# not when parsing directly from {DocstringParser}. If the docstring is +# attached to an object declaration, {#object} will be set and available +# to modify the generated code object directly. Note that both of these +# attributes may be nil, and directives should test their existence +# before attempting to use them. +# +# @abstract Subclasses should implement {#call}. +# @see Library.define_directive +# @since 0.8.0 +# +# source://yard//lib/yard/tags/directives.rb#23 +class YARD::Tags::Directive + # @param tag [Tag] the meta-data tag containing all input to the docstring + # @param parser [DocstringParser] the docstring parser object + # @return [Directive] a new instance of Directive + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#55 + def initialize(tag, parser); end + + # Called after parsing all directives and tags in the docstring. Used + # to perform any cleanup after all directives perform their main task. + # + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#74 + def after_parse; end + + # Called when processing the directive. Subclasses should implement + # this method to perform all functionality of the directive. + # + # @abstract implement this method to perform all data processing for + # the directive. + # @raise [NotImplementedError] + # @return [void] + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#69 + def call; end + + # Set this field to replace the directive definition inside of a docstring + # with arbitrary text. For instance, the {MacroDirective} uses this field + # to expand its macro data in place of the call to a +@!macro+. + # + # @return [String] the text to expand in the original docstring in place + # of this directive definition. + # @return [nil] if no expansion should take place for this directive + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#34 + def expanded_text; end + + # Set this field to replace the directive definition inside of a docstring + # with arbitrary text. For instance, the {MacroDirective} uses this field + # to expand its macro data in place of the call to a +@!macro+. + # + # @return [String] the text to expand in the original docstring in place + # of this directive definition. + # @return [nil] if no expansion should take place for this directive + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#34 + def expanded_text=(_arg0); end + + # @return [Handlers::Base, nil] the handler object the docstring parser + # might be attached to. May be nil. Only available when parsing + # through {Parser::SourceParser}. + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#49 + def handler; end + + # @return [CodeObjects::Base, nil] the object the parent docstring is + # attached to. May be nil. + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#43 + def object; end + + # @return [DocstringParser] the parser that is parsing all tag + # information out of the docstring + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#38 + def parser=(_arg0); end + + # @return [Tag] the meta-data tag containing data input to the directive + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#25 + def tag; end + + # @return [Tag] the meta-data tag containing data input to the directive + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#25 + def tag=(_arg0); end + + protected + + # @return [Boolean] + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#80 + def inside_directive?; end + + # @return [DocstringParser] the parser that is parsing all tag + # information out of the docstring + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#38 + def parser; end +end + +# Ends a group listing definition. Group definition automatically end +# when class or module blocks are closed, and defining a new group overrides +# the last group definition, but occasionally you need to end the current +# group to return to the default listing. Use {tag:!group} to begin a +# group listing. +# +# @example +# class Controller +# # @!group Callbacks +# +# def before_filter; end +# def after_filter; end +# +# # @!endgroup +# +# def index; end +# end +# @see tag:!group +# @since 0.6.0 +# +# source://yard//lib/yard/tags/directives.rb#105 +class YARD::Tags::EndGroupDirective < ::YARD::Tags::Directive + # @since 0.6.0 + # + # source://yard//lib/yard/tags/directives.rb#106 + def call; end +end + +# Defines a group listing. All methods (and attributes) seen after this +# directive are placed into a group with the given description as the +# group name. The group listing is used by templates to organize methods +# and attributes into respective logical groups. To end a group listing +# use {tag:!endgroup}. +# +# @example +# # @!group Callbacks +# +# def before_filter; end +# def after_filter; end +# @note A group definition only applies to the scope it is defined in. +# If a new class or module is opened after the directive, this directive +# will not apply to methods in that class or module. +# @see tag:!endgroup +# @since 0.6.0 +# +# source://yard//lib/yard/tags/directives.rb#128 +class YARD::Tags::GroupDirective < ::YARD::Tags::Directive + # @since 0.6.0 + # + # source://yard//lib/yard/tags/directives.rb#129 + def call; end +end + +# Keeps track of all the registered meta-data tags and directives. +# Also allows for defining of custom tags and customizing the tag parsing +# syntax. +# +# == Defining Custom Meta-Data Tags +# +# To define a custom tag, use {define_tag}. You should pass the tag +# name and the factory method to use when creating the tag. If you do not +# provide a factory method to use, it will default to {DefaultFactory#parse_tag} +# +# You can also define tag objects manually by simply implementing a "tagname_tag" +# method that returns a {Tag} object, but they will not take advantage of tag factory +# parsing: +# +# def mytag_tag(text) +# Tag.new(:mytag, text) +# end +# +# == Defining Custom Directives +# +# Directives can be defined by calling the {define_directive} method, taking +# the directive name, an optional tag factory parser method (to parse the +# data in the directive into a temporary {Tag} object) and a {Directive} subclass +# that performs the directive processing. For more information on creating a +# Directive subclass, see the {Directive} class documentation. +# +# Similar to tags, Directives can also be defined manually, in this case using +# the method name "mydirective_directive" and returning a new {Directive} object: +# +# def mydirective_directive(tag, parser) +# MyDirective.new(tag, parser) +# end +# +# == Namespaced Tags +# +# In YARD 0.8.0+, tags can be namespaced using the '.' character. It is recommended +# to namespace project specific tags, like +@yard.tag_name+, so that tags do not +# collide with other plugins or new built-in tags. +# +# == Adding/Changing the Tag Syntax +# +# If you have specialized tag parsing needs you can substitute the {#factory} +# object with your own by setting {Library.default_factory= Library.default_factory} +# to a new class with its own parsing methods before running YARD. This is useful +# if you want to change the syntax of existing tags (@see, @since, etc.) +# +# @example Defining a custom tag +# define_tag "Parameter", :param, :with_types_and_name +# define_tag "Author", :author +# @example Defining a custom directive +# define_directive :method, :with_title_and_text, MethodDirective +# @see DefaultFactory +# @see define_tag +# @see define_directive +# @see Directive +# +# source://yard//lib/yard/tags/library.rb#59 +class YARD::Tags::Library + # @return [Library] a new instance of Library + # + # source://yard//lib/yard/tags/library.rb#260 + def initialize(factory = T.unsafe(nil)); end + + # Marks a class/module/method as abstract with optional + # implementor information. + # + # @example + # # @abstract Subclass and override {#run} to implement + # # a custom Threadable class. + # class Runnable + # def run; raise NotImplementedError end + # end + # + # source://yard//lib/yard/tags/library.rb#168 + def abstract_tag(text); end + + # Declares the API that the object belongs to. Does not display in + # output, but useful for performing queries (+yardoc --query+). Any text is + # allowable in this tag, and there are no predefined values. + # + # @example + # class Post + # # @api private + # def reset_table!; table.flush end + # end + # @note This tag is *transitive*. If it is applied on a + # namespace (module or class), it will immediately be + # applied to all children objects of that namespace unless + # it is redefined on the child object. + # @note The special name +@api private+ does display a notice in + # documentation if it is listed, letting users know that the + # method is not to be used by external components. + # + # source://yard//lib/yard/tags/library.rb#168 + def api_tag(text); end + + # Declares a readonly attribute on a Struct or class. + # + # @deprecated Use the more powerful {tag:!attribute} directive instead. + # @example + # # @attr_reader [String] name the name of the structure + # # @attr_reader [Fixnum] size the size of the structure + # class MyStruct < Struct; end + # @note This attribute is only applicable on class docstrings + # + # source://yard//lib/yard/tags/library.rb#168 + def attr_reader_tag(text); end + + # Declares a readwrite attribute on a Struct or class. + # + # @deprecated Use the more powerful {tag:!attribute} directive instead. + # @example + # # @attr [String] name the name of the structure + # # @attr [Fixnum] size the size of the structure + # class MyStruct < Struct; end + # @note This attribute is only applicable on class docstrings + # + # source://yard//lib/yard/tags/library.rb#168 + def attr_tag(text); end + + # Declares a writeonly attribute on a Struct or class. + # + # @deprecated Use the more powerful {tag:!attribute} directive instead. + # @example + # # @attr_reader [String] name the name of the structure + # # @attr_reader [Fixnum] size the size of the structure + # class MyStruct < Struct; end + # @note This attribute is only applicable on class docstrings + # + # source://yard//lib/yard/tags/library.rb#168 + def attr_writer_tag(text); end + + # source://yard//lib/yard/tags/library.rb#202 + def attribute_directive(tag, parser); end + + # List the author or authors of a class, module, or method. + # + # @example + # # @author Foo Bar <foo@bar.com> + # class MyClass; end + # + # source://yard//lib/yard/tags/library.rb#168 + def author_tag(text); end + + # Marks a method/class as deprecated with an optional description. + # The description should be used to inform users of the recommended + # migration path, and/or any useful information about why the object + # was marked as deprecated. + # + # @example Deprecate a method with a replacement API + # # @deprecated Use {#bar} instead. + # def foo; end + # @example Deprecate a method with no replacement + # class Thread + # # @deprecated Exiting a thread in this way is not reliable and + # # can cause a program crash. + # def kill; end + # end + # + # source://yard//lib/yard/tags/library.rb#168 + def deprecated_tag(text); end + + # Creates a new directive with tag information and a docstring parser + # object. + # + # @param tag_name [String] the name of the tag + # @param tag_buf [String] the tag data + # @param parser [DocstringParser] the parser object parsing the docstring + # @return [Directive] the newly created directive + # + # source://yard//lib/yard/tags/library.rb#290 + def directive_create(tag_name, tag_buf, parser); end + + # source://yard//lib/yard/tags/library.rb#202 + def endgroup_directive(tag, parser); end + + # Show an example snippet of code for an object. The first line + # is an optional title. + # + # @example + # # @example Reverse a String + # # "mystring".reverse #=> "gnirtsym" + # def reverse; end + # + # source://yard//lib/yard/tags/library.rb#168 + def example_tag(text); end + + # A factory class to handle parsing of tags, defaults to {default_factory} + # + # source://yard//lib/yard/tags/library.rb#258 + def factory; end + + # A factory class to handle parsing of tags, defaults to {default_factory} + # + # source://yard//lib/yard/tags/library.rb#258 + def factory=(_arg0); end + + # source://yard//lib/yard/tags/library.rb#202 + def group_directive(tag, parser); end + + # @param tag_name [#to_s] the name of the tag to look for + # @return [Boolean] whether a directive by the given name is registered in + # the library. + # + # source://yard//lib/yard/tags/library.rb#280 + def has_directive?(tag_name); end + + # @param tag_name [#to_s] the name of the tag to look for + # @return [Boolean] whether a tag by the given name is registered in + # the library. + # + # source://yard//lib/yard/tags/library.rb#267 + def has_tag?(tag_name); end + + # source://yard//lib/yard/tags/library.rb#202 + def macro_directive(tag, parser); end + + # source://yard//lib/yard/tags/library.rb#202 + def method_directive(tag, parser); end + + # Adds an emphasized note at the top of the docstring for the object + # + # @example + # # @note This method should only be used in outer space. + # def eject; end + # @see tag:todo + # + # source://yard//lib/yard/tags/library.rb#168 + def note_tag(text); end + + # Describe an options hash in a method. The tag takes the + # name of the options parameter first, followed by optional types, + # the option key name, a default value for the key and a + # description of the option. The default value should be placed within + # parentheses and is optional (can be omitted). + # + # Note that a +@param+ tag need not be defined for the options + # hash itself, though it is useful to do so for completeness. + # + # @example + # # @param [Hash] opts the options to create a message with. + # # @option opts [String] :subject The subject + # # @option opts [String] :from ('nobody') From address + # # @option opts [String] :to Recipient email + # # @option opts [String] :body ('') The email's body + # def send_email(opts = {}) end + # @note For keyword parameters, use +@param+, not +@option+. + # + # source://yard//lib/yard/tags/library.rb#168 + def option_tag(text); end + + # Describe that your method can be used in various + # contexts with various parameters or return types. The first + # line should declare the new method signature, and the following + # indented tag data will be a new documentation string with its + # own tags adding metadata for such an overload. + # + # @example + # # @overload set(key, value) + # # Sets a value on key + # # @param key [Symbol] describe key param + # # @param value [Object] describe value param + # # @overload set(value) + # # Sets a value on the default key +:foo+ + # # @param value [Object] describe value param + # def set(*args) end + # + # source://yard//lib/yard/tags/library.rb#161 + def overload_tag(text); end + + # Documents a single method parameter (either regular or keyword) with a given name, type + # and optional description. + # + # @example + # # @param url [String] the URL of the page to download + # # @param directory [String] the name of the directory to save to + # def load_page(url, directory: 'pages') end + # + # source://yard//lib/yard/tags/library.rb#168 + def param_tag(text); end + + # source://yard//lib/yard/tags/library.rb#202 + def parse_directive(tag, parser); end + + # Declares that the _logical_ visibility of an object is private. + # In other words, it specifies that this method should be marked + # private but cannot due to Ruby's visibility restrictions. This + # exists for classes, modules and constants that do not obey Ruby's + # visibility rules. For instance, an inner class might be considered + # "private", though Ruby would make no such distinction. + # + # This tag is meant to be used in conjunction with the +--no-private+ + # command-line option, and is required to actually remove these objects + # from documentation output. See {file:README.md} for more information on + # switches. + # + # If you simply want to set the API visibility of a method, you should + # look at the {tag:api} tag instead. + # + # @example + # # @private + # class InteralImplementation; end + # @note This method is not recommended for hiding undocumented or + # "unimportant" methods. This tag should only be used to mark objects + # private when Ruby visibility rules cannot do so. In Ruby 1.9.3, you + # can use +private_constant+ to declare constants (like classes or + # modules) as private, and should be used instead of +@private+. + # @note This tag is *transitive*. If it is applied on a + # namespace (module or class), it will immediately be + # applied to all children objects of that namespace unless + # it is redefined on the child object. + # @see tag:api + # + # source://yard//lib/yard/tags/library.rb#168 + def private_tag(text); end + + # Describes that a method may raise a given exception, with + # an optional description of what it may mean. + # + # @example + # # @raise [AccountBalanceError] if the account does not have + # # sufficient funds to perform the transaction + # def withdraw(amount) end + # + # source://yard//lib/yard/tags/library.rb#168 + def raise_tag(text); end + + # Describes the return value (and type or types) of a method. + # You can list multiple return tags for a method in the case + # where a method has distinct return cases. In this case, each + # case should begin with "if ...". + # + # @example A regular return value + # # @return [Fixnum] the size of the file + # def size; @file.size end + # @example A method returns an Array or a single object + # # @return [String] if a single object was returned + # # from the database. + # # @return [Array<String>] if multiple objects were + # # returned. + # def find(query) end + # + # source://yard//lib/yard/tags/library.rb#168 + def return_tag(text); end + + # Sets the scope of a DSL method. Only applicable to DSL method + # calls. Acceptable values are 'class' or 'instance' + # + # source://yard//lib/yard/tags/library.rb#202 + def scope_directive(tag, parser); end + + # "See Also" references for an object. Accepts URLs or + # other code objects with an optional description at the end. + # Note that the URL or object will be automatically linked by + # YARD and does not need to be formatted with markup. + # + # @example + # # Synchronizes system time using NTP. + # # @see http://ntp.org/documentation.html NTP Documentation + # # @see NTPHelperMethods + # class NTPUpdater; end + # + # source://yard//lib/yard/tags/library.rb#168 + def see_tag(text); end + + # Lists the version that the object was first added. + # + # @example + # # @since 1.2.4 + # def clear_routes; end + # @note This tag is *transitive*. If it is applied on a + # namespace (module or class), it will immediately be + # applied to all children objects of that namespace unless + # it is redefined on the child object. + # + # source://yard//lib/yard/tags/library.rb#168 + def since_tag(text); end + + # Creates a new {Tag} object with a given tag name and data + # + # @return [Tag] the newly created tag object + # + # source://yard//lib/yard/tags/library.rb#273 + def tag_create(tag_name, tag_buf); end + + # Marks a TODO note in the object being documented. + # For reference, objects with TODO items can be enumerated + # from the command line with a simple command: + # + # !!!sh + # mocker$ yard list --query '@todo' + # lib/mocker/mocker.rb:15: Mocker + # lib/mocker/report/html.rb:5: Mocker::Report::Html + # + # YARD can also be used to enumerate the TODO items from + # a short script: + # + # !!!ruby + # require 'yard' + # YARD::Registry.load!.all.each do |o| + # puts o.tag(:todo).text if o.tag(:todo) + # end + # + # @example + # # @todo Add support for Jabberwocky service. + # # There is an open source Jabberwocky library available + # # at http://jbrwcky.org that can be easily integrated. + # class Wonderlander; end + # @see tag:note + # + # source://yard//lib/yard/tags/library.rb#168 + def todo_tag(text); end + + # Lists the version of a class, module or method. This is + # similar to a library version, but at finer granularity. + # In some cases, version of specific modules, classes, methods + # or generalized components might change independently between + # releases. A version tag is used to infer the API compatibility + # of a specific object. + # + # @example + # # The public REST API for http://jbrwcky.org + # # @version 2.0 + # class JabberwockyAPI; end + # + # source://yard//lib/yard/tags/library.rb#168 + def version_tag(text); end + + # Sets the visibility of a DSL method. Only applicable to + # DSL method calls. Acceptable values are public, protected, or private. + # + # source://yard//lib/yard/tags/library.rb#202 + def visibility_directive(tag, parser); end + + # Describes what a method might yield to a given block. + # The types specifier list should not list types, but names + # of the parameters yielded to the block. If you define + # parameters with +@yieldparam+, you do not need to define + # the parameters in the type specification of +@yield+ as + # well. + # + # @example + # # For a block {|a,b,c| ... } + # # @yield [a, b, c] Gives 3 random numbers to the block + # def provide3values(&block) yield(42, 42, 42) end + # @see tag:yieldparam + # @see tag:yieldreturn + # + # source://yard//lib/yard/tags/library.rb#168 + def yield_tag(text); end + + # Defines a parameter yielded by a block. If you define the + # parameters with +@yieldparam+, you do not need to define + # them via +@yield+ as well. + # + # @example + # # @yieldparam [String] name the name that is yielded + # def with_name(name) yield(name) end + # + # source://yard//lib/yard/tags/library.rb#168 + def yieldparam_tag(text); end + + # Documents the value and type that the block is expected + # to return to the method. + # + # @example + # # @yieldreturn [Fixnum] the number to add 5 to. + # def add5_block(&block) 5 + yield end + # @see tag:return + # + # source://yard//lib/yard/tags/library.rb#168 + def yieldreturn_tag(text); end + + private + + # @return [Directive] + # + # source://yard//lib/yard/tags/library.rb#244 + def directive_call(tag, parser); end + + # source://yard//lib/yard/tags/library.rb#233 + def send_to_factory(tag_name, meth, text); end + + class << self + # Replace the factory object responsible for parsing tags by setting + # this to an object (or class) that responds to +parse_TAGNAME+ methods + # where +TAGNAME+ is the name of the tag. + # + # You should set this value before performing any source parsing with + # YARD, otherwise your factory class will not be used. + # + # @example + # YARD::Tags::Library.default_factory = MyFactory + # @see DefaultFactory + # + # source://yard//lib/yard/tags/library.rb#83 + def default_factory; end + + # Replace the factory object responsible for parsing tags by setting + # this to an object (or class) that responds to +parse_TAGNAME+ methods + # where +TAGNAME+ is the name of the tag. + # + # You should set this value before performing any source parsing with + # YARD, otherwise your factory class will not be used. + # + # @example + # YARD::Tags::Library.default_factory = MyFactory + # @see DefaultFactory + # + # source://yard//lib/yard/tags/library.rb#87 + def default_factory=(factory); end + + # @overload define_directive + # + # source://yard//lib/yard/tags/library.rb#196 + def define_directive(tag, tag_meth = T.unsafe(nil), directive_class = T.unsafe(nil)); end + + # Convenience method to define a new tag using one of {Tag}'s factory methods, or the + # regular {DefaultFactory#parse_tag} factory method if none is supplied. + # + # @param label [#to_s] the label used when displaying the tag in templates + # @param tag [#to_s] the tag name to create + # @param meth [#to_s, Class<Tag>] the {Tag} factory method to call when + # creating the tag or the name of the class to directly create a tag for + # + # source://yard//lib/yard/tags/library.rb#157 + def define_tag(label, tag, meth = T.unsafe(nil)); end + + # source://yard//lib/yard/tags/library.rb#220 + def directive_method_name(tag_name); end + + # Returns the factory method used to parse the tag text for a specific tag + # + # @param tag [Symbol] the tag name + # @return [Symbol] the factory method name for the tag + # @return [Class<Tag>, Symbol] the Tag class to use to parse the tag + # or the method to call on the factory class + # @return [nil] if the tag is freeform text + # @since 0.6.0 + # + # source://yard//lib/yard/tags/library.rb#99 + def factory_method_for(tag); end + + # Returns the factory method used to parse the tag text for a specific + # directive + # + # @param directive [Symbol] the directive name + # @return [Symbol] the factory method name for the tag + # @return [Class<Tag>, Symbol] the Tag class to use to parse the tag or + # the methods to call on the factory class + # @return [nil] if the tag is freeform text + # @since 0.8.0 + # + # source://yard//lib/yard/tags/library.rb#112 + def factory_method_for_directive(directive); end + + # @return [Library] the main Library instance object. + # + # source://yard//lib/yard/tags/library.rb#67 + def instance; end + + # @return [SymbolHash{Symbol=>String}] the map of tag names and their + # respective display labels. + # + # source://yard//lib/yard/tags/library.rb#63 + def labels; end + + # Sorts the labels lexically by their label name, often used when displaying + # the tags. + # + # @return [Array<Symbol>, String] the sorted labels as an array of the tag name and label + # + # source://yard//lib/yard/tags/library.rb#142 + def sorted_labels; end + + # source://yard//lib/yard/tags/library.rb#216 + def tag_method_name(tag_name); end + + # Sets the list of tags that should apply to any children inside the + # namespace they are defined in. For instance, a "@since" tag should + # apply to all methods inside a module it is defined in. Transitive + # tags can be overridden by directly defining a tag on the child object. + # + # @return [Array<Symbol>] a list of transitive tags + # @since 0.6.0 + # + # source://yard//lib/yard/tags/library.rb#136 + def transitive_tags; end + + # Sets the list of tags that should apply to any children inside the + # namespace they are defined in. For instance, a "@since" tag should + # apply to all methods inside a module it is defined in. Transitive + # tags can be overridden by directly defining a tag on the child object. + # + # @return [Array<Symbol>] a list of transitive tags + # @since 0.6.0 + # + # source://yard//lib/yard/tags/library.rb#136 + def transitive_tags=(_arg0); end + + # Sets the list of tags to display when rendering templates. The order of + # tags in the list is also significant, as it represents the order that + # tags are displayed in templates. + # + # You can use the {Array#place} to insert new tags to be displayed in + # the templates at specific positions: + # + # Library.visible_tags.place(:mytag).before(:return) + # + # @return [Array<Symbol>] a list of ordered tags + # @since 0.6.0 + # + # source://yard//lib/yard/tags/library.rb#127 + def visible_tags; end + + # Sets the list of tags to display when rendering templates. The order of + # tags in the list is also significant, as it represents the order that + # tags are displayed in templates. + # + # You can use the {Array#place} to insert new tags to be displayed in + # the templates at specific positions: + # + # Library.visible_tags.place(:mytag).before(:return) + # + # @return [Array<Symbol>] a list of ordered tags + # @since 0.6.0 + # + # source://yard//lib/yard/tags/library.rb#127 + def visible_tags=(_arg0); end + + private + + # source://yard//lib/yard/tags/library.rb#226 + def tag_or_directive_method_name(tag_name, type = T.unsafe(nil)); end + end +end + +# Defines a block of text to be expanded whenever the macro is called by name +# in subsequent docstrings. The macro data can be any arbitrary text data, be +# it regular documentation, meta-data tags or directives. +# +# == Defining a Macro +# +# A macro must first be defined in order to be used. Note that a macro is also +# expanded upon definition if it defined on an object (the docstring of a +# method, class, module or constant object as opposed to a free standing +# comment). To define a macro, use the "new" or "attach" identifier in the +# types specifier list. A macro will also automatically be created if an +# indented macro data block is given, so the keywords are not strictly needed. +# +# === Anonymous Macros +# +# In addition to standard named macros, macros can be defined anonymously if +# no name is given. In this case, they can not be re-used in future docstrings, +# but they will expand in the first definition. This is useful when needing +# to take advantage of the macro expansion variables (described below). +# +# == Using a Macro +# +# To re-use a macro in another docstring after it is defined, simply use +# <tt>@!macro the_name</tt> with no indented block of macro data. The resulting +# data will be expanded in place. +# +# == Attaching a Macro to a DSL Method +# +# Macros can be defined to auto-expand on DSL-style class method calls. To +# define a macro to be auto expanded in this way, use the "attach" keyword +# in the type specifier list ("new" is implied). +# +# Attached macros can also be attached directly on the class method declaration +# that provides the DSL method to its subclasses. The syntax in either case +# is the same. +# +# == Macro Expansion Variables +# +# In the case of using macros on DSL-style method calls, a number of expansion +# variables can be used for interpolation inside of the macro data. The variables, +# similar in syntax to Ruby's global variables, are as follows: +# +# * $0 - the method name being called +# * $1, $2, $3, ... - the Nth argument in the method call +# * $& - the full source line +# +# The following example shows what the expansion variables might hold for a given +# DSL method call: +# +# property :foo, :a, :b, :c, String +# # $0 => "property" +# # $1 => "foo" +# # $2 => "a" +# # $& => "property :foo, :a, :b, :c, String" +# +# === Ranges +# +# Ranges are also acceptable with the syntax <tt>${N-M}</tt>. Negative values +# on either N or M are valid, and refer to indexes from the end of the list. +# Consider a DSL method that creates a method using the first argument with +# argument names following, ending with the return type of the method. This +# could be documented as: +# +# # @!macro dsl_method +# # @!method $1(${2--2}) +# # @return [${-1}] the return value of $0 +# create_method_with_args :foo, :a, :b, :c, String +# +# As described, the method is using the signature <tt>foo(a, b, c)</tt> and the return +# type from the last argument, +String+. When using ranges, tokens are joined +# with commas. Note that this includes using $0: +# +# !!!plain +# $0-1 # => Interpolates to "create_method_with_args, foo" +# +# If you want to separate them with spaces, use <tt>$1 $2 $3 $4 ...</tt>. Note that +# if the token cannot be expanded, it will return the empty string (not an error), +# so it would be safe to list <tt>$1 $2 ... $10</tt>, for example. +# +# === Escaping Interpolation +# +# Interpolation can be escaped by prefixing the +$+ with +\\\+, like so: +# +# # @!macro foo +# # I have \$2.00 USD. +# +# @example Defining a simple macro +# # @!macro [new] returnself +# # @return [self] returns itself +# @example Using a simple macro in multiple docstrings +# # Documentation for map +# # ... +# # @macro returnself +# def map; end +# +# # Documentation for filter +# # ... +# # @macro returnself +# def filter; end +# @example Attaching a macro to a class method (for DSL usage) +# class Resource +# # Defines a new property +# # @param [String] name the property name +# # @param [Class] type the property's type +# # @!macro [attach] property +# # @return [$2] the $1 property +# def self.property(name, type) end +# end +# +# class Post < Resource +# property :title, String +# property :view_count, Integer +# end +# @example Attaching a macro directly to a DSL method +# class Post < Resource +# # @!macro [attach] property +# # @return [$2] the $1 property +# property :title, String +# +# # Macro will expand on this definition too +# property :view_count, Integer +# end +# @since 0.7.0 +# +# source://yard//lib/yard/tags/directives.rb#258 +class YARD::Tags::MacroDirective < ::YARD::Tags::Directive + # @raise [TagFormatError] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#259 + def call; end + + private + + # @return [Boolean] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#288 + def anonymous?; end + + # @return [Boolean] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#277 + def attach?; end + + # @return [Boolean] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#283 + def class_method?; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#292 + def expand(macro_data); end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#308 + def find_or_create; end + + # @return [Boolean] + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#272 + def new?; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#332 + def warn; end +end + +# Defines a method object with a given method signature, using indented +# block data as the method's docstring. The signature is similar to the +# {tag:overload} tag. The comment containing this directive does not need +# to be attached to any source, but if it is, that source code will be +# used as the method's source. +# +# To define an attribute method, see {tag:!attribute} +# +# @example Defining a simple method +# # @!method quit(username, message = "Quit") +# # Sends a quit message to the server for a +username+. +# # @param [String] username the username to quit +# # @param [String] message the quit message +# quit_message_method +# @example Attaching multiple methods to the same source +# # @!method method1 +# # @!method method2 +# create_methods :method1, :method2 +# @note This directive should only be used if there is no explicit +# declaration for the method in any source files (i.e., the method +# is declared dynamically via meta-programming). In all other cases, add +# documentation to the method definition itself. +# @note For backwards compatibility support, you do not need to indent +# the method's docstring text. If a +@!method+ directive is seen with +# no indented block, the entire docstring is used as the new method's +# docstring text. +# @see tag:!attribute +# @since 0.7.0 +# +# source://yard//lib/yard/tags/directives.rb#368 +class YARD::Tags::MethodDirective < ::YARD::Tags::Directive + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#373 + def after_parse; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#371 + def call; end + + protected + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#413 + def create_object; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#381 + def method_name; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#390 + def method_signature; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#394 + def sanitized_tag_signature; end + + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#403 + def use_indented_text; end +end + +# @since 0.7.0 +# +# source://yard//lib/yard/tags/directives.rb#369 +YARD::Tags::MethodDirective::SCOPE_MATCH = T.let(T.unsafe(nil), Regexp) + +# source://yard//lib/yard/tags/option_tag.rb#4 +class YARD::Tags::OptionTag < ::YARD::Tags::Tag + # @return [OptionTag] a new instance of OptionTag + # + # source://yard//lib/yard/tags/option_tag.rb#7 + def initialize(tag_name, name, pair); end + + # Returns the value of attribute pair. + # + # source://yard//lib/yard/tags/option_tag.rb#5 + def pair; end + + # Sets the attribute pair + # + # @param value the value to set the attribute pair to. + # + # source://yard//lib/yard/tags/option_tag.rb#5 + def pair=(_arg0); end +end + +# source://yard//lib/yard/tags/overload_tag.rb#4 +class YARD::Tags::OverloadTag < ::YARD::Tags::Tag + # @return [OverloadTag] a new instance of OverloadTag + # + # source://yard//lib/yard/tags/overload_tag.rb#7 + def initialize(tag_name, text); end + + # Returns the value of attribute docstring. + # + # source://yard//lib/yard/tags/overload_tag.rb#5 + def docstring; end + + # @return [Boolean] + # + # source://yard//lib/yard/tags/overload_tag.rb#15 + def has_tag?(name); end + + # @return [Boolean] + # + # source://yard//lib/yard/tags/overload_tag.rb#36 + def is_a?(other); end + + # @return [Boolean] + # + # source://yard//lib/yard/tags/overload_tag.rb#36 + def kind_of?(other); end + + # source://yard//lib/yard/tags/overload_tag.rb#28 + def method_missing(*args, &block); end + + # source://yard//lib/yard/tags/overload_tag.rb#23 + def name(prefix = T.unsafe(nil)); end + + # source://yard//lib/yard/tags/overload_tag.rb#17 + def object=(value); end + + # Returns the value of attribute parameters. + # + # source://yard//lib/yard/tags/overload_tag.rb#5 + def parameters; end + + # Returns the value of attribute signature. + # + # source://yard//lib/yard/tags/overload_tag.rb#5 + def signature; end + + # source://yard//lib/yard/tags/overload_tag.rb#13 + def tag(name); end + + # source://yard//lib/yard/tags/overload_tag.rb#14 + def tags(name = T.unsafe(nil)); end + + # source://yard//lib/yard/tags/overload_tag.rb#32 + def type; end + + private + + # source://yard//lib/yard/tags/overload_tag.rb#53 + def parse_signature; end + + # source://yard//lib/yard/tags/overload_tag.rb#43 + def parse_tag(text); end +end + +# Parses a block of code as if it were present in the source file at that +# location. This directive is useful if a class has dynamic meta-programmed +# behaviour that cannot be recognized by YARD. +# +# You can specify the language of the code block using the types +# specification list. By default, the code language is "ruby". +# +# @example Documenting dynamic module inclusion +# class User +# # includes "UserMixin" and extends "UserMixin::ClassMethods" +# # using the UserMixin.included callback. +# # @!parse include UserMixin +# # @!parse extend UserMixin::ClassMethods +# end +# @example Declaring a method as an attribute +# # This should really be an attribute +# # @!parse attr_reader :foo +# def object; @parent.object end +# @example Parsing C code +# # @!parse [c] +# # void Init_Foo() { +# # rb_define_method(rb_cFoo, "method", method, 0); +# # } +# @since 0.8.0 +# +# source://yard//lib/yard/tags/directives.rb#545 +class YARD::Tags::ParseDirective < ::YARD::Tags::Directive + # @since 0.8.0 + # + # source://yard//lib/yard/tags/directives.rb#546 + def call; end +end + +# source://yard//lib/yard/tags/ref_tag.rb#4 +module YARD::Tags::RefTag + # Returns the value of attribute owner. + # + # source://yard//lib/yard/tags/ref_tag.rb#5 + def owner; end + + # Sets the attribute owner + # + # @param value the value to set the attribute owner to. + # + # source://yard//lib/yard/tags/ref_tag.rb#5 + def owner=(_arg0); end +end + +# source://yard//lib/yard/tags/ref_tag_list.rb#4 +class YARD::Tags::RefTagList + # @return [RefTagList] a new instance of RefTagList + # + # source://yard//lib/yard/tags/ref_tag_list.rb#7 + def initialize(tag_name, owner, name = T.unsafe(nil)); end + + # Returns the value of attribute name. + # + # source://yard//lib/yard/tags/ref_tag_list.rb#5 + def name; end + + # Sets the attribute name + # + # @param value the value to set the attribute name to. + # + # source://yard//lib/yard/tags/ref_tag_list.rb#5 + def name=(_arg0); end + + # Returns the value of attribute owner. + # + # source://yard//lib/yard/tags/ref_tag_list.rb#5 + def owner; end + + # Sets the attribute owner + # + # @param value the value to set the attribute owner to. + # + # source://yard//lib/yard/tags/ref_tag_list.rb#5 + def owner=(_arg0); end + + # Returns the value of attribute tag_name. + # + # source://yard//lib/yard/tags/ref_tag_list.rb#5 + def tag_name; end + + # Sets the attribute tag_name + # + # @param value the value to set the attribute tag_name to. + # + # source://yard//lib/yard/tags/ref_tag_list.rb#5 + def tag_name=(_arg0); end + + # source://yard//lib/yard/tags/ref_tag_list.rb#13 + def tags; end +end + +# Modifies the current parsing scope (class or instance). If this +# directive is defined on a docstring attached to an object definition, +# it is applied only to that object. Otherwise, it applies the scope +# to all future objects in the namespace. +# +# @example Modifying the scope of a DSL method +# # @!scope class +# cattr_accessor :subclasses +# @example Modifying the scope of a set of methods +# # @!scope class +# +# # Documentation for method1 +# def method1; end +# +# # Documentation for method2 +# def method2; end +# @since 0.7.0 +# +# source://yard//lib/yard/tags/directives.rb#579 +class YARD::Tags::ScopeDirective < ::YARD::Tags::Directive + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#580 + def call; end +end + +# Represents a metadata tag value (+@tag+). Tags can have any combination of +# {#types}, {#name} and {#text}, or none of the above. +# +# @example Programmatic tag creation +# # The following docstring syntax: +# # @param [String, nil] arg an argument +# # +# # is equivalent to: +# Tag.new(:param, 'an argument', ['String', 'nil'], 'arg') +# +# source://yard//lib/yard/tags/tag.rb#13 +class YARD::Tags::Tag + # Creates a new tag object with a tag name and text. Optionally, formally declared types + # and a key name can be specified. + # + # Types are mainly for meta tags that rely on type information, such as +param+, +return+, etc. + # + # Key names are for tags that declare meta data for a specific key or name, such as +param+, + # +raise+, etc. + # + # @param tag_name [#to_s] the tag name to create the tag for + # @param text [String] the descriptive text for this tag + # @param types [Array<String>] optional type list of formally declared types + # for the tag + # @param name [String] optional key name which the tag refers to + # @return [Tag] a new instance of Tag + # + # source://yard//lib/yard/tags/tag.rb#44 + def initialize(tag_name, text, types = T.unsafe(nil), name = T.unsafe(nil)); end + + # Provides a plain English summary of the type specification, or nil + # if no types are provided or parsable. + # + # @return [String] a plain English description of the associated types + # @return [nil] if no types are provided or not parsable + # + # source://yard//lib/yard/tags/tag.rb#65 + def explain_types; end + + # @return [String] a name associated with the tag + # + # source://yard//lib/yard/tags/tag.rb#26 + def name; end + + # @return [String] a name associated with the tag + # + # source://yard//lib/yard/tags/tag.rb#26 + def name=(_arg0); end + + # @return [CodeObjects::Base] the associated object + # + # source://yard//lib/yard/tags/tag.rb#29 + def object; end + + # @return [CodeObjects::Base] the associated object + # + # source://yard//lib/yard/tags/tag.rb#29 + def object=(_arg0); end + + # @return [String] the name of the tag + # + # source://yard//lib/yard/tags/tag.rb#15 + def tag_name; end + + # @return [String] the name of the tag + # + # source://yard//lib/yard/tags/tag.rb#15 + def tag_name=(_arg0); end + + # @return [String] the tag text associated with the tag + # @return [nil] if no tag text is supplied + # + # source://yard//lib/yard/tags/tag.rb#19 + def text; end + + # @return [String] the tag text associated with the tag + # @return [nil] if no tag text is supplied + # + # source://yard//lib/yard/tags/tag.rb#19 + def text=(_arg0); end + + # Convenience method to access the first type specified. This should mainly + # be used for tags that only specify one type. + # + # @return [String] the first of the list of specified types + # @see #types + # + # source://yard//lib/yard/tags/tag.rb#56 + def type; end + + # @return [Array<String>] a list of types associated with the tag + # @return [nil] if no types are associated with the tag + # + # source://yard//lib/yard/tags/tag.rb#23 + def types; end + + # @return [Array<String>] a list of types associated with the tag + # @return [nil] if no types are associated with the tag + # + # source://yard//lib/yard/tags/tag.rb#23 + def types=(_arg0); end +end + +# source://yard//lib/yard/tags/tag_format_error.rb#4 +class YARD::Tags::TagFormatError < ::RuntimeError; end + +# source://yard//lib/yard/tags/types_explainer.rb#6 +class YARD::Tags::TypesExplainer + class << self + # Provides a plain English summary of the type specification, or nil + # if no types are provided or parsable. + # + # @param types [Array<String>] a list of types to parse and summarize + # @return [String] a plain English description of the associated types + # @return [nil] if no types are provided or not parsable + # + # source://yard//lib/yard/tags/types_explainer.rb#9 + def explain(*types); end + + # Provides a plain English summary of the type specification, or nil + # if no types are provided or parsable. + # + # @param types [Array<String>] a list of types to parse and summarize + # @raise [SyntaxError] if the types are not parsable + # @return [String] a plain English description of the associated types + # @return [nil] if no types are provided or not parsable + # + # source://yard//lib/yard/tags/types_explainer.rb#17 + def explain!(*types); end + + private + + def new(*_arg0); end + end +end + +# @private +# +# source://yard//lib/yard/tags/types_explainer.rb#58 +class YARD::Tags::TypesExplainer::CollectionType < ::YARD::Tags::TypesExplainer::Type + # @return [CollectionType] a new instance of CollectionType + # + # source://yard//lib/yard/tags/types_explainer.rb#61 + def initialize(name, types); end + + # source://yard//lib/yard/tags/types_explainer.rb#66 + def to_s(_singular = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://yard//lib/yard/tags/types_explainer.rb#59 + def types; end + + # Sets the attribute types + # + # @param value the value to set the attribute types to. + # + # source://yard//lib/yard/tags/types_explainer.rb#59 + def types=(_arg0); end +end + +# @private +# +# source://yard//lib/yard/tags/types_explainer.rb#72 +class YARD::Tags::TypesExplainer::FixedCollectionType < ::YARD::Tags::TypesExplainer::CollectionType + # source://yard//lib/yard/tags/types_explainer.rb#73 + def to_s(_singular = T.unsafe(nil)); end +end + +# @private +# +# source://yard//lib/yard/tags/types_explainer.rb#79 +class YARD::Tags::TypesExplainer::HashCollectionType < ::YARD::Tags::TypesExplainer::Type + # @return [HashCollectionType] a new instance of HashCollectionType + # + # source://yard//lib/yard/tags/types_explainer.rb#82 + def initialize(name, key_types, value_types); end + + # Returns the value of attribute key_types. + # + # source://yard//lib/yard/tags/types_explainer.rb#80 + def key_types; end + + # Sets the attribute key_types + # + # @param value the value to set the attribute key_types to. + # + # source://yard//lib/yard/tags/types_explainer.rb#80 + def key_types=(_arg0); end + + # source://yard//lib/yard/tags/types_explainer.rb#88 + def to_s(_singular = T.unsafe(nil)); end + + # Returns the value of attribute value_types. + # + # source://yard//lib/yard/tags/types_explainer.rb#80 + def value_types; end + + # Sets the attribute value_types + # + # @param value the value to set the attribute value_types to. + # + # source://yard//lib/yard/tags/types_explainer.rb#80 + def value_types=(_arg0); end +end + +# @private +# +# source://yard//lib/yard/tags/types_explainer.rb#96 +class YARD::Tags::TypesExplainer::Parser + include ::YARD::CodeObjects + + # @return [Parser] a new instance of Parser + # + # source://yard//lib/yard/tags/types_explainer.rb#117 + def initialize(string); end + + # source://yard//lib/yard/tags/types_explainer.rb#121 + def parse; end + + class << self + # source://yard//lib/yard/tags/types_explainer.rb#113 + def parse(string); end + end +end + +# source://yard//lib/yard/tags/types_explainer.rb#99 +YARD::Tags::TypesExplainer::Parser::TOKENS = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://yard//lib/yard/tags/types_explainer.rb#26 +class YARD::Tags::TypesExplainer::Type + # @return [Type] a new instance of Type + # + # source://yard//lib/yard/tags/types_explainer.rb#29 + def initialize(name); end + + # Returns the value of attribute name. + # + # source://yard//lib/yard/tags/types_explainer.rb#27 + def name; end + + # Sets the attribute name + # + # @param value the value to set the attribute name to. + # + # source://yard//lib/yard/tags/types_explainer.rb#27 + def name=(_arg0); end + + # source://yard//lib/yard/tags/types_explainer.rb#33 + def to_s(singular = T.unsafe(nil)); end + + private + + # source://yard//lib/yard/tags/types_explainer.rb#45 + def list_join(list); end +end + +# Modifies the current parsing visibility (public, protected, or private). +# If this directive is defined on a docstring attached to an object +# definition, it is applied only to that object. Otherwise, it applies +# the visibility to all future objects in the namespace. +# +# @example Modifying the visibility of a DSL method +# # @!visibility private +# cattr_accessor :subclasses +# @example Modifying the visibility of a set of methods +# # Note that Ruby's "protected" is recommended over this directive +# # @!visibility protected +# +# # Documentation for method1 +# def method1; end +# +# # Documentation for method2 +# def method2; end +# @since 0.7.0 +# +# source://yard//lib/yard/tags/directives.rb#611 +class YARD::Tags::VisibilityDirective < ::YARD::Tags::Directive + # @since 0.7.0 + # + # source://yard//lib/yard/tags/directives.rb#612 + def call; end +end + +# Namespace for templating system +# +# source://yard//lib/yard/autoload.rb#271 +module YARD::Templates; end + +# This module manages all creation, handling and rendering of {Template} +# objects. +# +# * To create a template object at a path, use {template}. +# * To render a template, call {render}. +# * To register a template path in the lookup paths, call {register_template_path}. +# +# source://yard//lib/yard/templates/engine.rb#12 +module YARD::Templates::Engine + class << self + # Passes a set of objects to the +:fulldoc+ template for full documentation generation. + # This is called by {CLI::Yardoc} to most commonly perform HTML + # documentation generation. + # + # @param objects [Array<CodeObjects::Base>] a list of {CodeObjects::Base} + # objects to pass to the template + # @param options [Hash] (see {render}) + # @return [void] + # + # source://yard//lib/yard/templates/engine.rb#101 + def generate(objects, options = T.unsafe(nil)); end + + # Registers a new template path in {template_paths} + # + # @param path [String] a new template path + # @return [void] + # + # source://yard//lib/yard/templates/engine.rb#21 + def register_template_path(path); end + + # Renders a template on a {CodeObjects::Base code object} using + # a set of default (overridable) options. Either the +:object+ + # or +:type+ keys must be provided. + # + # If a +:serializer+ key is provided and +:serialize+ is not set to + # false, the rendered contents will be serialized through the {Serializers::Base} + # object. See {with_serializer}. + # + # @example Renders an object with html formatting + # Engine.render(:format => :html, :object => obj) + # @example Renders without an object + # Engine.render(:type => :fulldoc, :otheropts => somevalue) + # @option options + # @option options + # @option options + # @param options [Hash] the options hash + # @return [String] the rendered template + # + # source://yard//lib/yard/templates/engine.rb#82 + def render(options = T.unsafe(nil)); end + + # Creates a template module representing the path. Searches on disk + # for the first directory named +path+ (joined by '/') within the + # template paths and builds a template module for. All other matching + # directories in other template paths will be included in the + # generated module as mixins (for overriding). + # + # @param path [Array<String, Symbol>] a list of path components + # @raise [ArgumentError] if the path does not exist within one of the + # {template_paths} on disk. + # @return [Template] the module representing the template + # + # source://yard//lib/yard/templates/engine.rb#35 + def template(*path); end + + # Forces creation of a template at +path+ within a +full_path+. + # + # @param path [String] the path name of the template + # @param full_paths [Array<String>] the full path on disk of the template + # @return [Template] the template module representing the +path+ + # + # source://yard//lib/yard/templates/engine.rb#53 + def template!(path, full_paths = T.unsafe(nil)); end + + # @return [Array<String>] the list of registered template paths + # + # source://yard//lib/yard/templates/engine.rb#15 + def template_paths; end + + # @return [Array<String>] the list of registered template paths + # + # source://yard//lib/yard/templates/engine.rb#15 + def template_paths=(_arg0); end + + # Serializes the results of a block with a +serializer+ object. + # + # @param object [CodeObjects::Base] the code object to serialize + # @param serializer [Serializers::Base] the serializer object + # @see Serializers::Base + # @yield a block whose result will be serialize + # @yieldreturn [String] the contents to serialize + # + # source://yard//lib/yard/templates/engine.rb#115 + def with_serializer(object, serializer); end + + private + + # Searches through the registered {template_paths} and returns + # all full directories that have the +path+ within them on disk. + # + # @param from_template [Template] if provided, allows a relative + # path to be specified from this template's full path. + # @param path [String] the path component to search for in the + # {template_paths} + # @return [Array<String>] a list of full paths that are existing + # candidates for a template module + # + # source://yard//lib/yard/templates/engine.rb#161 + def find_template_paths(from_template, path); end + + # Sets default options on the options hash + # + # @option options + # @option options + # @option options + # @param options [Hash] the options hash + # @return [void] + # + # source://yard//lib/yard/templates/engine.rb#141 + def set_default_options(options = T.unsafe(nil)); end + + # The name of the module that represents a +path+ + # + # @param path [String] the path to generate a module name for + # @return [String] the module name + # + # source://yard//lib/yard/templates/engine.rb#176 + def template_module_name(path); end + end +end + +# @since 0.5.4 +# +# source://yard//lib/yard/templates/erb_cache.rb#5 +module YARD::Templates::ErbCache + class << self + # @since 0.5.4 + # + # source://yard//lib/yard/templates/erb_cache.rb#17 + def clear!; end + + # @since 0.5.4 + # + # source://yard//lib/yard/templates/erb_cache.rb#6 + def method_for(filename); end + end +end + +# Namespace for template helpers +# +# source://yard//lib/yard/autoload.rb#272 +module YARD::Templates::Helpers; end + +# The base helper module included in all templates. +# +# source://yard//lib/yard/templates/helpers/base_helper.rb#4 +module YARD::Templates::Helpers::BaseHelper + # @example + # s = format_object_title ModuleObject.new(:root, :MyModuleName) + # s # => "Module: MyModuleName" + # @param object [CodeObjects::Base] the object to retrieve a title for + # @return [String] the page title name for a given object + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#196 + def format_object_title(object); end + + # @example Formatted type of an exception class + # o = ClassObject.new(:root, :MyError) + # o.superclass = P('RuntimeError') + # format_object_type(o) # => "Exception" + # @example Formatted type of a method + # o = MethodObject.new(:root, :to_s) + # format_object_type(o) # => "Method" + # @param object [CodeObjects::Base] the object to retrieve the type for + # @return [String] the human-readable formatted {CodeObjects::Base#type #type} + # for the object + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#182 + def format_object_type(object); end + + # Indents and formats source code + # + # @param value [String] the input source code + # @return [String] formatted source code + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#209 + def format_source(value); end + + # Formats a list of return types for output and links each type. + # + # @example Formatting types + # format_types(['String', 'Array']) #=> "(String, Array)" + # @example Formatting types without surrounding brackets + # format_types(['String', 'Array'], false) #=> "String, Array" + # @param list [Array<String>] a list of types + # @param brackets [Boolean] whether to surround the types in brackets + # @return [String] the formatted list of Ruby types + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#168 + def format_types(list, brackets = T.unsafe(nil)); end + + # An object that keeps track of global state throughout the entire template + # rendering process (including any sub-templates). + # + # @return [OpenStruct] a struct object that stores state + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#20 + def globals; end + + # Escapes text. This is used a lot by the HtmlHelper and there should + # be some helper to "clean up" text for whatever, this is it. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#38 + def h(text); end + + # Links to an extra file + # + # @param filename [String] the filename to link to + # @param title [String] the title of the link + # @param anchor [String] optional anchor + # @return [String] the link to the file + # @since 0.5.5 + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#152 + def link_file(filename, title = T.unsafe(nil), anchor = T.unsafe(nil)); end + + # Include a file as a docstring in output + # + # @param file [String] the filename to include + # @return [String] the file's contents + # @since 0.7.0 + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#113 + def link_include_file(file); end + + # Includes an object's docstring into output. + # + # @param obj [CodeObjects::Base] the object to include + # @return [String] the object's docstring (no tags) + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#105 + def link_include_object(obj); end + + # Links to an object with an optional title + # + # @param obj [CodeObjects::Base] the object to link to + # @param title [String] the title to use for the link + # @return [String] the linked object + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#122 + def link_object(obj, title = T.unsafe(nil)); end + + # Links to a URL + # + # @param url [String] the URL to link to + # @param title [String] the optional title to display the link as + # @param params [Hash] optional parameters for the link + # @return [String] the linked URL + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#141 + def link_url(url, title = T.unsafe(nil), params = T.unsafe(nil)); end + + # Links objects or URLs. This method will delegate to the correct +link_+ + # method depending on the arguments passed in. + # + # @example Linking a URL + # linkify('http://example.com') + # @example Including docstring contents of an object + # linkify('include:YARD::Docstring') + # @example Linking to an extra file + # linkify('file:README') + # @example Linking an object by path + # linkify('YARD::Docstring') + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#55 + def linkify(*args); end + + # Returns the value of attribute object. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#5 + def object; end + + # Sets the attribute object + # + # @param value the value to set the attribute object to. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#5 + def object=(_arg0); end + + # @return [CodeObjects::Base] the object representing the current generated + # page. Might not be the current {#object} when inside sub-templates. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#11 + def owner; end + + # Runs a list of objects against the {Verifier} object passed into the + # template and returns the subset of verified objects. + # + # @param list [Array<CodeObjects::Base>] a list of code objects + # @return [Array<CodeObjects::Base>] a list of code objects that match + # the verifier. If no verifier is supplied, all objects are returned. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#30 + def run_verifier(list); end + + # Returns the value of attribute serializer. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#5 + def serializer; end + + # Sets the attribute serializer + # + # @param value the value to set the attribute serializer to. + # + # source://yard//lib/yard/templates/helpers/base_helper.rb#5 + def serializer=(_arg0); end +end + +# Helpers for various object types +# +# source://yard//lib/yard/templates/helpers/filter_helper.rb#5 +module YARD::Templates::Helpers::FilterHelper + # @return [Boolean] whether an object is a class + # + # source://yard//lib/yard/templates/helpers/filter_helper.rb#17 + def is_class?(object); end + + # @return [Boolean] whether an object is a method + # + # source://yard//lib/yard/templates/helpers/filter_helper.rb#7 + def is_method?(object); end + + # @return [Boolean] whether an object is a module + # + # source://yard//lib/yard/templates/helpers/filter_helper.rb#22 + def is_module?(object); end + + # @return [Boolean] whether an object is a namespace + # + # source://yard//lib/yard/templates/helpers/filter_helper.rb#12 + def is_namespace?(object); end +end + +# The helper module for HTML templates. +# +# source://yard//lib/yard/templates/helpers/html_helper.rb#7 +module YARD::Templates::Helpers::HtmlHelper + include ::YARD::Templates::Helpers::MarkupHelper + include ::YARD::Templates::Helpers::ModuleHelper + include ::YARD::Templates::Helpers::HtmlSyntaxHighlightHelper + + # @param object [CodeObjects::Base] the object to get an anchor for + # @return [String] the anchor for a specific object + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#347 + def anchor_for(object); end + + # Returns the current character set. The default value can be overridden + # by setting the +LANG+ environment variable or by overriding this + # method. In Ruby 1.9 you can also modify this value by setting + # +Encoding.default_external+. + # + # @return [String] the current character set + # @since 0.5.4 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#574 + def charset; end + + # Formats a list of objects and links them + # + # @return [String] a formatted list of objects + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#458 + def format_object_name_list(objects); end + + # Formats a list of types from a tag. + # + # @param typelist [Array<String>, FalseClass] the list of types to be formatted. + # @param brackets [Boolean] omits the surrounding + # brackets if +brackets+ is set to +false+. + # @return [String] the list of types formatted + # as [Type1, Type2, ...] with the types linked + # to their respective descriptions. + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#476 + def format_types(typelist, brackets = T.unsafe(nil)); end + + # Escapes HTML entities + # + # @param text [String] the text to escape + # @return [String] the HTML with escaped entities + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#23 + def h(text); end + + # Converts Asciidoc to HTML + # + # @param text [String] input Asciidoc text + # @return [String] output HTML + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#109 + def html_markup_asciidoc(text); end + + # Converts HTML to HTML + # + # @param text [String] input html + # @return [String] output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#168 + def html_markup_html(text); end + + # Converts Markdown to HTML + # + # @param text [String] input Markdown text + # @return [String] output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#78 + def html_markup_markdown(text); end + + # @return [String] the same text with no markup + # @since 0.6.6 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#160 + def html_markup_none(text); end + + # Converts org-mode to HTML + # + # @param text [String] input org-mode text + # @return [String] output HTML + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#102 + def html_markup_org(text); end + + # Converts plaintext to pre-formatted HTML + # + # @param text [String] the input text + # @return [String] the output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#146 + def html_markup_pre(text); end + + # Converts RDoc formatting (SimpleMarkup) to HTML + # + # @param text [String] the input RDoc formatted text + # @return [String] output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#136 + def html_markup_rdoc(text); end + + # Highlights Ruby source. Similar to {#html_syntax_highlight}, but + # this method is meant to be called from {#htmlify} when markup is + # set to "ruby". + # + # @param source [String] the Ruby source + # @return [String] the highlighted HTML + # @since 0.7.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#179 + def html_markup_ruby(source); end + + # Converts plaintext to regular HTML + # + # @param text [String] the input text + # @return [String] the output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#154 + def html_markup_text(text); end + + # Converts Textile to HTML + # + # @param text [String] the input Textile text + # @return [String] output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#118 + def html_markup_textile(text); end + + # Converts plaintext to strict Textile (hard breaks) + # + # @param text [String] the input textile data + # @return [String] the output HTML + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#128 + def html_markup_textile_strict(text); end + + # Syntax highlights +source+ in language +type+. + # + # @note To support a specific language +type+, implement the method + # +html_syntax_highlight_TYPE+ in this class. + # @param source [String] the source code to highlight + # @param type [Symbol, String] the language type (:ruby, :plain, etc). Use + # :plain for no syntax highlighting. + # @return [String] the highlighted source + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#199 + def html_syntax_highlight(source, type = T.unsafe(nil)); end + + # @return [String] unhighlighted source + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#210 + def html_syntax_highlight_plain(source); end + + # Turns text into HTML using +markup+ style formatting. + # + # @param text [String] the text to format + # @param markup [Symbol] examples are +:markdown+, +:textile+, +:rdoc+. + # To add a custom markup type, see {MarkupHelper} + # @return [String] the HTML + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#57 + def htmlify(text, markup = T.unsafe(nil)); end + + # @return [String] HTMLified text as a single line (paragraphs removed) + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#184 + def htmlify_line(*args); end + + # Inserts an include link while respecting inlining + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#296 + def insert_include(text, markup = T.unsafe(nil)); end + + # Links to an extra file + # + # @param filename [String] the filename to link to + # @param title [String] the title of the link + # @param anchor [String] optional anchor + # @return [String] the link to the file + # @since 0.5.5 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#270 + def link_file(filename, title = T.unsafe(nil), anchor = T.unsafe(nil)); end + + # Include a file as a docstring in output + # + # @param file [String] the filename to include + # @return [String] the file's contents + # @since 0.7.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#282 + def link_include_file(file); end + + # Includes an object's docstring into output. + # + # @param obj [CodeObjects::Base] the object to include + # @return [String] the object's docstring (no tags) + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#291 + def link_include_object(obj); end + + # Links to an object with an optional title + # + # @param obj [CodeObjects::Base] the object to link to + # @param title [String] the title to use for the link + # @return [String] the linked object + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#301 + def link_object(obj, title = T.unsafe(nil), anchor = T.unsafe(nil), relative = T.unsafe(nil)); end + + # Links to a URL + # + # @param url [String] the URL to link to + # @param title [String] the optional title to display the link as + # @param params [Hash] optional parameters for the link + # @return [String] the linked URL + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#332 + def link_url(url, title = T.unsafe(nil), params = T.unsafe(nil)); end + + # source://yard//lib/yard/templates/helpers/html_helper.rb#400 + def mtime(_file); end + + # Returns the URL for an object. + # + # @param obj [String, CodeObjects::Base] the object (or object path) to link to + # @param anchor [String] the anchor to link to + # @param relative [Boolean] use a relative or absolute link + # @return [String] the URL location of the object + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#368 + def mtime_url(obj, anchor = T.unsafe(nil), relative = T.unsafe(nil)); end + + # Resolves any text in the form of +{Name}+ to the object specified by + # Name. Also supports link titles in the form +{Name title}+. + # + # @example Linking to an instance method + # resolve_links("{MyClass#method}") # => "<a href='...'>MyClass#method</a>" + # @example Linking to a class with a title + # resolve_links("{A::B::C the C class}") # => "<a href='...'>the c class</a>" + # @param text [String] the text to resolve links in + # @return [String] HTML with linkified references + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#225 + def resolve_links(text); end + + # Formats the signature of method +meth+. + # + # @param meth [CodeObjects::MethodObject] the method object to list + # the signature of + # @param link [Boolean] whether to link the method signature to the details view + # @param show_extras [Boolean] whether to show extra meta-data (visibility, attribute info) + # @param full_attr_name [Boolean] whether to show the full attribute name + # ("name=" instead of "name") + # @return [String] the formatted method signature + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#529 + def signature(meth, link = T.unsafe(nil), show_extras = T.unsafe(nil), full_attr_name = T.unsafe(nil)); end + + # Get the return types for a method signature. + # + # @param meth [CodeObjects::MethodObject] the method object + # @param link [Boolean] whether to link the types + # @return [String] the signature types + # @since 0.5.3 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#492 + def signature_types(meth, link = T.unsafe(nil)); end + + # Returns the URL for an object. + # + # @param obj [String, CodeObjects::Base] the object (or object path) to link to + # @param anchor [String] the anchor to link to + # @param relative [Boolean] use a relative or absolute link + # @return [String] the URL location of the object + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#368 + def url_for(obj, anchor = T.unsafe(nil), relative = T.unsafe(nil)); end + + # Returns the URL for a specific file + # + # @param filename [String, CodeObjects::ExtraFileObject] the filename to link to + # @param anchor [String] optional anchor + # @return [String] the URL pointing to the file + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#407 + def url_for_file(filename, anchor = T.unsafe(nil)); end + + # Returns the URL for the frameset page + # + # @return [String] the URL pointing to the frames page + # @since 0.8.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#434 + def url_for_frameset; end + + # Returns the URL for the alphabetic index page + # + # @return [String] the URL pointing to the first main page the + # user should see. + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#450 + def url_for_index; end + + # Returns the URL for a list type + # + # @param type [String, Symbol] the list type to generate a URL for + # @return [String] the URL pointing to the list + # @since 0.8.0 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#426 + def url_for_list(type); end + + # Returns the URL for the main page (README or alphabetic index) + # + # @return [String] the URL pointing to the first main page the + # user should see. + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#442 + def url_for_main; end + + private + + # Converts a {CodeObjects::MethodObject} into an overload object + # + # @since 0.5.3 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#609 + def convert_method_to_overload(meth); end + + # Parses code block's HTML attributes in order to detect the programming + # language of what's enclosed in that code block. + # + # @param pre_html_attrs [String, nil] HTML attribute list of +pre+ element + # @param code_html_attrs [String, nil] HTML attribute list of +code+ + # element + # @return [String, nil] detected programming language + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#664 + def detect_lang_in_codeblock_attributes(pre_html_attrs, code_html_attrs); end + + # Parses code blocks out of html and performs syntax highlighting + # on code inside of the blocks. + # + # @param html [String] the html to search for code in + # @return [String] highlighted html + # @see #html_syntax_highlight + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#640 + def parse_codeblocks(html); end + + # Parses !!!lang out of codeblock, returning the codeblock language + # followed by the source code. + # + # @param source [String] the source code whose language to determine + # @return [Array(String, String)] the language, if any, and the + # remaining source + # @since 0.7.5 + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#624 + def parse_lang_for_codeblock(source); end + + # Converts a set of hash options into HTML attributes for a tag + # + # @param opts [Hash{String => String}] the tag options + # @return [String] the tag attributes of an HTML tag + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#603 + def tag_attrs(opts = T.unsafe(nil)); end + + # Escapes a URL + # + # @param text [String] the URL + # @return [String] the escaped URL + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#31 + def urlencode(text); end + + class << self + # Escapes a URL + # + # @param text [String] the URL + # @return [String] the escaped URL + # + # source://yard//lib/yard/templates/helpers/html_helper.rb#31 + def urlencode(text); end + end +end + +# @private +# +# source://yard//lib/yard/templates/helpers/html_helper.rb#15 +YARD::Templates::Helpers::HtmlHelper::ASCIIDOC_ATTRIBUTES = T.let(T.unsafe(nil), Hash) + +# @private +# +# source://yard//lib/yard/templates/helpers/html_helper.rb#12 +YARD::Templates::Helpers::HtmlHelper::URLMATCH = T.let(T.unsafe(nil), Regexp) + +# Helper methods for syntax highlighting. +# +# source://yard//lib/yard/templates/helpers/html_syntax_highlight_helper.rb#6 +module YARD::Templates::Helpers::HtmlSyntaxHighlightHelper + include ::YARD::Templates::Helpers::ModuleHelper + + # Highlights Ruby source + # + # @param source [String] the Ruby source code + # @return [String] the highlighted Ruby source + # + # source://yard//lib/yard/templates/helpers/html_syntax_highlight_helper.rb#12 + def html_syntax_highlight_ruby(source); end + + private + + # source://yard//lib/yard/templates/helpers/html_syntax_highlight_helper.rb#63 + def clean_token_object(token_obj); end + + # source://yard//lib/yard/templates/helpers/html_syntax_highlight_helper.rb#45 + def html_syntax_highlight_ruby_legacy(source); end + + # source://yard//lib/yard/templates/helpers/html_syntax_highlight_helper.rb#22 + def html_syntax_highlight_ruby_ripper(source); end +end + +# Namespace for markup providers +# +# source://yard//lib/yard/autoload.rb#273 +module YARD::Templates::Helpers::Markup; end + +# source://yard//lib/yard/templates/helpers/markup/rdoc_markdown.rb#13 +class YARD::Templates::Helpers::Markup::RDocMarkdown < ::YARD::Templates::Helpers::Markup::RDocMarkup + # @return [RDocMarkdown] a new instance of RDocMarkdown + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markdown.rb#14 + def initialize(text); end + + # source://yard//lib/yard/templates/helpers/markup/rdoc_markdown.rb#18 + def fix_typewriter(html); end +end + +# source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#12 +class YARD::Templates::Helpers::Markup::RDocMarkup + # @return [RDocMarkup] a new instance of RDocMarkup + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#41 + def initialize(text); end + + # Returns the value of attribute from_path. + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#35 + def from_path; end + + # Sets the attribute from_path + # + # @param value the value to set the attribute from_path to. + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#35 + def from_path=(_arg0); end + + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#50 + def to_html; end + + private + + # Don't allow -- to turn into — element. The chances of this being + # some --option is far more likely than the typographical meaning. + # + # @todo Refactor into own SimpleMarkup subclass + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#87 + def fix_dash_dash(text); end + + # Fixes RDoc behaviour with ++ only supporting alphanumeric text. + # + # @todo Refactor into own SimpleMarkup subclass + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#66 + def fix_typewriter(text); end +end + +# source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#12 +YARD::Templates::Helpers::Markup::RDocMarkup::MARKUP = RDoc::Markup + +# source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#13 +class YARD::Templates::Helpers::Markup::RDocMarkupToHtml < ::RDoc::Markup::ToHtml + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#16 + def initialize; end + + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#100 + def accept_paragraph(*args); end + + # Returns the value of attribute from_path. + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#93 + def from_path; end + + # Sets the attribute from_path + # + # @param value the value to set the attribute from_path to. + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#93 + def from_path=(_arg0); end + + # Disable auto-link of URLs + # + # source://yard//lib/yard/templates/helpers/markup/rdoc_markup.rb#96 + def handle_special_HYPERLINK(special); end +end + +# Helper methods for loading and managing markup types. +# +# source://yard//lib/yard/templates/helpers/markup_helper.rb#7 +module YARD::Templates::Helpers::MarkupHelper + # Attempts to load the first valid markup provider in {MARKUP_PROVIDERS}. + # If a provider is specified, immediately try to load it. + # + # On success this sets `@markup_provider` and `@markup_class` to + # the provider name and library constant class/module respectively for + # the loaded provider. + # + # On failure this method will inform the user that no provider could be + # found and exit the program. + # + # @return [Boolean] whether the markup provider was successfully loaded. + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#87 + def load_markup_provider(type = T.unsafe(nil)); end + + # Gets the markup provider class/module constant for a markup type + # Call {#load_markup_provider} before using this method. + # + # @param type [Symbol] the markup type (:rdoc, :markdown, etc.) + # @return [Class] the markup class + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#158 + def markup_class(type = T.unsafe(nil)); end + + # Strips any shebang lines on the file contents that pertain to + # markup or preprocessing data. + # + # @deprecated Use {CodeObjects::ExtraFileObject#contents} instead + # @return [String] the file contents minus any preprocessing tags + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#149 + def markup_file_contents(contents); end + + # Checks for a shebang or looks at the file extension to determine + # the markup type for the file contents. File extensions are registered + # for a markup type in {MARKUP_EXTENSIONS}. + # + # A shebang should be on the first line of a file and be in the form: + # + # #!markup_type + # + # Standard markup types are text, html, rdoc, markdown, textile + # + # @param contents [String] Unused. Was necessary prior to 0.7.0. + # Newer versions of YARD use {CodeObjects::ExtraFileObject#contents} + # @return [Symbol] the markup type recognized for the file + # @see MARKUP_EXTENSIONS + # @since 0.6.0 + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#133 + def markup_for_file(contents, filename); end + + # Gets the markup provider name for a markup type + # Call {#load_markup_provider} before using this method. + # + # @param type [Symbol] the markup type (:rdoc, :markdown, etc.) + # @return [Symbol] the markup provider name (usually the gem name of the library) + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#168 + def markup_provider(type = T.unsafe(nil)); end + + class << self + # Clears the markup provider cache information. Mainly used for testing. + # + # @return [void] + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#11 + def clear_markup_cache; end + + # @private + # @return [Hash{Symbol=>{(:provider,:class)=>Object}}] the cached markup providers + # @since 0.6.4 + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#18 + def markup_cache; end + + # @private + # @return [Hash{Symbol=>{(:provider,:class)=>Object}}] the cached markup providers + # @since 0.6.4 + # + # source://yard//lib/yard/templates/helpers/markup_helper.rb#18 + def markup_cache=(_arg0); end + end +end + +# Returns a list of extensions for various markup types. To register +# extensions for a type, add them to the array of extensions for the +# type. +# +# @since 0.6.0 +# +# source://yard//lib/yard/templates/helpers/markup_helper.rb#61 +YARD::Templates::Helpers::MarkupHelper::MARKUP_EXTENSIONS = T.let(T.unsafe(nil), Hash) + +# Contains the Regexp object that matches the shebang line of extra +# files to detect the markup type. +# +# source://yard//lib/yard/templates/helpers/markup_helper.rb#74 +YARD::Templates::Helpers::MarkupHelper::MARKUP_FILE_SHEBANG = T.let(T.unsafe(nil), Regexp) + +# The default list of markup providers for each markup type +# +# source://yard//lib/yard/templates/helpers/markup_helper.rb#24 +YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS = T.let(T.unsafe(nil), Hash) + +# Helper methods for method objects. +# +# source://yard//lib/yard/templates/helpers/method_helper.rb#5 +module YARD::Templates::Helpers::MethodHelper + # @return [String] formatted arguments for a method + # + # source://yard//lib/yard/templates/helpers/method_helper.rb#7 + def format_args(object); end + + # @return [String] formatted block if one exists + # + # source://yard//lib/yard/templates/helpers/method_helper.rb#35 + def format_block(object); end + + # @return [String] formats source of an object + # + # source://yard//lib/yard/templates/helpers/method_helper.rb#57 + def format_code(object, _show_lines = T.unsafe(nil)); end + + # @return [String] formats source code of a constant value + # + # source://yard//lib/yard/templates/helpers/method_helper.rb#68 + def format_constant(value); end + + # @return [String] formats line numbers for source code of an object + # + # source://yard//lib/yard/templates/helpers/method_helper.rb#50 + def format_lines(object); end + + # @return [String] formatted and linked return types for a method + # + # source://yard//lib/yard/templates/helpers/method_helper.rb#28 + def format_return_types(object); end +end + +# Helper methods for managing module objects. +# +# source://yard//lib/yard/templates/helpers/module_helper.rb#6 +module YARD::Templates::Helpers::ModuleHelper + # Prunes the method listing by running the verifier and removing attributes/aliases + # + # @param list [Array<CodeObjects::Base>] a list of methods + # @param hide_attributes [Boolean] whether to prune attribute methods from the list + # @return [Array<CodeObjects::Base>] a pruned list of methods + # + # source://yard//lib/yard/templates/helpers/module_helper.rb#11 + def prune_method_listing(list, hide_attributes = T.unsafe(nil)); end +end + +# Helper methods for text template formats. +# +# source://yard//lib/yard/templates/helpers/text_helper.rb#6 +module YARD::Templates::Helpers::TextHelper + # @return [String] aligns text to the right + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#39 + def align_right(text, spacer = T.unsafe(nil), col = T.unsafe(nil)); end + + # @return [String] escapes text + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#8 + def h(text); end + + # @return [String] returns a horizontal rule for output + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#45 + def hr(col = T.unsafe(nil), sep = T.unsafe(nil)); end + + # @return [String] indents +text+ by +len+ characters. + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#29 + def indent(text, len = T.unsafe(nil)); end + + # @return [String] the formatted signature for a method + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#50 + def signature(meth); end + + # @return [String] aligns a title to the right + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#34 + def title_align_right(text, col = T.unsafe(nil)); end + + # @return [String] wraps text at +col+ columns. + # + # source://yard//lib/yard/templates/helpers/text_helper.rb#24 + def wrap(text, col = T.unsafe(nil)); end + + private + + # source://yard//lib/yard/templates/helpers/text_helper.rb#98 + def resolve_links(text); end +end + +# Helpers for UML template format +# +# source://yard//lib/yard/templates/helpers/uml_helper.rb#5 +module YARD::Templates::Helpers::UMLHelper + # Formats the path of an object for Graphviz syntax + # + # @param object [CodeObjects::Base] an object to format the path of + # @return [String] the encoded path + # + # source://yard//lib/yard/templates/helpers/uml_helper.rb#20 + def format_path(object); end + + # Encodes text in escaped Graphviz syntax + # + # @param text [String] text to encode + # @return [String] the encoded text + # + # source://yard//lib/yard/templates/helpers/uml_helper.rb#27 + def h(text); end + + # Tidies data by formatting and indenting text + # + # @param data [String] pre-formatted text + # @return [String] tidied text. + # + # source://yard//lib/yard/templates/helpers/uml_helper.rb#34 + def tidy(data); end + + # Official UML visibility prefix syntax for an object given its visibility + # + # @param object [CodeObjects::Base] the object to retrieve visibility for + # @return [String] the UML visibility prefix + # + # source://yard//lib/yard/templates/helpers/uml_helper.rb#9 + def uml_visibility(object); end +end + +# Abstracts the structure for a section and its subsections into an ordered +# list of sections and subsections. +# +# @since 0.6.0 +# +# source://yard//lib/yard/templates/section.rb#7 +class YARD::Templates::Section < ::Array + # @return [Section] a new instance of Section + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#10 + def initialize(name, *args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#45 + def <<(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#34 + def ==(other); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#21 + def [](*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#74 + def any(item); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#15 + def dup; end + + # @return [Boolean] + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#30 + def eql?(other); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#54 + def inspect; end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#8 + def name; end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#8 + def name=(_arg0); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#60 + def place(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#45 + def push(*args); end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#64 + def to_a; end + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#50 + def unshift(*args); end + + private + + # @since 0.6.0 + # + # source://yard//lib/yard/templates/section.rb#84 + def parse_sections(args); end +end + +# source://yard//lib/yard/templates/template.rb#6 +module YARD::Templates::Template + include ::YARD::Templates::ErbCache + include ::YARD::Templates::Helpers::BaseHelper + include ::YARD::Templates::Helpers::MethodHelper + + mixes_in_class_methods ::YARD::Templates::Template::ClassMethods + + # source://yard//lib/yard/templates/template.rb#186 + def initialize(opts = T.unsafe(nil)); end + + # Loads a template specified by path. If +:template+ or +:format+ is + # specified in the {#options} hash, they are prepended and appended + # to the path respectively. + # + # @param path [Array<String, Symbol>] the path of the template + # @return [Template] the loaded template module + # + # source://yard//lib/yard/templates/template.rb#204 + def T(*path); end + + # Returns the value of attribute class. + # + # source://yard//lib/yard/templates/template.rb#7 + def class; end + + # Sets the attribute class + # + # @param value the value to set the attribute class to. + # + # source://yard//lib/yard/templates/template.rb#7 + def class=(_arg0); end + + # @param section [String, Symbol] the section name + # @return [String] the contents of the ERB rendered section + # @yield calls subsections to be rendered + # + # source://yard//lib/yard/templates/template.rb#285 + def erb(section, &block); end + + # Returns the contents of a file. If +allow_inherited+ is set to +true+, + # use +{{{__super__}}}+ inside the file contents to insert the contents + # of the file from an inherited template. For instance, if +templates/b+ + # inherits from +templates/a+ and file "test.css" exists in both directories, + # both file contents can be retrieved by having +templates/b/test.css+ look + # like: + # + # {{{__super__}}} + # ... + # body { css styles here } + # p.class { other styles } + # + # @param basename [String] the name of the file + # @param allow_inherited [Boolean] whether inherited templates can + # be inserted with +{{{__super__}}}+ + # @raise [ArgumentError] + # @return [String] the contents of a file identified by +basename+. All + # template paths (including any mixed in templates) are searched for + # the file + # @see ClassMethods#find_file + # @see ClassMethods#find_nth_file + # + # source://yard//lib/yard/templates/template.rb#312 + def file(basename, allow_inherited = T.unsafe(nil)); end + + # Initialization called on the template. Override this in a 'setup.rb' + # file in the template's path to implement a template + # + # @example A default set of sections + # def init + # sections :section1, :section2, [:subsection1, :etc] + # end + # @see #sections + # + # source://yard//lib/yard/templates/template.rb#239 + def init; end + + # source://yard//lib/yard/templates/template.rb#342 + def inspect; end + + # Returns the value of attribute options. + # + # source://yard//lib/yard/templates/template.rb#8 + def options; end + + # source://yard//lib/yard/templates/template.rb#337 + def options=(value); end + + # Runs a template on +sects+ using extra options. This method should + # not be called directly. Instead, call the class method {ClassMethods#run} + # + # @param opts [Hash, nil] any extra options to apply to sections + # @param sects [Section, Array] a section list of sections to render + # @param start_at [Fixnum] the index in the section list to start from + # @param break_first [Boolean] if true, renders only the first section + # @return [String] the rendered sections joined together + # @yield [opts] calls for the subsections to be rendered + # @yieldparam opts [Hash] any extra options to yield + # + # source://yard//lib/yard/templates/template.rb#252 + def run(opts = T.unsafe(nil), sects = T.unsafe(nil), start_at = T.unsafe(nil), break_first = T.unsafe(nil), &block); end + + # Returns the value of attribute section. + # + # source://yard//lib/yard/templates/template.rb#7 + def section; end + + # Sets the attribute section + # + # @param value the value to set the attribute section to. + # + # source://yard//lib/yard/templates/template.rb#7 + def section=(_arg0); end + + # Sets the sections (and subsections) to be rendered for the template + # + # @example Sets a set of erb sections + # sections :a, :b, :c # searches for a.erb, b.erb, c.erb + # @example Sets a set of method and erb sections + # sections :a, :b, :c # a is a method, the rest are erb files + # @example Sections with subsections + # sections :header, [:name, :children] + # # the above will call header.erb and only renders the subsections + # # if they are yielded by the template (see #yieldall) + # @param args [Array<Symbol, String, Template, Array>] the sections + # to use to render the template. For symbols and strings, the + # section will be executed as a method (if one exists), or rendered + # from the file "name.erb" where name is the section name. For + # templates, they will have {Template::ClassMethods#run} called on them. + # Any subsections can be yielded to using yield or {#yieldall} + # + # source://yard//lib/yard/templates/template.rb#226 + def sections(*args); end + + # Calls the ERB file from the last inherited template with {#section}.erb + # + # @param sect [Symbol, String] if provided, uses a specific section name + # @return [String] the rendered ERB file in any of the inherited template + # paths. + # + # source://yard//lib/yard/templates/template.rb#330 + def superb(sect = T.unsafe(nil), &block); end + + # Yields all subsections with any extra options + # + # @param opts [Hash] extra options to be applied to subsections + # + # source://yard//lib/yard/templates/template.rb#278 + def yieldall(opts = T.unsafe(nil), &block); end + + protected + + # source://yard//lib/yard/templates/template.rb#348 + def erb_file_for(section); end + + # source://yard//lib/yard/templates/template.rb#352 + def erb_with(content, filename = T.unsafe(nil)); end + + private + + # source://yard//lib/yard/templates/template.rb#399 + def add_options(opts = T.unsafe(nil)); end + + # @raise [ArgumentError] + # + # source://yard//lib/yard/templates/template.rb#378 + def cache(section); end + + # source://yard//lib/yard/templates/template.rb#388 + def cache_filename(section); end + + # source://yard//lib/yard/templates/template.rb#364 + def render_section(section, &block); end + + # source://yard//lib/yard/templates/template.rb#393 + def set_ivars; end + + # source://yard//lib/yard/templates/template.rb#412 + def with_section; end + + class << self + # Extra includes are mixins that are included after a template is created. These + # mixins can be registered by plugins to operate on templates and override behaviour. + # + # Note that this array can be filled with modules or proc objects. If a proc object + # is given, the proc will be called with the {Template#options} hash containing + # relevant template information like the object, format, and more. The proc should + # return a module or nil if there is none. + # + # @example Adding in extra mixins to include on a template + # Template.extra_includes << MyHelper + # @example Conditionally including a mixin if the format is html + # Template.extra_includes << proc {|opts| MyHelper if opts.format == :html } + # @return [Array<Module, Proc>] a list of modules to be automatically included + # into any new template module + # + # source://yard//lib/yard/templates/template.rb#25 + def extra_includes; end + + # Extra includes are mixins that are included after a template is created. These + # mixins can be registered by plugins to operate on templates and override behaviour. + # + # Note that this array can be filled with modules or proc objects. If a proc object + # is given, the proc will be called with the {Template#options} hash containing + # relevant template information like the object, format, and more. The proc should + # return a module or nil if there is none. + # + # @example Adding in extra mixins to include on a template + # Template.extra_includes << MyHelper + # @example Conditionally including a mixin if the format is html + # Template.extra_includes << proc {|opts| MyHelper if opts.format == :html } + # @return [Array<Module, Proc>] a list of modules to be automatically included + # into any new template module + # + # source://yard//lib/yard/templates/template.rb#25 + def extra_includes=(_arg0); end + + # Includes the {extra_includes} modules into the template object. + # + # @param template [Template] the template object to mixin the extra includes. + # @param options [SymbolHash] the options hash containing all template information + # @return [void] + # + # source://yard//lib/yard/templates/template.rb#38 + def include_extra(template, options); end + + # @private + # @private + # + # source://yard//lib/yard/templates/template.rb#29 + def included(klass); end + end +end + +# source://yard//lib/yard/templates/template.rb#59 +module YARD::Templates::Template::ClassMethods + # source://yard//lib/yard/templates/template.rb#81 + def initialize(path, full_paths); end + + # Alias for creating a {Section} with arguments + # + # @see Section#initialize + # @since 0.6.0 + # + # source://yard//lib/yard/templates/template.rb#149 + def S(*args); end + + # Alias for creating {Engine.template}. + # + # source://yard//lib/yard/templates/template.rb#142 + def T(*path); end + + # Searches for a file identified by +basename+ in the template's + # path as well as any mixed in template paths. Equivalent to calling + # {ClassMethods#find_nth_file} with index of 1. + # + # @param basename [String] the filename to search for + # @return [String] the full path of a file on disk with filename + # +basename+ in one of the template's paths. + # @see find_nth_file + # + # source://yard//lib/yard/templates/template.rb#98 + def find_file(basename); end + + # Searches for the nth file (where n = +index+) identified + # by basename in the template's path and any mixed in template paths. + # + # @param basename [String] the filename to search for + # @param index [Fixnum] the nth existing file to return + # @return [String] the full path of the nth file on disk with + # filename +basename+ in one of the template paths + # + # source://yard//lib/yard/templates/template.rb#109 + def find_nth_file(basename, index = T.unsafe(nil)); end + + # Returns the value of attribute full_path. + # + # source://yard//lib/yard/templates/template.rb#60 + def full_path; end + + # Sets the attribute full_path + # + # @param value the value to set the attribute full_path to. + # + # source://yard//lib/yard/templates/template.rb#60 + def full_path=(_arg0); end + + # @note This method caches path results. Paths should not be modified + # after this method is called; call {#reset_full_paths} to reset cache. + # @return [Array<String>] a list of full paths + # + # source://yard//lib/yard/templates/template.rb#65 + def full_paths; end + + # @return [Boolean] + # + # source://yard//lib/yard/templates/template.rb#122 + def is_a?(klass); end + + # Creates a new template object to be rendered with {Template#run} + # + # source://yard//lib/yard/templates/template.rb#128 + def new(*args); end + + # Returns the value of attribute path. + # + # source://yard//lib/yard/templates/template.rb#60 + def path; end + + # Sets the attribute path + # + # @param value the value to set the attribute path to. + # + # source://yard//lib/yard/templates/template.rb#60 + def path=(_arg0); end + + # Resets cache for {#full_paths} + # + # source://yard//lib/yard/templates/template.rb#77 + def reset_full_paths; end + + # source://yard//lib/yard/templates/template.rb#135 + def run(*args); end + + private + + # source://yard//lib/yard/templates/template.rb#170 + def include_inherited(full_paths); end + + # source://yard//lib/yard/templates/template.rb#157 + def include_parent; end + + # source://yard//lib/yard/templates/template.rb#176 + def load_setup_rb; end +end + +# An Options class containing default options for base template rendering. For +# options specific to generation of HTML output, see {CLI::YardocOptions}. +# +# @see CLI::YardocOptions +# +# source://yard//lib/yard/templates/template_options.rb#10 +class YARD::Templates::TemplateOptions < ::YARD::Options + # @return [OpenStruct] an open struct containing any global state across all + # generated objects in a template. + # + # source://yard//lib/yard/options.rb#82 + def __globals; end + + # @return [String] the default return type for a method with no return tags + # + # source://yard//lib/yard/options.rb#82 + def default_return; end + + # @return [String] the default return type for a method with no return tags + # + # source://yard//lib/yard/options.rb#82 + def default_return=(_arg0); end + + # @example A list of mixin path names (including wildcards) + # opts.embed_mixins #=> ['ClassMethods', '*Helper', 'YARD::*'] + # @return [Array<String>] an array of module name wildcards to embed into + # class documentation as if their methods were defined directly in the class. + # Useful for modules like ClassMethods. If the name contains '::', the module + # is matched against the full mixin path, otherwise only the module name is used. + # + # source://yard//lib/yard/options.rb#82 + def embed_mixins; end + + # @example A list of mixin path names (including wildcards) + # opts.embed_mixins #=> ['ClassMethods', '*Helper', 'YARD::*'] + # @return [Array<String>] an array of module name wildcards to embed into + # class documentation as if their methods were defined directly in the class. + # Useful for modules like ClassMethods. If the name contains '::', the module + # is matched against the full mixin path, otherwise only the module name is used. + # + # source://yard//lib/yard/options.rb#82 + def embed_mixins=(_arg0); end + + # @param mixin [CodeObjects::Base] accepts any code object, but returns + # nil unless the object is a module. + # @return [Boolean] whether a mixin matches the embed_mixins list + # @return [nil] if the mixin is not a module object + # + # source://yard//lib/yard/templates/template_options.rb#78 + def embed_mixins_match?(mixin); end + + # @return [Symbol] the template output format + # + # source://yard//lib/yard/options.rb#82 + def format; end + + # @return [Symbol] the template output format + # + # source://yard//lib/yard/options.rb#82 + def format=(_arg0); end + + # @return [OpenStruct] an open struct containing any global state across all + # generated objects in a template. + # + # source://yard//lib/yard/options.rb#82 + def globals; end + + # @return [OpenStruct] an open struct containing any global state across all + # generated objects in a template. + # + # source://yard//lib/yard/options.rb#82 + def globals=(_arg0); end + + # @return [Boolean] whether void methods should show "void" in their signature + # + # source://yard//lib/yard/options.rb#82 + def hide_void_return; end + + # @return [Boolean] whether void methods should show "void" in their signature + # + # source://yard//lib/yard/options.rb#82 + def hide_void_return=(_arg0); end + + # @return [Boolean] whether code blocks should be syntax highlighted + # + # source://yard//lib/yard/options.rb#82 + def highlight; end + + # @return [Boolean] whether code blocks should be syntax highlighted + # + # source://yard//lib/yard/options.rb#82 + def highlight=(_arg0); end + + # @return [Boolean] whether the page is the "index" + # + # source://yard//lib/yard/templates/template_options.rb#64 + def index; end + + # @return [Boolean] whether the page is the "index" + # + # source://yard//lib/yard/templates/template_options.rb#64 + def index=(_arg0); end + + # @return [Symbol] the markup format to use when parsing docstrings + # + # source://yard//lib/yard/options.rb#82 + def markup; end + + # @return [Symbol] the markup format to use when parsing docstrings + # + # source://yard//lib/yard/options.rb#82 + def markup=(_arg0); end + + # @return [Class] the markup provider class for the markup format + # + # source://yard//lib/yard/templates/template_options.rb#30 + def markup_provider; end + + # @return [Class] the markup provider class for the markup format + # + # source://yard//lib/yard/templates/template_options.rb#30 + def markup_provider=(_arg0); end + + # @deprecated use {#highlight} instead. + # @return [Boolean] whether highlighting should be ignored + # + # source://yard//lib/yard/templates/template_options.rb#57 + def no_highlight; end + + # source://yard//lib/yard/templates/template_options.rb#58 + def no_highlight=(value); end + + # @return [CodeObjects::Base] the main object being generated in the template + # + # source://yard//lib/yard/templates/template_options.rb#38 + def object; end + + # @return [CodeObjects::Base] the main object being generated in the template + # + # source://yard//lib/yard/templates/template_options.rb#38 + def object=(_arg0); end + + # @return [CodeObjects::Base] the owner of the generated object + # + # source://yard//lib/yard/templates/template_options.rb#41 + def owner; end + + # @return [CodeObjects::Base] the owner of the generated object + # + # source://yard//lib/yard/templates/template_options.rb#41 + def owner=(_arg0); end + + # @return [String] the title of a given page + # + # source://yard//lib/yard/templates/template_options.rb#61 + def page_title; end + + # @return [String] the title of a given page + # + # source://yard//lib/yard/templates/template_options.rb#61 + def page_title=(_arg0); end + + # @return [Boolean] whether serialization should be performed + # + # source://yard//lib/yard/options.rb#82 + def serialize; end + + # @return [Boolean] whether serialization should be performed + # + # source://yard//lib/yard/options.rb#82 + def serialize=(_arg0); end + + # @return [Serializers::Base] the serializer used to generate links and serialize + # output. Serialization output only occurs if {#serialize} is +true+. + # + # source://yard//lib/yard/templates/template_options.rb#51 + def serializer; end + + # @return [Serializers::Base] the serializer used to generate links and serialize + # output. Serialization output only occurs if {#serialize} is +true+. + # + # source://yard//lib/yard/templates/template_options.rb#51 + def serializer=(_arg0); end + + # @return [Symbol] the template name used to render output + # + # source://yard//lib/yard/options.rb#82 + def template; end + + # @return [Symbol] the template name used to render output + # + # source://yard//lib/yard/options.rb#82 + def template=(_arg0); end + + # @return [Symbol] the template type used to generate output + # + # source://yard//lib/yard/templates/template_options.rb#44 + def type; end + + # @return [Symbol] the template type used to generate output + # + # source://yard//lib/yard/templates/template_options.rb#44 + def type=(_arg0); end + + # @return [Verifier] the verifier object + # + # source://yard//lib/yard/templates/template_options.rb#89 + def verifier; end + + # @return [Verifier] the verifier object + # + # source://yard//lib/yard/templates/template_options.rb#89 + def verifier=(_arg0); end +end + +# source://yard//lib/yard/version.rb#5 +YARD::VERSION = T.let(T.unsafe(nil), String) + +# Similar to a Proc, but runs a set of Ruby expressions using a small +# DSL to make tag lookups easier. +# +# The syntax is as follows: +# * All syntax is Ruby compatible +# * +object+ (+o+ for short) exist to access the object being verified +# * +@TAGNAME+ is translated into +object.tag('TAGNAME')+ +# * +@@TAGNAME+ is translated into +object.tags('TAGNAME')+ +# * +object+ can be omitted as target for method calls (it is implied) +# +# @example Create a verifier to check for objects that don't have @private tags +# verifier = Verifier.new('!@private') +# verifier.call(object) # => true (no @private tag) +# @example Create a verifier to find any return tag with an empty description +# Verifier.new('@return.text.empty?') +# # Equivalent to: +# Verifier.new('object.tag(:return).text.empty?') +# @example Check if there are any @param tags +# Verifier.new('@@param.empty?') +# # Equivalent to: +# Verifier.new('object.tags(:param).empty?') +# @example Using +object+ or +o+ to look up object attributes directly +# Verifier.new('object.docstring == "hello world"') +# # Equivalent to: +# Verifier.new('o.docstring == "hello world"') +# @example Without using +object+ or +o+ +# Verifier.new('tag(:return).size == 1 || has_tag?(:author)') +# @example Specifying multiple expressions +# Verifier.new('@return', '@param', '@yield') +# # Equivalent to: +# Verifier.new('@return && @param && @yield') +# +# source://yard//lib/yard/verifier.rb#34 +class YARD::Verifier + # Creates a verifier from a set of expressions + # + # @param expressions [Array<String>] a list of Ruby expressions to + # parse. + # @return [Verifier] a new instance of Verifier + # + # source://yard//lib/yard/verifier.rb#48 + def initialize(*expressions); end + + # Adds a set of expressions and recompiles the verifier + # + # @param expressions [Array<String>] a list of expressions + # @return [void] + # @since 0.5.6 + # + # source://yard//lib/yard/verifier.rb#58 + def add_expressions(*expressions); end + + # Tests the expressions on the object. + # + # @note If the object is a {CodeObjects::Proxy} the result will always be true. + # @param object [CodeObjects::Base] the object to verify + # @return [Boolean] the result of the expressions + # + # source://yard//lib/yard/verifier.rb#76 + def call(object); end + + # @return [Array<String>] a list of all expressions the verifier checks for + # @since 0.5.6 + # + # source://yard//lib/yard/verifier.rb#37 + def expressions; end + + # source://yard//lib/yard/verifier.rb#39 + def expressions=(value); end + + # Passes any method calls to the object from the {#call} + # + # source://yard//lib/yard/verifier.rb#63 + def method_missing(sym, *args, &block); end + + # Runs a list of objects against the verifier and returns the subset + # of verified objects. + # + # @param list [Array<CodeObjects::Base>] a list of code objects + # @return [Array<CodeObjects::Base>] a list of code objects that match + # the verifier. + # + # source://yard//lib/yard/verifier.rb#91 + def run(list); end + + protected + + # @return [CodeObjects::Base] the current object being tested + # + # source://yard//lib/yard/verifier.rb#98 + def o; end + + # @return [CodeObjects::Base] the current object being tested + # + # source://yard//lib/yard/verifier.rb#98 + def object; end + + private + + # Creates the +__execute+ method by evaluating the expressions + # as Ruby code + # + # @return [void] + # + # source://yard//lib/yard/verifier.rb#130 + def create_method_from_expressions; end + + # Modifies nil to not throw NoMethodErrors. This allows + # syntax like object.tag(:return).text to work if the #tag + # call returns nil, which means users don't need to perform + # stringent nil checking + # + # @return [void] + # + # source://yard//lib/yard/verifier.rb#112 + def modify_nilclass; end + + # Parses a single expression, handling some of the DSL syntax. + # + # The syntax "@tag" should be turned into object.tag(:tag), + # and "@@tag" should be turned into object.tags(:tag) + # + # @return [String] the parsed expression + # + # source://yard//lib/yard/verifier.rb#145 + def parse_expression(expr); end + + # Returns the state of NilClass back to normal + # + # @return [void] + # + # source://yard//lib/yard/verifier.rb#120 + def unmodify_nilclass; end +end + +# @private +# +# source://yard//lib/yard/verifier.rb#104 +YARD::Verifier::NILCLASS_METHODS = T.let(T.unsafe(nil), Array) diff --git a/ruby-client-sdk/sorbet/rbi/gems/yarp@0.13.0.rbi b/ruby-client-sdk/sorbet/rbi/gems/yarp@0.13.0.rbi new file mode 100755 index 000000000..f67066db1 --- /dev/null +++ b/ruby-client-sdk/sorbet/rbi/gems/yarp@0.13.0.rbi @@ -0,0 +1,21646 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `yarp` gem. +# Please instead update this file by running `bin/tapioca gem yarp`. + +# This file is generated by the templates/template.rb script and should not be +# modified manually. See templates/lib/prism/visitor.rb.erb +# if you are looking to modify the template +# +# source://yarp//lib/prism.rb#3 +module Prism + class << self + # Mirror the Prism.dump API by using the serialization API. + def dump(*_arg0); end + + # Mirror the Prism.dump_file API by using the serialization API. + def dump_file(_arg0); end + + # Mirror the Prism.lex API by using the serialization API. + def lex(*_arg0); end + + # Returns an array of tokens that closely resembles that of the Ripper lexer. + # The only difference is that since we don't keep track of lexer state in the + # same way, it's going to always return the NONE state. + # + # source://yarp//lib/prism.rb#33 + def lex_compat(source, filepath = T.unsafe(nil)); end + + # Mirror the Prism.lex_file API by using the serialization API. + def lex_file(_arg0); end + + # This lexes with the Ripper lex. It drops any space events but otherwise + # returns the same tokens. Raises SyntaxError if the syntax in source is + # invalid. + # + # source://yarp//lib/prism.rb#40 + def lex_ripper(source); end + + # Load the serialized AST using the source as a reference into a tree. + # + # source://yarp//lib/prism.rb#45 + def load(source, serialized); end + + # Mirror the Prism.parse API by using the serialization API. + def parse(*_arg0); end + + # Mirror the Prism.parse_file API by using the serialization API. This uses + # native strings instead of Ruby strings because it allows us to use mmap when + # it is available. + def parse_file(_arg0); end + + # Mirror the Prism.parse_lex API by using the serialization API. + def parse_lex(*_arg0); end + + # Mirror the Prism.parse_lex_file API by using the serialization API. + def parse_lex_file(_arg0); end + end +end + +# Represents the use of the `alias` keyword to alias a global variable. +# +# alias $foo $bar +# ^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#45 +class Prism::AliasGlobalVariableNode < ::Prism::Node + # def initialize: (new_name: Node, old_name: Node, keyword_loc: Location, location: Location) -> void + # + # @return [AliasGlobalVariableNode] a new instance of AliasGlobalVariableNode + # + # source://yarp//lib/prism/node.rb#56 + def initialize(new_name, old_name, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#64 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#69 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#79 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#74 + def compact_child_nodes; end + + # def copy: (**params) -> AliasGlobalVariableNode + # + # source://yarp//lib/prism/node.rb#84 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#69 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#97 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#106 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#102 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#53 + def keyword_loc; end + + # attr_reader new_name: Node + # + # source://yarp//lib/prism/node.rb#47 + def new_name; end + + # attr_reader old_name: Node + # + # source://yarp//lib/prism/node.rb#50 + def old_name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#130 + def type; end +end + +# Represents the use of the `alias` keyword to alias a method. +# +# alias foo bar +# ^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#139 +class Prism::AliasMethodNode < ::Prism::Node + # def initialize: (new_name: Node, old_name: Node, keyword_loc: Location, location: Location) -> void + # + # @return [AliasMethodNode] a new instance of AliasMethodNode + # + # source://yarp//lib/prism/node.rb#150 + def initialize(new_name, old_name, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#158 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#163 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#173 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#168 + def compact_child_nodes; end + + # def copy: (**params) -> AliasMethodNode + # + # source://yarp//lib/prism/node.rb#178 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#163 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#191 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#200 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#196 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#147 + def keyword_loc; end + + # attr_reader new_name: Node + # + # source://yarp//lib/prism/node.rb#141 + def new_name; end + + # attr_reader old_name: Node + # + # source://yarp//lib/prism/node.rb#144 + def old_name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#224 + def type; end +end + +# Represents an alternation pattern in pattern matching. +# +# foo => bar | baz +# ^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#233 +class Prism::AlternationPatternNode < ::Prism::Node + # def initialize: (left: Node, right: Node, operator_loc: Location, location: Location) -> void + # + # @return [AlternationPatternNode] a new instance of AlternationPatternNode + # + # source://yarp//lib/prism/node.rb#244 + def initialize(left, right, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#252 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#257 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#267 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#262 + def compact_child_nodes; end + + # def copy: (**params) -> AlternationPatternNode + # + # source://yarp//lib/prism/node.rb#272 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#257 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#285 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#294 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node + # + # source://yarp//lib/prism/node.rb#235 + def left; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#290 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#241 + def operator_loc; end + + # attr_reader right: Node + # + # source://yarp//lib/prism/node.rb#238 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#318 + def type; end +end + +# Represents the use of the `&&` operator or the `and` keyword. +# +# left and right +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#327 +class Prism::AndNode < ::Prism::Node + # def initialize: (left: Node, right: Node, operator_loc: Location, location: Location) -> void + # + # @return [AndNode] a new instance of AndNode + # + # source://yarp//lib/prism/node.rb#338 + def initialize(left, right, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#346 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#351 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#361 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#356 + def compact_child_nodes; end + + # def copy: (**params) -> AndNode + # + # source://yarp//lib/prism/node.rb#366 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#351 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#379 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#388 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node + # + # source://yarp//lib/prism/node.rb#329 + def left; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#384 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#335 + def operator_loc; end + + # attr_reader right: Node + # + # source://yarp//lib/prism/node.rb#332 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#412 + def type; end +end + +# Represents a set of arguments to a method or a keyword. +# +# return foo, bar, baz +# ^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#421 +class Prism::ArgumentsNode < ::Prism::Node + # def initialize: (arguments: Array[Node], location: Location) -> void + # + # @return [ArgumentsNode] a new instance of ArgumentsNode + # + # source://yarp//lib/prism/node.rb#426 + def initialize(arguments, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#432 + def accept(visitor); end + + # attr_reader arguments: Array[Node] + # + # source://yarp//lib/prism/node.rb#423 + def arguments; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#437 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#447 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#442 + def compact_child_nodes; end + + # def copy: (**params) -> ArgumentsNode + # + # source://yarp//lib/prism/node.rb#452 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#437 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#463 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#467 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#487 + def type; end +end + +# Represents an array literal. This can be a regular array using brackets or +# a special array using % like %w or %i. +# +# [1, 2, 3] +# ^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#497 +class Prism::ArrayNode < ::Prism::Node + # def initialize: (elements: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # + # @return [ArrayNode] a new instance of ArrayNode + # + # source://yarp//lib/prism/node.rb#508 + def initialize(elements, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#516 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#521 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#559 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#505 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#531 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#526 + def compact_child_nodes; end + + # def copy: (**params) -> ArrayNode + # + # source://yarp//lib/prism/node.rb#536 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#521 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#549 + def deconstruct_keys(keys); end + + # attr_reader elements: Array[Node] + # + # source://yarp//lib/prism/node.rb#499 + def elements; end + + # source://yarp//lib/prism/node.rb#563 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#554 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#502 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#585 + def type; end +end + +# Represents an array pattern in pattern matching. +# +# foo in 1, 2 +# ^^^^^^^^^^^ +# +# foo in [1, 2] +# ^^^^^^^^^^^^^ +# +# foo in *1 +# ^^^^^^^^^ +# +# foo in Bar[] +# ^^^^^^^^^^^^ +# +# foo in Bar[1, 2, 3] +# ^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#606 +class Prism::ArrayPatternNode < ::Prism::Node + # def initialize: (constant: Node?, requireds: Array[Node], rest: Node?, posts: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # + # @return [ArrayPatternNode] a new instance of ArrayPatternNode + # + # source://yarp//lib/prism/node.rb#626 + def initialize(constant, requireds, rest, posts, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#637 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#642 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#688 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#623 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#657 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#647 + def compact_child_nodes; end + + # attr_reader constant: Node? + # + # source://yarp//lib/prism/node.rb#608 + def constant; end + + # def copy: (**params) -> ArrayPatternNode + # + # source://yarp//lib/prism/node.rb#662 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#642 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#678 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#692 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#683 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#620 + def opening_loc; end + + # attr_reader posts: Array[Node] + # + # source://yarp//lib/prism/node.rb#617 + def posts; end + + # attr_reader requireds: Array[Node] + # + # source://yarp//lib/prism/node.rb#611 + def requireds; end + + # attr_reader rest: Node? + # + # source://yarp//lib/prism/node.rb#614 + def rest; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#727 + def type; end +end + +# Represents a hash key/value pair. +# +# { a => b } +# ^^^^^^ +# +# source://yarp//lib/prism/node.rb#736 +class Prism::AssocNode < ::Prism::Node + # def initialize: (key: Node, value: Node?, operator_loc: Location?, location: Location) -> void + # + # @return [AssocNode] a new instance of AssocNode + # + # source://yarp//lib/prism/node.rb#747 + def initialize(key, value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#755 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#760 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#773 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#765 + def compact_child_nodes; end + + # def copy: (**params) -> AssocNode + # + # source://yarp//lib/prism/node.rb#778 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#760 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#791 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#800 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader key: Node + # + # source://yarp//lib/prism/node.rb#738 + def key; end + + # def operator: () -> String? + # + # source://yarp//lib/prism/node.rb#796 + def operator; end + + # attr_reader operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#744 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#828 + def type; end + + # attr_reader value: Node? + # + # source://yarp//lib/prism/node.rb#741 + def value; end +end + +# Represents a splat in a hash literal. +# +# { **foo } +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#837 +class Prism::AssocSplatNode < ::Prism::Node + # def initialize: (value: Node?, operator_loc: Location, location: Location) -> void + # + # @return [AssocSplatNode] a new instance of AssocSplatNode + # + # source://yarp//lib/prism/node.rb#845 + def initialize(value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#852 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#857 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#869 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#862 + def compact_child_nodes; end + + # def copy: (**params) -> AssocSplatNode + # + # source://yarp//lib/prism/node.rb#874 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#857 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#886 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#895 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#891 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#842 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#921 + def type; end + + # attr_reader value: Node? + # + # source://yarp//lib/prism/node.rb#839 + def value; end +end + +Prism::BACKEND = T.let(T.unsafe(nil), Symbol) + +# Represents reading a reference to a field in the previous match. +# +# $' +# ^^ +# +# source://yarp//lib/prism/node.rb#930 +class Prism::BackReferenceReadNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [BackReferenceReadNode] a new instance of BackReferenceReadNode + # + # source://yarp//lib/prism/node.rb#932 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#937 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#942 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#952 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#947 + def compact_child_nodes; end + + # def copy: (**params) -> BackReferenceReadNode + # + # source://yarp//lib/prism/node.rb#957 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#942 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#967 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#971 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#990 + def type; end +end + +# A class that knows how to walk down the tree. None of the individual visit +# methods are implemented on this visitor, so it forces the consumer to +# implement each one that they need. For a default implementation that +# continues walking the tree, see the Visitor class. +# +# source://yarp//lib/prism/visitor.rb#13 +class Prism::BasicVisitor + # source://yarp//lib/prism/visitor.rb#14 + def visit(node); end + + # source://yarp//lib/prism/visitor.rb#18 + def visit_all(nodes); end + + # source://yarp//lib/prism/visitor.rb#22 + def visit_child_nodes(node); end +end + +# Represents a begin statement. +# +# begin +# foo +# end +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#1001 +class Prism::BeginNode < ::Prism::Node + # def initialize: (begin_keyword_loc: Location?, statements: StatementsNode?, rescue_clause: RescueNode?, else_clause: ElseNode?, ensure_clause: EnsureNode?, end_keyword_loc: Location?, location: Location) -> void + # + # @return [BeginNode] a new instance of BeginNode + # + # source://yarp//lib/prism/node.rb#1021 + def initialize(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1032 + def accept(visitor); end + + # def begin_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#1082 + def begin_keyword; end + + # attr_reader begin_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#1003 + def begin_keyword_loc; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1041 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1056 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1046 + def compact_child_nodes; end + + # def copy: (**params) -> BeginNode + # + # source://yarp//lib/prism/node.rb#1061 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1041 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1077 + def deconstruct_keys(keys); end + + # attr_reader else_clause: ElseNode? + # + # source://yarp//lib/prism/node.rb#1012 + def else_clause; end + + # def end_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#1087 + def end_keyword; end + + # attr_reader end_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#1018 + def end_keyword_loc; end + + # attr_reader ensure_clause: EnsureNode? + # + # source://yarp//lib/prism/node.rb#1015 + def ensure_clause; end + + # source://yarp//lib/prism/node.rb#1091 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader rescue_clause: RescueNode? + # + # source://yarp//lib/prism/node.rb#1009 + def rescue_clause; end + + # source://yarp//lib/prism/node.rb#1036 + def set_newline_flag(newline_marked); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#1006 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1136 + def type; end +end + +# Represents block method arguments. +# +# bar(&args) +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#1145 +class Prism::BlockArgumentNode < ::Prism::Node + # def initialize: (expression: Node?, operator_loc: Location, location: Location) -> void + # + # @return [BlockArgumentNode] a new instance of BlockArgumentNode + # + # source://yarp//lib/prism/node.rb#1153 + def initialize(expression, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1160 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1165 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1177 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1170 + def compact_child_nodes; end + + # def copy: (**params) -> BlockArgumentNode + # + # source://yarp//lib/prism/node.rb#1182 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1165 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1194 + def deconstruct_keys(keys); end + + # attr_reader expression: Node? + # + # source://yarp//lib/prism/node.rb#1147 + def expression; end + + # source://yarp//lib/prism/node.rb#1203 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#1199 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#1150 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1229 + def type; end +end + +# Represents a block local variable. +# +# a { |; b| } +# ^ +# +# source://yarp//lib/prism/node.rb#1238 +class Prism::BlockLocalVariableNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [BlockLocalVariableNode] a new instance of BlockLocalVariableNode + # + # source://yarp//lib/prism/node.rb#1243 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1249 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1254 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1264 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1259 + def compact_child_nodes; end + + # def copy: (**params) -> BlockLocalVariableNode + # + # source://yarp//lib/prism/node.rb#1269 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1254 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1280 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#1284 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#1240 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1304 + def type; end +end + +# Represents a block of ruby code. +# +# [1, 2, 3].each { |i| puts x } +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#1313 +class Prism::BlockNode < ::Prism::Node + # def initialize: (locals: Array[Symbol], parameters: BlockParametersNode?, body: Node?, opening_loc: Location, closing_loc: Location, location: Location) -> void + # + # @return [BlockNode] a new instance of BlockNode + # + # source://yarp//lib/prism/node.rb#1330 + def initialize(locals, parameters, body, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1340 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#1321 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1345 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#1388 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#1327 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1358 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1350 + def compact_child_nodes; end + + # def copy: (**params) -> BlockNode + # + # source://yarp//lib/prism/node.rb#1363 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1345 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1378 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#1392 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#1315 + def locals; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#1383 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#1324 + def opening_loc; end + + # attr_reader parameters: BlockParametersNode? + # + # source://yarp//lib/prism/node.rb#1318 + def parameters; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1426 + def type; end +end + +# Represents a block parameter to a method, block, or lambda definition. +# +# def a(&b) +# ^^ +# end +# +# source://yarp//lib/prism/node.rb#1436 +class Prism::BlockParameterNode < ::Prism::Node + # def initialize: (name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location) -> void + # + # @return [BlockParameterNode] a new instance of BlockParameterNode + # + # source://yarp//lib/prism/node.rb#1447 + def initialize(name, name_loc, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1455 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1460 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1470 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1465 + def compact_child_nodes; end + + # def copy: (**params) -> BlockParameterNode + # + # source://yarp//lib/prism/node.rb#1475 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1460 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1488 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#1497 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol? + # + # source://yarp//lib/prism/node.rb#1438 + def name; end + + # attr_reader name_loc: Location? + # + # source://yarp//lib/prism/node.rb#1441 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#1493 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#1444 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1519 + def type; end +end + +# Represents a block's parameters declaration. +# +# -> (a, b = 1; local) { } +# ^^^^^^^^^^^^^^^^^ +# +# foo do |a, b = 1; local| +# ^^^^^^^^^^^^^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#1532 +class Prism::BlockParametersNode < ::Prism::Node + # def initialize: (parameters: ParametersNode?, locals: Array[Node], opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # + # @return [BlockParametersNode] a new instance of BlockParametersNode + # + # source://yarp//lib/prism/node.rb#1546 + def initialize(parameters, locals, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1555 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1560 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#1602 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#1543 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1573 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1565 + def compact_child_nodes; end + + # def copy: (**params) -> BlockParametersNode + # + # source://yarp//lib/prism/node.rb#1578 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1560 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1592 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#1606 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Node] + # + # source://yarp//lib/prism/node.rb#1537 + def locals; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#1597 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#1540 + def opening_loc; end + + # attr_reader parameters: ParametersNode? + # + # source://yarp//lib/prism/node.rb#1534 + def parameters; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1634 + def type; end +end + +# Represents the use of the `break` keyword. +# +# break foo +# ^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#1643 +class Prism::BreakNode < ::Prism::Node + # def initialize: (arguments: ArgumentsNode?, keyword_loc: Location, location: Location) -> void + # + # @return [BreakNode] a new instance of BreakNode + # + # source://yarp//lib/prism/node.rb#1651 + def initialize(arguments, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1658 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#1645 + def arguments; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1663 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1675 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1668 + def compact_child_nodes; end + + # def copy: (**params) -> BreakNode + # + # source://yarp//lib/prism/node.rb#1680 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1663 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1692 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#1701 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#1697 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#1648 + def keyword_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1727 + def type; end +end + +# Represents the use of the `&&=` operator on a call. +# +# foo.bar &&= value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#1736 +class Prism::CallAndWriteNode < ::Prism::Node + # def initialize: (receiver: Node?, call_operator_loc: Location?, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, flags: Integer, read_name: String, write_name: String, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [CallAndWriteNode] a new instance of CallAndWriteNode + # + # source://yarp//lib/prism/node.rb#1771 + def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name, write_name, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1787 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#1750 + def arguments; end + + # def call_operator: () -> String? + # + # source://yarp//lib/prism/node.rb#1837 + def call_operator; end + + # attr_reader call_operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#1741 + def call_operator_loc; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1792 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#1852 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#1753 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1806 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1797 + def compact_child_nodes; end + + # def copy: (**params) -> CallAndWriteNode + # + # source://yarp//lib/prism/node.rb#1811 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1792 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#1832 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#1871 + def inspect(inspector = T.unsafe(nil)); end + + # def message: () -> String? + # + # source://yarp//lib/prism/node.rb#1842 + def message; end + + # attr_reader message_loc: Location? + # + # source://yarp//lib/prism/node.rb#1744 + def message_loc; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#1847 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#1747 + def opening_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#1867 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#1765 + def operator_loc; end + + # attr_reader read_name: String + # + # source://yarp//lib/prism/node.rb#1759 + def read_name; end + + # attr_reader receiver: Node? + # + # source://yarp//lib/prism/node.rb#1738 + def receiver; end + + # def safe_navigation?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#1857 + def safe_navigation?; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#1913 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#1768 + def value; end + + # def variable_call?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#1862 + def variable_call?; end + + # attr_reader write_name: String + # + # source://yarp//lib/prism/node.rb#1762 + def write_name; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#1756 + def flags; end +end + +# Represents a method call, in all of the various forms that can take. +# +# foo +# ^^^ +# +# foo() +# ^^^^^ +# +# +foo +# ^^^^ +# +# foo + bar +# ^^^^^^^^^ +# +# foo.bar +# ^^^^^^^ +# +# foo&.bar +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#1937 +class Prism::CallNode < ::Prism::Node + # def initialize: (receiver: Node?, call_operator_loc: Location?, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, block: Node?, flags: Integer, name: String, location: Location) -> void + # + # @return [CallNode] a new instance of CallNode + # + # source://yarp//lib/prism/node.rb#1966 + def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, block, flags, name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#1980 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#1951 + def arguments; end + + # attr_reader block: Node? + # + # source://yarp//lib/prism/node.rb#1957 + def block; end + + # def call_operator: () -> String? + # + # source://yarp//lib/prism/node.rb#2028 + def call_operator; end + + # attr_reader call_operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#1942 + def call_operator_loc; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1985 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#2043 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#1954 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#1999 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#1990 + def compact_child_nodes; end + + # def copy: (**params) -> CallNode + # + # source://yarp//lib/prism/node.rb#2004 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#1985 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2023 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#2057 + def inspect(inspector = T.unsafe(nil)); end + + # def message: () -> String? + # + # source://yarp//lib/prism/node.rb#2033 + def message; end + + # attr_reader message_loc: Location? + # + # source://yarp//lib/prism/node.rb#1945 + def message_loc; end + + # attr_reader name: String + # + # source://yarp//lib/prism/node.rb#1963 + def name; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#2038 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#1948 + def opening_loc; end + + # attr_reader receiver: Node? + # + # source://yarp//lib/prism/node.rb#1939 + def receiver; end + + # def safe_navigation?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#2048 + def safe_navigation?; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2101 + def type; end + + # def variable_call?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#2053 + def variable_call?; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#1960 + def flags; end +end + +# source://yarp//lib/prism/node.rb#14478 +module Prism::CallNodeFlags; end + +# &. operator +# +# source://yarp//lib/prism/node.rb#14480 +Prism::CallNodeFlags::SAFE_NAVIGATION = T.let(T.unsafe(nil), Integer) + +# a call that could have been a local variable +# +# source://yarp//lib/prism/node.rb#14483 +Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) + +# Represents the use of an assignment operator on a call. +# +# foo.bar += baz +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#2110 +class Prism::CallOperatorWriteNode < ::Prism::Node + # def initialize: (receiver: Node?, call_operator_loc: Location?, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, flags: Integer, read_name: String, write_name: String, operator: Symbol, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [CallOperatorWriteNode] a new instance of CallOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#2148 + def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name, write_name, operator, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2165 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#2124 + def arguments; end + + # def call_operator: () -> String? + # + # source://yarp//lib/prism/node.rb#2216 + def call_operator; end + + # attr_reader call_operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#2115 + def call_operator_loc; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2170 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#2231 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#2127 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2184 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2175 + def compact_child_nodes; end + + # def copy: (**params) -> CallOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#2189 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2170 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2211 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#2245 + def inspect(inspector = T.unsafe(nil)); end + + # def message: () -> String? + # + # source://yarp//lib/prism/node.rb#2221 + def message; end + + # attr_reader message_loc: Location? + # + # source://yarp//lib/prism/node.rb#2118 + def message_loc; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#2226 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#2121 + def opening_loc; end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#2139 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#2142 + def operator_loc; end + + # attr_reader read_name: String + # + # source://yarp//lib/prism/node.rb#2133 + def read_name; end + + # attr_reader receiver: Node? + # + # source://yarp//lib/prism/node.rb#2112 + def receiver; end + + # def safe_navigation?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#2236 + def safe_navigation?; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2288 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#2145 + def value; end + + # def variable_call?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#2241 + def variable_call?; end + + # attr_reader write_name: String + # + # source://yarp//lib/prism/node.rb#2136 + def write_name; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#2130 + def flags; end +end + +# Represents the use of the `||=` operator on a call. +# +# foo.bar ||= value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#2297 +class Prism::CallOrWriteNode < ::Prism::Node + # def initialize: (receiver: Node?, call_operator_loc: Location?, message_loc: Location?, opening_loc: Location?, arguments: ArgumentsNode?, closing_loc: Location?, flags: Integer, read_name: String, write_name: String, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [CallOrWriteNode] a new instance of CallOrWriteNode + # + # source://yarp//lib/prism/node.rb#2332 + def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name, write_name, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2348 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#2311 + def arguments; end + + # def call_operator: () -> String? + # + # source://yarp//lib/prism/node.rb#2398 + def call_operator; end + + # attr_reader call_operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#2302 + def call_operator_loc; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2353 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#2413 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#2314 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2367 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2358 + def compact_child_nodes; end + + # def copy: (**params) -> CallOrWriteNode + # + # source://yarp//lib/prism/node.rb#2372 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2353 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2393 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#2432 + def inspect(inspector = T.unsafe(nil)); end + + # def message: () -> String? + # + # source://yarp//lib/prism/node.rb#2403 + def message; end + + # attr_reader message_loc: Location? + # + # source://yarp//lib/prism/node.rb#2305 + def message_loc; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#2408 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#2308 + def opening_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#2428 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#2326 + def operator_loc; end + + # attr_reader read_name: String + # + # source://yarp//lib/prism/node.rb#2320 + def read_name; end + + # attr_reader receiver: Node? + # + # source://yarp//lib/prism/node.rb#2299 + def receiver; end + + # def safe_navigation?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#2418 + def safe_navigation?; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2474 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#2329 + def value; end + + # def variable_call?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#2423 + def variable_call?; end + + # attr_reader write_name: String + # + # source://yarp//lib/prism/node.rb#2323 + def write_name; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#2317 + def flags; end +end + +# Represents assigning to a local variable in pattern matching. +# +# foo => [bar => baz] +# ^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#2483 +class Prism::CapturePatternNode < ::Prism::Node + # def initialize: (value: Node, target: Node, operator_loc: Location, location: Location) -> void + # + # @return [CapturePatternNode] a new instance of CapturePatternNode + # + # source://yarp//lib/prism/node.rb#2494 + def initialize(value, target, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2502 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2507 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2517 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2512 + def compact_child_nodes; end + + # def copy: (**params) -> CapturePatternNode + # + # source://yarp//lib/prism/node.rb#2522 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2507 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2535 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#2544 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#2540 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#2491 + def operator_loc; end + + # attr_reader target: Node + # + # source://yarp//lib/prism/node.rb#2488 + def target; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2568 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#2485 + def value; end +end + +# Represents the use of a case statement. +# +# case true +# ^^^^^^^^^ +# when false +# end +# +# source://yarp//lib/prism/node.rb#2579 +class Prism::CaseNode < ::Prism::Node + # def initialize: (predicate: Node?, conditions: Array[Node], consequent: ElseNode?, case_keyword_loc: Location, end_keyword_loc: Location, location: Location) -> void + # + # @return [CaseNode] a new instance of CaseNode + # + # source://yarp//lib/prism/node.rb#2596 + def initialize(predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2606 + def accept(visitor); end + + # def case_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#2650 + def case_keyword; end + + # attr_reader case_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#2590 + def case_keyword_loc; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2611 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2625 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2616 + def compact_child_nodes; end + + # attr_reader conditions: Array[Node] + # + # source://yarp//lib/prism/node.rb#2584 + def conditions; end + + # attr_reader consequent: ElseNode? + # + # source://yarp//lib/prism/node.rb#2587 + def consequent; end + + # def copy: (**params) -> CaseNode + # + # source://yarp//lib/prism/node.rb#2630 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2611 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2645 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#2655 + def end_keyword; end + + # attr_reader end_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#2593 + def end_keyword_loc; end + + # source://yarp//lib/prism/node.rb#2659 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader predicate: Node? + # + # source://yarp//lib/prism/node.rb#2581 + def predicate; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2693 + def type; end +end + +# Represents a class declaration involving the `class` keyword. +# +# class Foo end +# ^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#2702 +class Prism::ClassNode < ::Prism::Node + # def initialize: (locals: Array[Symbol], class_keyword_loc: Location, constant_path: Node, inheritance_operator_loc: Location?, superclass: Node?, body: Node?, end_keyword_loc: Location, name: Symbol, location: Location) -> void + # + # @return [ClassNode] a new instance of ClassNode + # + # source://yarp//lib/prism/node.rb#2728 + def initialize(locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, body, end_keyword_loc, name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2741 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#2719 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2746 + def child_nodes; end + + # def class_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#2788 + def class_keyword; end + + # attr_reader class_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#2707 + def class_keyword_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2760 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2751 + def compact_child_nodes; end + + # attr_reader constant_path: Node + # + # source://yarp//lib/prism/node.rb#2710 + def constant_path; end + + # def copy: (**params) -> ClassNode + # + # source://yarp//lib/prism/node.rb#2765 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2746 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2783 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#2798 + def end_keyword; end + + # attr_reader end_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#2722 + def end_keyword_loc; end + + # def inheritance_operator: () -> String? + # + # source://yarp//lib/prism/node.rb#2793 + def inheritance_operator; end + + # attr_reader inheritance_operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#2713 + def inheritance_operator_loc; end + + # source://yarp//lib/prism/node.rb#2802 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#2704 + def locals; end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#2725 + def name; end + + # attr_reader superclass: Node? + # + # source://yarp//lib/prism/node.rb#2716 + def superclass; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2840 + def type; end +end + +# Represents the use of the `&&=` operator for assignment to a class variable. +# +# @@target &&= value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#2849 +class Prism::ClassVariableAndWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ClassVariableAndWriteNode] a new instance of ClassVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#2863 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2872 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2877 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2887 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2882 + def compact_child_nodes; end + + # def copy: (**params) -> ClassVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#2892 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2877 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#2906 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#2915 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#2851 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#2854 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#2911 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#2857 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#2939 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#2860 + def value; end +end + +# Represents assigning to a class variable using an operator that isn't `=`. +# +# @@target += value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#2948 +class Prism::ClassVariableOperatorWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # + # @return [ClassVariableOperatorWriteNode] a new instance of ClassVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#2965 + def initialize(name, name_loc, operator_loc, value, operator, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#2975 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2980 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#2990 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#2985 + def compact_child_nodes; end + + # def copy: (**params) -> ClassVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#2995 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#2980 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3010 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3014 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#2950 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#2953 + def name_loc; end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#2962 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#2956 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3039 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#2959 + def value; end +end + +# Represents the use of the `||=` operator for assignment to a class variable. +# +# @@target ||= value +# ^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3048 +class Prism::ClassVariableOrWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ClassVariableOrWriteNode] a new instance of ClassVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#3062 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3071 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3076 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3086 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3081 + def compact_child_nodes; end + + # def copy: (**params) -> ClassVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#3091 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3076 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3105 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3114 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3050 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#3053 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#3110 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3056 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3138 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3059 + def value; end +end + +# Represents referencing a class variable. +# +# @@foo +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#3147 +class Prism::ClassVariableReadNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [ClassVariableReadNode] a new instance of ClassVariableReadNode + # + # source://yarp//lib/prism/node.rb#3152 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3158 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3163 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3173 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3168 + def compact_child_nodes; end + + # def copy: (**params) -> ClassVariableReadNode + # + # source://yarp//lib/prism/node.rb#3178 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3163 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3189 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3193 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3149 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3213 + def type; end +end + +# Represents writing to a class variable in a context that doesn't have an explicit value. +# +# @@foo, @@bar = baz +# ^^^^^ ^^^^^ +# +# source://yarp//lib/prism/node.rb#3222 +class Prism::ClassVariableTargetNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [ClassVariableTargetNode] a new instance of ClassVariableTargetNode + # + # source://yarp//lib/prism/node.rb#3227 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3233 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3238 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3248 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3243 + def compact_child_nodes; end + + # def copy: (**params) -> ClassVariableTargetNode + # + # source://yarp//lib/prism/node.rb#3253 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3238 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3264 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3268 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3224 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3288 + def type; end +end + +# Represents writing to a class variable. +# +# @@foo = 1 +# ^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3297 +class Prism::ClassVariableWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location?, location: Location) -> void + # + # @return [ClassVariableWriteNode] a new instance of ClassVariableWriteNode + # + # source://yarp//lib/prism/node.rb#3311 + def initialize(name, name_loc, value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3320 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3325 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3335 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3330 + def compact_child_nodes; end + + # def copy: (**params) -> ClassVariableWriteNode + # + # source://yarp//lib/prism/node.rb#3340 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3325 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3354 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3363 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3299 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#3302 + def name_loc; end + + # def operator: () -> String? + # + # source://yarp//lib/prism/node.rb#3359 + def operator; end + + # attr_reader operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#3308 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3387 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3305 + def value; end +end + +# This represents a comment that was encountered during parsing. +# +# source://yarp//lib/prism/parse_result.rb#145 +class Prism::Comment + # @return [Comment] a new instance of Comment + # + # source://yarp//lib/prism/parse_result.rb#150 + def initialize(type, location); end + + # source://yarp//lib/prism/parse_result.rb#155 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/parse_result.rb#164 + def inspect; end + + # Returns the value of attribute location. + # + # source://yarp//lib/prism/parse_result.rb#148 + def location; end + + # Returns true if the comment happens on the same line as other code and false if the comment is by itself + # + # @return [Boolean] + # + # source://yarp//lib/prism/parse_result.rb#160 + def trailing?; end + + # Returns the value of attribute type. + # + # source://yarp//lib/prism/parse_result.rb#148 + def type; end +end + +# source://yarp//lib/prism/parse_result.rb#146 +Prism::Comment::TYPES = T.let(T.unsafe(nil), Array) + +# A compiler is a visitor that returns the value of each node as it visits. +# This is as opposed to a visitor which will only walk the tree. This can be +# useful when you are trying to compile a tree into a different format. +# +# For example, to build a representation of the tree as s-expressions, you +# could write: +# +# class SExpressions < Prism::Compiler +# def visit_arguments_node(node) = [:arguments, super] +# def visit_call_node(node) = [:call, super] +# def visit_integer_node(node) = [:integer] +# def visit_program_node(node) = [:program, super] +# end +# +# Prism.parse("1 + 2").value.accept(SExpressions.new) +# # => [:program, [[[:call, [[:integer], [:arguments, [[:integer]]]]]]]] +# +# source://yarp//lib/prism/compiler.rb#26 +class Prism::Compiler + # Visit an individual node. + # + # source://yarp//lib/prism/compiler.rb#28 + def visit(node); end + + # Visit the child nodes of the given node. + # Compile a AliasGlobalVariableNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_alias_global_variable_node(node); end + + # Visit the child nodes of the given node. + # Compile a AliasMethodNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_alias_method_node(node); end + + # Visit a list of nodes. + # + # source://yarp//lib/prism/compiler.rb#33 + def visit_all(nodes); end + + # Visit the child nodes of the given node. + # Compile a AlternationPatternNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_alternation_pattern_node(node); end + + # Visit the child nodes of the given node. + # Compile a AndNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_and_node(node); end + + # Visit the child nodes of the given node. + # Compile a ArgumentsNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_arguments_node(node); end + + # Visit the child nodes of the given node. + # Compile a ArrayNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_array_node(node); end + + # Visit the child nodes of the given node. + # Compile a ArrayPatternNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_array_pattern_node(node); end + + # Visit the child nodes of the given node. + # Compile a AssocNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_assoc_node(node); end + + # Visit the child nodes of the given node. + # Compile a AssocSplatNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_assoc_splat_node(node); end + + # Visit the child nodes of the given node. + # Compile a BackReferenceReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_back_reference_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a BeginNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_begin_node(node); end + + # Visit the child nodes of the given node. + # Compile a BlockArgumentNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_block_argument_node(node); end + + # Visit the child nodes of the given node. + # Compile a BlockLocalVariableNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_block_local_variable_node(node); end + + # Visit the child nodes of the given node. + # Compile a BlockNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_block_node(node); end + + # Visit the child nodes of the given node. + # Compile a BlockParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_block_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a BlockParametersNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_block_parameters_node(node); end + + # Visit the child nodes of the given node. + # Compile a BreakNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_break_node(node); end + + # Visit the child nodes of the given node. + # Compile a CallAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_call_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a CallNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_call_node(node); end + + # Visit the child nodes of the given node. + # Compile a CallOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_call_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a CallOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_call_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a CapturePatternNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_capture_pattern_node(node); end + + # Visit the child nodes of the given node. + # Compile a CaseNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_case_node(node); end + + # Visit the child nodes of the given node. + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_child_nodes(node); end + + # Visit the child nodes of the given node. + # Compile a ClassNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_node(node); end + + # Visit the child nodes of the given node. + # Compile a ClassVariableAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_variable_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ClassVariableOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_variable_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ClassVariableOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_variable_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ClassVariableReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_variable_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a ClassVariableTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_variable_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a ClassVariableWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_class_variable_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantPathAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_path_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantPathNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_path_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantPathOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_path_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantPathOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_path_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantPathTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_path_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantPathWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_path_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a ConstantWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_constant_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a DefNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_def_node(node); end + + # Visit the child nodes of the given node. + # Compile a DefinedNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_defined_node(node); end + + # Visit the child nodes of the given node. + # Compile a ElseNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_else_node(node); end + + # Visit the child nodes of the given node. + # Compile a EmbeddedStatementsNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_embedded_statements_node(node); end + + # Visit the child nodes of the given node. + # Compile a EmbeddedVariableNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_embedded_variable_node(node); end + + # Visit the child nodes of the given node. + # Compile a EnsureNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_ensure_node(node); end + + # Visit the child nodes of the given node. + # Compile a FalseNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_false_node(node); end + + # Visit the child nodes of the given node. + # Compile a FindPatternNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_find_pattern_node(node); end + + # Visit the child nodes of the given node. + # Compile a FlipFlopNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_flip_flop_node(node); end + + # Visit the child nodes of the given node. + # Compile a FloatNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_float_node(node); end + + # Visit the child nodes of the given node. + # Compile a ForNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_for_node(node); end + + # Visit the child nodes of the given node. + # Compile a ForwardingArgumentsNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_forwarding_arguments_node(node); end + + # Visit the child nodes of the given node. + # Compile a ForwardingParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_forwarding_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a ForwardingSuperNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_forwarding_super_node(node); end + + # Visit the child nodes of the given node. + # Compile a GlobalVariableAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_global_variable_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a GlobalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_global_variable_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a GlobalVariableOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_global_variable_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a GlobalVariableReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_global_variable_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a GlobalVariableTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_global_variable_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a GlobalVariableWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_global_variable_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a HashNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_hash_node(node); end + + # Visit the child nodes of the given node. + # Compile a HashPatternNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_hash_pattern_node(node); end + + # Visit the child nodes of the given node. + # Compile a IfNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_if_node(node); end + + # Visit the child nodes of the given node. + # Compile a ImaginaryNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_imaginary_node(node); end + + # Visit the child nodes of the given node. + # Compile a ImplicitNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_implicit_node(node); end + + # Visit the child nodes of the given node. + # Compile a InNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_in_node(node); end + + # Visit the child nodes of the given node. + # Compile a InstanceVariableAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_instance_variable_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a InstanceVariableOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_instance_variable_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a InstanceVariableOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_instance_variable_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a InstanceVariableReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_instance_variable_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a InstanceVariableTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_instance_variable_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a InstanceVariableWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_instance_variable_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a IntegerNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_integer_node(node); end + + # Visit the child nodes of the given node. + # Compile a InterpolatedMatchLastLineNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_interpolated_match_last_line_node(node); end + + # Visit the child nodes of the given node. + # Compile a InterpolatedRegularExpressionNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_interpolated_regular_expression_node(node); end + + # Visit the child nodes of the given node. + # Compile a InterpolatedStringNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_interpolated_string_node(node); end + + # Visit the child nodes of the given node. + # Compile a InterpolatedSymbolNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_interpolated_symbol_node(node); end + + # Visit the child nodes of the given node. + # Compile a InterpolatedXStringNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_interpolated_x_string_node(node); end + + # Visit the child nodes of the given node. + # Compile a KeywordHashNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_keyword_hash_node(node); end + + # Visit the child nodes of the given node. + # Compile a KeywordParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_keyword_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a KeywordRestParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_keyword_rest_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a LambdaNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_lambda_node(node); end + + # Visit the child nodes of the given node. + # Compile a LocalVariableAndWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_local_variable_and_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a LocalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_local_variable_operator_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a LocalVariableOrWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_local_variable_or_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a LocalVariableReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_local_variable_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a LocalVariableTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_local_variable_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a LocalVariableWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_local_variable_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a MatchLastLineNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_match_last_line_node(node); end + + # Visit the child nodes of the given node. + # Compile a MatchPredicateNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_match_predicate_node(node); end + + # Visit the child nodes of the given node. + # Compile a MatchRequiredNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_match_required_node(node); end + + # Visit the child nodes of the given node. + # Compile a MatchWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_match_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a MissingNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_missing_node(node); end + + # Visit the child nodes of the given node. + # Compile a ModuleNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_module_node(node); end + + # Visit the child nodes of the given node. + # Compile a MultiTargetNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_multi_target_node(node); end + + # Visit the child nodes of the given node. + # Compile a MultiWriteNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_multi_write_node(node); end + + # Visit the child nodes of the given node. + # Compile a NextNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_next_node(node); end + + # Visit the child nodes of the given node. + # Compile a NilNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_nil_node(node); end + + # Visit the child nodes of the given node. + # Compile a NoKeywordsParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_no_keywords_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a NumberedReferenceReadNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_numbered_reference_read_node(node); end + + # Visit the child nodes of the given node. + # Compile a OptionalParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_optional_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a OrNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_or_node(node); end + + # Visit the child nodes of the given node. + # Compile a ParametersNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_parameters_node(node); end + + # Visit the child nodes of the given node. + # Compile a ParenthesesNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_parentheses_node(node); end + + # Visit the child nodes of the given node. + # Compile a PinnedExpressionNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_pinned_expression_node(node); end + + # Visit the child nodes of the given node. + # Compile a PinnedVariableNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_pinned_variable_node(node); end + + # Visit the child nodes of the given node. + # Compile a PostExecutionNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_post_execution_node(node); end + + # Visit the child nodes of the given node. + # Compile a PreExecutionNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_pre_execution_node(node); end + + # Visit the child nodes of the given node. + # Compile a ProgramNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_program_node(node); end + + # Visit the child nodes of the given node. + # Compile a RangeNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_range_node(node); end + + # Visit the child nodes of the given node. + # Compile a RationalNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_rational_node(node); end + + # Visit the child nodes of the given node. + # Compile a RedoNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_redo_node(node); end + + # Visit the child nodes of the given node. + # Compile a RegularExpressionNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_regular_expression_node(node); end + + # Visit the child nodes of the given node. + # Compile a RequiredDestructuredParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_required_destructured_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a RequiredParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_required_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a RescueModifierNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_rescue_modifier_node(node); end + + # Visit the child nodes of the given node. + # Compile a RescueNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_rescue_node(node); end + + # Visit the child nodes of the given node. + # Compile a RestParameterNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_rest_parameter_node(node); end + + # Visit the child nodes of the given node. + # Compile a RetryNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_retry_node(node); end + + # Visit the child nodes of the given node. + # Compile a ReturnNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_return_node(node); end + + # Visit the child nodes of the given node. + # Compile a SelfNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_self_node(node); end + + # Visit the child nodes of the given node. + # Compile a SingletonClassNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_singleton_class_node(node); end + + # Visit the child nodes of the given node. + # Compile a SourceEncodingNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_source_encoding_node(node); end + + # Visit the child nodes of the given node. + # Compile a SourceFileNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_source_file_node(node); end + + # Visit the child nodes of the given node. + # Compile a SourceLineNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_source_line_node(node); end + + # Visit the child nodes of the given node. + # Compile a SplatNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_splat_node(node); end + + # Visit the child nodes of the given node. + # Compile a StatementsNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_statements_node(node); end + + # Visit the child nodes of the given node. + # Compile a StringConcatNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_string_concat_node(node); end + + # Visit the child nodes of the given node. + # Compile a StringNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_string_node(node); end + + # Visit the child nodes of the given node. + # Compile a SuperNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_super_node(node); end + + # Visit the child nodes of the given node. + # Compile a SymbolNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_symbol_node(node); end + + # Visit the child nodes of the given node. + # Compile a TrueNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_true_node(node); end + + # Visit the child nodes of the given node. + # Compile a UndefNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_undef_node(node); end + + # Visit the child nodes of the given node. + # Compile a UnlessNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_unless_node(node); end + + # Visit the child nodes of the given node. + # Compile a UntilNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_until_node(node); end + + # Visit the child nodes of the given node. + # Compile a WhenNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_when_node(node); end + + # Visit the child nodes of the given node. + # Compile a WhileNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_while_node(node); end + + # Visit the child nodes of the given node. + # Compile a XStringNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_x_string_node(node); end + + # Visit the child nodes of the given node. + # Compile a YieldNode node + # + # source://yarp//lib/prism/compiler.rb#38 + def visit_yield_node(node); end +end + +# Represents the use of the `&&=` operator for assignment to a constant. +# +# Target &&= value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3396 +class Prism::ConstantAndWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ConstantAndWriteNode] a new instance of ConstantAndWriteNode + # + # source://yarp//lib/prism/node.rb#3410 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3419 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3424 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3434 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3429 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantAndWriteNode + # + # source://yarp//lib/prism/node.rb#3439 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3424 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3453 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3462 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3398 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#3401 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#3458 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3404 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3486 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3407 + def value; end +end + +# Represents assigning to a constant using an operator that isn't `=`. +# +# Target += value +# ^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3495 +class Prism::ConstantOperatorWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # + # @return [ConstantOperatorWriteNode] a new instance of ConstantOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#3512 + def initialize(name, name_loc, operator_loc, value, operator, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3522 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3527 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3537 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3532 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#3542 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3527 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3557 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3561 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3497 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#3500 + def name_loc; end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#3509 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3503 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3586 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3506 + def value; end +end + +# Represents the use of the `||=` operator for assignment to a constant. +# +# Target ||= value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3595 +class Prism::ConstantOrWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ConstantOrWriteNode] a new instance of ConstantOrWriteNode + # + # source://yarp//lib/prism/node.rb#3609 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3618 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3623 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3633 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3628 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantOrWriteNode + # + # source://yarp//lib/prism/node.rb#3638 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3623 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3652 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3661 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#3597 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#3600 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#3657 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3603 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3685 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3606 + def value; end +end + +# Represents the use of the `&&=` operator for assignment to a constant path. +# +# Parent::Child &&= value +# ^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3694 +class Prism::ConstantPathAndWriteNode < ::Prism::Node + # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ConstantPathAndWriteNode] a new instance of ConstantPathAndWriteNode + # + # source://yarp//lib/prism/node.rb#3705 + def initialize(target, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3713 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3718 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3728 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3723 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantPathAndWriteNode + # + # source://yarp//lib/prism/node.rb#3733 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3718 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3746 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3755 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#3751 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3699 + def operator_loc; end + + # attr_reader target: ConstantPathNode + # + # source://yarp//lib/prism/node.rb#3696 + def target; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3779 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3702 + def value; end +end + +# Represents accessing a constant through a path of `::` operators. +# +# Foo::Bar +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3788 +class Prism::ConstantPathNode < ::Prism::Node + # def initialize: (parent: Node?, child: Node, delimiter_loc: Location, location: Location) -> void + # + # @return [ConstantPathNode] a new instance of ConstantPathNode + # + # source://yarp//lib/prism/node.rb#3799 + def initialize(parent, child, delimiter_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3807 + def accept(visitor); end + + # attr_reader child: Node + # + # source://yarp//lib/prism/node.rb#3793 + def child; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3812 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3825 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3817 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantPathNode + # + # source://yarp//lib/prism/node.rb#3830 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3812 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3843 + def deconstruct_keys(keys); end + + # def delimiter: () -> String + # + # source://yarp//lib/prism/node.rb#3848 + def delimiter; end + + # attr_reader delimiter_loc: Location + # + # source://yarp//lib/prism/node.rb#3796 + def delimiter_loc; end + + # source://yarp//lib/prism/node.rb#3852 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader parent: Node? + # + # source://yarp//lib/prism/node.rb#3790 + def parent; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3880 + def type; end +end + +# Represents assigning to a constant path using an operator that isn't `=`. +# +# Parent::Child += value +# ^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3889 +class Prism::ConstantPathOperatorWriteNode < ::Prism::Node + # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # + # @return [ConstantPathOperatorWriteNode] a new instance of ConstantPathOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#3903 + def initialize(target, operator_loc, value, operator, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#3912 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3917 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#3927 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#3922 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantPathOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#3932 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#3917 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#3946 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#3950 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#3900 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3894 + def operator_loc; end + + # attr_reader target: ConstantPathNode + # + # source://yarp//lib/prism/node.rb#3891 + def target; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#3975 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3897 + def value; end +end + +# Represents the use of the `||=` operator for assignment to a constant path. +# +# Parent::Child ||= value +# ^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#3984 +class Prism::ConstantPathOrWriteNode < ::Prism::Node + # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ConstantPathOrWriteNode] a new instance of ConstantPathOrWriteNode + # + # source://yarp//lib/prism/node.rb#3995 + def initialize(target, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4003 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4008 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4018 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4013 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantPathOrWriteNode + # + # source://yarp//lib/prism/node.rb#4023 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4008 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4036 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#4045 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#4041 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#3989 + def operator_loc; end + + # attr_reader target: ConstantPathNode + # + # source://yarp//lib/prism/node.rb#3986 + def target; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4069 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#3992 + def value; end +end + +# Represents writing to a constant path in a context that doesn't have an explicit value. +# +# Foo::Foo, Bar::Bar = baz +# ^^^^^^^^ ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#4078 +class Prism::ConstantPathTargetNode < ::Prism::Node + # def initialize: (parent: Node?, child: Node, delimiter_loc: Location, location: Location) -> void + # + # @return [ConstantPathTargetNode] a new instance of ConstantPathTargetNode + # + # source://yarp//lib/prism/node.rb#4089 + def initialize(parent, child, delimiter_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4097 + def accept(visitor); end + + # attr_reader child: Node + # + # source://yarp//lib/prism/node.rb#4083 + def child; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4102 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4115 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4107 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantPathTargetNode + # + # source://yarp//lib/prism/node.rb#4120 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4102 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4133 + def deconstruct_keys(keys); end + + # def delimiter: () -> String + # + # source://yarp//lib/prism/node.rb#4138 + def delimiter; end + + # attr_reader delimiter_loc: Location + # + # source://yarp//lib/prism/node.rb#4086 + def delimiter_loc; end + + # source://yarp//lib/prism/node.rb#4142 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader parent: Node? + # + # source://yarp//lib/prism/node.rb#4080 + def parent; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4170 + def type; end +end + +# Represents writing to a constant path. +# +# ::Foo = 1 +# ^^^^^^^^^ +# +# Foo::Bar = 1 +# ^^^^^^^^^^^^ +# +# ::Foo::Bar = 1 +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#4185 +class Prism::ConstantPathWriteNode < ::Prism::Node + # def initialize: (target: ConstantPathNode, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [ConstantPathWriteNode] a new instance of ConstantPathWriteNode + # + # source://yarp//lib/prism/node.rb#4196 + def initialize(target, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4204 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4209 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4219 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4214 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantPathWriteNode + # + # source://yarp//lib/prism/node.rb#4224 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4209 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4237 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#4246 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#4242 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#4190 + def operator_loc; end + + # attr_reader target: ConstantPathNode + # + # source://yarp//lib/prism/node.rb#4187 + def target; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4270 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#4193 + def value; end +end + +# Represents referencing a constant. +# +# Foo +# ^^^ +# +# source://yarp//lib/prism/node.rb#4279 +class Prism::ConstantReadNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [ConstantReadNode] a new instance of ConstantReadNode + # + # source://yarp//lib/prism/node.rb#4284 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4290 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4295 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4305 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4300 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantReadNode + # + # source://yarp//lib/prism/node.rb#4310 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4295 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4321 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#4325 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#4281 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4345 + def type; end +end + +# Represents writing to a constant in a context that doesn't have an explicit value. +# +# Foo, Bar = baz +# ^^^ ^^^ +# +# source://yarp//lib/prism/node.rb#4354 +class Prism::ConstantTargetNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [ConstantTargetNode] a new instance of ConstantTargetNode + # + # source://yarp//lib/prism/node.rb#4359 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4365 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4370 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4380 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4375 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantTargetNode + # + # source://yarp//lib/prism/node.rb#4385 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4370 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4396 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#4400 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#4356 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4420 + def type; end +end + +# Represents writing to a constant. +# +# Foo = 1 +# ^^^^^^^ +# +# source://yarp//lib/prism/node.rb#4429 +class Prism::ConstantWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # + # @return [ConstantWriteNode] a new instance of ConstantWriteNode + # + # source://yarp//lib/prism/node.rb#4443 + def initialize(name, name_loc, value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4452 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4457 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4467 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4462 + def compact_child_nodes; end + + # def copy: (**params) -> ConstantWriteNode + # + # source://yarp//lib/prism/node.rb#4472 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4457 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4486 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#4495 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#4431 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#4434 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#4491 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#4440 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4519 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#4437 + def value; end +end + +# The DSL module provides a set of methods that can be used to create prism +# nodes in a more concise manner. For example, instead of writing: +# +# source = Prism::Source.new("[1]") +# +# Prism::ArrayNode.new( +# [ +# Prism::IntegerNode.new( +# Prism::IntegerBaseFlags::DECIMAL, +# Prism::Location.new(source, 1, 1), +# ) +# ], +# Prism::Location.new(source, 0, 1), +# Prism::Location.new(source, 2, 1) +# ) +# +# you could instead write: +# +# source = Prism::Source.new("[1]") +# +# ArrayNode( +# IntegerNode(Prism::IntegerBaseFlags::DECIMAL, Location(source, 1, 1))), +# Location(source, 0, 1), +# Location(source, 2, 1) +# ) +# +# This is mostly helpful in the context of writing tests, but can also be used +# to generate trees programmatically. +# +# source://yarp//lib/prism/dsl.rb#37 +module Prism::DSL + private + + # Create a new AliasGlobalVariableNode node + # + # source://yarp//lib/prism/dsl.rb#46 + def AliasGlobalVariableNode(new_name, old_name, keyword_loc, location = T.unsafe(nil)); end + + # Create a new AliasMethodNode node + # + # source://yarp//lib/prism/dsl.rb#51 + def AliasMethodNode(new_name, old_name, keyword_loc, location = T.unsafe(nil)); end + + # Create a new AlternationPatternNode node + # + # source://yarp//lib/prism/dsl.rb#56 + def AlternationPatternNode(left, right, operator_loc, location = T.unsafe(nil)); end + + # Create a new AndNode node + # + # source://yarp//lib/prism/dsl.rb#61 + def AndNode(left, right, operator_loc, location = T.unsafe(nil)); end + + # Create a new ArgumentsNode node + # + # source://yarp//lib/prism/dsl.rb#66 + def ArgumentsNode(arguments, location = T.unsafe(nil)); end + + # Create a new ArrayNode node + # + # source://yarp//lib/prism/dsl.rb#71 + def ArrayNode(elements, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new ArrayPatternNode node + # + # source://yarp//lib/prism/dsl.rb#76 + def ArrayPatternNode(constant, requireds, rest, posts, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new AssocNode node + # + # source://yarp//lib/prism/dsl.rb#81 + def AssocNode(key, value, operator_loc, location = T.unsafe(nil)); end + + # Create a new AssocSplatNode node + # + # source://yarp//lib/prism/dsl.rb#86 + def AssocSplatNode(value, operator_loc, location = T.unsafe(nil)); end + + # Create a new BackReferenceReadNode node + # + # source://yarp//lib/prism/dsl.rb#91 + def BackReferenceReadNode(location = T.unsafe(nil)); end + + # Create a new BeginNode node + # + # source://yarp//lib/prism/dsl.rb#96 + def BeginNode(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new BlockArgumentNode node + # + # source://yarp//lib/prism/dsl.rb#101 + def BlockArgumentNode(expression, operator_loc, location = T.unsafe(nil)); end + + # Create a new BlockLocalVariableNode node + # + # source://yarp//lib/prism/dsl.rb#106 + def BlockLocalVariableNode(name, location = T.unsafe(nil)); end + + # Create a new BlockNode node + # + # source://yarp//lib/prism/dsl.rb#111 + def BlockNode(locals, parameters, body, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new BlockParameterNode node + # + # source://yarp//lib/prism/dsl.rb#116 + def BlockParameterNode(name, name_loc, operator_loc, location = T.unsafe(nil)); end + + # Create a new BlockParametersNode node + # + # source://yarp//lib/prism/dsl.rb#121 + def BlockParametersNode(parameters, locals, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new BreakNode node + # + # source://yarp//lib/prism/dsl.rb#126 + def BreakNode(arguments, keyword_loc, location = T.unsafe(nil)); end + + # Create a new CallAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#131 + def CallAndWriteNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name, write_name, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new CallNode node + # + # source://yarp//lib/prism/dsl.rb#136 + def CallNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, block, flags, name, location = T.unsafe(nil)); end + + # Create a new CallOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#141 + def CallOperatorWriteNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name, write_name, operator, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new CallOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#146 + def CallOrWriteNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name, write_name, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new CapturePatternNode node + # + # source://yarp//lib/prism/dsl.rb#151 + def CapturePatternNode(value, target, operator_loc, location = T.unsafe(nil)); end + + # Create a new CaseNode node + # + # source://yarp//lib/prism/dsl.rb#156 + def CaseNode(predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new ClassNode node + # + # source://yarp//lib/prism/dsl.rb#161 + def ClassNode(locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, body, end_keyword_loc, name, location = T.unsafe(nil)); end + + # Create a new ClassVariableAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#166 + def ClassVariableAndWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ClassVariableOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#171 + def ClassVariableOperatorWriteNode(name, name_loc, operator_loc, value, operator, location = T.unsafe(nil)); end + + # Create a new ClassVariableOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#176 + def ClassVariableOrWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ClassVariableReadNode node + # + # source://yarp//lib/prism/dsl.rb#181 + def ClassVariableReadNode(name, location = T.unsafe(nil)); end + + # Create a new ClassVariableTargetNode node + # + # source://yarp//lib/prism/dsl.rb#186 + def ClassVariableTargetNode(name, location = T.unsafe(nil)); end + + # Create a new ClassVariableWriteNode node + # + # source://yarp//lib/prism/dsl.rb#191 + def ClassVariableWriteNode(name, name_loc, value, operator_loc, location = T.unsafe(nil)); end + + # Create a new ConstantAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#196 + def ConstantAndWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ConstantOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#201 + def ConstantOperatorWriteNode(name, name_loc, operator_loc, value, operator, location = T.unsafe(nil)); end + + # Create a new ConstantOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#206 + def ConstantOrWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ConstantPathAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#211 + def ConstantPathAndWriteNode(target, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ConstantPathNode node + # + # source://yarp//lib/prism/dsl.rb#216 + def ConstantPathNode(parent, child, delimiter_loc, location = T.unsafe(nil)); end + + # Create a new ConstantPathOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#221 + def ConstantPathOperatorWriteNode(target, operator_loc, value, operator, location = T.unsafe(nil)); end + + # Create a new ConstantPathOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#226 + def ConstantPathOrWriteNode(target, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ConstantPathTargetNode node + # + # source://yarp//lib/prism/dsl.rb#231 + def ConstantPathTargetNode(parent, child, delimiter_loc, location = T.unsafe(nil)); end + + # Create a new ConstantPathWriteNode node + # + # source://yarp//lib/prism/dsl.rb#236 + def ConstantPathWriteNode(target, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new ConstantReadNode node + # + # source://yarp//lib/prism/dsl.rb#241 + def ConstantReadNode(name, location = T.unsafe(nil)); end + + # Create a new ConstantTargetNode node + # + # source://yarp//lib/prism/dsl.rb#246 + def ConstantTargetNode(name, location = T.unsafe(nil)); end + + # Create a new ConstantWriteNode node + # + # source://yarp//lib/prism/dsl.rb#251 + def ConstantWriteNode(name, name_loc, value, operator_loc, location = T.unsafe(nil)); end + + # Create a new DefNode node + # + # source://yarp//lib/prism/dsl.rb#256 + def DefNode(name, name_loc, receiver, parameters, body, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new DefinedNode node + # + # source://yarp//lib/prism/dsl.rb#261 + def DefinedNode(lparen_loc, value, rparen_loc, keyword_loc, location = T.unsafe(nil)); end + + # Create a new ElseNode node + # + # source://yarp//lib/prism/dsl.rb#266 + def ElseNode(else_keyword_loc, statements, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new EmbeddedStatementsNode node + # + # source://yarp//lib/prism/dsl.rb#271 + def EmbeddedStatementsNode(opening_loc, statements, closing_loc, location = T.unsafe(nil)); end + + # Create a new EmbeddedVariableNode node + # + # source://yarp//lib/prism/dsl.rb#276 + def EmbeddedVariableNode(operator_loc, variable, location = T.unsafe(nil)); end + + # Create a new EnsureNode node + # + # source://yarp//lib/prism/dsl.rb#281 + def EnsureNode(ensure_keyword_loc, statements, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new FalseNode node + # + # source://yarp//lib/prism/dsl.rb#286 + def FalseNode(location = T.unsafe(nil)); end + + # Create a new FindPatternNode node + # + # source://yarp//lib/prism/dsl.rb#291 + def FindPatternNode(constant, left, requireds, right, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new FlipFlopNode node + # + # source://yarp//lib/prism/dsl.rb#296 + def FlipFlopNode(left, right, operator_loc, flags, location = T.unsafe(nil)); end + + # Create a new FloatNode node + # + # source://yarp//lib/prism/dsl.rb#301 + def FloatNode(location = T.unsafe(nil)); end + + # Create a new ForNode node + # + # source://yarp//lib/prism/dsl.rb#306 + def ForNode(index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new ForwardingArgumentsNode node + # + # source://yarp//lib/prism/dsl.rb#311 + def ForwardingArgumentsNode(location = T.unsafe(nil)); end + + # Create a new ForwardingParameterNode node + # + # source://yarp//lib/prism/dsl.rb#316 + def ForwardingParameterNode(location = T.unsafe(nil)); end + + # Create a new ForwardingSuperNode node + # + # source://yarp//lib/prism/dsl.rb#321 + def ForwardingSuperNode(block, location = T.unsafe(nil)); end + + # Create a new GlobalVariableAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#326 + def GlobalVariableAndWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new GlobalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#331 + def GlobalVariableOperatorWriteNode(name, name_loc, operator_loc, value, operator, location = T.unsafe(nil)); end + + # Create a new GlobalVariableOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#336 + def GlobalVariableOrWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new GlobalVariableReadNode node + # + # source://yarp//lib/prism/dsl.rb#341 + def GlobalVariableReadNode(name, location = T.unsafe(nil)); end + + # Create a new GlobalVariableTargetNode node + # + # source://yarp//lib/prism/dsl.rb#346 + def GlobalVariableTargetNode(name, location = T.unsafe(nil)); end + + # Create a new GlobalVariableWriteNode node + # + # source://yarp//lib/prism/dsl.rb#351 + def GlobalVariableWriteNode(name, name_loc, value, operator_loc, location = T.unsafe(nil)); end + + # Create a new HashNode node + # + # source://yarp//lib/prism/dsl.rb#356 + def HashNode(opening_loc, elements, closing_loc, location = T.unsafe(nil)); end + + # Create a new HashPatternNode node + # + # source://yarp//lib/prism/dsl.rb#361 + def HashPatternNode(constant, assocs, kwrest, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new IfNode node + # + # source://yarp//lib/prism/dsl.rb#366 + def IfNode(if_keyword_loc, predicate, statements, consequent, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new ImaginaryNode node + # + # source://yarp//lib/prism/dsl.rb#371 + def ImaginaryNode(numeric, location = T.unsafe(nil)); end + + # Create a new ImplicitNode node + # + # source://yarp//lib/prism/dsl.rb#376 + def ImplicitNode(value, location = T.unsafe(nil)); end + + # Create a new InNode node + # + # source://yarp//lib/prism/dsl.rb#381 + def InNode(pattern, statements, in_loc, then_loc, location = T.unsafe(nil)); end + + # Create a new InstanceVariableAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#386 + def InstanceVariableAndWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new InstanceVariableOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#391 + def InstanceVariableOperatorWriteNode(name, name_loc, operator_loc, value, operator, location = T.unsafe(nil)); end + + # Create a new InstanceVariableOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#396 + def InstanceVariableOrWriteNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new InstanceVariableReadNode node + # + # source://yarp//lib/prism/dsl.rb#401 + def InstanceVariableReadNode(name, location = T.unsafe(nil)); end + + # Create a new InstanceVariableTargetNode node + # + # source://yarp//lib/prism/dsl.rb#406 + def InstanceVariableTargetNode(name, location = T.unsafe(nil)); end + + # Create a new InstanceVariableWriteNode node + # + # source://yarp//lib/prism/dsl.rb#411 + def InstanceVariableWriteNode(name, name_loc, value, operator_loc, location = T.unsafe(nil)); end + + # Create a new IntegerNode node + # + # source://yarp//lib/prism/dsl.rb#416 + def IntegerNode(flags, location = T.unsafe(nil)); end + + # Create a new InterpolatedMatchLastLineNode node + # + # source://yarp//lib/prism/dsl.rb#421 + def InterpolatedMatchLastLineNode(opening_loc, parts, closing_loc, flags, location = T.unsafe(nil)); end + + # Create a new InterpolatedRegularExpressionNode node + # + # source://yarp//lib/prism/dsl.rb#426 + def InterpolatedRegularExpressionNode(opening_loc, parts, closing_loc, flags, location = T.unsafe(nil)); end + + # Create a new InterpolatedStringNode node + # + # source://yarp//lib/prism/dsl.rb#431 + def InterpolatedStringNode(opening_loc, parts, closing_loc, location = T.unsafe(nil)); end + + # Create a new InterpolatedSymbolNode node + # + # source://yarp//lib/prism/dsl.rb#436 + def InterpolatedSymbolNode(opening_loc, parts, closing_loc, location = T.unsafe(nil)); end + + # Create a new InterpolatedXStringNode node + # + # source://yarp//lib/prism/dsl.rb#441 + def InterpolatedXStringNode(opening_loc, parts, closing_loc, location = T.unsafe(nil)); end + + # Create a new KeywordHashNode node + # + # source://yarp//lib/prism/dsl.rb#446 + def KeywordHashNode(elements, location = T.unsafe(nil)); end + + # Create a new KeywordParameterNode node + # + # source://yarp//lib/prism/dsl.rb#451 + def KeywordParameterNode(name, name_loc, value, location = T.unsafe(nil)); end + + # Create a new KeywordRestParameterNode node + # + # source://yarp//lib/prism/dsl.rb#456 + def KeywordRestParameterNode(name, name_loc, operator_loc, location = T.unsafe(nil)); end + + # Create a new LambdaNode node + # + # source://yarp//lib/prism/dsl.rb#461 + def LambdaNode(locals, operator_loc, opening_loc, closing_loc, parameters, body, location = T.unsafe(nil)); end + + # Create a new LocalVariableAndWriteNode node + # + # source://yarp//lib/prism/dsl.rb#466 + def LocalVariableAndWriteNode(name_loc, operator_loc, value, name, depth, location = T.unsafe(nil)); end + + # Create a new LocalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/dsl.rb#471 + def LocalVariableOperatorWriteNode(name_loc, operator_loc, value, name, operator, depth, location = T.unsafe(nil)); end + + # Create a new LocalVariableOrWriteNode node + # + # source://yarp//lib/prism/dsl.rb#476 + def LocalVariableOrWriteNode(name_loc, operator_loc, value, name, depth, location = T.unsafe(nil)); end + + # Create a new LocalVariableReadNode node + # + # source://yarp//lib/prism/dsl.rb#481 + def LocalVariableReadNode(name, depth, location = T.unsafe(nil)); end + + # Create a new LocalVariableTargetNode node + # + # source://yarp//lib/prism/dsl.rb#486 + def LocalVariableTargetNode(name, depth, location = T.unsafe(nil)); end + + # Create a new LocalVariableWriteNode node + # + # source://yarp//lib/prism/dsl.rb#491 + def LocalVariableWriteNode(name, depth, name_loc, value, operator_loc, location = T.unsafe(nil)); end + + # Create a new Location object + # + # source://yarp//lib/prism/dsl.rb#41 + def Location(source = T.unsafe(nil), start_offset = T.unsafe(nil), length = T.unsafe(nil)); end + + # Create a new MatchLastLineNode node + # + # source://yarp//lib/prism/dsl.rb#496 + def MatchLastLineNode(opening_loc, content_loc, closing_loc, unescaped, flags, location = T.unsafe(nil)); end + + # Create a new MatchPredicateNode node + # + # source://yarp//lib/prism/dsl.rb#501 + def MatchPredicateNode(value, pattern, operator_loc, location = T.unsafe(nil)); end + + # Create a new MatchRequiredNode node + # + # source://yarp//lib/prism/dsl.rb#506 + def MatchRequiredNode(value, pattern, operator_loc, location = T.unsafe(nil)); end + + # Create a new MatchWriteNode node + # + # source://yarp//lib/prism/dsl.rb#511 + def MatchWriteNode(call, locals, location = T.unsafe(nil)); end + + # Create a new MissingNode node + # + # source://yarp//lib/prism/dsl.rb#516 + def MissingNode(location = T.unsafe(nil)); end + + # Create a new ModuleNode node + # + # source://yarp//lib/prism/dsl.rb#521 + def ModuleNode(locals, module_keyword_loc, constant_path, body, end_keyword_loc, name, location = T.unsafe(nil)); end + + # Create a new MultiTargetNode node + # + # source://yarp//lib/prism/dsl.rb#526 + def MultiTargetNode(targets, lparen_loc, rparen_loc, location = T.unsafe(nil)); end + + # Create a new MultiWriteNode node + # + # source://yarp//lib/prism/dsl.rb#531 + def MultiWriteNode(targets, lparen_loc, rparen_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new NextNode node + # + # source://yarp//lib/prism/dsl.rb#536 + def NextNode(arguments, keyword_loc, location = T.unsafe(nil)); end + + # Create a new NilNode node + # + # source://yarp//lib/prism/dsl.rb#541 + def NilNode(location = T.unsafe(nil)); end + + # Create a new NoKeywordsParameterNode node + # + # source://yarp//lib/prism/dsl.rb#546 + def NoKeywordsParameterNode(operator_loc, keyword_loc, location = T.unsafe(nil)); end + + # Create a new NumberedReferenceReadNode node + # + # source://yarp//lib/prism/dsl.rb#551 + def NumberedReferenceReadNode(number, location = T.unsafe(nil)); end + + # Create a new OptionalParameterNode node + # + # source://yarp//lib/prism/dsl.rb#556 + def OptionalParameterNode(name, name_loc, operator_loc, value, location = T.unsafe(nil)); end + + # Create a new OrNode node + # + # source://yarp//lib/prism/dsl.rb#561 + def OrNode(left, right, operator_loc, location = T.unsafe(nil)); end + + # Create a new ParametersNode node + # + # source://yarp//lib/prism/dsl.rb#566 + def ParametersNode(requireds, optionals, rest, posts, keywords, keyword_rest, block, location = T.unsafe(nil)); end + + # Create a new ParenthesesNode node + # + # source://yarp//lib/prism/dsl.rb#571 + def ParenthesesNode(body, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new PinnedExpressionNode node + # + # source://yarp//lib/prism/dsl.rb#576 + def PinnedExpressionNode(expression, operator_loc, lparen_loc, rparen_loc, location = T.unsafe(nil)); end + + # Create a new PinnedVariableNode node + # + # source://yarp//lib/prism/dsl.rb#581 + def PinnedVariableNode(variable, operator_loc, location = T.unsafe(nil)); end + + # Create a new PostExecutionNode node + # + # source://yarp//lib/prism/dsl.rb#586 + def PostExecutionNode(statements, keyword_loc, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new PreExecutionNode node + # + # source://yarp//lib/prism/dsl.rb#591 + def PreExecutionNode(statements, keyword_loc, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new ProgramNode node + # + # source://yarp//lib/prism/dsl.rb#596 + def ProgramNode(locals, statements, location = T.unsafe(nil)); end + + # Create a new RangeNode node + # + # source://yarp//lib/prism/dsl.rb#601 + def RangeNode(left, right, operator_loc, flags, location = T.unsafe(nil)); end + + # Create a new RationalNode node + # + # source://yarp//lib/prism/dsl.rb#606 + def RationalNode(numeric, location = T.unsafe(nil)); end + + # Create a new RedoNode node + # + # source://yarp//lib/prism/dsl.rb#611 + def RedoNode(location = T.unsafe(nil)); end + + # Create a new RegularExpressionNode node + # + # source://yarp//lib/prism/dsl.rb#616 + def RegularExpressionNode(opening_loc, content_loc, closing_loc, unescaped, flags, location = T.unsafe(nil)); end + + # Create a new RequiredDestructuredParameterNode node + # + # source://yarp//lib/prism/dsl.rb#621 + def RequiredDestructuredParameterNode(parameters, opening_loc, closing_loc, location = T.unsafe(nil)); end + + # Create a new RequiredParameterNode node + # + # source://yarp//lib/prism/dsl.rb#626 + def RequiredParameterNode(name, location = T.unsafe(nil)); end + + # Create a new RescueModifierNode node + # + # source://yarp//lib/prism/dsl.rb#631 + def RescueModifierNode(expression, keyword_loc, rescue_expression, location = T.unsafe(nil)); end + + # Create a new RescueNode node + # + # source://yarp//lib/prism/dsl.rb#636 + def RescueNode(keyword_loc, exceptions, operator_loc, reference, statements, consequent, location = T.unsafe(nil)); end + + # Create a new RestParameterNode node + # + # source://yarp//lib/prism/dsl.rb#641 + def RestParameterNode(name, name_loc, operator_loc, location = T.unsafe(nil)); end + + # Create a new RetryNode node + # + # source://yarp//lib/prism/dsl.rb#646 + def RetryNode(location = T.unsafe(nil)); end + + # Create a new ReturnNode node + # + # source://yarp//lib/prism/dsl.rb#651 + def ReturnNode(keyword_loc, arguments, location = T.unsafe(nil)); end + + # Create a new SelfNode node + # + # source://yarp//lib/prism/dsl.rb#656 + def SelfNode(location = T.unsafe(nil)); end + + # Create a new SingletonClassNode node + # + # source://yarp//lib/prism/dsl.rb#661 + def SingletonClassNode(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new SourceEncodingNode node + # + # source://yarp//lib/prism/dsl.rb#666 + def SourceEncodingNode(location = T.unsafe(nil)); end + + # Create a new SourceFileNode node + # + # source://yarp//lib/prism/dsl.rb#671 + def SourceFileNode(filepath, location = T.unsafe(nil)); end + + # Create a new SourceLineNode node + # + # source://yarp//lib/prism/dsl.rb#676 + def SourceLineNode(location = T.unsafe(nil)); end + + # Create a new SplatNode node + # + # source://yarp//lib/prism/dsl.rb#681 + def SplatNode(operator_loc, expression, location = T.unsafe(nil)); end + + # Create a new StatementsNode node + # + # source://yarp//lib/prism/dsl.rb#686 + def StatementsNode(body, location = T.unsafe(nil)); end + + # Create a new StringConcatNode node + # + # source://yarp//lib/prism/dsl.rb#691 + def StringConcatNode(left, right, location = T.unsafe(nil)); end + + # Create a new StringNode node + # + # source://yarp//lib/prism/dsl.rb#696 + def StringNode(flags, opening_loc, content_loc, closing_loc, unescaped, location = T.unsafe(nil)); end + + # Create a new SuperNode node + # + # source://yarp//lib/prism/dsl.rb#701 + def SuperNode(keyword_loc, lparen_loc, arguments, rparen_loc, block, location = T.unsafe(nil)); end + + # Create a new SymbolNode node + # + # source://yarp//lib/prism/dsl.rb#706 + def SymbolNode(opening_loc, value_loc, closing_loc, unescaped, location = T.unsafe(nil)); end + + # Create a new TrueNode node + # + # source://yarp//lib/prism/dsl.rb#711 + def TrueNode(location = T.unsafe(nil)); end + + # Create a new UndefNode node + # + # source://yarp//lib/prism/dsl.rb#716 + def UndefNode(names, keyword_loc, location = T.unsafe(nil)); end + + # Create a new UnlessNode node + # + # source://yarp//lib/prism/dsl.rb#721 + def UnlessNode(keyword_loc, predicate, statements, consequent, end_keyword_loc, location = T.unsafe(nil)); end + + # Create a new UntilNode node + # + # source://yarp//lib/prism/dsl.rb#726 + def UntilNode(keyword_loc, closing_loc, predicate, statements, flags, location = T.unsafe(nil)); end + + # Create a new WhenNode node + # + # source://yarp//lib/prism/dsl.rb#731 + def WhenNode(keyword_loc, conditions, statements, location = T.unsafe(nil)); end + + # Create a new WhileNode node + # + # source://yarp//lib/prism/dsl.rb#736 + def WhileNode(keyword_loc, closing_loc, predicate, statements, flags, location = T.unsafe(nil)); end + + # Create a new XStringNode node + # + # source://yarp//lib/prism/dsl.rb#741 + def XStringNode(opening_loc, content_loc, closing_loc, unescaped, location = T.unsafe(nil)); end + + # Create a new YieldNode node + # + # source://yarp//lib/prism/dsl.rb#746 + def YieldNode(keyword_loc, lparen_loc, arguments, rparen_loc, location = T.unsafe(nil)); end +end + +# This module is used for testing and debugging and is not meant to be used by +# consumers of this library. +# +# source://yarp//lib/prism/debug.rb#6 +module Prism::Debug + class << self + # For the given source, compiles with CRuby and returns a list of all of the + # sets of local variables that were encountered. + # + # source://yarp//lib/prism/debug.rb#47 + def cruby_locals(source); end + + def memsize(_arg0); end + def named_captures(_arg0); end + + # source://yarp//lib/prism/debug.rb#149 + def newlines(source); end + + # source://yarp//lib/prism/debug.rb#153 + def parse_serialize_file(filepath); end + + def parse_serialize_file_metadata(_arg0, _arg1); end + + # For the given source, parses with prism and returns a list of all of the + # sets of local variables that were encountered. + # + # source://yarp//lib/prism/debug.rb#82 + def prism_locals(source); end + + def profile_file(_arg0); end + def unescape_all(_arg0); end + def unescape_minimal(_arg0); end + def unescape_none(_arg0); end + def unescape_whitespace(_arg0); end + end +end + +# source://yarp//lib/prism/debug.rb#7 +class Prism::Debug::ISeq + # @return [ISeq] a new instance of ISeq + # + # source://yarp//lib/prism/debug.rb#10 + def initialize(parts); end + + # source://yarp//lib/prism/debug.rb#26 + def each_child; end + + # source://yarp//lib/prism/debug.rb#22 + def instructions; end + + # source://yarp//lib/prism/debug.rb#18 + def local_table; end + + # Returns the value of attribute parts. + # + # source://yarp//lib/prism/debug.rb#8 + def parts; end + + # source://yarp//lib/prism/debug.rb#14 + def type; end +end + +# Represents a method definition. +# +# def method +# end +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#4529 +class Prism::DefNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, receiver: Node?, parameters: ParametersNode?, body: Node?, locals: Array[Symbol], def_keyword_loc: Location, operator_loc: Location?, lparen_loc: Location?, rparen_loc: Location?, equal_loc: Location?, end_keyword_loc: Location?, location: Location) -> void + # + # @return [DefNode] a new instance of DefNode + # + # source://yarp//lib/prism/node.rb#4567 + def initialize(name, name_loc, receiver, parameters, body, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4584 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#4543 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4589 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4603 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4594 + def compact_child_nodes; end + + # def copy: (**params) -> DefNode + # + # source://yarp//lib/prism/node.rb#4608 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4589 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4630 + def deconstruct_keys(keys); end + + # def def_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#4635 + def def_keyword; end + + # attr_reader def_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#4549 + def def_keyword_loc; end + + # def end_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#4660 + def end_keyword; end + + # attr_reader end_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#4564 + def end_keyword_loc; end + + # def equal: () -> String? + # + # source://yarp//lib/prism/node.rb#4655 + def equal; end + + # attr_reader equal_loc: Location? + # + # source://yarp//lib/prism/node.rb#4561 + def equal_loc; end + + # source://yarp//lib/prism/node.rb#4664 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#4546 + def locals; end + + # def lparen: () -> String? + # + # source://yarp//lib/prism/node.rb#4645 + def lparen; end + + # attr_reader lparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#4555 + def lparen_loc; end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#4531 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#4534 + def name_loc; end + + # def operator: () -> String? + # + # source://yarp//lib/prism/node.rb#4640 + def operator; end + + # attr_reader operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#4552 + def operator_loc; end + + # attr_reader parameters: ParametersNode? + # + # source://yarp//lib/prism/node.rb#4540 + def parameters; end + + # attr_reader receiver: Node? + # + # source://yarp//lib/prism/node.rb#4537 + def receiver; end + + # def rparen: () -> String? + # + # source://yarp//lib/prism/node.rb#4650 + def rparen; end + + # attr_reader rparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#4558 + def rparen_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4710 + def type; end +end + +# Represents the use of the `defined?` keyword. +# +# defined?(a) +# ^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#4719 +class Prism::DefinedNode < ::Prism::Node + # def initialize: (lparen_loc: Location?, value: Node, rparen_loc: Location?, keyword_loc: Location, location: Location) -> void + # + # @return [DefinedNode] a new instance of DefinedNode + # + # source://yarp//lib/prism/node.rb#4733 + def initialize(lparen_loc, value, rparen_loc, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4742 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4747 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4757 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4752 + def compact_child_nodes; end + + # def copy: (**params) -> DefinedNode + # + # source://yarp//lib/prism/node.rb#4762 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4747 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4776 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#4795 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#4791 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#4730 + def keyword_loc; end + + # def lparen: () -> String? + # + # source://yarp//lib/prism/node.rb#4781 + def lparen; end + + # attr_reader lparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#4721 + def lparen_loc; end + + # def rparen: () -> String? + # + # source://yarp//lib/prism/node.rb#4786 + def rparen; end + + # attr_reader rparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#4727 + def rparen_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4819 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#4724 + def value; end +end + +# DesugarCompiler is a compiler that desugars Ruby code into a more primitive +# form. This is useful for consumers that want to deal with fewer node types. +# +# source://yarp//lib/prism/desugar_compiler.rb#6 +class Prism::DesugarCompiler < ::Prism::MutationCompiler + # @@foo &&= bar + # + # becomes + # + # @@foo && @@foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#12 + def visit_class_variable_and_write_node(node); end + + # @@foo += bar + # + # becomes + # + # @@foo = @@foo + bar + # + # source://yarp//lib/prism/desugar_compiler.rb#30 + def visit_class_variable_operator_write_node(node); end + + # @@foo ||= bar + # + # becomes + # + # defined?(@@foo) ? @@foo : @@foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#21 + def visit_class_variable_or_write_node(node); end + + # Foo &&= bar + # + # becomes + # + # Foo && Foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#39 + def visit_constant_and_write_node(node); end + + # Foo += bar + # + # becomes + # + # Foo = Foo + bar + # + # source://yarp//lib/prism/desugar_compiler.rb#57 + def visit_constant_operator_write_node(node); end + + # Foo ||= bar + # + # becomes + # + # defined?(Foo) ? Foo : Foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#48 + def visit_constant_or_write_node(node); end + + # $foo &&= bar + # + # becomes + # + # $foo && $foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#66 + def visit_global_variable_and_write_node(node); end + + # $foo += bar + # + # becomes + # + # $foo = $foo + bar + # + # source://yarp//lib/prism/desugar_compiler.rb#84 + def visit_global_variable_operator_write_node(node); end + + # $foo ||= bar + # + # becomes + # + # defined?($foo) ? $foo : $foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#75 + def visit_global_variable_or_write_node(node); end + + # becomes + # + # source://yarp//lib/prism/desugar_compiler.rb#93 + def visit_instance_variable_and_write_node(node); end + + # becomes + # + # source://yarp//lib/prism/desugar_compiler.rb#111 + def visit_instance_variable_operator_write_node(node); end + + # becomes + # + # source://yarp//lib/prism/desugar_compiler.rb#102 + def visit_instance_variable_or_write_node(node); end + + # foo &&= bar + # + # becomes + # + # foo && foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#120 + def visit_local_variable_and_write_node(node); end + + # foo += bar + # + # becomes + # + # foo = foo + bar + # + # source://yarp//lib/prism/desugar_compiler.rb#138 + def visit_local_variable_operator_write_node(node); end + + # foo ||= bar + # + # becomes + # + # foo || foo = bar + # + # source://yarp//lib/prism/desugar_compiler.rb#129 + def visit_local_variable_or_write_node(node); end + + private + + # Desugar `x &&= y` to `x && x = y` + # + # source://yarp//lib/prism/desugar_compiler.rb#145 + def desugar_and_write_node(node, read_class, write_class, *arguments); end + + # Desugar `x += y` to `x = x + y` + # + # source://yarp//lib/prism/desugar_compiler.rb#155 + def desugar_operator_write_node(node, read_class, write_class, *arguments); end + + # Desugar `x ||= y` to `defined?(x) ? x : x = y` + # + # source://yarp//lib/prism/desugar_compiler.rb#187 + def desugar_or_write_defined_node(node, read_class, write_class, *arguments); end + + # Desugar `x ||= y` to `x || x = y` + # + # source://yarp//lib/prism/desugar_compiler.rb#177 + def desugar_or_write_node(node, read_class, write_class, *arguments); end +end + +# The dispatcher class fires events for nodes that are found while walking an +# AST to all registered listeners. It's useful for performing different types +# of analysis on the AST while only having to walk the tree once. +# +# To use the dispatcher, you would first instantiate it and register listeners +# for the events you're interested in: +# +# class OctalListener +# def on_integer_node_enter(node) +# if node.octal? && !node.slice.start_with?("0o") +# warn("Octal integers should be written with the 0o prefix") +# end +# end +# end +# +# dispatcher = Dispatcher.new +# dispatcher.register(listener, :on_integer_node_enter) +# +# Then, you can walk any number of trees and dispatch events to the listeners: +# +# result = Prism.parse("001 + 002 + 003") +# dispatcher.dispatch(result.value) +# +# Optionally, you can also use `#dispatch_once` to dispatch enter and leave +# events for a single node without recursing further down the tree. This can +# be useful in circumstances where you want to reuse the listeners you already +# have registers but want to stop walking the tree at a certain point. +# +# integer = result.value.statements.body.first.receiver.receiver +# dispatcher.dispatch_once(integer) +# +# source://yarp//lib/prism/dispatcher.rb#40 +class Prism::Dispatcher < ::Prism::Visitor + # @return [Dispatcher] a new instance of Dispatcher + # + # source://yarp//lib/prism/dispatcher.rb#44 + def initialize; end + + # Walks `root` dispatching events to all registered listeners + # + # def dispatch: (Node) -> void + # + # source://yarp//lib/prism/visitor.rb#14 + def dispatch(node); end + + # Dispatches a single event for `node` to all registered listeners + # + # def dispatch_once: (Node) -> void + # + # source://yarp//lib/prism/dispatcher.rb#63 + def dispatch_once(node); end + + # attr_reader listeners: Hash[Symbol, Array[Listener]] + # + # source://yarp//lib/prism/dispatcher.rb#42 + def listeners; end + + # Register a listener for one or more events + # + # def register: (Listener, *Symbol) -> void + # + # source://yarp//lib/prism/dispatcher.rb#51 + def register(listener, *events); end + + # Dispatch enter and leave events for AliasGlobalVariableNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#69 + def visit_alias_global_variable_node(node); end + + # Dispatch enter and leave events for AliasMethodNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#77 + def visit_alias_method_node(node); end + + # Dispatch enter and leave events for AlternationPatternNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#85 + def visit_alternation_pattern_node(node); end + + # Dispatch enter and leave events for AndNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#93 + def visit_and_node(node); end + + # Dispatch enter and leave events for ArgumentsNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#101 + def visit_arguments_node(node); end + + # Dispatch enter and leave events for ArrayNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#109 + def visit_array_node(node); end + + # Dispatch enter and leave events for ArrayPatternNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#117 + def visit_array_pattern_node(node); end + + # Dispatch enter and leave events for AssocNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#125 + def visit_assoc_node(node); end + + # Dispatch enter and leave events for AssocSplatNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#133 + def visit_assoc_splat_node(node); end + + # Dispatch enter and leave events for BackReferenceReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#141 + def visit_back_reference_read_node(node); end + + # Dispatch enter and leave events for BeginNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#149 + def visit_begin_node(node); end + + # Dispatch enter and leave events for BlockArgumentNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#157 + def visit_block_argument_node(node); end + + # Dispatch enter and leave events for BlockLocalVariableNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#165 + def visit_block_local_variable_node(node); end + + # Dispatch enter and leave events for BlockNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#173 + def visit_block_node(node); end + + # Dispatch enter and leave events for BlockParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#181 + def visit_block_parameter_node(node); end + + # Dispatch enter and leave events for BlockParametersNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#189 + def visit_block_parameters_node(node); end + + # Dispatch enter and leave events for BreakNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#197 + def visit_break_node(node); end + + # Dispatch enter and leave events for CallAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#205 + def visit_call_and_write_node(node); end + + # Dispatch enter and leave events for CallNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#213 + def visit_call_node(node); end + + # Dispatch enter and leave events for CallOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#221 + def visit_call_operator_write_node(node); end + + # Dispatch enter and leave events for CallOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#229 + def visit_call_or_write_node(node); end + + # Dispatch enter and leave events for CapturePatternNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#237 + def visit_capture_pattern_node(node); end + + # Dispatch enter and leave events for CaseNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#245 + def visit_case_node(node); end + + # Dispatch enter and leave events for ClassNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#253 + def visit_class_node(node); end + + # Dispatch enter and leave events for ClassVariableAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#261 + def visit_class_variable_and_write_node(node); end + + # Dispatch enter and leave events for ClassVariableOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#269 + def visit_class_variable_operator_write_node(node); end + + # Dispatch enter and leave events for ClassVariableOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#277 + def visit_class_variable_or_write_node(node); end + + # Dispatch enter and leave events for ClassVariableReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#285 + def visit_class_variable_read_node(node); end + + # Dispatch enter and leave events for ClassVariableTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#293 + def visit_class_variable_target_node(node); end + + # Dispatch enter and leave events for ClassVariableWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#301 + def visit_class_variable_write_node(node); end + + # Dispatch enter and leave events for ConstantAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#309 + def visit_constant_and_write_node(node); end + + # Dispatch enter and leave events for ConstantOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#317 + def visit_constant_operator_write_node(node); end + + # Dispatch enter and leave events for ConstantOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#325 + def visit_constant_or_write_node(node); end + + # Dispatch enter and leave events for ConstantPathAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#333 + def visit_constant_path_and_write_node(node); end + + # Dispatch enter and leave events for ConstantPathNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#341 + def visit_constant_path_node(node); end + + # Dispatch enter and leave events for ConstantPathOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#349 + def visit_constant_path_operator_write_node(node); end + + # Dispatch enter and leave events for ConstantPathOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#357 + def visit_constant_path_or_write_node(node); end + + # Dispatch enter and leave events for ConstantPathTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#365 + def visit_constant_path_target_node(node); end + + # Dispatch enter and leave events for ConstantPathWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#373 + def visit_constant_path_write_node(node); end + + # Dispatch enter and leave events for ConstantReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#381 + def visit_constant_read_node(node); end + + # Dispatch enter and leave events for ConstantTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#389 + def visit_constant_target_node(node); end + + # Dispatch enter and leave events for ConstantWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#397 + def visit_constant_write_node(node); end + + # Dispatch enter and leave events for DefNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#405 + def visit_def_node(node); end + + # Dispatch enter and leave events for DefinedNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#413 + def visit_defined_node(node); end + + # Dispatch enter and leave events for ElseNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#421 + def visit_else_node(node); end + + # Dispatch enter and leave events for EmbeddedStatementsNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#429 + def visit_embedded_statements_node(node); end + + # Dispatch enter and leave events for EmbeddedVariableNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#437 + def visit_embedded_variable_node(node); end + + # Dispatch enter and leave events for EnsureNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#445 + def visit_ensure_node(node); end + + # Dispatch enter and leave events for FalseNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#453 + def visit_false_node(node); end + + # Dispatch enter and leave events for FindPatternNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#461 + def visit_find_pattern_node(node); end + + # Dispatch enter and leave events for FlipFlopNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#469 + def visit_flip_flop_node(node); end + + # Dispatch enter and leave events for FloatNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#477 + def visit_float_node(node); end + + # Dispatch enter and leave events for ForNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#485 + def visit_for_node(node); end + + # Dispatch enter and leave events for ForwardingArgumentsNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#493 + def visit_forwarding_arguments_node(node); end + + # Dispatch enter and leave events for ForwardingParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#501 + def visit_forwarding_parameter_node(node); end + + # Dispatch enter and leave events for ForwardingSuperNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#509 + def visit_forwarding_super_node(node); end + + # Dispatch enter and leave events for GlobalVariableAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#517 + def visit_global_variable_and_write_node(node); end + + # Dispatch enter and leave events for GlobalVariableOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#525 + def visit_global_variable_operator_write_node(node); end + + # Dispatch enter and leave events for GlobalVariableOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#533 + def visit_global_variable_or_write_node(node); end + + # Dispatch enter and leave events for GlobalVariableReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#541 + def visit_global_variable_read_node(node); end + + # Dispatch enter and leave events for GlobalVariableTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#549 + def visit_global_variable_target_node(node); end + + # Dispatch enter and leave events for GlobalVariableWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#557 + def visit_global_variable_write_node(node); end + + # Dispatch enter and leave events for HashNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#565 + def visit_hash_node(node); end + + # Dispatch enter and leave events for HashPatternNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#573 + def visit_hash_pattern_node(node); end + + # Dispatch enter and leave events for IfNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#581 + def visit_if_node(node); end + + # Dispatch enter and leave events for ImaginaryNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#589 + def visit_imaginary_node(node); end + + # Dispatch enter and leave events for ImplicitNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#597 + def visit_implicit_node(node); end + + # Dispatch enter and leave events for InNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#605 + def visit_in_node(node); end + + # Dispatch enter and leave events for InstanceVariableAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#613 + def visit_instance_variable_and_write_node(node); end + + # Dispatch enter and leave events for InstanceVariableOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#621 + def visit_instance_variable_operator_write_node(node); end + + # Dispatch enter and leave events for InstanceVariableOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#629 + def visit_instance_variable_or_write_node(node); end + + # Dispatch enter and leave events for InstanceVariableReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#637 + def visit_instance_variable_read_node(node); end + + # Dispatch enter and leave events for InstanceVariableTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#645 + def visit_instance_variable_target_node(node); end + + # Dispatch enter and leave events for InstanceVariableWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#653 + def visit_instance_variable_write_node(node); end + + # Dispatch enter and leave events for IntegerNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#661 + def visit_integer_node(node); end + + # Dispatch enter and leave events for InterpolatedMatchLastLineNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#669 + def visit_interpolated_match_last_line_node(node); end + + # Dispatch enter and leave events for InterpolatedRegularExpressionNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#677 + def visit_interpolated_regular_expression_node(node); end + + # Dispatch enter and leave events for InterpolatedStringNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#685 + def visit_interpolated_string_node(node); end + + # Dispatch enter and leave events for InterpolatedSymbolNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#693 + def visit_interpolated_symbol_node(node); end + + # Dispatch enter and leave events for InterpolatedXStringNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#701 + def visit_interpolated_x_string_node(node); end + + # Dispatch enter and leave events for KeywordHashNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#709 + def visit_keyword_hash_node(node); end + + # Dispatch enter and leave events for KeywordParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#717 + def visit_keyword_parameter_node(node); end + + # Dispatch enter and leave events for KeywordRestParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#725 + def visit_keyword_rest_parameter_node(node); end + + # Dispatch enter and leave events for LambdaNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#733 + def visit_lambda_node(node); end + + # Dispatch enter and leave events for LocalVariableAndWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#741 + def visit_local_variable_and_write_node(node); end + + # Dispatch enter and leave events for LocalVariableOperatorWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#749 + def visit_local_variable_operator_write_node(node); end + + # Dispatch enter and leave events for LocalVariableOrWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#757 + def visit_local_variable_or_write_node(node); end + + # Dispatch enter and leave events for LocalVariableReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#765 + def visit_local_variable_read_node(node); end + + # Dispatch enter and leave events for LocalVariableTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#773 + def visit_local_variable_target_node(node); end + + # Dispatch enter and leave events for LocalVariableWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#781 + def visit_local_variable_write_node(node); end + + # Dispatch enter and leave events for MatchLastLineNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#789 + def visit_match_last_line_node(node); end + + # Dispatch enter and leave events for MatchPredicateNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#797 + def visit_match_predicate_node(node); end + + # Dispatch enter and leave events for MatchRequiredNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#805 + def visit_match_required_node(node); end + + # Dispatch enter and leave events for MatchWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#813 + def visit_match_write_node(node); end + + # Dispatch enter and leave events for MissingNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#821 + def visit_missing_node(node); end + + # Dispatch enter and leave events for ModuleNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#829 + def visit_module_node(node); end + + # Dispatch enter and leave events for MultiTargetNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#837 + def visit_multi_target_node(node); end + + # Dispatch enter and leave events for MultiWriteNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#845 + def visit_multi_write_node(node); end + + # Dispatch enter and leave events for NextNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#853 + def visit_next_node(node); end + + # Dispatch enter and leave events for NilNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#861 + def visit_nil_node(node); end + + # Dispatch enter and leave events for NoKeywordsParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#869 + def visit_no_keywords_parameter_node(node); end + + # Dispatch enter and leave events for NumberedReferenceReadNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#877 + def visit_numbered_reference_read_node(node); end + + # Dispatch enter and leave events for OptionalParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#885 + def visit_optional_parameter_node(node); end + + # Dispatch enter and leave events for OrNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#893 + def visit_or_node(node); end + + # Dispatch enter and leave events for ParametersNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#901 + def visit_parameters_node(node); end + + # Dispatch enter and leave events for ParenthesesNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#909 + def visit_parentheses_node(node); end + + # Dispatch enter and leave events for PinnedExpressionNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#917 + def visit_pinned_expression_node(node); end + + # Dispatch enter and leave events for PinnedVariableNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#925 + def visit_pinned_variable_node(node); end + + # Dispatch enter and leave events for PostExecutionNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#933 + def visit_post_execution_node(node); end + + # Dispatch enter and leave events for PreExecutionNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#941 + def visit_pre_execution_node(node); end + + # Dispatch enter and leave events for ProgramNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#949 + def visit_program_node(node); end + + # Dispatch enter and leave events for RangeNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#957 + def visit_range_node(node); end + + # Dispatch enter and leave events for RationalNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#965 + def visit_rational_node(node); end + + # Dispatch enter and leave events for RedoNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#973 + def visit_redo_node(node); end + + # Dispatch enter and leave events for RegularExpressionNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#981 + def visit_regular_expression_node(node); end + + # Dispatch enter and leave events for RequiredDestructuredParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#989 + def visit_required_destructured_parameter_node(node); end + + # Dispatch enter and leave events for RequiredParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#997 + def visit_required_parameter_node(node); end + + # Dispatch enter and leave events for RescueModifierNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1005 + def visit_rescue_modifier_node(node); end + + # Dispatch enter and leave events for RescueNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1013 + def visit_rescue_node(node); end + + # Dispatch enter and leave events for RestParameterNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1021 + def visit_rest_parameter_node(node); end + + # Dispatch enter and leave events for RetryNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1029 + def visit_retry_node(node); end + + # Dispatch enter and leave events for ReturnNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1037 + def visit_return_node(node); end + + # Dispatch enter and leave events for SelfNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1045 + def visit_self_node(node); end + + # Dispatch enter and leave events for SingletonClassNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1053 + def visit_singleton_class_node(node); end + + # Dispatch enter and leave events for SourceEncodingNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1061 + def visit_source_encoding_node(node); end + + # Dispatch enter and leave events for SourceFileNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1069 + def visit_source_file_node(node); end + + # Dispatch enter and leave events for SourceLineNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1077 + def visit_source_line_node(node); end + + # Dispatch enter and leave events for SplatNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1085 + def visit_splat_node(node); end + + # Dispatch enter and leave events for StatementsNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1093 + def visit_statements_node(node); end + + # Dispatch enter and leave events for StringConcatNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1101 + def visit_string_concat_node(node); end + + # Dispatch enter and leave events for StringNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1109 + def visit_string_node(node); end + + # Dispatch enter and leave events for SuperNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1117 + def visit_super_node(node); end + + # Dispatch enter and leave events for SymbolNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1125 + def visit_symbol_node(node); end + + # Dispatch enter and leave events for TrueNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1133 + def visit_true_node(node); end + + # Dispatch enter and leave events for UndefNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1141 + def visit_undef_node(node); end + + # Dispatch enter and leave events for UnlessNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1149 + def visit_unless_node(node); end + + # Dispatch enter and leave events for UntilNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1157 + def visit_until_node(node); end + + # Dispatch enter and leave events for WhenNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1165 + def visit_when_node(node); end + + # Dispatch enter and leave events for WhileNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1173 + def visit_while_node(node); end + + # Dispatch enter and leave events for XStringNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1181 + def visit_x_string_node(node); end + + # Dispatch enter and leave events for YieldNode nodes and continue + # walking the tree. + # + # source://yarp//lib/prism/dispatcher.rb#1189 + def visit_yield_node(node); end +end + +# source://yarp//lib/prism/dispatcher.rb#1195 +class Prism::Dispatcher::DispatchOnce < ::Prism::Visitor + # @return [DispatchOnce] a new instance of DispatchOnce + # + # source://yarp//lib/prism/dispatcher.rb#1198 + def initialize(listeners); end + + # Returns the value of attribute listeners. + # + # source://yarp//lib/prism/dispatcher.rb#1196 + def listeners; end + + # Dispatch enter and leave events for AliasGlobalVariableNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1203 + def visit_alias_global_variable_node(node); end + + # Dispatch enter and leave events for AliasMethodNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1209 + def visit_alias_method_node(node); end + + # Dispatch enter and leave events for AlternationPatternNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1215 + def visit_alternation_pattern_node(node); end + + # Dispatch enter and leave events for AndNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1221 + def visit_and_node(node); end + + # Dispatch enter and leave events for ArgumentsNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1227 + def visit_arguments_node(node); end + + # Dispatch enter and leave events for ArrayNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1233 + def visit_array_node(node); end + + # Dispatch enter and leave events for ArrayPatternNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1239 + def visit_array_pattern_node(node); end + + # Dispatch enter and leave events for AssocNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1245 + def visit_assoc_node(node); end + + # Dispatch enter and leave events for AssocSplatNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1251 + def visit_assoc_splat_node(node); end + + # Dispatch enter and leave events for BackReferenceReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1257 + def visit_back_reference_read_node(node); end + + # Dispatch enter and leave events for BeginNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1263 + def visit_begin_node(node); end + + # Dispatch enter and leave events for BlockArgumentNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1269 + def visit_block_argument_node(node); end + + # Dispatch enter and leave events for BlockLocalVariableNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1275 + def visit_block_local_variable_node(node); end + + # Dispatch enter and leave events for BlockNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1281 + def visit_block_node(node); end + + # Dispatch enter and leave events for BlockParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1287 + def visit_block_parameter_node(node); end + + # Dispatch enter and leave events for BlockParametersNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1293 + def visit_block_parameters_node(node); end + + # Dispatch enter and leave events for BreakNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1299 + def visit_break_node(node); end + + # Dispatch enter and leave events for CallAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1305 + def visit_call_and_write_node(node); end + + # Dispatch enter and leave events for CallNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1311 + def visit_call_node(node); end + + # Dispatch enter and leave events for CallOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1317 + def visit_call_operator_write_node(node); end + + # Dispatch enter and leave events for CallOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1323 + def visit_call_or_write_node(node); end + + # Dispatch enter and leave events for CapturePatternNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1329 + def visit_capture_pattern_node(node); end + + # Dispatch enter and leave events for CaseNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1335 + def visit_case_node(node); end + + # Dispatch enter and leave events for ClassNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1341 + def visit_class_node(node); end + + # Dispatch enter and leave events for ClassVariableAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1347 + def visit_class_variable_and_write_node(node); end + + # Dispatch enter and leave events for ClassVariableOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1353 + def visit_class_variable_operator_write_node(node); end + + # Dispatch enter and leave events for ClassVariableOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1359 + def visit_class_variable_or_write_node(node); end + + # Dispatch enter and leave events for ClassVariableReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1365 + def visit_class_variable_read_node(node); end + + # Dispatch enter and leave events for ClassVariableTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1371 + def visit_class_variable_target_node(node); end + + # Dispatch enter and leave events for ClassVariableWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1377 + def visit_class_variable_write_node(node); end + + # Dispatch enter and leave events for ConstantAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1383 + def visit_constant_and_write_node(node); end + + # Dispatch enter and leave events for ConstantOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1389 + def visit_constant_operator_write_node(node); end + + # Dispatch enter and leave events for ConstantOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1395 + def visit_constant_or_write_node(node); end + + # Dispatch enter and leave events for ConstantPathAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1401 + def visit_constant_path_and_write_node(node); end + + # Dispatch enter and leave events for ConstantPathNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1407 + def visit_constant_path_node(node); end + + # Dispatch enter and leave events for ConstantPathOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1413 + def visit_constant_path_operator_write_node(node); end + + # Dispatch enter and leave events for ConstantPathOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1419 + def visit_constant_path_or_write_node(node); end + + # Dispatch enter and leave events for ConstantPathTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1425 + def visit_constant_path_target_node(node); end + + # Dispatch enter and leave events for ConstantPathWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1431 + def visit_constant_path_write_node(node); end + + # Dispatch enter and leave events for ConstantReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1437 + def visit_constant_read_node(node); end + + # Dispatch enter and leave events for ConstantTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1443 + def visit_constant_target_node(node); end + + # Dispatch enter and leave events for ConstantWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1449 + def visit_constant_write_node(node); end + + # Dispatch enter and leave events for DefNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1455 + def visit_def_node(node); end + + # Dispatch enter and leave events for DefinedNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1461 + def visit_defined_node(node); end + + # Dispatch enter and leave events for ElseNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1467 + def visit_else_node(node); end + + # Dispatch enter and leave events for EmbeddedStatementsNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1473 + def visit_embedded_statements_node(node); end + + # Dispatch enter and leave events for EmbeddedVariableNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1479 + def visit_embedded_variable_node(node); end + + # Dispatch enter and leave events for EnsureNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1485 + def visit_ensure_node(node); end + + # Dispatch enter and leave events for FalseNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1491 + def visit_false_node(node); end + + # Dispatch enter and leave events for FindPatternNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1497 + def visit_find_pattern_node(node); end + + # Dispatch enter and leave events for FlipFlopNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1503 + def visit_flip_flop_node(node); end + + # Dispatch enter and leave events for FloatNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1509 + def visit_float_node(node); end + + # Dispatch enter and leave events for ForNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1515 + def visit_for_node(node); end + + # Dispatch enter and leave events for ForwardingArgumentsNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1521 + def visit_forwarding_arguments_node(node); end + + # Dispatch enter and leave events for ForwardingParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1527 + def visit_forwarding_parameter_node(node); end + + # Dispatch enter and leave events for ForwardingSuperNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1533 + def visit_forwarding_super_node(node); end + + # Dispatch enter and leave events for GlobalVariableAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1539 + def visit_global_variable_and_write_node(node); end + + # Dispatch enter and leave events for GlobalVariableOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1545 + def visit_global_variable_operator_write_node(node); end + + # Dispatch enter and leave events for GlobalVariableOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1551 + def visit_global_variable_or_write_node(node); end + + # Dispatch enter and leave events for GlobalVariableReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1557 + def visit_global_variable_read_node(node); end + + # Dispatch enter and leave events for GlobalVariableTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1563 + def visit_global_variable_target_node(node); end + + # Dispatch enter and leave events for GlobalVariableWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1569 + def visit_global_variable_write_node(node); end + + # Dispatch enter and leave events for HashNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1575 + def visit_hash_node(node); end + + # Dispatch enter and leave events for HashPatternNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1581 + def visit_hash_pattern_node(node); end + + # Dispatch enter and leave events for IfNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1587 + def visit_if_node(node); end + + # Dispatch enter and leave events for ImaginaryNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1593 + def visit_imaginary_node(node); end + + # Dispatch enter and leave events for ImplicitNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1599 + def visit_implicit_node(node); end + + # Dispatch enter and leave events for InNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1605 + def visit_in_node(node); end + + # Dispatch enter and leave events for InstanceVariableAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1611 + def visit_instance_variable_and_write_node(node); end + + # Dispatch enter and leave events for InstanceVariableOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1617 + def visit_instance_variable_operator_write_node(node); end + + # Dispatch enter and leave events for InstanceVariableOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1623 + def visit_instance_variable_or_write_node(node); end + + # Dispatch enter and leave events for InstanceVariableReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1629 + def visit_instance_variable_read_node(node); end + + # Dispatch enter and leave events for InstanceVariableTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1635 + def visit_instance_variable_target_node(node); end + + # Dispatch enter and leave events for InstanceVariableWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1641 + def visit_instance_variable_write_node(node); end + + # Dispatch enter and leave events for IntegerNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1647 + def visit_integer_node(node); end + + # Dispatch enter and leave events for InterpolatedMatchLastLineNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1653 + def visit_interpolated_match_last_line_node(node); end + + # Dispatch enter and leave events for InterpolatedRegularExpressionNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1659 + def visit_interpolated_regular_expression_node(node); end + + # Dispatch enter and leave events for InterpolatedStringNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1665 + def visit_interpolated_string_node(node); end + + # Dispatch enter and leave events for InterpolatedSymbolNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1671 + def visit_interpolated_symbol_node(node); end + + # Dispatch enter and leave events for InterpolatedXStringNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1677 + def visit_interpolated_x_string_node(node); end + + # Dispatch enter and leave events for KeywordHashNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1683 + def visit_keyword_hash_node(node); end + + # Dispatch enter and leave events for KeywordParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1689 + def visit_keyword_parameter_node(node); end + + # Dispatch enter and leave events for KeywordRestParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1695 + def visit_keyword_rest_parameter_node(node); end + + # Dispatch enter and leave events for LambdaNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1701 + def visit_lambda_node(node); end + + # Dispatch enter and leave events for LocalVariableAndWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1707 + def visit_local_variable_and_write_node(node); end + + # Dispatch enter and leave events for LocalVariableOperatorWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1713 + def visit_local_variable_operator_write_node(node); end + + # Dispatch enter and leave events for LocalVariableOrWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1719 + def visit_local_variable_or_write_node(node); end + + # Dispatch enter and leave events for LocalVariableReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1725 + def visit_local_variable_read_node(node); end + + # Dispatch enter and leave events for LocalVariableTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1731 + def visit_local_variable_target_node(node); end + + # Dispatch enter and leave events for LocalVariableWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1737 + def visit_local_variable_write_node(node); end + + # Dispatch enter and leave events for MatchLastLineNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1743 + def visit_match_last_line_node(node); end + + # Dispatch enter and leave events for MatchPredicateNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1749 + def visit_match_predicate_node(node); end + + # Dispatch enter and leave events for MatchRequiredNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1755 + def visit_match_required_node(node); end + + # Dispatch enter and leave events for MatchWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1761 + def visit_match_write_node(node); end + + # Dispatch enter and leave events for MissingNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1767 + def visit_missing_node(node); end + + # Dispatch enter and leave events for ModuleNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1773 + def visit_module_node(node); end + + # Dispatch enter and leave events for MultiTargetNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1779 + def visit_multi_target_node(node); end + + # Dispatch enter and leave events for MultiWriteNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1785 + def visit_multi_write_node(node); end + + # Dispatch enter and leave events for NextNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1791 + def visit_next_node(node); end + + # Dispatch enter and leave events for NilNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1797 + def visit_nil_node(node); end + + # Dispatch enter and leave events for NoKeywordsParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1803 + def visit_no_keywords_parameter_node(node); end + + # Dispatch enter and leave events for NumberedReferenceReadNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1809 + def visit_numbered_reference_read_node(node); end + + # Dispatch enter and leave events for OptionalParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1815 + def visit_optional_parameter_node(node); end + + # Dispatch enter and leave events for OrNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1821 + def visit_or_node(node); end + + # Dispatch enter and leave events for ParametersNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1827 + def visit_parameters_node(node); end + + # Dispatch enter and leave events for ParenthesesNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1833 + def visit_parentheses_node(node); end + + # Dispatch enter and leave events for PinnedExpressionNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1839 + def visit_pinned_expression_node(node); end + + # Dispatch enter and leave events for PinnedVariableNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1845 + def visit_pinned_variable_node(node); end + + # Dispatch enter and leave events for PostExecutionNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1851 + def visit_post_execution_node(node); end + + # Dispatch enter and leave events for PreExecutionNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1857 + def visit_pre_execution_node(node); end + + # Dispatch enter and leave events for ProgramNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1863 + def visit_program_node(node); end + + # Dispatch enter and leave events for RangeNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1869 + def visit_range_node(node); end + + # Dispatch enter and leave events for RationalNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1875 + def visit_rational_node(node); end + + # Dispatch enter and leave events for RedoNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1881 + def visit_redo_node(node); end + + # Dispatch enter and leave events for RegularExpressionNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1887 + def visit_regular_expression_node(node); end + + # Dispatch enter and leave events for RequiredDestructuredParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1893 + def visit_required_destructured_parameter_node(node); end + + # Dispatch enter and leave events for RequiredParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1899 + def visit_required_parameter_node(node); end + + # Dispatch enter and leave events for RescueModifierNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1905 + def visit_rescue_modifier_node(node); end + + # Dispatch enter and leave events for RescueNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1911 + def visit_rescue_node(node); end + + # Dispatch enter and leave events for RestParameterNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1917 + def visit_rest_parameter_node(node); end + + # Dispatch enter and leave events for RetryNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1923 + def visit_retry_node(node); end + + # Dispatch enter and leave events for ReturnNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1929 + def visit_return_node(node); end + + # Dispatch enter and leave events for SelfNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1935 + def visit_self_node(node); end + + # Dispatch enter and leave events for SingletonClassNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1941 + def visit_singleton_class_node(node); end + + # Dispatch enter and leave events for SourceEncodingNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1947 + def visit_source_encoding_node(node); end + + # Dispatch enter and leave events for SourceFileNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1953 + def visit_source_file_node(node); end + + # Dispatch enter and leave events for SourceLineNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1959 + def visit_source_line_node(node); end + + # Dispatch enter and leave events for SplatNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1965 + def visit_splat_node(node); end + + # Dispatch enter and leave events for StatementsNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1971 + def visit_statements_node(node); end + + # Dispatch enter and leave events for StringConcatNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1977 + def visit_string_concat_node(node); end + + # Dispatch enter and leave events for StringNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1983 + def visit_string_node(node); end + + # Dispatch enter and leave events for SuperNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1989 + def visit_super_node(node); end + + # Dispatch enter and leave events for SymbolNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#1995 + def visit_symbol_node(node); end + + # Dispatch enter and leave events for TrueNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2001 + def visit_true_node(node); end + + # Dispatch enter and leave events for UndefNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2007 + def visit_undef_node(node); end + + # Dispatch enter and leave events for UnlessNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2013 + def visit_unless_node(node); end + + # Dispatch enter and leave events for UntilNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2019 + def visit_until_node(node); end + + # Dispatch enter and leave events for WhenNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2025 + def visit_when_node(node); end + + # Dispatch enter and leave events for WhileNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2031 + def visit_while_node(node); end + + # Dispatch enter and leave events for XStringNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2037 + def visit_x_string_node(node); end + + # Dispatch enter and leave events for YieldNode nodes. + # + # source://yarp//lib/prism/dispatcher.rb#2043 + def visit_yield_node(node); end +end + +# Represents an `else` clause in a `case`, `if`, or `unless` statement. +# +# if a then b else c end +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#4828 +class Prism::ElseNode < ::Prism::Node + # def initialize: (else_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location?, location: Location) -> void + # + # @return [ElseNode] a new instance of ElseNode + # + # source://yarp//lib/prism/node.rb#4839 + def initialize(else_keyword_loc, statements, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4847 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4852 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4864 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4857 + def compact_child_nodes; end + + # def copy: (**params) -> ElseNode + # + # source://yarp//lib/prism/node.rb#4869 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4852 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4882 + def deconstruct_keys(keys); end + + # def else_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#4887 + def else_keyword; end + + # attr_reader else_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#4830 + def else_keyword_loc; end + + # def end_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#4892 + def end_keyword; end + + # attr_reader end_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#4836 + def end_keyword_loc; end + + # source://yarp//lib/prism/node.rb#4896 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#4833 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#4923 + def type; end +end + +# Represents an interpolated set of statements. +# +# "foo #{bar}" +# ^^^^^^ +# +# source://yarp//lib/prism/node.rb#4932 +class Prism::EmbeddedStatementsNode < ::Prism::Node + # def initialize: (opening_loc: Location, statements: StatementsNode?, closing_loc: Location, location: Location) -> void + # + # @return [EmbeddedStatementsNode] a new instance of EmbeddedStatementsNode + # + # source://yarp//lib/prism/node.rb#4943 + def initialize(opening_loc, statements, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#4951 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4956 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#4996 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#4940 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#4968 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#4961 + def compact_child_nodes; end + + # def copy: (**params) -> EmbeddedStatementsNode + # + # source://yarp//lib/prism/node.rb#4973 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#4956 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#4986 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5000 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#4991 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#4934 + def opening_loc; end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#4937 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5027 + def type; end +end + +# Represents an interpolated variable. +# +# "foo #@bar" +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#5036 +class Prism::EmbeddedVariableNode < ::Prism::Node + # def initialize: (operator_loc: Location, variable: Node, location: Location) -> void + # + # @return [EmbeddedVariableNode] a new instance of EmbeddedVariableNode + # + # source://yarp//lib/prism/node.rb#5044 + def initialize(operator_loc, variable, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5051 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5056 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5066 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5061 + def compact_child_nodes; end + + # def copy: (**params) -> EmbeddedVariableNode + # + # source://yarp//lib/prism/node.rb#5071 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5056 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5083 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5092 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#5088 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#5038 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5114 + def type; end + + # attr_reader variable: Node + # + # source://yarp//lib/prism/node.rb#5041 + def variable; end +end + +# Represents an `ensure` clause in a `begin` statement. +# +# begin +# foo +# ensure +# ^^^^^^ +# bar +# end +# +# source://yarp//lib/prism/node.rb#5127 +class Prism::EnsureNode < ::Prism::Node + # def initialize: (ensure_keyword_loc: Location, statements: StatementsNode?, end_keyword_loc: Location, location: Location) -> void + # + # @return [EnsureNode] a new instance of EnsureNode + # + # source://yarp//lib/prism/node.rb#5138 + def initialize(ensure_keyword_loc, statements, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5146 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5151 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5163 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5156 + def compact_child_nodes; end + + # def copy: (**params) -> EnsureNode + # + # source://yarp//lib/prism/node.rb#5168 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5151 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5181 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#5191 + def end_keyword; end + + # attr_reader end_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#5135 + def end_keyword_loc; end + + # def ensure_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#5186 + def ensure_keyword; end + + # attr_reader ensure_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#5129 + def ensure_keyword_loc; end + + # source://yarp//lib/prism/node.rb#5195 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#5132 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5222 + def type; end +end + +# Represents the use of the literal `false` keyword. +# +# false +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#5231 +class Prism::FalseNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [FalseNode] a new instance of FalseNode + # + # source://yarp//lib/prism/node.rb#5233 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5238 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5243 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5253 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5248 + def compact_child_nodes; end + + # def copy: (**params) -> FalseNode + # + # source://yarp//lib/prism/node.rb#5258 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5243 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5268 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5272 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5291 + def type; end +end + +# Represents a find pattern in pattern matching. +# +# foo in *bar, baz, *qux +# ^^^^^^^^^^^^^^^^^^^^^^ +# +# foo in [*bar, baz, *qux] +# ^^^^^^^^^^^^^^^^^^^^^^^^ +# +# foo in Foo(*bar, baz, *qux) +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#5306 +class Prism::FindPatternNode < ::Prism::Node + # def initialize: (constant: Node?, left: Node, requireds: Array[Node], right: Node, opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # + # @return [FindPatternNode] a new instance of FindPatternNode + # + # source://yarp//lib/prism/node.rb#5326 + def initialize(constant, left, requireds, right, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5337 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5342 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#5388 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#5323 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5357 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5347 + def compact_child_nodes; end + + # attr_reader constant: Node? + # + # source://yarp//lib/prism/node.rb#5308 + def constant; end + + # def copy: (**params) -> FindPatternNode + # + # source://yarp//lib/prism/node.rb#5362 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5342 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5378 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5392 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node + # + # source://yarp//lib/prism/node.rb#5311 + def left; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#5383 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#5320 + def opening_loc; end + + # attr_reader requireds: Array[Node] + # + # source://yarp//lib/prism/node.rb#5314 + def requireds; end + + # attr_reader right: Node + # + # source://yarp//lib/prism/node.rb#5317 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5424 + def type; end +end + +# Represents the use of the `..` or `...` operators to create flip flops. +# +# baz if foo .. bar +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#5433 +class Prism::FlipFlopNode < ::Prism::Node + # def initialize: (left: Node?, right: Node?, operator_loc: Location, flags: Integer, location: Location) -> void + # + # @return [FlipFlopNode] a new instance of FlipFlopNode + # + # source://yarp//lib/prism/node.rb#5447 + def initialize(left, right, operator_loc, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5456 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5461 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5474 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5466 + def compact_child_nodes; end + + # def copy: (**params) -> FlipFlopNode + # + # source://yarp//lib/prism/node.rb#5479 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5461 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5493 + def deconstruct_keys(keys); end + + # def exclude_end?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#5503 + def exclude_end?; end + + # source://yarp//lib/prism/node.rb#5507 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node? + # + # source://yarp//lib/prism/node.rb#5435 + def left; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#5498 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#5441 + def operator_loc; end + + # attr_reader right: Node? + # + # source://yarp//lib/prism/node.rb#5438 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5541 + def type; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#5444 + def flags; end +end + +# Represents a floating point number literal. +# +# 1.0 +# ^^^ +# +# source://yarp//lib/prism/node.rb#5550 +class Prism::FloatNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [FloatNode] a new instance of FloatNode + # + # source://yarp//lib/prism/node.rb#5552 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5557 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5562 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5572 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5567 + def compact_child_nodes; end + + # def copy: (**params) -> FloatNode + # + # source://yarp//lib/prism/node.rb#5577 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5562 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5587 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5591 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5610 + def type; end + + # Returns the value of the node as a Ruby Float. + # + # source://yarp//lib/prism/node_ext.rb#8 + def value; end +end + +# Represents the use of the `for` keyword. +# +# for i in a end +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#5619 +class Prism::ForNode < ::Prism::Node + # def initialize: (index: Node, collection: Node, statements: StatementsNode?, for_keyword_loc: Location, in_keyword_loc: Location, do_keyword_loc: Location?, end_keyword_loc: Location, location: Location) -> void + # + # @return [ForNode] a new instance of ForNode + # + # source://yarp//lib/prism/node.rb#5642 + def initialize(index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5654 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5659 + def child_nodes; end + + # attr_reader collection: Node + # + # source://yarp//lib/prism/node.rb#5624 + def collection; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5673 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5664 + def compact_child_nodes; end + + # def copy: (**params) -> ForNode + # + # source://yarp//lib/prism/node.rb#5678 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5659 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5695 + def deconstruct_keys(keys); end + + # def do_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#5710 + def do_keyword; end + + # attr_reader do_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#5636 + def do_keyword_loc; end + + # def end_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#5715 + def end_keyword; end + + # attr_reader end_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#5639 + def end_keyword_loc; end + + # def for_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#5700 + def for_keyword; end + + # attr_reader for_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#5630 + def for_keyword_loc; end + + # def in_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#5705 + def in_keyword; end + + # attr_reader in_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#5633 + def in_keyword_loc; end + + # attr_reader index: Node + # + # source://yarp//lib/prism/node.rb#5621 + def index; end + + # source://yarp//lib/prism/node.rb#5719 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#5627 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5752 + def type; end +end + +# Represents forwarding all arguments to this method to another method. +# +# def foo(...) +# bar(...) +# ^^^^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#5763 +class Prism::ForwardingArgumentsNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [ForwardingArgumentsNode] a new instance of ForwardingArgumentsNode + # + # source://yarp//lib/prism/node.rb#5765 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5770 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5775 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5785 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5780 + def compact_child_nodes; end + + # def copy: (**params) -> ForwardingArgumentsNode + # + # source://yarp//lib/prism/node.rb#5790 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5775 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5800 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5804 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5823 + def type; end +end + +# Represents the use of the forwarding parameter in a method, block, or lambda declaration. +# +# def foo(...) +# ^^^ +# end +# +# source://yarp//lib/prism/node.rb#5833 +class Prism::ForwardingParameterNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [ForwardingParameterNode] a new instance of ForwardingParameterNode + # + # source://yarp//lib/prism/node.rb#5835 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5840 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5845 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5855 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5850 + def compact_child_nodes; end + + # def copy: (**params) -> ForwardingParameterNode + # + # source://yarp//lib/prism/node.rb#5860 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5845 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5870 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5874 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5893 + def type; end +end + +# Represents the use of the `super` keyword without parentheses or arguments. +# +# super +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#5902 +class Prism::ForwardingSuperNode < ::Prism::Node + # def initialize: (block: BlockNode?, location: Location) -> void + # + # @return [ForwardingSuperNode] a new instance of ForwardingSuperNode + # + # source://yarp//lib/prism/node.rb#5907 + def initialize(block, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#5913 + def accept(visitor); end + + # attr_reader block: BlockNode? + # + # source://yarp//lib/prism/node.rb#5904 + def block; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5918 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#5930 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#5923 + def compact_child_nodes; end + + # def copy: (**params) -> ForwardingSuperNode + # + # source://yarp//lib/prism/node.rb#5935 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#5918 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#5946 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#5950 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#5975 + def type; end +end + +# Represents the use of the `&&=` operator for assignment to a global variable. +# +# $target &&= value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#5984 +class Prism::GlobalVariableAndWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [GlobalVariableAndWriteNode] a new instance of GlobalVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#5998 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6007 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6012 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6022 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6017 + def compact_child_nodes; end + + # def copy: (**params) -> GlobalVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#6027 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6012 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6041 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6050 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#5986 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#5989 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#6046 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#5992 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6074 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#5995 + def value; end +end + +# Represents assigning to a global variable using an operator that isn't `=`. +# +# $target += value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#6083 +class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # + # @return [GlobalVariableOperatorWriteNode] a new instance of GlobalVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#6100 + def initialize(name, name_loc, operator_loc, value, operator, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6110 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6115 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6125 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6120 + def compact_child_nodes; end + + # def copy: (**params) -> GlobalVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#6130 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6115 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6145 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6149 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#6085 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#6088 + def name_loc; end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#6097 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#6091 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6174 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#6094 + def value; end +end + +# Represents the use of the `||=` operator for assignment to a global variable. +# +# $target ||= value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#6183 +class Prism::GlobalVariableOrWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [GlobalVariableOrWriteNode] a new instance of GlobalVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#6197 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6206 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6211 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6221 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6216 + def compact_child_nodes; end + + # def copy: (**params) -> GlobalVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#6226 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6211 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6240 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6249 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#6185 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#6188 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#6245 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#6191 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6273 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#6194 + def value; end +end + +# Represents referencing a global variable. +# +# $foo +# ^^^^ +# +# source://yarp//lib/prism/node.rb#6282 +class Prism::GlobalVariableReadNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [GlobalVariableReadNode] a new instance of GlobalVariableReadNode + # + # source://yarp//lib/prism/node.rb#6287 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6293 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6298 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6308 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6303 + def compact_child_nodes; end + + # def copy: (**params) -> GlobalVariableReadNode + # + # source://yarp//lib/prism/node.rb#6313 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6298 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6324 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6328 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#6284 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6348 + def type; end +end + +# Represents writing to a global variable in a context that doesn't have an explicit value. +# +# $foo, $bar = baz +# ^^^^ ^^^^ +# +# source://yarp//lib/prism/node.rb#6357 +class Prism::GlobalVariableTargetNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [GlobalVariableTargetNode] a new instance of GlobalVariableTargetNode + # + # source://yarp//lib/prism/node.rb#6362 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6368 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6373 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6383 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6378 + def compact_child_nodes; end + + # def copy: (**params) -> GlobalVariableTargetNode + # + # source://yarp//lib/prism/node.rb#6388 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6373 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6399 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6403 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#6359 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6423 + def type; end +end + +# Represents writing to a global variable. +# +# $foo = 1 +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#6432 +class Prism::GlobalVariableWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # + # @return [GlobalVariableWriteNode] a new instance of GlobalVariableWriteNode + # + # source://yarp//lib/prism/node.rb#6446 + def initialize(name, name_loc, value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6455 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6460 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6470 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6465 + def compact_child_nodes; end + + # def copy: (**params) -> GlobalVariableWriteNode + # + # source://yarp//lib/prism/node.rb#6475 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6460 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6489 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6498 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#6434 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#6437 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#6494 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#6443 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6522 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#6440 + def value; end +end + +# Represents a hash literal. +# +# { a => b } +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#6531 +class Prism::HashNode < ::Prism::Node + # def initialize: (opening_loc: Location, elements: Array[Node], closing_loc: Location, location: Location) -> void + # + # @return [HashNode] a new instance of HashNode + # + # source://yarp//lib/prism/node.rb#6542 + def initialize(opening_loc, elements, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6550 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6555 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#6593 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#6539 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6565 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6560 + def compact_child_nodes; end + + # def copy: (**params) -> HashNode + # + # source://yarp//lib/prism/node.rb#6570 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6555 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6583 + def deconstruct_keys(keys); end + + # attr_reader elements: Array[Node] + # + # source://yarp//lib/prism/node.rb#6536 + def elements; end + + # source://yarp//lib/prism/node.rb#6597 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#6588 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#6533 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6619 + def type; end +end + +# Represents a hash pattern in pattern matching. +# +# foo => { a: 1, b: 2 } +# ^^^^^^^^^^^^^^ +# +# foo => { a: 1, b: 2, **c } +# ^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#6631 +class Prism::HashPatternNode < ::Prism::Node + # def initialize: (constant: Node?, assocs: Array[Node], kwrest: Node?, opening_loc: Location?, closing_loc: Location?, location: Location) -> void + # + # @return [HashPatternNode] a new instance of HashPatternNode + # + # source://yarp//lib/prism/node.rb#6648 + def initialize(constant, assocs, kwrest, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6658 + def accept(visitor); end + + # attr_reader assocs: Array[Node] + # + # source://yarp//lib/prism/node.rb#6636 + def assocs; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6663 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#6707 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#6645 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6677 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6668 + def compact_child_nodes; end + + # attr_reader constant: Node? + # + # source://yarp//lib/prism/node.rb#6633 + def constant; end + + # def copy: (**params) -> HashPatternNode + # + # source://yarp//lib/prism/node.rb#6682 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6663 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6697 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6711 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader kwrest: Node? + # + # source://yarp//lib/prism/node.rb#6639 + def kwrest; end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#6702 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#6642 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6745 + def type; end +end + +# Represents the use of the `if` keyword, either in the block form or the modifier form. +# +# bar if foo +# ^^^^^^^^^^ +# +# if foo then bar end +# ^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#6757 +class Prism::IfNode < ::Prism::Node + # def initialize: (if_keyword_loc: Location?, predicate: Node, statements: StatementsNode?, consequent: Node?, end_keyword_loc: Location?, location: Location) -> void + # + # @return [IfNode] a new instance of IfNode + # + # source://yarp//lib/prism/node.rb#6774 + def initialize(if_keyword_loc, predicate, statements, consequent, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6784 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6793 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6807 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6798 + def compact_child_nodes; end + + # attr_reader consequent: Node? + # + # source://yarp//lib/prism/node.rb#6768 + def consequent; end + + # def copy: (**params) -> IfNode + # + # source://yarp//lib/prism/node.rb#6812 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6793 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6827 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#6837 + def end_keyword; end + + # attr_reader end_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#6771 + def end_keyword_loc; end + + # def if_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#6832 + def if_keyword; end + + # attr_reader if_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#6759 + def if_keyword_loc; end + + # source://yarp//lib/prism/node.rb#6841 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader predicate: Node + # + # source://yarp//lib/prism/node.rb#6762 + def predicate; end + + # source://yarp//lib/prism/node.rb#6788 + def set_newline_flag(newline_marked); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#6765 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6876 + def type; end +end + +# Represents an imaginary number literal. +# +# 1.0i +# ^^^^ +# +# source://yarp//lib/prism/node.rb#6885 +class Prism::ImaginaryNode < ::Prism::Node + # def initialize: (numeric: Node, location: Location) -> void + # + # @return [ImaginaryNode] a new instance of ImaginaryNode + # + # source://yarp//lib/prism/node.rb#6890 + def initialize(numeric, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6896 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6901 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6911 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6906 + def compact_child_nodes; end + + # def copy: (**params) -> ImaginaryNode + # + # source://yarp//lib/prism/node.rb#6916 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6901 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#6927 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#6931 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader numeric: Node + # + # source://yarp//lib/prism/node.rb#6887 + def numeric; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#6952 + def type; end + + # Returns the value of the node as a Ruby Complex. + # + # source://yarp//lib/prism/node_ext.rb#15 + def value; end +end + +# Represents a node that is implicitly being added to the tree but doesn't +# correspond directly to a node in the source. +# +# { foo: } +# ^^^^ +# +# { Foo: } +# ^^^^ +# +# source://yarp//lib/prism/node.rb#6965 +class Prism::ImplicitNode < ::Prism::Node + # def initialize: (value: Node, location: Location) -> void + # + # @return [ImplicitNode] a new instance of ImplicitNode + # + # source://yarp//lib/prism/node.rb#6970 + def initialize(value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#6976 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6981 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#6991 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#6986 + def compact_child_nodes; end + + # def copy: (**params) -> ImplicitNode + # + # source://yarp//lib/prism/node.rb#6996 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#6981 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7007 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7011 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7032 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#6967 + def value; end +end + +# Represents the use of the `in` keyword in a case statement. +# +# case a; in b then c end +# ^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7041 +class Prism::InNode < ::Prism::Node + # def initialize: (pattern: Node, statements: StatementsNode?, in_loc: Location, then_loc: Location?, location: Location) -> void + # + # @return [InNode] a new instance of InNode + # + # source://yarp//lib/prism/node.rb#7055 + def initialize(pattern, statements, in_loc, then_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7064 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7069 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7082 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7074 + def compact_child_nodes; end + + # def copy: (**params) -> InNode + # + # source://yarp//lib/prism/node.rb#7087 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7069 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7101 + def deconstruct_keys(keys); end + + # def in: () -> String + # + # source://yarp//lib/prism/node.rb#7106 + def in; end + + # attr_reader in_loc: Location + # + # source://yarp//lib/prism/node.rb#7049 + def in_loc; end + + # source://yarp//lib/prism/node.rb#7115 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader pattern: Node + # + # source://yarp//lib/prism/node.rb#7043 + def pattern; end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#7046 + def statements; end + + # def then: () -> String? + # + # source://yarp//lib/prism/node.rb#7111 + def then; end + + # attr_reader then_loc: Location? + # + # source://yarp//lib/prism/node.rb#7052 + def then_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7144 + def type; end +end + +# Represents the use of the `&&=` operator for assignment to an instance variable. +# +# @target &&= value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7153 +class Prism::InstanceVariableAndWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [InstanceVariableAndWriteNode] a new instance of InstanceVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#7167 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7176 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7181 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7191 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7186 + def compact_child_nodes; end + + # def copy: (**params) -> InstanceVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#7196 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7181 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7210 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7219 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#7155 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#7158 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#7215 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#7161 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7243 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#7164 + def value; end +end + +# Represents assigning to an instance variable using an operator that isn't `=`. +# +# @target += value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7252 +class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, operator: Symbol, location: Location) -> void + # + # @return [InstanceVariableOperatorWriteNode] a new instance of InstanceVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#7269 + def initialize(name, name_loc, operator_loc, value, operator, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7279 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7284 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7294 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7289 + def compact_child_nodes; end + + # def copy: (**params) -> InstanceVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#7299 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7284 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7314 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7318 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#7254 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#7257 + def name_loc; end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#7266 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#7260 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7343 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#7263 + def value; end +end + +# Represents the use of the `||=` operator for assignment to an instance variable. +# +# @target ||= value +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7352 +class Prism::InstanceVariableOrWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [InstanceVariableOrWriteNode] a new instance of InstanceVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#7366 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7375 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7380 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7390 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7385 + def compact_child_nodes; end + + # def copy: (**params) -> InstanceVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#7395 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7380 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7409 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7418 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#7354 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#7357 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#7414 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#7360 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7442 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#7363 + def value; end +end + +# Represents referencing an instance variable. +# +# @foo +# ^^^^ +# +# source://yarp//lib/prism/node.rb#7451 +class Prism::InstanceVariableReadNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [InstanceVariableReadNode] a new instance of InstanceVariableReadNode + # + # source://yarp//lib/prism/node.rb#7456 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7462 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7467 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7477 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7472 + def compact_child_nodes; end + + # def copy: (**params) -> InstanceVariableReadNode + # + # source://yarp//lib/prism/node.rb#7482 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7467 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7493 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7497 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#7453 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7517 + def type; end +end + +# Represents writing to an instance variable in a context that doesn't have an explicit value. +# +# @foo, @bar = baz +# ^^^^ ^^^^ +# +# source://yarp//lib/prism/node.rb#7526 +class Prism::InstanceVariableTargetNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [InstanceVariableTargetNode] a new instance of InstanceVariableTargetNode + # + # source://yarp//lib/prism/node.rb#7531 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7537 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7542 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7552 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7547 + def compact_child_nodes; end + + # def copy: (**params) -> InstanceVariableTargetNode + # + # source://yarp//lib/prism/node.rb#7557 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7542 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7568 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7572 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#7528 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7592 + def type; end +end + +# Represents writing to an instance variable. +# +# @foo = 1 +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7601 +class Prism::InstanceVariableWriteNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # + # @return [InstanceVariableWriteNode] a new instance of InstanceVariableWriteNode + # + # source://yarp//lib/prism/node.rb#7615 + def initialize(name, name_loc, value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7624 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7629 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7639 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7634 + def compact_child_nodes; end + + # def copy: (**params) -> InstanceVariableWriteNode + # + # source://yarp//lib/prism/node.rb#7644 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7629 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7658 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#7667 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#7603 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#7606 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#7663 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#7612 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7691 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#7609 + def value; end +end + +# source://yarp//lib/prism/node.rb#14486 +module Prism::IntegerBaseFlags; end + +# 0b prefix +# +# source://yarp//lib/prism/node.rb#14488 +Prism::IntegerBaseFlags::BINARY = T.let(T.unsafe(nil), Integer) + +# 0d or no prefix +# +# source://yarp//lib/prism/node.rb#14494 +Prism::IntegerBaseFlags::DECIMAL = T.let(T.unsafe(nil), Integer) + +# 0x prefix +# +# source://yarp//lib/prism/node.rb#14497 +Prism::IntegerBaseFlags::HEXADECIMAL = T.let(T.unsafe(nil), Integer) + +# 0o or 0 prefix +# +# source://yarp//lib/prism/node.rb#14491 +Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) + +# Represents an integer number literal. +# +# 1 +# ^ +# +# source://yarp//lib/prism/node.rb#7700 +class Prism::IntegerNode < ::Prism::Node + # def initialize: (flags: Integer, location: Location) -> void + # + # @return [IntegerNode] a new instance of IntegerNode + # + # source://yarp//lib/prism/node.rb#7705 + def initialize(flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7711 + def accept(visitor); end + + # def binary?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7747 + def binary?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7716 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7726 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7721 + def compact_child_nodes; end + + # def copy: (**params) -> IntegerNode + # + # source://yarp//lib/prism/node.rb#7731 + def copy(**params); end + + # def decimal?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7757 + def decimal?; end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7716 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7742 + def deconstruct_keys(keys); end + + # def hexadecimal?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7762 + def hexadecimal?; end + + # source://yarp//lib/prism/node.rb#7766 + def inspect(inspector = T.unsafe(nil)); end + + # def octal?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7752 + def octal?; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7787 + def type; end + + # Returns the value of the node as a Ruby Integer. + # + # source://yarp//lib/prism/node_ext.rb#22 + def value; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#7702 + def flags; end +end + +# Represents a regular expression literal that contains interpolation that +# is being used in the predicate of a conditional to implicitly match +# against the last line read by an IO object. +# +# if /foo #{bar} baz/ then end +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7798 +class Prism::InterpolatedMatchLastLineNode < ::Prism::Node + # def initialize: (opening_loc: Location, parts: Array[Node], closing_loc: Location, flags: Integer, location: Location) -> void + # + # @return [InterpolatedMatchLastLineNode] a new instance of InterpolatedMatchLastLineNode + # + # source://yarp//lib/prism/node.rb#7812 + def initialize(opening_loc, parts, closing_loc, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7821 + def accept(visitor); end + + # def ascii_8bit?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7895 + def ascii_8bit?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7831 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#7870 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#7806 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7841 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7836 + def compact_child_nodes; end + + # def copy: (**params) -> InterpolatedMatchLastLineNode + # + # source://yarp//lib/prism/node.rb#7846 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7831 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#7860 + def deconstruct_keys(keys); end + + # def euc_jp?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7890 + def euc_jp?; end + + # def extended?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7880 + def extended?; end + + # def ignore_case?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7875 + def ignore_case?; end + + # source://yarp//lib/prism/node.rb#7914 + def inspect(inspector = T.unsafe(nil)); end + + # def multi_line?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7885 + def multi_line?; end + + # def once?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7910 + def once?; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#7865 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#7800 + def opening_loc; end + + # attr_reader parts: Array[Node] + # + # source://yarp//lib/prism/node.rb#7803 + def parts; end + + # source://yarp//lib/prism/node.rb#7825 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#7938 + def type; end + + # def utf_8?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7905 + def utf_8?; end + + # def windows_31j?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#7900 + def windows_31j?; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#7809 + def flags; end +end + +# Represents a regular expression literal that contains interpolation. +# +# /foo #{bar} baz/ +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#7947 +class Prism::InterpolatedRegularExpressionNode < ::Prism::Node + # def initialize: (opening_loc: Location, parts: Array[Node], closing_loc: Location, flags: Integer, location: Location) -> void + # + # @return [InterpolatedRegularExpressionNode] a new instance of InterpolatedRegularExpressionNode + # + # source://yarp//lib/prism/node.rb#7961 + def initialize(opening_loc, parts, closing_loc, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#7970 + def accept(visitor); end + + # def ascii_8bit?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8044 + def ascii_8bit?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7980 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#8019 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#7955 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#7990 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#7985 + def compact_child_nodes; end + + # def copy: (**params) -> InterpolatedRegularExpressionNode + # + # source://yarp//lib/prism/node.rb#7995 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#7980 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8009 + def deconstruct_keys(keys); end + + # def euc_jp?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8039 + def euc_jp?; end + + # def extended?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8029 + def extended?; end + + # def ignore_case?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8024 + def ignore_case?; end + + # source://yarp//lib/prism/node.rb#8063 + def inspect(inspector = T.unsafe(nil)); end + + # def multi_line?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8034 + def multi_line?; end + + # def once?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8059 + def once?; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#8014 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#7949 + def opening_loc; end + + # Returns a numeric value that represents the flags that were used to create + # the regular expression. + # + # source://yarp//lib/prism/node_ext.rb#30 + def options; end + + # attr_reader parts: Array[Node] + # + # source://yarp//lib/prism/node.rb#7952 + def parts; end + + # source://yarp//lib/prism/node.rb#7974 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8087 + def type; end + + # def utf_8?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8054 + def utf_8?; end + + # def windows_31j?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#8049 + def windows_31j?; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#7958 + def flags; end +end + +# Represents a string literal that contains interpolation. +# +# "foo #{bar} baz" +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#8096 +class Prism::InterpolatedStringNode < ::Prism::Node + # def initialize: (opening_loc: Location?, parts: Array[Node], closing_loc: Location?, location: Location) -> void + # + # @return [InterpolatedStringNode] a new instance of InterpolatedStringNode + # + # source://yarp//lib/prism/node.rb#8107 + def initialize(opening_loc, parts, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8115 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8125 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#8163 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#8104 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8135 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8130 + def compact_child_nodes; end + + # def copy: (**params) -> InterpolatedStringNode + # + # source://yarp//lib/prism/node.rb#8140 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8125 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8153 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#8167 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#8158 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#8098 + def opening_loc; end + + # attr_reader parts: Array[Node] + # + # source://yarp//lib/prism/node.rb#8101 + def parts; end + + # source://yarp//lib/prism/node.rb#8119 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8189 + def type; end +end + +# Represents a symbol literal that contains interpolation. +# +# :"foo #{bar} baz" +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#8198 +class Prism::InterpolatedSymbolNode < ::Prism::Node + # def initialize: (opening_loc: Location?, parts: Array[Node], closing_loc: Location?, location: Location) -> void + # + # @return [InterpolatedSymbolNode] a new instance of InterpolatedSymbolNode + # + # source://yarp//lib/prism/node.rb#8209 + def initialize(opening_loc, parts, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8217 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8227 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#8265 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#8206 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8237 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8232 + def compact_child_nodes; end + + # def copy: (**params) -> InterpolatedSymbolNode + # + # source://yarp//lib/prism/node.rb#8242 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8227 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8255 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#8269 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#8260 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#8200 + def opening_loc; end + + # attr_reader parts: Array[Node] + # + # source://yarp//lib/prism/node.rb#8203 + def parts; end + + # source://yarp//lib/prism/node.rb#8221 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8291 + def type; end +end + +# Represents an xstring literal that contains interpolation. +# +# `foo #{bar} baz` +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#8300 +class Prism::InterpolatedXStringNode < ::Prism::Node + # def initialize: (opening_loc: Location, parts: Array[Node], closing_loc: Location, location: Location) -> void + # + # @return [InterpolatedXStringNode] a new instance of InterpolatedXStringNode + # + # source://yarp//lib/prism/node.rb#8311 + def initialize(opening_loc, parts, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8319 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8329 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#8367 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#8308 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8339 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8334 + def compact_child_nodes; end + + # def copy: (**params) -> InterpolatedXStringNode + # + # source://yarp//lib/prism/node.rb#8344 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8329 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8357 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#8371 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#8362 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#8302 + def opening_loc; end + + # attr_reader parts: Array[Node] + # + # source://yarp//lib/prism/node.rb#8305 + def parts; end + + # source://yarp//lib/prism/node.rb#8323 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8393 + def type; end +end + +# Represents a hash literal without opening and closing braces. +# +# foo(a: b) +# ^^^^ +# +# source://yarp//lib/prism/node.rb#8402 +class Prism::KeywordHashNode < ::Prism::Node + # def initialize: (elements: Array[Node], location: Location) -> void + # + # @return [KeywordHashNode] a new instance of KeywordHashNode + # + # source://yarp//lib/prism/node.rb#8407 + def initialize(elements, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8413 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8418 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8428 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8423 + def compact_child_nodes; end + + # def copy: (**params) -> KeywordHashNode + # + # source://yarp//lib/prism/node.rb#8433 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8418 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8444 + def deconstruct_keys(keys); end + + # attr_reader elements: Array[Node] + # + # source://yarp//lib/prism/node.rb#8404 + def elements; end + + # source://yarp//lib/prism/node.rb#8448 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8468 + def type; end +end + +# Represents a keyword parameter to a method, block, or lambda definition. +# +# def a(b:) +# ^^ +# end +# +# def a(b: 1) +# ^^^^ +# end +# +# source://yarp//lib/prism/node.rb#8482 +class Prism::KeywordParameterNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, value: Node?, location: Location) -> void + # + # @return [KeywordParameterNode] a new instance of KeywordParameterNode + # + # source://yarp//lib/prism/node.rb#8493 + def initialize(name, name_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8501 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8506 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8518 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8511 + def compact_child_nodes; end + + # def copy: (**params) -> KeywordParameterNode + # + # source://yarp//lib/prism/node.rb#8523 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8506 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8536 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#8540 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#8484 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#8487 + def name_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8567 + def type; end + + # attr_reader value: Node? + # + # source://yarp//lib/prism/node.rb#8490 + def value; end +end + +# Represents a keyword rest parameter to a method, block, or lambda definition. +# +# def a(**b) +# ^^^ +# end +# +# source://yarp//lib/prism/node.rb#8577 +class Prism::KeywordRestParameterNode < ::Prism::Node + # def initialize: (name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location) -> void + # + # @return [KeywordRestParameterNode] a new instance of KeywordRestParameterNode + # + # source://yarp//lib/prism/node.rb#8588 + def initialize(name, name_loc, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8596 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8601 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8611 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8606 + def compact_child_nodes; end + + # def copy: (**params) -> KeywordRestParameterNode + # + # source://yarp//lib/prism/node.rb#8616 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8601 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8629 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#8638 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol? + # + # source://yarp//lib/prism/node.rb#8579 + def name; end + + # attr_reader name_loc: Location? + # + # source://yarp//lib/prism/node.rb#8582 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#8634 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#8585 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8660 + def type; end +end + +# Represents using a lambda literal (not the lambda method call). +# +# ->(value) { value * 2 } +# ^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#8669 +class Prism::LambdaNode < ::Prism::Node + # def initialize: (locals: Array[Symbol], operator_loc: Location, opening_loc: Location, closing_loc: Location, parameters: BlockParametersNode?, body: Node?, location: Location) -> void + # + # @return [LambdaNode] a new instance of LambdaNode + # + # source://yarp//lib/prism/node.rb#8689 + def initialize(locals, operator_loc, opening_loc, closing_loc, parameters, body, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8700 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#8686 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8705 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#8754 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#8680 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8718 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8710 + def compact_child_nodes; end + + # def copy: (**params) -> LambdaNode + # + # source://yarp//lib/prism/node.rb#8723 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8705 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8739 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#8758 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#8671 + def locals; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#8749 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#8677 + def opening_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#8744 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#8674 + def operator_loc; end + + # attr_reader parameters: BlockParametersNode? + # + # source://yarp//lib/prism/node.rb#8683 + def parameters; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8793 + def type; end +end + +# This class is responsible for lexing the source using prism and then +# converting those tokens to be compatible with Ripper. In the vast majority +# of cases, this is a one-to-one mapping of the token type. Everything else +# generally lines up. However, there are a few cases that require special +# handling. +# +# source://yarp//lib/prism/lex_compat.rb#11 +class Prism::LexCompat + # @return [LexCompat] a new instance of LexCompat + # + # source://yarp//lib/prism/lex_compat.rb#555 + def initialize(source, filepath = T.unsafe(nil)); end + + # Returns the value of attribute filepath. + # + # source://yarp//lib/prism/lex_compat.rb#553 + def filepath; end + + # source://yarp//lib/prism/lex_compat.rb#560 + def result; end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/lex_compat.rb#553 + def source; end +end + +# Ripper doesn't include the rest of the token in the event, so we need to +# trim it down to just the content on the first line when comparing. +# +# source://yarp//lib/prism/lex_compat.rb#206 +class Prism::LexCompat::EndContentToken < ::Prism::LexCompat::Token + # source://yarp//lib/prism/lex_compat.rb#207 + def ==(other); end +end + +# A heredoc in this case is a list of tokens that belong to the body of the +# heredoc that should be appended onto the list of tokens when the heredoc +# closes. +# +# source://yarp//lib/prism/lex_compat.rb#267 +module Prism::LexCompat::Heredoc + class << self + # Here we will split between the two types of heredocs and return the + # object that will store their tokens. + # + # source://yarp//lib/prism/lex_compat.rb#541 + def build(opening); end + end +end + +# Dash heredocs are a little more complicated. They are a list of tokens +# that need to be split on "\\\n" to mimic Ripper's behavior. We also need +# to keep track of the state that the heredoc was opened in. +# +# source://yarp//lib/prism/lex_compat.rb#291 +class Prism::LexCompat::Heredoc::DashHeredoc + # @return [DashHeredoc] a new instance of DashHeredoc + # + # source://yarp//lib/prism/lex_compat.rb#294 + def initialize(split); end + + # source://yarp//lib/prism/lex_compat.rb#299 + def <<(token); end + + # Returns the value of attribute split. + # + # source://yarp//lib/prism/lex_compat.rb#292 + def split; end + + # source://yarp//lib/prism/lex_compat.rb#303 + def to_a; end + + # Returns the value of attribute tokens. + # + # source://yarp//lib/prism/lex_compat.rb#292 + def tokens; end +end + +# Heredocs that are dedenting heredocs are a little more complicated. +# Ripper outputs on_ignored_sp tokens for the whitespace that is being +# removed from the output. prism only modifies the node itself and keeps +# the token the same. This simplifies prism, but makes comparing against +# Ripper much harder because there is a length mismatch. +# +# Fortunately, we already have to pull out the heredoc tokens in order to +# insert them into the stream in the correct order. As such, we can do +# some extra manipulation on the tokens to make them match Ripper's +# output by mirroring the dedent logic that Ripper uses. +# +# source://yarp//lib/prism/lex_compat.rb#350 +class Prism::LexCompat::Heredoc::DedentingHeredoc + # @return [DedentingHeredoc] a new instance of DedentingHeredoc + # + # source://yarp//lib/prism/lex_compat.rb#355 + def initialize; end + + # As tokens are coming in, we track the minimum amount of common leading + # whitespace on plain string content tokens. This allows us to later + # remove that amount of whitespace from the beginning of each line. + # + # source://yarp//lib/prism/lex_compat.rb#365 + def <<(token); end + + # Returns the value of attribute dedent. + # + # source://yarp//lib/prism/lex_compat.rb#353 + def dedent; end + + # Returns the value of attribute dedent_next. + # + # source://yarp//lib/prism/lex_compat.rb#353 + def dedent_next; end + + # Returns the value of attribute embexpr_balance. + # + # source://yarp//lib/prism/lex_compat.rb#353 + def embexpr_balance; end + + # source://yarp//lib/prism/lex_compat.rb#397 + def to_a; end + + # Returns the value of attribute tokens. + # + # source://yarp//lib/prism/lex_compat.rb#353 + def tokens; end +end + +# source://yarp//lib/prism/lex_compat.rb#351 +Prism::LexCompat::Heredoc::DedentingHeredoc::TAB_WIDTH = T.let(T.unsafe(nil), Integer) + +# Heredocs that are no dash or tilde heredocs are just a list of tokens. +# We need to keep them around so that we can insert them in the correct +# order back into the token stream and set the state of the last token to +# the state that the heredoc was opened in. +# +# source://yarp//lib/prism/lex_compat.rb#272 +class Prism::LexCompat::Heredoc::PlainHeredoc + # @return [PlainHeredoc] a new instance of PlainHeredoc + # + # source://yarp//lib/prism/lex_compat.rb#275 + def initialize; end + + # source://yarp//lib/prism/lex_compat.rb#279 + def <<(token); end + + # source://yarp//lib/prism/lex_compat.rb#283 + def to_a; end + + # Returns the value of attribute tokens. + # + # source://yarp//lib/prism/lex_compat.rb#273 + def tokens; end +end + +# Ident tokens for the most part are exactly the same, except sometimes we +# know an ident is a local when ripper doesn't (when they are introduced +# through named captures in regular expressions). In that case we don't +# compare the state. +# +# source://yarp//lib/prism/lex_compat.rb#224 +class Prism::LexCompat::IdentToken < ::Prism::LexCompat::Token + # source://yarp//lib/prism/lex_compat.rb#225 + def ==(other); end +end + +# Tokens where state should be ignored +# used for :on_comment, :on_heredoc_end, :on_embexpr_end +# +# source://yarp//lib/prism/lex_compat.rb#214 +class Prism::LexCompat::IgnoreStateToken < ::Prism::LexCompat::Token + # source://yarp//lib/prism/lex_compat.rb#215 + def ==(other); end +end + +# Ignored newlines can occasionally have a LABEL state attached to them, so +# we compare the state differently here. +# +# source://yarp//lib/prism/lex_compat.rb#235 +class Prism::LexCompat::IgnoredNewlineToken < ::Prism::LexCompat::Token + # source://yarp//lib/prism/lex_compat.rb#236 + def ==(other); end +end + +# If we have an identifier that follows a method name like: +# +# def foo bar +# +# then Ripper will mark bar as END|LABEL if there is a local in a parent +# scope named bar because it hasn't pushed the local table yet. We do this +# more accurately, so we need to allow comparing against both END and +# END|LABEL. +# +# source://yarp//lib/prism/lex_compat.rb#255 +class Prism::LexCompat::ParamToken < ::Prism::LexCompat::Token + # source://yarp//lib/prism/lex_compat.rb#256 + def ==(other); end +end + +# This is a mapping of prism token types to Ripper token types. This is a +# many-to-one mapping because we split up our token types, whereas Ripper +# tends to group them. +# +# source://yarp//lib/prism/lex_compat.rb#15 +Prism::LexCompat::RIPPER = T.let(T.unsafe(nil), Hash) + +# When we produce tokens, we produce the same arrays that Ripper does. +# However, we add a couple of convenience methods onto them to make them a +# little easier to work with. We delegate all other methods to the array. +# +# source://yarp//lib/prism/lex_compat.rb#186 +class Prism::LexCompat::Token < ::SimpleDelegator + # source://yarp//lib/prism/lex_compat.rb#191 + def event; end + + # source://yarp//lib/prism/lex_compat.rb#187 + def location; end + + # source://yarp//lib/prism/lex_compat.rb#199 + def state; end + + # source://yarp//lib/prism/lex_compat.rb#195 + def value; end +end + +# This is a class that wraps the Ripper lexer to produce almost exactly the +# same tokens. +# +# source://yarp//lib/prism/lex_compat.rb#800 +class Prism::LexRipper + # @return [LexRipper] a new instance of LexRipper + # + # source://yarp//lib/prism/lex_compat.rb#803 + def initialize(source); end + + # source://yarp//lib/prism/lex_compat.rb#807 + def result; end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/lex_compat.rb#801 + def source; end +end + +# Represents the use of the `&&=` operator for assignment to a local variable. +# +# target &&= value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#8802 +class Prism::LocalVariableAndWriteNode < ::Prism::Node + # def initialize: (name_loc: Location, operator_loc: Location, value: Node, name: Symbol, depth: Integer, location: Location) -> void + # + # @return [LocalVariableAndWriteNode] a new instance of LocalVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#8819 + def initialize(name_loc, operator_loc, value, name, depth, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8829 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8834 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8844 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8839 + def compact_child_nodes; end + + # def copy: (**params) -> LocalVariableAndWriteNode + # + # source://yarp//lib/prism/node.rb#8849 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8834 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8864 + def deconstruct_keys(keys); end + + # attr_reader depth: Integer + # + # source://yarp//lib/prism/node.rb#8816 + def depth; end + + # source://yarp//lib/prism/node.rb#8873 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#8813 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#8804 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#8869 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#8807 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#8898 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#8810 + def value; end +end + +# Represents assigning to a local variable using an operator that isn't `=`. +# +# target += value +# ^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#8907 +class Prism::LocalVariableOperatorWriteNode < ::Prism::Node + # def initialize: (name_loc: Location, operator_loc: Location, value: Node, name: Symbol, operator: Symbol, depth: Integer, location: Location) -> void + # + # @return [LocalVariableOperatorWriteNode] a new instance of LocalVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#8927 + def initialize(name_loc, operator_loc, value, name, operator, depth, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#8938 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8943 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#8953 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#8948 + def compact_child_nodes; end + + # def copy: (**params) -> LocalVariableOperatorWriteNode + # + # source://yarp//lib/prism/node.rb#8958 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#8943 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#8974 + def deconstruct_keys(keys); end + + # attr_reader depth: Integer + # + # source://yarp//lib/prism/node.rb#8924 + def depth; end + + # source://yarp//lib/prism/node.rb#8978 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#8918 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#8909 + def name_loc; end + + # attr_reader operator: Symbol + # + # source://yarp//lib/prism/node.rb#8921 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#8912 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9004 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#8915 + def value; end +end + +# Represents the use of the `||=` operator for assignment to a local variable. +# +# target ||= value +# ^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#9013 +class Prism::LocalVariableOrWriteNode < ::Prism::Node + # def initialize: (name_loc: Location, operator_loc: Location, value: Node, name: Symbol, depth: Integer, location: Location) -> void + # + # @return [LocalVariableOrWriteNode] a new instance of LocalVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#9030 + def initialize(name_loc, operator_loc, value, name, depth, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9040 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9045 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9055 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9050 + def compact_child_nodes; end + + # def copy: (**params) -> LocalVariableOrWriteNode + # + # source://yarp//lib/prism/node.rb#9060 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9045 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9075 + def deconstruct_keys(keys); end + + # attr_reader depth: Integer + # + # source://yarp//lib/prism/node.rb#9027 + def depth; end + + # source://yarp//lib/prism/node.rb#9084 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#9024 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#9015 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#9080 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#9018 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9109 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#9021 + def value; end +end + +# Represents reading a local variable. Note that this requires that a local +# variable of the same name has already been written to in the same scope, +# otherwise it is parsed as a method call. +# +# foo +# ^^^ +# +# source://yarp//lib/prism/node.rb#9120 +class Prism::LocalVariableReadNode < ::Prism::Node + # def initialize: (name: Symbol, depth: Integer, location: Location) -> void + # + # @return [LocalVariableReadNode] a new instance of LocalVariableReadNode + # + # source://yarp//lib/prism/node.rb#9128 + def initialize(name, depth, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9135 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9140 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9150 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9145 + def compact_child_nodes; end + + # def copy: (**params) -> LocalVariableReadNode + # + # source://yarp//lib/prism/node.rb#9155 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9140 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9167 + def deconstruct_keys(keys); end + + # attr_reader depth: Integer + # + # source://yarp//lib/prism/node.rb#9125 + def depth; end + + # source://yarp//lib/prism/node.rb#9171 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#9122 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9192 + def type; end +end + +# Represents writing to a local variable in a context that doesn't have an explicit value. +# +# foo, bar = baz +# ^^^ ^^^ +# +# source://yarp//lib/prism/node.rb#9201 +class Prism::LocalVariableTargetNode < ::Prism::Node + # def initialize: (name: Symbol, depth: Integer, location: Location) -> void + # + # @return [LocalVariableTargetNode] a new instance of LocalVariableTargetNode + # + # source://yarp//lib/prism/node.rb#9209 + def initialize(name, depth, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9216 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9221 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9231 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9226 + def compact_child_nodes; end + + # def copy: (**params) -> LocalVariableTargetNode + # + # source://yarp//lib/prism/node.rb#9236 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9221 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9248 + def deconstruct_keys(keys); end + + # attr_reader depth: Integer + # + # source://yarp//lib/prism/node.rb#9206 + def depth; end + + # source://yarp//lib/prism/node.rb#9252 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#9203 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9273 + def type; end +end + +# Represents writing to a local variable. +# +# foo = 1 +# ^^^^^^^ +# +# source://yarp//lib/prism/node.rb#9282 +class Prism::LocalVariableWriteNode < ::Prism::Node + # def initialize: (name: Symbol, depth: Integer, name_loc: Location, value: Node, operator_loc: Location, location: Location) -> void + # + # @return [LocalVariableWriteNode] a new instance of LocalVariableWriteNode + # + # source://yarp//lib/prism/node.rb#9299 + def initialize(name, depth, name_loc, value, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9309 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9314 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9324 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9319 + def compact_child_nodes; end + + # def copy: (**params) -> LocalVariableWriteNode + # + # source://yarp//lib/prism/node.rb#9329 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9314 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9344 + def deconstruct_keys(keys); end + + # attr_reader depth: Integer + # + # source://yarp//lib/prism/node.rb#9287 + def depth; end + + # source://yarp//lib/prism/node.rb#9353 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#9284 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#9290 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#9349 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#9296 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9378 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#9293 + def value; end +end + +# This represents a location in the source. +# +# source://yarp//lib/prism/parse_result.rb#41 +class Prism::Location + # @return [Location] a new instance of Location + # + # source://yarp//lib/prism/parse_result.rb#56 + def initialize(source, start_offset, length); end + + # source://yarp//lib/prism/parse_result.rb#123 + def ==(other); end + + # The list of comments attached to this location + # + # source://yarp//lib/prism/parse_result.rb#54 + def comments; end + + # Create a new location object with the given options. + # + # source://yarp//lib/prism/parse_result.rb#64 + def copy(**options); end + + # source://yarp//lib/prism/parse_result.rb#115 + def deconstruct_keys(keys); end + + # The column number in bytes where this location ends from the start of the + # line. + # + # source://yarp//lib/prism/parse_result.rb#111 + def end_column; end + + # The line number where this location ends. + # + # source://yarp//lib/prism/parse_result.rb#99 + def end_line; end + + # The byte offset from the beginning of the source where this location ends. + # + # source://yarp//lib/prism/parse_result.rb#83 + def end_offset; end + + # Returns a string representation of this location. + # + # source://yarp//lib/prism/parse_result.rb#73 + def inspect; end + + # Returns a new location that stretches from this location to the given + # other location. Raises an error if this location is not before the other + # location or if they don't share the same source. + # + # source://yarp//lib/prism/parse_result.rb#132 + def join(other); end + + # The length of this location in bytes. + # + # source://yarp//lib/prism/parse_result.rb#51 + def length; end + + # source://yarp//lib/prism/parse_result.rb#119 + def pretty_print(q); end + + # The source code that this location represents. + # + # source://yarp//lib/prism/parse_result.rb#78 + def slice; end + + # The column number in bytes where this location starts from the start of + # the line. + # + # source://yarp//lib/prism/parse_result.rb#105 + def start_column; end + + # The line number where this location starts. + # + # source://yarp//lib/prism/parse_result.rb#88 + def start_line; end + + # The content of the line where this location starts before this location. + # + # source://yarp//lib/prism/parse_result.rb#93 + def start_line_slice; end + + # The byte offset from the beginning of the source where this location + # starts. + # + # source://yarp//lib/prism/parse_result.rb#48 + def start_offset; end + + protected + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/parse_result.rb#44 + def source; end + + class << self + # source://yarp//lib/prism/parse_result.rb#139 + def null; end + end +end + +# source://yarp//lib/prism/node.rb#14500 +module Prism::LoopFlags; end + +# a loop after a begin statement, so the body is executed first before the condition +# +# source://yarp//lib/prism/node.rb#14502 +Prism::LoopFlags::BEGIN_MODIFIER = T.let(T.unsafe(nil), Integer) + +# Represents a regular expression literal used in the predicate of a +# conditional to implicitly match against the last line read by an IO +# object. +# +# if /foo/i then end +# ^^^^^^ +# +# source://yarp//lib/prism/node.rb#9389 +class Prism::MatchLastLineNode < ::Prism::Node + # def initialize: (opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, flags: Integer, location: Location) -> void + # + # @return [MatchLastLineNode] a new instance of MatchLastLineNode + # + # source://yarp//lib/prism/node.rb#9406 + def initialize(opening_loc, content_loc, closing_loc, unescaped, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9416 + def accept(visitor); end + + # def ascii_8bit?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9491 + def ascii_8bit?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9421 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#9466 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#9397 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9431 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9426 + def compact_child_nodes; end + + # def content: () -> String + # + # source://yarp//lib/prism/node.rb#9461 + def content; end + + # attr_reader content_loc: Location + # + # source://yarp//lib/prism/node.rb#9394 + def content_loc; end + + # def copy: (**params) -> MatchLastLineNode + # + # source://yarp//lib/prism/node.rb#9436 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9421 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9451 + def deconstruct_keys(keys); end + + # def euc_jp?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9486 + def euc_jp?; end + + # def extended?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9476 + def extended?; end + + # def ignore_case?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9471 + def ignore_case?; end + + # source://yarp//lib/prism/node.rb#9510 + def inspect(inspector = T.unsafe(nil)); end + + # def multi_line?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9481 + def multi_line?; end + + # def once?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9506 + def once?; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#9456 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#9391 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9535 + def type; end + + # attr_reader unescaped: String + # + # source://yarp//lib/prism/node.rb#9400 + def unescaped; end + + # def utf_8?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9501 + def utf_8?; end + + # def windows_31j?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#9496 + def windows_31j?; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#9403 + def flags; end +end + +# Represents the use of the modifier `in` operator. +# +# foo in bar +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#9544 +class Prism::MatchPredicateNode < ::Prism::Node + # def initialize: (value: Node, pattern: Node, operator_loc: Location, location: Location) -> void + # + # @return [MatchPredicateNode] a new instance of MatchPredicateNode + # + # source://yarp//lib/prism/node.rb#9555 + def initialize(value, pattern, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9563 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9568 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9578 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9573 + def compact_child_nodes; end + + # def copy: (**params) -> MatchPredicateNode + # + # source://yarp//lib/prism/node.rb#9583 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9568 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9596 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#9605 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#9601 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#9552 + def operator_loc; end + + # attr_reader pattern: Node + # + # source://yarp//lib/prism/node.rb#9549 + def pattern; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9629 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#9546 + def value; end +end + +# Represents the use of the `=>` operator. +# +# foo => bar +# ^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#9638 +class Prism::MatchRequiredNode < ::Prism::Node + # def initialize: (value: Node, pattern: Node, operator_loc: Location, location: Location) -> void + # + # @return [MatchRequiredNode] a new instance of MatchRequiredNode + # + # source://yarp//lib/prism/node.rb#9649 + def initialize(value, pattern, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9657 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9662 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9672 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9667 + def compact_child_nodes; end + + # def copy: (**params) -> MatchRequiredNode + # + # source://yarp//lib/prism/node.rb#9677 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9662 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9690 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#9699 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#9695 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#9646 + def operator_loc; end + + # attr_reader pattern: Node + # + # source://yarp//lib/prism/node.rb#9643 + def pattern; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9723 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#9640 + def value; end +end + +# Represents writing local variables using a regular expression match with +# named capture groups. +# +# /(?<foo>bar)/ =~ baz +# ^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#9733 +class Prism::MatchWriteNode < ::Prism::Node + # def initialize: (call: CallNode, locals: Array[Symbol], location: Location) -> void + # + # @return [MatchWriteNode] a new instance of MatchWriteNode + # + # source://yarp//lib/prism/node.rb#9741 + def initialize(call, locals, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9748 + def accept(visitor); end + + # attr_reader call: CallNode + # + # source://yarp//lib/prism/node.rb#9735 + def call; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9753 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9763 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9758 + def compact_child_nodes; end + + # def copy: (**params) -> MatchWriteNode + # + # source://yarp//lib/prism/node.rb#9768 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9753 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9780 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#9784 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#9738 + def locals; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9806 + def type; end +end + +# Represents a node that is missing from the source and results in a syntax +# error. +# +# source://yarp//lib/prism/node.rb#9813 +class Prism::MissingNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [MissingNode] a new instance of MissingNode + # + # source://yarp//lib/prism/node.rb#9815 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9820 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9825 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9835 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9830 + def compact_child_nodes; end + + # def copy: (**params) -> MissingNode + # + # source://yarp//lib/prism/node.rb#9840 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9825 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9850 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#9854 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9873 + def type; end +end + +# Represents a module declaration involving the `module` keyword. +# +# module Foo end +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#9882 +class Prism::ModuleNode < ::Prism::Node + # def initialize: (locals: Array[Symbol], module_keyword_loc: Location, constant_path: Node, body: Node?, end_keyword_loc: Location, name: Symbol, location: Location) -> void + # + # @return [ModuleNode] a new instance of ModuleNode + # + # source://yarp//lib/prism/node.rb#9902 + def initialize(locals, module_keyword_loc, constant_path, body, end_keyword_loc, name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#9913 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#9893 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9918 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#9931 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#9923 + def compact_child_nodes; end + + # attr_reader constant_path: Node + # + # source://yarp//lib/prism/node.rb#9890 + def constant_path; end + + # def copy: (**params) -> ModuleNode + # + # source://yarp//lib/prism/node.rb#9936 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#9918 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#9952 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#9962 + def end_keyword; end + + # attr_reader end_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#9896 + def end_keyword_loc; end + + # source://yarp//lib/prism/node.rb#9966 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#9884 + def locals; end + + # def module_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#9957 + def module_keyword; end + + # attr_reader module_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#9887 + def module_keyword_loc; end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#9899 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#9997 + def type; end +end + +# Represents a multi-target expression. +# +# a, b, c = 1, 2, 3 +# ^^^^^^^ +# +# source://yarp//lib/prism/node.rb#10006 +class Prism::MultiTargetNode < ::Prism::Node + # def initialize: (targets: Array[Node], lparen_loc: Location?, rparen_loc: Location?, location: Location) -> void + # + # @return [MultiTargetNode] a new instance of MultiTargetNode + # + # source://yarp//lib/prism/node.rb#10017 + def initialize(targets, lparen_loc, rparen_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10025 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10030 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10040 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10035 + def compact_child_nodes; end + + # def copy: (**params) -> MultiTargetNode + # + # source://yarp//lib/prism/node.rb#10045 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10030 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10058 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10072 + def inspect(inspector = T.unsafe(nil)); end + + # def lparen: () -> String? + # + # source://yarp//lib/prism/node.rb#10063 + def lparen; end + + # attr_reader lparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#10011 + def lparen_loc; end + + # def rparen: () -> String? + # + # source://yarp//lib/prism/node.rb#10068 + def rparen; end + + # attr_reader rparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#10014 + def rparen_loc; end + + # attr_reader targets: Array[Node] + # + # source://yarp//lib/prism/node.rb#10008 + def targets; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10094 + def type; end +end + +# Represents a write to a multi-target expression. +# +# a, b, c = 1, 2, 3 +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#10103 +class Prism::MultiWriteNode < ::Prism::Node + # def initialize: (targets: Array[Node], lparen_loc: Location?, rparen_loc: Location?, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [MultiWriteNode] a new instance of MultiWriteNode + # + # source://yarp//lib/prism/node.rb#10120 + def initialize(targets, lparen_loc, rparen_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10130 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10135 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10145 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10140 + def compact_child_nodes; end + + # def copy: (**params) -> MultiWriteNode + # + # source://yarp//lib/prism/node.rb#10150 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10135 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10165 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10184 + def inspect(inspector = T.unsafe(nil)); end + + # def lparen: () -> String? + # + # source://yarp//lib/prism/node.rb#10170 + def lparen; end + + # attr_reader lparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#10108 + def lparen_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#10180 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#10114 + def operator_loc; end + + # def rparen: () -> String? + # + # source://yarp//lib/prism/node.rb#10175 + def rparen; end + + # attr_reader rparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#10111 + def rparen_loc; end + + # attr_reader targets: Array[Node] + # + # source://yarp//lib/prism/node.rb#10105 + def targets; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10209 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#10117 + def value; end +end + +# This visitor walks through the tree and copies each node as it is being +# visited. This is useful for consumers that want to mutate the tree, as you +# can change subtrees in place without effecting the rest of the tree. +# +# source://yarp//lib/prism/mutation_compiler.rb#12 +class Prism::MutationCompiler < ::Prism::Compiler + # Copy a AliasGlobalVariableNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#14 + def visit_alias_global_variable_node(node); end + + # Copy a AliasMethodNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#19 + def visit_alias_method_node(node); end + + # Copy a AlternationPatternNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#24 + def visit_alternation_pattern_node(node); end + + # Copy a AndNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#29 + def visit_and_node(node); end + + # Copy a ArgumentsNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#34 + def visit_arguments_node(node); end + + # Copy a ArrayNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#39 + def visit_array_node(node); end + + # Copy a ArrayPatternNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#44 + def visit_array_pattern_node(node); end + + # Copy a AssocNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#49 + def visit_assoc_node(node); end + + # Copy a AssocSplatNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#54 + def visit_assoc_splat_node(node); end + + # Copy a BackReferenceReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#59 + def visit_back_reference_read_node(node); end + + # Copy a BeginNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#64 + def visit_begin_node(node); end + + # Copy a BlockArgumentNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#69 + def visit_block_argument_node(node); end + + # Copy a BlockLocalVariableNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#74 + def visit_block_local_variable_node(node); end + + # Copy a BlockNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#79 + def visit_block_node(node); end + + # Copy a BlockParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#84 + def visit_block_parameter_node(node); end + + # Copy a BlockParametersNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#89 + def visit_block_parameters_node(node); end + + # Copy a BreakNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#94 + def visit_break_node(node); end + + # Copy a CallAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#99 + def visit_call_and_write_node(node); end + + # Copy a CallNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#104 + def visit_call_node(node); end + + # Copy a CallOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#109 + def visit_call_operator_write_node(node); end + + # Copy a CallOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#114 + def visit_call_or_write_node(node); end + + # Copy a CapturePatternNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#119 + def visit_capture_pattern_node(node); end + + # Copy a CaseNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#124 + def visit_case_node(node); end + + # Copy a ClassNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#129 + def visit_class_node(node); end + + # Copy a ClassVariableAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#134 + def visit_class_variable_and_write_node(node); end + + # Copy a ClassVariableOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#139 + def visit_class_variable_operator_write_node(node); end + + # Copy a ClassVariableOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#144 + def visit_class_variable_or_write_node(node); end + + # Copy a ClassVariableReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#149 + def visit_class_variable_read_node(node); end + + # Copy a ClassVariableTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#154 + def visit_class_variable_target_node(node); end + + # Copy a ClassVariableWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#159 + def visit_class_variable_write_node(node); end + + # Copy a ConstantAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#164 + def visit_constant_and_write_node(node); end + + # Copy a ConstantOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#169 + def visit_constant_operator_write_node(node); end + + # Copy a ConstantOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#174 + def visit_constant_or_write_node(node); end + + # Copy a ConstantPathAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#179 + def visit_constant_path_and_write_node(node); end + + # Copy a ConstantPathNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#184 + def visit_constant_path_node(node); end + + # Copy a ConstantPathOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#189 + def visit_constant_path_operator_write_node(node); end + + # Copy a ConstantPathOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#194 + def visit_constant_path_or_write_node(node); end + + # Copy a ConstantPathTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#199 + def visit_constant_path_target_node(node); end + + # Copy a ConstantPathWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#204 + def visit_constant_path_write_node(node); end + + # Copy a ConstantReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#209 + def visit_constant_read_node(node); end + + # Copy a ConstantTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#214 + def visit_constant_target_node(node); end + + # Copy a ConstantWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#219 + def visit_constant_write_node(node); end + + # Copy a DefNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#224 + def visit_def_node(node); end + + # Copy a DefinedNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#229 + def visit_defined_node(node); end + + # Copy a ElseNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#234 + def visit_else_node(node); end + + # Copy a EmbeddedStatementsNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#239 + def visit_embedded_statements_node(node); end + + # Copy a EmbeddedVariableNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#244 + def visit_embedded_variable_node(node); end + + # Copy a EnsureNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#249 + def visit_ensure_node(node); end + + # Copy a FalseNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#254 + def visit_false_node(node); end + + # Copy a FindPatternNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#259 + def visit_find_pattern_node(node); end + + # Copy a FlipFlopNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#264 + def visit_flip_flop_node(node); end + + # Copy a FloatNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#269 + def visit_float_node(node); end + + # Copy a ForNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#274 + def visit_for_node(node); end + + # Copy a ForwardingArgumentsNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#279 + def visit_forwarding_arguments_node(node); end + + # Copy a ForwardingParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#284 + def visit_forwarding_parameter_node(node); end + + # Copy a ForwardingSuperNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#289 + def visit_forwarding_super_node(node); end + + # Copy a GlobalVariableAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#294 + def visit_global_variable_and_write_node(node); end + + # Copy a GlobalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#299 + def visit_global_variable_operator_write_node(node); end + + # Copy a GlobalVariableOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#304 + def visit_global_variable_or_write_node(node); end + + # Copy a GlobalVariableReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#309 + def visit_global_variable_read_node(node); end + + # Copy a GlobalVariableTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#314 + def visit_global_variable_target_node(node); end + + # Copy a GlobalVariableWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#319 + def visit_global_variable_write_node(node); end + + # Copy a HashNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#324 + def visit_hash_node(node); end + + # Copy a HashPatternNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#329 + def visit_hash_pattern_node(node); end + + # Copy a IfNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#334 + def visit_if_node(node); end + + # Copy a ImaginaryNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#339 + def visit_imaginary_node(node); end + + # Copy a ImplicitNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#344 + def visit_implicit_node(node); end + + # Copy a InNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#349 + def visit_in_node(node); end + + # Copy a InstanceVariableAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#354 + def visit_instance_variable_and_write_node(node); end + + # Copy a InstanceVariableOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#359 + def visit_instance_variable_operator_write_node(node); end + + # Copy a InstanceVariableOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#364 + def visit_instance_variable_or_write_node(node); end + + # Copy a InstanceVariableReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#369 + def visit_instance_variable_read_node(node); end + + # Copy a InstanceVariableTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#374 + def visit_instance_variable_target_node(node); end + + # Copy a InstanceVariableWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#379 + def visit_instance_variable_write_node(node); end + + # Copy a IntegerNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#384 + def visit_integer_node(node); end + + # Copy a InterpolatedMatchLastLineNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#389 + def visit_interpolated_match_last_line_node(node); end + + # Copy a InterpolatedRegularExpressionNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#394 + def visit_interpolated_regular_expression_node(node); end + + # Copy a InterpolatedStringNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#399 + def visit_interpolated_string_node(node); end + + # Copy a InterpolatedSymbolNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#404 + def visit_interpolated_symbol_node(node); end + + # Copy a InterpolatedXStringNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#409 + def visit_interpolated_x_string_node(node); end + + # Copy a KeywordHashNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#414 + def visit_keyword_hash_node(node); end + + # Copy a KeywordParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#419 + def visit_keyword_parameter_node(node); end + + # Copy a KeywordRestParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#424 + def visit_keyword_rest_parameter_node(node); end + + # Copy a LambdaNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#429 + def visit_lambda_node(node); end + + # Copy a LocalVariableAndWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#434 + def visit_local_variable_and_write_node(node); end + + # Copy a LocalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#439 + def visit_local_variable_operator_write_node(node); end + + # Copy a LocalVariableOrWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#444 + def visit_local_variable_or_write_node(node); end + + # Copy a LocalVariableReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#449 + def visit_local_variable_read_node(node); end + + # Copy a LocalVariableTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#454 + def visit_local_variable_target_node(node); end + + # Copy a LocalVariableWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#459 + def visit_local_variable_write_node(node); end + + # Copy a MatchLastLineNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#464 + def visit_match_last_line_node(node); end + + # Copy a MatchPredicateNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#469 + def visit_match_predicate_node(node); end + + # Copy a MatchRequiredNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#474 + def visit_match_required_node(node); end + + # Copy a MatchWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#479 + def visit_match_write_node(node); end + + # Copy a MissingNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#484 + def visit_missing_node(node); end + + # Copy a ModuleNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#489 + def visit_module_node(node); end + + # Copy a MultiTargetNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#494 + def visit_multi_target_node(node); end + + # Copy a MultiWriteNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#499 + def visit_multi_write_node(node); end + + # Copy a NextNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#504 + def visit_next_node(node); end + + # Copy a NilNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#509 + def visit_nil_node(node); end + + # Copy a NoKeywordsParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#514 + def visit_no_keywords_parameter_node(node); end + + # Copy a NumberedReferenceReadNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#519 + def visit_numbered_reference_read_node(node); end + + # Copy a OptionalParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#524 + def visit_optional_parameter_node(node); end + + # Copy a OrNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#529 + def visit_or_node(node); end + + # Copy a ParametersNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#534 + def visit_parameters_node(node); end + + # Copy a ParenthesesNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#539 + def visit_parentheses_node(node); end + + # Copy a PinnedExpressionNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#544 + def visit_pinned_expression_node(node); end + + # Copy a PinnedVariableNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#549 + def visit_pinned_variable_node(node); end + + # Copy a PostExecutionNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#554 + def visit_post_execution_node(node); end + + # Copy a PreExecutionNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#559 + def visit_pre_execution_node(node); end + + # Copy a ProgramNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#564 + def visit_program_node(node); end + + # Copy a RangeNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#569 + def visit_range_node(node); end + + # Copy a RationalNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#574 + def visit_rational_node(node); end + + # Copy a RedoNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#579 + def visit_redo_node(node); end + + # Copy a RegularExpressionNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#584 + def visit_regular_expression_node(node); end + + # Copy a RequiredDestructuredParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#589 + def visit_required_destructured_parameter_node(node); end + + # Copy a RequiredParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#594 + def visit_required_parameter_node(node); end + + # Copy a RescueModifierNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#599 + def visit_rescue_modifier_node(node); end + + # Copy a RescueNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#604 + def visit_rescue_node(node); end + + # Copy a RestParameterNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#609 + def visit_rest_parameter_node(node); end + + # Copy a RetryNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#614 + def visit_retry_node(node); end + + # Copy a ReturnNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#619 + def visit_return_node(node); end + + # Copy a SelfNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#624 + def visit_self_node(node); end + + # Copy a SingletonClassNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#629 + def visit_singleton_class_node(node); end + + # Copy a SourceEncodingNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#634 + def visit_source_encoding_node(node); end + + # Copy a SourceFileNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#639 + def visit_source_file_node(node); end + + # Copy a SourceLineNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#644 + def visit_source_line_node(node); end + + # Copy a SplatNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#649 + def visit_splat_node(node); end + + # Copy a StatementsNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#654 + def visit_statements_node(node); end + + # Copy a StringConcatNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#659 + def visit_string_concat_node(node); end + + # Copy a StringNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#664 + def visit_string_node(node); end + + # Copy a SuperNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#669 + def visit_super_node(node); end + + # Copy a SymbolNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#674 + def visit_symbol_node(node); end + + # Copy a TrueNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#679 + def visit_true_node(node); end + + # Copy a UndefNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#684 + def visit_undef_node(node); end + + # Copy a UnlessNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#689 + def visit_unless_node(node); end + + # Copy a UntilNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#694 + def visit_until_node(node); end + + # Copy a WhenNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#699 + def visit_when_node(node); end + + # Copy a WhileNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#704 + def visit_while_node(node); end + + # Copy a XStringNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#709 + def visit_x_string_node(node); end + + # Copy a YieldNode node + # + # source://yarp//lib/prism/mutation_compiler.rb#714 + def visit_yield_node(node); end +end + +# Represents the use of the `next` keyword. +# +# next 1 +# ^^^^^^ +# +# source://yarp//lib/prism/node.rb#10218 +class Prism::NextNode < ::Prism::Node + # def initialize: (arguments: ArgumentsNode?, keyword_loc: Location, location: Location) -> void + # + # @return [NextNode] a new instance of NextNode + # + # source://yarp//lib/prism/node.rb#10226 + def initialize(arguments, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10233 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#10220 + def arguments; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10238 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10250 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10243 + def compact_child_nodes; end + + # def copy: (**params) -> NextNode + # + # source://yarp//lib/prism/node.rb#10255 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10238 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10267 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10276 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#10272 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#10223 + def keyword_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10302 + def type; end +end + +# Represents the use of the `nil` keyword. +# +# nil +# ^^^ +# +# source://yarp//lib/prism/node.rb#10311 +class Prism::NilNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [NilNode] a new instance of NilNode + # + # source://yarp//lib/prism/node.rb#10313 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10318 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10323 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10333 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10328 + def compact_child_nodes; end + + # def copy: (**params) -> NilNode + # + # source://yarp//lib/prism/node.rb#10338 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10323 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10348 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10352 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10371 + def type; end +end + +# Represents the use of `**nil` inside method arguments. +# +# def a(**nil) +# ^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#10381 +class Prism::NoKeywordsParameterNode < ::Prism::Node + # def initialize: (operator_loc: Location, keyword_loc: Location, location: Location) -> void + # + # @return [NoKeywordsParameterNode] a new instance of NoKeywordsParameterNode + # + # source://yarp//lib/prism/node.rb#10389 + def initialize(operator_loc, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10396 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10401 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10411 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10406 + def compact_child_nodes; end + + # def copy: (**params) -> NoKeywordsParameterNode + # + # source://yarp//lib/prism/node.rb#10416 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10401 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10428 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10442 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#10438 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#10386 + def keyword_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#10433 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#10383 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10463 + def type; end +end + +# This represents a node in the tree. It is the parent class of all of the +# various node types. +# +# source://yarp//lib/prism/node.rb#11 +class Prism::Node + # Returns the value of attribute location. + # + # source://yarp//lib/prism/node.rb#12 + def location; end + + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#14 + def newline?; end + + # Similar to inspect, but respects the current level of indentation given by + # the pretty print object. + # + # source://yarp//lib/prism/node.rb#33 + def pretty_print(q); end + + # source://yarp//lib/prism/node.rb#18 + def set_newline_flag(newline_marked); end + + # Slice the location of the node from the source. + # + # source://yarp//lib/prism/node.rb#27 + def slice; end +end + +# This object is responsible for generating the output for the inspect method +# implementations of child nodes. +# +# source://yarp//lib/prism/node_inspector.rb#6 +class Prism::NodeInspector + # @return [NodeInspector] a new instance of NodeInspector + # + # source://yarp//lib/prism/node_inspector.rb#9 + def initialize(prefix = T.unsafe(nil)); end + + # Appends a line to the output with the current prefix. + # + # source://yarp//lib/prism/node_inspector.rb#15 + def <<(line); end + + # Returns a new inspector that can be used to inspect a child node. + # + # source://yarp//lib/prism/node_inspector.rb#59 + def child_inspector(append); end + + # Generates a string that represents a child node. + # + # source://yarp//lib/prism/node_inspector.rb#54 + def child_node(node, append); end + + # This generates a string that is used as the header of the inspect output + # for any given node. + # + # source://yarp//lib/prism/node_inspector.rb#21 + def header(node); end + + # Generates a string that represents a list of nodes. It handles properly + # using the box drawing characters to make the output look nice. + # + # source://yarp//lib/prism/node_inspector.rb#31 + def list(prefix, nodes); end + + # Generates a string that represents a location field on a node. + # + # source://yarp//lib/prism/node_inspector.rb#45 + def location(value); end + + # Returns the value of attribute output. + # + # source://yarp//lib/prism/node_inspector.rb#7 + def output; end + + # Returns the value of attribute prefix. + # + # source://yarp//lib/prism/node_inspector.rb#7 + def prefix; end + + # Returns the output as a string. + # + # source://yarp//lib/prism/node_inspector.rb#64 + def to_str; end +end + +# Represents reading a numbered reference to a capture in the previous match. +# +# $1 +# ^^ +# +# source://yarp//lib/prism/node.rb#10472 +class Prism::NumberedReferenceReadNode < ::Prism::Node + # def initialize: (number: Integer, location: Location) -> void + # + # @return [NumberedReferenceReadNode] a new instance of NumberedReferenceReadNode + # + # source://yarp//lib/prism/node.rb#10477 + def initialize(number, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10483 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10488 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10498 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10493 + def compact_child_nodes; end + + # def copy: (**params) -> NumberedReferenceReadNode + # + # source://yarp//lib/prism/node.rb#10503 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10488 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10514 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10518 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader number: Integer + # + # source://yarp//lib/prism/node.rb#10474 + def number; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10538 + def type; end +end + +# Represents an optional parameter to a method, block, or lambda definition. +# +# def a(b = 1) +# ^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#10548 +class Prism::OptionalParameterNode < ::Prism::Node + # def initialize: (name: Symbol, name_loc: Location, operator_loc: Location, value: Node, location: Location) -> void + # + # @return [OptionalParameterNode] a new instance of OptionalParameterNode + # + # source://yarp//lib/prism/node.rb#10562 + def initialize(name, name_loc, operator_loc, value, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10571 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10576 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10586 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10581 + def compact_child_nodes; end + + # def copy: (**params) -> OptionalParameterNode + # + # source://yarp//lib/prism/node.rb#10591 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10576 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10605 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10614 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#10550 + def name; end + + # attr_reader name_loc: Location + # + # source://yarp//lib/prism/node.rb#10553 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#10610 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#10556 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10638 + def type; end + + # attr_reader value: Node + # + # source://yarp//lib/prism/node.rb#10559 + def value; end +end + +# Represents the use of the `||` operator or the `or` keyword. +# +# left or right +# ^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#10647 +class Prism::OrNode < ::Prism::Node + # def initialize: (left: Node, right: Node, operator_loc: Location, location: Location) -> void + # + # @return [OrNode] a new instance of OrNode + # + # source://yarp//lib/prism/node.rb#10658 + def initialize(left, right, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10666 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10671 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10681 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10676 + def compact_child_nodes; end + + # def copy: (**params) -> OrNode + # + # source://yarp//lib/prism/node.rb#10686 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10671 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10699 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10708 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node + # + # source://yarp//lib/prism/node.rb#10649 + def left; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#10704 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#10655 + def operator_loc; end + + # attr_reader right: Node + # + # source://yarp//lib/prism/node.rb#10652 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10732 + def type; end +end + +# source://yarp//lib/prism/pack.rb#4 +module Prism::Pack + class << self + def parse(_arg0, _arg1, _arg2); end + end +end + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::AGNOSTIC_ENDIAN = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::BACK = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::BER = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::BIG_ENDIAN = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::COMMENT = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#57 +class Prism::Pack::Directive + # @return [Directive] a new instance of Directive + # + # source://yarp//lib/prism/pack.rb#60 + def initialize(version, variant, source, type, signed, endian, size, length_type, length); end + + # source://yarp//lib/prism/pack.rb#98 + def describe; end + + # Returns the value of attribute endian. + # + # source://yarp//lib/prism/pack.rb#58 + def endian; end + + # Returns the value of attribute length. + # + # source://yarp//lib/prism/pack.rb#58 + def length; end + + # Returns the value of attribute length_type. + # + # source://yarp//lib/prism/pack.rb#58 + def length_type; end + + # Returns the value of attribute signed. + # + # source://yarp//lib/prism/pack.rb#58 + def signed; end + + # Returns the value of attribute size. + # + # source://yarp//lib/prism/pack.rb#58 + def size; end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/pack.rb#58 + def source; end + + # Returns the value of attribute type. + # + # source://yarp//lib/prism/pack.rb#58 + def type; end + + # Returns the value of attribute variant. + # + # source://yarp//lib/prism/pack.rb#58 + def variant; end + + # Returns the value of attribute version. + # + # source://yarp//lib/prism/pack.rb#58 + def version; end +end + +# source://yarp//lib/prism/pack.rb#72 +Prism::Pack::Directive::ENDIAN_DESCRIPTIONS = T.let(T.unsafe(nil), Hash) + +# source://yarp//lib/prism/pack.rb#80 +Prism::Pack::Directive::SIGNED_DESCRIPTIONS = T.let(T.unsafe(nil), Hash) + +# source://yarp//lib/prism/pack.rb#86 +Prism::Pack::Directive::SIZE_DESCRIPTIONS = T.let(T.unsafe(nil), Hash) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::ENDIAN_NA = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::FLOAT = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#162 +class Prism::Pack::Format + # @return [Format] a new instance of Format + # + # source://yarp//lib/prism/pack.rb#165 + def initialize(directives, encoding); end + + # source://yarp//lib/prism/pack.rb#170 + def describe; end + + # Returns the value of attribute directives. + # + # source://yarp//lib/prism/pack.rb#163 + def directives; end + + # Returns the value of attribute encoding. + # + # source://yarp//lib/prism/pack.rb#163 + def encoding; end +end + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::INTEGER = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::LENGTH_FIXED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::LENGTH_MAX = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::LENGTH_NA = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::LENGTH_RELATIVE = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::LITTLE_ENDIAN = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::MOVE = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::NATIVE_ENDIAN = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::NULL = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIGNED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIGNED_NA = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_16 = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_32 = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_64 = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_8 = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_INT = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_LONG = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_LONG_LONG = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_NA = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_P = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SIZE_SHORT = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::SPACE = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_BASE64 = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_FIXED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_HEX_HIGH = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_HEX_LOW = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_LSB = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_MIME = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_MSB = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_NULL_PADDED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_NULL_TERMINATED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_POINTER = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_SPACE_PADDED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::STRING_UU = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::UNSIGNED = T.let(T.unsafe(nil), Symbol) + +# source://yarp//lib/prism/pack.rb#54 +Prism::Pack::UTF8 = T.let(T.unsafe(nil), Symbol) + +# Represents the list of parameters on a method, block, or lambda definition. +# +# def a(b, c, d) +# ^^^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#10742 +class Prism::ParametersNode < ::Prism::Node + # def initialize: (requireds: Array[Node], optionals: Array[Node], rest: RestParameterNode?, posts: Array[Node], keywords: Array[Node], keyword_rest: Node?, block: BlockParameterNode?, location: Location) -> void + # + # @return [ParametersNode] a new instance of ParametersNode + # + # source://yarp//lib/prism/node.rb#10765 + def initialize(requireds, optionals, rest, posts, keywords, keyword_rest, block, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10777 + def accept(visitor); end + + # attr_reader block: BlockParameterNode? + # + # source://yarp//lib/prism/node.rb#10762 + def block; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10782 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10800 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10787 + def compact_child_nodes; end + + # def copy: (**params) -> ParametersNode + # + # source://yarp//lib/prism/node.rb#10805 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10782 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10822 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10826 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader keyword_rest: Node? + # + # source://yarp//lib/prism/node.rb#10759 + def keyword_rest; end + + # attr_reader keywords: Array[Node] + # + # source://yarp//lib/prism/node.rb#10756 + def keywords; end + + # attr_reader optionals: Array[Node] + # + # source://yarp//lib/prism/node.rb#10747 + def optionals; end + + # attr_reader posts: Array[Node] + # + # source://yarp//lib/prism/node.rb#10753 + def posts; end + + # attr_reader requireds: Array[Node] + # + # source://yarp//lib/prism/node.rb#10744 + def requireds; end + + # attr_reader rest: RestParameterNode? + # + # source://yarp//lib/prism/node.rb#10750 + def rest; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10867 + def type; end +end + +# Represents a parenthesized expression +# +# (10 + 34) +# ^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#10876 +class Prism::ParenthesesNode < ::Prism::Node + # def initialize: (body: Node?, opening_loc: Location, closing_loc: Location, location: Location) -> void + # + # @return [ParenthesesNode] a new instance of ParenthesesNode + # + # source://yarp//lib/prism/node.rb#10887 + def initialize(body, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#10895 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#10878 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10904 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#10944 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#10884 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#10916 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#10909 + def compact_child_nodes; end + + # def copy: (**params) -> ParenthesesNode + # + # source://yarp//lib/prism/node.rb#10921 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#10904 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#10934 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#10948 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#10939 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#10881 + def opening_loc; end + + # source://yarp//lib/prism/node.rb#10899 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#10975 + def type; end +end + +# This represents an error that was encountered during parsing. +# +# source://yarp//lib/prism/parse_result.rb#170 +class Prism::ParseError + # @return [ParseError] a new instance of ParseError + # + # source://yarp//lib/prism/parse_result.rb#173 + def initialize(message, location); end + + # source://yarp//lib/prism/parse_result.rb#178 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/parse_result.rb#182 + def inspect; end + + # Returns the value of attribute location. + # + # source://yarp//lib/prism/parse_result.rb#171 + def location; end + + # Returns the value of attribute message. + # + # source://yarp//lib/prism/parse_result.rb#171 + def message; end +end + +# This represents the result of a call to ::parse or ::parse_file. It contains +# the AST, any comments that were encounters, and any errors that were +# encountered. +# +# source://yarp//lib/prism/parse_result.rb#208 +class Prism::ParseResult + # @return [ParseResult] a new instance of ParseResult + # + # source://yarp//lib/prism/parse_result.rb#211 + def initialize(value, comments, errors, warnings, source); end + + # Attach the list of comments to their respective locations in the tree. + # + # source://yarp//lib/prism/parse_result/comments.rb#168 + def attach_comments!; end + + # Returns the value of attribute comments. + # + # source://yarp//lib/prism/parse_result.rb#209 + def comments; end + + # source://yarp//lib/prism/parse_result.rb#219 + def deconstruct_keys(keys); end + + # Returns the value of attribute errors. + # + # source://yarp//lib/prism/parse_result.rb#209 + def errors; end + + # @return [Boolean] + # + # source://yarp//lib/prism/parse_result.rb#227 + def failure?; end + + # Walk the tree and mark nodes that are on a new line. + # + # source://yarp//lib/prism/parse_result/newlines.rb#56 + def mark_newlines!; end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/parse_result.rb#209 + def source; end + + # @return [Boolean] + # + # source://yarp//lib/prism/parse_result.rb#223 + def success?; end + + # Returns the value of attribute value. + # + # source://yarp//lib/prism/parse_result.rb#209 + def value; end + + # Returns the value of attribute warnings. + # + # source://yarp//lib/prism/parse_result.rb#209 + def warnings; end +end + +# When we've parsed the source, we have both the syntax tree and the list of +# comments that we found in the source. This class is responsible for +# walking the tree and finding the nearest location to attach each comment. +# +# It does this by first finding the nearest locations to each comment. +# Locations can either come from nodes directly or from location fields on +# nodes. For example, a `ClassNode` has an overall location encompassing the +# entire class, but it also has a location for the `class` keyword. +# +# Once the nearest locations are found, it determines which one to attach +# to. If it's a trailing comment (a comment on the same line as other source +# code), it will favor attaching to the nearest location that occurs before +# the comment. Otherwise it will favor attaching to the nearest location +# that is after the comment. +# +# source://yarp//lib/prism/parse_result/comments.rb#19 +class Prism::ParseResult::Comments + # @return [Comments] a new instance of Comments + # + # source://yarp//lib/prism/parse_result/comments.rb#75 + def initialize(parse_result); end + + # source://yarp//lib/prism/parse_result/comments.rb#79 + def attach!; end + + # Returns the value of attribute parse_result. + # + # source://yarp//lib/prism/parse_result/comments.rb#73 + def parse_result; end + + private + + # Responsible for finding the nearest targets to the given comment within + # the context of the given encapsulating node. + # + # source://yarp//lib/prism/parse_result/comments.rb#98 + def nearest_targets(node, comment); end +end + +# A target for attaching comments that is based on a location field on a +# node. For example, the `end` token of a ClassNode. +# +# source://yarp//lib/prism/parse_result/comments.rb#49 +class Prism::ParseResult::Comments::LocationTarget + # @return [LocationTarget] a new instance of LocationTarget + # + # source://yarp//lib/prism/parse_result/comments.rb#52 + def initialize(location); end + + # source://yarp//lib/prism/parse_result/comments.rb#68 + def <<(comment); end + + # @return [Boolean] + # + # source://yarp//lib/prism/parse_result/comments.rb#64 + def encloses?(comment); end + + # source://yarp//lib/prism/parse_result/comments.rb#60 + def end_offset; end + + # Returns the value of attribute location. + # + # source://yarp//lib/prism/parse_result/comments.rb#50 + def location; end + + # source://yarp//lib/prism/parse_result/comments.rb#56 + def start_offset; end +end + +# A target for attaching comments that is based on a specific node's +# location. +# +# source://yarp//lib/prism/parse_result/comments.rb#22 +class Prism::ParseResult::Comments::NodeTarget + # @return [NodeTarget] a new instance of NodeTarget + # + # source://yarp//lib/prism/parse_result/comments.rb#25 + def initialize(node); end + + # source://yarp//lib/prism/parse_result/comments.rb#42 + def <<(comment); end + + # @return [Boolean] + # + # source://yarp//lib/prism/parse_result/comments.rb#37 + def encloses?(comment); end + + # source://yarp//lib/prism/parse_result/comments.rb#33 + def end_offset; end + + # Returns the value of attribute node. + # + # source://yarp//lib/prism/parse_result/comments.rb#23 + def node; end + + # source://yarp//lib/prism/parse_result/comments.rb#29 + def start_offset; end +end + +# The :line tracepoint event gets fired whenever the Ruby VM encounters an +# expression on a new line. The types of expressions that can trigger this +# event are: +# +# * if statements +# * unless statements +# * nodes that are children of statements lists +# +# In order to keep track of the newlines, we have a list of offsets that +# come back from the parser. We assign these offsets to the first nodes that +# we find in the tree that are on those lines. +# +# Note that the logic in this file should be kept in sync with the Java +# MarkNewlinesVisitor, since that visitor is responsible for marking the +# newlines for JRuby/TruffleRuby. +# +# source://yarp//lib/prism/parse_result/newlines.rb#20 +class Prism::ParseResult::Newlines < ::Prism::Visitor + # @return [Newlines] a new instance of Newlines + # + # source://yarp//lib/prism/parse_result/newlines.rb#21 + def initialize(newline_marked); end + + # source://yarp//lib/prism/parse_result/newlines.rb#25 + def visit_block_node(node); end + + # source://yarp//lib/prism/parse_result/newlines.rb#38 + def visit_if_node(node); end + + # source://yarp//lib/prism/parse_result/newlines.rb#25 + def visit_lambda_node(node); end + + # source://yarp//lib/prism/parse_result/newlines.rb#45 + def visit_statements_node(node); end + + # source://yarp//lib/prism/parse_result/newlines.rb#38 + def visit_unless_node(node); end +end + +# This represents a warning that was encountered during parsing. +# +# source://yarp//lib/prism/parse_result.rb#188 +class Prism::ParseWarning + # @return [ParseWarning] a new instance of ParseWarning + # + # source://yarp//lib/prism/parse_result.rb#191 + def initialize(message, location); end + + # source://yarp//lib/prism/parse_result.rb#196 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/parse_result.rb#200 + def inspect; end + + # Returns the value of attribute location. + # + # source://yarp//lib/prism/parse_result.rb#189 + def location; end + + # Returns the value of attribute message. + # + # source://yarp//lib/prism/parse_result.rb#189 + def message; end +end + +# A pattern is an object that wraps a Ruby pattern matching expression. The +# expression would normally be passed to an `in` clause within a `case` +# expression or a rightward assignment expression. For example, in the +# following snippet: +# +# case node +# in ConstantPathNode[ConstantReadNode[name: :Prism], ConstantReadNode[name: :Pattern]] +# end +# +# the pattern is the `ConstantPathNode[...]` expression. +# +# The pattern gets compiled into an object that responds to #call by running +# the #compile method. This method itself will run back through Prism to +# parse the expression into a tree, then walk the tree to generate the +# necessary callable objects. For example, if you wanted to compile the +# expression above into a callable, you would: +# +# callable = Prism::Pattern.new("ConstantPathNode[ConstantReadNode[name: :Prism], ConstantReadNode[name: :Pattern]]").compile +# callable.call(node) +# +# The callable object returned by #compile is guaranteed to respond to #call +# with a single argument, which is the node to match against. It also is +# guaranteed to respond to #===, which means it itself can be used in a `case` +# expression, as in: +# +# case node +# when callable +# end +# +# If the query given to the initializer cannot be compiled into a valid +# matcher (either because of a syntax error or because it is using syntax we +# do not yet support) then a Prism::Pattern::CompilationError will be +# raised. +# +# source://yarp//lib/prism/pattern.rb#37 +class Prism::Pattern + # @return [Pattern] a new instance of Pattern + # + # source://yarp//lib/prism/pattern.rb#58 + def initialize(query); end + + # source://yarp//lib/prism/pattern.rb#63 + def compile; end + + # Returns the value of attribute query. + # + # source://yarp//lib/prism/pattern.rb#56 + def query; end + + # source://yarp//lib/prism/pattern.rb#68 + def scan(root); end + + private + + # Shortcut for combining two procs into one that returns true if both return + # true. + # + # source://yarp//lib/prism/pattern.rb#84 + def combine_and(left, right); end + + # Shortcut for combining two procs into one that returns true if either + # returns true. + # + # source://yarp//lib/prism/pattern.rb#90 + def combine_or(left, right); end + + # in foo | bar + # + # source://yarp//lib/prism/pattern.rb#125 + def compile_alternation_pattern_node(node); end + + # in [foo, bar, baz] + # + # source://yarp//lib/prism/pattern.rb#100 + def compile_array_pattern_node(node); end + + # in Prism::ConstantReadNode + # + # source://yarp//lib/prism/pattern.rb#130 + def compile_constant_path_node(node); end + + # in ConstantReadNode + # in String + # + # source://yarp//lib/prism/pattern.rb#142 + def compile_constant_read_node(node); end + + # Raise an error because the given node is not supported. + # + # @raise [CompilationError] + # + # source://yarp//lib/prism/pattern.rb#95 + def compile_error(node); end + + # in InstanceVariableReadNode[name: Symbol] + # in { name: Symbol } + # + # source://yarp//lib/prism/pattern.rb#160 + def compile_hash_pattern_node(node); end + + # in nil + # + # source://yarp//lib/prism/pattern.rb#185 + def compile_nil_node(node); end + + # Compile any kind of node. Dispatch out to the individual compilation + # methods based on the type of node. + # + # source://yarp//lib/prism/pattern.rb#214 + def compile_node(node); end + + # in /foo/ + # + # source://yarp//lib/prism/pattern.rb#190 + def compile_regular_expression_node(node); end + + # in "" + # in "foo" + # + # source://yarp//lib/prism/pattern.rb#198 + def compile_string_node(node); end + + # in :+ + # in :foo + # + # source://yarp//lib/prism/pattern.rb#206 + def compile_symbol_node(node); end +end + +# Raised when the query given to a pattern is either invalid Ruby syntax or +# is using syntax that we don't yet support. +# +# source://yarp//lib/prism/pattern.rb#40 +class Prism::Pattern::CompilationError < ::StandardError + # @return [CompilationError] a new instance of CompilationError + # + # source://yarp//lib/prism/pattern.rb#41 + def initialize(repr); end +end + +# Represents the use of the `^` operator for pinning an expression in a +# pattern matching expression. +# +# foo in ^(bar) +# ^^^^^^ +# +# source://yarp//lib/prism/node.rb#10985 +class Prism::PinnedExpressionNode < ::Prism::Node + # def initialize: (expression: Node, operator_loc: Location, lparen_loc: Location, rparen_loc: Location, location: Location) -> void + # + # @return [PinnedExpressionNode] a new instance of PinnedExpressionNode + # + # source://yarp//lib/prism/node.rb#10999 + def initialize(expression, operator_loc, lparen_loc, rparen_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11008 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11013 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11023 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11018 + def compact_child_nodes; end + + # def copy: (**params) -> PinnedExpressionNode + # + # source://yarp//lib/prism/node.rb#11028 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11013 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11042 + def deconstruct_keys(keys); end + + # attr_reader expression: Node + # + # source://yarp//lib/prism/node.rb#10987 + def expression; end + + # source://yarp//lib/prism/node.rb#11061 + def inspect(inspector = T.unsafe(nil)); end + + # def lparen: () -> String + # + # source://yarp//lib/prism/node.rb#11052 + def lparen; end + + # attr_reader lparen_loc: Location + # + # source://yarp//lib/prism/node.rb#10993 + def lparen_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#11047 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#10990 + def operator_loc; end + + # def rparen: () -> String + # + # source://yarp//lib/prism/node.rb#11057 + def rparen; end + + # attr_reader rparen_loc: Location + # + # source://yarp//lib/prism/node.rb#10996 + def rparen_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11085 + def type; end +end + +# Represents the use of the `^` operator for pinning a variable in a pattern +# matching expression. +# +# foo in ^bar +# ^^^^ +# +# source://yarp//lib/prism/node.rb#11095 +class Prism::PinnedVariableNode < ::Prism::Node + # def initialize: (variable: Node, operator_loc: Location, location: Location) -> void + # + # @return [PinnedVariableNode] a new instance of PinnedVariableNode + # + # source://yarp//lib/prism/node.rb#11103 + def initialize(variable, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11110 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11115 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11125 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11120 + def compact_child_nodes; end + + # def copy: (**params) -> PinnedVariableNode + # + # source://yarp//lib/prism/node.rb#11130 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11115 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11142 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11151 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#11147 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#11100 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11173 + def type; end + + # attr_reader variable: Node + # + # source://yarp//lib/prism/node.rb#11097 + def variable; end +end + +# Represents the use of the `END` keyword. +# +# END { foo } +# ^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#11182 +class Prism::PostExecutionNode < ::Prism::Node + # def initialize: (statements: StatementsNode?, keyword_loc: Location, opening_loc: Location, closing_loc: Location, location: Location) -> void + # + # @return [PostExecutionNode] a new instance of PostExecutionNode + # + # source://yarp//lib/prism/node.rb#11196 + def initialize(statements, keyword_loc, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11205 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11210 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#11256 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#11193 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11222 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11215 + def compact_child_nodes; end + + # def copy: (**params) -> PostExecutionNode + # + # source://yarp//lib/prism/node.rb#11227 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11210 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11241 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11260 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#11246 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#11187 + def keyword_loc; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#11251 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#11190 + def opening_loc; end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#11184 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11288 + def type; end +end + +# Represents the use of the `BEGIN` keyword. +# +# BEGIN { foo } +# ^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#11297 +class Prism::PreExecutionNode < ::Prism::Node + # def initialize: (statements: StatementsNode?, keyword_loc: Location, opening_loc: Location, closing_loc: Location, location: Location) -> void + # + # @return [PreExecutionNode] a new instance of PreExecutionNode + # + # source://yarp//lib/prism/node.rb#11311 + def initialize(statements, keyword_loc, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11320 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11325 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#11371 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#11308 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11337 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11330 + def compact_child_nodes; end + + # def copy: (**params) -> PreExecutionNode + # + # source://yarp//lib/prism/node.rb#11342 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11325 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11356 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11375 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#11361 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#11302 + def keyword_loc; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#11366 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#11305 + def opening_loc; end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#11299 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11403 + def type; end +end + +# The top level node of any parse tree. +# +# source://yarp//lib/prism/node.rb#11409 +class Prism::ProgramNode < ::Prism::Node + # def initialize: (locals: Array[Symbol], statements: StatementsNode, location: Location) -> void + # + # @return [ProgramNode] a new instance of ProgramNode + # + # source://yarp//lib/prism/node.rb#11417 + def initialize(locals, statements, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11424 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11429 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11439 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11434 + def compact_child_nodes; end + + # def copy: (**params) -> ProgramNode + # + # source://yarp//lib/prism/node.rb#11444 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11429 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11456 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11460 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#11411 + def locals; end + + # attr_reader statements: StatementsNode + # + # source://yarp//lib/prism/node.rb#11414 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11482 + def type; end +end + +# source://yarp//lib/prism/node.rb#14505 +module Prism::RangeFlags; end + +# ... operator +# +# source://yarp//lib/prism/node.rb#14507 +Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) + +# Represents the use of the `..` or `...` operators. +# +# 1..2 +# ^^^^ +# +# c if a =~ /left/ ... b =~ /right/ +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#11494 +class Prism::RangeNode < ::Prism::Node + # def initialize: (left: Node?, right: Node?, operator_loc: Location, flags: Integer, location: Location) -> void + # + # @return [RangeNode] a new instance of RangeNode + # + # source://yarp//lib/prism/node.rb#11508 + def initialize(left, right, operator_loc, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11517 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11522 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11535 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11527 + def compact_child_nodes; end + + # def copy: (**params) -> RangeNode + # + # source://yarp//lib/prism/node.rb#11540 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11522 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11554 + def deconstruct_keys(keys); end + + # def exclude_end?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11564 + def exclude_end?; end + + # source://yarp//lib/prism/node.rb#11568 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node? + # + # source://yarp//lib/prism/node.rb#11496 + def left; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#11559 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#11502 + def operator_loc; end + + # attr_reader right: Node? + # + # source://yarp//lib/prism/node.rb#11499 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11602 + def type; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#11505 + def flags; end +end + +# Represents a rational number literal. +# +# 1.0r +# ^^^^ +# +# source://yarp//lib/prism/node.rb#11611 +class Prism::RationalNode < ::Prism::Node + # def initialize: (numeric: Node, location: Location) -> void + # + # @return [RationalNode] a new instance of RationalNode + # + # source://yarp//lib/prism/node.rb#11616 + def initialize(numeric, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11622 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11627 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11637 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11632 + def compact_child_nodes; end + + # def copy: (**params) -> RationalNode + # + # source://yarp//lib/prism/node.rb#11642 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11627 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11653 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11657 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader numeric: Node + # + # source://yarp//lib/prism/node.rb#11613 + def numeric; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11678 + def type; end + + # Returns the value of the node as a Ruby Rational. + # + # source://yarp//lib/prism/node_ext.rb#40 + def value; end +end + +# Represents the use of the `redo` keyword. +# +# redo +# ^^^^ +# +# source://yarp//lib/prism/node.rb#11687 +class Prism::RedoNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [RedoNode] a new instance of RedoNode + # + # source://yarp//lib/prism/node.rb#11689 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11694 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11699 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11709 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11704 + def compact_child_nodes; end + + # def copy: (**params) -> RedoNode + # + # source://yarp//lib/prism/node.rb#11714 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11699 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11724 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11728 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11747 + def type; end +end + +# source://yarp//lib/prism/node.rb#14510 +module Prism::RegularExpressionFlags; end + +# n - forces the ASCII-8BIT encoding +# +# source://yarp//lib/prism/node.rb#14524 +Prism::RegularExpressionFlags::ASCII_8BIT = T.let(T.unsafe(nil), Integer) + +# e - forces the EUC-JP encoding +# +# source://yarp//lib/prism/node.rb#14521 +Prism::RegularExpressionFlags::EUC_JP = T.let(T.unsafe(nil), Integer) + +# x - ignores whitespace and allows comments in regular expressions +# +# source://yarp//lib/prism/node.rb#14515 +Prism::RegularExpressionFlags::EXTENDED = T.let(T.unsafe(nil), Integer) + +# i - ignores the case of characters when matching +# +# source://yarp//lib/prism/node.rb#14512 +Prism::RegularExpressionFlags::IGNORE_CASE = T.let(T.unsafe(nil), Integer) + +# m - allows $ to match the end of lines within strings +# +# source://yarp//lib/prism/node.rb#14518 +Prism::RegularExpressionFlags::MULTI_LINE = T.let(T.unsafe(nil), Integer) + +# o - only interpolates values into the regular expression once +# +# source://yarp//lib/prism/node.rb#14533 +Prism::RegularExpressionFlags::ONCE = T.let(T.unsafe(nil), Integer) + +# u - forces the UTF-8 encoding +# +# source://yarp//lib/prism/node.rb#14530 +Prism::RegularExpressionFlags::UTF_8 = T.let(T.unsafe(nil), Integer) + +# s - forces the Windows-31J encoding +# +# source://yarp//lib/prism/node.rb#14527 +Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) + +# Represents a regular expression literal with no interpolation. +# +# /foo/i +# ^^^^^^ +# +# source://yarp//lib/prism/node.rb#11756 +class Prism::RegularExpressionNode < ::Prism::Node + # def initialize: (opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, flags: Integer, location: Location) -> void + # + # @return [RegularExpressionNode] a new instance of RegularExpressionNode + # + # source://yarp//lib/prism/node.rb#11773 + def initialize(opening_loc, content_loc, closing_loc, unescaped, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11783 + def accept(visitor); end + + # def ascii_8bit?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11858 + def ascii_8bit?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11788 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#11833 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#11764 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11798 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11793 + def compact_child_nodes; end + + # def content: () -> String + # + # source://yarp//lib/prism/node.rb#11828 + def content; end + + # attr_reader content_loc: Location + # + # source://yarp//lib/prism/node.rb#11761 + def content_loc; end + + # def copy: (**params) -> RegularExpressionNode + # + # source://yarp//lib/prism/node.rb#11803 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11788 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11818 + def deconstruct_keys(keys); end + + # def euc_jp?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11853 + def euc_jp?; end + + # def extended?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11843 + def extended?; end + + # def ignore_case?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11838 + def ignore_case?; end + + # source://yarp//lib/prism/node.rb#11877 + def inspect(inspector = T.unsafe(nil)); end + + # def multi_line?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11848 + def multi_line?; end + + # def once?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11873 + def once?; end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#11823 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#11758 + def opening_loc; end + + # Returns a numeric value that represents the flags that were used to create + # the regular expression. + # + # source://yarp//lib/prism/node_ext.rb#48 + def options; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#11902 + def type; end + + # attr_reader unescaped: String + # + # source://yarp//lib/prism/node.rb#11767 + def unescaped; end + + # def utf_8?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11868 + def utf_8?; end + + # def windows_31j?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#11863 + def windows_31j?; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#11770 + def flags; end +end + +# Represents a destructured required parameter node. +# +# def foo((bar, baz)) +# ^^^^^^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#11912 +class Prism::RequiredDestructuredParameterNode < ::Prism::Node + # def initialize: (parameters: Array[Node], opening_loc: Location, closing_loc: Location, location: Location) -> void + # + # @return [RequiredDestructuredParameterNode] a new instance of RequiredDestructuredParameterNode + # + # source://yarp//lib/prism/node.rb#11923 + def initialize(parameters, opening_loc, closing_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#11931 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11936 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#11974 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#11920 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#11946 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#11941 + def compact_child_nodes; end + + # def copy: (**params) -> RequiredDestructuredParameterNode + # + # source://yarp//lib/prism/node.rb#11951 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#11936 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#11964 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#11978 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#11969 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#11917 + def opening_loc; end + + # attr_reader parameters: Array[Node] + # + # source://yarp//lib/prism/node.rb#11914 + def parameters; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12000 + def type; end +end + +# Represents a required parameter to a method, block, or lambda definition. +# +# def a(b) +# ^ +# end +# +# source://yarp//lib/prism/node.rb#12010 +class Prism::RequiredParameterNode < ::Prism::Node + # def initialize: (name: Symbol, location: Location) -> void + # + # @return [RequiredParameterNode] a new instance of RequiredParameterNode + # + # source://yarp//lib/prism/node.rb#12015 + def initialize(name, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12021 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12026 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12036 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12031 + def compact_child_nodes; end + + # def copy: (**params) -> RequiredParameterNode + # + # source://yarp//lib/prism/node.rb#12041 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12026 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12052 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12056 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol + # + # source://yarp//lib/prism/node.rb#12012 + def name; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12076 + def type; end +end + +# Represents an expression modified with a rescue. +# +# foo rescue nil +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#12085 +class Prism::RescueModifierNode < ::Prism::Node + # def initialize: (expression: Node, keyword_loc: Location, rescue_expression: Node, location: Location) -> void + # + # @return [RescueModifierNode] a new instance of RescueModifierNode + # + # source://yarp//lib/prism/node.rb#12096 + def initialize(expression, keyword_loc, rescue_expression, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12104 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12113 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12123 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12118 + def compact_child_nodes; end + + # def copy: (**params) -> RescueModifierNode + # + # source://yarp//lib/prism/node.rb#12128 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12113 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12141 + def deconstruct_keys(keys); end + + # attr_reader expression: Node + # + # source://yarp//lib/prism/node.rb#12087 + def expression; end + + # source://yarp//lib/prism/node.rb#12150 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#12146 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#12090 + def keyword_loc; end + + # attr_reader rescue_expression: Node + # + # source://yarp//lib/prism/node.rb#12093 + def rescue_expression; end + + # source://yarp//lib/prism/node.rb#12108 + def set_newline_flag(newline_marked); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12174 + def type; end +end + +# Represents a rescue statement. +# +# begin +# rescue Foo, *splat, Bar => ex +# ^^^^^^ +# foo +# end +# +# `Foo, *splat, Bar` are in the `exceptions` field. +# `ex` is in the `exception` field. +# +# source://yarp//lib/prism/node.rb#12189 +class Prism::RescueNode < ::Prism::Node + # def initialize: (keyword_loc: Location, exceptions: Array[Node], operator_loc: Location?, reference: Node?, statements: StatementsNode?, consequent: RescueNode?, location: Location) -> void + # + # @return [RescueNode] a new instance of RescueNode + # + # source://yarp//lib/prism/node.rb#12209 + def initialize(keyword_loc, exceptions, operator_loc, reference, statements, consequent, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12220 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12225 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12240 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12230 + def compact_child_nodes; end + + # attr_reader consequent: RescueNode? + # + # source://yarp//lib/prism/node.rb#12206 + def consequent; end + + # def copy: (**params) -> RescueNode + # + # source://yarp//lib/prism/node.rb#12245 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12225 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12261 + def deconstruct_keys(keys); end + + # attr_reader exceptions: Array[Node] + # + # source://yarp//lib/prism/node.rb#12194 + def exceptions; end + + # source://yarp//lib/prism/node.rb#12275 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#12266 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#12191 + def keyword_loc; end + + # def operator: () -> String? + # + # source://yarp//lib/prism/node.rb#12271 + def operator; end + + # attr_reader operator_loc: Location? + # + # source://yarp//lib/prism/node.rb#12197 + def operator_loc; end + + # attr_reader reference: Node? + # + # source://yarp//lib/prism/node.rb#12200 + def reference; end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#12203 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12315 + def type; end +end + +# Represents a rest parameter to a method, block, or lambda definition. +# +# def a(*b) +# ^^ +# end +# +# source://yarp//lib/prism/node.rb#12325 +class Prism::RestParameterNode < ::Prism::Node + # def initialize: (name: Symbol?, name_loc: Location?, operator_loc: Location, location: Location) -> void + # + # @return [RestParameterNode] a new instance of RestParameterNode + # + # source://yarp//lib/prism/node.rb#12336 + def initialize(name, name_loc, operator_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12344 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12349 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12359 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12354 + def compact_child_nodes; end + + # def copy: (**params) -> RestParameterNode + # + # source://yarp//lib/prism/node.rb#12364 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12349 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12377 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12386 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader name: Symbol? + # + # source://yarp//lib/prism/node.rb#12327 + def name; end + + # attr_reader name_loc: Location? + # + # source://yarp//lib/prism/node.rb#12330 + def name_loc; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#12382 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#12333 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12408 + def type; end +end + +# Represents the use of the `retry` keyword. +# +# retry +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#12417 +class Prism::RetryNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [RetryNode] a new instance of RetryNode + # + # source://yarp//lib/prism/node.rb#12419 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12424 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12429 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12439 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12434 + def compact_child_nodes; end + + # def copy: (**params) -> RetryNode + # + # source://yarp//lib/prism/node.rb#12444 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12429 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12454 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12458 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12477 + def type; end +end + +# Represents the use of the `return` keyword. +# +# return 1 +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#12486 +class Prism::ReturnNode < ::Prism::Node + # def initialize: (keyword_loc: Location, arguments: ArgumentsNode?, location: Location) -> void + # + # @return [ReturnNode] a new instance of ReturnNode + # + # source://yarp//lib/prism/node.rb#12494 + def initialize(keyword_loc, arguments, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12501 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#12491 + def arguments; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12506 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12518 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12511 + def compact_child_nodes; end + + # def copy: (**params) -> ReturnNode + # + # source://yarp//lib/prism/node.rb#12523 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12506 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12535 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12544 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#12540 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#12488 + def keyword_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12570 + def type; end +end + +# This class is meant to provide a compatibility layer between prism and +# Ripper. It functions by parsing the entire tree first and then walking it +# and executing each of the Ripper callbacks as it goes. +# +# This class is going to necessarily be slower than the native Ripper API. It +# is meant as a stopgap until developers migrate to using prism. It is also +# meant as a test harness for the prism parser. +# +# source://yarp//lib/prism/ripper_compat.rb#13 +class Prism::RipperCompat + # @return [RipperCompat] a new instance of RipperCompat + # + # source://yarp//lib/prism/ripper_compat.rb#59 + def initialize(source); end + + # Returns the value of attribute column. + # + # source://yarp//lib/prism/ripper_compat.rb#57 + def column; end + + # Public interface + # + # @return [Boolean] + # + # source://yarp//lib/prism/ripper_compat.rb#70 + def error?; end + + # Returns the value of attribute lineno. + # + # source://yarp//lib/prism/ripper_compat.rb#57 + def lineno; end + + # source://yarp//lib/prism/ripper_compat.rb#74 + def parse; end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/ripper_compat.rb#57 + def source; end + + # Visitor methods + # + # source://yarp//lib/prism/ripper_compat.rb#82 + def visit(node); end + + # source://yarp//lib/prism/ripper_compat.rb#86 + def visit_call_node(node); end + + # source://yarp//lib/prism/ripper_compat.rb#100 + def visit_integer_node(node); end + + # source://yarp//lib/prism/ripper_compat.rb#125 + def visit_program_node(node); end + + # source://yarp//lib/prism/ripper_compat.rb#105 + def visit_statements_node(node); end + + # source://yarp//lib/prism/ripper_compat.rb#112 + def visit_token(node); end + + private + + # source://yarp//lib/prism/ripper_compat.rb#162 + def _dispatch0; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def _dispatch1(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def _dispatch2(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def _dispatch3(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#166 + def _dispatch4(_, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#167 + def _dispatch5(_, _, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#168 + def _dispatch7(_, _, _, _, _, _, _); end + + # This method is responsible for updating lineno and column information + # to reflect the current node. + # + # This method could be drastically improved with some caching on the start + # of every line, but for now it's good enough. + # + # source://yarp//lib/prism/ripper_compat.rb#151 + def bounds(location); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_BEGIN(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_CHAR(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_END(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on___end__(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_alias(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_alias_error(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_aref(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_aref_field(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_arg_ambiguous(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_arg_paren(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_args_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_args_add_block(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_args_add_star(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_args_forward; end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_args_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_array(_); end + + # source://yarp//lib/prism/ripper_compat.rb#166 + def on_aryptn(_, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_assign(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_assign_error(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_assoc_new(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_assoc_splat(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_assoclist_from_args(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_backref(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_backtick(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_bare_assoc_hash(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_begin(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_binary(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_block_var(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_blockarg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#166 + def on_bodystmt(_, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_brace_block(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_break(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_call(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_case(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_class(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_class_name_error(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_comma(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_command(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#166 + def on_command_call(_, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_comment(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_const(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_const_path_field(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_const_path_ref(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_const_ref(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_cvar(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_def(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_defined(_); end + + # source://yarp//lib/prism/ripper_compat.rb#167 + def on_defs(_, _, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_do_block(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_dot2(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_dot3(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_dyna_symbol(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_else(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_elsif(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_embdoc(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_embdoc_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_embdoc_end(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_embexpr_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_embexpr_end(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_embvar(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_ensure(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_excessed_comma; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_fcall(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_field(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_float(_); end + + # source://yarp//lib/prism/ripper_compat.rb#166 + def on_fndptn(_, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_for(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_gvar(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_hash(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_heredoc_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_heredoc_dedent(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_heredoc_end(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_hshptn(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_ident(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_if(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_if_mod(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_ifop(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_ignored_nl(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_ignored_sp(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_imaginary(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_in(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_int(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_ivar(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_kw(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_kwrest_param(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_label(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_label_end(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_lambda(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_lbrace(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_lbracket(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_lparen(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_magic_comment(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_massign(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_method_add_arg(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_method_add_block(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_mlhs_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_mlhs_add_post(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_mlhs_add_star(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_mlhs_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_mlhs_paren(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_module(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_mrhs_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_mrhs_add_star(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_mrhs_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_mrhs_new_from_args(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_next(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_nl(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_nokw_param(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_op(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_opassign(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_operator_ambiguous(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_param_error(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#168 + def on_params(_, _, _, _, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_paren(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_parse_error(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_period(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_program(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_qsymbols_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_qsymbols_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_qsymbols_new; end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_qwords_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_qwords_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_qwords_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_rational(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_rbrace(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_rbracket(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_redo; end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_regexp_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_regexp_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_regexp_end(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_regexp_literal(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_regexp_new; end + + # source://yarp//lib/prism/ripper_compat.rb#166 + def on_rescue(_, _, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_rescue_mod(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_rest_param(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_retry; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_return(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_return0; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_rparen(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_sclass(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_semicolon(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_sp(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_stmts_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_stmts_new; end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_string_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_string_concat(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_string_content; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_string_dvar(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_string_embexpr(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_string_literal(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_super(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_symbeg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_symbol(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_symbol_literal(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_symbols_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_symbols_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_symbols_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_tlambda(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_tlambeg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_top_const_field(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_top_const_ref(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_tstring_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_tstring_content(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_tstring_end(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_unary(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_undef(_); end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_unless(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_unless_mod(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_until(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_until_mod(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_var_alias(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_var_field(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_var_ref(_); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_vcall(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_void_stmt; end + + # source://yarp//lib/prism/ripper_compat.rb#165 + def on_when(_, _, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_while(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_while_mod(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_word_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_word_new; end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_words_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_words_beg(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_words_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_words_sep(_); end + + # source://yarp//lib/prism/ripper_compat.rb#164 + def on_xstring_add(_, _); end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_xstring_literal(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_xstring_new; end + + # source://yarp//lib/prism/ripper_compat.rb#163 + def on_yield(_); end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_yield0; end + + # source://yarp//lib/prism/ripper_compat.rb#162 + def on_zsuper; end + + # source://yarp//lib/prism/ripper_compat.rb#158 + def result; end + + class << self + # This is a convenience method that runs the SexpBuilderPP subclass parser. + # + # source://yarp//lib/prism/ripper_compat.rb#140 + def sexp(source); end + + # This is a convenience method that runs the SexpBuilder subclass parser. + # + # source://yarp//lib/prism/ripper_compat.rb#135 + def sexp_raw(source); end + end +end + +# This class mirrors the ::Ripper::SexpBuilder subclass of ::Ripper that +# returns the arrays of [type, *children]. +# +# source://yarp//lib/prism/ripper_compat.rb#16 +class Prism::RipperCompat::SexpBuilder < ::Prism::RipperCompat + private + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_BEGIN(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_CHAR(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_END(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on___end__(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_alias(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_alias_error(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_aref(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_aref_field(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_arg_ambiguous(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_arg_paren(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_args_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_args_add_block(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_args_add_star(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_args_forward(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_args_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_array(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_aryptn(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_assign(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_assign_error(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_assoc_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_assoc_splat(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_assoclist_from_args(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_backref(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_backtick(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_bare_assoc_hash(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_begin(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_binary(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_block_var(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_blockarg(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_bodystmt(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_brace_block(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_break(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_call(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_case(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_class(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_class_name_error(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_comma(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_command(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_command_call(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_comment(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_const(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_const_path_field(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_const_path_ref(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_const_ref(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_cvar(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_def(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_defined(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_defs(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_do_block(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_dot2(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_dot3(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_dyna_symbol(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_else(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_elsif(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_embdoc(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_embdoc_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_embdoc_end(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_embexpr_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_embexpr_end(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_embvar(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_ensure(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_excessed_comma(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_fcall(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_field(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_float(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_fndptn(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_for(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_gvar(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_hash(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_heredoc_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_heredoc_dedent(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_heredoc_end(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_hshptn(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_ident(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_if(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_if_mod(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_ifop(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_ignored_nl(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_ignored_sp(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_imaginary(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_in(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_int(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_ivar(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_kw(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_kwrest_param(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_label(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_label_end(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_lambda(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_lbrace(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_lbracket(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_lparen(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_magic_comment(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_massign(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_method_add_arg(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_method_add_block(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mlhs_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mlhs_add_post(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mlhs_add_star(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mlhs_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mlhs_paren(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_module(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mrhs_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mrhs_add_star(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mrhs_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_mrhs_new_from_args(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_next(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_nl(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_nokw_param(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_op(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_opassign(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_operator_ambiguous(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_param_error(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_params(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_paren(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_parse_error(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_period(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_program(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_qsymbols_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_qsymbols_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_qsymbols_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_qwords_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_qwords_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_qwords_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_rational(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_rbrace(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_rbracket(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_redo(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_regexp_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_regexp_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_regexp_end(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_regexp_literal(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_regexp_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_rescue(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_rescue_mod(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_rest_param(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_retry(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_return(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_return0(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_rparen(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_sclass(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_semicolon(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_sp(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_stmts_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_stmts_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_string_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_string_concat(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_string_content(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_string_dvar(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_string_embexpr(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_string_literal(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_super(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_symbeg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_symbol(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_symbol_literal(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_symbols_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_symbols_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_symbols_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_tlambda(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_tlambeg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_top_const_field(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_top_const_ref(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_tstring_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_tstring_content(value); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_tstring_end(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_unary(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_undef(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_unless(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_unless_mod(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_until(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_until_mod(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_var_alias(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_var_field(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_var_ref(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_vcall(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_void_stmt(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_when(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_while(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_while_mod(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_word_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_word_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_words_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_words_beg(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_words_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#26 + def on_words_sep(value); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_xstring_add(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_xstring_literal(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_xstring_new(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_yield(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_yield0(*args); end + + # source://yarp//lib/prism/ripper_compat.rb#20 + def on_zsuper(*args); end +end + +# This class mirrors the ::Ripper::SexpBuilderPP subclass of ::Ripper that +# returns the same values as ::Ripper::SexpBuilder except with a couple of +# niceties that flatten linked lists into arrays. +# +# source://yarp//lib/prism/ripper_compat.rb#35 +class Prism::RipperCompat::SexpBuilderPP < ::Prism::RipperCompat::SexpBuilder + private + + # source://yarp//lib/prism/ripper_compat.rb#38 + def _dispatch_event_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def _dispatch_event_push(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_args_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_args_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_mlhs_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_mlhs_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_mrhs_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_mrhs_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_qsymbols_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_qsymbols_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_qwords_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_qwords_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_regexp_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_regexp_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_stmts_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_stmts_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_string_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_symbols_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_symbols_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_word_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_word_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_words_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_words_new; end + + # source://yarp//lib/prism/ripper_compat.rb#42 + def on_xstring_add(list, item); end + + # source://yarp//lib/prism/ripper_compat.rb#38 + def on_xstring_new; end +end + +# Represents the `self` keyword. +# +# self +# ^^^^ +# +# source://yarp//lib/prism/node.rb#12579 +class Prism::SelfNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [SelfNode] a new instance of SelfNode + # + # source://yarp//lib/prism/node.rb#12581 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12586 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12591 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12601 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12596 + def compact_child_nodes; end + + # def copy: (**params) -> SelfNode + # + # source://yarp//lib/prism/node.rb#12606 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12591 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12616 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12620 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12639 + def type; end +end + +# source://yarp//lib/prism/serialize.rb#22 +module Prism::Serialize + class << self + # source://yarp//lib/prism/serialize.rb#27 + def load(input, serialized); end + + # source://yarp//lib/prism/serialize.rb#37 + def load_tokens(source, serialized); end + end +end + +# source://yarp//lib/prism/serialize.rb#41 +class Prism::Serialize::Loader + # @return [Loader] a new instance of Loader + # + # source://yarp//lib/prism/serialize.rb#45 + def initialize(source, serialized); end + + # Returns the value of attribute constant_pool. + # + # source://yarp//lib/prism/serialize.rb#43 + def constant_pool; end + + # Returns the value of attribute constant_pool_offset. + # + # source://yarp//lib/prism/serialize.rb#43 + def constant_pool_offset; end + + # Returns the value of attribute encoding. + # + # source://yarp//lib/prism/serialize.rb#42 + def encoding; end + + # Returns the value of attribute input. + # + # source://yarp//lib/prism/serialize.rb#42 + def input; end + + # Returns the value of attribute io. + # + # source://yarp//lib/prism/serialize.rb#42 + def io; end + + # source://yarp//lib/prism/serialize.rb#59 + def load_encoding; end + + # source://yarp//lib/prism/serialize.rb#63 + def load_metadata; end + + # source://yarp//lib/prism/serialize.rb#96 + def load_nodes; end + + # source://yarp//lib/prism/serialize.rb#115 + def load_result; end + + # source://yarp//lib/prism/serialize.rb#70 + def load_tokens; end + + # source://yarp//lib/prism/serialize.rb#83 + def load_tokens_result; end + + # Returns the value of attribute serialized. + # + # source://yarp//lib/prism/serialize.rb#42 + def serialized; end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/serialize.rb#43 + def source; end + + private + + # source://yarp//lib/prism/serialize.rb#172 + def load_constant(index); end + + # source://yarp//lib/prism/serialize.rb#149 + def load_embedded_string; end + + # source://yarp//lib/prism/serialize.rb#164 + def load_location; end + + # source://yarp//lib/prism/serialize.rb#202 + def load_node; end + + # source://yarp//lib/prism/serialize.rb#197 + def load_optional_constant; end + + # source://yarp//lib/prism/serialize.rb#168 + def load_optional_location; end + + # source://yarp//lib/prism/serialize.rb#142 + def load_optional_node; end + + # source://yarp//lib/prism/serialize.rb#193 + def load_required_constant; end + + # source://yarp//lib/prism/serialize.rb#138 + def load_serialized_length; end + + # source://yarp//lib/prism/serialize.rb#153 + def load_string; end + + # variable-length integer using https://en.wikipedia.org/wiki/LEB128 + # This is also what protobuf uses: https://protobuf.dev/programming-guides/encoding/#varints + # + # source://yarp//lib/prism/serialize.rb#124 + def load_varint; end +end + +# source://yarp//lib/prism/serialize.rb#23 +Prism::Serialize::MAJOR_VERSION = T.let(T.unsafe(nil), Integer) + +# source://yarp//lib/prism/serialize.rb#24 +Prism::Serialize::MINOR_VERSION = T.let(T.unsafe(nil), Integer) + +# source://yarp//lib/prism/serialize.rb#25 +Prism::Serialize::PATCH_VERSION = T.let(T.unsafe(nil), Integer) + +# source://yarp//lib/prism/serialize.rb#494 +Prism::Serialize::TOKEN_TYPES = T.let(T.unsafe(nil), Array) + +# Represents a singleton class declaration involving the `class` keyword. +# +# class << self end +# ^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#12648 +class Prism::SingletonClassNode < ::Prism::Node + # def initialize: (locals: Array[Symbol], class_keyword_loc: Location, operator_loc: Location, expression: Node, body: Node?, end_keyword_loc: Location, location: Location) -> void + # + # @return [SingletonClassNode] a new instance of SingletonClassNode + # + # source://yarp//lib/prism/node.rb#12668 + def initialize(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12679 + def accept(visitor); end + + # attr_reader body: Node? + # + # source://yarp//lib/prism/node.rb#12662 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12684 + def child_nodes; end + + # def class_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#12723 + def class_keyword; end + + # attr_reader class_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#12653 + def class_keyword_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12697 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12689 + def compact_child_nodes; end + + # def copy: (**params) -> SingletonClassNode + # + # source://yarp//lib/prism/node.rb#12702 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12684 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12718 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String + # + # source://yarp//lib/prism/node.rb#12733 + def end_keyword; end + + # attr_reader end_keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#12665 + def end_keyword_loc; end + + # attr_reader expression: Node + # + # source://yarp//lib/prism/node.rb#12659 + def expression; end + + # source://yarp//lib/prism/node.rb#12737 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader locals: Array[Symbol] + # + # source://yarp//lib/prism/node.rb#12650 + def locals; end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#12728 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#12656 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12768 + def type; end +end + +# This represents a source of Ruby code that has been parsed. It is used in +# conjunction with locations to allow them to resolve line numbers and source +# ranges. +# +# source://yarp//lib/prism/parse_result.rb#7 +class Prism::Source + # @return [Source] a new instance of Source + # + # source://yarp//lib/prism/parse_result.rb#10 + def initialize(source, offsets = T.unsafe(nil)); end + + # source://yarp//lib/prism/parse_result.rb#27 + def column(value); end + + # source://yarp//lib/prism/parse_result.rb#19 + def line(value); end + + # source://yarp//lib/prism/parse_result.rb#23 + def line_offset(value); end + + # Returns the value of attribute offsets. + # + # source://yarp//lib/prism/parse_result.rb#8 + def offsets; end + + # source://yarp//lib/prism/parse_result.rb#15 + def slice(offset, length); end + + # Returns the value of attribute source. + # + # source://yarp//lib/prism/parse_result.rb#8 + def source; end + + private + + # source://yarp//lib/prism/parse_result.rb#33 + def compute_offsets(code); end +end + +# Represents the use of the `__ENCODING__` keyword. +# +# __ENCODING__ +# ^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#12777 +class Prism::SourceEncodingNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [SourceEncodingNode] a new instance of SourceEncodingNode + # + # source://yarp//lib/prism/node.rb#12779 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12784 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12789 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12799 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12794 + def compact_child_nodes; end + + # def copy: (**params) -> SourceEncodingNode + # + # source://yarp//lib/prism/node.rb#12804 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12789 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12814 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12818 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12837 + def type; end +end + +# Represents the use of the `__FILE__` keyword. +# +# __FILE__ +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#12846 +class Prism::SourceFileNode < ::Prism::Node + # def initialize: (filepath: String, location: Location) -> void + # + # @return [SourceFileNode] a new instance of SourceFileNode + # + # source://yarp//lib/prism/node.rb#12851 + def initialize(filepath, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12857 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12862 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12872 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12867 + def compact_child_nodes; end + + # def copy: (**params) -> SourceFileNode + # + # source://yarp//lib/prism/node.rb#12877 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12862 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12888 + def deconstruct_keys(keys); end + + # attr_reader filepath: String + # + # source://yarp//lib/prism/node.rb#12848 + def filepath; end + + # source://yarp//lib/prism/node.rb#12892 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12912 + def type; end +end + +# Represents the use of the `__LINE__` keyword. +# +# __LINE__ +# ^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#12921 +class Prism::SourceLineNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [SourceLineNode] a new instance of SourceLineNode + # + # source://yarp//lib/prism/node.rb#12923 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#12928 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12933 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#12943 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#12938 + def compact_child_nodes; end + + # def copy: (**params) -> SourceLineNode + # + # source://yarp//lib/prism/node.rb#12948 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#12933 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#12958 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#12962 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#12981 + def type; end +end + +# Represents the use of the splat operator. +# +# [*a] +# ^^ +# +# source://yarp//lib/prism/node.rb#12990 +class Prism::SplatNode < ::Prism::Node + # def initialize: (operator_loc: Location, expression: Node?, location: Location) -> void + # + # @return [SplatNode] a new instance of SplatNode + # + # source://yarp//lib/prism/node.rb#12998 + def initialize(operator_loc, expression, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13005 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13010 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13022 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13015 + def compact_child_nodes; end + + # def copy: (**params) -> SplatNode + # + # source://yarp//lib/prism/node.rb#13027 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13010 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13039 + def deconstruct_keys(keys); end + + # attr_reader expression: Node? + # + # source://yarp//lib/prism/node.rb#12995 + def expression; end + + # source://yarp//lib/prism/node.rb#13048 + def inspect(inspector = T.unsafe(nil)); end + + # def operator: () -> String + # + # source://yarp//lib/prism/node.rb#13044 + def operator; end + + # attr_reader operator_loc: Location + # + # source://yarp//lib/prism/node.rb#12992 + def operator_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13074 + def type; end +end + +# Represents a set of statements contained within some scope. +# +# foo; bar; baz +# ^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#13083 +class Prism::StatementsNode < ::Prism::Node + # def initialize: (body: Array[Node], location: Location) -> void + # + # @return [StatementsNode] a new instance of StatementsNode + # + # source://yarp//lib/prism/node.rb#13088 + def initialize(body, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13094 + def accept(visitor); end + + # attr_reader body: Array[Node] + # + # source://yarp//lib/prism/node.rb#13085 + def body; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13099 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13109 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13104 + def compact_child_nodes; end + + # def copy: (**params) -> StatementsNode + # + # source://yarp//lib/prism/node.rb#13114 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13099 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13125 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13129 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13149 + def type; end +end + +# Represents the use of compile-time string concatenation. +# +# "foo" "bar" +# ^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#13158 +class Prism::StringConcatNode < ::Prism::Node + # def initialize: (left: Node, right: Node, location: Location) -> void + # + # @return [StringConcatNode] a new instance of StringConcatNode + # + # source://yarp//lib/prism/node.rb#13166 + def initialize(left, right, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13173 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13178 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13188 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13183 + def compact_child_nodes; end + + # def copy: (**params) -> StringConcatNode + # + # source://yarp//lib/prism/node.rb#13193 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13178 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13205 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13209 + def inspect(inspector = T.unsafe(nil)); end + + # attr_reader left: Node + # + # source://yarp//lib/prism/node.rb#13160 + def left; end + + # attr_reader right: Node + # + # source://yarp//lib/prism/node.rb#13163 + def right; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13232 + def type; end +end + +# source://yarp//lib/prism/node.rb#14536 +module Prism::StringFlags; end + +# frozen by virtue of a frozen_string_literal comment +# +# source://yarp//lib/prism/node.rb#14538 +Prism::StringFlags::FROZEN = T.let(T.unsafe(nil), Integer) + +# Represents a string literal, a string contained within a `%w` list, or +# plain string content within an interpolated string. +# +# "foo" +# ^^^^^ +# +# %w[foo] +# ^^^ +# +# "foo #{bar} baz" +# ^^^^ ^^^^ +# +# source://yarp//lib/prism/node.rb#13248 +class Prism::StringNode < ::Prism::Node + # def initialize: (flags: Integer, opening_loc: Location?, content_loc: Location, closing_loc: Location?, unescaped: String, location: Location) -> void + # + # @return [StringNode] a new instance of StringNode + # + # source://yarp//lib/prism/node.rb#13265 + def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13275 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13280 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#13330 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#13259 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13290 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13285 + def compact_child_nodes; end + + # def content: () -> String + # + # source://yarp//lib/prism/node.rb#13325 + def content; end + + # attr_reader content_loc: Location + # + # source://yarp//lib/prism/node.rb#13256 + def content_loc; end + + # def copy: (**params) -> StringNode + # + # source://yarp//lib/prism/node.rb#13295 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13280 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13310 + def deconstruct_keys(keys); end + + # def frozen?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#13315 + def frozen?; end + + # source://yarp//lib/prism/node.rb#13334 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#13320 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#13253 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13359 + def type; end + + # attr_reader unescaped: String + # + # source://yarp//lib/prism/node.rb#13262 + def unescaped; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#13250 + def flags; end +end + +# Represents the use of the `super` keyword with parentheses or arguments. +# +# super() +# ^^^^^^^ +# +# super foo, bar +# ^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#13371 +class Prism::SuperNode < ::Prism::Node + # def initialize: (keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, block: Node?, location: Location) -> void + # + # @return [SuperNode] a new instance of SuperNode + # + # source://yarp//lib/prism/node.rb#13388 + def initialize(keyword_loc, lparen_loc, arguments, rparen_loc, block, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13398 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#13379 + def arguments; end + + # attr_reader block: Node? + # + # source://yarp//lib/prism/node.rb#13385 + def block; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13403 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13416 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13408 + def compact_child_nodes; end + + # def copy: (**params) -> SuperNode + # + # source://yarp//lib/prism/node.rb#13421 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13403 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13436 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13455 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#13441 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#13373 + def keyword_loc; end + + # def lparen: () -> String? + # + # source://yarp//lib/prism/node.rb#13446 + def lparen; end + + # attr_reader lparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#13376 + def lparen_loc; end + + # def rparen: () -> String? + # + # source://yarp//lib/prism/node.rb#13451 + def rparen; end + + # attr_reader rparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#13382 + def rparen_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13489 + def type; end +end + +# Represents a symbol literal or a symbol contained within a `%i` list. +# +# :foo +# ^^^^ +# +# %i[foo] +# ^^^ +# +# source://yarp//lib/prism/node.rb#13501 +class Prism::SymbolNode < ::Prism::Node + # def initialize: (opening_loc: Location?, value_loc: Location?, closing_loc: Location?, unescaped: String, location: Location) -> void + # + # @return [SymbolNode] a new instance of SymbolNode + # + # source://yarp//lib/prism/node.rb#13515 + def initialize(opening_loc, value_loc, closing_loc, unescaped, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13524 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13529 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#13573 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#13509 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13539 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13534 + def compact_child_nodes; end + + # def copy: (**params) -> SymbolNode + # + # source://yarp//lib/prism/node.rb#13544 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13529 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13558 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13577 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String? + # + # source://yarp//lib/prism/node.rb#13563 + def opening; end + + # attr_reader opening_loc: Location? + # + # source://yarp//lib/prism/node.rb#13503 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13600 + def type; end + + # attr_reader unescaped: String + # + # source://yarp//lib/prism/node.rb#13512 + def unescaped; end + + # def value: () -> String? + # + # source://yarp//lib/prism/node.rb#13568 + def value; end + + # attr_reader value_loc: Location? + # + # source://yarp//lib/prism/node.rb#13506 + def value_loc; end +end + +# This represents a token from the Ruby source. +# +# source://yarp//lib/prism/parse_result.rb#233 +class Prism::Token + # @return [Token] a new instance of Token + # + # source://yarp//lib/prism/parse_result.rb#236 + def initialize(type, value, location); end + + # source://yarp//lib/prism/parse_result.rb#260 + def ==(other); end + + # source://yarp//lib/prism/parse_result.rb#242 + def deconstruct_keys(keys); end + + # Returns the value of attribute location. + # + # source://yarp//lib/prism/parse_result.rb#234 + def location; end + + # source://yarp//lib/prism/parse_result.rb#246 + def pretty_print(q); end + + # Returns the value of attribute type. + # + # source://yarp//lib/prism/parse_result.rb#234 + def type; end + + # Returns the value of attribute value. + # + # source://yarp//lib/prism/parse_result.rb#234 + def value; end +end + +# Represents the use of the literal `true` keyword. +# +# true +# ^^^^ +# +# source://yarp//lib/prism/node.rb#13609 +class Prism::TrueNode < ::Prism::Node + # def initialize: (location: Location) -> void + # + # @return [TrueNode] a new instance of TrueNode + # + # source://yarp//lib/prism/node.rb#13611 + def initialize(location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13616 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13621 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13631 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13626 + def compact_child_nodes; end + + # def copy: (**params) -> TrueNode + # + # source://yarp//lib/prism/node.rb#13636 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13621 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13646 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13650 + def inspect(inspector = T.unsafe(nil)); end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13669 + def type; end +end + +# Represents the use of the `undef` keyword. +# +# undef :foo, :bar, :baz +# ^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#13678 +class Prism::UndefNode < ::Prism::Node + # def initialize: (names: Array[Node], keyword_loc: Location, location: Location) -> void + # + # @return [UndefNode] a new instance of UndefNode + # + # source://yarp//lib/prism/node.rb#13686 + def initialize(names, keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13693 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13698 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13708 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13703 + def compact_child_nodes; end + + # def copy: (**params) -> UndefNode + # + # source://yarp//lib/prism/node.rb#13713 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13698 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13725 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13734 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#13730 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#13683 + def keyword_loc; end + + # attr_reader names: Array[Node] + # + # source://yarp//lib/prism/node.rb#13680 + def names; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13755 + def type; end +end + +# Represents the use of the `unless` keyword, either in the block form or the modifier form. +# +# bar unless foo +# ^^^^^^^^^^^^^^ +# +# unless foo then bar end +# ^^^^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#13767 +class Prism::UnlessNode < ::Prism::Node + # def initialize: (keyword_loc: Location, predicate: Node, statements: StatementsNode?, consequent: ElseNode?, end_keyword_loc: Location?, location: Location) -> void + # + # @return [UnlessNode] a new instance of UnlessNode + # + # source://yarp//lib/prism/node.rb#13784 + def initialize(keyword_loc, predicate, statements, consequent, end_keyword_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13794 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13803 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13817 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13808 + def compact_child_nodes; end + + # attr_reader consequent: ElseNode? + # + # source://yarp//lib/prism/node.rb#13778 + def consequent; end + + # def copy: (**params) -> UnlessNode + # + # source://yarp//lib/prism/node.rb#13822 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13803 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13837 + def deconstruct_keys(keys); end + + # def end_keyword: () -> String? + # + # source://yarp//lib/prism/node.rb#13847 + def end_keyword; end + + # attr_reader end_keyword_loc: Location? + # + # source://yarp//lib/prism/node.rb#13781 + def end_keyword_loc; end + + # source://yarp//lib/prism/node.rb#13851 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#13842 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#13769 + def keyword_loc; end + + # attr_reader predicate: Node + # + # source://yarp//lib/prism/node.rb#13772 + def predicate; end + + # source://yarp//lib/prism/node.rb#13798 + def set_newline_flag(newline_marked); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#13775 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#13886 + def type; end +end + +# Represents the use of the `until` keyword, either in the block form or the modifier form. +# +# bar until foo +# ^^^^^^^^^^^^^ +# +# until foo do bar end +# ^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#13898 +class Prism::UntilNode < ::Prism::Node + # def initialize: (keyword_loc: Location, closing_loc: Location?, predicate: Node, statements: StatementsNode?, flags: Integer, location: Location) -> void + # + # @return [UntilNode] a new instance of UntilNode + # + # source://yarp//lib/prism/node.rb#13915 + def initialize(keyword_loc, closing_loc, predicate, statements, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#13925 + def accept(visitor); end + + # def begin_modifier?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#13982 + def begin_modifier?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13934 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#13977 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#13903 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#13947 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#13939 + def compact_child_nodes; end + + # def copy: (**params) -> UntilNode + # + # source://yarp//lib/prism/node.rb#13952 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#13934 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#13967 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#13986 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#13972 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#13900 + def keyword_loc; end + + # attr_reader predicate: Node + # + # source://yarp//lib/prism/node.rb#13906 + def predicate; end + + # source://yarp//lib/prism/node.rb#13929 + def set_newline_flag(newline_marked); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#13909 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#14017 + def type; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#13912 + def flags; end +end + +# The version constant is set by reading the result of calling pm_version. +Prism::VERSION = T.let(T.unsafe(nil), String) + +# A visitor is a class that provides a default implementation for every accept +# method defined on the nodes. This means it can walk a tree without the +# caller needing to define any special handling. This allows you to handle a +# subset of the tree, while still walking the whole tree. +# +# For example, to find all of the method calls that call the `foo` method, you +# could write: +# +# class FooCalls < Prism::Visitor +# def visit_call_node(node) +# if node.name == "foo" +# # Do something with the node +# end +# +# # Call super so that the visitor continues walking the tree +# super +# end +# end +# +# source://yarp//lib/prism/visitor.rb#46 +class Prism::Visitor < ::Prism::BasicVisitor + # Visit a AliasGlobalVariableNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_alias_global_variable_node(node); end + + # Visit a AliasMethodNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_alias_method_node(node); end + + # Visit a AlternationPatternNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_alternation_pattern_node(node); end + + # Visit a AndNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_and_node(node); end + + # Visit a ArgumentsNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_arguments_node(node); end + + # Visit a ArrayNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_array_node(node); end + + # Visit a ArrayPatternNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_array_pattern_node(node); end + + # Visit a AssocNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_assoc_node(node); end + + # Visit a AssocSplatNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_assoc_splat_node(node); end + + # Visit a BackReferenceReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_back_reference_read_node(node); end + + # Visit a BeginNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_begin_node(node); end + + # Visit a BlockArgumentNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_block_argument_node(node); end + + # Visit a BlockLocalVariableNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_block_local_variable_node(node); end + + # Visit a BlockNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_block_node(node); end + + # Visit a BlockParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_block_parameter_node(node); end + + # Visit a BlockParametersNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_block_parameters_node(node); end + + # Visit a BreakNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_break_node(node); end + + # Visit a CallAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_call_and_write_node(node); end + + # Visit a CallNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_call_node(node); end + + # Visit a CallOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_call_operator_write_node(node); end + + # Visit a CallOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_call_or_write_node(node); end + + # Visit a CapturePatternNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_capture_pattern_node(node); end + + # Visit a CaseNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_case_node(node); end + + # Visit a ClassNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_node(node); end + + # Visit a ClassVariableAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_variable_and_write_node(node); end + + # Visit a ClassVariableOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_variable_operator_write_node(node); end + + # Visit a ClassVariableOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_variable_or_write_node(node); end + + # Visit a ClassVariableReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_variable_read_node(node); end + + # Visit a ClassVariableTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_variable_target_node(node); end + + # Visit a ClassVariableWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_class_variable_write_node(node); end + + # Visit a ConstantAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_and_write_node(node); end + + # Visit a ConstantOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_operator_write_node(node); end + + # Visit a ConstantOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_or_write_node(node); end + + # Visit a ConstantPathAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_path_and_write_node(node); end + + # Visit a ConstantPathNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_path_node(node); end + + # Visit a ConstantPathOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_path_operator_write_node(node); end + + # Visit a ConstantPathOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_path_or_write_node(node); end + + # Visit a ConstantPathTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_path_target_node(node); end + + # Visit a ConstantPathWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_path_write_node(node); end + + # Visit a ConstantReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_read_node(node); end + + # Visit a ConstantTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_target_node(node); end + + # Visit a ConstantWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_constant_write_node(node); end + + # Visit a DefNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_def_node(node); end + + # Visit a DefinedNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_defined_node(node); end + + # Visit a ElseNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_else_node(node); end + + # Visit a EmbeddedStatementsNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_embedded_statements_node(node); end + + # Visit a EmbeddedVariableNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_embedded_variable_node(node); end + + # Visit a EnsureNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_ensure_node(node); end + + # Visit a FalseNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_false_node(node); end + + # Visit a FindPatternNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_find_pattern_node(node); end + + # Visit a FlipFlopNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_flip_flop_node(node); end + + # Visit a FloatNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_float_node(node); end + + # Visit a ForNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_for_node(node); end + + # Visit a ForwardingArgumentsNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_forwarding_arguments_node(node); end + + # Visit a ForwardingParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_forwarding_parameter_node(node); end + + # Visit a ForwardingSuperNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_forwarding_super_node(node); end + + # Visit a GlobalVariableAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_global_variable_and_write_node(node); end + + # Visit a GlobalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_global_variable_operator_write_node(node); end + + # Visit a GlobalVariableOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_global_variable_or_write_node(node); end + + # Visit a GlobalVariableReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_global_variable_read_node(node); end + + # Visit a GlobalVariableTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_global_variable_target_node(node); end + + # Visit a GlobalVariableWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_global_variable_write_node(node); end + + # Visit a HashNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_hash_node(node); end + + # Visit a HashPatternNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_hash_pattern_node(node); end + + # Visit a IfNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_if_node(node); end + + # Visit a ImaginaryNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_imaginary_node(node); end + + # Visit a ImplicitNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_implicit_node(node); end + + # Visit a InNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_in_node(node); end + + # Visit a InstanceVariableAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_instance_variable_and_write_node(node); end + + # Visit a InstanceVariableOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_instance_variable_operator_write_node(node); end + + # Visit a InstanceVariableOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_instance_variable_or_write_node(node); end + + # Visit a InstanceVariableReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_instance_variable_read_node(node); end + + # Visit a InstanceVariableTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_instance_variable_target_node(node); end + + # Visit a InstanceVariableWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_instance_variable_write_node(node); end + + # Visit a IntegerNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_integer_node(node); end + + # Visit a InterpolatedMatchLastLineNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_interpolated_match_last_line_node(node); end + + # Visit a InterpolatedRegularExpressionNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_interpolated_regular_expression_node(node); end + + # Visit a InterpolatedStringNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_interpolated_string_node(node); end + + # Visit a InterpolatedSymbolNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_interpolated_symbol_node(node); end + + # Visit a InterpolatedXStringNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_interpolated_x_string_node(node); end + + # Visit a KeywordHashNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_keyword_hash_node(node); end + + # Visit a KeywordParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_keyword_parameter_node(node); end + + # Visit a KeywordRestParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_keyword_rest_parameter_node(node); end + + # Visit a LambdaNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_lambda_node(node); end + + # Visit a LocalVariableAndWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_local_variable_and_write_node(node); end + + # Visit a LocalVariableOperatorWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_local_variable_operator_write_node(node); end + + # Visit a LocalVariableOrWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_local_variable_or_write_node(node); end + + # Visit a LocalVariableReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_local_variable_read_node(node); end + + # Visit a LocalVariableTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_local_variable_target_node(node); end + + # Visit a LocalVariableWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_local_variable_write_node(node); end + + # Visit a MatchLastLineNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_match_last_line_node(node); end + + # Visit a MatchPredicateNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_match_predicate_node(node); end + + # Visit a MatchRequiredNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_match_required_node(node); end + + # Visit a MatchWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_match_write_node(node); end + + # Visit a MissingNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_missing_node(node); end + + # Visit a ModuleNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_module_node(node); end + + # Visit a MultiTargetNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_multi_target_node(node); end + + # Visit a MultiWriteNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_multi_write_node(node); end + + # Visit a NextNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_next_node(node); end + + # Visit a NilNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_nil_node(node); end + + # Visit a NoKeywordsParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_no_keywords_parameter_node(node); end + + # Visit a NumberedReferenceReadNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_numbered_reference_read_node(node); end + + # Visit a OptionalParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_optional_parameter_node(node); end + + # Visit a OrNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_or_node(node); end + + # Visit a ParametersNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_parameters_node(node); end + + # Visit a ParenthesesNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_parentheses_node(node); end + + # Visit a PinnedExpressionNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_pinned_expression_node(node); end + + # Visit a PinnedVariableNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_pinned_variable_node(node); end + + # Visit a PostExecutionNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_post_execution_node(node); end + + # Visit a PreExecutionNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_pre_execution_node(node); end + + # Visit a ProgramNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_program_node(node); end + + # Visit a RangeNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_range_node(node); end + + # Visit a RationalNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_rational_node(node); end + + # Visit a RedoNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_redo_node(node); end + + # Visit a RegularExpressionNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_regular_expression_node(node); end + + # Visit a RequiredDestructuredParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_required_destructured_parameter_node(node); end + + # Visit a RequiredParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_required_parameter_node(node); end + + # Visit a RescueModifierNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_rescue_modifier_node(node); end + + # Visit a RescueNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_rescue_node(node); end + + # Visit a RestParameterNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_rest_parameter_node(node); end + + # Visit a RetryNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_retry_node(node); end + + # Visit a ReturnNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_return_node(node); end + + # Visit a SelfNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_self_node(node); end + + # Visit a SingletonClassNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_singleton_class_node(node); end + + # Visit a SourceEncodingNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_source_encoding_node(node); end + + # Visit a SourceFileNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_source_file_node(node); end + + # Visit a SourceLineNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_source_line_node(node); end + + # Visit a SplatNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_splat_node(node); end + + # Visit a StatementsNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_statements_node(node); end + + # Visit a StringConcatNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_string_concat_node(node); end + + # Visit a StringNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_string_node(node); end + + # Visit a SuperNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_super_node(node); end + + # Visit a SymbolNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_symbol_node(node); end + + # Visit a TrueNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_true_node(node); end + + # Visit a UndefNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_undef_node(node); end + + # Visit a UnlessNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_unless_node(node); end + + # Visit a UntilNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_until_node(node); end + + # Visit a WhenNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_when_node(node); end + + # Visit a WhileNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_while_node(node); end + + # Visit a XStringNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_x_string_node(node); end + + # Visit a YieldNode node + # + # source://yarp//lib/prism/visitor.rb#22 + def visit_yield_node(node); end +end + +# Represents the use of the `when` keyword within a case statement. +# +# case true +# when true +# ^^^^^^^^^ +# end +# +# source://yarp//lib/prism/node.rb#14028 +class Prism::WhenNode < ::Prism::Node + # def initialize: (keyword_loc: Location, conditions: Array[Node], statements: StatementsNode?, location: Location) -> void + # + # @return [WhenNode] a new instance of WhenNode + # + # source://yarp//lib/prism/node.rb#14039 + def initialize(keyword_loc, conditions, statements, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#14047 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14052 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#14065 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#14057 + def compact_child_nodes; end + + # attr_reader conditions: Array[Node] + # + # source://yarp//lib/prism/node.rb#14033 + def conditions; end + + # def copy: (**params) -> WhenNode + # + # source://yarp//lib/prism/node.rb#14070 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14052 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#14083 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#14092 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#14088 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#14030 + def keyword_loc; end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#14036 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#14119 + def type; end +end + +# Represents the use of the `while` keyword, either in the block form or the modifier form. +# +# bar while foo +# ^^^^^^^^^^^^^ +# +# while foo do bar end +# ^^^^^^^^^^^^^^^^^^^^ +# +# source://yarp//lib/prism/node.rb#14131 +class Prism::WhileNode < ::Prism::Node + # def initialize: (keyword_loc: Location, closing_loc: Location?, predicate: Node, statements: StatementsNode?, flags: Integer, location: Location) -> void + # + # @return [WhileNode] a new instance of WhileNode + # + # source://yarp//lib/prism/node.rb#14148 + def initialize(keyword_loc, closing_loc, predicate, statements, flags, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#14158 + def accept(visitor); end + + # def begin_modifier?: () -> bool + # + # @return [Boolean] + # + # source://yarp//lib/prism/node.rb#14215 + def begin_modifier?; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14167 + def child_nodes; end + + # def closing: () -> String? + # + # source://yarp//lib/prism/node.rb#14210 + def closing; end + + # attr_reader closing_loc: Location? + # + # source://yarp//lib/prism/node.rb#14136 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#14180 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#14172 + def compact_child_nodes; end + + # def copy: (**params) -> WhileNode + # + # source://yarp//lib/prism/node.rb#14185 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14167 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#14200 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#14219 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#14205 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#14133 + def keyword_loc; end + + # attr_reader predicate: Node + # + # source://yarp//lib/prism/node.rb#14139 + def predicate; end + + # source://yarp//lib/prism/node.rb#14162 + def set_newline_flag(newline_marked); end + + # attr_reader statements: StatementsNode? + # + # source://yarp//lib/prism/node.rb#14142 + def statements; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#14250 + def type; end + + private + + # Returns the value of attribute flags. + # + # source://yarp//lib/prism/node.rb#14145 + def flags; end +end + +# Represents an xstring literal with no interpolation. +# +# `foo` +# ^^^^^ +# +# source://yarp//lib/prism/node.rb#14259 +class Prism::XStringNode < ::Prism::Node + # def initialize: (opening_loc: Location, content_loc: Location, closing_loc: Location, unescaped: String, location: Location) -> void + # + # @return [XStringNode] a new instance of XStringNode + # + # source://yarp//lib/prism/node.rb#14273 + def initialize(opening_loc, content_loc, closing_loc, unescaped, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#14282 + def accept(visitor); end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14287 + def child_nodes; end + + # def closing: () -> String + # + # source://yarp//lib/prism/node.rb#14331 + def closing; end + + # attr_reader closing_loc: Location + # + # source://yarp//lib/prism/node.rb#14267 + def closing_loc; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#14297 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#14292 + def compact_child_nodes; end + + # def content: () -> String + # + # source://yarp//lib/prism/node.rb#14326 + def content; end + + # attr_reader content_loc: Location + # + # source://yarp//lib/prism/node.rb#14264 + def content_loc; end + + # def copy: (**params) -> XStringNode + # + # source://yarp//lib/prism/node.rb#14302 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14287 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#14316 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#14335 + def inspect(inspector = T.unsafe(nil)); end + + # def opening: () -> String + # + # source://yarp//lib/prism/node.rb#14321 + def opening; end + + # attr_reader opening_loc: Location + # + # source://yarp//lib/prism/node.rb#14261 + def opening_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#14358 + def type; end + + # attr_reader unescaped: String + # + # source://yarp//lib/prism/node.rb#14270 + def unescaped; end +end + +# Represents the use of the `yield` keyword. +# +# yield 1 +# ^^^^^^^ +# +# source://yarp//lib/prism/node.rb#14367 +class Prism::YieldNode < ::Prism::Node + # def initialize: (keyword_loc: Location, lparen_loc: Location?, arguments: ArgumentsNode?, rparen_loc: Location?, location: Location) -> void + # + # @return [YieldNode] a new instance of YieldNode + # + # source://yarp//lib/prism/node.rb#14381 + def initialize(keyword_loc, lparen_loc, arguments, rparen_loc, location); end + + # def accept: (visitor: Visitor) -> void + # + # source://yarp//lib/prism/node.rb#14390 + def accept(visitor); end + + # attr_reader arguments: ArgumentsNode? + # + # source://yarp//lib/prism/node.rb#14375 + def arguments; end + + # def child_nodes: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14395 + def child_nodes; end + + # def comment_targets: () -> Array[Node | Location] + # + # source://yarp//lib/prism/node.rb#14407 + def comment_targets; end + + # def compact_child_nodes: () -> Array[Node] + # + # source://yarp//lib/prism/node.rb#14400 + def compact_child_nodes; end + + # def copy: (**params) -> YieldNode + # + # source://yarp//lib/prism/node.rb#14412 + def copy(**params); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://yarp//lib/prism/node.rb#14395 + def deconstruct; end + + # def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location] + # + # source://yarp//lib/prism/node.rb#14426 + def deconstruct_keys(keys); end + + # source://yarp//lib/prism/node.rb#14445 + def inspect(inspector = T.unsafe(nil)); end + + # def keyword: () -> String + # + # source://yarp//lib/prism/node.rb#14431 + def keyword; end + + # attr_reader keyword_loc: Location + # + # source://yarp//lib/prism/node.rb#14369 + def keyword_loc; end + + # def lparen: () -> String? + # + # source://yarp//lib/prism/node.rb#14436 + def lparen; end + + # attr_reader lparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#14372 + def lparen_loc; end + + # def rparen: () -> String? + # + # source://yarp//lib/prism/node.rb#14441 + def rparen; end + + # attr_reader rparen_loc: Location? + # + # source://yarp//lib/prism/node.rb#14378 + def rparen_loc; end + + # Sometimes you want to check an instance of a node against a list of + # classes to see what kind of behavior to perform. Usually this is done by + # calling `[cls1, cls2].include?(node.class)` or putting the node into a + # case statement and doing `case node; when cls1; when cls2; end`. Both of + # these approaches are relatively slow because of the constant lookups, + # method calls, and/or array allocations. + # + # Instead, you can call #type, which will return to you a symbol that you + # can use for comparison. This is faster than the other approaches because + # it uses a single integer comparison, but also because if you're on CRuby + # you can take advantage of the fact that case statements with all symbol + # keys will use a jump table. + # + # def type: () -> Symbol + # + # source://yarp//lib/prism/node.rb#14473 + def type; end +end + +# source://yarp//lib/yarp.rb#4 +YARP = Prism diff --git a/ruby-client-sdk/sorbet/tapioca/config.yml b/ruby-client-sdk/sorbet/tapioca/config.yml new file mode 100755 index 000000000..886ae5870 --- /dev/null +++ b/ruby-client-sdk/sorbet/tapioca/config.yml @@ -0,0 +1,13 @@ +gem: + # Add your `gem` command parameters here: + # + # exclude: + # - gem_name + # doc: true + # workers: 5 +dsl: + # Add your `dsl` command parameters here: + # + # exclude: + # - SomeGeneratorName + # workers: 5 diff --git a/ruby-client-sdk/sorbet/tapioca/require.rb b/ruby-client-sdk/sorbet/tapioca/require.rb new file mode 100755 index 000000000..15f240945 --- /dev/null +++ b/ruby-client-sdk/sorbet/tapioca/require.rb @@ -0,0 +1,6 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + +# Add your extra requires here (`bin/tapioca require` can be used to bootstrap this list) diff --git a/ruby-client-sdk/test/auth_test.rb b/ruby-client-sdk/test/auth_test.rb deleted file mode 100755 index 45c781d09..000000000 --- a/ruby-client-sdk/test/auth_test.rb +++ /dev/null @@ -1,353 +0,0 @@ -# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - -require_relative '../lib/openapi' -require 'rack' -module OpenApiSDK - class TestAuth < Minitest::Test - def setup - @sdk = OpenApiSDK::SDK.new - end - - - def test_basic_auth - record_test('auth-basic-auth') - - res = @sdk.auth_new.basic_auth_new(Shared::AuthServiceRequestBody.new( - basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( - username: "testUser", - password: "testPass", - ) - ), Operations::BasicAuthNewSecurity.new( - username: "testUser", - password: "testPass", - ) - ) - - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - - end - - def test_api_key_auth_global - record_test('auth-api-key-auth-global') - - @sdk.config_security(Shared::Security.new( - api_key_auth_new: "test_api_key", - )) - - res = @sdk.auth_new.api_key_auth_global_new(Shared::AuthServiceRequestBody.new( - header_auth: [Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - )] - ), - ) - - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_api_key_auth_operation - record_test('auth-api-key-auth-operation') - - res = @sdk.auth.api_key_auth(Operations::ApiKeyAuthSecurity.new( - api_key_auth: "Bearer testToken" - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - assert_equal(res.token.authenticated, true) - assert_equal("testToken", res.token.token) - end - - def test_bearer_auth_operation_with_prefix - record_test('auth-bearer-auth-operation-with-prefix') - - res = @sdk.auth.bearer_auth(Operations::BearerAuthSecurity.new( - bearer_auth: "Bearer testToken" - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - assert_equal(res.token.authenticated, true) - assert_equal("testToken", res.token.token) - end - - def test_bearer_auth_operation_without_prefix - record_test('auth-bearer-auth-operation-without-prefix') - - res = @sdk.auth.bearer_auth(Operations::BearerAuthSecurity.new( - bearer_auth: "testToken" - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - assert_equal(res.token.authenticated, true) - assert_equal("testToken", res.token.token) - end - - def test_oauth_2_auth - record_test('auth-oauth2-auth') - - res = @sdk.auth_new.oauth2_auth_new(Shared::AuthServiceRequestBody.new( - header_auth: [Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - )], - ), - Operations::Oauth2AuthNewSecurity.new( - oauth2: "Bearer testToken" - ) - ) - - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - - end - - def test_open_id_connect_auth - record_test('auth-open-id-connect-auth') - - res = @sdk.auth_new.open_id_connect_auth_new(Shared::AuthServiceRequestBody.new( - header_auth: [Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - )] - ), Operations::OpenIdConnectAuthNewSecurity.new( - open_id_connect: "Bearer testToken", - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - - end - - def test_multiple_simple_scheme_auth - record_test('auth-multiple-simple-scheme-auth') - - res = @sdk.auth_new.multiple_simple_scheme_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - ) - ] - ), Operations::MultipleSimpleSchemeAuthSecurity.new( - api_key_auth_new: "test_api_key", - oauth2: "Bearer testToken", - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - - def test_multiple_mixed_scheme_auth - record_test('auth-multiple-mixed-scheme-auth') - - res = @sdk.auth_new.multiple_mixed_scheme_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - ], - basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( - username: "testUser", - password: "testPass", - ) - ), - Operations::MultipleMixedSchemeAuthSecurity.new( - api_key_auth_new: "test_api_key", - basic_auth: Shared::SchemeBasicAuth.new( - username: "testUser", - password: "testPass", - ), - ) - ) - - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_simple_options_auth_first_option - record_test('auth-multiple-simple-options-auth-first-option') - - res = @sdk.auth_new.multiple_simple_options_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - ], - ), security=Operations::MultipleSimpleOptionsAuthSecurity.new( - api_key_auth_new: "test_api_key", - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_simple_options_auth_second_option - record_test('auth-multiple-simple-options-auth-second-option') - - res = @sdk.auth_new.multiple_simple_options_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - ), - ], - ), Operations::MultipleSimpleOptionsAuthSecurity.new( - oauth2: "Bearer testToken", - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_mixed_options_auth_first_option - record_test('auth-multiple-mixed-options-auth-first-option') - - res = @sdk.auth_new.multiple_mixed_options_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - ], - ), Operations::MultipleMixedOptionsAuthSecurity.new( - api_key_auth_new: "test_api_key", - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_mixed_options_auth_second_option - record_test('auth-multiple-mixed-options-auth-second-option') - - res = @sdk.auth_new.multiple_mixed_options_auth(Shared::AuthServiceRequestBody.new( - basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( - username: "testUser", - password: "testPass", - ), - ), Operations::MultipleMixedOptionsAuthSecurity.new( - basic_auth: Shared::SchemeBasicAuth.new( - username: "testUser", - password: "testPass", - ), - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_mixed_options_with_simple_schemes_auth_first_option - record_test('auth-multiple-options-with-simple-schemes-auth-first-option') - - res = @sdk.auth_new.multiple_options_with_simple_schemes_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - ) - ], - ), Operations::MultipleOptionsWithSimpleSchemesAuthSecurity.new( - option1: Operations::MultipleOptionsWithSimpleSchemesAuthSecurityOption1.new( - api_key_auth_new: "test_api_key", - oauth2: "Bearer testToken", - ), - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_mixed_options_with_simple_schemes_auth_second_option - record_test('auth-multiple-options-with-simple-schemes-auth-second-option') - - res = @sdk.auth_new.multiple_options_with_simple_schemes_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - ) - ], - ), Operations::MultipleOptionsWithSimpleSchemesAuthSecurity.new( - option2: Operations::MultipleOptionsWithSimpleSchemesAuthSecurityOption2.new( - api_key_auth_new: "test_api_key", - open_id_connect: "Bearer testToken", - ), - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_mixed_options_with_mixed_schemes_auth_first_option - record_test('auth-multiple-options-with-mixed-schemes-auth-first-option') - - res = @sdk.auth_new.multiple_options_with_mixed_schemes_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "Authorization", - expected_value: "Bearer testToken", - ) - ], - ), Operations::MultipleOptionsWithMixedSchemesAuthSecurity.new( - option1: Operations::MultipleOptionsWithMixedSchemesAuthSecurityOption1.new( - api_key_auth_new: "test_api_key", - oauth2: "Bearer testToken", - ), - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - - def test_multiple_mixed_options_with_mixed_schemes_auth_second_option - record_test('auth-multiple-options-with-mixed-schemes-auth-second-option') - - res = @sdk.auth_new.multiple_options_with_mixed_schemes_auth(Shared::AuthServiceRequestBody.new( - header_auth: [ - Shared::AuthServiceRequestBodyHeaderAuth.new( - header_name: "x-api-key", - expected_value: "test_api_key", - ), - ], - basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( - username: "testUser", - password: "testPass", - ), - ), security=Operations::MultipleOptionsWithMixedSchemesAuthSecurity.new( - option2: Operations::MultipleOptionsWithMixedSchemesAuthSecurityOption2.new( - api_key_auth_new: "test_api_key", - basic_auth: Shared::SchemeBasicAuth.new( - username: "testUser", - password: "testPass", - ), - ), - ) - ) - refute_nil(res) - assert_equal(Rack::Utils.status_code(:ok), res.status_code) - end - end -end diff --git a/ruby-client-sdk/test/common_helper_test.rb b/ruby-client-sdk/test/common_helper_test.rb new file mode 100755 index 000000000..1e107cbe2 --- /dev/null +++ b/ruby-client-sdk/test/common_helper_test.rb @@ -0,0 +1,10 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# frozen_string_literal: true + +# sig { param(test_id: String).void } +def record_test(test_id) + File.open('test-ruby-record.txt', 'a') do |f| + f.write "#{test_id}\n" + end +end diff --git a/ruby-client-sdk/testcommon/common_helper_test.rb b/ruby-client-sdk/testcommon/common_helper_test.rb new file mode 100755 index 000000000..1e107cbe2 --- /dev/null +++ b/ruby-client-sdk/testcommon/common_helper_test.rb @@ -0,0 +1,10 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# frozen_string_literal: true + +# sig { param(test_id: String).void } +def record_test(test_id) + File.open('test-ruby-record.txt', 'a') do |f| + f.write "#{test_id}\n" + end +end diff --git a/ruby-client-sdk/testprimary/auth_test.rb b/ruby-client-sdk/testprimary/auth_test.rb new file mode 100755 index 000000000..1e7b8d85f --- /dev/null +++ b/ruby-client-sdk/testprimary/auth_test.rb @@ -0,0 +1,391 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# frozen_string_literal: true + +require_relative '../lib/openapi' +require 'rack' +module OpenApiSDK + class TestAuth < Minitest::Test + def setup + @sdk = OpenApiSDK::SDK.new + end + + + def test_basic_auth + record_test('auth-basic-auth') + + res = @sdk.auth_new.basic_auth_new( + Shared::AuthServiceRequestBody.new( + basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ), + Operations::BasicAuthNewSecurity.new( + username: 'testUser', + password: 'testPass' + ) + ) + + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + + end + + def test_api_key_auth_global + record_test('auth-api-key-auth-global') + + @sdk.config_security( + Shared::Security.new( + api_key_auth_new: 'test_api_key' + ) + ) + + res = @sdk.auth_new.api_key_auth_global_new( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ) + ] + ) + ) + + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_api_key_auth_operation + record_test('auth-api-key-auth-operation') + + res = @sdk.auth.api_key_auth( + Operations::ApiKeyAuthSecurity.new( + api_key_auth: 'Bearer testToken' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + assert_equal(res.token.authenticated, true) + assert_equal('testToken', res.token.token) + end + + def test_bearer_auth_operation_with_prefix + record_test('auth-bearer-auth-operation-with-prefix') + + res = @sdk.auth.bearer_auth( + Operations::BearerAuthSecurity.new( + bearer_auth: 'Bearer testToken' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + assert_equal(res.token.authenticated, true) + assert_equal('testToken', res.token.token) + end + + def test_bearer_auth_operation_without_prefix + record_test('auth-bearer-auth-operation-without-prefix') + + res = @sdk.auth.bearer_auth( + Operations::BearerAuthSecurity.new( + bearer_auth: 'testToken' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + assert_equal(res.token.authenticated, true) + assert_equal('testToken', res.token.token) + end + + def test_oauth_2_auth + record_test('auth-oauth2-auth') + + res = @sdk.auth_new.oauth2_auth_new( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::Oauth2AuthNewSecurity.new( + oauth2: 'Bearer testToken' + ) + ) + + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + + end + + def test_open_id_connect_auth + record_test('auth-open-id-connect-auth') + + res = @sdk.auth_new.open_id_connect_auth_new( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::OpenIdConnectAuthNewSecurity.new( + open_id_connect: 'Bearer testToken' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + + end + + def test_multiple_simple_scheme_auth + record_test('auth-multiple-simple-scheme-auth') + + res = @sdk.auth_new.multiple_simple_scheme_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ), + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::MultipleSimpleSchemeAuthSecurity.new( + api_key_auth_new: 'test_api_key', + oauth2: 'Bearer testToken' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + + def test_multiple_mixed_scheme_auth + record_test('auth-multiple-mixed-scheme-auth') + + res = @sdk.auth_new.multiple_mixed_scheme_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ) + ], + basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ), + Operations::MultipleMixedSchemeAuthSecurity.new( + api_key_auth_new: 'test_api_key', + basic_auth: Shared::SchemeBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ) + ) + + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_simple_options_auth_first_option + record_test('auth-multiple-simple-options-auth-first-option') + + res = @sdk.auth_new.multiple_simple_options_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ) + ] + ), + Operations::MultipleSimpleOptionsAuthSecurity.new( + api_key_auth_new: 'test_api_key' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_simple_options_auth_second_option + record_test('auth-multiple-simple-options-auth-second-option') + + res = @sdk.auth_new.multiple_simple_options_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::MultipleSimpleOptionsAuthSecurity.new( + oauth2: 'Bearer testToken' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_mixed_options_auth_first_option + record_test('auth-multiple-mixed-options-auth-first-option') + + res = @sdk.auth_new.multiple_mixed_options_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ) + ] + ), + Operations::MultipleMixedOptionsAuthSecurity.new( + api_key_auth_new: 'test_api_key' + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_mixed_options_auth_second_option + record_test('auth-multiple-mixed-options-auth-second-option') + + res = @sdk.auth_new.multiple_mixed_options_auth( + Shared::AuthServiceRequestBody.new( + basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ), + Operations::MultipleMixedOptionsAuthSecurity.new( + basic_auth: Shared::SchemeBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_mixed_options_with_simple_schemes_auth_first_option + record_test('auth-multiple-options-with-simple-schemes-auth-first-option') + + res = @sdk.auth_new.multiple_options_with_simple_schemes_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ), + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::MultipleOptionsWithSimpleSchemesAuthSecurity.new( + option1: Operations::MultipleOptionsWithSimpleSchemesAuthSecurityOption1.new( + api_key_auth_new: 'test_api_key', + oauth2: 'Bearer testToken' + ) + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_mixed_options_with_simple_schemes_auth_second_option + record_test('auth-multiple-options-with-simple-schemes-auth-second-option') + + res = @sdk.auth_new.multiple_options_with_simple_schemes_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ), + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::MultipleOptionsWithSimpleSchemesAuthSecurity.new( + option2: Operations::MultipleOptionsWithSimpleSchemesAuthSecurityOption2.new( + api_key_auth_new: 'test_api_key', + open_id_connect: 'Bearer testToken' + ) + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_mixed_options_with_mixed_schemes_auth_first_option + record_test('auth-multiple-options-with-mixed-schemes-auth-first-option') + + res = @sdk.auth_new.multiple_options_with_mixed_schemes_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ), + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'Authorization', + expected_value: 'Bearer testToken' + ) + ] + ), + Operations::MultipleOptionsWithMixedSchemesAuthSecurity.new( + option1: Operations::MultipleOptionsWithMixedSchemesAuthSecurityOption1.new( + api_key_auth_new: 'test_api_key', + oauth2: 'Bearer testToken' + ) + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + + def test_multiple_mixed_options_with_mixed_schemes_auth_second_option + record_test('auth-multiple-options-with-mixed-schemes-auth-second-option') + + res = @sdk.auth_new.multiple_options_with_mixed_schemes_auth( + Shared::AuthServiceRequestBody.new( + header_auth: [ + Shared::AuthServiceRequestBodyHeaderAuth.new( + header_name: 'x-api-key', + expected_value: 'test_api_key' + ) + ], + basic_auth: Shared::AuthServiceRequestBodyBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ), + Operations::MultipleOptionsWithMixedSchemesAuthSecurity.new( + option2: Operations::MultipleOptionsWithMixedSchemesAuthSecurityOption2.new( + api_key_auth_new: 'test_api_key', + basic_auth: Shared::SchemeBasicAuth.new( + username: 'testUser', + password: 'testPass' + ) + ) + ) + ) + refute_nil(res) + assert_equal(Rack::Utils.status_code(:ok), res.status_code) + end + end +end diff --git a/ruby-client-sdk/test/flattening_test.rb b/ruby-client-sdk/testprimary/flattening_test.rb similarity index 73% rename from ruby-client-sdk/test/flattening_test.rb rename to ruby-client-sdk/testprimary/flattening_test.rb index d2f670dfd..cf7ed41f8 100755 --- a/ruby-client-sdk/test/flattening_test.rb +++ b/ruby-client-sdk/testprimary/flattening_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' module OpenApiSDK @@ -7,12 +9,12 @@ class TestFlattening < Minitest::Test def test_component_body_and_param_no_conflict record_test('flattening-component-body-and-param-no-conflict') - @sdk = OpenApiSDK::SDK.new() + @sdk = OpenApiSDK::SDK.new refute_nil @sdk obj = create_simple_object - res = @sdk.flattening.component_body_and_param_no_conflict(param_str='param test', simple_object=obj) + res = @sdk.flattening.component_body_and_param_no_conflict('param test', obj) refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil res.res @@ -23,12 +25,12 @@ def test_component_body_and_param_no_conflict def test_component_body_and_param_conflict record_test('flattening-component-body-and-param-conflict') - @sdk = OpenApiSDK::SDK.new() + @sdk = OpenApiSDK::SDK.new refute_nil @sdk obj = create_simple_object - res = @sdk.flattening.component_body_and_param_conflict(simple_object=obj, str_='param test') + res = @sdk.flattening.component_body_and_param_conflict(obj, 'param test') refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil res.res @@ -39,16 +41,16 @@ def test_component_body_and_param_conflict def test_inline_body_and_param_conflict record_test('flattening-inline-body-and-param-conflict') - @sdk = OpenApiSDK::SDK.new() + @sdk = OpenApiSDK::SDK.new refute_nil @sdk res = @sdk.flattening.inline_body_and_param_conflict( - request_body=Operations::InlineBodyAndParamConflictRequestBody.new( - str_: 'body test', - ), - str_='param test' - ) + Operations::InlineBodyAndParamConflictRequestBody.new( + str_: 'body test' + ), + 'param test' + ) refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil res.res @@ -59,15 +61,15 @@ def test_inline_body_and_param_conflict def test_inline_body_and_param_no_conflict record_test('flattening-inline-body-and-param-no-conflict') - @sdk = OpenApiSDK::SDK.new() + @sdk = OpenApiSDK::SDK.new refute_nil @sdk res = @sdk.flattening.inline_body_and_param_no_conflict( - request_body=Operations::InlineBodyAndParamNoConflictRequestBody.new( - body_str: 'body test', + Operations::InlineBodyAndParamNoConflictRequestBody.new( + body_str: 'body test' ), - param_str='param test' + 'param test' ) refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -79,17 +81,17 @@ def test_inline_body_and_param_no_conflict def test_conflicting_params record_test('flattening-conflicting-params') - @sdk = OpenApiSDK::SDK.new() + @sdk = OpenApiSDK::SDK.new refute_nil @sdk - res = @sdk.flattening.conflicting_params(str_path_parameter='pathParam', str_query_parameter='queryParam') + res = @sdk.flattening.conflicting_params('pathParam', 'queryParam') refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil res.res - assert_match(/\/pathParam?/, res.res.url) + assert_match(%r{/pathParam?}, res.res.url) assert_equal(res.res.args['str'], 'queryParam') end end -end \ No newline at end of file +end diff --git a/ruby-client-sdk/test/globals_test.rb b/ruby-client-sdk/testprimary/globals_test.rb similarity index 83% rename from ruby-client-sdk/test/globals_test.rb rename to ruby-client-sdk/testprimary/globals_test.rb index d2f4b5db2..f63a86453 100755 --- a/ruby-client-sdk/test/globals_test.rb +++ b/ruby-client-sdk/testprimary/globals_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' module OpenApiSDK @@ -18,20 +20,20 @@ def test_globals_query_parameter_get_uses_global end - def test_globals_query_parameter_get_uses_local() + def test_globals_query_parameter_get_uses_local record_test('globals-query-parameter-get-uses-local') @sdk = OpenApiSDK::SDK.new(global_query_param: 'test') refute_nil @sdk - res = @sdk.globals.globals_query_parameter_get(global_query_param='local') + res = @sdk.globals.globals_query_parameter_get('local') refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) assert_equal(res.res.args.global_query_param, 'local') end - def test_global_path_parameter_get_uses_global() + def test_global_path_parameter_get_uses_global record_test('globals-path-parameter-get-uses-global') @sdk = OpenApiSDK::SDK.new(global_path_param: 1) @@ -43,16 +45,16 @@ def test_global_path_parameter_get_uses_global() assert_equal(res.res.url, 'http://localhost:35123/anything/globals/pathParameter/1') end - def test_global_path_parameter_get_uses_local() + def test_global_path_parameter_get_uses_local record_test('globals-path-parameter-get-uses-local') @sdk = OpenApiSDK::SDK.new(global_path_param: 1) refute_nil @sdk - res = @sdk.globals.global_path_parameter_get(global_path_param=2) + res = @sdk.globals.global_path_parameter_get(2) refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) assert_equal(res.res.url, 'http://localhost:35123/anything/globals/pathParameter/2') end end -end \ No newline at end of file +end diff --git a/ruby-client-sdk/test/helper_test.rb b/ruby-client-sdk/testprimary/helper_test.rb similarity index 89% rename from ruby-client-sdk/test/helper_test.rb rename to ruby-client-sdk/testprimary/helper_test.rb index dd903c347..0fe9fedd4 100755 --- a/ruby-client-sdk/test/helper_test.rb +++ b/ruby-client-sdk/testprimary/helper_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'date' require 'cgi' @@ -43,16 +45,17 @@ def unsure(to_replace, match) if match.include? '=' pairs = match.split ',' - pairs.sort_by { |pair| pair.split('=')[0] } else values = match.split ',' pairs = [] 0.step(values.length - 1, 2) do |i| - pairs[i / 2] = values[i] + ',' + values[i + 1] + pairs[i / 2] = "#{values[i]},#{values[i + 1]}" end - pairs.sort_by { |pair| pair.split('=')[0] } + end + pairs.sort_by { |pair| pair.split('=')[0] } + updated_pairs = pairs.join ',' to_replace.sub(match, updated_pairs) @@ -73,6 +76,7 @@ def replace_all_string_submatch_fx(re, str) last_index = 0 matches = re.match(str) + last_index = 0 (1..matches.length - 1).each do |i| result += unsure(str[last_index..matches.end(i) - 1], matches[i]) @@ -108,7 +112,7 @@ def compare_deep_object(obj1, obj2) assert_equal obj1.bool, obj2.bool assert_equal obj1.int, obj2.int assert_equal obj1.map.size, obj2.map.size - for key in obj1.map.keys + obj1.map.each_key do |key| compare_simple_object(obj1.map[key], obj2.map[key]) end assert_equal obj1.num, obj2.num @@ -117,14 +121,9 @@ def compare_deep_object(obj1, obj2) end def compare_hashes(hash1, hash2) - for key in hash1.keys + hash1 = hash1.transform_keys(&:to_sym) + hash2 = hash2.transform_keys(&:to_sym) + hash1.each_key do |key| assert_equal hash1[key], hash2[key] end end - -# sig { param(test_id: String).void } -def record_test(test_id) - File.open("test-ruby-record.txt", "a") do |f| - f.write "#{test_id}\n" - end -end diff --git a/ruby-client-sdk/test/parameter_test.rb b/ruby-client-sdk/testprimary/parameter_test.rb similarity index 55% rename from ruby-client-sdk/test/parameter_test.rb rename to ruby-client-sdk/testprimary/parameter_test.rb index b20188a88..58852c17e 100755 --- a/ruby-client-sdk/test/parameter_test.rb +++ b/ruby-client-sdk/testprimary/parameter_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' module OpenApiSDK @@ -11,74 +13,62 @@ def setup def test_mixed_parameters_primitives record_test('parameters-mixed-primitives') - res = @sdk.parameters.mixed_parameters_primitives(header_param="headerValue", - path_param="pathValue", - query_param="queryValue" - ) + res = @sdk.parameters.mixed_parameters_primitives('headerValue', 'pathValue', 'queryValue') refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue", res.res.url) - assert_equal("headerValue", res.res.headers.headerparam) - assert_equal("queryValue", res.res.args.query_string_param) + assert_equal('http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue', res.res.url) + assert_equal('headerValue', res.res.headers.headerparam) + assert_equal('queryValue', res.res.args.query_string_param) end def test_simple_path_parameter_primitives record_test('parameters-simple-path-parameter-primitives') - res = @sdk.parameters.simple_path_parameter_primitives(bool_param=true, - int_param=1, - num_param=1.1, - str_param="test" - ) + res = @sdk.parameters.simple_path_parameter_primitives(true, 1, 1.1, 'test') refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1", res.res.url) + assert_equal('http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1', res.res.url) end def test_simple_path_parameter_objects record_test('parameters-simple-path-parameter-objects') - res = @sdk.parameters.simple_path_parameter_objects( - obj_param=create_simple_object, - obj_param_exploded=create_simple_object, - ) + res = @sdk.parameters.simple_path_parameter_objects(create_simple_object, create_simple_object) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/pathParams/obj/any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional/objExploded/any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000000001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional", res.res.url) + assert_equal('http://localhost:35123/anything/pathParams/obj/any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional/objExploded/any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000000001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional', res.res.url) end def test_simple_path_parameter_arrays record_test('parameters-simple-path-parameter-arrays') - res = @sdk.parameters.simple_path_parameter_arrays( - arr_param=["test", "test2"], - ) + res = @sdk.parameters.simple_path_parameter_arrays(['test', 'test2']) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/pathParams/arr/test,test2", res.res.url) + assert_equal('http://localhost:35123/anything/pathParams/arr/test,test2', res.res.url) end def test_simple_path_parameter_maps record_test('parameters-simple-path-parameter-maps') res = @sdk.parameters.simple_path_parameter_maps( - map_param={ - :test => "value", - :test2 => "value2", - }, - map_param_exploded={ - :test => 1, - :test2 => 2, + { + test: 'value', + test2: 'value2' }, + { + test: 1, + test2: 2 + } ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2", sort_serialized_map(res.res.url, '.*?\/map\/(.*?)\/mapExploded\/(.*)')) + assert_equal('http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2', sort_serialized_map(res.res.url, '.*?\/map\/(.*?)\/mapExploded\/(.*)')) end # TODO: Faraday needs some help handling this url - URI::InvalidURIError: bad URI(is not URI?): @@ -89,24 +79,20 @@ def test_simple_path_parameter_maps # refute_nil(res) # assert_equal(Rack::Utils.status_code(:ok), res.status_code) # refute_nil(res.res) - # assert_equal('http://localhost:35123/anything/pathParams/json/{"any": "any", "bool": true, "date": "2020-01-01", "dateTime": "2020-01-01T00:00:00.000001Z", "enum": "one", "float32": 1.1, "int": 1, "int32": 1, "num": 1.1, "str": "test", "boolOpt": true, "strOpt": "testOptional"}', res.res.url) + # assert_equal('http://localhost:35123/anything/pathParams/json/{'any': 'any', 'bool': true, 'date': '2020-01-01', 'dateTime': '2020-01-01T00:00:00.000001Z', 'enum': 'one', 'float32': 1.1, 'int': 1, 'int32': 1, 'num': 1.1, 'str': 'test', 'boolOpt': true, 'strOpt': 'testOptional'}', res.res.url) # end def test_form_query_params_primitive record_test('parameters-form-query-params-primitive') - res = @sdk.parameters.form_query_params_primitive(bool_param=true, - int_param=1, - num_param=1.1, - str_param="test", - ) + res = @sdk.parameters.form_query_params_primitive(true, 1, 1.1, 'test') refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("true", res.res.args.bool_param) - assert_equal("1", res.res.args.int_param) - assert_equal("1.1", res.res.args.num_param) - assert_equal("test", res.res.args.str_param) + assert_equal('true', res.res.args.bool_param) + assert_equal('1', res.res.args.int_param) + assert_equal('1.1', res.res.args.num_param) + assert_equal('test', res.res.args.str_param) end def test_form_query_params_object @@ -114,31 +100,28 @@ def test_form_query_params_object obj = create_simple_object - res = @sdk.parameters.form_query_params_object( - obj_param=obj, - obj_param_exploded=obj, - ) + res = @sdk.parameters.form_query_params_object(obj, obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/form/obj?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&objParam=any%2Cany%2Cbool%2Ctrue%2Cdate%2C2020-01-01%2CdateTime%2C2020-01-01T00%3A00%3A00.000000001Z%2Cenum%2Cone%2Cfloat32%2C1.1%2Cint%2C1%2Cint32%2C1%2Cint32Enum%2C55%2CintEnum%2C2%2Cnum%2C1.1%2Cstr%2Ctest%2CboolOpt%2Ctrue%2CstrOpt%2CtestOptional&str=test&strOpt=testOptional", res.res.url) - assert_equal("test", res.res.args.str_) - assert_equal("true", res.res.args.bool) - assert_equal("1", res.res.args.int) - assert_equal("1.1", res.res.args.num) - assert_equal("1", res.res.args.int32) - assert_equal("55", res.res.args.int32_enum) - assert_equal("2", res.res.args.int_enum) - assert_equal("1.1", res.res.args.float32) - assert_equal("one", res.res.args.enum) - assert_equal("any", res.res.args.any) - assert_equal("2020-01-01", res.res.args.date) - assert_equal("2020-01-01T00:00:00.000000001Z", res.res.args.date_time) - assert_equal("true", res.res.args.bool_opt) - assert_equal("testOptional", res.res.args.str_opt) + assert_equal('http://localhost:35123/anything/queryParams/form/obj?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&objParam=any%2Cany%2Cbool%2Ctrue%2Cdate%2C2020-01-01%2CdateTime%2C2020-01-01T00%3A00%3A00.000000001Z%2Cenum%2Cone%2Cfloat32%2C1.1%2Cint%2C1%2Cint32%2C1%2Cint32Enum%2C55%2CintEnum%2C2%2Cnum%2C1.1%2Cstr%2Ctest%2CboolOpt%2Ctrue%2CstrOpt%2CtestOptional&str=test&strOpt=testOptional', res.res.url) + assert_equal('test', res.res.args.str_) + assert_equal('true', res.res.args.bool) + assert_equal('1', res.res.args.int) + assert_equal('1.1', res.res.args.num) + assert_equal('1', res.res.args.int32) + assert_equal('55', res.res.args.int32_enum) + assert_equal('2', res.res.args.int_enum) + assert_equal('1.1', res.res.args.float32) + assert_equal('one', res.res.args.enum) + assert_equal('any', res.res.args.any) + assert_equal('2020-01-01', res.res.args.date) + assert_equal('2020-01-01T00:00:00.000000001Z', res.res.args.date_time) + assert_equal('true', res.res.args.bool_opt) + assert_equal('testOptional', res.res.args.str_opt) assert_nil(res.res.args.int_opt_null) assert_nil(res.res.args.num_opt_null) - assert_equal("any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional", res.res.args.obj_param) + assert_equal('any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional', res.res.args.obj_param) end def test_form_query_params_ref_param_object @@ -146,88 +129,89 @@ def test_form_query_params_ref_param_object res = @sdk.parameters.form_query_params_ref_param_object( - ref_obj_param=Shared::RefQueryParamObj.new( + Shared::RefQueryParamObj.new( bool: true, int: 1, num: 1.1, - str_: "test", + str_: 'test' ), - ref_obj_param_exploded=Shared::RefQueryParamObjExploded.new( + Shared::RefQueryParamObjExploded.new( bool: true, int: 1, num: 1.1, - str_: "test", - ), + str_: 'test' + ) ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/form/refParamObject?bool=true&int=1&num=1.1&refObjParam=bool%2Ctrue%2Cint%2C1%2Cnum%2C1.1%2Cstr%2Ctest&str=test", res.res.url) - assert_equal("test", res.res.args.str_) - assert_equal("true", res.res.args.bool) - assert_equal("1", res.res.args.int) - assert_equal("1.1", res.res.args.num) - assert_equal("bool,true,int,1,num,1.1,str,test", res.res.args.ref_obj_param) + assert_equal('http://localhost:35123/anything/queryParams/form/refParamObject?bool=true&int=1&num=1.1&refObjParam=bool%2Ctrue%2Cint%2C1%2Cnum%2C1.1%2Cstr%2Ctest&str=test', res.res.url) + assert_equal('test', res.res.args.str_) + assert_equal('true', res.res.args.bool) + assert_equal('1', res.res.args.int) + assert_equal('1.1', res.res.args.num) + assert_equal('bool,true,int,1,num,1.1,str,test', res.res.args.ref_obj_param) end def test_form_query_params_array record_test('parameters-form-query-params-array') - res = @sdk.parameters.form_query_params_array(arr_param=["test", "test2"], arr_param_exploded=[1, 2]) + res = @sdk.parameters.form_query_params_array(['test', 'test2'], [1, 2]) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2", res.res.url) - assert_equal("test,test2", res.res.args.arr_param) - assert_equal(["1", "2"], res.res.args.arr_param_exploded) + assert_equal('http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2', res.res.url) + assert_equal('test,test2', res.res.args.arr_param) + assert_equal(['1', '2'], res.res.args.arr_param_exploded) end def test_pipe_delimited_query_params_array record_test('parameters-pipe-query-params-array') - obj = create_simple_object - res = @sdk.parameters.pipe_delimited_query_params_array(arr_param=["test", "test2"], - arr_param_exploded=[1, 2], - map_param={ - :key1 => "val1", - :key2 => "val2", + obj = create_simple_object + res = @sdk.parameters.pipe_delimited_query_params_array( + ['test', 'test2'], + [1, 2], + { + key1: 'val1', + key2: 'val2' }, - obj_param=obj + obj ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/pipe/array?arrParam=test|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1|val1|key2|val2&objParam=any|any|bool|true|date|2020-01-01|dateTime|2020-01-01T00%3A00%3A00.000000001Z|enum|one|float32|1.1|int|1|int32|1|int32Enum|55|intEnum|2|num|1.1|str|test|boolOpt|true|strOpt|testOptional", res.res.url) - assert_equal("test|test2", res.res.args.arr_param) - assert_equal(["1", "2"], res.res.args.arr_param_exploded) + assert_equal('http://localhost:35123/anything/queryParams/pipe/array?arrParam=test|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1|val1|key2|val2&objParam=any|any|bool|true|date|2020-01-01|dateTime|2020-01-01T00%3A00%3A00.000000001Z|enum|one|float32|1.1|int|1|int32|1|int32Enum|55|intEnum|2|num|1.1|str|test|boolOpt|true|strOpt|testOptional', res.res.url) + assert_equal('test|test2', res.res.args.arr_param) + assert_equal(['1', '2'], res.res.args.arr_param_exploded) end def test_form_query_params_map record_test('parameters-form-query-params-map') res = @sdk.parameters.form_query_params_map( - map_param={ - "test": "value", - "test2": "value2", + { + test: 'value', + test2: 'value2' }, - map_param_exploded={ - "test": 1, - "test2": 2, + { + test: 1, + test2: 2 } ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/form/map?mapParam=test,value,test2,value2&test=1&test2=2", sort_serialized_map(res.res.url, '.*?\?mapParam=(.*?)&(.*)')) + assert_equal('http://localhost:35123/anything/queryParams/form/map?mapParam=test,value,test2,value2&test=1&test2=2', sort_serialized_map(res.res.url, '.*?\?mapParam=(.*?)&(.*)')) - if res.res.args.include? "mapParam" - mapParam = res.res.args["mapParam"] - res.res.args["mapParam"] = sort_serialized_map(mapParam, '(.*)') + if res.res.args.include? 'mapParam' + map_param = res.res.args['mapParam'] + res.res.args['mapParam'] = sort_serialized_map(map_param, '(.*)') end - compare_hashes({"mapParam" => "test,value,test2,value2", "test" => "1", "test2" => "2"}, res.res.args) + compare_hashes({mapParam: 'test,value,test2,value2', test: '1', test2: '2'}, res.res.args) end def test_deep_object_query_params_object @@ -235,58 +219,59 @@ def test_deep_object_query_params_object obj = create_simple_object - res = @sdk.parameters.deep_object_query_params_object(obj_param=obj, - obj_arr_param=Operations::DeepObjectQueryParamsObjectObjArrParam.new( - arr: ["test", "test2"] + res = @sdk.parameters.deep_object_query_params_object( + obj, + Operations::DeepObjectQueryParamsObjectObjArrParam.new( + arr: ['test', 'test2'] ) ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/deepObject/obj?objArrParam[arr]=test&objArrParam[arr]=test2&objParam[any]=any&objParam[boolOpt]=true&objParam[bool]=true&objParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&objParam[date]=2020-01-01&objParam[enum]=one&objParam[float32]=1.1&objParam[int32Enum]=55&objParam[int32]=1&objParam[intEnum]=2&objParam[int]=1&objParam[num]=1.1&objParam[strOpt]=testOptional&objParam[str]=test", res.res.url) - - assert_equal(["test", "test2"], res.res.args.obj_arr_param_arr) - assert_equal("any", res.res.args.obj_param_any) - assert_equal("true", res.res.args.obj_param_bool_opt) - assert_equal("true", res.res.args.obj_param_bool) - assert_equal("2020-01-01T00:00:00.000000001Z", res.res.args.obj_param_date_time) - assert_equal("2020-01-01", res.res.args.obj_param_date) - assert_equal("one", res.res.args.obj_param_enum) - assert_equal("1.1", res.res.args.obj_param_float32) - assert_equal("1", res.res.args.obj_param_int) - assert_equal("1", res.res.args.obj_param_int32) - assert_equal("55", res.res.args.obj_param_int32_enum) - assert_equal("2", res.res.args.obj_param_int_enum) - assert_equal("1.1", res.res.args.obj_param_num) - assert_equal("testOptional", res.res.args.obj_param_str_opt) - assert_equal("test", res.res.args.obj_param_str) + assert_equal('http://localhost:35123/anything/queryParams/deepObject/obj?objArrParam[arr]=test&objArrParam[arr]=test2&objParam[any]=any&objParam[boolOpt]=true&objParam[bool]=true&objParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&objParam[date]=2020-01-01&objParam[enum]=one&objParam[float32]=1.1&objParam[int32Enum]=55&objParam[int32]=1&objParam[intEnum]=2&objParam[int]=1&objParam[num]=1.1&objParam[strOpt]=testOptional&objParam[str]=test', res.res.url) + + assert_equal(['test', 'test2'], res.res.args.obj_arr_param_arr) + assert_equal('any', res.res.args.obj_param_any) + assert_equal('true', res.res.args.obj_param_bool_opt) + assert_equal('true', res.res.args.obj_param_bool) + assert_equal('2020-01-01T00:00:00.000000001Z', res.res.args.obj_param_date_time) + assert_equal('2020-01-01', res.res.args.obj_param_date) + assert_equal('one', res.res.args.obj_param_enum) + assert_equal('1.1', res.res.args.obj_param_float32) + assert_equal('1', res.res.args.obj_param_int) + assert_equal('1', res.res.args.obj_param_int32) + assert_equal('55', res.res.args.obj_param_int32_enum) + assert_equal('2', res.res.args.obj_param_int_enum) + assert_equal('1.1', res.res.args.obj_param_num) + assert_equal('testOptional', res.res.args.obj_param_str_opt) + assert_equal('test', res.res.args.obj_param_str) end def test_deep_object_query_params_map record_test('parameters-deep-object-query-params-map') res = @sdk.parameters.deep_object_query_params_map( - map_param={ - "test": "value", - "test2": "value2", - }, - map_arr_param={ - "test": ["test", "test2"], - "test2": ["test3", "test4"], + { + 'test': 'value', + 'test2': 'value2', }, + { + 'test': ['test', 'test2'], + 'test2': ['test3', 'test4'] + } ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value", res.res.url) + assert_equal('http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapArrParam[test]=test&mapArrParam[test]=test2&mapParam[test2]=value2&mapParam[test]=value', res.res.url) assert_equal({ - "mapArrParam[test2]" => ["test3", "test4"], - "mapArrParam[test]" => ["test", "test2"], - "mapParam[test2]" => "value2", - "mapParam[test]" => "value", + 'mapArrParam[test2]' => ['test3', 'test4'], + 'mapArrParam[test]' => ['test', 'test2'], + 'mapParam[test2]' => 'value2', + 'mapParam[test]' => 'value', }, res.res.args) end @@ -296,12 +281,15 @@ def test_json_query_params_object simple_obj = create_simple_object deep_obj = create_deep_object - res = @sdk.parameters.json_query_params_object(deep_obj_param=deep_obj, simple_obj_param=simple_obj) + res = @sdk.parameters.json_query_params_object(deep_obj, simple_obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) + + # rubocop:disable Style/StringLiterals assert_equal("http://localhost:35123/anything/queryParams/json/obj?deepObjParam={\"any\"%3A{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}%2C\"arr\"%3A[{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}%2C{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}]%2C\"bool\"%3Atrue%2C\"int\"%3A1%2C\"map\"%3A[[\"key\"%2C{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}]]%2C\"num\"%3A1.1%2C\"obj\"%3A{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}%2C\"str\"%3A\"test\"}&simpleObjParam={\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}", res.res.url) + # rubocop:enable Style/StringLiterals assert_equal(simple_obj.marshal_json, res.res.args.simple_obj_param) assert_equal(deep_obj.marshal_json, res.res.args.deep_obj_param) end @@ -312,61 +300,59 @@ def test_mixed_query_params obj = create_simple_object - res = @sdk.parameters.mixed_query_params(deep_object_param=obj, form_param=obj, json_param=obj) + res = @sdk.parameters.mixed_query_params(obj, obj, obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) + # rubocop:disable Style/StringLiterals assert_equal("http://localhost:35123/anything/queryParams/mixed?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[any]=any&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}&num=1.1&str=test&strOpt=testOptional", res.res.url) + # rubocop:enable Style/StringLiterals compare_hashes({ - "any"=> "any", - "bool"=> "true", - "boolOpt"=> "true", - "date"=> "2020-01-01", - "dateTime"=> "2020-01-01T00:00:00.000000001Z", - "deepObjectParam[any]"=> "any", - "deepObjectParam[boolOpt]"=> "true", - "deepObjectParam[bool]"=> "true", - "deepObjectParam[dateTime]"=> "2020-01-01T00:00:00.000000001Z", - "deepObjectParam[date]"=> "2020-01-01", - "deepObjectParam[enum]"=> "one", - "deepObjectParam[float32]"=> "1.1", - "deepObjectParam[int32]"=> "1", - "deepObjectParam[int]"=> "1", - "deepObjectParam[int32Enum]"=>"55", - "deepObjectParam[intEnum]"=> "2", - "deepObjectParam[num]"=> "1.1", - "deepObjectParam[strOpt]"=> "testOptional", - "deepObjectParam[str]"=> "test", - "enum"=> "one", - "float32"=> "1.1", - "int"=> "1", - "int32"=> "1", - "int32Enum"=> "55", - "intEnum"=> "2", - "jsonParam"=> obj.marshal_json, - "num"=> "1.1", - "str"=> "test", - "strOpt"=> "testOptional", + 'any': 'any', + 'bool': 'true', + 'boolOpt': 'true', + 'date': '2020-01-01', + 'dateTime': '2020-01-01T00:00:00.000000001Z', + 'deepObjectParam[any]': 'any', + 'deepObjectParam[boolOpt]': 'true', + 'deepObjectParam[bool]': 'true', + 'deepObjectParam[dateTime]': '2020-01-01T00:00:00.000000001Z', + 'deepObjectParam[date]': '2020-01-01', + 'deepObjectParam[enum]': 'one', + 'deepObjectParam[float32]': '1.1', + 'deepObjectParam[int32]': '1', + 'deepObjectParam[int]': '1', + 'deepObjectParam[int32Enum]': '55', + 'deepObjectParam[intEnum]': '2', + 'deepObjectParam[num]': '1.1', + 'deepObjectParam[strOpt]': 'testOptional', + 'deepObjectParam[str]': 'test', + 'enum': 'one', + 'float32': '1.1', + 'int': '1', + 'int32': '1', + 'int32Enum': '55', + 'intEnum': '2', + 'jsonParam': obj.marshal_json, + 'num': '1.1', + 'str': 'test', + 'strOpt': 'testOptional' }, res.res.args) end def test_header_params_primitive record_test('parameters-header-params-primitive') - res = @sdk.parameters.header_params_primitive(x_header_boolean=true, - x_header_integer=1, - x_header_number=1.1, - x_header_string="test" - ) + res = @sdk.parameters.header_params_primitive(true, 1, 1.1, 'test') refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("true", res.res.headers.x_header_boolean) - assert_equal("1", res.res.headers.x_header_integer) - assert_equal("1.1", res.res.headers.x_header_number) - assert_equal("test", res.res.headers.x_header_string) + assert_equal('true', res.res.headers.x_header_boolean) + assert_equal('1', res.res.headers.x_header_integer) + assert_equal('1.1', res.res.headers.x_header_number) + assert_equal('test', res.res.headers.x_header_string) end @@ -375,42 +361,42 @@ def test_header_params_object obj = create_simple_object - res = @sdk.parameters.header_params_object(x_header_obj=obj, x_header_obj_explode=obj) + res = @sdk.parameters.header_params_object(obj, obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional", res.res.headers.x_header_obj) - assert_equal("any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000000001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional", res.res.headers.x_header_obj_explode) + assert_equal('any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000000001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional', res.res.headers.x_header_obj) + assert_equal('any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000000001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional', res.res.headers.x_header_obj_explode) end def test_header_params_map record_test('parameters-header-params-map') res = @sdk.parameters.header_params_map( - x_header_map={ - "key1": "value1", - "key2": "value2", + { + 'key1': 'value1', + 'key2': 'value2' }, - x_header_map_explode={ - "test1": "val1", - "test2": "val2", + { + 'test1': 'val1', + 'test2': 'val2' } ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("key1,value1,key2,value2", res.res.headers.x_header_map) - assert_equal("test1=val1,test2=val2", res.res.headers.x_header_map_explode) + assert_equal('key1,value1,key2,value2', res.res.headers.x_header_map) + assert_equal('test1=val1,test2=val2', res.res.headers.x_header_map_explode) end def test_header_params_array record_test('parameters-header-params-array') - res = @sdk.parameters.header_params_array(x_header_array=["test1", "test2"]) + res = @sdk.parameters.header_params_array(['test1', 'test2']) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("test1,test2", res.res.headers.x_header_array) + assert_equal('test1,test2', res.res.headers.x_header_array) end end end diff --git a/ruby-client-sdk/test/requestbodies_test.rb b/ruby-client-sdk/testprimary/requestbodies_test.rb similarity index 57% rename from ruby-client-sdk/test/requestbodies_test.rb rename to ruby-client-sdk/testprimary/requestbodies_test.rb index f76d51e3d..8d33422b3 100755 --- a/ruby-client-sdk/test/requestbodies_test.rb +++ b/ruby-client-sdk/testprimary/requestbodies_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' module OpenApiSDK @@ -13,7 +15,7 @@ def test_request_body_post_application_json_simple obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_simple(request=obj) + res = @sdk.request_bodies.request_body_post_application_json_simple(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) @@ -25,7 +27,7 @@ def test_request_body_post_application_json_array obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_array(request=[obj]) + res = @sdk.request_bodies.request_body_post_application_json_array([obj]) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -39,7 +41,7 @@ def test_request_body_post_application_json_array_of_array obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_array_of_array(request=[[obj], [obj]]) + res = @sdk.request_bodies.request_body_post_application_json_array_of_array([[obj], [obj]]) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -54,7 +56,7 @@ def test_request_body_post_application_json_map obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_map(request={ + res = @sdk.request_bodies.request_body_post_application_json_map({ "mapElem1": obj, "mapElem2": obj, }) @@ -62,8 +64,8 @@ def test_request_body_post_application_json_map refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - compare_simple_object(obj, res.res["mapElem1"]) - compare_simple_object(obj, res.res["mapElem2"]) + compare_simple_object(obj, res.res['mapElem1']) + compare_simple_object(obj, res.res['mapElem2']) end def test_request_body_post_application_json_map_of_map @@ -71,7 +73,7 @@ def test_request_body_post_application_json_map_of_map obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_map_of_map(request={ + res = @sdk.request_bodies.request_body_post_application_json_map_of_map({ "mapElem1": { "subMapElem1": obj, "subMapElem2": obj, @@ -85,10 +87,10 @@ def test_request_body_post_application_json_map_of_map refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - compare_simple_object(obj, res.res["mapElem1"]["subMapElem1"]) - compare_simple_object(obj, res.res["mapElem1"]["subMapElem2"]) - compare_simple_object(obj, res.res["mapElem2"]["subMapElem1"]) - compare_simple_object(obj, res.res["mapElem2"]["subMapElem2"]) + compare_simple_object(obj, res.res['mapElem1']['subMapElem1']) + compare_simple_object(obj, res.res['mapElem1']['subMapElem2']) + compare_simple_object(obj, res.res['mapElem2']['subMapElem1']) + compare_simple_object(obj, res.res['mapElem2']['subMapElem2']) end def test_request_body_post_application_json_map_of_array @@ -96,7 +98,7 @@ def test_request_body_post_application_json_map_of_array obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_map_of_array(request={ + res = @sdk.request_bodies.request_body_post_application_json_map_of_array({ "mapElem1": [obj, obj], "mapElem2": [obj, obj], }) @@ -104,10 +106,10 @@ def test_request_body_post_application_json_map_of_array refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - compare_simple_object(obj, res.res["mapElem1"][0]) - compare_simple_object(obj, res.res["mapElem1"][1]) - compare_simple_object(obj, res.res["mapElem2"][0]) - compare_simple_object(obj, res.res["mapElem2"][1]) + compare_simple_object(obj, res.res['mapElem1'][0]) + compare_simple_object(obj, res.res['mapElem1'][1]) + compare_simple_object(obj, res.res['mapElem2'][0]) + compare_simple_object(obj, res.res['mapElem2'][1]) end def test_request_body_post_application_json_array_of_map @@ -115,87 +117,87 @@ def test_request_body_post_application_json_array_of_map obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_array_of_map(request=[ - { - "mapElem1": obj, - "mapElem2": obj, - }, - { - "mapElem1": obj, - "mapElem2": obj, - }, - ]) + res = @sdk.request_bodies.request_body_post_application_json_array_of_map([ + { + "mapElem1": obj, + "mapElem2": obj, + }, + { + "mapElem1": obj, + "mapElem2": obj, + }, + ]) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.maps) - compare_simple_object(obj, res.maps[0]["mapElem1"]) - compare_simple_object(obj, res.maps[0]["mapElem1"]) - compare_simple_object(obj, res.maps[1]["mapElem2"]) - compare_simple_object(obj, res.maps[1]["mapElem2"]) + compare_simple_object(obj, res.maps[0]['mapElem1']) + compare_simple_object(obj, res.maps[0]['mapElem1']) + compare_simple_object(obj, res.maps[1]['mapElem2']) + compare_simple_object(obj, res.maps[1]['mapElem2']) end def test_request_body_post_application_json_map_of_primitive record_test('request-bodies-post-application-json-map-of-primitive') - res = @sdk.request_bodies.request_body_post_application_json_map_of_primitive(request={ - "mapElem1": "hello", - "mapElem2": "world", + res = @sdk.request_bodies.request_body_post_application_json_map_of_primitive({ + "mapElem1": 'hello', + "mapElem2": 'world', }) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("hello", res.res["mapElem1"]) - assert_equal("world", res.res["mapElem2"]) + assert_equal('hello', res.res['mapElem1']) + assert_equal('world', res.res['mapElem2']) end def test_request_body_post_application_json_array_of_primitive record_test('request-bodies-post-application-json-array-of-primitive') - res = @sdk.request_bodies.request_body_post_application_json_array_of_primitive(request=["hello", "world"]) + res = @sdk.request_bodies.request_body_post_application_json_array_of_primitive(['hello', 'world']) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.strings) - assert_equal(["hello", "world"], res.strings) + assert_equal(['hello', 'world'], res.strings) end def test_request_body_post_application_json_map_of_map_of_primitive record_test('request-bodies-post-application-json-map-of-map-of-primitive') - res = @sdk.request_bodies.request_body_post_application_json_map_of_map_of_primitive(request={ + res = @sdk.request_bodies.request_body_post_application_json_map_of_map_of_primitive({ "mapElem1": { - "subMapElem1": "foo", - "subMapElem2": "bar", + "subMapElem1": 'foo', + "subMapElem2": 'bar', }, "mapElem2": { - "subMapElem1": "buzz", - "subMapElem2": "bazz", + "subMapElem1": 'buzz', + "subMapElem2": 'bazz', }, }) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("foo", res.res["mapElem1"]["subMapElem1"]) - assert_equal("bar", res.res["mapElem1"]["subMapElem2"]) - assert_equal("buzz", res.res["mapElem2"]["subMapElem1"]) - assert_equal("bazz", res.res["mapElem2"]["subMapElem2"]) + assert_equal('foo', res.res['mapElem1']['subMapElem1']) + assert_equal('bar', res.res['mapElem1']['subMapElem2']) + assert_equal('buzz', res.res['mapElem2']['subMapElem1']) + assert_equal('bazz', res.res['mapElem2']['subMapElem2']) end def test_request_body_post_application_json_array_of_array_of_primitive record_test('request-bodies-post-application-json-array-of-array-of-primitive') - res = @sdk.request_bodies.request_body_post_application_json_array_of_array_of_primitive(request=[ - ["foo", "bar"], - ["buzz", "bazz"], - ]) + res = @sdk.request_bodies.request_body_post_application_json_array_of_array_of_primitive([ + ['foo', 'bar'], + ['buzz', 'bazz'], + ]) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.arrs) - assert_equal([["foo", "bar"],["buzz", "bazz"]], res.arrs) + assert_equal([['foo', 'bar'], ['buzz', 'bazz']], res.arrs) end def test_request_body_post_application_json_array_object @@ -203,7 +205,7 @@ def test_request_body_post_application_json_array_object obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_array_obj(request=[obj, obj]) + res = @sdk.request_bodies.request_body_post_application_json_array_obj([obj, obj]) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -218,7 +220,7 @@ def test_request_body_post_application_json_map_object obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_map_obj(request={ + res = @sdk.request_bodies.request_body_post_application_json_map_obj({ "mapElem1": obj, "mapElem2": obj, }) @@ -227,8 +229,8 @@ def test_request_body_post_application_json_map_object assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.map_obj_value) assert_equal(2, res.map_obj_value.json.length) - compare_simple_object(obj, res.map_obj_value.json["mapElem1"]) - compare_simple_object(obj, res.map_obj_value.json["mapElem2"]) + compare_simple_object(obj, res.map_obj_value.json['mapElem1']) + compare_simple_object(obj, res.map_obj_value.json['mapElem2']) end def test_request_body_post_application_json_deep @@ -236,7 +238,7 @@ def test_request_body_post_application_json_deep obj = create_deep_object - res = @sdk.request_bodies.request_body_post_application_json_deep(request=obj) + res = @sdk.request_bodies.request_body_post_application_json_deep(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) @@ -246,20 +248,20 @@ def test_request_body_post_application_json_deep compare_deep_object(res.res.json, obj) compare_hashes(any, { - "any" => "any", - "bool" => true, - "boolOpt" => true, - "date" => "2020-01-01", - "dateTime" => "2020-01-01T00:00:00.000000001Z", - "enum" => "one", - "float32" => 1.1, - "int" => 1, - "int32" => 1, - "int32Enum" => 55, - "intEnum" => 2, - "num" => 1.1, - "str" => "test", - "strOpt" => "testOptional" + 'any' => 'any', + 'bool' => true, + 'boolOpt' => true, + 'date' => '2020-01-01', + 'dateTime' => '2020-01-01T00:00:00.000000001Z', + 'enum' => 'one', + 'float32' => 1.1, + 'int' => 1, + 'int32' => 1, + 'int32Enum' => 55, + 'intEnum' => 2, + 'num' => 1.1, + 'str' => 'test', + 'strOpt' => 'testOptional' }) end @@ -267,7 +269,7 @@ def test_request_body_post_application_json_multiple_json_filtered record_test('request-bodies-post-application-json-multiple-json-filtered') obj = create_simple_object - res = @sdk.request_bodies.request_body_post_application_json_multiple_json_filtered(request=obj) + res = @sdk.request_bodies.request_body_post_application_json_multiple_json_filtered(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -280,7 +282,7 @@ def test_request_body_post_multiple_content_types_component_filtered record_test('request-bodies-post-multiple-content-types-component-filtered') obj = create_simple_object - res = @sdk.request_bodies.request_body_post_multiple_content_types_component_filtered(request=obj) + res = @sdk.request_bodies.request_body_post_multiple_content_types_component_filtered(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -292,19 +294,19 @@ def test_request_body_post_multiple_content_types_component_filtered def test_request_body_post_multiple_content_types_inline_filtered record_test('request-bodies-post-multiple-content-types-inline-filtered') - res = @sdk.request_bodies.request_body_post_multiple_content_types_inline_filtered(request=Operations::RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.new( - bool: true, - num: 1.1, - str_: 'test' - )) + res = @sdk.request_bodies.request_body_post_multiple_content_types_inline_filtered(Operations::RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.new( + bool: true, + num: 1.1, + str_: 'test' + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) assert_equal(res.res.json, { - "bool" => true, - "num" => 1.1, - "str" => 'test' + 'bool' => true, + 'num' => 1.1, + 'str' => 'test' }) end @@ -312,57 +314,57 @@ def test_request_body_post_multiple_content_types_inline_filtered def test_request_body_post_multiple_content_types_split_json record_test('request-bodies-post-multiple-content-types-split-json') - res = @sdk.request_bodies.request_body_post_multiple_content_types_split_json(request=Operations::RequestBodyPostMultipleContentTypesSplitApplicationJSON.new( - bool: true, - num: 1.1, - str_: 'test' - )) + res = @sdk.request_bodies.request_body_post_multiple_content_types_split_json(Operations::RequestBodyPostMultipleContentTypesSplitApplicationJSON.new( + bool: true, + num: 1.1, + str_: 'test' + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) assert_equal(res.res.json, { - "bool" => true, - "num" => 1.1, - "str" => 'test' + 'bool' => true, + 'num' => 1.1, + 'str' => 'test' }) end def test_request_body_post_multiple_content_types_split_multipart record_test('request-bodies-post-multiple-content-types-split-multipart') - res = @sdk.request_bodies.request_body_post_multiple_content_types_split_multipart(request=Operations::RequestBodyPostMultipleContentTypesSplitMultipartFormData.new( - bool2: true, - num2: 1.1, - str2: 'test' - )) + res = @sdk.request_bodies.request_body_post_multiple_content_types_split_multipart(Operations::RequestBodyPostMultipleContentTypesSplitMultipartFormData.new( + bool2: true, + num2: 1.1, + str2: 'test' + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) assert_equal(res.res.form, { - "bool2" => true, - "num2" => 1.1, - "str2" => 'test' + 'bool2' => true, + 'num2' => 1.1, + 'str2' => 'test' }) end def test_request_body_post_multiple_content_types_split_form record_test('request-bodies-post-multiple-content-types-split-form') - res = @sdk.request_bodies.request_body_post_multiple_content_types_split_form(request=Operations::RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.new( - bool3: true, - num3: 1.1, - str3: 'test' - )) + res = @sdk.request_bodies.request_body_post_multiple_content_types_split_form(Operations::RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.new( + bool3: true, + num3: 1.1, + str3: 'test' + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) assert_equal(res.res.form, { - "bool3" => true, - "num3" => 1.1, - "str3" => 'test' + 'bool3' => true, + 'num3' => 1.1, + 'str3' => 'test' }) end @@ -370,12 +372,12 @@ def test_request_body_post_multiple_content_types_split_json_param record_test('request-bodies-post-multiple-content-types-split-json-with-param') res = @sdk.request_bodies.request_body_post_multiple_content_types_split_param_json( - request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.new( + Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.new( bool: true, num: 1.1, str_: 'test body' ), - param_str='test param' + 'test param' ) refute_nil(res) @@ -385,8 +387,7 @@ def test_request_body_post_multiple_content_types_split_json_param 'bool' => true, 'num' => 1.1, 'str' => 'test body' - } - ) + }) assert_equal(res.res.args, {'paramStr' => 'test param'}) end @@ -395,12 +396,12 @@ def test_request_body_post_multiple_content_types_split_multipart_param record_test('request-bodies-post-multiple-content-types-split-multipart-with-param') res = @sdk.request_bodies.request_body_post_multiple_content_types_split_param_multipart( - request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.new( + Operations::RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.new( bool2: true, num2: 1.1, str2: 'test body' ), - param_str='test param' + 'test param' ) @@ -411,8 +412,7 @@ def test_request_body_post_multiple_content_types_split_multipart_param 'bool2' => true, 'num2' => 1.1, 'str2' => 'test body' - } - ) + }) assert_equal(res.res.args, {'paramStr' => 'test param'}) end @@ -421,19 +421,18 @@ def test_request_body_post_multiple_content_types_split_form_param record_test('request-bodies-post-multiple-content-types-split-form-with-param') res = @sdk.request_bodies.request_body_post_multiple_content_types_split_param_form( - request_body=Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.new( + Operations::RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.new( bool3: true, num3: 1.1, str3: 'test body' ), - param_str='test param' - ) + 'test param' + ) assert_equal(res.res.form, { 'bool3' => true, 'num3' => 1.1, 'str3' => 'test body' - } - ) + }) assert_equal(res.res.args, {'paramStr' => 'test param'}) end @@ -443,23 +442,23 @@ def test_request_body_put_multipart_simple obj = create_simple_object - res = @sdk.request_bodies.request_body_put_multipart_simple(request=obj) + res = @sdk.request_bodies.request_body_put_multipart_simple(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("any", res.res.form.any) - assert_equal("true", res.res.form.bool_opt) - assert_equal("true", res.res.form.bool) - assert_equal("2020-01-01T00:00:00.000000001Z", res.res.form.date_time) - assert_equal("2020-01-01", res.res.form.date) - assert_equal("one", res.res.form.enum) - assert_equal("1.1", res.res.form.float32) - assert_equal("1", res.res.form.int) - assert_equal("1", res.res.form.int32) - assert_equal("1.1", res.res.form.num) - assert_equal("testOptional", res.res.form.str_opt) - assert_equal("test", res.res.form.str_) + assert_equal('any', res.res.form.any) + assert_equal('true', res.res.form.bool_opt) + assert_equal('true', res.res.form.bool) + assert_equal('2020-01-01T00:00:00.000000001Z', res.res.form.date_time) + assert_equal('2020-01-01', res.res.form.date) + assert_equal('one', res.res.form.enum) + assert_equal('1.1', res.res.form.float32) + assert_equal('1', res.res.form.int) + assert_equal('1', res.res.form.int32) + assert_equal('1.1', res.res.form.num) + assert_equal('testOptional', res.res.form.str_opt) + assert_equal('test', res.res.form.str_) end def test_request_body_put_multipart_deep @@ -467,37 +466,36 @@ def test_request_body_put_multipart_deep obj = create_deep_object - res = @sdk.request_bodies.request_body_put_multipart_deep(request=obj) + res = @sdk.request_bodies.request_body_put_multipart_deep(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal(OpenApiSDK::Utils::marshal_json_complex(obj.arr), JSON.load(res.res.form.arr)) - assert_equal("true", res.res.form.bool) - assert_equal("1", res.res.form.int) - assert_equal(OpenApiSDK::Utils::marshal_json_complex(obj.map), JSON.load(res.res.form.map)) - assert_equal("1.1", res.res.form.num) - assert_equal(OpenApiSDK::Utils::marshal_json_complex(obj.obj), JSON.load(res.res.form.obj)) - assert_equal("test", res.res.form.str_) + assert_equal(OpenApiSDK::Utils.marshal_json_complex(obj.arr), JSON.parse(res.res.form.arr)) + assert_equal('true', res.res.form.bool) + assert_equal('1', res.res.form.int) + assert_equal(OpenApiSDK::Utils.marshal_json_complex(obj.map), JSON.parse(res.res.form.map)) + assert_equal('1.1', res.res.form.num) + assert_equal(OpenApiSDK::Utils.marshal_json_complex(obj.obj), JSON.parse(res.res.form.obj)) + assert_equal('test', res.res.form.str_) end def test_request_body_put_multipart_file record_test('request-bodies-put-multipart-file') - data = File.open("test/testdata/testUpload.json").read + data = File.open('test/testdata/testUpload.json').read - res = @sdk.request_bodies.request_body_put_multipart_file(request=Operations::RequestBodyPutMultipartFileRequestBody.new( - file: Operations::RequestBodyPutMultipartFileRequestBodyFile.new( - content: data, - file: "test/testdata/testUpload.json", - ) - ) - ) + res = @sdk.request_bodies.request_body_put_multipart_file(Operations::RequestBodyPutMultipartFileRequestBody.new( + file: Operations::RequestBodyPutMultipartFileRequestBodyFile.new( + content: data, + file: 'test/testdata/testUpload.json' + ) + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal({"file" => data.to_s}, res.res.files) + assert_equal({'file' => data.to_s}, res.res.files) end def test_request_body_post_form_simple @@ -505,23 +503,23 @@ def test_request_body_post_form_simple obj = create_simple_object - res = @sdk.request_bodies.request_body_post_form_simple(request=obj) + res = @sdk.request_bodies.request_body_post_form_simple(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal("any", res.res.form.any) - assert_equal("true", res.res.form.bool) - assert_equal("true", res.res.form.bool_opt) - assert_equal("2020-01-01", res.res.form.date) - assert_equal("2020-01-01T00:00:00.000000001Z", res.res.form.date_time) - assert_equal("one", res.res.form.enum) - assert_equal("1.1", res.res.form.float32) - assert_equal("1", res.res.form.int) - assert_equal("1", res.res.form.int32) - assert_equal("1.1", res.res.form.num) - assert_equal("test", res.res.form.str_) - assert_equal("testOptional", res.res.form.str_opt) + assert_equal('any', res.res.form.any) + assert_equal('true', res.res.form.bool) + assert_equal('true', res.res.form.bool_opt) + assert_equal('2020-01-01', res.res.form.date) + assert_equal('2020-01-01T00:00:00.000000001Z', res.res.form.date_time) + assert_equal('one', res.res.form.enum) + assert_equal('1.1', res.res.form.float32) + assert_equal('1', res.res.form.int) + assert_equal('1', res.res.form.int32) + assert_equal('1.1', res.res.form.num) + assert_equal('test', res.res.form.str_) + assert_equal('testOptional', res.res.form.str_opt) end @@ -530,18 +528,18 @@ def test_request_body_post_form_deep obj = create_deep_object - res = @sdk.request_bodies.request_body_post_form_deep(request=obj) + res = @sdk.request_bodies.request_body_post_form_deep(obj) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) - assert_equal(OpenApiSDK::Utils::marshal_json_complex(obj.arr), res.res.form.arr) - assert_equal("true", res.res.form.bool) - assert_equal("1", res.res.form.int) - assert_equal(OpenApiSDK::Utils::marshal_json_complex(obj.map), res.res.form.map) - assert_equal("1.1", res.res.form.num) - assert_equal(OpenApiSDK::Utils::marshal_json_complex(obj.obj), res.res.form.obj) - assert_equal("test", res.res.form.str_) + assert_equal(OpenApiSDK::Utils.marshal_json_complex(obj.arr), res.res.form.arr) + assert_equal('true', res.res.form.bool) + assert_equal('1', res.res.form.int) + assert_equal(OpenApiSDK::Utils.marshal_json_complex(obj.map), res.res.form.map) + assert_equal('1.1', res.res.form.num) + assert_equal(OpenApiSDK::Utils.marshal_json_complex(obj.obj), res.res.form.obj) + assert_equal('test', res.res.form.str_) end @@ -549,11 +547,11 @@ def test_request_body_post_form_map_primitive record_test('request-bodies-post-form-map-primitive') m = { - "key1" => "value1", - "key2" => "value2", - "key3" => "value3", + 'key1' => 'value1', + 'key2' => 'value2', + 'key3' => 'value3', } - res = @sdk.request_bodies.request_body_post_form_map_primitive(request=m) + res = @sdk.request_bodies.request_body_post_form_map_primitive(m) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) @@ -563,7 +561,7 @@ def test_request_body_post_form_map_primitive def test_request_body_put_string record_test('request-bodies-put-string') - str = "Hello World" + str = 'Hello World' res = @sdk.request_bodies.request_body_put_string(str) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -575,7 +573,7 @@ def test_request_body_put_string def test_request_body_put_bytes record_test('request-bodies-put-bytes') - data = File.open("test/testdata/testUpload.json").read + data = File.open('test/testdata/testUpload.json').read res = @sdk.request_bodies.request_body_put_bytes(data) refute_nil(res) @@ -588,36 +586,36 @@ def test_request_body_put_bytes def test_request_body_put_string_with_params record_test('request-bodies-put-string-with-params') - str = "Hello World" - res = @sdk.request_bodies.request_body_put_string_with_params(str, "test param") + str = 'Hello World' + res = @sdk.request_bodies.request_body_put_string_with_params(str, 'test param') refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) assert_equal(str, res.res.data) - assert_equal("test param", res.res.args.query_string_param) + assert_equal('test param', res.res.args.query_string_param) end def test_request_body_put_bytes_with_params record_test('request-bodies-put-bytes-with-params') - data = File.open("test/testdata/testUpload.json").read + data = File.open('test/testdata/testUpload.json').read - res = @sdk.request_bodies.request_body_put_bytes_with_params(data, "test param") + res = @sdk.request_bodies.request_body_put_bytes_with_params(data, 'test param') refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.res) assert_equal(data.to_s, res.res.data) - assert_equal("test param", res.res.args.query_string_param) + assert_equal('test param', res.res.args.query_string_param) end def test_request_body_post_empty_object record_test('request-bodies-post-empty-object') - res = @sdk.request_bodies.request_body_post_empty_object(request=Operations::RequestBodyPostEmptyObjectRequestBody.new( - empty: Operations::RequestBodyPostEmptyObjectRequestBodyEmpty.new(), - empty_with_empty_properties: Operations::RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.new(), - )) + res = @sdk.request_bodies.request_body_post_empty_object(Operations::RequestBodyPostEmptyObjectRequestBody.new( + empty: Operations::RequestBodyPostEmptyObjectRequestBodyEmpty.new, + empty_with_empty_properties: Operations::RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.new + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) end @@ -625,7 +623,7 @@ def test_request_body_post_empty_object def test_request_body_read_only_input record_test('request-bodies-read-only-input') - res = @sdk.request_bodies.request_body_read_only_input(request=Shared::ReadOnlyObjectInput.new()) + res = @sdk.request_bodies.request_body_read_only_input(Shared::ReadOnlyObjectInput.new) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.read_only_object) @@ -637,11 +635,11 @@ def test_request_body_read_only_input def test_request_body_write_only_output record_test('request-bodies-write-only-output') - res = @sdk.request_bodies.request_body_write_only_output(request=Shared::WriteOnlyObject.new( - bool: true, - num: 1.0, - string: 'hello', - )) + res = @sdk.request_bodies.request_body_write_only_output(Shared::WriteOnlyObject.new( + bool: true, + num: 1.0, + string: 'hello' + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.write_only_object) @@ -650,11 +648,11 @@ def test_request_body_write_only_output def test_request_body_write_only record_test('request-bodies-write-only') - res = @sdk.request_bodies.request_body_write_only(request=Shared::WriteOnlyObject.new( - bool: true, - num: 1.0, - string: 'hello', - )) + res = @sdk.request_bodies.request_body_write_only(Shared::WriteOnlyObject.new( + bool: true, + num: 1.0, + string: 'hello' + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.read_only_object) @@ -666,11 +664,11 @@ def test_request_body_write_only def test_request_body_read_and_write record_test('request-bodies-read-and-write') - res = @sdk.request_bodies.request_body_read_and_write(request=Shared::ReadWriteObjectInput.new( - num1: 1, - num2: 2, - num3: 4, - )) + res = @sdk.request_bodies.request_body_read_and_write(Shared::ReadWriteObjectInput.new( + num1: 1, + num2: 2, + num3: 4 + )) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.read_write_object) diff --git a/ruby-client-sdk/test/responsebodies_test.rb b/ruby-client-sdk/testprimary/responsebodies_test.rb similarity index 99% rename from ruby-client-sdk/test/responsebodies_test.rb rename to ruby-client-sdk/testprimary/responsebodies_test.rb index 38c322a63..dc7ac78db 100755 --- a/ruby-client-sdk/test/responsebodies_test.rb +++ b/ruby-client-sdk/testprimary/responsebodies_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' module OpenApiSDK @@ -51,6 +53,7 @@ def test_response_body_xml_get refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) refute_nil(res.xml) + assert_equal( "<?xml version='1.0' encoding='us-ascii'?>\n\n<!-- A SAMPLE set of slides -->\n\n<slideshow \n title=\"Sample Slide Show\"\n date=\"Date of publication\"\n author=\"Yours Truly\"\n >\n\n <!-- TITLE SLIDE -->\n <slide type=\"all\">\n <title>Wake up to WonderWidgets!\n \n\n \n \n Overview\n Why WonderWidgets are great\n \n Who buys WonderWidgets\n \n\n", res.xml ) diff --git a/ruby-client-sdk/test/servers_test.rb b/ruby-client-sdk/testprimary/servers_test.rb similarity index 77% rename from ruby-client-sdk/test/servers_test.rb rename to ruby-client-sdk/testprimary/servers_test.rb index ada1b82d5..a5c718a89 100755 --- a/ruby-client-sdk/test/servers_test.rb +++ b/ruby-client-sdk/testprimary/servers_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' @@ -13,7 +15,7 @@ def test_select_global_server refute_nil sdk - res = sdk.servers.select_global_server + res = sdk.servers.select_global_server refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -28,8 +30,8 @@ def test_select_global_server_broken error = nil begin res = sdk.servers.select_global_server - rescue => err - error = err + rescue Faraday::ConnectionFailed => e + error = e end refute_nil error @@ -44,7 +46,7 @@ def test_select_server_with_id_default refute_nil sdk - res = sdk.servers.select_server_with_id() + res = sdk.servers.select_server_with_id refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) end @@ -57,7 +59,7 @@ def test_select_server_with_id_valid refute_nil sdk - res = sdk.servers.select_server_with_id(server_url=Operations::SELECT_SERVER_WITH_ID_SERVERS[:SELECT_SERVER_WITH_ID_SERVER_VALID]) + res = sdk.servers.select_server_with_id(Operations::SELECT_SERVER_WITH_ID_SERVERS[:SELECT_SERVER_WITH_ID_SERVER_VALID]) refute_nil res assert_equal(Rack::Utils.status_code(:ok), res.status_code) @@ -72,8 +74,8 @@ def test_select_server_with_id_broken error = nil begin - res = sdk.servers.select_server_with_id(server_url=Operations::SELECT_SERVER_WITH_ID_SERVERS[:SELECT_SERVER_WITH_ID_SERVER_BROKEN]) - rescue => e + res = sdk.servers.select_server_with_id(Operations::SELECT_SERVER_WITH_ID_SERVERS[:SELECT_SERVER_WITH_ID_SERVER_BROKEN]) + rescue Faraday::ConnectionFailed => e error = e end refute_nil error @@ -83,7 +85,7 @@ def test_select_server_with_id_broken def test_server_with_templates_global record_test('servers-server-with-templates-global') - sdk = SDK.new(server_idx: 2, hostname: "localhost", port: "35123") + sdk = SDK.new(server_idx: 2, hostname: 'localhost', port: '35123') refute_nil sdk @@ -106,7 +108,7 @@ def test_server_with_templates_global_defaults def test_server_with_templates_global_enum record_test('servers-server-with-templates-global-enum') - sdk = SDK.new(server_idx:3, something: ServerSomething::SOMETHING_ELSE_AGAIN) + sdk = SDK.new(server_idx: 3, something: ServerSomething::SOMETHING_ELSE_AGAIN) res = sdk.servers.server_with_templates_global @@ -119,10 +121,15 @@ def test_server_with_templates sdk = SDK.new - res = sdk.servers.server_with_templates(server_url=Utils::template_url(Operations::SERVER_WITH_TEMPLATES_SERVERS[0], { - :hostname => "localhost", - :port => "35123" - })) + res = sdk.servers.server_with_templates( + Utils.template_url( + Operations::SERVER_WITH_TEMPLATES_SERVERS[0], + { + hostname: 'localhost', + port: '35123' + } + ) + ) refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) end @@ -143,7 +150,7 @@ def test_servers_by_id_with_templates sdk = SDK.new - res = sdk.servers.servers_by_id_with_templates() + res = sdk.servers.servers_by_id_with_templates refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) diff --git a/ruby-client-sdk/test/telemetry_test.rb b/ruby-client-sdk/testprimary/telemetry_test.rb similarity index 77% rename from ruby-client-sdk/test/telemetry_test.rb rename to ruby-client-sdk/testprimary/telemetry_test.rb index 06a94e1f1..7e0a0fc5d 100755 --- a/ruby-client-sdk/test/telemetry_test.rb +++ b/ruby-client-sdk/testprimary/telemetry_test.rb @@ -1,5 +1,7 @@ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +# frozen_string_literal: true + require_relative '../lib/openapi' require 'rack' module OpenApiSDK @@ -11,11 +13,11 @@ def setup def test_telemetry_user_agent_get record_test('telemetry-user-agent-get') - res = @sdk.telemetry.telemetry_user_agent_get() + res = @sdk.telemetry.telemetry_user_agent_get - refute_nil(res) + refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) - assert_equal('speakeasy-sdk/ruby 1.35.3 2.148.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) + assert_equal('speakeasy-sdk/ruby 1.36.0 2.171.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) end @@ -26,10 +28,10 @@ def test_telemetry_speakeasy_user_agent_get res = @sdk.telemetry.telemetry_speakeasy_user_agent_get(user_agent) - refute_nil(res) + refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) assert_equal(user_agent, res.res.headers['User-Agent']) - assert_equal('speakeasy-sdk/ruby 1.35.3 2.148.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) + assert_equal('speakeasy-sdk/ruby 1.36.0 2.171.0 0.1.0 openapi', res.res.headers['X-Speakeasy-User-Agent']) end end diff --git a/ruby-client-sdk/test/testdata/testUpload.json b/ruby-client-sdk/testprimary/testdata/testUpload.json similarity index 100% rename from ruby-client-sdk/test/testdata/testUpload.json rename to ruby-client-sdk/testprimary/testdata/testUpload.json diff --git a/ruby-client-sdk/testsimple_security/auth_test.rb b/ruby-client-sdk/testsimple_security/auth_test.rb new file mode 100755 index 000000000..8fc25e832 --- /dev/null +++ b/ruby-client-sdk/testsimple_security/auth_test.rb @@ -0,0 +1,13 @@ +# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +# frozen_string_literal: true + +require_relative '../lib/openapi' + +module OpenApiSDK + class TestAuth < Minitest::Test + def setup + @sdk = OpenApiSDK::SDK.new + end + end +end diff --git a/swift-client-sdk/.gitattributes b/swift-client-sdk/.gitattributes new file mode 100755 index 000000000..7dfb4f1f9 --- /dev/null +++ b/swift-client-sdk/.gitattributes @@ -0,0 +1,2 @@ +# This allows generated code to be indexed correctly +*.swift linguist-generated=false \ No newline at end of file diff --git a/swift-client-sdk/.gitignore b/swift-client-sdk/.gitignore new file mode 100755 index 000000000..3b2981208 --- /dev/null +++ b/swift-client-sdk/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/swift-client-sdk/Package.swift b/swift-client-sdk/Package.swift new file mode 100755 index 000000000..af2c4b939 --- /dev/null +++ b/swift-client-sdk/Package.swift @@ -0,0 +1,26 @@ +// swift-tools-version: 5.6 +import PackageDescription + +let package = Package( + name: "OpenAPI", + platforms: [ + .iOS(.v13) + ], + products: [ + .library( + name: "OpenAPI", + targets: ["OpenAPI"] + ) + ], + dependencies: [], + targets: [ + .target( + name: "OpenAPI", + dependencies: [] + ), + .testTarget( + name: "OpenAPITests", + dependencies: ["OpenAPI"] + ) + ] +) diff --git a/swift-client-sdk/README.md b/swift-client-sdk/README.md new file mode 100755 index 000000000..67418f0c2 --- /dev/null +++ b/swift-client-sdk/README.md @@ -0,0 +1,301 @@ +# OpenAPI + + +![Platform](https://img.shields.io/badge/Platform-iOS-lightgray) +![Swift Version](https://img.shields.io/badge/Swift-5.6-orange.svg) + +Some test description. +About our test document. + +## Requirements + +The SDK supports iOS 13 and later. + + +## 🏗 **Welcome to your new SDK!** 🏗 + +It has been generated successfully based on your OpenAPI spec. However, it is not yet ready for production use. Here are some next steps: +- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasyapi.dev/docs/customize-sdks) +- [ ] ♻️ Refine your SDK quickly by iterating locally with the [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) +- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/productionize-sdks/publish-sdks) +- [ ] ✨ When ready to productionize, delete this section from the README + +# Installation + +## Swift Package Manager + +You can add `OpenAPI` to your project directly in Xcode `(File > Add Packages...)` or by adding it to your project's Package.swift file: + +```bash +dependencies: [ + .package(url: "", .upToNextMajor(from: "0.1.0")) +] +``` + + + +## SDK Example Usage + + + +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.generation.getGlobalNameOverride() + +switch response.data { +case .getGlobalNameOverride200ApplicationJSONObject(let getGlobalNameOverride200ApplicationJSONObject): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + + +# Second +Do this second +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.generation.usageExamplePost( + request: Operations.UsageExamplePostRequest( + bigintParameter: 168827, + bigintStrParameter: "string", + boolParameter: false, + dateParameter: Date(), + dateTimeDefaultParameter: Date(), + dateTimeParameter: Date(), + decimalParameter: 2679.33, + decimalStrParameter: "string", + doubleParameter: 5223.72, + enumParameter: .value1, + falseyNumberParameter: 0, + float32Parameter: 6946.59, + floatParameter: 2286.22, + int64Parameter: 102975, + intParameter: 566999, + strParameter: "example 1", + bigintParameterOptional: 569663, + bigintStrParameterOptional: "string", + decimalParameterOptional: 2642.95, + decimalStrParameterOptional: "string", + optEnumParameter: .value3, + requestBody: Operations.UsageExamplePostRequestBody( + fakerFormattedStrings: Shared.FakerFormattedStrings( + addressFormat: "4470 Bennett Forest", + directoryFormat: "/lib", + domainFormat: "ornate-courthouse.org", + emailFormat: "Sofia_Gulgowski29@yahoo.com", + filenameFormat: "southwest.mp2a", + filepathFormat: "/usr/green_target.z4", + imageFormat: "https://loremflickr.com/640/480", + ipv4Format: "116.31.181.178", + ipv6Format: "73ac:9ee2:348d:76c3:164a:258b:e7e1:3586", + jsonFormat: "{key: 42822, key1: null, key2: \"string\"}", + macFormat: "7d:ac:95:a0:15:23", + passwordFormat: "eWzdveK0sHokC9n", + phoneFormat: "1-340-562-2122 x175", + timezoneFormat: "Asia/Yekaterinburg", + unknownFormat: "string", + urlFormat: "https://wilted-cytoplasm.biz", + uuidFormat: "e0f62de2-e2d4-47a9-bf10-0f753b9b364b", + zipcodeFormat: "73625" + ), + fakerStrings: Shared.FakerStrings( + account: "68772663", + address: "192 Lind Route", + amount: "654.25", + avatar: "https://loremflickr.com/640/480", + city: "Ashleytown", + color: "turquoise", + comment: "Andy shoes are designed to keeping in mind durability as well as trends, the most stylish range of shoes & sandals", + company: "Schultz, Schaefer and Will", + country: "Venezuela", + countryCode: "PT", + currency: "Hryvnia", + datatype: "datetime", + `default`: "string", + description: "Profit-focused systematic initiative", + directory: "/etc/periodic", + domainName: "shimmering-cloudburst.com", + emailAddr: "Monserrat_Dare8@yahoo.com", + `extension`: "jpg", + filename: "malawi.mpg4", + filepath: "/srv/androgyne_forge.sql", + filetype: "image", + firstName: "Sven", + fullName: "Nathan Mosciski", + gender: "Male to female transsexual woman", + iban: "AZ39AEBC00680065007140036325", + id: "", + iPv4: "39.115.3.112", + iPv6: "4e65:3f13:113d:0305:fb1e:2e9e:e6a2:42a1", + job: "International Metrics Administrator", + json: "{key: 91937, key1: null, key2: \"string\"}", + key: "", + lastName: "Bergnaum", + latitude: "16.9358", + locale: "ar", + longitude: "-80.3158", + mac: "55:a8:ca:17:df:8f", + manufacturer: "Smart", + material: "Metal", + middleName: "Greer", + model: "Fortwo", + password: "8AXYBy71wIwgEZJ", + phone: "1-960-553-5269 x5671", + pin: "2662", + postalCode: "70476", + price: "100.00", + product: "Awesome Fresh Table", + sex: "female", + street: "Penelope Terrace", + timezone: "Australia/Hobart", + unit: "degree Celsius", + url: "http://absolute-barbecue.org", + username: "Casimer17", + uuid: "1b7b6969-fc72-49e9-b1c7-ed9281fd55b6" + ), + simpleObject: Shared.SimpleObject( + any: AnyValue("any"), + bool: true, + date: Date(), + dateTime: Date(), + `enum`: .one, + float32: 1.1, + int: 1, + int32: 1, + int32Enum: .oneHundredAndEightyOne, + intEnum: .second, + num: 1.1, + str: "test", + bigint: 8821239038968084, + bigintStr: "9223372036854775808", + boolOpt: true, + decimal: 3.141592653589793, + decimalStr: "3.14159265358979344719667586", + intOptNull: 69000, + numOptNull: 4369.7, + strOpt: "testOptional" + ) + ) + ), + security: Operations.UsageExamplePostSecurity(username: "YOUR_USERNAME", password: "YOUR_PASSWORD") +) + +switch response.data { +case .usageExamplePost200ApplicationJSONObject(let usageExamplePost200ApplicationJSONObject): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + + + + + + + + + + + + + + +# Global Parameters + +Certain parameters are configured globally. These parameters must be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. + +For example, you can set `globalPathParam` to `100` at SDK initialization and then you do not have to pass the same value on calls to operations like `globalPathParameterGet`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. + + +## Available Globals + +The following global parameters are available. The required parameters must be set when you initialize the SDK client. + +| Name | Type | Required | Description | +| ---- | ---- |:--------:| ----------- | +| globalPathParam | Int | ✔️ | The globalPathParam parameter. | +| globalQueryParam | String | ✔️ | The globalQueryParam parameter. | + + + +## Example #1 + +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.globals.globalPathParameterGet( + request: Operations.GlobalPathParameterGetRequest() +) + +switch response.data { +case .res(let res): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + + +## Example #2 + +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.globals.globalsQueryParameterGet( + request: Operations.GlobalsQueryParameterGetRequest() +) + +switch response.data { +case .res(let res): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + + + + + +# Development + +## Maturity + +This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage +to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally +looking for the latest version. + +## Contributions + +While we value open-source contributions to this SDK, this library is generated programmatically. +Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release! + +### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/swift-client-sdk/Sources/OpenAPI/AnyValue.swift b/swift-client-sdk/Sources/OpenAPI/AnyValue.swift new file mode 100755 index 000000000..253e4deba --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/AnyValue.swift @@ -0,0 +1,220 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +/// A type that describes any value that can be used in a request or response object. +public protocol APIValue {} + +extension NSNull: APIValue {} +extension String: APIValue {} +extension Int: APIValue {} +extension Double: APIValue {} +extension Bool: APIValue {} +extension Optional: APIValue where Wrapped: APIValue {} +extension Array: APIValue where Element: APIValue {} +extension Dictionary: APIValue where Key == String, Value: APIValue {} + +enum APIValueConversionError: Error { + case invalidType +} + +/// A type-erased wrapper for passing around ``APIValue`` values. +public struct AnyValue: Codable { + // This is a type-erased wrapper which allows us to store Serializable values in collections, as well as handle + // JSON encoding and decoding. + + private var _serialize: (_ format: SerializableFormat) throws -> String + private var _serializeQueryParameters: (_ format: SerializableFormat) throws -> [QueryParameter] + private var _description: () -> String + private var _serializable: () -> any Serializable + + init(serializable: Serializable) { + _serialize = { format in try serializable.serialize(with: format) } + _serializeQueryParameters = { format in try serializable.serializeQueryParameters(with: format) } + _serializable = { return serializable } + _description = { + if let serializable = serializable as? CustomStringConvertible { + return serializable.description + } else { + return String(describing: serializable) + } + } + } + + /// Creates an object from an `NSNull` value + public init(_ null: NSNull) { + self.init(serializable: null) + } + + /// Creates an object from a string value + public init(_ string: String) { + self.init(serializable: string) + } + + /// Creates an object from an integer value + public init(_ int: Int) { + self.init(serializable: int) + } + + /// Creates an object from a double value + public init(_ double: Double) { + self.init(serializable: double) + } + + /// Creates an object from a boolean value + public init(_ bool: Bool) { + self.init(serializable: bool) + } + + /// Creates an object from any ``APIValue`` value + public init(_ value: APIValue) throws { + guard let serializable = value as? Serializable else { + throw APIValueConversionError.invalidType + } + self.init(serializable: serializable) + } + + /// Creates an object from an optional value + public init(_ optional: Optional) throws { + guard let serializable = optional as? Serializable else { + throw APIValueConversionError.invalidType + } + self.init(serializable: serializable) + } + + /// Creates an object from an array value + public init(_ array: Array) throws { + guard let serializable = array as? Serializable else { + throw APIValueConversionError.invalidType + } + self.init(serializable: serializable) + } + + /// Creates an object from a dictionary value + public init(_ dictionary: Dictionary) throws { + guard let serializable = dictionary as? Serializable else { + throw APIValueConversionError.invalidType + } + self.init(serializable: serializable) + } + + // MARK: - Codable + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + + if container.decodeNil() { + self.init(serializable: NSNull()) + } else if let boolValue = try? container.decode(Bool.self) { + self.init(serializable: boolValue) + } else if let intValue = try? container.decode(Int.self) { + self.init(serializable: intValue) + } else if let doubleValue = try? container.decode(Double.self) { + self.init(serializable: doubleValue) + } else if let stringValue = try? container.decode(String.self) { + self.init(serializable: stringValue) + } else if let arrayValue = try? container.decode([AnyValue].self) { + self.init(serializable: arrayValue) + } else if let dictionaryValue = try? container.decode([String: AnyValue].self) { + self.init(serializable: dictionaryValue) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Unsupported value in container. Is this valid JSON?" + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + let value = _serializable() + + if value is NSNull { + try container.encodeNil() + } else if let boolValue = value as? Bool { + try container.encode(boolValue) + } else if let intValue = value as? Int { + try container.encode(intValue) + } else if let doubleValue = value as? Double { + try container.encode(doubleValue) + } else if let stringValue = value as? String { + try container.encode(stringValue) + } else if let arrayValue = value as? [AnyValue] { + try container.encode(arrayValue) + } else if let dictionaryValue = value as? [String: AnyValue] { + try container.encode(dictionaryValue) + } else if let encodableValue = value as? Encodable { + try container.encode(encodableValue) + } else { + let context = EncodingError.Context(codingPath: container.codingPath, debugDescription: "Cannot encode value") + throw EncodingError.invalidValue(value, context) + } + } +} + +// MARK: - Serializable + +extension AnyValue: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try _serialize(format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try _serializeQueryParameters(format) + } +} + +// MARK: - Helpers + +extension AnyValue { + subscript(key: String) -> AnyValue? { + if let serializable = _serializable() as? [String: Serializable], let value = serializable[key] { + return AnyValue(serializable: value) + } else { + return nil + } + } + + func `as`(type: T.Type) -> T? { + return _serializable() as? T + } + + func asArray(elementType: T.Type) -> [T]? { + guard let array = _serializable() as? [AnyValue] else { return nil } + var result: [T] = [] + for element in array { + guard let element = element.as(type: T.self) else { return nil } + result.append(element) + } + return result + } +} + +// MARK: - Equatable + +extension AnyValue: Equatable { + public static func == (lhs: AnyValue, rhs: AnyValue) -> Bool { + let lhsValue = lhs._serializable() + let rhsValue = rhs._serializable() + + switch (lhsValue, rhsValue) { + case is (NSNull, NSNull): return true + case let (lhsValue as Bool, rhsValue as Bool): return lhsValue == rhsValue + case let (lhsValue as Int, rhsValue as Int): return lhsValue == rhsValue + case let (lhsValue as Double, rhsValue as Double): return lhsValue == rhsValue + case let (lhsValue as String, rhsValue as String): return lhsValue == rhsValue + case let (lhsValue as [AnyValue], rhsValue as [AnyValue]): return lhsValue == rhsValue + case let (lhsValue as [String: AnyValue], rhsValue as [String: AnyValue]): return lhsValue == rhsValue + default: + return false + } + } +} + +// MARK: - CustomStringConvertible + +extension AnyValue: CustomStringConvertible { + public var description: String { + return _description() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/Client.swift b/swift-client-sdk/Sources/OpenAPI/Client.swift new file mode 100755 index 000000000..fd4bf2d9f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/Client.swift @@ -0,0 +1,238 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation +#if os(Linux) +import FoundationNetworking +#endif + +/// An object used to make API calls. +/// +/// ``Client`` is the main object that you interact with to communicate with the API, and is responsible for making the underlying HTTP requests for each API operation and handling the resulting responses. It implements the ``OpenAPI`` protocol to support the available API operations. +/// +/// ### API calls +/// +/// Each API endpoint (or *operation*) is exposed as a method. For instance, the 'basicAuth' operation is exposed as: +/// +/// ```swift +/// func basicAuth(request: Operations.BasicAuthRequest, security: Operations.BasicAuthSecurity) async throws -> Response +/// ``` +/// +/// ### Request and response objects +/// +/// If an API operation has input parameters, the corresponding API method takes a `request` object, describing these parameters. The request object can either be a primitive value like a `String` or `[String]`, or a Swift `struct` describing the parameters. +/// +/// Each API method also returns a ``Response`` object, which provides information about the result of making the API request. It is generic and parameterised by the resulting data — stored in the ``Response/data`` property — which is determined by each API operation. +/// +/// The ``Response/data`` property defined by each API operation is an enum, and you can `switch` on this value to extract the corresponding value from the response. For example, the 'basicAuth' operation returns a ``Operations/BasicAuthResponse`` value: +/// +/// ```swift +/// let response: Response = ... // Response from API call +/// switch response.data { +/// case .user(let user): +/// // Handle response +/// case .empty: +/// // Handle empty response +/// } +/// ``` +/// +/// In addition to any data returned by a given API operation, each ``Response`` value contains information about the network request, including: +/// - The `contentType` returned by the server. +/// - The `statusCode` representing the HTTP status code returned by making the request +/// - A `httpResponse` value which is the raw [HTTPURLResponse](https://developer.apple.com/documentation/foundation/httpurlresponse) returned from making the underlying network request. +/// +/// These values can be used to debug and/or react to responses returned from executing a given API operation. +/// +/// ### Authentication +/// +/// Calls to the API must be authenticated, and ``Client`` must be initialized with a configured ``Shared/Security`` object to authenticate requests. +/// +/// ### Server overrides +/// +/// By default, API calls are made to `http://localhost:35123`. This can be configured using the ``use(server:)`` method, passing a ``GlobalServers`` value. +/// +/// ## Topics +/// +/// ### Initializers +/// +/// - ``init(globalParameters:security:)`` +/// +/// ### Configuration +/// +/// - ``use(server:)`` +/// +/// ### API calls +/// +/// These methods allow you to make requests to the API. +/// +/// - ``putAnythingIgnoredGeneration(request:)`` +/// - ``responseBodyJsonGet()`` +/// +/// ### Scoped API calls +/// +/// These properties logically group other parts of the API. +/// +/// - ``auth`` +/// - ``authNew`` +/// - ``documentation`` +/// - ``errors`` +/// - ``first`` +/// - ``flattening`` +/// - ``generation`` +/// - ``globals`` +/// - ``nestFirst`` +/// - ``nested`` +/// - ``nestedFirst`` +/// - ``nestedSecond`` +/// - ``pagination`` +/// - ``parameters`` +/// - ``requestBodies`` +/// - ``resource`` +/// - ``responseBodies`` +/// - ``retries`` +/// - ``second`` +/// - ``servers`` +/// - ``telemetry`` +/// - ``unions`` +/// +public final class Client { + internal struct APIResponse { + let httpResponse: HTTPURLResponse + let data: Data? + } + + internal typealias ConfigureURLRequest = (_ configuration: URLRequestConfiguration) throws -> Void + internal typealias ResponseHandler = (_ apiResponse: APIResponse) throws -> ResponseObject + + private lazy var session = URLSession(configuration: .default) + private var globalParameters: GlobalParameters? + private var security: Shared.Security + + private var selectedServer: GlobalServers? + + /// Creates an API client object with the specified parameters. + public init(globalParameters: GlobalParameters? = nil, security: Shared.Security) { + self.globalParameters = globalParameters + self.security = security + } + + // MARK: - Configuration + + /// Override the default server used when making connections to the API. + /// + /// By default, API calls are made to `http://localhost:35123`. Pass one of the values from the ``GlobalServers`` enumeration to override this. + public func use(server: GlobalServers?) { + selectedServer = server + } + + // MARK: - Internal + + internal func makeRequest( + with server: Server? = nil, + configureRequest: @escaping ConfigureURLRequest, + handleResponse responseHandler: @escaping ResponseHandler + ) async throws -> ResponseType where ResponseType.T == ResponseObject { + return try await withCheckedThrowingContinuation { continuation in + _makeRequest(with: server, configureRequest: configureRequest) { result in + do { + let apiResponse = try result.get() + let responseObject = try responseHandler(apiResponse) + continuation.resume(returning: ResponseType(httpResponse: apiResponse.httpResponse, data: responseObject)) + } catch let error as ServerConversionError { + switch error { + case .internal: + continuation.resume(throwing: OpenAPIError.internalError(error: nil)) + case .missingDefaultServer(let serverType): + continuation.resume(throwing: OpenAPIError.failedToConstructRequestURL(.missingDefaultServer(serverType: serverType))) + case .invalidServerIndex(let serverType, let index): + continuation.resume(throwing: OpenAPIError.failedToConstructRequestURL(.invalidServerIndex(serverType: serverType, index: index))) + case .missingServerParameterSubstitutionKey(let key, let serverString): + continuation.resume(throwing: OpenAPIError.failedToSerializeRequestParameters(.missingServerParameterSubstitutionKey(key, serverString: serverString))) + } + } catch let error as URLRequestBuilderError { + switch error { + case .internalError: + continuation.resume(throwing: OpenAPIError.internalError(error: nil)) + case .invalidURL(let urlString): + continuation.resume(throwing: OpenAPIError.failedToConstructRequestURL(.invalidRequestURL(string: urlString))) + case .missingPathParameterSubstitutionKey(let key, let path): + continuation.resume(throwing: OpenAPIError.failedToSerializeRequestParameters(.missingPathParameterSubstitutionKey(key, path: path))) + } + } catch let error as SerializationError { + switch error { + case .failedToSerializeData: + continuation.resume(throwing: OpenAPIError.failedToSerializeRequestParameters(.failedToSerializeData)) + case .missingRequiredRequestBody: + continuation.resume(throwing: OpenAPIError.failedToConstructRequest(.missingRequiredRequestBody)) + case .invalidSerializationParameter(let type, let format): + continuation.resume(throwing: OpenAPIError.failedToSerializeRequestParameters(.invalidSerializationParameter(type: type, format: format))) + } + } catch let error as ResponseHandlerError { + switch error { + case .failedToDecodeResponse: + continuation.resume(throwing: OpenAPIError.failedToHandleResponse(.failedToDecodeResponse)) + case .failedToDecodeJSON(let error): + continuation.resume(throwing: OpenAPIError.failedToHandleResponse(.failedToDeserializeJSON(error))) + } + } catch let error as OpenAPIError { + continuation.resume(throwing: error) + } catch { + continuation.resume(throwing: OpenAPIError.internalError(error: error)) + } + } + } + } + + internal func _makeRequest( + with server: Server? = nil, + configureRequest: ConfigureURLRequest, + completion: @escaping (Result) -> Void + ) { + do { + let builder = URLRequestBuilder( + baseURL: try baseURL(serverOverride: server), + parameterDefaults: globalParameters, + defaultSecurityParameterProviding: security + ) + try configureRequest(builder) + return makeDataRequest(with: try builder.build(), completion: completion) + } catch { + completion(.failure(error)) + } + } + + // MARK: - Private + + private func baseURL(serverOverride: Server? = nil) throws -> URL { + let server: Server + if let serverOverride { + server = serverOverride + } else if let selectedServer { + server = try selectedServer.server() + } else { + server = try GlobalServers.default() + } + + guard let url = URL(string: server.urlString) else { + throw OpenAPIError.failedToConstructRequestURL(.invalidServerURL(string: server.urlString)) + } + return url + } + + private func makeDataRequest(with urlRequest: URLRequest, completion: @escaping (Result) -> Void) { + let task = session.dataTask(with: urlRequest) { data, response, error in + if let error { + completion(.failure(OpenAPIError.failedToMakeNetworkRequest(error: error))) + } else if let httpResponse = response as? HTTPURLResponse { + completion(.success(APIResponse(httpResponse: httpResponse, data: data))) + } else { + completion(.failure(OpenAPIError.internalError(error: nil))) + } + } + task.resume() + } +} + +enum ResponseHandlerError: Swift.Error { + case failedToDecodeJSON(_ error: Swift.Error) + case failedToDecodeResponse +} diff --git a/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md b/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md new file mode 100755 index 000000000..507faa02f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/OpenAPI.docc/OpenAPI.md @@ -0,0 +1,882 @@ +# ``OpenAPI`` + +Some test description. +About our test document. + +`OpenAPI` is a Swift library which provides functionality for making requests to the API using a modern, easy-to-use Swift API: + + +## [object Object] #1 + +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.generation.getGlobalNameOverride() + +switch response.data { +case .getGlobalNameOverride200ApplicationJSONObject(let getGlobalNameOverride200ApplicationJSONObject): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + + +## Second +Do this second +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.generation.usageExamplePost( + request: Operations.UsageExamplePostRequest( + bigintParameter: 168827, + bigintStrParameter: "string", + boolParameter: false, + dateParameter: Date(), + dateTimeDefaultParameter: Date(), + dateTimeParameter: Date(), + decimalParameter: 2679.33, + decimalStrParameter: "string", + doubleParameter: 5223.72, + enumParameter: .value1, + falseyNumberParameter: 0, + float32Parameter: 6946.59, + floatParameter: 2286.22, + int64Parameter: 102975, + intParameter: 566999, + strParameter: "example 1", + bigintParameterOptional: 569663, + bigintStrParameterOptional: "string", + decimalParameterOptional: 2642.95, + decimalStrParameterOptional: "string", + optEnumParameter: .value3, + requestBody: Operations.UsageExamplePostRequestBody( + fakerFormattedStrings: Shared.FakerFormattedStrings( + addressFormat: "4470 Bennett Forest", + directoryFormat: "/lib", + domainFormat: "ornate-courthouse.org", + emailFormat: "Sofia_Gulgowski29@yahoo.com", + filenameFormat: "southwest.mp2a", + filepathFormat: "/usr/green_target.z4", + imageFormat: "https://loremflickr.com/640/480", + ipv4Format: "116.31.181.178", + ipv6Format: "73ac:9ee2:348d:76c3:164a:258b:e7e1:3586", + jsonFormat: "{key: 42822, key1: null, key2: \"string\"}", + macFormat: "7d:ac:95:a0:15:23", + passwordFormat: "eWzdveK0sHokC9n", + phoneFormat: "1-340-562-2122 x175", + timezoneFormat: "Asia/Yekaterinburg", + unknownFormat: "string", + urlFormat: "https://wilted-cytoplasm.biz", + uuidFormat: "e0f62de2-e2d4-47a9-bf10-0f753b9b364b", + zipcodeFormat: "73625" + ), + fakerStrings: Shared.FakerStrings( + account: "68772663", + address: "192 Lind Route", + amount: "654.25", + avatar: "https://loremflickr.com/640/480", + city: "Ashleytown", + color: "turquoise", + comment: "Andy shoes are designed to keeping in mind durability as well as trends, the most stylish range of shoes & sandals", + company: "Schultz, Schaefer and Will", + country: "Venezuela", + countryCode: "PT", + currency: "Hryvnia", + datatype: "datetime", + `default`: "string", + description: "Profit-focused systematic initiative", + directory: "/etc/periodic", + domainName: "shimmering-cloudburst.com", + emailAddr: "Monserrat_Dare8@yahoo.com", + `extension`: "jpg", + filename: "malawi.mpg4", + filepath: "/srv/androgyne_forge.sql", + filetype: "image", + firstName: "Sven", + fullName: "Nathan Mosciski", + gender: "Male to female transsexual woman", + iban: "AZ39AEBC00680065007140036325", + id: "", + iPv4: "39.115.3.112", + iPv6: "4e65:3f13:113d:0305:fb1e:2e9e:e6a2:42a1", + job: "International Metrics Administrator", + json: "{key: 91937, key1: null, key2: \"string\"}", + key: "", + lastName: "Bergnaum", + latitude: "16.9358", + locale: "ar", + longitude: "-80.3158", + mac: "55:a8:ca:17:df:8f", + manufacturer: "Smart", + material: "Metal", + middleName: "Greer", + model: "Fortwo", + password: "8AXYBy71wIwgEZJ", + phone: "1-960-553-5269 x5671", + pin: "2662", + postalCode: "70476", + price: "100.00", + product: "Awesome Fresh Table", + sex: "female", + street: "Penelope Terrace", + timezone: "Australia/Hobart", + unit: "degree Celsius", + url: "http://absolute-barbecue.org", + username: "Casimer17", + uuid: "1b7b6969-fc72-49e9-b1c7-ed9281fd55b6" + ), + simpleObject: Shared.SimpleObject( + any: AnyValue("any"), + bool: true, + date: Date(), + dateTime: Date(), + `enum`: .one, + float32: 1.1, + int: 1, + int32: 1, + int32Enum: .oneHundredAndEightyOne, + intEnum: .second, + num: 1.1, + str: "test", + bigint: 8821239038968084, + bigintStr: "9223372036854775808", + boolOpt: true, + decimal: 3.141592653589793, + decimalStr: "3.14159265358979344719667586", + intOptNull: 69000, + numOptNull: 4369.7, + strOpt: "testOptional" + ) + ) + ), + security: Operations.UsageExamplePostSecurity(username: "YOUR_USERNAME", password: "YOUR_PASSWORD") +) + +switch response.data { +case .usageExamplePost200ApplicationJSONObject(let usageExamplePost200ApplicationJSONObject): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + +### Getting started +- ``OpenAPI`` defines the available API operations, including operations which are logically grouped by name (for example under ``OpenAPI/auth``). +- ``Client`` is the main object used when making requests to the API, and implements ``OpenAPI`` to provide this functionality. Each available API method is exposed as an `async` function, which you can call and `await` its response and handle any errors that are thrown. +- API methods that require input data take a *request object* describing these parameters, and each method returns a *response object* containing information about the response. You can read more about these in . +- Requests to the API must be authenticated. You can provide authentication credentials by initializing ``Client`` with a ``Shared/Security`` value. +- If an error occurs when making a request to the API, a ``OpenAPIError`` error is thrown with more information about what went wrong. + +## Topics + +### Connecting to the API + +- ``Client`` +- ``GlobalServers`` +- ``GlobalParameters`` +- ``Shared/Security`` +- ``Response`` +- ``ResponseWithHeaders`` +- ``ResponseFields`` +- ``ResponseHeaders`` +- ``OpenAPIError`` + +### API operations + +- ``OpenAPI/OpenAPI`` +- ``AuthAPI`` +- ``AuthNewAPI`` +- ``DocumentationAPI`` +- ``ErrorsAPI`` +- ``FirstAPI`` +- ``FlatteningAPI`` +- ``GenerationAPI`` +- ``GlobalsAPI`` +- ``NestFirstAPI`` +- ``NestedAPI`` +- ``NestedFirstAPI`` +- ``NestedSecondAPI`` +- ``PaginationAPI`` +- ``ParametersAPI`` +- ``RequestBodiesAPI`` +- ``ResourceAPI`` +- ``ResponseBodiesAPI`` +- ``RetriesAPI`` +- ``SecondAPI`` +- ``ServersAPI`` +- ``TelemetryAPI`` +- ``UnionsAPI`` + +### Security configuration +- ``Operations/ApiKeyAuthSecurity`` +- ``Operations/BasicAuthSecurity`` +- ``Operations/BearerAuthSecurity`` +- ``Operations/Oauth2AuthSecurity`` +- ``Operations/Oauth2OverrideSecurity`` +- ``Operations/OpenIdConnectAuthSecurity`` +- ``Operations/BasicAuthNewSecurity`` +- ``Operations/MultipleMixedOptionsAuthSecurity`` +- ``Operations/MultipleMixedSchemeAuthSecurity`` +- ``Operations/MultipleOptionsWithMixedSchemesAuthSecurity`` +- ``Operations/MultipleOptionsWithSimpleSchemesAuthSecurity`` +- ``Operations/MultipleSimpleOptionsAuthSecurity`` +- ``Operations/MultipleSimpleSchemeAuthSecurity`` +- ``Operations/Oauth2AuthNewSecurity`` +- ``Operations/OpenIdConnectAuthNewSecurity`` +- ``Operations/UsageExamplePostSecurity`` + +### Server configuration +- ``AuthNewServers/ApiKeyAuthGlobalNew`` +- ``AuthNewServers/AuthGlobal`` +- ``AuthNewServers/BasicAuthNew`` +- ``AuthNewServers/MultipleMixedOptionsAuth`` +- ``AuthNewServers/MultipleMixedSchemeAuth`` +- ``AuthNewServers/MultipleOptionsWithMixedSchemesAuth`` +- ``AuthNewServers/MultipleOptionsWithSimpleSchemesAuth`` +- ``AuthNewServers/MultipleSimpleOptionsAuth`` +- ``AuthNewServers/MultipleSimpleSchemeAuth`` +- ``AuthNewServers/Oauth2AuthNew`` +- ``AuthNewServers/OpenIdConnectAuthNew`` +- ``ErrorsServers/ConnectionErrorGet`` +- ``ErrorsServers/StatusGetXSpeakeasyErrors`` +- ``PaginationServers/PaginationCursorBody`` +- ``PaginationServers/PaginationCursorParams`` +- ``PaginationServers/PaginationLimitOffsetOffsetBody`` +- ``PaginationServers/PaginationLimitOffsetOffsetParams`` +- ``PaginationServers/PaginationLimitOffsetPageBody`` +- ``PaginationServers/PaginationLimitOffsetPageParams`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArray`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayCamelCase`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayOfArray`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayOfArrayCamelCase`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayOfMap`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayOfMapCamelCase`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonArrayOfPrimitive`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMap`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapCamelCase`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapOfArray`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapOfArrayCamelCase`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapOfMap`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapOfMapCamelCase`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapOfMapOfPrimitive`` +- ``RequestBodiesServers/RequestBodyPostApplicationJsonMapOfPrimitive`` +- ``RequestBodiesServers/RequestBodyReadAndWrite`` +- ``RequestBodiesServers/RequestBodyReadOnlyInput`` +- ``RequestBodiesServers/RequestBodyReadOnlyUnion`` +- ``RequestBodiesServers/RequestBodyReadWriteOnlyUnion`` +- ``RequestBodiesServers/RequestBodyWriteOnly`` +- ``RequestBodiesServers/RequestBodyWriteOnlyOutput`` +- ``RequestBodiesServers/RequestBodyWriteOnlyUnion`` +- ``ResponseBodiesServers/ResponseBodyOptionalGet`` +- ``ResponseBodiesServers/ResponseBodyReadOnly`` +- ``RetriesServers/RetriesGet`` +- ``ServersServers/SelectServerWithID`` +- ``ServersServers/ServerWithProtocolTemplate`` +- ``ServersServers/ServerWithTemplates`` +- ``ServersServers/ServersByIDWithTemplates`` + +### Shared models +- ``Shared/AllOfToAllOf`` +- ``Shared/ArrayCircularReferenceObject`` +- ``Shared/ArrObjValue`` +- ``Shared/ArrObjValueCamelCase`` +- ``Shared/AuthServiceRequestBody`` +- ``Shared/AuthServiceRequestBodyBasicAuth`` +- ``Shared/AuthServiceRequestBodyHeaderAuth`` +- ``Shared/ComplexNumberTypes`` +- ``Shared/DeepObject`` +- ``Shared/DeepObjectAny`` +- ``Shared/DeepObjectCamelCase`` +- ``Shared/DeepObjectCamelCaseAnyVal`` +- ``Shared/DeepObjectWithType`` +- ``Shared/DeepObjectWithTypeAny`` +- ``Shared/DefaultsAndConsts`` +- ``Shared/DefaultsAndConstsConstEnumInt`` +- ``Shared/DefaultsAndConstsConstEnumStr`` +- ``Shared/DefaultsAndConstsDefaultEnumInt`` +- ``Shared/DefaultsAndConstsDefaultEnumStr`` +- ``Shared/DefaultsAndConstsOutput`` +- ``Shared/DefaultsAndConstsOutputConstEnumInt`` +- ``Shared/DefaultsAndConstsOutputConstEnumStr`` +- ``Shared/DefaultsAndConstsOutputDefaultEnumInt`` +- ``Shared/DefaultsAndConstsOutputDefaultEnumStr`` +- ``Shared/DeprecatedFieldInObject`` +- ``Shared/DeprecatedFieldInObjectDeprecatedEnum`` +- ``Shared/DeprecatedObject`` +- ``Shared/EmptyObjectParam`` +- ``Shared/Enum`` +- ``Shared/Error`` +- ``Shared/ErrorType`` +- ``Shared/ExampleBoat`` +- ``Shared/ExampleBoatType`` +- ``Shared/ExampleCar`` +- ``Shared/ExampleCarType`` +- ``Shared/ExampleResource`` +- ``Shared/ExampleResourceChocolates`` +- ``Shared/ExampleResourceEnumNumber`` +- ``Shared/ExampleResourceEnumStr`` +- ``Shared/ExampleVehicle`` +- ``Shared/FakerFormattedStrings`` +- ``Shared/FakerStrings`` +- ``Shared/FileResource`` +- ``Shared/FlattenedTypedObject1`` +- ``Shared/HttpBinSimpleJsonObject`` +- ``Shared/HttpBinSimpleJsonObjectSlideshow`` +- ``Shared/HttpBinSimpleJsonObjectSlideshowSlides`` +- ``Shared/LimitOffsetConfig`` +- ``Shared/MapObjValue`` +- ``Shared/MapObjValueCamelCase`` +- ``Shared/NullableObject`` +- ``Shared/NullableOneOfRefInObject`` +- ``Shared/NullableOneOfRefInObjectNullableOneOfTwo`` +- ``Shared/NullableOneOfRefInObjectOneOfOne`` +- ``Shared/NullableOneOfTypeInObject`` +- ``Shared/NullableOneOfTypeInObjectNullableOneOfTwo`` +- ``Shared/ObjectCircularReferenceObject`` +- ``Shared/ObjWithZeroValueComplexTypePtrs`` +- ``Shared/OneOfCircularReferenceObject`` +- ``Shared/OneOfCircularReferenceObjectChild`` +- ``Shared/OneOfGenerationStressTest`` +- ``Shared/OneOfGenerationStressTestOneOfFromArrayOfTypes`` +- ``Shared/OneOfGenerationStressTestOneOfSameType`` +- ``Shared/OneOfGenerationStressTestOneOfSameType2`` +- ``Shared/PrimitiveTypeUnion`` +- ``Shared/ReadOnlyObject`` +- ``Shared/ReadOnlyObjectInput`` +- ``Shared/ReadWriteObjectInput`` +- ``Shared/ReadWriteObjectOutput`` +- ``Shared/RefQueryParamObj`` +- ``Shared/RefQueryParamObjExploded`` +- ``Shared/SchemeBasicAuth`` +- ``Shared/SimpleObject`` +- ``Shared/SimpleObjectInt32Enum`` +- ``Shared/SimpleObjectIntEnum`` +- ``Shared/SimpleObjectCamelCase`` +- ``Shared/SimpleObjectCamelCaseIntEnumVal`` +- ``Shared/SimpleObjectCamelCaseInt32EnumVal`` +- ``Shared/SimpleObjectWithType`` +- ``Shared/SimpleObjectWithTypeInt32Enum`` +- ``Shared/SimpleObjectWithTypeIntEnum`` +- ``Shared/StronglyTypedOneOfObject`` +- ``Shared/TypedObject1`` +- ``Shared/TypedObject1Type`` +- ``Shared/TypedObject2`` +- ``Shared/TypedObject2Type`` +- ``Shared/TypedObject3`` +- ``Shared/TypedObject3Type`` +- ``Shared/TypedObjectNullableOneOf`` +- ``Shared/TypedObjectOneOf`` +- ``Shared/UnsupportedEnums`` +- ``Shared/ValidCircularReferenceObject`` +- ``Shared/WeaklyTypedOneOfObject`` +- ``Shared/WeaklyTypedOneOfReadOnlyObject`` +- ``Shared/WeaklyTypedOneOfReadOnlyObjectInput`` +- ``Shared/WeaklyTypedOneOfReadWriteObjectInput`` +- ``Shared/WeaklyTypedOneOfReadWriteObjectOutput`` +- ``Shared/WeaklyTypedOneOfWriteOnlyObject`` +- ``Shared/WeaklyTypedOneOfWriteOnlyObjectOutput`` +- ``Shared/WriteOnlyObject`` +- ``Shared/WriteOnlyObjectOutput`` + +### Request objects +- ``Operations/BasicAuthRequest`` +- ``Operations/ComponentBodyAndParamConflictRequest`` +- ``Operations/ComponentBodyAndParamNoConflictRequest`` +- ``Operations/ConflictingParamsRequest`` +- ``Operations/DateParamWithDefaultRequest`` +- ``Operations/DateTimeParamWithDefaultRequest`` +- ``Operations/DecimalParamWithDefaultRequest`` +- ``Operations/DeepObjectQueryParamsMapRequest`` +- ``Operations/DeepObjectQueryParamsObjectRequest`` +- ``Operations/DeleteResourceRequest`` +- ``Operations/DeprecatedOperationNoCommentsGetRequest`` +- ``Operations/DeprecatedOperationWithCommentsGetRequest`` +- ``Operations/DuplicateParamRequest`` +- ``Operations/EmptyObjectGetRequest`` +- ``Operations/FormQueryParamsArrayRequest`` +- ``Operations/FormQueryParamsCamelObjectRequest`` +- ``Operations/FormQueryParamsMapRequest`` +- ``Operations/FormQueryParamsObjectRequest`` +- ``Operations/FormQueryParamsPrimitiveRequest`` +- ``Operations/FormQueryParamsRefParamObjectRequest`` +- ``Operations/GetDocumentationPerLanguageRequest`` +- ``Operations/GetResourceRequest`` +- ``Operations/GlobalPathParameterGetRequest`` +- ``Operations/GlobalsQueryParameterGetRequest`` +- ``Operations/HeaderParamsArrayRequest`` +- ``Operations/HeaderParamsMapRequest`` +- ``Operations/HeaderParamsObjectRequest`` +- ``Operations/HeaderParamsPrimitiveRequest`` +- ``Operations/IgnoresPostRequest`` +- ``Operations/InlineBodyAndParamConflictRequest`` +- ``Operations/InlineBodyAndParamNoConflictRequest`` +- ``Operations/JsonQueryParamsObjectRequest`` +- ``Operations/MixedParametersCamelCaseRequest`` +- ``Operations/MixedParametersPrimitivesRequest`` +- ``Operations/MixedQueryParamsRequest`` +- ``Operations/NameOverrideGetRequest`` +- ``Operations/Oauth2OverrideRequest`` +- ``Operations/PaginationCursorParamsRequest`` +- ``Operations/PaginationLimitOffsetOffsetParamsRequest`` +- ``Operations/PaginationLimitOffsetPageParamsRequest`` +- ``Operations/PathParameterJsonRequest`` +- ``Operations/PipeDelimitedQueryParamsArrayRequest`` +- ``Operations/RequestBodyPostComplexNumberTypesRequest`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest`` +- ``Operations/RequestBodyPutBytesWithParamsRequest`` +- ``Operations/RequestBodyPutStringWithParamsRequest`` +- ``Operations/ResponseBodyEmptyWithHeadersRequest`` +- ``Operations/RetriesGetRequest`` +- ``Operations/SimplePathParameterArraysRequest`` +- ``Operations/SimplePathParameterMapsRequest`` +- ``Operations/SimplePathParameterObjectsRequest`` +- ``Operations/SimplePathParameterPrimitivesRequest`` +- ``Operations/StatusGetErrorRequest`` +- ``Operations/StatusGetXSpeakeasyErrorsRequest`` +- ``Operations/TelemetrySpeakeasyUserAgentGetRequest`` +- ``Operations/TypedParameterGenerationGetRequest`` +- ``Operations/UpdateResourceRequest`` +- ``Operations/UsageExamplePostRequest`` + +### Response objects +- ``Operations/AnchorTypesGetResponse`` +- ``Operations/ApiKeyAuthGlobalNewResponse`` +- ``Operations/ApiKeyAuthGlobalResponse`` +- ``Operations/ApiKeyAuthResponse`` +- ``Operations/ArrayCircularReferenceGetResponse`` +- ``Operations/AuthGlobalResponse`` +- ``Operations/BasicAuthNewResponse`` +- ``Operations/BasicAuthResponse`` +- ``Operations/BearerAuthResponse`` +- ``Operations/CircularReferenceGetResponse`` +- ``Operations/ComponentBodyAndParamConflictResponse`` +- ``Operations/ComponentBodyAndParamNoConflictResponse`` +- ``Operations/ConflictingParamsResponse`` +- ``Operations/ConnectionErrorGetResponse`` +- ``Operations/CreateFileResponse`` +- ``Operations/CreateResourceResponse`` +- ``Operations/DateParamWithDefaultResponse`` +- ``Operations/DateTimeParamWithDefaultResponse`` +- ``Operations/DecimalParamWithDefaultResponse`` +- ``Operations/DeepObjectQueryParamsMapResponse`` +- ``Operations/DeepObjectQueryParamsObjectResponse`` +- ``Operations/DeleteResourceResponse`` +- ``Operations/DeprecatedFieldInSchemaPostResponse`` +- ``Operations/DeprecatedObjectInSchemaGetResponse`` +- ``Operations/DeprecatedOperationNoCommentsGetResponse`` +- ``Operations/DeprecatedOperationWithCommentsGetResponse`` +- ``Operations/DuplicateParamResponse`` +- ``Operations/EmptyObjectGetResponse`` +- ``Operations/EmptyResponseObjectWithCommentGetResponse`` +- ``Operations/FlattenedTypedObjectPostResponse`` +- ``Operations/FormQueryParamsArrayResponse`` +- ``Operations/FormQueryParamsCamelObjectResponse`` +- ``Operations/FormQueryParamsMapResponse`` +- ``Operations/FormQueryParamsObjectResponse`` +- ``Operations/FormQueryParamsPrimitiveResponse`` +- ``Operations/FormQueryParamsRefParamObjectResponse`` +- ``Operations/GetDocumentationPerLanguageResponse`` +- ``Operations/GetGlobalNameOverrideResponse`` +- ``Operations/GetResourceResponse`` +- ``Operations/GlobalBearerAuthResponse`` +- ``Operations/GlobalPathParameterGetResponse`` +- ``Operations/GlobalsQueryParameterGetResponse`` +- ``Operations/GroupFirstGetResponse`` +- ``Operations/GroupSecondGetResponse`` +- ``Operations/HeaderParamsArrayResponse`` +- ``Operations/HeaderParamsMapResponse`` +- ``Operations/HeaderParamsObjectResponse`` +- ``Operations/HeaderParamsPrimitiveResponse`` +- ``Operations/IgnoredGenerationGetResponse`` +- ``Operations/IgnoresPostResponse`` +- ``Operations/InlineBodyAndParamConflictResponse`` +- ``Operations/InlineBodyAndParamNoConflictResponse`` +- ``Operations/JsonQueryParamsObjectResponse`` +- ``Operations/MixedParametersCamelCaseResponse`` +- ``Operations/MixedParametersPrimitivesResponse`` +- ``Operations/MixedQueryParamsResponse`` +- ``Operations/MixedTypeOneOfPostResponse`` +- ``Operations/MultipleMixedOptionsAuthResponse`` +- ``Operations/MultipleMixedSchemeAuthResponse`` +- ``Operations/MultipleOptionsWithMixedSchemesAuthResponse`` +- ``Operations/MultipleOptionsWithSimpleSchemesAuthResponse`` +- ``Operations/MultipleSimpleOptionsAuthResponse`` +- ``Operations/MultipleSimpleSchemeAuthResponse`` +- ``Operations/NameOverrideGetResponse`` +- ``Operations/NestedFirstGetResponse`` +- ``Operations/NestedGetResponse`` +- ``Operations/NestedSecondGetResponse`` +- ``Operations/NestFirstGetResponse`` +- ``Operations/NullableObjectPostResponse`` +- ``Operations/NullableOneOfRefInObjectPostResponse`` +- ``Operations/NullableOneOfSchemaPostResponse`` +- ``Operations/NullableOneOfTypeInObjectPostResponse`` +- ``Operations/NullableRequiredEmptyObjectPostResponse`` +- ``Operations/NullableRequiredPropertyPostResponse`` +- ``Operations/NullableRequiredSharedObjectPostResponse`` +- ``Operations/NullableTypedObjectPostResponse`` +- ``Operations/Oauth2AuthNewResponse`` +- ``Operations/Oauth2AuthResponse`` +- ``Operations/Oauth2OverrideResponse`` +- ``Operations/ObjectCircularReferenceGetResponse`` +- ``Operations/OneOfCircularReferenceGetResponse`` +- ``Operations/OpenIdConnectAuthNewResponse`` +- ``Operations/OpenIdConnectAuthResponse`` +- ``Operations/PaginationCursorBodyResponse`` +- ``Operations/PaginationCursorParamsResponse`` +- ``Operations/PaginationLimitOffsetOffsetBodyResponse`` +- ``Operations/PaginationLimitOffsetOffsetParamsResponse`` +- ``Operations/PaginationLimitOffsetPageBodyResponse`` +- ``Operations/PaginationLimitOffsetPageParamsResponse`` +- ``Operations/PathParameterJsonResponse`` +- ``Operations/PipeDelimitedQueryParamsArrayResponse`` +- ``Operations/PrimitiveTypeOneOfPostResponse`` +- ``Operations/PutAnythingIgnoredGenerationResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayObjResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayOfArrayResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayOfMapResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse`` +- ``Operations/RequestBodyPostApplicationJsonArrayResponse`` +- ``Operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonDeepResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapObjResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapOfArrayResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapOfMapResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse`` +- ``Operations/RequestBodyPostApplicationJsonMapResponse`` +- ``Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse`` +- ``Operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse`` +- ``Operations/RequestBodyPostApplicationJsonSimpleResponse`` +- ``Operations/RequestBodyPostComplexNumberTypesResponse`` +- ``Operations/RequestBodyPostDefaultsAndConstsResponse`` +- ``Operations/RequestBodyPostEmptyObjectResponse`` +- ``Operations/RequestBodyPostFormDeepResponse`` +- ``Operations/RequestBodyPostFormMapPrimitiveResponse`` +- ``Operations/RequestBodyPostFormSimpleResponse`` +- ``Operations/RequestBodyPostJsonDataTypesArrayBigIntResponse`` +- ``Operations/RequestBodyPostJsonDataTypesArrayDateResponse`` +- ``Operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse`` +- ``Operations/RequestBodyPostJsonDataTypesBigIntResponse`` +- ``Operations/RequestBodyPostJsonDataTypesBigIntStrResponse`` +- ``Operations/RequestBodyPostJsonDataTypesBooleanResponse`` +- ``Operations/RequestBodyPostJsonDataTypesDateResponse`` +- ``Operations/RequestBodyPostJsonDataTypesDateTimeResponse`` +- ``Operations/RequestBodyPostJsonDataTypesDecimalResponse`` +- ``Operations/RequestBodyPostJsonDataTypesDecimalStrResponse`` +- ``Operations/RequestBodyPostJsonDataTypesFloat32Response`` +- ``Operations/RequestBodyPostJsonDataTypesInt32Response`` +- ``Operations/RequestBodyPostJsonDataTypesIntegerResponse`` +- ``Operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse`` +- ``Operations/RequestBodyPostJsonDataTypesMapDateTimeResponse`` +- ``Operations/RequestBodyPostJsonDataTypesMapDecimalResponse`` +- ``Operations/RequestBodyPostJsonDataTypesNumberResponse`` +- ``Operations/RequestBodyPostJsonDataTypesStringResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitFormResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitJsonResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse`` +- ``Operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse`` +- ``Operations/RequestBodyPostNullableNotRequiredStringBodyResponse`` +- ``Operations/RequestBodyPostNullableRequiredStringBodyResponse`` +- ``Operations/RequestBodyPostNullArrayResponse`` +- ``Operations/RequestBodyPostNullDictionaryResponse`` +- ``Operations/RequestBodyPutBytesResponse`` +- ``Operations/RequestBodyPutBytesWithParamsResponse`` +- ``Operations/RequestBodyPutMultipartDeepResponse`` +- ``Operations/RequestBodyPutMultipartDifferentFileNameResponse`` +- ``Operations/RequestBodyPutMultipartFileResponse`` +- ``Operations/RequestBodyPutMultipartSimpleResponse`` +- ``Operations/RequestBodyPutStringResponse`` +- ``Operations/RequestBodyPutStringWithParamsResponse`` +- ``Operations/RequestBodyReadAndWriteResponse`` +- ``Operations/RequestBodyReadOnlyInputResponse`` +- ``Operations/RequestBodyReadOnlyUnionResponse`` +- ``Operations/RequestBodyReadWriteOnlyUnionResponse`` +- ``Operations/RequestBodyWriteOnlyOutputResponse`` +- ``Operations/RequestBodyWriteOnlyResponse`` +- ``Operations/RequestBodyWriteOnlyUnionResponse`` +- ``Operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse`` +- ``Operations/ResponseBodyAdditionalPropertiesDatePostResponse`` +- ``Operations/ResponseBodyAdditionalPropertiesObjectPostResponse`` +- ``Operations/ResponseBodyAdditionalPropertiesPostResponse`` +- ``Operations/ResponseBodyBytesGetResponse`` +- ``Operations/ResponseBodyEmptyWithHeadersResponse`` +- ``Operations/ResponseBodyJsonGetResponse`` +- ``Operations/ResponseBodyOptionalGetResponse`` +- ``Operations/ResponseBodyReadOnlyResponse`` +- ``Operations/ResponseBodyStringGetResponse`` +- ``Operations/ResponseBodyXmlGetResponse`` +- ``Operations/ResponseBodyZeroValueComplexTypePtrsPostResponse`` +- ``Operations/RetriesGetResponse`` +- ``Operations/SelectGlobalServerResponse`` +- ``Operations/SelectServerWithIDResponse`` +- ``Operations/ServersByIDWithTemplatesResponse`` +- ``Operations/ServerWithProtocolTemplateResponse`` +- ``Operations/ServerWithTemplatesGlobalResponse`` +- ``Operations/ServerWithTemplatesResponse`` +- ``Operations/SimplePathParameterArraysResponse`` +- ``Operations/SimplePathParameterMapsResponse`` +- ``Operations/SimplePathParameterObjectsResponse`` +- ``Operations/SimplePathParameterPrimitivesResponse`` +- ``Operations/StatusGetErrorResponse`` +- ``Operations/StatusGetXSpeakeasyErrorsResponse`` +- ``Operations/StronglyTypedOneOfPostResponse`` +- ``Operations/TelemetrySpeakeasyUserAgentGetResponse`` +- ``Operations/TelemetryUserAgentGetResponse`` +- ``Operations/TypedObjectNullableOneOfPostResponse`` +- ``Operations/TypedObjectOneOfPostResponse`` +- ``Operations/TypedParameterGenerationGetResponse`` +- ``Operations/UnionDateNullResponse`` +- ``Operations/UnionDateTimeNullResponse`` +- ``Operations/UpdateResourceResponse`` +- ``Operations/UsageExamplePostResponse`` +- ``Operations/WeaklyTypedOneOfPostResponse`` +- ``Callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse`` +- ``Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse`` + +### Other models +- ``Operations/ApiKeyAuthToken`` +- ``Operations/ApiKeyAuthGlobalToken`` +- ``Operations/BasicAuthUser`` +- ``Operations/BearerAuthToken`` +- ``Operations/ComponentBodyAndParamConflictRes`` +- ``Operations/ComponentBodyAndParamNoConflictRes`` +- ``Operations/ConflictingParamsRes`` +- ``Operations/CreateFileRequestBody`` +- ``Operations/CreateFileRequestBodyFile`` +- ``Operations/DeepObjectQueryParamsMapRes`` +- ``Operations/DeepObjectQueryParamsMapResArgs`` +- ``Operations/DeepObjectQueryParamsObjectRes`` +- ``Operations/DeepObjectQueryParamsObjectResArgs`` +- ``Operations/DeepObjectQueryParamsObjectObjArrParam`` +- ``Operations/DeprecatedObjectInSchemaGet200ApplicationJSON`` +- ``Operations/DuplicateParamDuplicateParamResponse`` +- ``Operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream`` +- ``Operations/FlattenedTypedObjectPostRes`` +- ``Operations/FormQueryParamsArrayRes`` +- ``Operations/FormQueryParamsArrayResArgs`` +- ``Operations/FormQueryParamsCamelObjectRes`` +- ``Operations/FormQueryParamsCamelObjectResArgs`` +- ``Operations/FormQueryParamsCamelObjectObjParam`` +- ``Operations/FormQueryParamsCamelObjectObjParamExploded`` +- ``Operations/FormQueryParamsMapRes`` +- ``Operations/FormQueryParamsObjectRes`` +- ``Operations/FormQueryParamsObjectResArgs`` +- ``Operations/FormQueryParamsPrimitiveRes`` +- ``Operations/FormQueryParamsPrimitiveResArgs`` +- ``Operations/FormQueryParamsRefParamObjectRes`` +- ``Operations/FormQueryParamsRefParamObjectResArgs`` +- ``Operations/GetGlobalNameOverride200ApplicationJSON`` +- ``Operations/GlobalBearerAuthToken`` +- ``Operations/GlobalPathParameterGetRes`` +- ``Operations/GlobalsQueryParameterGetRes`` +- ``Operations/GlobalsQueryParameterGetResArgs`` +- ``Operations/HeaderParamsArrayRes`` +- ``Operations/HeaderParamsArrayResHeaders`` +- ``Operations/HeaderParamsMapRes`` +- ``Operations/HeaderParamsMapResHeaders`` +- ``Operations/HeaderParamsObjectRes`` +- ``Operations/HeaderParamsObjectResHeaders`` +- ``Operations/HeaderParamsPrimitiveRes`` +- ``Operations/HeaderParamsPrimitiveResHeaders`` +- ``Operations/IgnoredGenerationGet200ApplicationJSON`` +- ``Operations/IgnoresPostApplicationJSON`` +- ``Operations/InlineBodyAndParamConflictRequestBody`` +- ``Operations/InlineBodyAndParamConflictRes`` +- ``Operations/InlineBodyAndParamConflictResJson`` +- ``Operations/InlineBodyAndParamNoConflictRequestBody`` +- ``Operations/InlineBodyAndParamNoConflictRes`` +- ``Operations/InlineBodyAndParamNoConflictResJson`` +- ``Operations/JsonQueryParamsObjectRes`` +- ``Operations/JsonQueryParamsObjectResArgs`` +- ``Operations/MixedParametersCamelCaseRes`` +- ``Operations/MixedParametersCamelCaseResArgs`` +- ``Operations/MixedParametersCamelCaseResHeaders`` +- ``Operations/MixedParametersPrimitivesRes`` +- ``Operations/MixedParametersPrimitivesResArgs`` +- ``Operations/MixedParametersPrimitivesResHeaders`` +- ``Operations/MixedQueryParamsRes`` +- ``Operations/MixedTypeOneOfPostRequestBody`` +- ``Operations/MixedTypeOneOfPostRes`` +- ``Operations/MixedTypeOneOfPostResJson`` +- ``Operations/NameOverrideGetEnumNameOverride`` +- ``Operations/NullableObjectPostRes`` +- ``Operations/NullableOneOfRefInObjectPostRes`` +- ``Operations/NullableOneOfSchemaPostRequestBody`` +- ``Operations/NullableOneOfSchemaPostRes`` +- ``Operations/NullableOneOfSchemaPostResJson`` +- ``Operations/NullableOneOfTypeInObjectPostRes`` +- ``Operations/NullableRequiredEmptyObjectPostRequestBody`` +- ``Operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj`` +- ``Operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj`` +- ``Operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj`` +- ``Operations/NullableRequiredPropertyPostRequestBody`` +- ``Operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum`` +- ``Operations/NullableRequiredSharedObjectPostRequestBody`` +- ``Operations/NullableTypedObjectPostRes`` +- ``Operations/Oauth2AuthToken`` +- ``Operations/Oauth2OverrideToken`` +- ``Operations/OpenIdConnectAuthToken`` +- ``Operations/OverriddenResponse`` +- ``Operations/PaginationCursorBodyRequestBody`` +- ``Operations/PaginationCursorBodyRes`` +- ``Operations/PaginationCursorParamsRes`` +- ``Operations/PaginationLimitOffsetOffsetBodyRes`` +- ``Operations/PaginationLimitOffsetOffsetParamsRes`` +- ``Operations/PaginationLimitOffsetPageBodyRes`` +- ``Operations/PaginationLimitOffsetPageParamsRes`` +- ``Operations/PathParameterJsonRes`` +- ``Operations/PipeDelimitedQueryParamsArrayRes`` +- ``Operations/PipeDelimitedQueryParamsArrayResArgs`` +- ``Operations/PrimitiveTypeOneOfPostRequestBody`` +- ``Operations/PrimitiveTypeOneOfPostRes`` +- ``Operations/PrimitiveTypeOneOfPostResJson`` +- ``Operations/PutAnythingIgnoredGeneration200ApplicationJSON`` +- ``Operations/RequestBodyPostApplicationJsonDeepRes`` +- ``Operations/RequestBodyPostApplicationJsonDeepCamelCaseRes`` +- ``Operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes`` +- ``Operations/RequestBodyPostApplicationJsonSimpleRes`` +- ``Operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes`` +- ``Operations/RequestBodyPostComplexNumberTypes200ApplicationJSON`` +- ``Operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON`` +- ``Operations/RequestBodyPostEmptyObject200ApplicationJSON`` +- ``Operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty`` +- ``Operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies`` +- ``Operations/RequestBodyPostEmptyObjectRequestBody`` +- ``Operations/RequestBodyPostEmptyObjectRequestBodyEmpty`` +- ``Operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties`` +- ``Operations/RequestBodyPostFormDeepRes`` +- ``Operations/RequestBodyPostFormDeepResForm`` +- ``Operations/RequestBodyPostFormMapPrimitiveRes`` +- ``Operations/RequestBodyPostFormSimpleRes`` +- ``Operations/RequestBodyPostFormSimpleResForm`` +- ``Operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON`` +- ``Operations/RequestBodyPostJSONDataTypesString200ApplicationJSON`` +- ``Operations/RequestBodyPostMultipleContentTypesComponentFilteredRes`` +- ``Operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON`` +- ``Operations/RequestBodyPostMultipleContentTypesInlineFilteredRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitFormRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitJsonRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitMultipartRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamFormRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes`` +- ``Operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData`` +- ``Operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON`` +- ``Operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON`` +- ``Operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON`` +- ``Operations/RequestBodyPostNullArray200ApplicationJSON`` +- ``Operations/RequestBodyPostNullDictionary200ApplicationJSON`` +- ``Operations/RequestBodyPutBytesRes`` +- ``Operations/RequestBodyPutBytesWithParamsRes`` +- ``Operations/RequestBodyPutBytesWithParamsResArgs`` +- ``Operations/RequestBodyPutMultipartDeepRes`` +- ``Operations/RequestBodyPutMultipartDeepResForm`` +- ``Operations/RequestBodyPutMultipartDifferentFileNameRequestBody`` +- ``Operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName`` +- ``Operations/RequestBodyPutMultipartDifferentFileNameRes`` +- ``Operations/RequestBodyPutMultipartFileRequestBody`` +- ``Operations/RequestBodyPutMultipartFileRequestBodyFile`` +- ``Operations/RequestBodyPutMultipartFileRes`` +- ``Operations/RequestBodyPutMultipartSimpleRes`` +- ``Operations/RequestBodyPutMultipartSimpleResForm`` +- ``Operations/RequestBodyPutStringRes`` +- ``Operations/RequestBodyPutStringWithParamsRes`` +- ``Operations/RequestBodyPutStringWithParamsResArgs`` +- ``Operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON`` +- ``Operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON`` +- ``Operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON`` +- ``Operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON`` +- ``Operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON`` +- ``Operations/RetriesGetRetries`` +- ``Operations/SimplePathParameterArraysRes`` +- ``Operations/SimplePathParameterMapsRes`` +- ``Operations/SimplePathParameterObjectsRes`` +- ``Operations/SimplePathParameterPrimitivesRes`` +- ``Operations/StatusGetXSpeakeasyErrors501ApplicationJSON`` +- ``Operations/StronglyTypedOneOfPostRes`` +- ``Operations/TelemetrySpeakeasyUserAgentGetRes`` +- ``Operations/TelemetryUserAgentGetRes`` +- ``Operations/TypedObjectNullableOneOfPostRes`` +- ``Operations/TypedObjectOneOfPostRes`` +- ``Operations/TypedParameterGenerationGetObj`` +- ``Operations/TypeFromAnchor`` +- ``Operations/UnionDateNullRes`` +- ``Operations/UnionDateTimeNullRes`` +- ``Operations/UsageExamplePost200ApplicationJSON`` +- ``Operations/UsageExamplePost200ApplicationJSONJSON`` +- ``Operations/UsageExamplePostRequestBody`` +- ``Operations/UsageExamplePostEnumParameter`` +- ``Operations/UsageExamplePostOptEnumParameter`` +- ``Operations/WeaklyTypedOneOfPostRes`` +- ``Callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody`` +- ``Callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody`` + +### Type groupings +- ``Callbacks`` +- ``Operations`` +- ``Shared`` + +### Data types + +- ``AnyValue`` +- ``APIValue`` + +### Internal data types + +- ``DateConvertible`` +- ``DateOnly`` +- ``DateTime`` +- ``DecimalSerialized`` +- ``DoubleConvertible`` diff --git a/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift b/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift new file mode 100755 index 000000000..6ab758d9f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/OpenAPI.swift @@ -0,0 +1,2684 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +/// Defines the operations supported by the API. +/// +/// This protocol defines all of the operations supported by the API. It is implemented by ``Client`` which can be used to make these API requests and handle their responses. +/// +/// ## Topics +/// +/// ### API calls +/// +/// These methods allow you to make requests to the API. +/// +/// - ``putAnythingIgnoredGeneration(request:)`` +/// - ``responseBodyJsonGet()`` +/// +/// ### Scoped API calls +/// +/// These properties logically group other parts of the API. +/// +/// - ``auth`` +/// - ``authNew`` +/// - ``documentation`` +/// - ``errors`` +/// - ``first`` +/// - ``flattening`` +/// - ``generation`` +/// - ``globals`` +/// - ``nestFirst`` +/// - ``nested`` +/// - ``nestedFirst`` +/// - ``nestedSecond`` +/// - ``pagination`` +/// - ``parameters`` +/// - ``requestBodies`` +/// - ``resource`` +/// - ``responseBodies`` +/// - ``retries`` +/// - ``second`` +/// - ``servers`` +/// - ``telemetry`` +/// - ``unions`` +/// +public protocol OpenAPI { + func putAnythingIgnoredGeneration(request: String) async throws -> Response + func responseBodyJsonGet() async throws -> Response + + // MARK: - Scoped APIs + /// Endpoints for testing authentication. + var auth: AuthAPI { get } + /// Endpoints for testing authentication. + var authNew: AuthNewAPI { get } + /// Testing for documentation extensions and tooling. + var documentation: DocumentationAPI { get } + /// Endpoints for testing error responses. + var errors: ErrorsAPI { get } + var first: FirstAPI { get } + /// Endpoints for testing flattening through request body and parameter combinations. + var flattening: FlatteningAPI { get } + /// Endpoints for purely testing valid generation behavior. + var generation: GenerationAPI { get } + /// Endpoints for testing global parameters. + var globals: GlobalsAPI { get } + var nestFirst: NestFirstAPI { get } + var nested: NestedAPI { get } + var nestedFirst: NestedFirstAPI { get } + var nestedSecond: NestedSecondAPI { get } + /// Endpoints for testing the pagination extension + var pagination: PaginationAPI { get } + /// Endpoints for testing parameters. + var parameters: ParametersAPI { get } + /// Endpoints for testing request bodies. + var requestBodies: RequestBodiesAPI { get } + var resource: ResourceAPI { get } + /// Endpoints for testing response bodies. + var responseBodies: ResponseBodiesAPI { get } + /// Endpoints for testing retries. + var retries: RetriesAPI { get } + var second: SecondAPI { get } + /// Endpoints for testing servers. + var servers: ServersAPI { get } + /// Endpoints for testing telemetry. + var telemetry: TelemetryAPI { get } + /// Endpoints for testing union types. + var unions: UnionsAPI { get } +} + +// MARK: - AuthAPI + +/// Endpoints for testing authentication. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``apiKeyAuth(security:)`` +/// - ``apiKeyAuthGlobal()`` +/// - ``basicAuth(request:security:)`` +/// - ``bearerAuth(security:)`` +/// - ``globalBearerAuth()`` +/// - ``oauth2Auth(security:)`` +/// - ``oauth2Override(request:security:)`` +/// - ``openIdConnectAuth(security:)`` +/// +public protocol AuthAPI { + func apiKeyAuth(security: Operations.ApiKeyAuthSecurity) async throws -> Response + + func apiKeyAuthGlobal() async throws -> Response + + func basicAuth(request: Operations.BasicAuthRequest, security: Operations.BasicAuthSecurity) async throws -> Response + + func bearerAuth(security: Operations.BearerAuthSecurity) async throws -> Response + + func globalBearerAuth() async throws -> Response + + func oauth2Auth(security: Operations.Oauth2AuthSecurity) async throws -> Response + + func oauth2Override(request: Operations.Oauth2OverrideRequest, security: Operations.Oauth2OverrideSecurity) async throws -> Response + + func openIdConnectAuth(security: Operations.OpenIdConnectAuthSecurity) async throws -> Response +} + +// MARK: - AuthNewAPI +public enum AuthNewServers { + +/// Describes the available servers that can be used when making 'apiKeyAuthGlobalNew' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/apiKeyAuthGlobalNew(request:server:)`` to customize the server which is used. + public enum ApiKeyAuthGlobalNew: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.ApiKeyAuthGlobalNew.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'authGlobal' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/authGlobal(request:server:)`` to customize the server which is used. + public enum AuthGlobal: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.AuthGlobal.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'basicAuthNew' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/basicAuthNew(request:security:server:)`` to customize the server which is used. + public enum BasicAuthNew: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.BasicAuthNew.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'multipleMixedOptionsAuth' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/multipleMixedOptionsAuth(request:security:server:)`` to customize the server which is used. + public enum MultipleMixedOptionsAuth: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.MultipleMixedOptionsAuth.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'multipleMixedSchemeAuth' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/multipleMixedSchemeAuth(request:security:server:)`` to customize the server which is used. + public enum MultipleMixedSchemeAuth: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.MultipleMixedSchemeAuth.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'multipleOptionsWithMixedSchemesAuth' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/multipleOptionsWithMixedSchemesAuth(request:security:server:)`` to customize the server which is used. + public enum MultipleOptionsWithMixedSchemesAuth: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.MultipleOptionsWithMixedSchemesAuth.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'multipleOptionsWithSimpleSchemesAuth' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/multipleOptionsWithSimpleSchemesAuth(request:security:server:)`` to customize the server which is used. + public enum MultipleOptionsWithSimpleSchemesAuth: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.MultipleOptionsWithSimpleSchemesAuth.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'multipleSimpleOptionsAuth' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/multipleSimpleOptionsAuth(request:security:server:)`` to customize the server which is used. + public enum MultipleSimpleOptionsAuth: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.MultipleSimpleOptionsAuth.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'multipleSimpleSchemeAuth' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/multipleSimpleSchemeAuth(request:security:server:)`` to customize the server which is used. + public enum MultipleSimpleSchemeAuth: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.MultipleSimpleSchemeAuth.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'oauth2AuthNew' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/oauth2AuthNew(request:security:server:)`` to customize the server which is used. + public enum Oauth2AuthNew: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.Oauth2AuthNew.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'openIdConnectAuthNew' requests. +/// +/// Use this type when making calls to ``AuthNewAPI/openIdConnectAuthNew(request:security:server:)`` to customize the server which is used. + public enum OpenIdConnectAuthNew: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try AuthNewServers.OpenIdConnectAuthNew.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } +} + +/// Endpoints for testing authentication. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``apiKeyAuthGlobalNew(request:server:)`` +/// - ``authGlobal(request:server:)`` +/// - ``basicAuthNew(request:security:server:)`` +/// - ``multipleMixedOptionsAuth(request:security:server:)`` +/// - ``multipleMixedSchemeAuth(request:security:server:)`` +/// - ``multipleOptionsWithMixedSchemesAuth(request:security:server:)`` +/// - ``multipleOptionsWithSimpleSchemesAuth(request:security:server:)`` +/// - ``multipleSimpleOptionsAuth(request:security:server:)`` +/// - ``multipleSimpleSchemeAuth(request:security:server:)`` +/// - ``oauth2AuthNew(request:security:server:)`` +/// - ``openIdConnectAuthNew(request:security:server:)`` +/// +public protocol AuthNewAPI { + func apiKeyAuthGlobalNew(request: Shared.AuthServiceRequestBody, server: AuthNewServers.ApiKeyAuthGlobalNew?) async throws -> Response + + func authGlobal(request: Shared.AuthServiceRequestBody, server: AuthNewServers.AuthGlobal?) async throws -> Response + + func basicAuthNew(request: Shared.AuthServiceRequestBody, security: Operations.BasicAuthNewSecurity, server: AuthNewServers.BasicAuthNew?) async throws -> Response + + func multipleMixedOptionsAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleMixedOptionsAuthSecurity, server: AuthNewServers.MultipleMixedOptionsAuth?) async throws -> Response + + func multipleMixedSchemeAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleMixedSchemeAuthSecurity, server: AuthNewServers.MultipleMixedSchemeAuth?) async throws -> Response + + func multipleOptionsWithMixedSchemesAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleOptionsWithMixedSchemesAuthSecurity, server: AuthNewServers.MultipleOptionsWithMixedSchemesAuth?) async throws -> Response + + func multipleOptionsWithSimpleSchemesAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleOptionsWithSimpleSchemesAuthSecurity, server: AuthNewServers.MultipleOptionsWithSimpleSchemesAuth?) async throws -> Response + + func multipleSimpleOptionsAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleSimpleOptionsAuthSecurity, server: AuthNewServers.MultipleSimpleOptionsAuth?) async throws -> Response + + func multipleSimpleSchemeAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleSimpleSchemeAuthSecurity, server: AuthNewServers.MultipleSimpleSchemeAuth?) async throws -> Response + + func oauth2AuthNew(request: Shared.AuthServiceRequestBody, security: Operations.Oauth2AuthNewSecurity, server: AuthNewServers.Oauth2AuthNew?) async throws -> Response + + func openIdConnectAuthNew(request: Shared.AuthServiceRequestBody, security: Operations.OpenIdConnectAuthNewSecurity, server: AuthNewServers.OpenIdConnectAuthNew?) async throws -> Response +} + +// MARK: - DocumentationAPI + +/// Testing for documentation extensions and tooling. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``getDocumentationPerLanguage(request:)`` +/// +public protocol DocumentationAPI { + /// Gets documentation for some language, I guess. + /// + /// - Parameter request: A ``Operations/GetDocumentationPerLanguageRequest`` object describing the input to the API operation + /// - Returns: A ``Operations/GetDocumentationPerLanguageResponse`` object describing the result of the API operation + /// - Throws: An error of type ``OpenAPIError`` + func getDocumentationPerLanguage(request: Operations.GetDocumentationPerLanguageRequest) async throws -> Response +} + +// MARK: - ErrorsAPI +public enum ErrorsServers { + +/// Describes the available servers that can be used when making 'connectionErrorGet' requests. +/// +/// Use this type when making calls to ``ErrorsAPI/connectionErrorGet(server:)`` to customize the server which is used. + public enum ConnectionErrorGet: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://somebrokenapi.broken` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://somebrokenapi.broken" + /// ] + /// ``` + public static let urlStrings = [ + "http://somebrokenapi.broken" + ] + + static func `default`() throws -> Server { + return try ErrorsServers.ConnectionErrorGet.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'statusGetXSpeakeasyErrors' requests. +/// +/// Use this type when making calls to ``ErrorsAPI/statusGetXSpeakeasyErrors(request:server:)`` to customize the server which is used. + public enum StatusGetXSpeakeasyErrors: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try ErrorsServers.StatusGetXSpeakeasyErrors.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } +} + +/// Endpoints for testing error responses. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``connectionErrorGet(server:)`` +/// - ``statusGetError(request:)`` +/// - ``statusGetXSpeakeasyErrors(request:server:)`` +/// +public protocol ErrorsAPI { + func connectionErrorGet(server: ErrorsServers.ConnectionErrorGet?) async throws -> Response + + func statusGetError(request: Operations.StatusGetErrorRequest) async throws -> Response + + func statusGetXSpeakeasyErrors(request: Operations.StatusGetXSpeakeasyErrorsRequest, server: ErrorsServers.StatusGetXSpeakeasyErrors?) async throws -> Response +} + +// MARK: - FirstAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``groupFirstGet()`` +/// +public protocol FirstAPI { + func groupFirstGet() async throws -> Response +} + +// MARK: - FlatteningAPI + +/// Endpoints for testing flattening through request body and parameter combinations. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``componentBodyAndParamConflict(request:)`` +/// - ``componentBodyAndParamNoConflict(request:)`` +/// - ``conflictingParams(request:)`` +/// - ``inlineBodyAndParamConflict(request:)`` +/// - ``inlineBodyAndParamNoConflict(request:)`` +/// +public protocol FlatteningAPI { + func componentBodyAndParamConflict(request: Operations.ComponentBodyAndParamConflictRequest) async throws -> Response + + func componentBodyAndParamNoConflict(request: Operations.ComponentBodyAndParamNoConflictRequest) async throws -> Response + + func conflictingParams(request: Operations.ConflictingParamsRequest) async throws -> Response + + func inlineBodyAndParamConflict(request: Operations.InlineBodyAndParamConflictRequest) async throws -> Response + + func inlineBodyAndParamNoConflict(request: Operations.InlineBodyAndParamNoConflictRequest) async throws -> Response +} + +// MARK: - GenerationAPI + +/// Endpoints for purely testing valid generation behavior. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``anchorTypesGet()`` +/// - ``arrayCircularReferenceGet()`` +/// - ``circularReferenceGet()`` +/// - ``dateParamWithDefault(request:)`` +/// - ``dateTimeParamWithDefault(request:)`` +/// - ``decimalParamWithDefault(request:)`` +/// - ``deprecatedFieldInSchemaPost(request:)`` +/// - ``deprecatedObjectInSchemaGet()`` +/// - ``deprecatedOperationNoCommentsGet(request:)`` +/// - ``deprecatedOperationWithCommentsGet(request:)`` +/// - ``emptyObjectGet(request:)`` +/// - ``emptyResponseObjectWithCommentGet()`` +/// - ``getGlobalNameOverride()`` +/// - ``ignoredGenerationGet()`` +/// - ``ignoresPost(request:)`` +/// - ``nameOverrideGet(request:)`` +/// - ``objectCircularReferenceGet()`` +/// - ``oneOfCircularReferenceGet()`` +/// - ``typedParameterGenerationGet(request:)`` +/// - ``usageExamplePost(request:security:)`` +/// +public protocol GenerationAPI { + func anchorTypesGet() async throws -> Response + + func arrayCircularReferenceGet() async throws -> Response + + func circularReferenceGet() async throws -> Response + + func dateParamWithDefault(request: Operations.DateParamWithDefaultRequest) async throws -> Response + + func dateTimeParamWithDefault(request: Operations.DateTimeParamWithDefaultRequest) async throws -> Response + + func decimalParamWithDefault(request: Operations.DecimalParamWithDefaultRequest) async throws -> Response + + func deprecatedFieldInSchemaPost(request: Shared.DeprecatedFieldInObject) async throws -> Response + + func deprecatedObjectInSchemaGet() async throws -> Response + + /// + /// - Parameter request: A ``Operations/DeprecatedOperationNoCommentsGetRequest`` object describing the input to the API operation + /// - Returns: A ``Operations/DeprecatedOperationNoCommentsGetResponse`` object describing the result of the API operation + /// - Throws: An error of type ``OpenAPIError`` + @available(*, deprecated, message: "This will be removed in a future release, please migrate away from it as soon as possible") + func deprecatedOperationNoCommentsGet(request: Operations.DeprecatedOperationNoCommentsGetRequest) async throws -> Response + + /// This is an endpoint setup to test deprecation with comments + /// + /// - Parameter request: A ``Operations/DeprecatedOperationWithCommentsGetRequest`` object describing the input to the API operation + /// - Returns: A ``Operations/DeprecatedOperationWithCommentsGetResponse`` object describing the result of the API operation + /// - Throws: An error of type ``OpenAPIError`` + @available(*, deprecated, renamed: "simplePathParameterObjects", message: "This operation is deprecated") + func deprecatedOperationWithCommentsGet(request: Operations.DeprecatedOperationWithCommentsGetRequest) async throws -> Response + + func emptyObjectGet(request: Operations.EmptyObjectGetRequest) async throws -> Response + + func emptyResponseObjectWithCommentGet() async throws -> Response + + func getGlobalNameOverride() async throws -> Response + + func ignoredGenerationGet() async throws -> Response + + func ignoresPost(request: Operations.IgnoresPostRequest) async throws -> Response + + func nameOverrideGet(request: Operations.NameOverrideGetRequest) async throws -> Response + + func objectCircularReferenceGet() async throws -> Response + + func oneOfCircularReferenceGet() async throws -> Response + + func typedParameterGenerationGet(request: Operations.TypedParameterGenerationGetRequest) async throws -> Response + + /// An operation used for testing usage examples that includes a large array of parameters and input types to ensure that all are handled correctly + /// + /// - Parameter request: A ``Operations/UsageExamplePostRequest`` object describing the input to the API operation + /// - Parameter security: An authentication object used to authenticate this request + /// - Returns: A ``Operations/UsageExamplePostResponse`` object describing the result of the API operation + /// - Throws: An error of type ``OpenAPIError`` + func usageExamplePost(request: Operations.UsageExamplePostRequest, security: Operations.UsageExamplePostSecurity) async throws -> Response +} + +// MARK: - GlobalsAPI + +/// Endpoints for testing global parameters. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``globalPathParameterGet(request:)`` +/// - ``globalsQueryParameterGet(request:)`` +/// +public protocol GlobalsAPI { + func globalPathParameterGet(request: Operations.GlobalPathParameterGetRequest) async throws -> Response + + func globalsQueryParameterGet(request: Operations.GlobalsQueryParameterGetRequest) async throws -> Response +} + +// MARK: - NestFirstAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``nestFirstGet()`` +/// +public protocol NestFirstAPI { + func nestFirstGet() async throws -> Response +} + +// MARK: - NestedAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``nestedGet()`` +/// +public protocol NestedAPI { + func nestedGet() async throws -> Response +} + +// MARK: - NestedFirstAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``nestedFirstGet()`` +/// +public protocol NestedFirstAPI { + func nestedFirstGet() async throws -> Response +} + +// MARK: - NestedSecondAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``nestedSecondGet()`` +/// +public protocol NestedSecondAPI { + func nestedSecondGet() async throws -> Response +} + +// MARK: - PaginationAPI +public enum PaginationServers { + +/// Describes the available servers that can be used when making 'paginationCursorBody' requests. +/// +/// Use this type when making calls to ``PaginationAPI/paginationCursorBody(request:server:)`` to customize the server which is used. + public enum PaginationCursorBody: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try PaginationServers.PaginationCursorBody.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'paginationCursorParams' requests. +/// +/// Use this type when making calls to ``PaginationAPI/paginationCursorParams(request:server:)`` to customize the server which is used. + public enum PaginationCursorParams: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try PaginationServers.PaginationCursorParams.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'paginationLimitOffsetOffsetBody' requests. +/// +/// Use this type when making calls to ``PaginationAPI/paginationLimitOffsetOffsetBody(request:server:)`` to customize the server which is used. + public enum PaginationLimitOffsetOffsetBody: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try PaginationServers.PaginationLimitOffsetOffsetBody.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'paginationLimitOffsetOffsetParams' requests. +/// +/// Use this type when making calls to ``PaginationAPI/paginationLimitOffsetOffsetParams(request:server:)`` to customize the server which is used. + public enum PaginationLimitOffsetOffsetParams: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try PaginationServers.PaginationLimitOffsetOffsetParams.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'paginationLimitOffsetPageBody' requests. +/// +/// Use this type when making calls to ``PaginationAPI/paginationLimitOffsetPageBody(request:server:)`` to customize the server which is used. + public enum PaginationLimitOffsetPageBody: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try PaginationServers.PaginationLimitOffsetPageBody.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'paginationLimitOffsetPageParams' requests. +/// +/// Use this type when making calls to ``PaginationAPI/paginationLimitOffsetPageParams(request:server:)`` to customize the server which is used. + public enum PaginationLimitOffsetPageParams: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try PaginationServers.PaginationLimitOffsetPageParams.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } +} + +/// Endpoints for testing the pagination extension +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``paginationCursorBody(request:server:)`` +/// - ``paginationCursorParams(request:server:)`` +/// - ``paginationLimitOffsetOffsetBody(request:server:)`` +/// - ``paginationLimitOffsetOffsetParams(request:server:)`` +/// - ``paginationLimitOffsetPageBody(request:server:)`` +/// - ``paginationLimitOffsetPageParams(request:server:)`` +/// +public protocol PaginationAPI { + func paginationCursorBody(request: Operations.PaginationCursorBodyRequestBody, server: PaginationServers.PaginationCursorBody?) async throws -> Response + + func paginationCursorParams(request: Operations.PaginationCursorParamsRequest, server: PaginationServers.PaginationCursorParams?) async throws -> Response + + func paginationLimitOffsetOffsetBody(request: Shared.LimitOffsetConfig, server: PaginationServers.PaginationLimitOffsetOffsetBody?) async throws -> Response + + func paginationLimitOffsetOffsetParams(request: Operations.PaginationLimitOffsetOffsetParamsRequest, server: PaginationServers.PaginationLimitOffsetOffsetParams?) async throws -> Response + + func paginationLimitOffsetPageBody(request: Shared.LimitOffsetConfig, server: PaginationServers.PaginationLimitOffsetPageBody?) async throws -> Response + + func paginationLimitOffsetPageParams(request: Operations.PaginationLimitOffsetPageParamsRequest, server: PaginationServers.PaginationLimitOffsetPageParams?) async throws -> Response +} + +// MARK: - ParametersAPI + +/// Endpoints for testing parameters. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``deepObjectQueryParamsMap(request:)`` +/// - ``deepObjectQueryParamsObject(request:)`` +/// - ``duplicateParam(request:)`` +/// - ``formQueryParamsArray(request:)`` +/// - ``formQueryParamsCamelObject(request:)`` +/// - ``formQueryParamsMap(request:)`` +/// - ``formQueryParamsObject(request:)`` +/// - ``formQueryParamsPrimitive(request:)`` +/// - ``formQueryParamsRefParamObject(request:)`` +/// - ``headerParamsArray(request:)`` +/// - ``headerParamsMap(request:)`` +/// - ``headerParamsObject(request:)`` +/// - ``headerParamsPrimitive(request:)`` +/// - ``jsonQueryParamsObject(request:)`` +/// - ``mixedParametersCamelCase(request:)`` +/// - ``mixedParametersPrimitives(request:)`` +/// - ``mixedQueryParams(request:)`` +/// - ``pathParameterJson(request:)`` +/// - ``pipeDelimitedQueryParamsArray(request:)`` +/// - ``simplePathParameterArrays(request:)`` +/// - ``simplePathParameterMaps(request:)`` +/// - ``simplePathParameterObjects(request:)`` +/// - ``simplePathParameterPrimitives(request:)`` +/// +public protocol ParametersAPI { + func deepObjectQueryParamsMap(request: Operations.DeepObjectQueryParamsMapRequest) async throws -> Response + + func deepObjectQueryParamsObject(request: Operations.DeepObjectQueryParamsObjectRequest) async throws -> Response + + func duplicateParam(request: Operations.DuplicateParamRequest) async throws -> Response + + func formQueryParamsArray(request: Operations.FormQueryParamsArrayRequest) async throws -> Response + + func formQueryParamsCamelObject(request: Operations.FormQueryParamsCamelObjectRequest) async throws -> Response + + func formQueryParamsMap(request: Operations.FormQueryParamsMapRequest) async throws -> Response + + func formQueryParamsObject(request: Operations.FormQueryParamsObjectRequest) async throws -> Response + + func formQueryParamsPrimitive(request: Operations.FormQueryParamsPrimitiveRequest) async throws -> Response + + func formQueryParamsRefParamObject(request: Operations.FormQueryParamsRefParamObjectRequest) async throws -> Response + + func headerParamsArray(request: Operations.HeaderParamsArrayRequest) async throws -> Response + + func headerParamsMap(request: Operations.HeaderParamsMapRequest) async throws -> Response + + func headerParamsObject(request: Operations.HeaderParamsObjectRequest) async throws -> Response + + func headerParamsPrimitive(request: Operations.HeaderParamsPrimitiveRequest) async throws -> Response + + func jsonQueryParamsObject(request: Operations.JsonQueryParamsObjectRequest) async throws -> Response + + func mixedParametersCamelCase(request: Operations.MixedParametersCamelCaseRequest) async throws -> Response + + func mixedParametersPrimitives(request: Operations.MixedParametersPrimitivesRequest) async throws -> Response + + func mixedQueryParams(request: Operations.MixedQueryParamsRequest) async throws -> Response + + func pathParameterJson(request: Operations.PathParameterJsonRequest) async throws -> Response + + func pipeDelimitedQueryParamsArray(request: Operations.PipeDelimitedQueryParamsArrayRequest) async throws -> Response + + func simplePathParameterArrays(request: Operations.SimplePathParameterArraysRequest) async throws -> Response + + func simplePathParameterMaps(request: Operations.SimplePathParameterMapsRequest) async throws -> Response + + func simplePathParameterObjects(request: Operations.SimplePathParameterObjectsRequest) async throws -> Response + + func simplePathParameterPrimitives(request: Operations.SimplePathParameterPrimitivesRequest) async throws -> Response +} + +// MARK: - RequestBodiesAPI +public enum RequestBodiesServers { + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArray' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArray(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArray: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArray.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayCamelCase' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayCamelCase(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayCamelCase: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayCamelCase.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayOfArray' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayOfArray(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayOfArray: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArray.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayOfArrayCamelCase' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayOfArrayCamelCase(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayOfArrayCamelCase: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayCamelCase.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayOfArrayOfPrimitive' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayOfArrayOfPrimitive(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayOfMap' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayOfMap(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayOfMap: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMap.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayOfMapCamelCase' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayOfMapCamelCase(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayOfMapCamelCase: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMapCamelCase.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonArrayOfPrimitive' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonArrayOfPrimitive(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonArrayOfPrimitive: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfPrimitive.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMap' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMap(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMap: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMap.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapCamelCase' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapCamelCase(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapCamelCase: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapCamelCase.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapOfArray' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapOfArray(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapOfArray: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArray.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapOfArrayCamelCase' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapOfArrayCamelCase(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapOfArrayCamelCase: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArrayCamelCase.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapOfMap' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapOfMap(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapOfMap: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMap.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapOfMapCamelCase' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapOfMapCamelCase(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapOfMapCamelCase: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapCamelCase.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapOfMapOfPrimitive' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapOfMapOfPrimitive(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapOfMapOfPrimitive: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapOfPrimitive.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyPostApplicationJsonMapOfPrimitive' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyPostApplicationJsonMapOfPrimitive(request:server:)`` to customize the server which is used. + public enum RequestBodyPostApplicationJsonMapOfPrimitive: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyPostApplicationJsonMapOfPrimitive.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyReadAndWrite' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyReadAndWrite(request:server:)`` to customize the server which is used. + public enum RequestBodyReadAndWrite: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyReadAndWrite.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyReadOnlyInput' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyReadOnlyInput(request:server:)`` to customize the server which is used. + public enum RequestBodyReadOnlyInput: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyReadOnlyInput.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyReadOnlyUnion' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyReadOnlyUnion(request:server:)`` to customize the server which is used. + public enum RequestBodyReadOnlyUnion: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyReadOnlyUnion.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyReadWriteOnlyUnion' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyReadWriteOnlyUnion(request:server:)`` to customize the server which is used. + public enum RequestBodyReadWriteOnlyUnion: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyReadWriteOnlyUnion.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyWriteOnly' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyWriteOnly(request:server:)`` to customize the server which is used. + public enum RequestBodyWriteOnly: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyWriteOnly.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyWriteOnlyOutput' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyWriteOnlyOutput(request:server:)`` to customize the server which is used. + public enum RequestBodyWriteOnlyOutput: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyWriteOnlyOutput.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'requestBodyWriteOnlyUnion' requests. +/// +/// Use this type when making calls to ``RequestBodiesAPI/requestBodyWriteOnlyUnion(request:server:)`` to customize the server which is used. + public enum RequestBodyWriteOnlyUnion: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RequestBodiesServers.RequestBodyWriteOnlyUnion.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } +} + +/// Endpoints for testing request bodies. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``nullableObjectPost(request:)`` +/// - ``nullableRequiredEmptyObjectPost(request:)`` +/// - ``nullableRequiredPropertyPost(request:)`` +/// - ``nullableRequiredSharedObjectPost(request:)`` +/// - ``requestBodyPostApplicationJsonArray(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayCamelCase(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayObj(request:)`` +/// - ``requestBodyPostApplicationJsonArrayObjCamelCase(request:)`` +/// - ``requestBodyPostApplicationJsonArrayOfArray(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayOfArrayCamelCase(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayOfArrayOfPrimitive(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayOfMap(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayOfMapCamelCase(request:server:)`` +/// - ``requestBodyPostApplicationJsonArrayOfPrimitive(request:server:)`` +/// - ``requestBodyPostApplicationJsonDeep(request:)`` +/// - ``requestBodyPostApplicationJsonDeepCamelCase(request:)`` +/// - ``requestBodyPostApplicationJsonMap(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapCamelCase(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapObj(request:)`` +/// - ``requestBodyPostApplicationJsonMapObjCamelCase(request:)`` +/// - ``requestBodyPostApplicationJsonMapOfArray(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapOfArrayCamelCase(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapOfMap(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapOfMapCamelCase(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapOfMapOfPrimitive(request:server:)`` +/// - ``requestBodyPostApplicationJsonMapOfPrimitive(request:server:)`` +/// - ``requestBodyPostApplicationJsonMultipleJsonFiltered(request:)`` +/// - ``requestBodyPostApplicationJsonSimple(request:)`` +/// - ``requestBodyPostApplicationJsonSimpleCamelCase(request:)`` +/// - ``requestBodyPostComplexNumberTypes(request:)`` +/// - ``requestBodyPostDefaultsAndConsts(request:)`` +/// - ``requestBodyPostEmptyObject(request:)`` +/// - ``requestBodyPostFormDeep(request:)`` +/// - ``requestBodyPostFormMapPrimitive(request:)`` +/// - ``requestBodyPostFormSimple(request:)`` +/// - ``requestBodyPostJsonDataTypesArrayBigInt(request:)`` +/// - ``requestBodyPostJsonDataTypesArrayDate(request:)`` +/// - ``requestBodyPostJsonDataTypesArrayDecimalStr(request:)`` +/// - ``requestBodyPostJsonDataTypesBigInt(request:)`` +/// - ``requestBodyPostJsonDataTypesBigIntStr(request:)`` +/// - ``requestBodyPostJsonDataTypesBoolean(request:)`` +/// - ``requestBodyPostJsonDataTypesDate(request:)`` +/// - ``requestBodyPostJsonDataTypesDateTime(request:)`` +/// - ``requestBodyPostJsonDataTypesDecimal(request:)`` +/// - ``requestBodyPostJsonDataTypesDecimalStr(request:)`` +/// - ``requestBodyPostJsonDataTypesFloat32(request:)`` +/// - ``requestBodyPostJsonDataTypesInt32(request:)`` +/// - ``requestBodyPostJsonDataTypesInteger(request:)`` +/// - ``requestBodyPostJsonDataTypesMapBigIntStr(request:)`` +/// - ``requestBodyPostJsonDataTypesMapDateTime(request:)`` +/// - ``requestBodyPostJsonDataTypesMapDecimal(request:)`` +/// - ``requestBodyPostJsonDataTypesNumber(request:)`` +/// - ``requestBodyPostJsonDataTypesString(request:)`` +/// - ``requestBodyPostMultipleContentTypesComponentFiltered(request:)`` +/// - ``requestBodyPostMultipleContentTypesInlineFiltered(request:)`` +/// - ``requestBodyPostMultipleContentTypesSplitParamForm(request:)`` +/// - ``requestBodyPostMultipleContentTypesSplitParamJson(request:)`` +/// - ``requestBodyPostMultipleContentTypesSplitParamMultipart(request:)`` +/// - ``requestBodyPostMultipleContentTypesSplitForm(request:)`` +/// - ``requestBodyPostMultipleContentTypesSplitJson(request:)`` +/// - ``requestBodyPostMultipleContentTypesSplitMultipart(request:)`` +/// - ``requestBodyPostNotNullableNotRequiredStringBody(request:)`` +/// - ``requestBodyPostNullArray(request:)`` +/// - ``requestBodyPostNullDictionary(request:)`` +/// - ``requestBodyPostNullableNotRequiredStringBody(request:)`` +/// - ``requestBodyPostNullableRequiredStringBody(request:)`` +/// - ``requestBodyPutBytes(request:)`` +/// - ``requestBodyPutBytesWithParams(request:)`` +/// - ``requestBodyPutMultipartDeep(request:)`` +/// - ``requestBodyPutMultipartDifferentFileName(request:)`` +/// - ``requestBodyPutMultipartFile(request:)`` +/// - ``requestBodyPutMultipartSimple(request:)`` +/// - ``requestBodyPutString(request:)`` +/// - ``requestBodyPutStringWithParams(request:)`` +/// - ``requestBodyReadAndWrite(request:server:)`` +/// - ``requestBodyReadOnlyInput(request:server:)`` +/// - ``requestBodyReadOnlyUnion(request:server:)`` +/// - ``requestBodyReadWriteOnlyUnion(request:server:)`` +/// - ``requestBodyWriteOnly(request:server:)`` +/// - ``requestBodyWriteOnlyOutput(request:server:)`` +/// - ``requestBodyWriteOnlyUnion(request:server:)`` +/// +public protocol RequestBodiesAPI { + func nullableObjectPost(request: Shared.NullableObject) async throws -> Response + + func nullableRequiredEmptyObjectPost(request: Operations.NullableRequiredEmptyObjectPostRequestBody) async throws -> Response + + func nullableRequiredPropertyPost(request: Operations.NullableRequiredPropertyPostRequestBody) async throws -> Response + + func nullableRequiredSharedObjectPost(request: Operations.NullableRequiredSharedObjectPostRequestBody) async throws -> Response + + func requestBodyPostApplicationJsonArray(request: [Shared.SimpleObject], server: RequestBodiesServers.RequestBodyPostApplicationJsonArray?) async throws -> Response + + func requestBodyPostApplicationJsonArrayCamelCase(request: [Shared.SimpleObjectCamelCase], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayCamelCase?) async throws -> Response + + func requestBodyPostApplicationJsonArrayObj(request: [Shared.SimpleObject]) async throws -> Response + + func requestBodyPostApplicationJsonArrayObjCamelCase(request: [Shared.SimpleObjectCamelCase]) async throws -> Response + + func requestBodyPostApplicationJsonArrayOfArray(request: [[Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArray?) async throws -> Response + + func requestBodyPostApplicationJsonArrayOfArrayCamelCase(request: [[Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayCamelCase?) async throws -> Response + + func requestBodyPostApplicationJsonArrayOfArrayOfPrimitive(request: [[String]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive?) async throws -> Response + + func requestBodyPostApplicationJsonArrayOfMap(request: [[String: Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMap?) async throws -> Response + + func requestBodyPostApplicationJsonArrayOfMapCamelCase(request: [[String: Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMapCamelCase?) async throws -> Response + + func requestBodyPostApplicationJsonArrayOfPrimitive(request: [String], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfPrimitive?) async throws -> Response + + func requestBodyPostApplicationJsonDeep(request: Shared.DeepObject) async throws -> Response + + func requestBodyPostApplicationJsonDeepCamelCase(request: Shared.DeepObjectCamelCase) async throws -> Response + + func requestBodyPostApplicationJsonMap(request: [String: Shared.SimpleObject], server: RequestBodiesServers.RequestBodyPostApplicationJsonMap?) async throws -> Response + + func requestBodyPostApplicationJsonMapCamelCase(request: [String: Shared.SimpleObjectCamelCase], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapCamelCase?) async throws -> Response + + func requestBodyPostApplicationJsonMapObj(request: [String: Shared.SimpleObject]) async throws -> Response + + func requestBodyPostApplicationJsonMapObjCamelCase(request: [String: Shared.SimpleObjectCamelCase]) async throws -> Response + + func requestBodyPostApplicationJsonMapOfArray(request: [String: [Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArray?) async throws -> Response + + func requestBodyPostApplicationJsonMapOfArrayCamelCase(request: [String: [Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArrayCamelCase?) async throws -> Response + + func requestBodyPostApplicationJsonMapOfMap(request: [String: [String: Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMap?) async throws -> Response + + func requestBodyPostApplicationJsonMapOfMapCamelCase(request: [String: [String: Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapCamelCase?) async throws -> Response + + func requestBodyPostApplicationJsonMapOfMapOfPrimitive(request: [String: [String: String]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapOfPrimitive?) async throws -> Response + + func requestBodyPostApplicationJsonMapOfPrimitive(request: [String: String], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfPrimitive?) async throws -> Response + + func requestBodyPostApplicationJsonMultipleJsonFiltered(request: Shared.SimpleObject) async throws -> Response + + func requestBodyPostApplicationJsonSimple(request: Shared.SimpleObject) async throws -> Response + + func requestBodyPostApplicationJsonSimpleCamelCase(request: Shared.SimpleObjectCamelCase) async throws -> Response + + func requestBodyPostComplexNumberTypes(request: Operations.RequestBodyPostComplexNumberTypesRequest) async throws -> Response + + func requestBodyPostDefaultsAndConsts(request: Shared.DefaultsAndConsts) async throws -> Response + + func requestBodyPostEmptyObject(request: Operations.RequestBodyPostEmptyObjectRequestBody) async throws -> Response + + func requestBodyPostFormDeep(request: Shared.DeepObject) async throws -> Response + + func requestBodyPostFormMapPrimitive(request: [String: String]) async throws -> Response + + func requestBodyPostFormSimple(request: Shared.SimpleObject) async throws -> Response + + func requestBodyPostJsonDataTypesArrayBigInt(request: [Int]) async throws -> Response + + func requestBodyPostJsonDataTypesArrayDate(request: [Date]) async throws -> Response + + func requestBodyPostJsonDataTypesArrayDecimalStr(request: [String]) async throws -> Response + + func requestBodyPostJsonDataTypesBigInt(request: Int) async throws -> Response + + func requestBodyPostJsonDataTypesBigIntStr(request: String) async throws -> Response + + func requestBodyPostJsonDataTypesBoolean(request: Bool) async throws -> Response + + func requestBodyPostJsonDataTypesDate(request: Date) async throws -> Response + + func requestBodyPostJsonDataTypesDateTime(request: Date) async throws -> Response + + func requestBodyPostJsonDataTypesDecimal(request: Double) async throws -> Response + + func requestBodyPostJsonDataTypesDecimalStr(request: String) async throws -> Response + + func requestBodyPostJsonDataTypesFloat32(request: Double) async throws -> Response + + func requestBodyPostJsonDataTypesInt32(request: Int) async throws -> Response + + func requestBodyPostJsonDataTypesInteger(request: Int) async throws -> Response + + func requestBodyPostJsonDataTypesMapBigIntStr(request: [String: String]) async throws -> Response + + func requestBodyPostJsonDataTypesMapDateTime(request: [String: Date]) async throws -> Response + + func requestBodyPostJsonDataTypesMapDecimal(request: [String: Double]) async throws -> Response + + func requestBodyPostJsonDataTypesNumber(request: Double) async throws -> Response + + func requestBodyPostJsonDataTypesString(request: String) async throws -> Response + + func requestBodyPostMultipleContentTypesComponentFiltered(request: Shared.SimpleObject) async throws -> Response + + func requestBodyPostMultipleContentTypesInlineFiltered(request: Operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON) async throws -> Response + + func requestBodyPostMultipleContentTypesSplitParamForm(request: Operations.RequestBodyPostMultipleContentTypesSplitParamFormRequest) async throws -> Response + + func requestBodyPostMultipleContentTypesSplitParamJson(request: Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRequest) async throws -> Response + + func requestBodyPostMultipleContentTypesSplitParamMultipart(request: Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRequest) async throws -> Response + + func requestBodyPostMultipleContentTypesSplitForm(request: Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded) async throws -> Response + + func requestBodyPostMultipleContentTypesSplitJson(request: Operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON) async throws -> Response + + func requestBodyPostMultipleContentTypesSplitMultipart(request: Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData) async throws -> Response + + func requestBodyPostNotNullableNotRequiredStringBody(request: String) async throws -> Response + + func requestBodyPostNullArray(request: [String]) async throws -> Response + + func requestBodyPostNullDictionary(request: [String: String]) async throws -> Response + + func requestBodyPostNullableNotRequiredStringBody(request: String) async throws -> Response + + func requestBodyPostNullableRequiredStringBody(request: String) async throws -> Response + + func requestBodyPutBytes(request: Data) async throws -> Response + + func requestBodyPutBytesWithParams(request: Operations.RequestBodyPutBytesWithParamsRequest) async throws -> Response + + func requestBodyPutMultipartDeep(request: Shared.DeepObject) async throws -> Response + + func requestBodyPutMultipartDifferentFileName(request: Operations.RequestBodyPutMultipartDifferentFileNameRequestBody) async throws -> Response + + func requestBodyPutMultipartFile(request: Operations.RequestBodyPutMultipartFileRequestBody) async throws -> Response + + func requestBodyPutMultipartSimple(request: Shared.SimpleObject) async throws -> Response + + func requestBodyPutString(request: String) async throws -> Response + + func requestBodyPutStringWithParams(request: Operations.RequestBodyPutStringWithParamsRequest) async throws -> Response + + func requestBodyReadAndWrite(request: Shared.ReadWriteObjectInput, server: RequestBodiesServers.RequestBodyReadAndWrite?) async throws -> Response + + func requestBodyReadOnlyInput(request: Shared.ReadOnlyObjectInput, server: RequestBodiesServers.RequestBodyReadOnlyInput?) async throws -> Response + + func requestBodyReadOnlyUnion(request: Shared.WeaklyTypedOneOfReadOnlyObjectInput, server: RequestBodiesServers.RequestBodyReadOnlyUnion?) async throws -> Response + + func requestBodyReadWriteOnlyUnion(request: Shared.WeaklyTypedOneOfReadWriteObjectInput, server: RequestBodiesServers.RequestBodyReadWriteOnlyUnion?) async throws -> Response + + func requestBodyWriteOnly(request: Shared.WriteOnlyObject, server: RequestBodiesServers.RequestBodyWriteOnly?) async throws -> Response + + func requestBodyWriteOnlyOutput(request: Shared.WriteOnlyObject, server: RequestBodiesServers.RequestBodyWriteOnlyOutput?) async throws -> Response + + func requestBodyWriteOnlyUnion(request: Shared.WeaklyTypedOneOfWriteOnlyObject, server: RequestBodiesServers.RequestBodyWriteOnlyUnion?) async throws -> Response +} + +// MARK: - ResourceAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``createFile(request:)`` +/// - ``createResource(request:)`` +/// - ``deleteResource(request:)`` +/// - ``getResource(request:)`` +/// - ``updateResource(request:)`` +/// +public protocol ResourceAPI { + func createFile(request: Operations.CreateFileRequestBody) async throws -> Response + + func createResource(request: Shared.ExampleResource) async throws -> Response + + func deleteResource(request: Operations.DeleteResourceRequest) async throws -> Response + + func getResource(request: Operations.GetResourceRequest) async throws -> Response + + func updateResource(request: Operations.UpdateResourceRequest) async throws -> Response +} + +// MARK: - ResponseBodiesAPI +public enum ResponseBodiesServers { + +/// Describes the available servers that can be used when making 'responseBodyOptionalGet' requests. +/// +/// Use this type when making calls to ``ResponseBodiesAPI/responseBodyOptionalGet(server:)`` to customize the server which is used. + public enum ResponseBodyOptionalGet: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try ResponseBodiesServers.ResponseBodyOptionalGet.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'responseBodyReadOnly' requests. +/// +/// Use this type when making calls to ``ResponseBodiesAPI/responseBodyReadOnly(server:)`` to customize the server which is used. + public enum ResponseBodyReadOnly: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try ResponseBodiesServers.ResponseBodyReadOnly.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } +} + +/// Endpoints for testing response bodies. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``responseBodyAdditionalPropertiesComplexNumbersPost(request:)`` +/// - ``responseBodyAdditionalPropertiesDatePost(request:)`` +/// - ``responseBodyAdditionalPropertiesObjectPost(request:)`` +/// - ``responseBodyAdditionalPropertiesPost(request:)`` +/// - ``responseBodyBytesGet()`` +/// - ``responseBodyEmptyWithHeaders(request:)`` +/// - ``responseBodyOptionalGet(server:)`` +/// - ``responseBodyReadOnly(server:)`` +/// - ``responseBodyStringGet()`` +/// - ``responseBodyXmlGet()`` +/// - ``responseBodyZeroValueComplexTypePtrsPost(request:)`` +/// +public protocol ResponseBodiesAPI { + func responseBodyAdditionalPropertiesComplexNumbersPost(request: [String: String]) async throws -> Response + + func responseBodyAdditionalPropertiesDatePost(request: [String: Date]) async throws -> Response + + func responseBodyAdditionalPropertiesObjectPost(request: [String: Shared.SimpleObject]) async throws -> Response + + func responseBodyAdditionalPropertiesPost(request: [String: String]) async throws -> Response + + func responseBodyBytesGet() async throws -> Response + + func responseBodyEmptyWithHeaders(request: Operations.ResponseBodyEmptyWithHeadersRequest) async throws -> ResponseWithHeaders + + func responseBodyOptionalGet(server: ResponseBodiesServers.ResponseBodyOptionalGet?) async throws -> Response + + func responseBodyReadOnly(server: ResponseBodiesServers.ResponseBodyReadOnly?) async throws -> Response + + func responseBodyStringGet() async throws -> Response + + func responseBodyXmlGet() async throws -> Response + + func responseBodyZeroValueComplexTypePtrsPost(request: Shared.ObjWithZeroValueComplexTypePtrs) async throws -> Response +} + +// MARK: - RetriesAPI +public enum RetriesServers { + +/// Describes the available servers that can be used when making 'retriesGet' requests. +/// +/// Use this type when making calls to ``RetriesAPI/retriesGet(request:server:)`` to customize the server which is used. + public enum RetriesGet: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35456` + case server1 + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35456" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35456" + ] + + static func `default`() throws -> Server { + return try RetriesServers.RetriesGet.server1.server() + } + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + } + } + } +} + +/// Endpoints for testing retries. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``retriesGet(request:server:)`` +/// +public protocol RetriesAPI { + func retriesGet(request: Operations.RetriesGetRequest, server: RetriesServers.RetriesGet?) async throws -> Response +} + +// MARK: - SecondAPI +/// ## Topics +/// +/// ### API calls +/// +/// - ``groupSecondGet()`` +/// +public protocol SecondAPI { + func groupSecondGet() async throws -> Response +} + +// MARK: - ServersAPI +public enum ServersServers { + +/// Describes the available servers that can be used when making 'selectServerWithID' requests. +/// +/// Use this type when making calls to ``ServersAPI/selectServerWithID(server:)`` to customize the server which is used. + public enum SelectServerWithID: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35123` + case valid + /// Supported server value. + /// + /// Corresponds to `http://broken` + case broken + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35123", + /// "http://broken" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35123", + "http://broken" + ] + + static func `default`() throws -> Server { + return try ServersServers.SelectServerWithID.valid.server() + } + + func server() throws -> Server { + switch self { + case .valid: + return try type(of: self).server(at: 0, substituting: nil) + case .broken: + return try type(of: self).server(at: 1, substituting: nil) + } + } + } + +/// Describes the available servers that can be used when making 'serverWithProtocolTemplate' requests. +/// +/// Use this type when making calls to ``ServersAPI/serverWithProtocolTemplate(server:)`` to customize the server which is used. + public enum ServerWithProtocolTemplate: Servers, ServerConvertible { + /// Supported server value with substituted variables + /// + /// Corresponds to `{protocol}://{hostname}:{port}` + case main(hostname: String = "localhost", port: String = "35123", `protocol`: String = "http") + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "{protocol}://{hostname}:{port}" + /// ] + /// ``` + public static let urlStrings = [ + "{protocol}://{hostname}:{port}" + ] + + static func `default`() throws -> Server { + return try ServersServers.ServerWithProtocolTemplate.main().server() + } + + func server() throws -> Server { + switch self { + case .main(let hostname, let port, let `protocol`): + return try type(of: self).server(at: 0, substituting: ["hostname": hostname, "port": port, "protocol": `protocol`]) + } + } + } + +/// Describes the available servers that can be used when making 'serverWithTemplates' requests. +/// +/// Use this type when making calls to ``ServersAPI/serverWithTemplates(server:)`` to customize the server which is used. + public enum ServerWithTemplates: Servers, ServerConvertible { + /// Supported server value with substituted variables + /// + /// Corresponds to `http://{hostname}:{port}` + case server1(hostname: String = "localhost", port: String = "35123") + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://{hostname}:{port}" + /// ] + /// ``` + public static let urlStrings = [ + "http://{hostname}:{port}" + ] + + static func `default`() throws -> Server { + return try ServersServers.ServerWithTemplates.server1().server() + } + + func server() throws -> Server { + switch self { + case .server1(let hostname, let port): + return try type(of: self).server(at: 0, substituting: ["hostname": hostname, "port": port]) + } + } + } + +/// Describes the available servers that can be used when making 'serversByIDWithTemplates' requests. +/// +/// Use this type when making calls to ``ServersAPI/serversByIDWithTemplates(server:)`` to customize the server which is used. + public enum ServersByIDWithTemplates: Servers, ServerConvertible { + /// Supported server value with substituted variables + /// + /// Corresponds to `http://{hostname}:{port}` + case main(hostname: String = "localhost", port: String = "35123") + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://{hostname}:{port}" + /// ] + /// ``` + public static let urlStrings = [ + "http://{hostname}:{port}" + ] + + static func `default`() throws -> Server { + return try ServersServers.ServersByIDWithTemplates.main().server() + } + + func server() throws -> Server { + switch self { + case .main(let hostname, let port): + return try type(of: self).server(at: 0, substituting: ["hostname": hostname, "port": port]) + } + } + } +} + +/// Endpoints for testing servers. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``selectGlobalServer()`` +/// - ``selectServerWithID(server:)`` +/// - ``serverWithProtocolTemplate(server:)`` +/// - ``serverWithTemplates(server:)`` +/// - ``serverWithTemplatesGlobal()`` +/// - ``serversByIDWithTemplates(server:)`` +/// +public protocol ServersAPI { + func selectGlobalServer() async throws -> ResponseWithHeaders + + /// Select a server by ID. + /// + /// - Parameter server: An optional server override to use for this operation + /// - Returns: A ``Operations/SelectServerWithIDResponse`` object describing the result of the API operation + /// - Throws: An error of type ``OpenAPIError`` + func selectServerWithID(server: ServersServers.SelectServerWithID?) async throws -> Response + + func serverWithProtocolTemplate(server: ServersServers.ServerWithProtocolTemplate?) async throws -> Response + + func serverWithTemplates(server: ServersServers.ServerWithTemplates?) async throws -> Response + + func serverWithTemplatesGlobal() async throws -> Response + + func serversByIDWithTemplates(server: ServersServers.ServersByIDWithTemplates?) async throws -> Response +} + +// MARK: - TelemetryAPI + +/// Endpoints for testing telemetry. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``telemetrySpeakeasyUserAgentGet(request:)`` +/// - ``telemetryUserAgentGet()`` +/// +public protocol TelemetryAPI { + func telemetrySpeakeasyUserAgentGet(request: Operations.TelemetrySpeakeasyUserAgentGetRequest) async throws -> Response + + func telemetryUserAgentGet() async throws -> Response +} + +// MARK: - UnionsAPI + +/// Endpoints for testing union types. +/// +/// ## Topics +/// +/// ### API calls +/// +/// - ``flattenedTypedObjectPost(request:)`` +/// - ``mixedTypeOneOfPost(request:)`` +/// - ``nullableOneOfRefInObjectPost(request:)`` +/// - ``nullableOneOfSchemaPost(request:)`` +/// - ``nullableOneOfTypeInObjectPost(request:)`` +/// - ``nullableTypedObjectPost(request:)`` +/// - ``primitiveTypeOneOfPost(request:)`` +/// - ``stronglyTypedOneOfPost(request:)`` +/// - ``typedObjectNullableOneOfPost(request:)`` +/// - ``typedObjectOneOfPost(request:)`` +/// - ``unionDateNull(request:)`` +/// - ``unionDateTimeNull(request:)`` +/// - ``weaklyTypedOneOfPost(request:)`` +/// +public protocol UnionsAPI { + func flattenedTypedObjectPost(request: Shared.FlattenedTypedObject1) async throws -> Response + + func mixedTypeOneOfPost(request: Operations.MixedTypeOneOfPostRequestBody) async throws -> Response + + func nullableOneOfRefInObjectPost(request: Shared.NullableOneOfRefInObject) async throws -> Response + + func nullableOneOfSchemaPost(request: Operations.NullableOneOfSchemaPostRequestBody) async throws -> Response + + func nullableOneOfTypeInObjectPost(request: Shared.NullableOneOfTypeInObject) async throws -> Response + + func nullableTypedObjectPost(request: Shared.TypedObject1) async throws -> Response + + func primitiveTypeOneOfPost(request: Operations.PrimitiveTypeOneOfPostRequestBody) async throws -> Response + + func stronglyTypedOneOfPost(request: Shared.StronglyTypedOneOfObject) async throws -> Response + + func typedObjectNullableOneOfPost(request: Shared.TypedObjectNullableOneOf) async throws -> Response + + func typedObjectOneOfPost(request: Shared.TypedObjectOneOf) async throws -> Response + + func unionDateNull(request: Date) async throws -> Response + + func unionDateTimeNull(request: Date) async throws -> Response + + func weaklyTypedOneOfPost(request: Shared.WeaklyTypedOneOfObject) async throws -> Response +} diff --git a/swift-client-sdk/Sources/OpenAPI/OpenAPIError.swift b/swift-client-sdk/Sources/OpenAPI/OpenAPIError.swift new file mode 100755 index 000000000..4b05c00b4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/OpenAPIError.swift @@ -0,0 +1,208 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +/// Describes errors that occur when making requests to the API. +/// +/// ``OpenAPIError`` describes problems which occur through the lifecycle of making a request to the API, from constructing the underlying network request, through making the network request and handling the resulting response. +/// +/// Most of the error values have associated failure reasons: +/// - ``OpenAPIError/failedToConstructRequestURL(_:)`` +/// - ``OpenAPIError/failedToSerializeRequestParameters(_:)`` +/// - ``OpenAPIError/failedToConstructRequest(_:)`` +/// - ``OpenAPIError/failedToHandleResponse(_:)`` +/// +/// which provide more information about why the error occurred. +/// +/// If a network error occurs when making an API request, ``OpenAPIError/failedToMakeNetworkRequest(error:)`` has an associated [`Error`](https://developer.apple.com/documentation/swift/error) value which describes more information about why the network error occurred. +/// +/// In exceptional circumstances there may be an internal error which occurs in the implementation of ``OpenAPI`` or in the underlying system frameworks. Where this occurs, ``OpenAPIError/internalError(error:)`` provides this information, with additional context if it is available. +/// +/// ### Getting an error description +/// +/// ``OpenAPIError`` conforms to the [`LocalizedError`](https://developer.apple.com/documentation/foundation/localizederror) protocol. As such a readable description of the error is provided through the [`errorDescription`](https://developer.apple.com/documentation/foundation/localizederror/2946895-errordescription) property. +/// +/// ## Topics +/// +/// ### Errors +/// - ``OpenAPIError/failedToConstructRequestURL(_:)`` +/// - ``OpenAPIError/failedToSerializeRequestParameters(_:)`` +/// - ``OpenAPIError/failedToConstructRequest(_:)`` +/// - ``OpenAPIError/failedToMakeNetworkRequest(error:)`` +/// - ``OpenAPIError/failedToHandleResponse(_:)`` +/// - ``OpenAPIError/internalError(error:)`` +/// +/// ### Error failure information +/// - ``OpenAPIError/RequestURLConstructionFailureReason`` +/// - ``OpenAPIError/ParameterSerializationFailureReason`` +/// - ``OpenAPIError/RequestConstructionFailureReason`` +/// - ``OpenAPIError/ResponseHandlingFailureReason`` +/// +/// ### Convenience properties +/// - ``OpenAPIError/underlyingError`` +public enum OpenAPIError: Swift.Error { + /// Failure reasons for ``OpenAPIError/failedToConstructRequestURL(_:)`` errors + public enum RequestURLConstructionFailureReason { + /// An invalid URL was returned when using a specified server definition to make a network request. + case invalidServerURL(string: String) + /// An invalid URL was used to make a network request. + case invalidRequestURL(string: String) + /// No default server could be found when making a network request. + case missingDefaultServer(serverType: String) + /// A server in a server list was specified but the index of that server is outside of the bounds of the list. + case invalidServerIndex(serverType: String, index: Int) + } + + /// Failure reasons for ``OpenAPIError/failedToSerializeRequestParameters(_:)`` errors + public enum ParameterSerializationFailureReason { + /// A server URL with parameters was used but the substitution parameter named `key` was not provided. + /// + /// A server URL with substitution parameters — for example `https://domain.com:{port}/{configurable}/path` — was specified. + case missingServerParameterSubstitutionKey(_ key: String, serverString: String) + /// An API operation path with parameters was used but the substitution parameter named `key` was not specified. + /// + /// An API operation with a path with substitution parameters — for example `"/{configurable}/endpoint"` — was specified. + case missingPathParameterSubstitutionKey(_ key: String, path: String) + /// A parameter was unexpectedly requested to be serialized to a given format. + case invalidSerializationParameter(type: String, format: String) + /// Failed to serialize a [Data](https://developer.apple.com/documentation/foundation/data) object when constructing the request. + case failedToSerializeData + } + + /// Failure reasons for ``OpenAPIError/failedToConstructRequest(_:)`` errors + public enum RequestConstructionFailureReason { + /// During request construction, a request body was not provided when one was expected. + case missingRequiredRequestBody + } + + /// Failure reasons for ``OpenAPIError/failedToHandleResponse(_:)`` errors + public enum ResponseHandlingFailureReason { + /// Failed to decode response data. + case failedToDecodeResponse + /// Failed to deserialize response JSON. + case failedToDeserializeJSON(_ error: Swift.Error) + } + + /// Constructing the URL to make a network request failed. + case failedToConstructRequestURL(_ reason: RequestURLConstructionFailureReason) + /// Serializing the parameters required to make the network request failed. + case failedToSerializeRequestParameters(_ reason: ParameterSerializationFailureReason) + /// Constructing a underlying request object to make a network request failed. + case failedToConstructRequest(_ reason: RequestConstructionFailureReason) + /// Making an underlying network request failed. + case failedToMakeNetworkRequest(error: Swift.Error) + /// Handling the response data from an API request failed. + case failedToHandleResponse(_ reason: ResponseHandlingFailureReason) + + /// An attempt to get response data from a response failed because it was missing. + case missingResponseData + + /// An error internal to the implementation of ``Client`` occurred. + case internalError(error: Swift.Error?) + +} + +extension OpenAPIError: LocalizedError { + public var errorDescription: String? { + switch self { + case .failedToConstructRequestURL(let reason): + return "Failed to construct URL for request: \(reason.localizedDescription)" + case .failedToSerializeRequestParameters(let reason): + return "Failed to serialize parameters for request: \(reason.localizedDescription)" + case .failedToConstructRequest(let reason): + return "Failed to construct request: \(reason.localizedDescription)" + case .failedToMakeNetworkRequest(let error): + return "Failed to make network request: \(error.localizedDescription)" + case .failedToHandleResponse(let reason): + return "Failed to handle response: \(reason.localizedDescription)" + case .missingResponseData: + return "The response didn't contain the requested data" + case .internalError: + return "The operation couldn't be completed" + } + } +} + +extension OpenAPIError { + /// Returns the associated underlying error, if available. + public var underlyingError: Swift.Error? { + switch self { + case .internalError(let error): + return error + case .failedToMakeNetworkRequest(let error): + return error + case .failedToHandleResponse(let reason): + switch reason { + case .failedToDecodeResponse: + return nil + case .failedToDeserializeJSON(let error): + return error + } + case .failedToConstructRequestURL, .failedToSerializeRequestParameters, .failedToConstructRequest, .missingResponseData: + return nil + } + } +} + +extension OpenAPIError.RequestURLConstructionFailureReason { + public var localizedDescription: String { + switch self { + case .invalidServerURL(string: let serverString): + return "Server URL '\(serverString)' is not valid" + case .invalidRequestURL(string: let string): + return "Request URL '\(string)' is not valid" + case .missingDefaultServer(let serverType): + return "No default server is available for type '\(serverType)'" + case .invalidServerIndex(serverType: let serverType, index: let index): + return "Server type '\(serverType)' has no server defined at index \(index)" + } + } +} + +extension OpenAPIError.ParameterSerializationFailureReason { + public var localizedDescription: String { + switch self { + case .missingServerParameterSubstitutionKey(let key, serverString: let serverString): + return "Missing substitution parameter '\(key)' when building server URL '\(serverString)'" + case .missingPathParameterSubstitutionKey(let key, path: let path): + return "Missing substitution parameter '\(key)' when building path '\(path)'" + case .invalidSerializationParameter(type: let type, format: let format): + return "Invalid parameter type '\(type)' when serializing for \(format)" + case .failedToSerializeData: + return "Failed to serialize data parameter" + } + } +} + +extension OpenAPIError.RequestConstructionFailureReason { + public var localizedDescription: String { + switch self { + case .missingRequiredRequestBody: + return "Required request body is missing" + } + } +} + +extension OpenAPIError.ResponseHandlingFailureReason { + public var localizedDescription: String { + switch self { + case .failedToDecodeResponse: + return "Failed to decode response data" + case .failedToDeserializeJSON(let error): + return "Failed to deserialize JSON: \(error.localizedDescription)" + } + } +} + +extension SerializableFormat { + var formatDescription: String { + switch self { + case .path: return "path parameter" + case .query: return "query parameter" + case .header: return "request header" + case .multipart: return "multipart encoding" + case .form: return "form encoding" + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/configuration/GlobalParameters.swift b/swift-client-sdk/Sources/OpenAPI/configuration/GlobalParameters.swift new file mode 100755 index 000000000..1112e758f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/configuration/GlobalParameters.swift @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +/// Describes common parameters which can be used when making API requests. +/// +/// > Note: These parameters may be overridden by individual API operations +public struct GlobalParameters { + public let globalPathParam: Int? + public let globalQueryParam: String? + + /// Creates an object with the given parameters + /// + /// + public init( + globalPathParam: Int? = nil, + globalQueryParam: String? = nil + ) { + self.globalPathParam = globalPathParam + self.globalQueryParam = globalQueryParam + } +} + +extension GlobalParameters: ParameterDefaults { + public func defaultSerializedPathParameter(for key: String) throws -> String? { + switch key { + case "globalPathParam": return try globalPathParam.serialize(with: .path(explode: false)) + default: return nil + } + } + + public func defaultQueryParameter(for key: String) -> AnyValue? { + switch key { + case "globalQueryParam": return globalQueryParam.map { AnyValue($0) } + default: return nil + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/configuration/GlobalServer.swift b/swift-client-sdk/Sources/OpenAPI/configuration/GlobalServer.swift new file mode 100755 index 000000000..65c2e5df2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/configuration/GlobalServer.swift @@ -0,0 +1,76 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +/// Something is a variable for changing the root path +public enum ServerSomething: String, Codable, APIValue { + case something = "something" + case somethingElse = "somethingElse" + case somethingElseAgain = "somethingElseAgain" +} + +/// Describes the available servers that can be used when connecting to the API. +/// +/// These can be passed to ``Client/use(server:)`` to configure the server that is connected to when making API requests. +/// +/// > Note: Some API operations may support further customization of the server that is connected to when making calls to their respective endpoints. See the corresponding documentation for each API operation method to see if this is the case. +public enum GlobalServers: Servers, ServerConvertible { + /// Supported server value. + /// + /// Corresponds to `http://localhost:35123` + case server1 + /// Supported server value. + /// + /// Corresponds to `http://broken` + case server2 + /// Supported server value with substituted variables + /// + /// Corresponds to `http://{hostname}:{port}` + case server3(hostname: String = "localhost", port: String = "35123") + /// Supported server value with substituted variables + /// + /// Corresponds to `http://localhost:35123/anything/{something}` + case server4(something: ServerSomething = .something) + /// Supported server value with substituted variables + /// + /// Corresponds to `{protocol}://{hostname}:{port}` + case server5(hostname: String = "localhost", port: String = "35123", `protocol`: String = "http") + + /// Defines the raw URL strings for each server option. + /// + /// > Note: You do not need to use these values directly. + /// + /// The available URL strings are defined as: + /// ```swift + /// public static let urlStrings = [ + /// "http://localhost:35123", + /// "http://broken", + /// "http://{hostname}:{port}", + /// "http://localhost:35123/anything/{something}", + /// "{protocol}://{hostname}:{port}" + /// ] + /// ``` + public static let urlStrings = [ + "http://localhost:35123", + "http://broken", + "http://{hostname}:{port}", + "http://localhost:35123/anything/{something}", + "{protocol}://{hostname}:{port}" + ] + + func server() throws -> Server { + switch self { + case .server1: + return try type(of: self).server(at: 0, substituting: nil) + case .server2: + return try type(of: self).server(at: 1, substituting: nil) + case .server3(let hostname, let port): + return try type(of: self).server(at: 2, substituting: ["hostname": hostname, "port": port]) + case .server4(let something): + return try type(of: self).server(at: 3, substituting: ["something": something.rawValue]) + case .server5(let hostname, let port, let `protocol`): + return try type(of: self).server(at: 4, substituting: ["hostname": hostname, "port": port, "protocol": `protocol`]) + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/Client+OpenAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/Client+OpenAPI.swift new file mode 100755 index 000000000..4c6352a88 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/Client+OpenAPI.swift @@ -0,0 +1,169 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Client: OpenAPI { + // MARK: - Root operations + + public func putAnythingIgnoredGeneration(request: String) async throws -> Response { + return try await makeRequest( + configureRequest: { configuration in + try configurePutAnythingIgnoredGenerationRequest(with: configuration, request: request) + }, + handleResponse: handlePutAnythingIgnoredGenerationResponse + ) + } + + public func responseBodyJsonGet() async throws -> Response { + return try await makeRequest( + configureRequest: { configuration in + try configureResponseBodyJsonGetRequest(with: configuration) + }, + handleResponse: handleResponseBodyJsonGetResponse + ) + } + + // MARK: - Scoped API operations + + public var auth: AuthAPI { + return _AuthAPI(client: self) + } + + public var authNew: AuthNewAPI { + return _AuthNewAPI(client: self) + } + + public var documentation: DocumentationAPI { + return _DocumentationAPI(client: self) + } + + public var errors: ErrorsAPI { + return _ErrorsAPI(client: self) + } + + public var first: FirstAPI { + return _FirstAPI(client: self) + } + + public var flattening: FlatteningAPI { + return _FlatteningAPI(client: self) + } + + public var generation: GenerationAPI { + return _GenerationAPI(client: self) + } + + public var globals: GlobalsAPI { + return _GlobalsAPI(client: self) + } + + public var nestFirst: NestFirstAPI { + return _NestFirstAPI(client: self) + } + + public var nested: NestedAPI { + return _NestedAPI(client: self) + } + + public var nestedFirst: NestedFirstAPI { + return _NestedFirstAPI(client: self) + } + + public var nestedSecond: NestedSecondAPI { + return _NestedSecondAPI(client: self) + } + + public var pagination: PaginationAPI { + return _PaginationAPI(client: self) + } + + public var parameters: ParametersAPI { + return _ParametersAPI(client: self) + } + + public var requestBodies: RequestBodiesAPI { + return _RequestBodiesAPI(client: self) + } + + public var resource: ResourceAPI { + return _ResourceAPI(client: self) + } + + public var responseBodies: ResponseBodiesAPI { + return _ResponseBodiesAPI(client: self) + } + + public var retries: RetriesAPI { + return _RetriesAPI(client: self) + } + + public var second: SecondAPI { + return _SecondAPI(client: self) + } + + public var servers: ServersAPI { + return _ServersAPI(client: self) + } + + public var telemetry: TelemetryAPI { + return _TelemetryAPI(client: self) + } + + public var unions: UnionsAPI { + return _UnionsAPI(client: self) + } +} + +// MARK: - Request Configuration + +private func configurePutAnythingIgnoredGenerationRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/ignoredGeneration" + configuration.method = .put + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyJsonGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/json" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handlePutAnythingIgnoredGenerationResponse(response: Client.APIResponse) throws -> Operations.PutAnythingIgnoredGenerationResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .putAnythingIgnoredGeneration200ApplicationJSONObject(try JSONDecoder().decode(Operations.PutAnythingIgnoredGeneration200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleResponseBodyJsonGetResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyJsonGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .httpBinSimpleJsonObject(try JSONDecoder().decode(Shared.HttpBinSimpleJsonObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_AuthAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_AuthAPI.swift new file mode 100755 index 000000000..43374ef17 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_AuthAPI.swift @@ -0,0 +1,289 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _AuthAPI: AuthAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func apiKeyAuth(security: Operations.ApiKeyAuthSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureApiKeyAuthRequest(with: configuration, security: security) + }, + handleResponse: handleApiKeyAuthResponse + ) + } + + public func apiKeyAuthGlobal() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureApiKeyAuthGlobalRequest(with: configuration) + }, + handleResponse: handleApiKeyAuthGlobalResponse + ) + } + + public func basicAuth(request: Operations.BasicAuthRequest, security: Operations.BasicAuthSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureBasicAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleBasicAuthResponse + ) + } + + public func bearerAuth(security: Operations.BearerAuthSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureBearerAuthRequest(with: configuration, security: security) + }, + handleResponse: handleBearerAuthResponse + ) + } + + public func globalBearerAuth() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGlobalBearerAuthRequest(with: configuration) + }, + handleResponse: handleGlobalBearerAuthResponse + ) + } + + public func oauth2Auth(security: Operations.Oauth2AuthSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureOauth2AuthRequest(with: configuration, security: security) + }, + handleResponse: handleOauth2AuthResponse + ) + } + + public func oauth2Override(request: Operations.Oauth2OverrideRequest, security: Operations.Oauth2OverrideSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureOauth2OverrideRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleOauth2OverrideResponse + ) + } + + public func openIdConnectAuth(security: Operations.OpenIdConnectAuthSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureOpenIdConnectAuthRequest(with: configuration, security: security) + }, + handleResponse: handleOpenIdConnectAuthResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureApiKeyAuthRequest(with configuration: URLRequestConfiguration, security: Operations.ApiKeyAuthSecurity) throws { + configuration.path = "/bearer#operation" + configuration.method = .get + configuration.securityParameterProviding = security + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureApiKeyAuthGlobalRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/bearer" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureBasicAuthRequest(with configuration: URLRequestConfiguration, request: Operations.BasicAuthRequest, security: Operations.BasicAuthSecurity) throws { + configuration.path = "/basic-auth/{user}/{passwd}" + configuration.method = .get + configuration.securityParameterProviding = security + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureBearerAuthRequest(with configuration: URLRequestConfiguration, security: Operations.BearerAuthSecurity) throws { + configuration.path = "/bearer#bearer" + configuration.method = .get + configuration.securityParameterProviding = security + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureGlobalBearerAuthRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/bearer#global" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureOauth2AuthRequest(with configuration: URLRequestConfiguration, security: Operations.Oauth2AuthSecurity) throws { + configuration.path = "/bearer#oauth2" + configuration.method = .get + configuration.securityParameterProviding = security + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureOauth2OverrideRequest(with configuration: URLRequestConfiguration, request: Operations.Oauth2OverrideRequest, security: Operations.Oauth2OverrideSecurity) throws { + configuration.path = "/bearer#oauth2AuthOverride" + configuration.method = .get + configuration.securityParameterProviding = security + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureOpenIdConnectAuthRequest(with configuration: URLRequestConfiguration, security: Operations.OpenIdConnectAuthSecurity) throws { + configuration.path = "/bearer#openIdConnect" + configuration.method = .get + configuration.securityParameterProviding = security + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleApiKeyAuthResponse(response: Client.APIResponse) throws -> Operations.ApiKeyAuthResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.ApiKeyAuthToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleApiKeyAuthGlobalResponse(response: Client.APIResponse) throws -> Operations.ApiKeyAuthGlobalResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.ApiKeyAuthGlobalToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleBasicAuthResponse(response: Client.APIResponse) throws -> Operations.BasicAuthResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .user(try JSONDecoder().decode(Operations.BasicAuthUser.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleBearerAuthResponse(response: Client.APIResponse) throws -> Operations.BearerAuthResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.BearerAuthToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleGlobalBearerAuthResponse(response: Client.APIResponse) throws -> Operations.GlobalBearerAuthResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.GlobalBearerAuthToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleOauth2AuthResponse(response: Client.APIResponse) throws -> Operations.Oauth2AuthResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.Oauth2AuthToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleOauth2OverrideResponse(response: Client.APIResponse) throws -> Operations.Oauth2OverrideResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.Oauth2OverrideToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + +private func handleOpenIdConnectAuthResponse(response: Client.APIResponse) throws -> Operations.OpenIdConnectAuthResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .token(try JSONDecoder().decode(Operations.OpenIdConnectAuthToken.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 401 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_AuthNewAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_AuthNewAPI.swift new file mode 100755 index 000000000..8638929a1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_AuthNewAPI.swift @@ -0,0 +1,368 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _AuthNewAPI: AuthNewAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func apiKeyAuthGlobalNew(request: Shared.AuthServiceRequestBody, server: AuthNewServers.ApiKeyAuthGlobalNew?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.ApiKeyAuthGlobalNew.default(), + configureRequest: { configuration in + try configureApiKeyAuthGlobalNewRequest(with: configuration, request: request) + }, + handleResponse: handleApiKeyAuthGlobalNewResponse + ) + } + + public func authGlobal(request: Shared.AuthServiceRequestBody, server: AuthNewServers.AuthGlobal?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.AuthGlobal.default(), + configureRequest: { configuration in + try configureAuthGlobalRequest(with: configuration, request: request) + }, + handleResponse: handleAuthGlobalResponse + ) + } + + public func basicAuthNew(request: Shared.AuthServiceRequestBody, security: Operations.BasicAuthNewSecurity, server: AuthNewServers.BasicAuthNew?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.BasicAuthNew.default(), + configureRequest: { configuration in + try configureBasicAuthNewRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleBasicAuthNewResponse + ) + } + + public func multipleMixedOptionsAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleMixedOptionsAuthSecurity, server: AuthNewServers.MultipleMixedOptionsAuth?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.MultipleMixedOptionsAuth.default(), + configureRequest: { configuration in + try configureMultipleMixedOptionsAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleMultipleMixedOptionsAuthResponse + ) + } + + public func multipleMixedSchemeAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleMixedSchemeAuthSecurity, server: AuthNewServers.MultipleMixedSchemeAuth?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.MultipleMixedSchemeAuth.default(), + configureRequest: { configuration in + try configureMultipleMixedSchemeAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleMultipleMixedSchemeAuthResponse + ) + } + + public func multipleOptionsWithMixedSchemesAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleOptionsWithMixedSchemesAuthSecurity, server: AuthNewServers.MultipleOptionsWithMixedSchemesAuth?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.MultipleOptionsWithMixedSchemesAuth.default(), + configureRequest: { configuration in + try configureMultipleOptionsWithMixedSchemesAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleMultipleOptionsWithMixedSchemesAuthResponse + ) + } + + public func multipleOptionsWithSimpleSchemesAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleOptionsWithSimpleSchemesAuthSecurity, server: AuthNewServers.MultipleOptionsWithSimpleSchemesAuth?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.MultipleOptionsWithSimpleSchemesAuth.default(), + configureRequest: { configuration in + try configureMultipleOptionsWithSimpleSchemesAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleMultipleOptionsWithSimpleSchemesAuthResponse + ) + } + + public func multipleSimpleOptionsAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleSimpleOptionsAuthSecurity, server: AuthNewServers.MultipleSimpleOptionsAuth?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.MultipleSimpleOptionsAuth.default(), + configureRequest: { configuration in + try configureMultipleSimpleOptionsAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleMultipleSimpleOptionsAuthResponse + ) + } + + public func multipleSimpleSchemeAuth(request: Shared.AuthServiceRequestBody, security: Operations.MultipleSimpleSchemeAuthSecurity, server: AuthNewServers.MultipleSimpleSchemeAuth?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.MultipleSimpleSchemeAuth.default(), + configureRequest: { configuration in + try configureMultipleSimpleSchemeAuthRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleMultipleSimpleSchemeAuthResponse + ) + } + + public func oauth2AuthNew(request: Shared.AuthServiceRequestBody, security: Operations.Oauth2AuthNewSecurity, server: AuthNewServers.Oauth2AuthNew?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.Oauth2AuthNew.default(), + configureRequest: { configuration in + try configureOauth2AuthNewRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleOauth2AuthNewResponse + ) + } + + public func openIdConnectAuthNew(request: Shared.AuthServiceRequestBody, security: Operations.OpenIdConnectAuthNewSecurity, server: AuthNewServers.OpenIdConnectAuthNew?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? AuthNewServers.OpenIdConnectAuthNew.default(), + configureRequest: { configuration in + try configureOpenIdConnectAuthNewRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleOpenIdConnectAuthNewResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureApiKeyAuthGlobalNewRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody) throws { + configuration.path = "/auth#apiKeyAuthGlobal" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureAuthGlobalRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody) throws { + configuration.path = "/auth#authGlobal" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureBasicAuthNewRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.BasicAuthNewSecurity) throws { + configuration.path = "/auth#basicAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMultipleMixedOptionsAuthRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.MultipleMixedOptionsAuthSecurity) throws { + configuration.path = "/auth#multipleMixedOptionsAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMultipleMixedSchemeAuthRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.MultipleMixedSchemeAuthSecurity) throws { + configuration.path = "/auth#multipleMixedSchemeAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMultipleOptionsWithMixedSchemesAuthRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.MultipleOptionsWithMixedSchemesAuthSecurity) throws { + configuration.path = "/auth#multipleOptionsWithMixedSchemesAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMultipleOptionsWithSimpleSchemesAuthRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.MultipleOptionsWithSimpleSchemesAuthSecurity) throws { + configuration.path = "/auth#multipleOptionsWithSimpleSchemesAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMultipleSimpleOptionsAuthRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.MultipleSimpleOptionsAuthSecurity) throws { + configuration.path = "/auth#multipleSimpleOptionsAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMultipleSimpleSchemeAuthRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.MultipleSimpleSchemeAuthSecurity) throws { + configuration.path = "/auth#multipleSimpleSchemeAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureOauth2AuthNewRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.Oauth2AuthNewSecurity) throws { + configuration.path = "/auth#oauth2Auth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureOpenIdConnectAuthNewRequest(with configuration: URLRequestConfiguration, request: Shared.AuthServiceRequestBody, security: Operations.OpenIdConnectAuthNewSecurity) throws { + configuration.path = "/auth#openIdConnectAuth" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleApiKeyAuthGlobalNewResponse(response: Client.APIResponse) throws -> Operations.ApiKeyAuthGlobalNewResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleAuthGlobalResponse(response: Client.APIResponse) throws -> Operations.AuthGlobalResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleBasicAuthNewResponse(response: Client.APIResponse) throws -> Operations.BasicAuthNewResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleMultipleMixedOptionsAuthResponse(response: Client.APIResponse) throws -> Operations.MultipleMixedOptionsAuthResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleMultipleMixedSchemeAuthResponse(response: Client.APIResponse) throws -> Operations.MultipleMixedSchemeAuthResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleMultipleOptionsWithMixedSchemesAuthResponse(response: Client.APIResponse) throws -> Operations.MultipleOptionsWithMixedSchemesAuthResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleMultipleOptionsWithSimpleSchemesAuthResponse(response: Client.APIResponse) throws -> Operations.MultipleOptionsWithSimpleSchemesAuthResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleMultipleSimpleOptionsAuthResponse(response: Client.APIResponse) throws -> Operations.MultipleSimpleOptionsAuthResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleMultipleSimpleSchemeAuthResponse(response: Client.APIResponse) throws -> Operations.MultipleSimpleSchemeAuthResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleOauth2AuthNewResponse(response: Client.APIResponse) throws -> Operations.Oauth2AuthNewResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleOpenIdConnectAuthNewResponse(response: Client.APIResponse) throws -> Operations.OpenIdConnectAuthNewResponse { + let httpResponse = response.httpResponse + + if [200, 401].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_DocumentationAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_DocumentationAPI.swift new file mode 100755 index 000000000..e38c1e3d6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_DocumentationAPI.swift @@ -0,0 +1,44 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _DocumentationAPI: DocumentationAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func getDocumentationPerLanguage(request: Operations.GetDocumentationPerLanguageRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGetDocumentationPerLanguageRequest(with: configuration, request: request) + }, + handleResponse: handleGetDocumentationPerLanguageResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureGetDocumentationPerLanguageRequest(with configuration: URLRequestConfiguration, request: Operations.GetDocumentationPerLanguageRequest) throws { + configuration.path = "/docs/per-language-docs" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleGetDocumentationPerLanguageResponse(response: Client.APIResponse) throws -> Operations.GetDocumentationPerLanguageResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_ErrorsAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_ErrorsAPI.swift new file mode 100755 index 000000000..a8bc0c5ed --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_ErrorsAPI.swift @@ -0,0 +1,113 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _ErrorsAPI: ErrorsAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func connectionErrorGet(server: ErrorsServers.ConnectionErrorGet?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ErrorsServers.ConnectionErrorGet.default(), + configureRequest: { configuration in + try configureConnectionErrorGetRequest(with: configuration) + }, + handleResponse: handleConnectionErrorGetResponse + ) + } + + public func statusGetError(request: Operations.StatusGetErrorRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureStatusGetErrorRequest(with: configuration, request: request) + }, + handleResponse: handleStatusGetErrorResponse + ) + } + + public func statusGetXSpeakeasyErrors(request: Operations.StatusGetXSpeakeasyErrorsRequest, server: ErrorsServers.StatusGetXSpeakeasyErrors?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ErrorsServers.StatusGetXSpeakeasyErrors.default(), + configureRequest: { configuration in + try configureStatusGetXSpeakeasyErrorsRequest(with: configuration, request: request) + }, + handleResponse: handleStatusGetXSpeakeasyErrorsResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureConnectionErrorGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/connectionError" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureStatusGetErrorRequest(with configuration: URLRequestConfiguration, request: Operations.StatusGetErrorRequest) throws { + configuration.path = "/status/{statusCode}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureStatusGetXSpeakeasyErrorsRequest(with configuration: URLRequestConfiguration, request: Operations.StatusGetXSpeakeasyErrorsRequest) throws { + configuration.path = "/errors/{statusCode}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleConnectionErrorGetResponse(response: Client.APIResponse) throws -> Operations.ConnectionErrorGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleStatusGetErrorResponse(response: Client.APIResponse) throws -> Operations.StatusGetErrorResponse { + let httpResponse = response.httpResponse + + if [200, 300, 400, 500].contains(httpResponse.statusCode) { + return .empty + } + + return .empty +} + +private func handleStatusGetXSpeakeasyErrorsResponse(response: Client.APIResponse) throws -> Operations.StatusGetXSpeakeasyErrorsResponse { + let httpResponse = response.httpResponse + + if [200, 300, 400].contains(httpResponse.statusCode) { + return .empty + } else if httpResponse.statusCode == 500 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .error(try JSONDecoder().decode(Shared.Error.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } else if httpResponse.statusCode == 501 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .statusGetXSpeakeasyErrors501ApplicationJSONObject(try JSONDecoder().decode(Operations.StatusGetXSpeakeasyErrors501ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_FirstAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_FirstAPI.swift new file mode 100755 index 000000000..32225028d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_FirstAPI.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _FirstAPI: FirstAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func groupFirstGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGroupFirstGetRequest(with: configuration) + }, + handleResponse: handleGroupFirstGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureGroupFirstGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/group/first" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleGroupFirstGetResponse(response: Client.APIResponse) throws -> Operations.GroupFirstGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_FlatteningAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_FlatteningAPI.swift new file mode 100755 index 000000000..3af0b8976 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_FlatteningAPI.swift @@ -0,0 +1,199 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _FlatteningAPI: FlatteningAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func componentBodyAndParamConflict(request: Operations.ComponentBodyAndParamConflictRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureComponentBodyAndParamConflictRequest(with: configuration, request: request) + }, + handleResponse: handleComponentBodyAndParamConflictResponse + ) + } + + public func componentBodyAndParamNoConflict(request: Operations.ComponentBodyAndParamNoConflictRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureComponentBodyAndParamNoConflictRequest(with: configuration, request: request) + }, + handleResponse: handleComponentBodyAndParamNoConflictResponse + ) + } + + public func conflictingParams(request: Operations.ConflictingParamsRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureConflictingParamsRequest(with: configuration, request: request) + }, + handleResponse: handleConflictingParamsResponse + ) + } + + public func inlineBodyAndParamConflict(request: Operations.InlineBodyAndParamConflictRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureInlineBodyAndParamConflictRequest(with: configuration, request: request) + }, + handleResponse: handleInlineBodyAndParamConflictResponse + ) + } + + public func inlineBodyAndParamNoConflict(request: Operations.InlineBodyAndParamNoConflictRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureInlineBodyAndParamNoConflictRequest(with: configuration, request: request) + }, + handleResponse: handleInlineBodyAndParamNoConflictResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureComponentBodyAndParamConflictRequest(with configuration: URLRequestConfiguration, request: Operations.ComponentBodyAndParamConflictRequest) throws { + configuration.path = "/anything/flattening/componentBodyAndParamConflict" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.simpleObject) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureComponentBodyAndParamNoConflictRequest(with configuration: URLRequestConfiguration, request: Operations.ComponentBodyAndParamNoConflictRequest) throws { + configuration.path = "/anything/flattening/componentBodyAndParamNoConflict" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.simpleObject) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureConflictingParamsRequest(with configuration: URLRequestConfiguration, request: Operations.ConflictingParamsRequest) throws { + configuration.path = "/anything/flattening/conflictingParams/{str}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureInlineBodyAndParamConflictRequest(with configuration: URLRequestConfiguration, request: Operations.InlineBodyAndParamConflictRequest) throws { + configuration.path = "/anything/flattening/inlineBodyAndParamConflict" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.requestBody) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureInlineBodyAndParamNoConflictRequest(with configuration: URLRequestConfiguration, request: Operations.InlineBodyAndParamNoConflictRequest) throws { + configuration.path = "/anything/flattening/inlineBodyAndParamNoConflict" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.requestBody) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleComponentBodyAndParamConflictResponse(response: Client.APIResponse) throws -> Operations.ComponentBodyAndParamConflictResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.ComponentBodyAndParamConflictRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleComponentBodyAndParamNoConflictResponse(response: Client.APIResponse) throws -> Operations.ComponentBodyAndParamNoConflictResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.ComponentBodyAndParamNoConflictRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleConflictingParamsResponse(response: Client.APIResponse) throws -> Operations.ConflictingParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.ConflictingParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleInlineBodyAndParamConflictResponse(response: Client.APIResponse) throws -> Operations.InlineBodyAndParamConflictResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.InlineBodyAndParamConflictRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleInlineBodyAndParamNoConflictResponse(response: Client.APIResponse) throws -> Operations.InlineBodyAndParamNoConflictResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.InlineBodyAndParamNoConflictRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_GenerationAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_GenerationAPI.swift new file mode 100755 index 000000000..a5e04020b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_GenerationAPI.swift @@ -0,0 +1,609 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _GenerationAPI: GenerationAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func anchorTypesGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureAnchorTypesGetRequest(with: configuration) + }, + handleResponse: handleAnchorTypesGetResponse + ) + } + + public func arrayCircularReferenceGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureArrayCircularReferenceGetRequest(with: configuration) + }, + handleResponse: handleArrayCircularReferenceGetResponse + ) + } + + public func circularReferenceGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureCircularReferenceGetRequest(with: configuration) + }, + handleResponse: handleCircularReferenceGetResponse + ) + } + + public func dateParamWithDefault(request: Operations.DateParamWithDefaultRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDateParamWithDefaultRequest(with: configuration, request: request) + }, + handleResponse: handleDateParamWithDefaultResponse + ) + } + + public func dateTimeParamWithDefault(request: Operations.DateTimeParamWithDefaultRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDateTimeParamWithDefaultRequest(with: configuration, request: request) + }, + handleResponse: handleDateTimeParamWithDefaultResponse + ) + } + + public func decimalParamWithDefault(request: Operations.DecimalParamWithDefaultRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDecimalParamWithDefaultRequest(with: configuration, request: request) + }, + handleResponse: handleDecimalParamWithDefaultResponse + ) + } + + public func deprecatedFieldInSchemaPost(request: Shared.DeprecatedFieldInObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeprecatedFieldInSchemaPostRequest(with: configuration, request: request) + }, + handleResponse: handleDeprecatedFieldInSchemaPostResponse + ) + } + + public func deprecatedObjectInSchemaGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeprecatedObjectInSchemaGetRequest(with: configuration) + }, + handleResponse: handleDeprecatedObjectInSchemaGetResponse + ) + } + + public func deprecatedOperationNoCommentsGet(request: Operations.DeprecatedOperationNoCommentsGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeprecatedOperationNoCommentsGetRequest(with: configuration, request: request) + }, + handleResponse: handleDeprecatedOperationNoCommentsGetResponse + ) + } + + public func deprecatedOperationWithCommentsGet(request: Operations.DeprecatedOperationWithCommentsGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeprecatedOperationWithCommentsGetRequest(with: configuration, request: request) + }, + handleResponse: handleDeprecatedOperationWithCommentsGetResponse + ) + } + + public func emptyObjectGet(request: Operations.EmptyObjectGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureEmptyObjectGetRequest(with: configuration, request: request) + }, + handleResponse: handleEmptyObjectGetResponse + ) + } + + public func emptyResponseObjectWithCommentGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureEmptyResponseObjectWithCommentGetRequest(with: configuration) + }, + handleResponse: handleEmptyResponseObjectWithCommentGetResponse + ) + } + + public func getGlobalNameOverride() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGetGlobalNameOverrideRequest(with: configuration) + }, + handleResponse: handleGetGlobalNameOverrideResponse + ) + } + + public func ignoredGenerationGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureIgnoredGenerationGetRequest(with: configuration) + }, + handleResponse: handleIgnoredGenerationGetResponse + ) + } + + public func ignoresPost(request: Operations.IgnoresPostRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureIgnoresPostRequest(with: configuration, request: request) + }, + handleResponse: handleIgnoresPostResponse + ) + } + + public func nameOverrideGet(request: Operations.NameOverrideGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNameOverrideGetRequest(with: configuration, request: request) + }, + handleResponse: handleNameOverrideGetResponse + ) + } + + public func objectCircularReferenceGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureObjectCircularReferenceGetRequest(with: configuration) + }, + handleResponse: handleObjectCircularReferenceGetResponse + ) + } + + public func oneOfCircularReferenceGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureOneOfCircularReferenceGetRequest(with: configuration) + }, + handleResponse: handleOneOfCircularReferenceGetResponse + ) + } + + public func typedParameterGenerationGet(request: Operations.TypedParameterGenerationGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureTypedParameterGenerationGetRequest(with: configuration, request: request) + }, + handleResponse: handleTypedParameterGenerationGetResponse + ) + } + + public func usageExamplePost(request: Operations.UsageExamplePostRequest, security: Operations.UsageExamplePostSecurity) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureUsageExamplePostRequest(with: configuration, request: request, security: security) + }, + handleResponse: handleUsageExamplePostResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureAnchorTypesGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/anchorTypes" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureArrayCircularReferenceGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/arrayCircularReference" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureCircularReferenceGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/circularReference" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDateParamWithDefaultRequest(with configuration: URLRequestConfiguration, request: Operations.DateParamWithDefaultRequest) throws { + configuration.path = "/anything/dateParamWithDefault" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDateTimeParamWithDefaultRequest(with configuration: URLRequestConfiguration, request: Operations.DateTimeParamWithDefaultRequest) throws { + configuration.path = "/anything/dateTimeParamWithDefault" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDecimalParamWithDefaultRequest(with configuration: URLRequestConfiguration, request: Operations.DecimalParamWithDefaultRequest) throws { + configuration.path = "/anything/decimalParamWithDefault" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDeprecatedFieldInSchemaPostRequest(with configuration: URLRequestConfiguration, request: Shared.DeprecatedFieldInObject) throws { + configuration.path = "/anything/deprecatedFieldInSchema" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDeprecatedObjectInSchemaGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/deprecatedObjectInSchema" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDeprecatedOperationNoCommentsGetRequest(with configuration: URLRequestConfiguration, request: Operations.DeprecatedOperationNoCommentsGetRequest) throws { + configuration.path = "/anything/deprecatedOperationNoComments" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDeprecatedOperationWithCommentsGetRequest(with configuration: URLRequestConfiguration, request: Operations.DeprecatedOperationWithCommentsGetRequest) throws { + configuration.path = "/anything/deprecatedOperationWithComments" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureEmptyObjectGetRequest(with configuration: URLRequestConfiguration, request: Operations.EmptyObjectGetRequest) throws { + configuration.path = "/anything/{emptyObject}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureEmptyResponseObjectWithCommentGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/emptyResponseObjectWithComment" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureGetGlobalNameOverrideRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/globalNameOverride" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureIgnoredGenerationGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/ignoredGeneration" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureIgnoresPostRequest(with configuration: URLRequestConfiguration, request: Operations.IgnoresPostRequest) throws { + configuration.path = "/anything/ignores" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.requestBody) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNameOverrideGetRequest(with configuration: URLRequestConfiguration, request: Operations.NameOverrideGetRequest) throws { + configuration.path = "/anything/nameOverride" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureObjectCircularReferenceGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/objectCircularReference" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureOneOfCircularReferenceGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/oneOfCircularReference" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureTypedParameterGenerationGetRequest(with configuration: URLRequestConfiguration, request: Operations.TypedParameterGenerationGetRequest) throws { + configuration.path = "/anything/typedParameterGeneration" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureUsageExamplePostRequest(with configuration: URLRequestConfiguration, request: Operations.UsageExamplePostRequest, security: Operations.UsageExamplePostSecurity) throws { + configuration.path = "/anything/usageExample" + configuration.method = .post + configuration.securityParameterProviding = security + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.requestBody) + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleAnchorTypesGetResponse(response: Client.APIResponse) throws -> Operations.AnchorTypesGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .typeFromAnchor(try JSONDecoder().decode(Operations.TypeFromAnchor.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleArrayCircularReferenceGetResponse(response: Client.APIResponse) throws -> Operations.ArrayCircularReferenceGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .arrayCircularReferenceObject(try JSONDecoder().decode([Shared.ArrayCircularReferenceObject].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleCircularReferenceGetResponse(response: Client.APIResponse) throws -> Operations.CircularReferenceGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .validCircularReferenceObject(try JSONDecoder().decode(Shared.ValidCircularReferenceObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleDateParamWithDefaultResponse(response: Client.APIResponse) throws -> Operations.DateParamWithDefaultResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 204 { + return .empty + } + + return .empty +} + +private func handleDateTimeParamWithDefaultResponse(response: Client.APIResponse) throws -> Operations.DateTimeParamWithDefaultResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 204 { + return .empty + } + + return .empty +} + +private func handleDecimalParamWithDefaultResponse(response: Client.APIResponse) throws -> Operations.DecimalParamWithDefaultResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 204 { + return .empty + } + + return .empty +} + +private func handleDeprecatedFieldInSchemaPostResponse(response: Client.APIResponse) throws -> Operations.DeprecatedFieldInSchemaPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleDeprecatedObjectInSchemaGetResponse(response: Client.APIResponse) throws -> Operations.DeprecatedObjectInSchemaGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .deprecatedObjectInSchemaGet200ApplicationJSONObject(try JSONDecoder().decode(Operations.DeprecatedObjectInSchemaGet200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleDeprecatedOperationNoCommentsGetResponse(response: Client.APIResponse) throws -> Operations.DeprecatedOperationNoCommentsGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleDeprecatedOperationWithCommentsGetResponse(response: Client.APIResponse) throws -> Operations.DeprecatedOperationWithCommentsGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleEmptyObjectGetResponse(response: Client.APIResponse) throws -> Operations.EmptyObjectGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleEmptyResponseObjectWithCommentGetResponse(response: Client.APIResponse) throws -> Operations.EmptyResponseObjectWithCommentGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/octet-stream"), let data = response.data { + return .body(data) + } + } + + return .empty +} + +private func handleGetGlobalNameOverrideResponse(response: Client.APIResponse) throws -> Operations.GetGlobalNameOverrideResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .getGlobalNameOverride200ApplicationJSONObject(try JSONDecoder().decode(Operations.GetGlobalNameOverride200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleIgnoredGenerationGetResponse(response: Client.APIResponse) throws -> Operations.IgnoredGenerationGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .ignoredGenerationGet200ApplicationJSONObject(try JSONDecoder().decode(Operations.IgnoredGenerationGet200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleIgnoresPostResponse(response: Client.APIResponse) throws -> Operations.IgnoresPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .httpBinSimpleJsonObject(try JSONDecoder().decode(Shared.HttpBinSimpleJsonObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleNameOverrideGetResponse(response: Client.APIResponse) throws -> Operations.NameOverrideGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .overriddenResponse(try JSONDecoder().decode(Operations.OverriddenResponse.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleObjectCircularReferenceGetResponse(response: Client.APIResponse) throws -> Operations.ObjectCircularReferenceGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .objectCircularReferenceObject(try JSONDecoder().decode(Shared.ObjectCircularReferenceObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleOneOfCircularReferenceGetResponse(response: Client.APIResponse) throws -> Operations.OneOfCircularReferenceGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .oneOfCircularReferenceObject(try JSONDecoder().decode(Shared.OneOfCircularReferenceObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleTypedParameterGenerationGetResponse(response: Client.APIResponse) throws -> Operations.TypedParameterGenerationGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleUsageExamplePostResponse(response: Client.APIResponse) throws -> Operations.UsageExamplePostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .usageExamplePost200ApplicationJSONObject(try JSONDecoder().decode(Operations.UsageExamplePost200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_GlobalsAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_GlobalsAPI.swift new file mode 100755 index 000000000..9d56d2a51 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_GlobalsAPI.swift @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _GlobalsAPI: GlobalsAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func globalPathParameterGet(request: Operations.GlobalPathParameterGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGlobalPathParameterGetRequest(with: configuration, request: request) + }, + handleResponse: handleGlobalPathParameterGetResponse + ) + } + + public func globalsQueryParameterGet(request: Operations.GlobalsQueryParameterGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGlobalsQueryParameterGetRequest(with: configuration, request: request) + }, + handleResponse: handleGlobalsQueryParameterGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureGlobalPathParameterGetRequest(with configuration: URLRequestConfiguration, request: Operations.GlobalPathParameterGetRequest) throws { + configuration.path = "/anything/globals/pathParameter/{globalPathParam}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureGlobalsQueryParameterGetRequest(with configuration: URLRequestConfiguration, request: Operations.GlobalsQueryParameterGetRequest) throws { + configuration.path = "/anything/globals/queryParameter" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleGlobalPathParameterGetResponse(response: Client.APIResponse) throws -> Operations.GlobalPathParameterGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.GlobalPathParameterGetRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleGlobalsQueryParameterGetResponse(response: Client.APIResponse) throws -> Operations.GlobalsQueryParameterGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.GlobalsQueryParameterGetRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_NestFirstAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestFirstAPI.swift new file mode 100755 index 000000000..e22ea6a08 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestFirstAPI.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _NestFirstAPI: NestFirstAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func nestFirstGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNestFirstGetRequest(with: configuration) + }, + handleResponse: handleNestFirstGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureNestFirstGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/nest/first" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleNestFirstGetResponse(response: Client.APIResponse) throws -> Operations.NestFirstGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedAPI.swift new file mode 100755 index 000000000..d91b31e10 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedAPI.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _NestedAPI: NestedAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func nestedGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNestedGetRequest(with: configuration) + }, + handleResponse: handleNestedGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureNestedGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/nested" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleNestedGetResponse(response: Client.APIResponse) throws -> Operations.NestedGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedFirstAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedFirstAPI.swift new file mode 100755 index 000000000..7939e70fb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedFirstAPI.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _NestedFirstAPI: NestedFirstAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func nestedFirstGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNestedFirstGetRequest(with: configuration) + }, + handleResponse: handleNestedFirstGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureNestedFirstGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/nested/first" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleNestedFirstGetResponse(response: Client.APIResponse) throws -> Operations.NestedFirstGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedSecondAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedSecondAPI.swift new file mode 100755 index 000000000..06f46f920 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_NestedSecondAPI.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _NestedSecondAPI: NestedSecondAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func nestedSecondGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNestedSecondGetRequest(with: configuration) + }, + handleResponse: handleNestedSecondGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureNestedSecondGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/nested/second" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleNestedSecondGetResponse(response: Client.APIResponse) throws -> Operations.NestedSecondGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_PaginationAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_PaginationAPI.swift new file mode 100755 index 000000000..1b52c1906 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_PaginationAPI.swift @@ -0,0 +1,228 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _PaginationAPI: PaginationAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func paginationCursorBody(request: Operations.PaginationCursorBodyRequestBody, server: PaginationServers.PaginationCursorBody?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? PaginationServers.PaginationCursorBody.default(), + configureRequest: { configuration in + try configurePaginationCursorBodyRequest(with: configuration, request: request) + }, + handleResponse: handlePaginationCursorBodyResponse + ) + } + + public func paginationCursorParams(request: Operations.PaginationCursorParamsRequest, server: PaginationServers.PaginationCursorParams?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? PaginationServers.PaginationCursorParams.default(), + configureRequest: { configuration in + try configurePaginationCursorParamsRequest(with: configuration, request: request) + }, + handleResponse: handlePaginationCursorParamsResponse + ) + } + + public func paginationLimitOffsetOffsetBody(request: Shared.LimitOffsetConfig, server: PaginationServers.PaginationLimitOffsetOffsetBody?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? PaginationServers.PaginationLimitOffsetOffsetBody.default(), + configureRequest: { configuration in + try configurePaginationLimitOffsetOffsetBodyRequest(with: configuration, request: request) + }, + handleResponse: handlePaginationLimitOffsetOffsetBodyResponse + ) + } + + public func paginationLimitOffsetOffsetParams(request: Operations.PaginationLimitOffsetOffsetParamsRequest, server: PaginationServers.PaginationLimitOffsetOffsetParams?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? PaginationServers.PaginationLimitOffsetOffsetParams.default(), + configureRequest: { configuration in + try configurePaginationLimitOffsetOffsetParamsRequest(with: configuration, request: request) + }, + handleResponse: handlePaginationLimitOffsetOffsetParamsResponse + ) + } + + public func paginationLimitOffsetPageBody(request: Shared.LimitOffsetConfig, server: PaginationServers.PaginationLimitOffsetPageBody?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? PaginationServers.PaginationLimitOffsetPageBody.default(), + configureRequest: { configuration in + try configurePaginationLimitOffsetPageBodyRequest(with: configuration, request: request) + }, + handleResponse: handlePaginationLimitOffsetPageBodyResponse + ) + } + + public func paginationLimitOffsetPageParams(request: Operations.PaginationLimitOffsetPageParamsRequest, server: PaginationServers.PaginationLimitOffsetPageParams?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? PaginationServers.PaginationLimitOffsetPageParams.default(), + configureRequest: { configuration in + try configurePaginationLimitOffsetPageParamsRequest(with: configuration, request: request) + }, + handleResponse: handlePaginationLimitOffsetPageParamsResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configurePaginationCursorBodyRequest(with configuration: URLRequestConfiguration, request: Operations.PaginationCursorBodyRequestBody) throws { + configuration.path = "/pagination/cursor" + configuration.method = .put + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePaginationCursorParamsRequest(with configuration: URLRequestConfiguration, request: Operations.PaginationCursorParamsRequest) throws { + configuration.path = "/pagination/cursor" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePaginationLimitOffsetOffsetBodyRequest(with configuration: URLRequestConfiguration, request: Shared.LimitOffsetConfig) throws { + configuration.path = "/pagination/limitoffset/offset" + configuration.method = .put + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePaginationLimitOffsetOffsetParamsRequest(with configuration: URLRequestConfiguration, request: Operations.PaginationLimitOffsetOffsetParamsRequest) throws { + configuration.path = "/pagination/limitoffset/offset" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePaginationLimitOffsetPageBodyRequest(with configuration: URLRequestConfiguration, request: Shared.LimitOffsetConfig) throws { + configuration.path = "/pagination/limitoffset/page" + configuration.method = .put + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePaginationLimitOffsetPageParamsRequest(with configuration: URLRequestConfiguration, request: Operations.PaginationLimitOffsetPageParamsRequest) throws { + configuration.path = "/pagination/limitoffset/page" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handlePaginationCursorBodyResponse(response: Client.APIResponse) throws -> Operations.PaginationCursorBodyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PaginationCursorBodyRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePaginationCursorParamsResponse(response: Client.APIResponse) throws -> Operations.PaginationCursorParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PaginationCursorParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePaginationLimitOffsetOffsetBodyResponse(response: Client.APIResponse) throws -> Operations.PaginationLimitOffsetOffsetBodyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PaginationLimitOffsetOffsetBodyRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePaginationLimitOffsetOffsetParamsResponse(response: Client.APIResponse) throws -> Operations.PaginationLimitOffsetOffsetParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PaginationLimitOffsetOffsetParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePaginationLimitOffsetPageBodyResponse(response: Client.APIResponse) throws -> Operations.PaginationLimitOffsetPageBodyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PaginationLimitOffsetPageBodyRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePaginationLimitOffsetPageParamsResponse(response: Client.APIResponse) throws -> Operations.PaginationLimitOffsetPageParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PaginationLimitOffsetPageParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_ParametersAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_ParametersAPI.swift new file mode 100755 index 000000000..dd5d3961c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_ParametersAPI.swift @@ -0,0 +1,758 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _ParametersAPI: ParametersAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func deepObjectQueryParamsMap(request: Operations.DeepObjectQueryParamsMapRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeepObjectQueryParamsMapRequest(with: configuration, request: request) + }, + handleResponse: handleDeepObjectQueryParamsMapResponse + ) + } + + public func deepObjectQueryParamsObject(request: Operations.DeepObjectQueryParamsObjectRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeepObjectQueryParamsObjectRequest(with: configuration, request: request) + }, + handleResponse: handleDeepObjectQueryParamsObjectResponse + ) + } + + public func duplicateParam(request: Operations.DuplicateParamRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDuplicateParamRequest(with: configuration, request: request) + }, + handleResponse: handleDuplicateParamResponse + ) + } + + public func formQueryParamsArray(request: Operations.FormQueryParamsArrayRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFormQueryParamsArrayRequest(with: configuration, request: request) + }, + handleResponse: handleFormQueryParamsArrayResponse + ) + } + + public func formQueryParamsCamelObject(request: Operations.FormQueryParamsCamelObjectRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFormQueryParamsCamelObjectRequest(with: configuration, request: request) + }, + handleResponse: handleFormQueryParamsCamelObjectResponse + ) + } + + public func formQueryParamsMap(request: Operations.FormQueryParamsMapRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFormQueryParamsMapRequest(with: configuration, request: request) + }, + handleResponse: handleFormQueryParamsMapResponse + ) + } + + public func formQueryParamsObject(request: Operations.FormQueryParamsObjectRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFormQueryParamsObjectRequest(with: configuration, request: request) + }, + handleResponse: handleFormQueryParamsObjectResponse + ) + } + + public func formQueryParamsPrimitive(request: Operations.FormQueryParamsPrimitiveRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFormQueryParamsPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleFormQueryParamsPrimitiveResponse + ) + } + + public func formQueryParamsRefParamObject(request: Operations.FormQueryParamsRefParamObjectRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFormQueryParamsRefParamObjectRequest(with: configuration, request: request) + }, + handleResponse: handleFormQueryParamsRefParamObjectResponse + ) + } + + public func headerParamsArray(request: Operations.HeaderParamsArrayRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureHeaderParamsArrayRequest(with: configuration, request: request) + }, + handleResponse: handleHeaderParamsArrayResponse + ) + } + + public func headerParamsMap(request: Operations.HeaderParamsMapRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureHeaderParamsMapRequest(with: configuration, request: request) + }, + handleResponse: handleHeaderParamsMapResponse + ) + } + + public func headerParamsObject(request: Operations.HeaderParamsObjectRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureHeaderParamsObjectRequest(with: configuration, request: request) + }, + handleResponse: handleHeaderParamsObjectResponse + ) + } + + public func headerParamsPrimitive(request: Operations.HeaderParamsPrimitiveRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureHeaderParamsPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleHeaderParamsPrimitiveResponse + ) + } + + public func jsonQueryParamsObject(request: Operations.JsonQueryParamsObjectRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureJsonQueryParamsObjectRequest(with: configuration, request: request) + }, + handleResponse: handleJsonQueryParamsObjectResponse + ) + } + + public func mixedParametersCamelCase(request: Operations.MixedParametersCamelCaseRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureMixedParametersCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleMixedParametersCamelCaseResponse + ) + } + + public func mixedParametersPrimitives(request: Operations.MixedParametersPrimitivesRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureMixedParametersPrimitivesRequest(with: configuration, request: request) + }, + handleResponse: handleMixedParametersPrimitivesResponse + ) + } + + public func mixedQueryParams(request: Operations.MixedQueryParamsRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureMixedQueryParamsRequest(with: configuration, request: request) + }, + handleResponse: handleMixedQueryParamsResponse + ) + } + + public func pathParameterJson(request: Operations.PathParameterJsonRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configurePathParameterJsonRequest(with: configuration, request: request) + }, + handleResponse: handlePathParameterJsonResponse + ) + } + + public func pipeDelimitedQueryParamsArray(request: Operations.PipeDelimitedQueryParamsArrayRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configurePipeDelimitedQueryParamsArrayRequest(with: configuration, request: request) + }, + handleResponse: handlePipeDelimitedQueryParamsArrayResponse + ) + } + + public func simplePathParameterArrays(request: Operations.SimplePathParameterArraysRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureSimplePathParameterArraysRequest(with: configuration, request: request) + }, + handleResponse: handleSimplePathParameterArraysResponse + ) + } + + public func simplePathParameterMaps(request: Operations.SimplePathParameterMapsRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureSimplePathParameterMapsRequest(with: configuration, request: request) + }, + handleResponse: handleSimplePathParameterMapsResponse + ) + } + + public func simplePathParameterObjects(request: Operations.SimplePathParameterObjectsRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureSimplePathParameterObjectsRequest(with: configuration, request: request) + }, + handleResponse: handleSimplePathParameterObjectsResponse + ) + } + + public func simplePathParameterPrimitives(request: Operations.SimplePathParameterPrimitivesRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureSimplePathParameterPrimitivesRequest(with: configuration, request: request) + }, + handleResponse: handleSimplePathParameterPrimitivesResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureDeepObjectQueryParamsMapRequest(with configuration: URLRequestConfiguration, request: Operations.DeepObjectQueryParamsMapRequest) throws { + configuration.path = "/anything/queryParams/deepObject/map" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDeepObjectQueryParamsObjectRequest(with configuration: URLRequestConfiguration, request: Operations.DeepObjectQueryParamsObjectRequest) throws { + configuration.path = "/anything/queryParams/deepObject/obj" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDuplicateParamRequest(with configuration: URLRequestConfiguration, request: Operations.DuplicateParamRequest) throws { + configuration.path = "/anything/params/{duplicateParamRequest}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureFormQueryParamsArrayRequest(with configuration: URLRequestConfiguration, request: Operations.FormQueryParamsArrayRequest) throws { + configuration.path = "/anything/queryParams/form/array" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureFormQueryParamsCamelObjectRequest(with configuration: URLRequestConfiguration, request: Operations.FormQueryParamsCamelObjectRequest) throws { + configuration.path = "/anything/queryParams/form/camelObj" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureFormQueryParamsMapRequest(with configuration: URLRequestConfiguration, request: Operations.FormQueryParamsMapRequest) throws { + configuration.path = "/anything/queryParams/form/map" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureFormQueryParamsObjectRequest(with configuration: URLRequestConfiguration, request: Operations.FormQueryParamsObjectRequest) throws { + configuration.path = "/anything/queryParams/form/obj" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureFormQueryParamsPrimitiveRequest(with configuration: URLRequestConfiguration, request: Operations.FormQueryParamsPrimitiveRequest) throws { + configuration.path = "/anything/queryParams/form/primitive" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureFormQueryParamsRefParamObjectRequest(with configuration: URLRequestConfiguration, request: Operations.FormQueryParamsRefParamObjectRequest) throws { + configuration.path = "/anything/queryParams/form/refParamObject" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureHeaderParamsArrayRequest(with configuration: URLRequestConfiguration, request: Operations.HeaderParamsArrayRequest) throws { + configuration.path = "/anything/headers/array" + configuration.method = .get + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureHeaderParamsMapRequest(with configuration: URLRequestConfiguration, request: Operations.HeaderParamsMapRequest) throws { + configuration.path = "/anything/headers/map" + configuration.method = .get + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureHeaderParamsObjectRequest(with configuration: URLRequestConfiguration, request: Operations.HeaderParamsObjectRequest) throws { + configuration.path = "/anything/headers/obj" + configuration.method = .get + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureHeaderParamsPrimitiveRequest(with configuration: URLRequestConfiguration, request: Operations.HeaderParamsPrimitiveRequest) throws { + configuration.path = "/anything/headers/primitive" + configuration.method = .get + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureJsonQueryParamsObjectRequest(with configuration: URLRequestConfiguration, request: Operations.JsonQueryParamsObjectRequest) throws { + configuration.path = "/anything/queryParams/json/obj" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMixedParametersCamelCaseRequest(with configuration: URLRequestConfiguration, request: Operations.MixedParametersCamelCaseRequest) throws { + configuration.path = "/anything/mixedParams/path/{path_param}/camelcase" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.queryParameterSerializable = request + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMixedParametersPrimitivesRequest(with configuration: URLRequestConfiguration, request: Operations.MixedParametersPrimitivesRequest) throws { + configuration.path = "/anything/mixedParams/path/{pathParam}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.queryParameterSerializable = request + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMixedQueryParamsRequest(with configuration: URLRequestConfiguration, request: Operations.MixedQueryParamsRequest) throws { + configuration.path = "/anything/queryParams/mixed" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePathParameterJsonRequest(with configuration: URLRequestConfiguration, request: Operations.PathParameterJsonRequest) throws { + configuration.path = "/anything/pathParams/json/{jsonObj}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePipeDelimitedQueryParamsArrayRequest(with configuration: URLRequestConfiguration, request: Operations.PipeDelimitedQueryParamsArrayRequest) throws { + configuration.path = "/anything/queryParams/pipe/array" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureSimplePathParameterArraysRequest(with configuration: URLRequestConfiguration, request: Operations.SimplePathParameterArraysRequest) throws { + configuration.path = "/anything/pathParams/arr/{arrParam}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureSimplePathParameterMapsRequest(with configuration: URLRequestConfiguration, request: Operations.SimplePathParameterMapsRequest) throws { + configuration.path = "/anything/pathParams/map/{mapParam}/mapExploded/{mapParamExploded}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureSimplePathParameterObjectsRequest(with configuration: URLRequestConfiguration, request: Operations.SimplePathParameterObjectsRequest) throws { + configuration.path = "/anything/pathParams/obj/{objParam}/objExploded/{objParamExploded}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureSimplePathParameterPrimitivesRequest(with configuration: URLRequestConfiguration, request: Operations.SimplePathParameterPrimitivesRequest) throws { + configuration.path = "/anything/pathParams/str/{strParam}/bool/{boolParam}/int/{intParam}/num/{numParam}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleDeepObjectQueryParamsMapResponse(response: Client.APIResponse) throws -> Operations.DeepObjectQueryParamsMapResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.DeepObjectQueryParamsMapRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleDeepObjectQueryParamsObjectResponse(response: Client.APIResponse) throws -> Operations.DeepObjectQueryParamsObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.DeepObjectQueryParamsObjectRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleDuplicateParamResponse(response: Client.APIResponse) throws -> Operations.DuplicateParamResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .duplicateParamResponse(try JSONDecoder().decode(Operations.DuplicateParamDuplicateParamResponse.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleFormQueryParamsArrayResponse(response: Client.APIResponse) throws -> Operations.FormQueryParamsArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FormQueryParamsArrayRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleFormQueryParamsCamelObjectResponse(response: Client.APIResponse) throws -> Operations.FormQueryParamsCamelObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FormQueryParamsCamelObjectRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleFormQueryParamsMapResponse(response: Client.APIResponse) throws -> Operations.FormQueryParamsMapResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FormQueryParamsMapRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleFormQueryParamsObjectResponse(response: Client.APIResponse) throws -> Operations.FormQueryParamsObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FormQueryParamsObjectRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleFormQueryParamsPrimitiveResponse(response: Client.APIResponse) throws -> Operations.FormQueryParamsPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FormQueryParamsPrimitiveRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleFormQueryParamsRefParamObjectResponse(response: Client.APIResponse) throws -> Operations.FormQueryParamsRefParamObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FormQueryParamsRefParamObjectRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleHeaderParamsArrayResponse(response: Client.APIResponse) throws -> Operations.HeaderParamsArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.HeaderParamsArrayRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleHeaderParamsMapResponse(response: Client.APIResponse) throws -> Operations.HeaderParamsMapResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.HeaderParamsMapRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleHeaderParamsObjectResponse(response: Client.APIResponse) throws -> Operations.HeaderParamsObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.HeaderParamsObjectRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleHeaderParamsPrimitiveResponse(response: Client.APIResponse) throws -> Operations.HeaderParamsPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.HeaderParamsPrimitiveRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleJsonQueryParamsObjectResponse(response: Client.APIResponse) throws -> Operations.JsonQueryParamsObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.JsonQueryParamsObjectRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleMixedParametersCamelCaseResponse(response: Client.APIResponse) throws -> Operations.MixedParametersCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.MixedParametersCamelCaseRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleMixedParametersPrimitivesResponse(response: Client.APIResponse) throws -> Operations.MixedParametersPrimitivesResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.MixedParametersPrimitivesRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleMixedQueryParamsResponse(response: Client.APIResponse) throws -> Operations.MixedQueryParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.MixedQueryParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePathParameterJsonResponse(response: Client.APIResponse) throws -> Operations.PathParameterJsonResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PathParameterJsonRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePipeDelimitedQueryParamsArrayResponse(response: Client.APIResponse) throws -> Operations.PipeDelimitedQueryParamsArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PipeDelimitedQueryParamsArrayRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleSimplePathParameterArraysResponse(response: Client.APIResponse) throws -> Operations.SimplePathParameterArraysResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.SimplePathParameterArraysRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleSimplePathParameterMapsResponse(response: Client.APIResponse) throws -> Operations.SimplePathParameterMapsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.SimplePathParameterMapsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleSimplePathParameterObjectsResponse(response: Client.APIResponse) throws -> Operations.SimplePathParameterObjectsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.SimplePathParameterObjectsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleSimplePathParameterPrimitivesResponse(response: Client.APIResponse) throws -> Operations.SimplePathParameterPrimitivesResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.SimplePathParameterPrimitivesRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_RequestBodiesAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_RequestBodiesAPI.swift new file mode 100755 index 000000000..ea3a97c49 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_RequestBodiesAPI.swift @@ -0,0 +1,2961 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _RequestBodiesAPI: RequestBodiesAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func nullableObjectPost(request: Shared.NullableObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableObjectPostResponse + ) + } + + public func nullableRequiredEmptyObjectPost(request: Operations.NullableRequiredEmptyObjectPostRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableRequiredEmptyObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableRequiredEmptyObjectPostResponse + ) + } + + public func nullableRequiredPropertyPost(request: Operations.NullableRequiredPropertyPostRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableRequiredPropertyPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableRequiredPropertyPostResponse + ) + } + + public func nullableRequiredSharedObjectPost(request: Operations.NullableRequiredSharedObjectPostRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableRequiredSharedObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableRequiredSharedObjectPostResponse + ) + } + + public func requestBodyPostApplicationJsonArray(request: [Shared.SimpleObject], server: RequestBodiesServers.RequestBodyPostApplicationJsonArray?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArray.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayResponse + ) + } + + public func requestBodyPostApplicationJsonArrayCamelCase(request: [Shared.SimpleObjectCamelCase], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayCamelCase?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayCamelCase.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonArrayObj(request: [Shared.SimpleObject]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayObjRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayObjResponse + ) + } + + public func requestBodyPostApplicationJsonArrayObjCamelCase(request: [Shared.SimpleObjectCamelCase]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayObjCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayObjCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonArrayOfArray(request: [[Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArray?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArray.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayOfArrayRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayOfArrayResponse + ) + } + + public func requestBodyPostApplicationJsonArrayOfArrayCamelCase(request: [[Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayCamelCase?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayCamelCase.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayOfArrayCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonArrayOfArrayOfPrimitive(request: [[String]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitive.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse + ) + } + + public func requestBodyPostApplicationJsonArrayOfMap(request: [[String: Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMap?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMap.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayOfMapRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayOfMapResponse + ) + } + + public func requestBodyPostApplicationJsonArrayOfMapCamelCase(request: [[String: Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMapCamelCase?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfMapCamelCase.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayOfMapCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonArrayOfPrimitive(request: [String], server: RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfPrimitive?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonArrayOfPrimitive.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonArrayOfPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonArrayOfPrimitiveResponse + ) + } + + public func requestBodyPostApplicationJsonDeep(request: Shared.DeepObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonDeepRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonDeepResponse + ) + } + + public func requestBodyPostApplicationJsonDeepCamelCase(request: Shared.DeepObjectCamelCase) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonDeepCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonDeepCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonMap(request: [String: Shared.SimpleObject], server: RequestBodiesServers.RequestBodyPostApplicationJsonMap?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMap.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapResponse + ) + } + + public func requestBodyPostApplicationJsonMapCamelCase(request: [String: Shared.SimpleObjectCamelCase], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapCamelCase?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapCamelCase.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonMapObj(request: [String: Shared.SimpleObject]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapObjRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapObjResponse + ) + } + + public func requestBodyPostApplicationJsonMapObjCamelCase(request: [String: Shared.SimpleObjectCamelCase]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapObjCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapObjCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonMapOfArray(request: [String: [Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArray?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArray.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapOfArrayRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapOfArrayResponse + ) + } + + public func requestBodyPostApplicationJsonMapOfArrayCamelCase(request: [String: [Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArrayCamelCase?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapOfArrayCamelCase.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapOfArrayCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonMapOfMap(request: [String: [String: Shared.SimpleObject]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMap?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMap.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapOfMapRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapOfMapResponse + ) + } + + public func requestBodyPostApplicationJsonMapOfMapCamelCase(request: [String: [String: Shared.SimpleObjectCamelCase]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapCamelCase?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapCamelCase.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapOfMapCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapOfMapCamelCaseResponse + ) + } + + public func requestBodyPostApplicationJsonMapOfMapOfPrimitive(request: [String: [String: String]], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapOfPrimitive?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapOfMapOfPrimitive.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapOfMapOfPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse + ) + } + + public func requestBodyPostApplicationJsonMapOfPrimitive(request: [String: String], server: RequestBodiesServers.RequestBodyPostApplicationJsonMapOfPrimitive?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyPostApplicationJsonMapOfPrimitive.default(), + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMapOfPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMapOfPrimitiveResponse + ) + } + + public func requestBodyPostApplicationJsonMultipleJsonFiltered(request: Shared.SimpleObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonMultipleJsonFilteredRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonMultipleJsonFilteredResponse + ) + } + + public func requestBodyPostApplicationJsonSimple(request: Shared.SimpleObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonSimpleRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonSimpleResponse + ) + } + + public func requestBodyPostApplicationJsonSimpleCamelCase(request: Shared.SimpleObjectCamelCase) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostApplicationJsonSimpleCamelCaseRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostApplicationJsonSimpleCamelCaseResponse + ) + } + + public func requestBodyPostComplexNumberTypes(request: Operations.RequestBodyPostComplexNumberTypesRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostComplexNumberTypesRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostComplexNumberTypesResponse + ) + } + + public func requestBodyPostDefaultsAndConsts(request: Shared.DefaultsAndConsts) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostDefaultsAndConstsRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostDefaultsAndConstsResponse + ) + } + + public func requestBodyPostEmptyObject(request: Operations.RequestBodyPostEmptyObjectRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostEmptyObjectRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostEmptyObjectResponse + ) + } + + public func requestBodyPostFormDeep(request: Shared.DeepObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostFormDeepRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostFormDeepResponse + ) + } + + public func requestBodyPostFormMapPrimitive(request: [String: String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostFormMapPrimitiveRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostFormMapPrimitiveResponse + ) + } + + public func requestBodyPostFormSimple(request: Shared.SimpleObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostFormSimpleRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostFormSimpleResponse + ) + } + + public func requestBodyPostJsonDataTypesArrayBigInt(request: [Int]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesArrayBigIntRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesArrayBigIntResponse + ) + } + + public func requestBodyPostJsonDataTypesArrayDate(request: [Date]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesArrayDateRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesArrayDateResponse + ) + } + + public func requestBodyPostJsonDataTypesArrayDecimalStr(request: [String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesArrayDecimalStrRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesArrayDecimalStrResponse + ) + } + + public func requestBodyPostJsonDataTypesBigInt(request: Int) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesBigIntRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesBigIntResponse + ) + } + + public func requestBodyPostJsonDataTypesBigIntStr(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesBigIntStrRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesBigIntStrResponse + ) + } + + public func requestBodyPostJsonDataTypesBoolean(request: Bool) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesBooleanRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesBooleanResponse + ) + } + + public func requestBodyPostJsonDataTypesDate(request: Date) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesDateRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesDateResponse + ) + } + + public func requestBodyPostJsonDataTypesDateTime(request: Date) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesDateTimeRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesDateTimeResponse + ) + } + + public func requestBodyPostJsonDataTypesDecimal(request: Double) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesDecimalRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesDecimalResponse + ) + } + + public func requestBodyPostJsonDataTypesDecimalStr(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesDecimalStrRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesDecimalStrResponse + ) + } + + public func requestBodyPostJsonDataTypesFloat32(request: Double) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesFloat32Request(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesFloat32Response + ) + } + + public func requestBodyPostJsonDataTypesInt32(request: Int) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesInt32Request(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesInt32Response + ) + } + + public func requestBodyPostJsonDataTypesInteger(request: Int) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesIntegerRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesIntegerResponse + ) + } + + public func requestBodyPostJsonDataTypesMapBigIntStr(request: [String: String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesMapBigIntStrRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesMapBigIntStrResponse + ) + } + + public func requestBodyPostJsonDataTypesMapDateTime(request: [String: Date]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesMapDateTimeRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesMapDateTimeResponse + ) + } + + public func requestBodyPostJsonDataTypesMapDecimal(request: [String: Double]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesMapDecimalRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesMapDecimalResponse + ) + } + + public func requestBodyPostJsonDataTypesNumber(request: Double) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesNumberRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesNumberResponse + ) + } + + public func requestBodyPostJsonDataTypesString(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostJsonDataTypesStringRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostJsonDataTypesStringResponse + ) + } + + public func requestBodyPostMultipleContentTypesComponentFiltered(request: Shared.SimpleObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesComponentFilteredRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesComponentFilteredResponse + ) + } + + public func requestBodyPostMultipleContentTypesInlineFiltered(request: Operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesInlineFilteredRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesInlineFilteredResponse + ) + } + + public func requestBodyPostMultipleContentTypesSplitParamForm(request: Operations.RequestBodyPostMultipleContentTypesSplitParamFormRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesSplitParamFormRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesSplitParamFormResponse + ) + } + + public func requestBodyPostMultipleContentTypesSplitParamJson(request: Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesSplitParamJsonRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesSplitParamJsonResponse + ) + } + + public func requestBodyPostMultipleContentTypesSplitParamMultipart(request: Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesSplitParamMultipartRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesSplitParamMultipartResponse + ) + } + + public func requestBodyPostMultipleContentTypesSplitForm(request: Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesSplitFormRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesSplitFormResponse + ) + } + + public func requestBodyPostMultipleContentTypesSplitJson(request: Operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesSplitJsonRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesSplitJsonResponse + ) + } + + public func requestBodyPostMultipleContentTypesSplitMultipart(request: Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostMultipleContentTypesSplitMultipartRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostMultipleContentTypesSplitMultipartResponse + ) + } + + public func requestBodyPostNotNullableNotRequiredStringBody(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostNotNullableNotRequiredStringBodyRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostNotNullableNotRequiredStringBodyResponse + ) + } + + public func requestBodyPostNullArray(request: [String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostNullArrayRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostNullArrayResponse + ) + } + + public func requestBodyPostNullDictionary(request: [String: String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostNullDictionaryRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostNullDictionaryResponse + ) + } + + public func requestBodyPostNullableNotRequiredStringBody(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostNullableNotRequiredStringBodyRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostNullableNotRequiredStringBodyResponse + ) + } + + public func requestBodyPostNullableRequiredStringBody(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPostNullableRequiredStringBodyRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPostNullableRequiredStringBodyResponse + ) + } + + public func requestBodyPutBytes(request: Data) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutBytesRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutBytesResponse + ) + } + + public func requestBodyPutBytesWithParams(request: Operations.RequestBodyPutBytesWithParamsRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutBytesWithParamsRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutBytesWithParamsResponse + ) + } + + public func requestBodyPutMultipartDeep(request: Shared.DeepObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutMultipartDeepRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutMultipartDeepResponse + ) + } + + public func requestBodyPutMultipartDifferentFileName(request: Operations.RequestBodyPutMultipartDifferentFileNameRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutMultipartDifferentFileNameRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutMultipartDifferentFileNameResponse + ) + } + + public func requestBodyPutMultipartFile(request: Operations.RequestBodyPutMultipartFileRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutMultipartFileRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutMultipartFileResponse + ) + } + + public func requestBodyPutMultipartSimple(request: Shared.SimpleObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutMultipartSimpleRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutMultipartSimpleResponse + ) + } + + public func requestBodyPutString(request: String) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutStringRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutStringResponse + ) + } + + public func requestBodyPutStringWithParams(request: Operations.RequestBodyPutStringWithParamsRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureRequestBodyPutStringWithParamsRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyPutStringWithParamsResponse + ) + } + + public func requestBodyReadAndWrite(request: Shared.ReadWriteObjectInput, server: RequestBodiesServers.RequestBodyReadAndWrite?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyReadAndWrite.default(), + configureRequest: { configuration in + try configureRequestBodyReadAndWriteRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyReadAndWriteResponse + ) + } + + public func requestBodyReadOnlyInput(request: Shared.ReadOnlyObjectInput, server: RequestBodiesServers.RequestBodyReadOnlyInput?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyReadOnlyInput.default(), + configureRequest: { configuration in + try configureRequestBodyReadOnlyInputRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyReadOnlyInputResponse + ) + } + + public func requestBodyReadOnlyUnion(request: Shared.WeaklyTypedOneOfReadOnlyObjectInput, server: RequestBodiesServers.RequestBodyReadOnlyUnion?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyReadOnlyUnion.default(), + configureRequest: { configuration in + try configureRequestBodyReadOnlyUnionRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyReadOnlyUnionResponse + ) + } + + public func requestBodyReadWriteOnlyUnion(request: Shared.WeaklyTypedOneOfReadWriteObjectInput, server: RequestBodiesServers.RequestBodyReadWriteOnlyUnion?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyReadWriteOnlyUnion.default(), + configureRequest: { configuration in + try configureRequestBodyReadWriteOnlyUnionRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyReadWriteOnlyUnionResponse + ) + } + + public func requestBodyWriteOnly(request: Shared.WriteOnlyObject, server: RequestBodiesServers.RequestBodyWriteOnly?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyWriteOnly.default(), + configureRequest: { configuration in + try configureRequestBodyWriteOnlyRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyWriteOnlyResponse + ) + } + + public func requestBodyWriteOnlyOutput(request: Shared.WriteOnlyObject, server: RequestBodiesServers.RequestBodyWriteOnlyOutput?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyWriteOnlyOutput.default(), + configureRequest: { configuration in + try configureRequestBodyWriteOnlyOutputRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyWriteOnlyOutputResponse + ) + } + + public func requestBodyWriteOnlyUnion(request: Shared.WeaklyTypedOneOfWriteOnlyObject, server: RequestBodiesServers.RequestBodyWriteOnlyUnion?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RequestBodiesServers.RequestBodyWriteOnlyUnion.default(), + configureRequest: { configuration in + try configureRequestBodyWriteOnlyUnionRequest(with: configuration, request: request) + }, + handleResponse: handleRequestBodyWriteOnlyUnionResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureNullableObjectPostRequest(with configuration: URLRequestConfiguration, request: Shared.NullableObject) throws { + configuration.path = "/anything/requestBodies/post/nullableRequiredObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableRequiredEmptyObjectPostRequest(with configuration: URLRequestConfiguration, request: Operations.NullableRequiredEmptyObjectPostRequestBody) throws { + configuration.path = "/anything/requestBodies/post/nullableRequiredEmptyObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableRequiredPropertyPostRequest(with configuration: URLRequestConfiguration, request: Operations.NullableRequiredPropertyPostRequestBody) throws { + configuration.path = "/anything/requestBodies/post/nullableRequiredProperty" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableRequiredSharedObjectPostRequest(with configuration: URLRequestConfiguration, request: Operations.NullableRequiredSharedObjectPostRequestBody) throws { + configuration.path = "/anything/requestBodies/post/nullableRequiredSharedObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayRequest(with configuration: URLRequestConfiguration, request: [Shared.SimpleObject]) throws { + configuration.path = "/requestbody#array" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayCamelCaseRequest(with configuration: URLRequestConfiguration, request: [Shared.SimpleObjectCamelCase]) throws { + configuration.path = "/requestbody#arrayCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayObjRequest(with configuration: URLRequestConfiguration, request: [Shared.SimpleObject]) throws { + configuration.path = "/anything/requestBodies/post/application/json/array/objResponse" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayObjCamelCaseRequest(with configuration: URLRequestConfiguration, request: [Shared.SimpleObjectCamelCase]) throws { + configuration.path = "/anything/requestBodies/post/application/json/array/objResponseCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayOfArrayRequest(with configuration: URLRequestConfiguration, request: [[Shared.SimpleObject]]) throws { + configuration.path = "/requestbody#arrayOfArrays" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayOfArrayCamelCaseRequest(with configuration: URLRequestConfiguration, request: [[Shared.SimpleObjectCamelCase]]) throws { + configuration.path = "/requestbody#arrayOfArraysCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveRequest(with configuration: URLRequestConfiguration, request: [[String]]) throws { + configuration.path = "/requestbody#arrayOfArraysOfPrimitives" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayOfMapRequest(with configuration: URLRequestConfiguration, request: [[String: Shared.SimpleObject]]) throws { + configuration.path = "/requestbody#arrayOfMaps" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayOfMapCamelCaseRequest(with configuration: URLRequestConfiguration, request: [[String: Shared.SimpleObjectCamelCase]]) throws { + configuration.path = "/requestbody#arrayOfMapsCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonArrayOfPrimitiveRequest(with configuration: URLRequestConfiguration, request: [String]) throws { + configuration.path = "/requestbody#arrayOfPrimitives" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonDeepRequest(with configuration: URLRequestConfiguration, request: Shared.DeepObject) throws { + configuration.path = "/anything/requestBodies/post/application/json/deep" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonDeepCamelCaseRequest(with configuration: URLRequestConfiguration, request: Shared.DeepObjectCamelCase) throws { + configuration.path = "/anything/requestBodies/post/application/json/deep/camelcase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapRequest(with configuration: URLRequestConfiguration, request: [String: Shared.SimpleObject]) throws { + configuration.path = "/requestbody#map" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapCamelCaseRequest(with configuration: URLRequestConfiguration, request: [String: Shared.SimpleObjectCamelCase]) throws { + configuration.path = "/requestbody#mapCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapObjRequest(with configuration: URLRequestConfiguration, request: [String: Shared.SimpleObject]) throws { + configuration.path = "/anything/requestBodies/post/application/json/map/objResponse" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapObjCamelCaseRequest(with configuration: URLRequestConfiguration, request: [String: Shared.SimpleObjectCamelCase]) throws { + configuration.path = "/anything/requestBodies/post/application/json/map/objResponseCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapOfArrayRequest(with configuration: URLRequestConfiguration, request: [String: [Shared.SimpleObject]]) throws { + configuration.path = "/requestbody#mapOfArrays" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapOfArrayCamelCaseRequest(with configuration: URLRequestConfiguration, request: [String: [Shared.SimpleObjectCamelCase]]) throws { + configuration.path = "/requestbody#mapOfArraysCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapOfMapRequest(with configuration: URLRequestConfiguration, request: [String: [String: Shared.SimpleObject]]) throws { + configuration.path = "/requestbody#mapOfMaps" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapOfMapCamelCaseRequest(with configuration: URLRequestConfiguration, request: [String: [String: Shared.SimpleObjectCamelCase]]) throws { + configuration.path = "/requestbody#mapOfMapsCamelCase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapOfMapOfPrimitiveRequest(with configuration: URLRequestConfiguration, request: [String: [String: String]]) throws { + configuration.path = "/requestbody#mapOfMapsOfPrimitives" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMapOfPrimitiveRequest(with configuration: URLRequestConfiguration, request: [String: String]) throws { + configuration.path = "/requestbody#mapOfPrimitives" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonMultipleJsonFilteredRequest(with configuration: URLRequestConfiguration, request: Shared.SimpleObject) throws { + configuration.path = "/anything/requestBodies/post/application/json/multiple/json/filtered" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonSimpleRequest(with configuration: URLRequestConfiguration, request: Shared.SimpleObject) throws { + configuration.path = "/anything/requestBodies/post/application/json/simple" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostApplicationJsonSimpleCamelCaseRequest(with configuration: URLRequestConfiguration, request: Shared.SimpleObjectCamelCase) throws { + configuration.path = "/anything/requestBodies/post/application/json/camelcase" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostComplexNumberTypesRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostComplexNumberTypesRequest) throws { + configuration.path = "/anything/requestBodies/post/{pathBigInt}/{pathBigIntStr}/{pathDecimal}/{pathDecimalStr}/complex-number-types" + configuration.method = .post + configuration.pathParameterSerializable = request + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.complexNumberTypes) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostDefaultsAndConstsRequest(with configuration: URLRequestConfiguration, request: Shared.DefaultsAndConsts) throws { + configuration.path = "/anything/requestBodies/post/defaultsAndConsts" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostEmptyObjectRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostEmptyObjectRequestBody) throws { + configuration.path = "/anything/requestBodies/post/empty-object" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostFormDeepRequest(with configuration: URLRequestConfiguration, request: Shared.DeepObject) throws { + configuration.path = "/anything/requestBodies/post/form/deep" + configuration.method = .post + configuration.contentType = "application/x-www-form-urlencoded" + configuration.body = try serializeFormData(with: request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostFormMapPrimitiveRequest(with configuration: URLRequestConfiguration, request: [String: String]) throws { + configuration.path = "/anything/requestBodies/post/form/map/primitive" + configuration.method = .post + configuration.contentType = "application/x-www-form-urlencoded" + configuration.body = try serializeFormData(with: request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostFormSimpleRequest(with configuration: URLRequestConfiguration, request: Shared.SimpleObject) throws { + configuration.path = "/anything/requestBodies/post/form/simple" + configuration.method = .post + configuration.contentType = "application/x-www-form-urlencoded" + configuration.body = try serializeFormData(with: request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesArrayBigIntRequest(with configuration: URLRequestConfiguration, request: [Int]) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/array/bigInt" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesArrayDateRequest(with configuration: URLRequestConfiguration, request: [Date]) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/array/date" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesArrayDecimalStrRequest(with configuration: URLRequestConfiguration, request: [String]) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/array/decimalStr" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesBigIntRequest(with configuration: URLRequestConfiguration, request: Int) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/bigint" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesBigIntStrRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/bigintStr" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesBooleanRequest(with configuration: URLRequestConfiguration, request: Bool) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/boolean" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesDateRequest(with configuration: URLRequestConfiguration, request: Date) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/date" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesDateTimeRequest(with configuration: URLRequestConfiguration, request: Date) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/dateTime" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesDecimalRequest(with configuration: URLRequestConfiguration, request: Double) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/decimal" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesDecimalStrRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/decimalStr" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesFloat32Request(with configuration: URLRequestConfiguration, request: Double) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/float32" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesInt32Request(with configuration: URLRequestConfiguration, request: Int) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/int32" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesIntegerRequest(with configuration: URLRequestConfiguration, request: Int) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/integer" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesMapBigIntStrRequest(with configuration: URLRequestConfiguration, request: [String: String]) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/map/bigIntStr" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesMapDateTimeRequest(with configuration: URLRequestConfiguration, request: [String: Date]) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/map/dateTime" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesMapDecimalRequest(with configuration: URLRequestConfiguration, request: [String: Double]) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/map/decimal" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesNumberRequest(with configuration: URLRequestConfiguration, request: Double) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/number" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostJsonDataTypesStringRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/post/jsonDataTypes/string" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesComponentFilteredRequest(with configuration: URLRequestConfiguration, request: Shared.SimpleObject) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/component/filtered" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesInlineFilteredRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/inline/filtered" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesSplitParamFormRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesSplitParamFormRequest) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/split/param" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/x-www-form-urlencoded" + configuration.body = try serializeFormData(with: request.requestBody) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesSplitParamJsonRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRequest) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/split/param" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request.requestBody) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesSplitParamMultipartRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRequest) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/split/param" + configuration.method = .post + configuration.queryParameterSerializable = request + let (boundary, formData) = try serializeMultipartFormData(with: request.requestBody) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesSplitFormRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/split" + configuration.method = .post + configuration.contentType = "application/x-www-form-urlencoded" + configuration.body = try serializeFormData(with: request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesSplitJsonRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/split" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostMultipleContentTypesSplitMultipartRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData) throws { + configuration.path = "/anything/requestBodies/post/multiple/contentTypes/split" + configuration.method = .post + let (boundary, formData) = try serializeMultipartFormData(with: request) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostNotNullableNotRequiredStringBodyRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/post/notnullable/notrequired/string" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostNullArrayRequest(with configuration: URLRequestConfiguration, request: [String]) throws { + configuration.path = "/anything/requestBodies/post/null-array" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostNullDictionaryRequest(with configuration: URLRequestConfiguration, request: [String: String]) throws { + configuration.path = "/anything/requestBodies/post/null-dictionary" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostNullableNotRequiredStringBodyRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/post/nullable/notrequired/string" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPostNullableRequiredStringBodyRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/post/nullable/required/string" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutBytesRequest(with configuration: URLRequestConfiguration, request: Data) throws { + configuration.path = "/anything/requestBodies/put/bytes" + configuration.method = .put + configuration.contentType = "application/octet-stream" + configuration.body = request + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutBytesWithParamsRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPutBytesWithParamsRequest) throws { + configuration.path = "/anything/requestBodies/put/bytesWithParams" + configuration.method = .put + configuration.queryParameterSerializable = request + configuration.contentType = "application/octet-stream" + configuration.body = request.requestBody + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutMultipartDeepRequest(with configuration: URLRequestConfiguration, request: Shared.DeepObject) throws { + configuration.path = "/anything/requestBodies/put/multipart/deep" + configuration.method = .put + let (boundary, formData) = try serializeMultipartFormData(with: request) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutMultipartDifferentFileNameRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPutMultipartDifferentFileNameRequestBody) throws { + configuration.path = "/anything/requestBodies/put/multipart/differentFileName" + configuration.method = .put + let (boundary, formData) = try serializeMultipartFormData(with: request) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutMultipartFileRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPutMultipartFileRequestBody) throws { + configuration.path = "/anything/requestBodies/put/multipart/file" + configuration.method = .put + let (boundary, formData) = try serializeMultipartFormData(with: request) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutMultipartSimpleRequest(with configuration: URLRequestConfiguration, request: Shared.SimpleObject) throws { + configuration.path = "/anything/requestBodies/put/multipart/simple" + configuration.method = .put + let (boundary, formData) = try serializeMultipartFormData(with: request) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutStringRequest(with configuration: URLRequestConfiguration, request: String) throws { + configuration.path = "/anything/requestBodies/put/string" + configuration.method = .put + configuration.contentType = "text/plain" + configuration.body = request.data(using: .utf8) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyPutStringWithParamsRequest(with configuration: URLRequestConfiguration, request: Operations.RequestBodyPutStringWithParamsRequest) throws { + configuration.path = "/anything/requestBodies/put/stringWithParams" + configuration.method = .put + configuration.queryParameterSerializable = request + configuration.contentType = "text/plain" + configuration.body = request.requestBody.data(using: .utf8) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyReadAndWriteRequest(with configuration: URLRequestConfiguration, request: Shared.ReadWriteObjectInput) throws { + configuration.path = "/readonlyandwriteonly" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyReadOnlyInputRequest(with configuration: URLRequestConfiguration, request: Shared.ReadOnlyObjectInput) throws { + configuration.path = "/readonlyorwriteonly#readOnlyInput" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyReadOnlyUnionRequest(with configuration: URLRequestConfiguration, request: Shared.WeaklyTypedOneOfReadOnlyObjectInput) throws { + configuration.path = "/readonlyorwriteonly#readOnlyUnion" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyReadWriteOnlyUnionRequest(with configuration: URLRequestConfiguration, request: Shared.WeaklyTypedOneOfReadWriteObjectInput) throws { + configuration.path = "/readonlyandwriteonly#readWriteOnlyUnion" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyWriteOnlyRequest(with configuration: URLRequestConfiguration, request: Shared.WriteOnlyObject) throws { + configuration.path = "/readonlyorwriteonly#writeOnly" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyWriteOnlyOutputRequest(with configuration: URLRequestConfiguration, request: Shared.WriteOnlyObject) throws { + configuration.path = "/writeonlyoutput#writeOnlyOutput" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureRequestBodyWriteOnlyUnionRequest(with configuration: URLRequestConfiguration, request: Shared.WeaklyTypedOneOfWriteOnlyObject) throws { + configuration.path = "/writeonlyoutput#writeOnlyUnion" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleNullableObjectPostResponse(response: Client.APIResponse) throws -> Operations.NullableObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.NullableObjectPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleNullableRequiredEmptyObjectPostResponse(response: Client.APIResponse) throws -> Operations.NullableRequiredEmptyObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + guard let string = String(data: data, encoding: .utf8) else { + throw ResponseHandlerError.failedToDecodeResponse + } + return .nullableRequiredEmptyObjectPost200ApplicationJSONString(string) + } + } + + return .empty +} + +private func handleNullableRequiredPropertyPostResponse(response: Client.APIResponse) throws -> Operations.NullableRequiredPropertyPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + guard let string = String(data: data, encoding: .utf8) else { + throw ResponseHandlerError.failedToDecodeResponse + } + return .nullableRequiredPropertyPost200ApplicationJSONString(string) + } + } + + return .empty +} + +private func handleNullableRequiredSharedObjectPostResponse(response: Client.APIResponse) throws -> Operations.NullableRequiredSharedObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + guard let string = String(data: data, encoding: .utf8) else { + throw ResponseHandlerError.failedToDecodeResponse + } + return .nullableRequiredSharedObjectPost200ApplicationJSONString(string) + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .simpleObjects(try JSONDecoder().decode([Shared.SimpleObject].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .simpleObjectCamelCases(try JSONDecoder().decode([Shared.SimpleObjectCamelCase].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayObjResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayObjResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .arrObjValue(try JSONDecoder().decode(Shared.ArrObjValue.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayObjCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayObjCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .arrObjValueCamelCase(try JSONDecoder().decode(Shared.ArrObjValueCamelCase.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayOfArrayResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayOfArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .arrs(try JSONDecoder().decode([[Shared.SimpleObject]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .arrs(try JSONDecoder().decode([[Shared.SimpleObjectCamelCase]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .arrs(try JSONDecoder().decode([[String]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayOfMapResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayOfMapResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .maps(try JSONDecoder().decode([[String: Shared.SimpleObject]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .maps(try JSONDecoder().decode([[String: Shared.SimpleObjectCamelCase]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonArrayOfPrimitiveResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonArrayOfPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .strings(try JSONDecoder().decode([String].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonDeepResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonDeepResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostApplicationJsonDeepRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonDeepCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonDeepCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostApplicationJsonDeepCamelCaseRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: Shared.SimpleObject].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: Shared.SimpleObjectCamelCase].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapObjResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapObjResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .mapObjValue(try JSONDecoder().decode(Shared.MapObjValue.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapObjCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapObjCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .mapObjValueCamelCase(try JSONDecoder().decode(Shared.MapObjValueCamelCase.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapOfArrayResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapOfArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: [Shared.SimpleObject]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: [Shared.SimpleObjectCamelCase]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapOfMapResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapOfMapResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: [String: Shared.SimpleObject]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapOfMapCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: [String: Shared.SimpleObjectCamelCase]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: [String: String]].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMapOfPrimitiveResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMapOfPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode([String: String].self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonMultipleJsonFilteredResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonMultipleJsonFilteredResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostApplicationJsonMultipleJsonFilteredRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonSimpleResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonSimpleResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostApplicationJsonSimpleRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostApplicationJsonSimpleCamelCaseResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostApplicationJsonSimpleCamelCaseResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostApplicationJsonSimpleCamelCaseRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostComplexNumberTypesResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostComplexNumberTypesResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostComplexNumberTypes200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostComplexNumberTypes200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostDefaultsAndConstsResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostDefaultsAndConstsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostDefaultsAndConsts200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostDefaultsAndConsts200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostEmptyObjectResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostEmptyObjectResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostEmptyObject200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostEmptyObject200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostFormDeepResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostFormDeepResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostFormDeepRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostFormMapPrimitiveResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostFormMapPrimitiveResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostFormMapPrimitiveRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostFormSimpleResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostFormSimpleResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostFormSimpleRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesArrayBigIntResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesArrayBigIntResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesArrayDateResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesArrayDateResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesArrayDecimalStrResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesArrayDecimalStrResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesBigIntResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesBigIntResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesBigInt200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesBigIntStrResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesBigIntStrResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesBooleanResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesBooleanResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesBoolean200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesDateResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesDateResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesDate200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesDate200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesDateTimeResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesDateTimeResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesDateTime200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesDecimalResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesDecimalResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesDecimal200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesDecimalStrResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesDecimalStrResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesFloat32Response(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesFloat32Response { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesFloat32200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesInt32Response(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesInt32Response { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesInt32200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesInt32200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesIntegerResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesIntegerResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesInteger200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesInteger200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesMapBigIntStrResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesMapBigIntStrResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesMapDateTimeResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesMapDateTimeResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesMapDecimalResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesMapDecimalResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesNumberResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesNumberResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesNumber200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesNumber200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostJsonDataTypesStringResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostJsonDataTypesStringResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostJSONDataTypesString200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostJSONDataTypesString200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesComponentFilteredResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesComponentFilteredResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesComponentFilteredRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesInlineFilteredResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesInlineFilteredResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesInlineFilteredRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesSplitParamFormResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesSplitParamFormResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesSplitParamFormRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesSplitParamJsonResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesSplitParamJsonResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesSplitParamMultipartResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesSplitFormResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesSplitFormResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesSplitFormRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesSplitJsonResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesSplitJsonResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesSplitJsonRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostMultipleContentTypesSplitMultipartResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostMultipleContentTypesSplitMultipartResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPostMultipleContentTypesSplitMultipartRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostNotNullableNotRequiredStringBodyResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostNotNullableNotRequiredStringBodyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostNullArrayResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostNullArrayResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostNullArray200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostNullArray200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostNullDictionaryResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostNullDictionaryResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostNullDictionary200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostNullDictionary200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostNullableNotRequiredStringBodyResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostNullableNotRequiredStringBodyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPostNullableRequiredStringBodyResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPostNullableRequiredStringBodyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .requestBodyPostNullableRequiredStringBody200ApplicationJSONObject(try JSONDecoder().decode(Operations.RequestBodyPostNullableRequiredStringBody200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutBytesResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutBytesResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutBytesRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutBytesWithParamsResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutBytesWithParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutBytesWithParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutMultipartDeepResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutMultipartDeepResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutMultipartDeepRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutMultipartDifferentFileNameResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutMultipartDifferentFileNameResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutMultipartDifferentFileNameRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutMultipartFileResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutMultipartFileResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutMultipartFileRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutMultipartSimpleResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutMultipartSimpleResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutMultipartSimpleRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutStringResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutStringResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutStringRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyPutStringWithParamsResponse(response: Client.APIResponse) throws -> Operations.RequestBodyPutStringWithParamsResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.RequestBodyPutStringWithParamsRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyReadAndWriteResponse(response: Client.APIResponse) throws -> Operations.RequestBodyReadAndWriteResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .readWriteObject(try JSONDecoder().decode(Shared.ReadWriteObjectOutput.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyReadOnlyInputResponse(response: Client.APIResponse) throws -> Operations.RequestBodyReadOnlyInputResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .readOnlyObject(try JSONDecoder().decode(Shared.ReadOnlyObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyReadOnlyUnionResponse(response: Client.APIResponse) throws -> Operations.RequestBodyReadOnlyUnionResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .weaklyTypedOneOfReadOnlyObject(try JSONDecoder().decode(Shared.WeaklyTypedOneOfReadOnlyObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyReadWriteOnlyUnionResponse(response: Client.APIResponse) throws -> Operations.RequestBodyReadWriteOnlyUnionResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .weaklyTypedOneOfReadWriteObject(try JSONDecoder().decode(Shared.WeaklyTypedOneOfReadWriteObjectOutput.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyWriteOnlyResponse(response: Client.APIResponse) throws -> Operations.RequestBodyWriteOnlyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .readOnlyObject(try JSONDecoder().decode(Shared.ReadOnlyObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyWriteOnlyOutputResponse(response: Client.APIResponse) throws -> Operations.RequestBodyWriteOnlyOutputResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .writeOnlyObject(try JSONDecoder().decode(Shared.WriteOnlyObjectOutput.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleRequestBodyWriteOnlyUnionResponse(response: Client.APIResponse) throws -> Operations.RequestBodyWriteOnlyUnionResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .weaklyTypedOneOfWriteOnlyObject(try JSONDecoder().decode(Shared.WeaklyTypedOneOfWriteOnlyObjectOutput.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_ResourceAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_ResourceAPI.swift new file mode 100755 index 000000000..52bd9b185 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_ResourceAPI.swift @@ -0,0 +1,175 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _ResourceAPI: ResourceAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func createFile(request: Operations.CreateFileRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureCreateFileRequest(with: configuration, request: request) + }, + handleResponse: handleCreateFileResponse + ) + } + + public func createResource(request: Shared.ExampleResource) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureCreateResourceRequest(with: configuration, request: request) + }, + handleResponse: handleCreateResourceResponse + ) + } + + public func deleteResource(request: Operations.DeleteResourceRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureDeleteResourceRequest(with: configuration, request: request) + }, + handleResponse: handleDeleteResourceResponse + ) + } + + public func getResource(request: Operations.GetResourceRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGetResourceRequest(with: configuration, request: request) + }, + handleResponse: handleGetResourceResponse + ) + } + + public func updateResource(request: Operations.UpdateResourceRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureUpdateResourceRequest(with: configuration, request: request) + }, + handleResponse: handleUpdateResourceResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureCreateFileRequest(with configuration: URLRequestConfiguration, request: Operations.CreateFileRequestBody) throws { + configuration.path = "/fileResource" + configuration.method = .post + let (boundary, formData) = try serializeMultipartFormData(with: request) + configuration.contentType = multipartContentType(with: boundary) + configuration.body = formData + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureCreateResourceRequest(with configuration: URLRequestConfiguration, request: Shared.ExampleResource) throws { + configuration.path = "/resource" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureDeleteResourceRequest(with configuration: URLRequestConfiguration, request: Operations.DeleteResourceRequest) throws { + configuration.path = "/resource/{resourceId}" + configuration.method = .delete + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureGetResourceRequest(with configuration: URLRequestConfiguration, request: Operations.GetResourceRequest) throws { + configuration.path = "/resource/{resourceId}" + configuration.method = .get + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureUpdateResourceRequest(with configuration: URLRequestConfiguration, request: Operations.UpdateResourceRequest) throws { + configuration.path = "/resource/{resourceId}" + configuration.method = .post + configuration.pathParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleCreateFileResponse(response: Client.APIResponse) throws -> Operations.CreateFileResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .fileResource(try JSONDecoder().decode(Shared.FileResource.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleCreateResourceResponse(response: Client.APIResponse) throws -> Operations.CreateResourceResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .exampleResource(try JSONDecoder().decode(Shared.ExampleResource.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleDeleteResourceResponse(response: Client.APIResponse) throws -> Operations.DeleteResourceResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 204 { + return .empty + } + + return .empty +} + +private func handleGetResourceResponse(response: Client.APIResponse) throws -> Operations.GetResourceResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .exampleResource(try JSONDecoder().decode(Shared.ExampleResource.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleUpdateResourceResponse(response: Client.APIResponse) throws -> Operations.UpdateResourceResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 202 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_ResponseBodiesAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_ResponseBodiesAPI.swift new file mode 100755 index 000000000..5443287fb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_ResponseBodiesAPI.swift @@ -0,0 +1,381 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _ResponseBodiesAPI: ResponseBodiesAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func responseBodyAdditionalPropertiesComplexNumbersPost(request: [String: String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyAdditionalPropertiesComplexNumbersPostRequest(with: configuration, request: request) + }, + handleResponse: handleResponseBodyAdditionalPropertiesComplexNumbersPostResponse + ) + } + + public func responseBodyAdditionalPropertiesDatePost(request: [String: Date]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyAdditionalPropertiesDatePostRequest(with: configuration, request: request) + }, + handleResponse: handleResponseBodyAdditionalPropertiesDatePostResponse + ) + } + + public func responseBodyAdditionalPropertiesObjectPost(request: [String: Shared.SimpleObject]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyAdditionalPropertiesObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleResponseBodyAdditionalPropertiesObjectPostResponse + ) + } + + public func responseBodyAdditionalPropertiesPost(request: [String: String]) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyAdditionalPropertiesPostRequest(with: configuration, request: request) + }, + handleResponse: handleResponseBodyAdditionalPropertiesPostResponse + ) + } + + public func responseBodyBytesGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyBytesGetRequest(with: configuration) + }, + handleResponse: handleResponseBodyBytesGetResponse + ) + } + + public func responseBodyEmptyWithHeaders(request: Operations.ResponseBodyEmptyWithHeadersRequest) async throws -> ResponseWithHeaders { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyEmptyWithHeadersRequest(with: configuration, request: request) + }, + handleResponse: handleResponseBodyEmptyWithHeadersResponse + ) + } + + public func responseBodyOptionalGet(server: ResponseBodiesServers.ResponseBodyOptionalGet?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ResponseBodiesServers.ResponseBodyOptionalGet.default(), + configureRequest: { configuration in + try configureResponseBodyOptionalGetRequest(with: configuration) + }, + handleResponse: handleResponseBodyOptionalGetResponse + ) + } + + public func responseBodyReadOnly(server: ResponseBodiesServers.ResponseBodyReadOnly?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ResponseBodiesServers.ResponseBodyReadOnly.default(), + configureRequest: { configuration in + try configureResponseBodyReadOnlyRequest(with: configuration) + }, + handleResponse: handleResponseBodyReadOnlyResponse + ) + } + + public func responseBodyStringGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyStringGetRequest(with: configuration) + }, + handleResponse: handleResponseBodyStringGetResponse + ) + } + + public func responseBodyXmlGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyXmlGetRequest(with: configuration) + }, + handleResponse: handleResponseBodyXmlGetResponse + ) + } + + public func responseBodyZeroValueComplexTypePtrsPost(request: Shared.ObjWithZeroValueComplexTypePtrs) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureResponseBodyZeroValueComplexTypePtrsPostRequest(with: configuration, request: request) + }, + handleResponse: handleResponseBodyZeroValueComplexTypePtrsPostResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureResponseBodyAdditionalPropertiesComplexNumbersPostRequest(with configuration: URLRequestConfiguration, request: [String: String]) throws { + configuration.path = "/anything/responseBodies/additionalPropertiesComplexNumbers" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyAdditionalPropertiesDatePostRequest(with configuration: URLRequestConfiguration, request: [String: Date]) throws { + configuration.path = "/anything/responseBodies/additionalPropertiesDate" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyAdditionalPropertiesObjectPostRequest(with configuration: URLRequestConfiguration, request: [String: Shared.SimpleObject]) throws { + configuration.path = "/anything/responseBodies/additionalPropertiesObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyAdditionalPropertiesPostRequest(with configuration: URLRequestConfiguration, request: [String: String]) throws { + configuration.path = "/anything/responseBodies/additionalProperties" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyBytesGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/bytes/100" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyEmptyWithHeadersRequest(with configuration: URLRequestConfiguration, request: Operations.ResponseBodyEmptyWithHeadersRequest) throws { + configuration.path = "/response-headers" + configuration.method = .post + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyOptionalGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/optional" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyReadOnlyRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/readonlyorwriteonly#readOnly" + configuration.method = .post + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyStringGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/html" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyXmlGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/xml" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureResponseBodyZeroValueComplexTypePtrsPostRequest(with configuration: URLRequestConfiguration, request: Shared.ObjWithZeroValueComplexTypePtrs) throws { + configuration.path = "/anything/responseBodies/zeroValueComplexTypePtrs" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleResponseBodyAdditionalPropertiesComplexNumbersPostResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyAdditionalPropertiesComplexNumbersPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .responseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject(try JSONDecoder().decode(Operations.ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleResponseBodyAdditionalPropertiesDatePostResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyAdditionalPropertiesDatePostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .responseBodyAdditionalPropertiesDatePost200ApplicationJSONObject(try JSONDecoder().decode(Operations.ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleResponseBodyAdditionalPropertiesObjectPostResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyAdditionalPropertiesObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject(try JSONDecoder().decode(Operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleResponseBodyAdditionalPropertiesPostResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyAdditionalPropertiesPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .responseBodyAdditionalPropertiesPost200ApplicationJSONObject(try JSONDecoder().decode(Operations.ResponseBodyAdditionalPropertiesPost200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleResponseBodyBytesGetResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyBytesGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/octet-stream"), let data = response.data { + return .bytes(data) + } + } + + return .empty +} + +private func handleResponseBodyEmptyWithHeadersResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyEmptyWithHeadersResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleResponseBodyOptionalGetResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyOptionalGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .typedObject1(try JSONDecoder().decode(Shared.TypedObject1.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + if httpResponse.contentType.matchContentType(pattern: "text/plain"), let data = response.data { + guard let string = String(data: data, encoding: .utf8) else { + throw ResponseHandlerError.failedToDecodeResponse + } + return .responseBodyOptionalGet200TextPlainString(string) + } + } + + return .empty +} + +private func handleResponseBodyReadOnlyResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyReadOnlyResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .readOnlyObject(try JSONDecoder().decode(Shared.ReadOnlyObject.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleResponseBodyStringGetResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyStringGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "text/html"), let data = response.data { + guard let string = String(data: data, encoding: .utf8) else { + throw ResponseHandlerError.failedToDecodeResponse + } + return .html(string) + } + } + + return .empty +} + +private func handleResponseBodyXmlGetResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyXmlGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/xml"), let data = response.data { + guard let string = String(data: data, encoding: .utf8) else { + throw ResponseHandlerError.failedToDecodeResponse + } + return .xml(string) + } + } + + return .empty +} + +private func handleResponseBodyZeroValueComplexTypePtrsPostResponse(response: Client.APIResponse) throws -> Operations.ResponseBodyZeroValueComplexTypePtrsPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .responseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject(try JSONDecoder().decode(Operations.ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_RetriesAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_RetriesAPI.swift new file mode 100755 index 000000000..b87abe5b9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_RetriesAPI.swift @@ -0,0 +1,51 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _RetriesAPI: RetriesAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func retriesGet(request: Operations.RetriesGetRequest, server: RetriesServers.RetriesGet?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? RetriesServers.RetriesGet.default(), + configureRequest: { configuration in + try configureRetriesGetRequest(with: configuration, request: request) + }, + handleResponse: handleRetriesGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureRetriesGetRequest(with configuration: URLRequestConfiguration, request: Operations.RetriesGetRequest) throws { + configuration.path = "/retries" + configuration.method = .get + configuration.queryParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleRetriesGetResponse(response: Client.APIResponse) throws -> Operations.RetriesGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .retries(try JSONDecoder().decode(Operations.RetriesGetRetries.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_SecondAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_SecondAPI.swift new file mode 100755 index 000000000..d0463f550 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_SecondAPI.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _SecondAPI: SecondAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func groupSecondGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureGroupSecondGetRequest(with: configuration) + }, + handleResponse: handleGroupSecondGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureGroupSecondGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/group/second" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleGroupSecondGetResponse(response: Client.APIResponse) throws -> Operations.GroupSecondGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_ServersAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_ServersAPI.swift new file mode 100755 index 000000000..d51dfe574 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_ServersAPI.swift @@ -0,0 +1,172 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _ServersAPI: ServersAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func selectGlobalServer() async throws -> ResponseWithHeaders { + return try await client.makeRequest( + configureRequest: { configuration in + try configureSelectGlobalServerRequest(with: configuration) + }, + handleResponse: handleSelectGlobalServerResponse + ) + } + + public func selectServerWithID(server: ServersServers.SelectServerWithID?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ServersServers.SelectServerWithID.default(), + configureRequest: { configuration in + try configureSelectServerWithIDRequest(with: configuration) + }, + handleResponse: handleSelectServerWithIDResponse + ) + } + + public func serverWithProtocolTemplate(server: ServersServers.ServerWithProtocolTemplate?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ServersServers.ServerWithProtocolTemplate.default(), + configureRequest: { configuration in + try configureServerWithProtocolTemplateRequest(with: configuration) + }, + handleResponse: handleServerWithProtocolTemplateResponse + ) + } + + public func serverWithTemplates(server: ServersServers.ServerWithTemplates?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ServersServers.ServerWithTemplates.default(), + configureRequest: { configuration in + try configureServerWithTemplatesRequest(with: configuration) + }, + handleResponse: handleServerWithTemplatesResponse + ) + } + + public func serverWithTemplatesGlobal() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureServerWithTemplatesGlobalRequest(with: configuration) + }, + handleResponse: handleServerWithTemplatesGlobalResponse + ) + } + + public func serversByIDWithTemplates(server: ServersServers.ServersByIDWithTemplates?) async throws -> Response { + return try await client.makeRequest( + with: try server?.server() ?? ServersServers.ServersByIDWithTemplates.default(), + configureRequest: { configuration in + try configureServersByIDWithTemplatesRequest(with: configuration) + }, + handleResponse: handleServersByIDWithTemplatesResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureSelectGlobalServerRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/selectGlobalServer" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureSelectServerWithIDRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/selectServerWithID" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureServerWithProtocolTemplateRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/serverWithProtocolTemplate" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureServerWithTemplatesRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/serverWithTemplates" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureServerWithTemplatesGlobalRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/serverWithTemplatesGlobal" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureServersByIDWithTemplatesRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/serversByIDWithTemplates" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleSelectGlobalServerResponse(response: Client.APIResponse) throws -> Operations.SelectGlobalServerResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleSelectServerWithIDResponse(response: Client.APIResponse) throws -> Operations.SelectServerWithIDResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleServerWithProtocolTemplateResponse(response: Client.APIResponse) throws -> Operations.ServerWithProtocolTemplateResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleServerWithTemplatesResponse(response: Client.APIResponse) throws -> Operations.ServerWithTemplatesResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleServerWithTemplatesGlobalResponse(response: Client.APIResponse) throws -> Operations.ServerWithTemplatesGlobalResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + +private func handleServersByIDWithTemplatesResponse(response: Client.APIResponse) throws -> Operations.ServersByIDWithTemplatesResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + return .empty + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_TelemetryAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_TelemetryAPI.swift new file mode 100755 index 000000000..0433d4e50 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_TelemetryAPI.swift @@ -0,0 +1,81 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _TelemetryAPI: TelemetryAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func telemetrySpeakeasyUserAgentGet(request: Operations.TelemetrySpeakeasyUserAgentGetRequest) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureTelemetrySpeakeasyUserAgentGetRequest(with: configuration, request: request) + }, + handleResponse: handleTelemetrySpeakeasyUserAgentGetResponse + ) + } + + public func telemetryUserAgentGet() async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureTelemetryUserAgentGetRequest(with: configuration) + }, + handleResponse: handleTelemetryUserAgentGetResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureTelemetrySpeakeasyUserAgentGetRequest(with configuration: URLRequestConfiguration, request: Operations.TelemetrySpeakeasyUserAgentGetRequest) throws { + configuration.path = "/anything/telemetry/speakeasy-user-agent" + configuration.method = .get + configuration.headerParameterSerializable = request + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureTelemetryUserAgentGetRequest(with configuration: URLRequestConfiguration) throws { + configuration.path = "/anything/telemetry/user-agent" + configuration.method = .get + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleTelemetrySpeakeasyUserAgentGetResponse(response: Client.APIResponse) throws -> Operations.TelemetrySpeakeasyUserAgentGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.TelemetrySpeakeasyUserAgentGetRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleTelemetryUserAgentGetResponse(response: Client.APIResponse) throws -> Operations.TelemetryUserAgentGetResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.TelemetryUserAgentGetRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift b/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift new file mode 100755 index 000000000..f89d87fac --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/api/_UnionsAPI.swift @@ -0,0 +1,486 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +class _UnionsAPI: UnionsAPI { + private let client: Client + + init(client: Client) { + self.client = client + } + + public func flattenedTypedObjectPost(request: Shared.FlattenedTypedObject1) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureFlattenedTypedObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleFlattenedTypedObjectPostResponse + ) + } + + public func mixedTypeOneOfPost(request: Operations.MixedTypeOneOfPostRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureMixedTypeOneOfPostRequest(with: configuration, request: request) + }, + handleResponse: handleMixedTypeOneOfPostResponse + ) + } + + public func nullableOneOfRefInObjectPost(request: Shared.NullableOneOfRefInObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableOneOfRefInObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableOneOfRefInObjectPostResponse + ) + } + + public func nullableOneOfSchemaPost(request: Operations.NullableOneOfSchemaPostRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableOneOfSchemaPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableOneOfSchemaPostResponse + ) + } + + public func nullableOneOfTypeInObjectPost(request: Shared.NullableOneOfTypeInObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableOneOfTypeInObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableOneOfTypeInObjectPostResponse + ) + } + + public func nullableTypedObjectPost(request: Shared.TypedObject1) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureNullableTypedObjectPostRequest(with: configuration, request: request) + }, + handleResponse: handleNullableTypedObjectPostResponse + ) + } + + public func primitiveTypeOneOfPost(request: Operations.PrimitiveTypeOneOfPostRequestBody) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configurePrimitiveTypeOneOfPostRequest(with: configuration, request: request) + }, + handleResponse: handlePrimitiveTypeOneOfPostResponse + ) + } + + public func stronglyTypedOneOfPost(request: Shared.StronglyTypedOneOfObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureStronglyTypedOneOfPostRequest(with: configuration, request: request) + }, + handleResponse: handleStronglyTypedOneOfPostResponse + ) + } + + public func typedObjectNullableOneOfPost(request: Shared.TypedObjectNullableOneOf) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureTypedObjectNullableOneOfPostRequest(with: configuration, request: request) + }, + handleResponse: handleTypedObjectNullableOneOfPostResponse + ) + } + + public func typedObjectOneOfPost(request: Shared.TypedObjectOneOf) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureTypedObjectOneOfPostRequest(with: configuration, request: request) + }, + handleResponse: handleTypedObjectOneOfPostResponse + ) + } + + public func unionDateNull(request: Date) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureUnionDateNullRequest(with: configuration, request: request) + }, + handleResponse: handleUnionDateNullResponse + ) + } + + public func unionDateTimeNull(request: Date) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureUnionDateTimeNullRequest(with: configuration, request: request) + }, + handleResponse: handleUnionDateTimeNullResponse + ) + } + + public func weaklyTypedOneOfPost(request: Shared.WeaklyTypedOneOfObject) async throws -> Response { + return try await client.makeRequest( + configureRequest: { configuration in + try configureWeaklyTypedOneOfPostRequest(with: configuration, request: request) + }, + handleResponse: handleWeaklyTypedOneOfPostResponse + ) + } + +} + +// MARK: - Request Configuration + +private func configureFlattenedTypedObjectPostRequest(with configuration: URLRequestConfiguration, request: Shared.FlattenedTypedObject1) throws { + configuration.path = "/anything/flattenedTypedObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureMixedTypeOneOfPostRequest(with configuration: URLRequestConfiguration, request: Operations.MixedTypeOneOfPostRequestBody) throws { + configuration.path = "/anything/mixedTypeOneOf" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableOneOfRefInObjectPostRequest(with configuration: URLRequestConfiguration, request: Shared.NullableOneOfRefInObject) throws { + configuration.path = "/anything/nullableOneOfRefInObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableOneOfSchemaPostRequest(with configuration: URLRequestConfiguration, request: Operations.NullableOneOfSchemaPostRequestBody) throws { + configuration.path = "/anything/nullableOneOfSchema" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableOneOfTypeInObjectPostRequest(with configuration: URLRequestConfiguration, request: Shared.NullableOneOfTypeInObject) throws { + configuration.path = "/anything/nullableOneOfInObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureNullableTypedObjectPostRequest(with configuration: URLRequestConfiguration, request: Shared.TypedObject1) throws { + configuration.path = "/anything/nullableTypedObject" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configurePrimitiveTypeOneOfPostRequest(with configuration: URLRequestConfiguration, request: Operations.PrimitiveTypeOneOfPostRequestBody) throws { + configuration.path = "/anything/primitiveTypeOneOf" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureStronglyTypedOneOfPostRequest(with configuration: URLRequestConfiguration, request: Shared.StronglyTypedOneOfObject) throws { + configuration.path = "/anything/stronglyTypedOneOf" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureTypedObjectNullableOneOfPostRequest(with configuration: URLRequestConfiguration, request: Shared.TypedObjectNullableOneOf) throws { + configuration.path = "/anything/typedObjectNullableOneOf" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureTypedObjectOneOfPostRequest(with configuration: URLRequestConfiguration, request: Shared.TypedObjectOneOf) throws { + configuration.path = "/anything/typedObjectOneOf" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureUnionDateNullRequest(with configuration: URLRequestConfiguration, request: Date) throws { + configuration.path = "/anything/unionDateNull" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureUnionDateTimeNullRequest(with configuration: URLRequestConfiguration, request: Date) throws { + configuration.path = "/anything/unionDateTimeNull" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +private func configureWeaklyTypedOneOfPostRequest(with configuration: URLRequestConfiguration, request: Shared.WeaklyTypedOneOfObject) throws { + configuration.path = "/anything/weaklyTypedOneOf" + configuration.method = .post + configuration.contentType = "application/json" + configuration.body = try jsonEncoder().encode(request) + if configuration.body == nil { + throw SerializationError.missingRequiredRequestBody + } + configuration.telemetryHeader = .speakeasyUserAgent +} + +// MARK: - Response Handlers + +private func handleFlattenedTypedObjectPostResponse(response: Client.APIResponse) throws -> Operations.FlattenedTypedObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.FlattenedTypedObjectPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleMixedTypeOneOfPostResponse(response: Client.APIResponse) throws -> Operations.MixedTypeOneOfPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.MixedTypeOneOfPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleNullableOneOfRefInObjectPostResponse(response: Client.APIResponse) throws -> Operations.NullableOneOfRefInObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.NullableOneOfRefInObjectPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleNullableOneOfSchemaPostResponse(response: Client.APIResponse) throws -> Operations.NullableOneOfSchemaPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.NullableOneOfSchemaPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleNullableOneOfTypeInObjectPostResponse(response: Client.APIResponse) throws -> Operations.NullableOneOfTypeInObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.NullableOneOfTypeInObjectPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleNullableTypedObjectPostResponse(response: Client.APIResponse) throws -> Operations.NullableTypedObjectPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.NullableTypedObjectPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handlePrimitiveTypeOneOfPostResponse(response: Client.APIResponse) throws -> Operations.PrimitiveTypeOneOfPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.PrimitiveTypeOneOfPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleStronglyTypedOneOfPostResponse(response: Client.APIResponse) throws -> Operations.StronglyTypedOneOfPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.StronglyTypedOneOfPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleTypedObjectNullableOneOfPostResponse(response: Client.APIResponse) throws -> Operations.TypedObjectNullableOneOfPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.TypedObjectNullableOneOfPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleTypedObjectOneOfPostResponse(response: Client.APIResponse) throws -> Operations.TypedObjectOneOfPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.TypedObjectOneOfPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleUnionDateNullResponse(response: Client.APIResponse) throws -> Operations.UnionDateNullResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.UnionDateNullRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleUnionDateTimeNullResponse(response: Client.APIResponse) throws -> Operations.UnionDateTimeNullResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.UnionDateTimeNullRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + +private func handleWeaklyTypedOneOfPostResponse(response: Client.APIResponse) throws -> Operations.WeaklyTypedOneOfPostResponse { + let httpResponse = response.httpResponse + + if httpResponse.statusCode == 200 { + if httpResponse.contentType.matchContentType(pattern: "application/json"), let data = response.data { + do { + return .res(try JSONDecoder().decode(Operations.WeaklyTypedOneOfPostRes.self, from: data)) + } catch { + throw ResponseHandlerError.failedToDecodeJSON(error) + } + } + } + + return .empty +} + diff --git a/swift-client-sdk/Sources/OpenAPI/internal/client/Response.swift b/swift-client-sdk/Sources/OpenAPI/internal/client/Response.swift new file mode 100755 index 000000000..1999f16d3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/client/Response.swift @@ -0,0 +1,121 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation +#if os(Linux) +import FoundationNetworking +#endif + +/// Describes any header values returned as part of a response to a call made to the API. +/// +/// As per the HTTP RFCs, header values can be queried in a case-insensitive manner. +public struct ResponseHeaders { + private let httpResponse: HTTPURLResponse + + init(httpResponse: HTTPURLResponse) { + self.httpResponse = httpResponse + } + + public func value(forHeaderNamed name: String) -> String? { + return httpResponse.value(forHTTPHeaderField: name) + } + + public subscript(name: String) -> String? { + return value(forHeaderNamed: name) + } +} + +/// Describes the result of making a request to the API. +/// +/// This type is returned by all functions which make calls to the API. It returns information about the response +/// and is parameterised by `T` over the type of data which is returned by the API operation. +public struct Response: ResponseFields { + + /// The HTTP status code returned by the server. + /// + /// This property contains the HTTP status code returned by the server in response to the underlying network request + /// made to fulfill the given API operation. + public var statusCode: Int { + return httpResponse.statusCode + } + + /// The media type returned by the server. + /// + /// This property contains the media type returned by the server in response to the underlying network request + /// made to fulfill the given API operation. + public var contentType: String { + return httpResponse.contentType + } + + /// The raw HTTP response object. + /// + /// This property contains the [HTTPURLResponse](https://developer.apple.com/documentation/foundation/httpurlresponse) object + /// returned from making the underlying network request to fulfill the given API operation. + public let httpResponse: HTTPURLResponse + + /// The response data. + /// + /// This property contains any response data associated with the API operation. + public let data: T + + public init(httpResponse: HTTPURLResponse, data: T) { + self.httpResponse = httpResponse + self.data = data + } +} + +/// Describes the result of making a request to the API which can contain resulting response header fields. +/// +/// This type is returned by all functions which make calls to the API. It returns information about the response +/// and is parameterised by `T` over the type of data which is returned by the API operation. +public struct ResponseWithHeaders: ResponseFields { + + /// The HTTP status code returned by the server. + /// + /// This property contains the HTTP status code returned by the server in response to the underlying network request + /// made to fulfill the given API operation. + public var statusCode: Int { + return httpResponse.statusCode + } + + /// The media type returned by the server. + /// + /// This property contains the media type returned by the server in response to the underlying network request + /// made to fulfill the given API operation. + public var contentType: String { + return httpResponse.contentType + } + + /// The raw HTTP response object. + /// + /// This property contains the [HTTPURLResponse](https://developer.apple.com/documentation/foundation/httpurlresponse) object + /// returned from making the underlying network request to fulfill the given API operation. + public let httpResponse: HTTPURLResponse + + /// Any response headers returned by the underlying network request made to fulfill the given API operation. + public let headers: ResponseHeaders? + + /// The response data. + /// + /// This property contains any response data associated with the API operation. + public let data: T + + public init(httpResponse: HTTPURLResponse, data: T) { + self.httpResponse = httpResponse + self.data = data + self.headers = ResponseHeaders(httpResponse: httpResponse) + } +} + +/// Describes the fields which are included in all responses to requests made to the API. +/// +/// This protocol is adopted by ``Response`` and ``ResponseWithHeaders`` depending on the individual API operation. +public protocol ResponseFields { + associatedtype T; + + var statusCode: Int { get } + var contentType: String { get } + var httpResponse: HTTPURLResponse { get } + var data: T { get } + + init(httpResponse: HTTPURLResponse, data: T) +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/client/Servers.swift b/swift-client-sdk/Sources/OpenAPI/internal/client/Servers.swift new file mode 100755 index 000000000..7a93684c9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/client/Servers.swift @@ -0,0 +1,60 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +struct Server { + public let urlString: String +} + +protocol Servers { + static var urlStrings: [String] { get } + + static func `default`() throws -> Server + static func server(at index: Int) throws -> Server + static func server(at index: Int, substituting parameters: [String: String]?) throws -> Server +} + +protocol ServerConvertible { + func server() throws -> Server +} + +enum ServerConversionError: Swift.Error { + case `internal` + case missingDefaultServer(serverType: String) + case invalidServerIndex(serverType: String, index: Int) + case missingServerParameterSubstitutionKey(_ key: String, serverString: String) +} + +extension Servers { + static func `default`() throws -> Server { + guard urlStrings.count > 0 else { + throw ServerConversionError.missingDefaultServer(serverType: String(describing: self)) + } + + return Server(urlString: urlStrings[0]) + } + + static func server(at index: Int) throws -> Server { + return try server(at: index, substituting: nil) + } + + static func server(at index: Int, substituting parameters: [String: String]?) throws -> Server { + guard index >= 0 && index < urlStrings.count else { + throw ServerConversionError.invalidServerIndex(serverType: String(describing: self), index: index) + } + if let parameters = parameters { + do { + return Server(urlString: try urlStrings[index].substituteComponents { key in parameters[key] }) + } catch let error as StringSubstitutionError { + switch error { + case .internal: + throw ServerConversionError.internal + case .missingParameter(named: let name, in: let string): + throw ServerConversionError.missingServerParameterSubstitutionKey(name, serverString: string) + } + } + } else { + return Server(urlString: urlStrings[index]) + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift b/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift new file mode 100755 index 000000000..0b979c5d0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestBuilder.swift @@ -0,0 +1,154 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation +#if os(Linux) +import FoundationNetworking +#endif + +enum URLRequestBuilderError: Swift.Error { + case internalError + case invalidURL(String) + case missingPathParameterSubstitutionKey(_ key: String, path: String) +} + +final class URLRequestBuilder: URLRequestConfiguration { + private let baseURL: URL + private let parameterDefaults: ParameterDefaults? + private let defaultSecurityParameterProviding: SecurityParameterProviding? + + var path: String = "" + var method: URLRequestHTTPMethod = .get + var contentType: String? + + var securityParameterProviding: SecurityParameterProviding? + + var pathParameterSerializable: PathParameterSerializable? + var queryParameterSerializable: QueryParameterSerializable? + var headerParameterSerializable: HeaderParameterSerializable? + + var body: Data? + + var telemetryHeader: TelemetryHeader = .userAgent + + init(baseURL: URL, parameterDefaults: ParameterDefaults?, defaultSecurityParameterProviding: SecurityParameterProviding?) { + self.baseURL = baseURL + self.parameterDefaults = parameterDefaults + self.defaultSecurityParameterProviding = defaultSecurityParameterProviding + } + + func build() throws -> URLRequest { + guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) else { + throw URLRequestBuilderError.invalidURL(baseURL.absoluteString) + } + + try buildPathComponents(in: &urlComponents) + + guard let url = urlComponents.url else { + throw URLRequestBuilderError.invalidURL(baseURL.absoluteString) + } + + var urlRequest = URLRequest(url: url) + if let headerParameterSerializable { + for header in try headerParameterSerializable.serializedHeaderParameters() { + urlRequest.setValue(header.serialized, forHTTPHeaderField: header.name) + } + } + + urlRequest.httpMethod = method.rawValue + urlRequest.httpBody = body + + if let contentType { + urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type") + } + + urlRequest.setValue("speakeasy-sdk/swift 0.1.0 2.171.0 0.1.0 OpenAPI", forHTTPHeaderField: telemetryHeader.headerName) + + addSecurityParameters(to: &urlRequest) + + return urlRequest + } + + // MARK: - Private + + private func buildPathComponents(in urlComponents: inout URLComponents) throws { + let (path, fragment) = parsePath(path) + + if let pathParameterSerializable { + urlComponents.path = (urlComponents.path as NSString).appendingPathComponent( + try substitutePathParameters(in: path, with: pathParameterSerializable, parameterDefaults: parameterDefaults) + ) + } else { + urlComponents.path = (urlComponents.path as NSString).appendingPathComponent(path) + } + + if let queryParameterSerializable { + urlComponents.percentEncodedQuery = queryString( + from: try queryParameterSerializable.serializedQueryParameters(with: parameterDefaults, formatOverride: nil) + ) + } + + urlComponents.fragment = fragment + } + + private func parsePath(_ path: String) -> (path: String, fragment: String?) { + let components = path.components(separatedBy: "#") + guard let first = components.first else { + return (path: "", fragment: nil) + } + return (path: first, fragment: components.count > 1 ? components[1] : nil) + } + + private func addSecurityParameters(to request: inout URLRequest) { + guard let securityParameterProviding = securityParameterProviding ?? defaultSecurityParameterProviding else { return } + + let parameters = securityParameterProviding.securityParameters() + for parameter in parameters { + switch parameter { + case .httpBasic(username: let username, password: let password): + if let username, let password, let encoded = "\(username):\(password)".data(using: .utf8)?.base64EncodedString() { + request.addValue("Basic \(encoded)", forHTTPHeaderField: "Authorization") + } + case .httpBearer(value: let value): + if let value { + let headerValue = value.range(of: "Bearer ")?.lowerBound == value.startIndex ? value : "Bearer \(value)" + request.addValue(headerValue, forHTTPHeaderField: "Authorization") + } + case .apiKey(name: let name, value: let value), .oauth2(name: let name, value: let value), .openIdConnect(name: let name, value: let value): + if let value { + request.addValue(value, forHTTPHeaderField: name) + } + } + } + } +} + +// Substitute path parameters and rethrow `StringSubstitutionError`s as `URLRequestBuilderError`s. +fileprivate func substitutePathParameters( + in path: String, + with pathParameterSerializable: PathParameterSerializable, + parameterDefaults: ParameterDefaults? +) throws -> String { + do { + let parameters = try pathParameterSerializable.serializedPathParameters(formatOverride: nil) + return try path.substituteComponents { key in + return try parameters[key] ?? parameterDefaults?.defaultSerializedPathParameter(for: key) + } + } catch let error as StringSubstitutionError { + switch error { + case .internal: + throw URLRequestBuilderError.internalError + case .missingParameter(named: let name, in: let string): + throw URLRequestBuilderError.missingPathParameterSubstitutionKey(name, path: string) + } + } +} + +fileprivate extension TelemetryHeader { + var headerName: String { + switch self { + case .userAgent: return "User-Agent" + case .speakeasyUserAgent: return "X-Speakeasy-User-Agent" + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestConfiguration.swift b/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestConfiguration.swift new file mode 100755 index 000000000..7abf26b25 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/client/URLRequestConfiguration.swift @@ -0,0 +1,35 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +enum URLRequestHTTPMethod: String { + case get = "GET" + case post = "POST" + case put = "PUT" + case patch = "PATCH" + case delete = "DELETE" + case head = "HEAD" + case options = "OPTIONS" + case trace = "TRACE" +} + +enum TelemetryHeader { + case userAgent + case speakeasyUserAgent +} + +protocol URLRequestConfiguration: AnyObject { + var path: String { get set } + var method: URLRequestHTTPMethod { get set } + var contentType: String? { get set } + + var securityParameterProviding: SecurityParameterProviding? { get set } + + var pathParameterSerializable: PathParameterSerializable? { get set } + var queryParameterSerializable: QueryParameterSerializable? { get set } + var headerParameterSerializable: HeaderParameterSerializable? { get set } + + var body: Data? { get set } + + var telemetryHeader: TelemetryHeader { get set } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/extensions/HTTPURLResponse+ContentType.swift b/swift-client-sdk/Sources/OpenAPI/internal/extensions/HTTPURLResponse+ContentType.swift new file mode 100755 index 000000000..59d0c33d3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/extensions/HTTPURLResponse+ContentType.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation +#if os(Linux) +import FoundationNetworking +#endif + +extension HTTPURLResponse { + var contentType: String { + return value(forHTTPHeaderField: "Content-Type") ?? "application/octet-stream" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/extensions/String+ContentType.swift b/swift-client-sdk/Sources/OpenAPI/internal/extensions/String+ContentType.swift new file mode 100755 index 000000000..23ab2b3ca --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/extensions/String+ContentType.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension String { + func matchContentType(pattern: String) -> Bool { + // Match wildcard types + if pattern == "*" || pattern == "*/*" { + return true + } + + // Match content type of the format 'application/json; charset=UTF-8' + let contentTypeComponents = pattern.components(separatedBy: ";").map { $0.trimmingCharacters(in: .whitespacesAndNewlines) } + guard let mediaType = contentTypeComponents.first else { return false } + if mediaType == pattern { + return true + } + + // Match wildcard parts on the media type + let mediaTypeComponents = mediaType.components(separatedBy: "/") + guard mediaTypeComponents.count == 2 else { return false } + + return pattern == "\(mediaTypeComponents[0])/*" || pattern == "*/\(mediaTypeComponents[1])" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/extensions/String+ParameterSubstitution.swift b/swift-client-sdk/Sources/OpenAPI/internal/extensions/String+ParameterSubstitution.swift new file mode 100755 index 000000000..2154ed56b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/extensions/String+ParameterSubstitution.swift @@ -0,0 +1,37 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +enum StringSubstitutionError: Swift.Error { + case `internal` + case missingParameter(named: String, in: String) +} + +extension String { + typealias SubstitutionHandler = (_ key: String) throws -> String? + + func substituteComponents(using substitutionHandler: SubstitutionHandler) throws -> String { + let regex = try NSRegularExpression(pattern: "\\{([^}]+)\\}") + let range = NSRange(startIndex.. [SecurityParameter] { + switch self { + case .apiKeyAuth(let value): + return [.apiKey(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthNewSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthNewSecurity+Serialization.swift new file mode 100755 index 000000000..542f2250b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthNewSecurity+Serialization.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.BasicAuthNewSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .httpBasic(username: self.username, password: self.password) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthRequest+Serialization.swift new file mode 100755 index 000000000..042af421b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthRequest+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.BasicAuthRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.BasicAuthRequest", format: format.formatDescription) + } + } +} + +extension Operations.BasicAuthRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "passwd": try passwd.serialize(with: formatOverride ?? .path(explode: false)), + "user": try user.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthSecurity+Serialization.swift new file mode 100755 index 000000000..cb200d826 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/BasicAuthSecurity+Serialization.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.BasicAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .httpBasic(username: self.username, password: self.password) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/BearerAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/BearerAuthSecurity+Serialization.swift new file mode 100755 index 000000000..bfb01eca0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/BearerAuthSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.BearerAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .bearerAuth(let value): + return [.httpBearer(value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ComponentBodyAndParamConflictRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ComponentBodyAndParamConflictRequest+Serialization.swift new file mode 100755 index 000000000..42b461832 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ComponentBodyAndParamConflictRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.ComponentBodyAndParamConflictRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.ComponentBodyAndParamConflictRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.ComponentBodyAndParamConflictRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: str, named: "str", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ComponentBodyAndParamNoConflictRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ComponentBodyAndParamNoConflictRequest+Serialization.swift new file mode 100755 index 000000000..5bf9c257c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ComponentBodyAndParamNoConflictRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.ComponentBodyAndParamNoConflictRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.ComponentBodyAndParamNoConflictRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.ComponentBodyAndParamNoConflictRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: paramStr, named: "paramStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ConflictingParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ConflictingParamsRequest+Serialization.swift new file mode 100755 index 000000000..4494f4239 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ConflictingParamsRequest+Serialization.swift @@ -0,0 +1,37 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.ConflictingParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.ConflictingParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.ConflictingParamsRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "str": try strPathParameter.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} + +extension Operations.ConflictingParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: strQueryParameter, named: "str", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/CreateFileRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/CreateFileRequestBody+Serialization.swift new file mode 100755 index 000000000..8c87930fd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/CreateFileRequestBody+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.CreateFileRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.CreateFileRequestBody", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.CreateFileRequestBody", format: format.formatDescription) + } + } +} + +extension Operations.CreateFileRequestBody: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .file(name: "file", filename: file?.file, data: file?.content) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/CreateFileRequestBodyFile+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/CreateFileRequestBodyFile+Serialization.swift new file mode 100755 index 000000000..e8b2de2b8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/CreateFileRequestBodyFile+Serialization.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.CreateFileRequestBodyFile: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.CreateFileRequestBodyFile", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.CreateFileRequestBodyFile", format: format.formatDescription) + } + } +} + +extension Operations.CreateFileRequestBodyFile: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "content", serialized: try content.serialize(with: .multipart)), + .value(name: "file", serialized: try file.serialize(with: .multipart)) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DateParamWithDefaultRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DateParamWithDefaultRequest+Serialization.swift new file mode 100755 index 000000000..2a3c554f0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DateParamWithDefaultRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DateParamWithDefaultRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DateParamWithDefaultRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DateParamWithDefaultRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: dateInputWrapper, named: "dateInput", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DateTimeParamWithDefaultRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DateTimeParamWithDefaultRequest+Serialization.swift new file mode 100755 index 000000000..44eecedd0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DateTimeParamWithDefaultRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DateTimeParamWithDefaultRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DateTimeParamWithDefaultRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DateTimeParamWithDefaultRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: dateTimeInputWrapper, named: "dateTimeInput", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DecimalParamWithDefaultRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DecimalParamWithDefaultRequest+Serialization.swift new file mode 100755 index 000000000..050537f35 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DecimalParamWithDefaultRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DecimalParamWithDefaultRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DecimalParamWithDefaultRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DecimalParamWithDefaultRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: decimalInputWrapper, named: "decimalInput", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObject+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObject+Serialization.swift new file mode 100755 index 000000000..63c70f200 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObject+Serialization.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DeepObject: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Shared.DeepObject", format: format.formatDescription) + case .form: + return serializeModel(with: try serializedFormParameters(formatOverride: format), format: format) + case .path, .query, .header: + throw SerializationError.invalidSerializationParameter(type: "Shared.DeepObject", format: format.formatDescription) + } + } +} + +extension Shared.DeepObject: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "any", serialized: try serializeEncodable(any)), + .value(name: "arr", serialized: try serializeEncodable(arr)), + .value(name: "bool", serialized: try bool.serialize(with: .multipart)), + .value(name: "int", serialized: try int.serialize(with: .multipart)), + .value(name: "map", serialized: try serializeEncodable(map)), + .value(name: "num", serialized: try numWrapper.serialize(with: .multipart)), + .value(name: "obj", serialized: try serializeEncodable(obj)), + .value(name: "str", serialized: try str.serialize(with: .multipart)), + .value(name: "type", serialized: try type?.serialize(with: .multipart)) + ] + } +} + +extension Shared.DeepObject: FormBodySerializable { + func serializedFormParameters(formatOverride: SerializableFormat?) throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "any", serialized: try serializeEncodable(any)), + SerializedParameter(name: "arr", serialized: try serializeEncodable(arr)), + SerializedParameter(name: "bool", serialized: try bool.serialize(with: .form(explode: true))), + SerializedParameter(name: "int", serialized: try int.serialize(with: .form(explode: true))), + SerializedParameter(name: "map", serialized: try serializeEncodable(map)), + SerializedParameter(name: "num", serialized: try numWrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "obj", serialized: try serializeEncodable(obj)), + SerializedParameter(name: "str", serialized: try str.serialize(with: .form(explode: true))), + SerializedParameter(name: "type", serialized: try type?.serialize(with: .form(explode: true))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectAny+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectAny+Serialization.swift new file mode 100755 index 000000000..0c011c8bf --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectAny+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DeepObjectAny: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectCamelCaseAnyVal+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectCamelCaseAnyVal+Serialization.swift new file mode 100755 index 000000000..2efe16df6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectCamelCaseAnyVal+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DeepObjectCamelCaseAnyVal: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapRequest+Serialization.swift new file mode 100755 index 000000000..fa7107542 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeepObjectQueryParamsMapRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DeepObjectQueryParamsMapRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DeepObjectQueryParamsMapRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: mapParam, named: "mapParam", format: formatOverride ?? .query(style: .deepObject, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: mapArrParam, named: "mapArrParam", format: formatOverride ?? .query(style: .deepObject, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapResArgs+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapResArgs+Serialization.swift new file mode 100755 index 000000000..bad6c8c92 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapResArgs+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeepObjectQueryParamsMapResArgs: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectObjArrParam+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectObjArrParam+Serialization.swift new file mode 100755 index 000000000..06c0d975c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectObjArrParam+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeepObjectQueryParamsObjectObjArrParam: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DeepObjectQueryParamsObjectObjArrParam", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DeepObjectQueryParamsObjectObjArrParam: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: arr, named: "arr", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectRequest+Serialization.swift new file mode 100755 index 000000000..1aa77b867 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeepObjectQueryParamsObjectRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DeepObjectQueryParamsObjectRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DeepObjectQueryParamsObjectRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: objParam, named: "objParam", format: formatOverride ?? .query(style: .deepObject, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: objArrParam, named: "objArrParam", format: formatOverride ?? .query(style: .deepObject, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectWithTypeAny+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectWithTypeAny+Serialization.swift new file mode 100755 index 000000000..9316c2fd1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeepObjectWithTypeAny+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DeepObjectWithTypeAny: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumInt+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumInt+Serialization.swift new file mode 100755 index 000000000..82e4881f6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumInt+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsConstEnumInt: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumStr+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumStr+Serialization.swift new file mode 100755 index 000000000..3392dfcb8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumStr+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsConstEnumStr: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumInt+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumInt+Serialization.swift new file mode 100755 index 000000000..8ee9171c8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumInt+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsDefaultEnumInt: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumStr+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumStr+Serialization.swift new file mode 100755 index 000000000..1b3524b21 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumStr+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsDefaultEnumStr: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumInt+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumInt+Serialization.swift new file mode 100755 index 000000000..b40f9464a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumInt+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsOutputConstEnumInt: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumStr+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumStr+Serialization.swift new file mode 100755 index 000000000..5caafd5c9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumStr+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsOutputConstEnumStr: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumInt+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumInt+Serialization.swift new file mode 100755 index 000000000..641a0766c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumInt+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsOutputDefaultEnumInt: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumStr+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumStr+Serialization.swift new file mode 100755 index 000000000..31af7b93d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumStr+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.DefaultsAndConstsOutputDefaultEnumStr: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeleteResourceRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeleteResourceRequest+Serialization.swift new file mode 100755 index 000000000..7258f390c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeleteResourceRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeleteResourceRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DeleteResourceRequest", format: format.formatDescription) + } + } +} + +extension Operations.DeleteResourceRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "resourceId": try resourceId.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedFieldInObjectDeprecatedEnum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedFieldInObjectDeprecatedEnum+Serialization.swift new file mode 100755 index 000000000..6f4e5541e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedFieldInObjectDeprecatedEnum+Serialization.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +@available(*, deprecated) +extension Shared.DeprecatedFieldInObjectDeprecatedEnum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedOperationNoCommentsGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedOperationNoCommentsGetRequest+Serialization.swift new file mode 100755 index 000000000..d06da20c6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedOperationNoCommentsGetRequest+Serialization.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeprecatedOperationNoCommentsGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DeprecatedOperationNoCommentsGetRequest", format: format.formatDescription) + } + } + + @available(*, deprecated) + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DeprecatedOperationNoCommentsGetRequest: QueryParameterSerializable { + @available(*, deprecated) + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: deprecatedParameter, named: "deprecatedParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedOperationWithCommentsGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedOperationWithCommentsGetRequest+Serialization.swift new file mode 100755 index 000000000..ff231d7c4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DeprecatedOperationWithCommentsGetRequest+Serialization.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DeprecatedOperationWithCommentsGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DeprecatedOperationWithCommentsGetRequest", format: format.formatDescription) + } + } + + @available(*, deprecated) + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.DeprecatedOperationWithCommentsGetRequest: QueryParameterSerializable { + @available(*, deprecated) + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: deprecatedParameter, named: "deprecatedParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: newParameter, named: "newParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/DuplicateParamRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/DuplicateParamRequest+Serialization.swift new file mode 100755 index 000000000..914a47945 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/DuplicateParamRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.DuplicateParamRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.DuplicateParamRequest", format: format.formatDescription) + } + } +} + +extension Operations.DuplicateParamRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "duplicateParamRequest": try duplicateParamRequest.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyObjectGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyObjectGetRequest+Serialization.swift new file mode 100755 index 000000000..81e186c92 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyObjectGetRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.EmptyObjectGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.EmptyObjectGetRequest", format: format.formatDescription) + } + } +} + +extension Operations.EmptyObjectGetRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "emptyObject": try emptyObject.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyObjectParam+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyObjectParam+Serialization.swift new file mode 100755 index 000000000..d5cbc76b0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyObjectParam+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.EmptyObjectParam: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyResponseObjectWithCommentGet200ApplicationOctetStream+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyResponseObjectWithCommentGet200ApplicationOctetStream+Serialization.swift new file mode 100755 index 000000000..80a84e84a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/EmptyResponseObjectWithCommentGet200ApplicationOctetStream+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.EmptyResponseObjectWithCommentGet200ApplicationOctetStream: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/Enum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/Enum+Serialization.swift new file mode 100755 index 000000000..4a28e6397 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/Enum+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.Enum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ErrorType+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ErrorType+Serialization.swift new file mode 100755 index 000000000..d6bcdf7f7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ErrorType+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.ErrorType: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleBoatType+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleBoatType+Serialization.swift new file mode 100755 index 000000000..e040e7358 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleBoatType+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.ExampleBoatType: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleCarType+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleCarType+Serialization.swift new file mode 100755 index 000000000..54b7ba9ba --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleCarType+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.ExampleCarType: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleResourceEnumNumber+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleResourceEnumNumber+Serialization.swift new file mode 100755 index 000000000..e5e1fde55 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleResourceEnumNumber+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.ExampleResourceEnumNumber: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleResourceEnumStr+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleResourceEnumStr+Serialization.swift new file mode 100755 index 000000000..8a924ae80 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ExampleResourceEnumStr+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.ExampleResourceEnumStr: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsArrayRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsArrayRequest+Serialization.swift new file mode 100755 index 000000000..f6e54687b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsArrayRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsArrayRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsArrayRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsArrayRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: arrParam, named: "arrParam", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: arrParamExploded, named: "arrParamExploded", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParam+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParam+Serialization.swift new file mode 100755 index 000000000..f7dd6f10b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParam+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsCamelObjectObjParam: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsCamelObjectObjParam", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsCamelObjectObjParam: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: encodedCount, named: "encoded_count", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: encodedTerm, named: "encoded_term", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParamExploded+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParamExploded+Serialization.swift new file mode 100755 index 000000000..9d72d62d8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParamExploded+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsCamelObjectObjParamExploded: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsCamelObjectObjParamExploded", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsCamelObjectObjParamExploded: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: itemCount, named: "item_count", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: searchTerm, named: "search_term", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectRequest+Serialization.swift new file mode 100755 index 000000000..a85211c47 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsCamelObjectRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsCamelObjectRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsCamelObjectRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: objParamExploded, named: "obj_param_exploded", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: objParam, named: "obj_param", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsMapRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsMapRequest+Serialization.swift new file mode 100755 index 000000000..8307a5671 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsMapRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsMapRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsMapRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsMapRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: mapParam, named: "mapParam", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: mapParamExploded, named: "mapParamExploded", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsObjectRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsObjectRequest+Serialization.swift new file mode 100755 index 000000000..d90a11049 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsObjectRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsObjectRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsObjectRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsObjectRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: objParamExploded, named: "objParamExploded", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: objParam, named: "objParam", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsPrimitiveRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsPrimitiveRequest+Serialization.swift new file mode 100755 index 000000000..31bd6cd57 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsPrimitiveRequest+Serialization.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsPrimitiveRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsPrimitiveRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsPrimitiveRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: boolParam, named: "boolParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: intParam, named: "intParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: numParamWrapper, named: "numParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: strParam, named: "strParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsRefParamObjectRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsRefParamObjectRequest+Serialization.swift new file mode 100755 index 000000000..679245998 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/FormQueryParamsRefParamObjectRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.FormQueryParamsRefParamObjectRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.FormQueryParamsRefParamObjectRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.FormQueryParamsRefParamObjectRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: refObjParam, named: "refObjParam", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: refObjParamExploded, named: "refObjParamExploded", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/GetDocumentationPerLanguageRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/GetDocumentationPerLanguageRequest+Serialization.swift new file mode 100755 index 000000000..dadfccfe9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/GetDocumentationPerLanguageRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.GetDocumentationPerLanguageRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.GetDocumentationPerLanguageRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.GetDocumentationPerLanguageRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: language, named: "language", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/GetResourceRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/GetResourceRequest+Serialization.swift new file mode 100755 index 000000000..5522d5c2e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/GetResourceRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.GetResourceRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.GetResourceRequest", format: format.formatDescription) + } + } +} + +extension Operations.GetResourceRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "resourceId": try resourceId.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/GlobalPathParameterGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/GlobalPathParameterGetRequest+Serialization.swift new file mode 100755 index 000000000..84b6162e7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/GlobalPathParameterGetRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.GlobalPathParameterGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.GlobalPathParameterGetRequest", format: format.formatDescription) + } + } +} + +extension Operations.GlobalPathParameterGetRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "globalPathParam": try globalPathParam?.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/GlobalsQueryParameterGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/GlobalsQueryParameterGetRequest+Serialization.swift new file mode 100755 index 000000000..f39ad115e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/GlobalsQueryParameterGetRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.GlobalsQueryParameterGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.GlobalsQueryParameterGetRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.GlobalsQueryParameterGetRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: globalQueryParam, named: "globalQueryParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsArrayRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsArrayRequest+Serialization.swift new file mode 100755 index 000000000..474d37ad9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsArrayRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.HeaderParamsArrayRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .path, .query, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.HeaderParamsArrayRequest", format: format.formatDescription) + } + } +} + +extension Operations.HeaderParamsArrayRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "X-Header-Array", serialized: try xHeaderArray.serialize(with: .header(explode: false))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsMapRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsMapRequest+Serialization.swift new file mode 100755 index 000000000..fb375202d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsMapRequest+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.HeaderParamsMapRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .path, .query, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.HeaderParamsMapRequest", format: format.formatDescription) + } + } +} + +extension Operations.HeaderParamsMapRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "X-Header-Map", serialized: try xHeaderMap.serialize(with: .header(explode: false))), + SerializedParameter(name: "X-Header-Map-Explode", serialized: try xHeaderMapExplode.serialize(with: .header(explode: true))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsObjectRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsObjectRequest+Serialization.swift new file mode 100755 index 000000000..b39c72269 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsObjectRequest+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.HeaderParamsObjectRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .path, .query, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.HeaderParamsObjectRequest", format: format.formatDescription) + } + } +} + +extension Operations.HeaderParamsObjectRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "X-Header-Obj", serialized: try xHeaderObj.serialize(with: .header(explode: false))), + SerializedParameter(name: "X-Header-Obj-Explode", serialized: try xHeaderObjExplode.serialize(with: .header(explode: true))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsPrimitiveRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsPrimitiveRequest+Serialization.swift new file mode 100755 index 000000000..272e03999 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/HeaderParamsPrimitiveRequest+Serialization.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.HeaderParamsPrimitiveRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .path, .query, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.HeaderParamsPrimitiveRequest", format: format.formatDescription) + } + } +} + +extension Operations.HeaderParamsPrimitiveRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "X-Header-Boolean", serialized: try xHeaderBoolean.serialize(with: .header(explode: false))), + SerializedParameter(name: "X-Header-Integer", serialized: try xHeaderInteger.serialize(with: .header(explode: false))), + SerializedParameter(name: "X-Header-Number", serialized: try xHeaderNumberWrapper.serialize(with: .header(explode: false))), + SerializedParameter(name: "X-Header-String", serialized: try xHeaderString.serialize(with: .header(explode: false))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/IgnoresPostRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/IgnoresPostRequest+Serialization.swift new file mode 100755 index 000000000..79ac97a54 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/IgnoresPostRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.IgnoresPostRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.IgnoresPostRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.IgnoresPostRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: testParam, named: "testParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/InlineBodyAndParamConflictRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/InlineBodyAndParamConflictRequest+Serialization.swift new file mode 100755 index 000000000..2506b5952 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/InlineBodyAndParamConflictRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.InlineBodyAndParamConflictRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.InlineBodyAndParamConflictRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.InlineBodyAndParamConflictRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: str, named: "str", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/InlineBodyAndParamNoConflictRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/InlineBodyAndParamNoConflictRequest+Serialization.swift new file mode 100755 index 000000000..9b754929b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/InlineBodyAndParamNoConflictRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.InlineBodyAndParamNoConflictRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.InlineBodyAndParamNoConflictRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.InlineBodyAndParamNoConflictRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: paramStr, named: "paramStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/JsonQueryParamsObjectRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/JsonQueryParamsObjectRequest+Serialization.swift new file mode 100755 index 000000000..bf4ebe7d8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/JsonQueryParamsObjectRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.JsonQueryParamsObjectRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.JsonQueryParamsObjectRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.JsonQueryParamsObjectRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addJSONQueryParameter(named: "deepObjParam", with: deepObjParam) + try builder.addJSONQueryParameter(named: "simpleObjParam", with: simpleObjParam) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MixedParametersCamelCaseRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedParametersCamelCaseRequest+Serialization.swift new file mode 100755 index 000000000..e9d1b5e20 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedParametersCamelCaseRequest+Serialization.swift @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MixedParametersCamelCaseRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.MixedParametersCamelCaseRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.MixedParametersCamelCaseRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "path_param": try pathParam.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} + +extension Operations.MixedParametersCamelCaseRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: queryStringParam, named: "query_string_param", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} + +extension Operations.MixedParametersCamelCaseRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "header_param", serialized: try headerParam.serialize(with: .header(explode: false))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MixedParametersPrimitivesRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedParametersPrimitivesRequest+Serialization.swift new file mode 100755 index 000000000..6f8764eb8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedParametersPrimitivesRequest+Serialization.swift @@ -0,0 +1,47 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MixedParametersPrimitivesRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.MixedParametersPrimitivesRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.MixedParametersPrimitivesRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "pathParam": try pathParam.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} + +extension Operations.MixedParametersPrimitivesRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: queryStringParam, named: "queryStringParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} + +extension Operations.MixedParametersPrimitivesRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "headerParam", serialized: try headerParam.serialize(with: .header(explode: false))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MixedQueryParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedQueryParamsRequest+Serialization.swift new file mode 100755 index 000000000..2e02045e4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedQueryParamsRequest+Serialization.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MixedQueryParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.MixedQueryParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.MixedQueryParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: deepObjectParam, named: "deepObjectParam", format: formatOverride ?? .query(style: .deepObject, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: formParam, named: "formParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addJSONQueryParameter(named: "jsonParam", with: jsonParam) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MixedTypeOneOfPostRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedTypeOneOfPostRequestBody+Serialization.swift new file mode 100755 index 000000000..4e7313e42 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedTypeOneOfPostRequestBody+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MixedTypeOneOfPostRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MixedTypeOneOfPostResJson+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedTypeOneOfPostResJson+Serialization.swift new file mode 100755 index 000000000..42d4ecd3d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MixedTypeOneOfPostResJson+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MixedTypeOneOfPostResJson: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleMixedOptionsAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleMixedOptionsAuthSecurity+Serialization.swift new file mode 100755 index 000000000..6bb43b368 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleMixedOptionsAuthSecurity+Serialization.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleMixedOptionsAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .basic(let basicAuth): + return [.httpBasic(username: basicAuth.username, password: basicAuth.password)] + case .apiKeyAuthNew(let value): + return [.apiKey(name: "x-api-key", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleMixedSchemeAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleMixedSchemeAuthSecurity+Serialization.swift new file mode 100755 index 000000000..8516c07e1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleMixedSchemeAuthSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleMixedSchemeAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .httpBasic(username: basicAuth.username, password: basicAuth.password), + .apiKey(name: "x-api-key", value: apiKeyAuthNew) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurity+Serialization.swift new file mode 100755 index 000000000..ceecfa3cf --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurity+Serialization.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleOptionsWithMixedSchemesAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .option1(let value): + return value.securityParameters() + case .option2(let value): + return value.securityParameters() + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption1+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption1+Serialization.swift new file mode 100755 index 000000000..54296b883 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption1+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleOptionsWithMixedSchemesAuthSecurityOption1: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .apiKey(name: "x-api-key", value: apiKeyAuthNew), + .oauth2(name: "Authorization", value: oauth2) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption2+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption2+Serialization.swift new file mode 100755 index 000000000..9e4efd4bc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption2+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleOptionsWithMixedSchemesAuthSecurityOption2: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .httpBasic(username: basicAuth.username, password: basicAuth.password), + .apiKey(name: "x-api-key", value: apiKeyAuthNew) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurity+Serialization.swift new file mode 100755 index 000000000..a7d5fd8cd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurity+Serialization.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleOptionsWithSimpleSchemesAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .option1(let value): + return value.securityParameters() + case .option2(let value): + return value.securityParameters() + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption1+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption1+Serialization.swift new file mode 100755 index 000000000..b5f1f151b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption1+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleOptionsWithSimpleSchemesAuthSecurityOption1: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .apiKey(name: "x-api-key", value: apiKeyAuthNew), + .oauth2(name: "Authorization", value: oauth2) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption2+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption2+Serialization.swift new file mode 100755 index 000000000..8d8a26f98 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption2+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleOptionsWithSimpleSchemesAuthSecurityOption2: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .apiKey(name: "x-api-key", value: apiKeyAuthNew), + .openIdConnect(name: "Authorization", value: openIdConnect) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleSimpleOptionsAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleSimpleOptionsAuthSecurity+Serialization.swift new file mode 100755 index 000000000..d961f358c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleSimpleOptionsAuthSecurity+Serialization.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleSimpleOptionsAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .apiKeyAuthNew(let value): + return [.apiKey(name: "x-api-key", value: value)] + case .oauth2(let value): + return [.oauth2(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleSimpleSchemeAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleSimpleSchemeAuthSecurity+Serialization.swift new file mode 100755 index 000000000..96d5b85c5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/MultipleSimpleSchemeAuthSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.MultipleSimpleSchemeAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .apiKey(name: "x-api-key", value: apiKeyAuthNew), + .oauth2(name: "Authorization", value: oauth2) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NameOverrideGetEnumNameOverride+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NameOverrideGetEnumNameOverride+Serialization.swift new file mode 100755 index 000000000..0e7857f4f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NameOverrideGetEnumNameOverride+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.NameOverrideGetEnumNameOverride: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NameOverrideGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NameOverrideGetRequest+Serialization.swift new file mode 100755 index 000000000..bc5dcddc8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NameOverrideGetRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.NameOverrideGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.NameOverrideGetRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.NameOverrideGetRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: testEnumQueryParam, named: "enumNameOverride", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: testQueryParam, named: "nameOverride", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NullableOneOfTypeInObjectNullableOneOfTwo+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableOneOfTypeInObjectNullableOneOfTwo+Serialization.swift new file mode 100755 index 000000000..6016c78ed --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableOneOfTypeInObjectNullableOneOfTwo+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.NullableOneOfTypeInObjectNullableOneOfTwo: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj+Serialization.swift new file mode 100755 index 000000000..b75f68c7f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj+Serialization.swift new file mode 100755 index 000000000..0fdd60ebb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyRequiredObj+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyRequiredObj+Serialization.swift new file mode 100755 index 000000000..32401f5ef --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyRequiredObj+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.NullableRequiredEmptyObjectPostRequestBodyRequiredObj: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum+Serialization.swift new file mode 100755 index 000000000..fafed34e6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.NullableRequiredPropertyPostRequestBodyNullableRequiredEnum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2AuthNewSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2AuthNewSecurity+Serialization.swift new file mode 100755 index 000000000..48bcaa479 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2AuthNewSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.Oauth2AuthNewSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .oauth2(let value): + return [.oauth2(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2AuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2AuthSecurity+Serialization.swift new file mode 100755 index 000000000..e8c523f80 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2AuthSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.Oauth2AuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .oauth2(let value): + return [.oauth2(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2OverrideRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2OverrideRequest+Serialization.swift new file mode 100755 index 000000000..f184f68dc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2OverrideRequest+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.Oauth2OverrideRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2OverrideSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2OverrideSecurity+Serialization.swift new file mode 100755 index 000000000..ea1589d7a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/Oauth2OverrideSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.Oauth2OverrideSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .oauth2(let value): + return [.oauth2(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfCircularReferenceObjectChild+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfCircularReferenceObjectChild+Serialization.swift new file mode 100755 index 000000000..58515140f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfCircularReferenceObjectChild+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.OneOfCircularReferenceObjectChild: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfFromArrayOfTypes+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfFromArrayOfTypes+Serialization.swift new file mode 100755 index 000000000..ef1b2b8b2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfFromArrayOfTypes+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.OneOfGenerationStressTestOneOfFromArrayOfTypes: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType+Serialization.swift new file mode 100755 index 000000000..1ae8846a1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.OneOfGenerationStressTestOneOfSameType: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType2+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType2+Serialization.swift new file mode 100755 index 000000000..32bbfb027 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType2+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.OneOfGenerationStressTestOneOfSameType2: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/OpenIdConnectAuthNewSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/OpenIdConnectAuthNewSecurity+Serialization.swift new file mode 100755 index 000000000..bb5faa9d5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/OpenIdConnectAuthNewSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.OpenIdConnectAuthNewSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .openIdConnect(let value): + return [.openIdConnect(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/OpenIdConnectAuthSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/OpenIdConnectAuthSecurity+Serialization.swift new file mode 100755 index 000000000..ce821fcc8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/OpenIdConnectAuthSecurity+Serialization.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.OpenIdConnectAuthSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .openIdConnect(let value): + return [.openIdConnect(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationCursorParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationCursorParamsRequest+Serialization.swift new file mode 100755 index 000000000..b159eb950 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationCursorParamsRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PaginationCursorParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.PaginationCursorParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.PaginationCursorParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: cursor, named: "cursor", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationLimitOffsetOffsetParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationLimitOffsetOffsetParamsRequest+Serialization.swift new file mode 100755 index 000000000..1332ee509 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationLimitOffsetOffsetParamsRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PaginationLimitOffsetOffsetParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.PaginationLimitOffsetOffsetParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.PaginationLimitOffsetOffsetParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: limit, named: "limit", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: offset, named: "offset", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationLimitOffsetPageParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationLimitOffsetPageParamsRequest+Serialization.swift new file mode 100755 index 000000000..1822c97aa --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PaginationLimitOffsetPageParamsRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PaginationLimitOffsetPageParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.PaginationLimitOffsetPageParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.PaginationLimitOffsetPageParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: page, named: "page", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PathParameterJsonRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PathParameterJsonRequest+Serialization.swift new file mode 100755 index 000000000..01535dc53 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PathParameterJsonRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PathParameterJsonRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.PathParameterJsonRequest", format: format.formatDescription) + } + } +} + +extension Operations.PathParameterJsonRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "jsonObj": try serializeEncodable(jsonObj), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PipeDelimitedQueryParamsArrayRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PipeDelimitedQueryParamsArrayRequest+Serialization.swift new file mode 100755 index 000000000..6bc53905d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PipeDelimitedQueryParamsArrayRequest+Serialization.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PipeDelimitedQueryParamsArrayRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.PipeDelimitedQueryParamsArrayRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.PipeDelimitedQueryParamsArrayRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: arrParam, named: "arrParam", format: formatOverride ?? .query(style: .pipeDelimited, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: arrParamExploded, named: "arrParamExploded", format: formatOverride ?? .query(style: .pipeDelimited, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: mapParam, named: "mapParam", format: formatOverride ?? .query(style: .pipeDelimited, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: objParam, named: "objParam", format: formatOverride ?? .query(style: .pipeDelimited, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostRequestBody+Serialization.swift new file mode 100755 index 000000000..72f2dcfb2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostRequestBody+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PrimitiveTypeOneOfPostRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostResJson+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostResJson+Serialization.swift new file mode 100755 index 000000000..03a7b859f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostResJson+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.PrimitiveTypeOneOfPostResJson: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeUnion+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeUnion+Serialization.swift new file mode 100755 index 000000000..ce600e7e5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/PrimitiveTypeUnion+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.PrimitiveTypeUnion: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ReadOnlyObjectInput+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ReadOnlyObjectInput+Serialization.swift new file mode 100755 index 000000000..ff7195d1b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ReadOnlyObjectInput+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.ReadOnlyObjectInput: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RefQueryParamObj+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RefQueryParamObj+Serialization.swift new file mode 100755 index 000000000..8583e0518 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RefQueryParamObj+Serialization.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.RefQueryParamObj: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Shared.RefQueryParamObj", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Shared.RefQueryParamObj: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: bool, named: "bool", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: int, named: "int", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: numWrapper, named: "num", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: str, named: "str", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RefQueryParamObjExploded+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RefQueryParamObjExploded+Serialization.swift new file mode 100755 index 000000000..27bee296f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RefQueryParamObjExploded+Serialization.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.RefQueryParamObjExploded: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Shared.RefQueryParamObjExploded", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Shared.RefQueryParamObjExploded: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: bool, named: "bool", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: int, named: "int", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: numWrapper, named: "num", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: str, named: "str", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostComplexNumberTypesRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostComplexNumberTypesRequest+Serialization.swift new file mode 100755 index 000000000..b696d2749 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostComplexNumberTypesRequest+Serialization.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostComplexNumberTypesRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostComplexNumberTypesRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RequestBodyPostComplexNumberTypesRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "pathBigInt": try pathBigInt.serialize(with: formatOverride ?? .path(explode: false)), + "pathBigIntStr": try pathBigIntStr.serialize(with: formatOverride ?? .path(explode: false)), + "pathDecimal": try pathDecimalWrapper.serialize(with: formatOverride ?? .path(explode: false)), + "pathDecimalStr": try pathDecimalStr.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} + +extension Operations.RequestBodyPostComplexNumberTypesRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: queryBigInt, named: "queryBigInt", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: queryBigIntStr, named: "queryBigIntStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: queryDecimalWrapper, named: "queryDecimal", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: queryDecimalStr, named: "queryDecimalStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmpty+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmpty+Serialization.swift new file mode 100755 index 000000000..f4506fa77 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmpty+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostEmptyObject200ApplicationJSONEmpty: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies+Serialization.swift new file mode 100755 index 000000000..f267fbfb2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmpty+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmpty+Serialization.swift new file mode 100755 index 000000000..52aaf6cda --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmpty+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostEmptyObjectRequestBodyEmpty: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties+Serialization.swift new file mode 100755 index 000000000..b3197e83b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded+Serialization.swift new file mode 100755 index 000000000..34bd91042 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded+Serialization.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .form: + return serializeModel(with: try serializedFormParameters(formatOverride: format), format: format) + case .path, .query, .header, .multipart: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded: FormBodySerializable { + func serializedFormParameters(formatOverride: SerializableFormat?) throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "bool3", serialized: try bool3.serialize(with: .form(explode: true))), + SerializedParameter(name: "num3", serialized: try num3Wrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "str3", serialized: try str3.serialize(with: .form(explode: true))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitMultipartFormData+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitMultipartFormData+Serialization.swift new file mode 100755 index 000000000..30796a78c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitMultipartFormData+Serialization.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "bool2", serialized: try bool2.serialize(with: .multipart)), + .value(name: "num2", serialized: try num2Wrapper.serialize(with: .multipart)), + .value(name: "str2", serialized: try str2.serialize(with: .multipart)) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded+Serialization.swift new file mode 100755 index 000000000..7539c8b70 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded+Serialization.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .form: + return serializeModel(with: try serializedFormParameters(formatOverride: format), format: format) + case .path, .query, .header, .multipart: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded: FormBodySerializable { + func serializedFormParameters(formatOverride: SerializableFormat?) throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "bool3", serialized: try bool3.serialize(with: .form(explode: true))), + SerializedParameter(name: "num3", serialized: try num3Wrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "str3", serialized: try str3.serialize(with: .form(explode: true))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamFormRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamFormRequest+Serialization.swift new file mode 100755 index 000000000..6a7b89ff9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamFormRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamFormRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitParamFormRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamFormRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: paramStr, named: "paramStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamJsonRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamJsonRequest+Serialization.swift new file mode 100755 index 000000000..3603482ec --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamJsonRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: paramStr, named: "paramStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData+Serialization.swift new file mode 100755 index 000000000..4db0cebed --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData+Serialization.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "bool2", serialized: try bool2.serialize(with: .multipart)), + .value(name: "num2", serialized: try num2Wrapper.serialize(with: .multipart)), + .value(name: "str2", serialized: try str2.serialize(with: .multipart)) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest+Serialization.swift new file mode 100755 index 000000000..9f14a945a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: paramStr, named: "paramStr", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutBytesWithParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutBytesWithParamsRequest+Serialization.swift new file mode 100755 index 000000000..7a740212c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutBytesWithParamsRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPutBytesWithParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutBytesWithParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RequestBodyPutBytesWithParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: queryStringParam, named: "queryStringParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBody+Serialization.swift new file mode 100755 index 000000000..53d35d60a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBody+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPutMultipartDifferentFileNameRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartDifferentFileNameRequestBody", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartDifferentFileNameRequestBody", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPutMultipartDifferentFileNameRequestBody: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .file(name: "differentFileName", filename: differentFileName?.differentFileName, data: differentFileName?.content) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName+Serialization.swift new file mode 100755 index 000000000..7d6b8fcd9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName+Serialization.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "content", serialized: try content.serialize(with: .multipart)), + .value(name: "differentFileName", serialized: try differentFileName.serialize(with: .multipart)) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBody+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBody+Serialization.swift new file mode 100755 index 000000000..fceaeb5c1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBody+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPutMultipartFileRequestBody: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartFileRequestBody", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartFileRequestBody", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPutMultipartFileRequestBody: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .file(name: "file", filename: file?.file, data: file?.content) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBodyFile+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBodyFile+Serialization.swift new file mode 100755 index 000000000..7cc4af709 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBodyFile+Serialization.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPutMultipartFileRequestBodyFile: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartFileRequestBodyFile", format: format.formatDescription) + case .path, .query, .header, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutMultipartFileRequestBodyFile", format: format.formatDescription) + } + } +} + +extension Operations.RequestBodyPutMultipartFileRequestBodyFile: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "content", serialized: try content.serialize(with: .multipart)), + .value(name: "file", serialized: try file.serialize(with: .multipart)) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutStringWithParamsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutStringWithParamsRequest+Serialization.swift new file mode 100755 index 000000000..a9b6979a6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RequestBodyPutStringWithParamsRequest+Serialization.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RequestBodyPutStringWithParamsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RequestBodyPutStringWithParamsRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RequestBodyPutStringWithParamsRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: queryStringParam, named: "queryStringParam", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/ResponseBodyEmptyWithHeadersRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/ResponseBodyEmptyWithHeadersRequest+Serialization.swift new file mode 100755 index 000000000..31c3d6592 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/ResponseBodyEmptyWithHeadersRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.ResponseBodyEmptyWithHeadersRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.ResponseBodyEmptyWithHeadersRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.ResponseBodyEmptyWithHeadersRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: xNumberHeaderWrapper, named: "X-Number-Header", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: xStringHeader, named: "X-String-Header", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/RetriesGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/RetriesGetRequest+Serialization.swift new file mode 100755 index 000000000..e4d112807 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/RetriesGetRequest+Serialization.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.RetriesGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.RetriesGetRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.RetriesGetRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: requestId, named: "request-id", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: numRetries, named: "num-retries", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SchemeBasicAuth+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SchemeBasicAuth+Serialization.swift new file mode 100755 index 000000000..a04f63e7f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SchemeBasicAuth+Serialization.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SchemeBasicAuth: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .httpBasic(username: self.username, password: self.password), + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/Security+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/Security+Serialization.swift new file mode 100755 index 000000000..a62983ce5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/Security+Serialization.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.Security: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + switch self { + case .apiKeyAuth(let value): + return [.apiKey(name: "Authorization", value: value)] + case .apiKeyAuthNew(let value): + return [.apiKey(name: "x-api-key", value: value)] + case .oauth2(let value): + return [.oauth2(name: "Authorization", value: value)] + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObject+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObject+Serialization.swift new file mode 100755 index 000000000..3daa69c0b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObject+Serialization.swift @@ -0,0 +1,165 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObject: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .multipart: + // Deep, non-JSON encoded multipart serialization is not supported. + throw SerializationError.invalidSerializationParameter(type: "Shared.SimpleObject", format: format.formatDescription) + case .form: + return serializeModel(with: try serializedFormParameters(formatOverride: format), format: format) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Shared.SimpleObject: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "any": try any.serialize(with: formatOverride ?? .path(explode: false)), + "bigint": try bigint?.serialize(with: formatOverride ?? .path(explode: false)), + "bigintStr": try bigintStr?.serialize(with: formatOverride ?? .path(explode: false)), + "bool": try bool.serialize(with: formatOverride ?? .path(explode: false)), + "boolOpt": try boolOpt?.serialize(with: formatOverride ?? .path(explode: false)), + "date": try dateWrapper.serialize(with: formatOverride ?? .path(explode: false)), + "dateTime": try dateTimeWrapper.serialize(with: formatOverride ?? .path(explode: false)), + "decimal": try decimal != nil ? decimalWrapper.serialize(with: formatOverride ?? .path(explode: false)) : nil, + "decimalStr": try decimalStr?.serialize(with: formatOverride ?? .path(explode: false)), + "enum": try `enum`.serialize(with: formatOverride ?? .path(explode: false)), + "float32": try float32Wrapper.serialize(with: formatOverride ?? .path(explode: false)), + "int": try int.serialize(with: formatOverride ?? .path(explode: false)), + "int32": try int32.serialize(with: formatOverride ?? .path(explode: false)), + "int32Enum": try int32Enum.serialize(with: formatOverride ?? .path(explode: false)), + "intEnum": try intEnum.serialize(with: formatOverride ?? .path(explode: false)), + "intOptNull": try intOptNull?.serialize(with: formatOverride ?? .path(explode: false)), + "num": try numWrapper.serialize(with: formatOverride ?? .path(explode: false)), + "numOptNull": try numOptNull != nil ? numOptNullWrapper.serialize(with: formatOverride ?? .path(explode: false)) : nil, + "str": try str.serialize(with: formatOverride ?? .path(explode: false)), + "strOpt": try strOpt?.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} + +extension Shared.SimpleObject: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: any, named: "any", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: bool, named: "bool", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: dateWrapper, named: "date", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: dateTimeWrapper, named: "dateTime", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: `enum`, named: "enum", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: float32Wrapper, named: "float32", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: int, named: "int", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: int32, named: "int32", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: int32Enum, named: "int32Enum", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: intEnum, named: "intEnum", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: numWrapper, named: "num", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: str, named: "str", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: bigint, named: "bigint", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: bigintStr, named: "bigintStr", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: boolOpt, named: "boolOpt", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + if decimal != nil { + try builder.addQueryParameters(from: decimalWrapper, named: "decimal", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + } + try builder.addQueryParameters(from: decimalStr, named: "decimalStr", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: intOptNull, named: "intOptNull", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + if numOptNull != nil { + try builder.addQueryParameters(from: numOptNullWrapper, named: "numOptNull", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + } + try builder.addQueryParameters(from: strOpt, named: "strOpt", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} + +extension Shared.SimpleObject: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "any", serialized: try any.serialize(with: .header(explode: false))), + SerializedParameter(name: "bool", serialized: try bool.serialize(with: .header(explode: false))), + SerializedParameter(name: "date", serialized: try dateWrapper.serialize(with: .header(explode: false))), + SerializedParameter(name: "dateTime", serialized: try dateTimeWrapper.serialize(with: .header(explode: false))), + SerializedParameter(name: "enum", serialized: try `enum`.serialize(with: .header(explode: false))), + SerializedParameter(name: "float32", serialized: try float32Wrapper.serialize(with: .header(explode: false))), + SerializedParameter(name: "int", serialized: try int.serialize(with: .header(explode: false))), + SerializedParameter(name: "int32", serialized: try int32.serialize(with: .header(explode: false))), + SerializedParameter(name: "int32Enum", serialized: try int32Enum.serialize(with: .header(explode: false))), + SerializedParameter(name: "intEnum", serialized: try intEnum.serialize(with: .header(explode: false))), + SerializedParameter(name: "num", serialized: try numWrapper.serialize(with: .header(explode: false))), + SerializedParameter(name: "str", serialized: try str.serialize(with: .header(explode: false))), + SerializedParameter(name: "bigint", serialized: try bigint?.serialize(with: .header(explode: false))), + SerializedParameter(name: "bigintStr", serialized: try bigintStr?.serialize(with: .header(explode: false))), + SerializedParameter(name: "boolOpt", serialized: try boolOpt?.serialize(with: .header(explode: false))), + SerializedParameter(name: "decimal", serialized: try decimal != nil ? decimalWrapper.serialize(with: .header(explode: false)) : nil), + SerializedParameter(name: "decimalStr", serialized: try decimalStr?.serialize(with: .header(explode: false))), + SerializedParameter(name: "intOptNull", serialized: try intOptNull?.serialize(with: .header(explode: false))), + SerializedParameter(name: "numOptNull", serialized: try numOptNull != nil ? numOptNullWrapper.serialize(with: .header(explode: false)) : nil), + SerializedParameter(name: "strOpt", serialized: try strOpt?.serialize(with: .header(explode: false))) + ] + } +} + +extension Shared.SimpleObject: MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return [ + .value(name: "any", serialized: try any.serialize(with: .multipart)), + .value(name: "bool", serialized: try bool.serialize(with: .multipart)), + .value(name: "date", serialized: try dateWrapper.serialize(with: .multipart)), + .value(name: "dateTime", serialized: try dateTimeWrapper.serialize(with: .multipart)), + .value(name: "enum", serialized: try `enum`.serialize(with: .multipart)), + .value(name: "float32", serialized: try float32Wrapper.serialize(with: .multipart)), + .value(name: "int", serialized: try int.serialize(with: .multipart)), + .value(name: "int32", serialized: try int32.serialize(with: .multipart)), + .value(name: "int32Enum", serialized: try int32Enum.serialize(with: .multipart)), + .value(name: "intEnum", serialized: try intEnum.serialize(with: .multipart)), + .value(name: "num", serialized: try numWrapper.serialize(with: .multipart)), + .value(name: "str", serialized: try str.serialize(with: .multipart)), + .value(name: "bigint", serialized: try bigint?.serialize(with: .multipart)), + .value(name: "bigintStr", serialized: try bigintStr?.serialize(with: .multipart)), + .value(name: "boolOpt", serialized: try boolOpt?.serialize(with: .multipart)), + .value(name: "decimal", serialized: try decimal != nil ? decimalWrapper.serialize(with: .multipart) : nil), + .value(name: "decimalStr", serialized: try decimalStr?.serialize(with: .multipart)), + .value(name: "intOptNull", serialized: try intOptNull?.serialize(with: .multipart)), + .value(name: "numOptNull", serialized: try numOptNull != nil ? numOptNullWrapper.serialize(with: .multipart) : nil), + .value(name: "strOpt", serialized: try strOpt?.serialize(with: .multipart)) + ] + } +} + +extension Shared.SimpleObject: FormBodySerializable { + func serializedFormParameters(formatOverride: SerializableFormat?) throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "any", serialized: try any.serialize(with: .form(explode: true))), + SerializedParameter(name: "bool", serialized: try bool.serialize(with: .form(explode: true))), + SerializedParameter(name: "date", serialized: try dateWrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "dateTime", serialized: try dateTimeWrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "enum", serialized: try `enum`.serialize(with: .form(explode: true))), + SerializedParameter(name: "float32", serialized: try float32Wrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "int", serialized: try int.serialize(with: .form(explode: true))), + SerializedParameter(name: "int32", serialized: try int32.serialize(with: .form(explode: true))), + SerializedParameter(name: "int32Enum", serialized: try int32Enum.serialize(with: .form(explode: true))), + SerializedParameter(name: "intEnum", serialized: try intEnum.serialize(with: .form(explode: true))), + SerializedParameter(name: "num", serialized: try numWrapper.serialize(with: .form(explode: true))), + SerializedParameter(name: "str", serialized: try str.serialize(with: .form(explode: true))), + SerializedParameter(name: "bigint", serialized: try bigint?.serialize(with: .form(explode: true))), + SerializedParameter(name: "bigintStr", serialized: try bigintStr?.serialize(with: .form(explode: true))), + SerializedParameter(name: "boolOpt", serialized: try boolOpt?.serialize(with: .form(explode: true))), + SerializedParameter(name: "decimal", serialized: try decimal != nil ? decimalWrapper.serialize(with: .form(explode: true)) : nil), + SerializedParameter(name: "decimalStr", serialized: try decimalStr?.serialize(with: .form(explode: true))), + SerializedParameter(name: "intOptNull", serialized: try intOptNull?.serialize(with: .form(explode: true))), + SerializedParameter(name: "numOptNull", serialized: try numOptNull != nil ? numOptNullWrapper.serialize(with: .form(explode: true)) : nil), + SerializedParameter(name: "strOpt", serialized: try strOpt?.serialize(with: .form(explode: true))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectCamelCaseInt32EnumVal+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectCamelCaseInt32EnumVal+Serialization.swift new file mode 100755 index 000000000..f73ac54fc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectCamelCaseInt32EnumVal+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObjectCamelCaseInt32EnumVal: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectCamelCaseIntEnumVal+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectCamelCaseIntEnumVal+Serialization.swift new file mode 100755 index 000000000..ba1ad3925 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectCamelCaseIntEnumVal+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObjectCamelCaseIntEnumVal: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectInt32Enum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectInt32Enum+Serialization.swift new file mode 100755 index 000000000..77425407b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectInt32Enum+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObjectInt32Enum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectIntEnum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectIntEnum+Serialization.swift new file mode 100755 index 000000000..592b1bace --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectIntEnum+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObjectIntEnum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectWithTypeInt32Enum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectWithTypeInt32Enum+Serialization.swift new file mode 100755 index 000000000..c62b0d3cd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectWithTypeInt32Enum+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObjectWithTypeInt32Enum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectWithTypeIntEnum+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectWithTypeIntEnum+Serialization.swift new file mode 100755 index 000000000..24e4f4b00 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimpleObjectWithTypeIntEnum+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.SimpleObjectWithTypeIntEnum: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterArraysRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterArraysRequest+Serialization.swift new file mode 100755 index 000000000..b93ebd043 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterArraysRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.SimplePathParameterArraysRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.SimplePathParameterArraysRequest", format: format.formatDescription) + } + } +} + +extension Operations.SimplePathParameterArraysRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "arrParam": try arrParam.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterMapsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterMapsRequest+Serialization.swift new file mode 100755 index 000000000..5b339bbb8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterMapsRequest+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.SimplePathParameterMapsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.SimplePathParameterMapsRequest", format: format.formatDescription) + } + } +} + +extension Operations.SimplePathParameterMapsRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "mapParam": try mapParam.serialize(with: formatOverride ?? .path(explode: false)), + "mapParamExploded": try mapParamExploded.serialize(with: formatOverride ?? .path(explode: true)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterObjectsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterObjectsRequest+Serialization.swift new file mode 100755 index 000000000..5fa17c05f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterObjectsRequest+Serialization.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.SimplePathParameterObjectsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.SimplePathParameterObjectsRequest", format: format.formatDescription) + } + } +} + +extension Operations.SimplePathParameterObjectsRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "objParam": try objParam.serialize(with: formatOverride ?? .path(explode: false)), + "objParamExploded": try objParamExploded.serialize(with: formatOverride ?? .path(explode: true)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterPrimitivesRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterPrimitivesRequest+Serialization.swift new file mode 100755 index 000000000..89416602a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/SimplePathParameterPrimitivesRequest+Serialization.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.SimplePathParameterPrimitivesRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.SimplePathParameterPrimitivesRequest", format: format.formatDescription) + } + } +} + +extension Operations.SimplePathParameterPrimitivesRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "boolParam": try boolParam.serialize(with: formatOverride ?? .path(explode: false)), + "intParam": try intParam.serialize(with: formatOverride ?? .path(explode: false)), + "numParam": try numParamWrapper.serialize(with: formatOverride ?? .path(explode: false)), + "strParam": try strParam.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/StatusGetErrorRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/StatusGetErrorRequest+Serialization.swift new file mode 100755 index 000000000..5ee2a4f88 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/StatusGetErrorRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.StatusGetErrorRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.StatusGetErrorRequest", format: format.formatDescription) + } + } +} + +extension Operations.StatusGetErrorRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "statusCode": try statusCode.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/StatusGetXSpeakeasyErrorsRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/StatusGetXSpeakeasyErrorsRequest+Serialization.swift new file mode 100755 index 000000000..34a4d7c91 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/StatusGetXSpeakeasyErrorsRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.StatusGetXSpeakeasyErrorsRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.StatusGetXSpeakeasyErrorsRequest", format: format.formatDescription) + } + } +} + +extension Operations.StatusGetXSpeakeasyErrorsRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "statusCode": try statusCode.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/TelemetrySpeakeasyUserAgentGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/TelemetrySpeakeasyUserAgentGetRequest+Serialization.swift new file mode 100755 index 000000000..f15715f1a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/TelemetrySpeakeasyUserAgentGetRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.TelemetrySpeakeasyUserAgentGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .header: + return serializeModel(with: try serializedHeaderParameters(), format: format) + case .path, .query, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.TelemetrySpeakeasyUserAgentGetRequest", format: format.formatDescription) + } + } +} + +extension Operations.TelemetrySpeakeasyUserAgentGetRequest: HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] { + return [ + SerializedParameter(name: "User-Agent", serialized: try userAgent.serialize(with: .header(explode: false))) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject1Type+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject1Type+Serialization.swift new file mode 100755 index 000000000..e8491d228 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject1Type+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.TypedObject1Type: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject2Type+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject2Type+Serialization.swift new file mode 100755 index 000000000..c091b4fea --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject2Type+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.TypedObject2Type: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject3Type+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject3Type+Serialization.swift new file mode 100755 index 000000000..04188c00f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedObject3Type+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.TypedObject3Type: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/TypedParameterGenerationGetObj+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedParameterGenerationGetObj+Serialization.swift new file mode 100755 index 000000000..467751663 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedParameterGenerationGetObj+Serialization.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.TypedParameterGenerationGetObj: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.TypedParameterGenerationGetObj", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.TypedParameterGenerationGetObj: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: bool, named: "bool", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: numWrapper, named: "num", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: str, named: "str", format: formatOverride ?? .query(style: .form, explode: false), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/TypedParameterGenerationGetRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedParameterGenerationGetRequest+Serialization.swift new file mode 100755 index 000000000..45521cf96 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/TypedParameterGenerationGetRequest+Serialization.swift @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.TypedParameterGenerationGetRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.TypedParameterGenerationGetRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.TypedParameterGenerationGetRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: bigint, named: "bigint", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + if date != nil { + try builder.addQueryParameters(from: dateWrapper, named: "date", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + } + if decimal != nil { + try builder.addQueryParameters(from: decimalWrapper, named: "decimal", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + } + try builder.addQueryParameters(from: obj, named: "obj", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UpdateResourceRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UpdateResourceRequest+Serialization.swift new file mode 100755 index 000000000..8fb1f83e8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UpdateResourceRequest+Serialization.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UpdateResourceRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .path: + return try serializePathParameterSerializable(self, with: format) + case .query, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.UpdateResourceRequest", format: format.formatDescription) + } + } +} + +extension Operations.UpdateResourceRequest: PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] { + return [ + "resourceId": try resourceId.serialize(with: formatOverride ?? .path(explode: false)), + ].compactMapValues { $0 } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostEnumParameter+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostEnumParameter+Serialization.swift new file mode 100755 index 000000000..ec22d4953 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostEnumParameter+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UsageExamplePostEnumParameter: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostOptEnumParameter+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostOptEnumParameter+Serialization.swift new file mode 100755 index 000000000..bcf8dc147 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostOptEnumParameter+Serialization.swift @@ -0,0 +1,14 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UsageExamplePostOptEnumParameter: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try rawValue.serialize(with: format) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostRequest+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostRequest+Serialization.swift new file mode 100755 index 000000000..9dafd605a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostRequest+Serialization.swift @@ -0,0 +1,49 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UsageExamplePostRequest: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + switch format { + case .query: + return try serializeQueryParameterSerializable(self, with: format) + case .path, .header, .multipart, .form: + throw SerializationError.invalidSerializationParameter(type: "Operations.UsageExamplePostRequest", format: format.formatDescription) + } + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try serializedQueryParameters(with: nil, formatOverride: format) + } +} + +extension Operations.UsageExamplePostRequest: QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] { + let builder = QueryParameterBuilder() + try builder.addQueryParameters(from: bigintParameter, named: "bigintParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: bigintStrParameter, named: "bigintStrParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: boolParameter, named: "boolParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: dateParameterWrapper, named: "dateParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: dateTimeDefaultParameterWrapper, named: "dateTimeDefaultParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: dateTimeParameterWrapper, named: "dateTimeParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: decimalParameterWrapper, named: "decimalParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: decimalStrParameter, named: "decimalStrParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: doubleParameterWrapper, named: "doubleParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: enumParameter, named: "enumParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: falseyNumberParameterWrapper, named: "falseyNumberParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: float32ParameterWrapper, named: "float32Parameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: floatParameterWrapper, named: "floatParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: int64Parameter, named: "int64Parameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: intParameter, named: "intParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: strParameter, named: "strParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: bigintParameterOptional, named: "bigintParameterOptional", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: bigintStrParameterOptional, named: "bigintStrParameterOptional", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + if decimalParameterOptional != nil { + try builder.addQueryParameters(from: decimalParameterOptionalWrapper, named: "decimalParameterOptional", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + } + try builder.addQueryParameters(from: decimalStrParameterOptional, named: "decimalStrParameterOptional", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + try builder.addQueryParameters(from: optEnumParameter, named: "optEnumParameter", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults) + return builder.build() + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostSecurity+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostSecurity+Serialization.swift new file mode 100755 index 000000000..50ab47c77 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/UsageExamplePostSecurity+Serialization.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Operations.UsageExamplePostSecurity: SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] { + return [ + .httpBasic(username: self.username, password: self.password) + ] + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfObject+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfObject+Serialization.swift new file mode 100755 index 000000000..6a03b9ee4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfObject+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfObject: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObject+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObject+Serialization.swift new file mode 100755 index 000000000..ad573156b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObject+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfReadOnlyObject: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObjectInput+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObjectInput+Serialization.swift new file mode 100755 index 000000000..b6718cc96 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObjectInput+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfReadOnlyObjectInput: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectInput+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectInput+Serialization.swift new file mode 100755 index 000000000..874a0efc7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectInput+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfReadWriteObjectInput: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectOutput+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectOutput+Serialization.swift new file mode 100755 index 000000000..f05e31ff1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectOutput+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfReadWriteObjectOutput: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObject+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObject+Serialization.swift new file mode 100755 index 000000000..eb001d9d8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObject+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfWriteOnlyObject: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObjectOutput+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObjectOutput+Serialization.swift new file mode 100755 index 000000000..215e6e201 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObjectOutput+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WeaklyTypedOneOfWriteOnlyObjectOutput: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/models/WriteOnlyObjectOutput+Serialization.swift b/swift-client-sdk/Sources/OpenAPI/internal/models/WriteOnlyObjectOutput+Serialization.swift new file mode 100755 index 000000000..58712fda7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/models/WriteOnlyObjectOutput+Serialization.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + + +import Foundation + +extension Shared.WriteOnlyObjectOutput: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/Form.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Form.swift new file mode 100755 index 000000000..15f037cfd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Form.swift @@ -0,0 +1,58 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +func multipartContentType(with boundary: String) -> String { + return "multipart/form-data; boundary=\(boundary)" +} + +func serializeMultipartFormData(with multipartFormBodySerializable: MultipartFormBodySerializable) throws -> (boundary: String, data: Data) { + let boundary = UUID().uuidString + + var data = Data() + let parameters = try multipartFormBodySerializable.serializedMultipartFormParameters(formatOverride: nil) + parameters.forEach { parameter in + switch parameter { + case .value(name: let name, serialized: let serialized): + guard let serialized else { return } + + data.append(utf8String: "--\(boundary)\r\n") + data.append(utf8String: "Content-Disposition: multipart/form-data; name=\"\(name)\"\r\n") + data.append(utf8String: "Content-Type: text/plain\r\n\r\n") + data.append(utf8String: "\(serialized)\r\n") + case .file(name: let name, filename: let filename, data: let content): + guard let filename, let content, let contentString = String(data: content, encoding: .ascii) else { return } + + data.append(utf8String: "--\(boundary)\r\n") + data.append(utf8String: "Content-Disposition: multipart/form-data; name=\"\(name)\"; filename=\"\(filename)\"\r\n") + data.append(utf8String: "Content-Type: text/plain\r\n\r\n") + data.append(utf8String: "\(contentString)\r\n") + } + } + + data.append(utf8String: "--\(boundary)--") + + return (boundary: boundary, data: data) +} + +func serializeFormData(with formBodySerializable: FormBodySerializable) throws -> Data? { + let encoded = (try formBodySerializable.serializedFormParameters(formatOverride: nil)) + .compactMap { parameter -> (String, String)? in + guard let serialized = parameter.serialized else { return nil } + return (parameter.name, serialized) + } + .map { (name, serialized) in + return "\(name)=\(serialized)" + } + .joined(separator: "&") + + return encoded.data(using: .utf8) +} + +fileprivate extension Data { + mutating func append(utf8String: String) { + if let data = utf8String.data(using: .utf8) { + append(data) + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/JSON.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/JSON.swift new file mode 100755 index 000000000..520e272c8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/JSON.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +func jsonEncoder() -> JSONEncoder { + let jsonEncoder = JSONEncoder() + // Sort keys to make this easier to test resulting JSON. + jsonEncoder.outputFormatting = [.sortedKeys] + return jsonEncoder +} + +func serializeEncodable(_ encodable: Encodable?) throws -> String? { + guard let encodable else { return nil } + + let data = try jsonEncoder().encode(encodable) + return String(data: data, encoding: .utf8) +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/Maps.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Maps.swift new file mode 100755 index 000000000..dc8939197 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Maps.swift @@ -0,0 +1,7 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +func namedQueryParameters(from serializable: Serializable, name: String, format: SerializableFormat) throws -> [QueryParameter] { + return try serializable.serializeQueryParameters(with: format).mapKeys { _ in [name] } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/Parameters.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Parameters.swift new file mode 100755 index 000000000..2cb6e5727 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Parameters.swift @@ -0,0 +1,102 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +struct SerializedParameter { + let name: String + let serialized: String? +} + +protocol ParameterDefaults { + func defaultSerializedPathParameter(for key: String) throws -> String? + func defaultQueryParameter(for key: String) -> AnyValue? +} + +// MARK: - Serialization Types + +protocol PathParameterSerializable { + func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] +} + +protocol QueryParameterSerializable { + func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] +} + +protocol HeaderParameterSerializable { + func serializedHeaderParameters() throws -> [SerializedParameter] +} + +enum MultipartFormParameter { + case value(name: String, serialized: String?) + case file(name: String, filename: String?, data: Data?) +} + +protocol MultipartFormBodySerializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] +} + +protocol FormBodySerializable { + func serializedFormParameters(formatOverride: SerializableFormat?) throws -> [SerializedParameter] +} + +// MARK: - Models + +func serializePathParameterSerializable( + _ pathParameterSerializable: PathParameterSerializable, + with format: SerializableFormat +) throws -> String { + let fields = try pathParameterSerializable + .serializedPathParameters(formatOverride: format) + .map { (key, value) in + SerializedParameter(name: key, serialized: value) + } + .sorted { a, b in + a.name < b.name + } + return serializeModel(with: fields, format: format) +} + +func serializeQueryParameterSerializable( + _ queryParameterSerializable: QueryParameterSerializable, + with format: SerializableFormat +) throws -> String { + let fields = try queryParameterSerializable + .serializedQueryParameters(with: nil, formatOverride: format) + .compactMap { queryParameter -> SerializedParameter? in + guard let key = queryParameter.key.last else { return nil } + return SerializedParameter(name: key, serialized: queryParameter.serialized) + } + return serializeModel(with: fields, format: format) +} + +func serializeModel( + with fields: [SerializedParameter], + format: SerializableFormat +) -> String { + return fields.map { field in + guard let serialized = field.serialized else { return nil } + if format.explode { + return "\(field.name)=\(serialized)" + } else { + return "\(field.name)\(format.separator)\(serialized)" + } + }.compactMap { $0 }.joined(separator: format.separator) +} + +// MARK: - Maps + +extension Dictionary: MultipartFormBodySerializable where Key == String, Value: Serializable { + func serializedMultipartFormParameters(formatOverride: SerializableFormat?) throws -> [MultipartFormParameter] { + return try map { key, value in + return .value(name: key, serialized: try value.serialize(with: formatOverride ?? .multipart)) + } + } +} + +extension Dictionary: FormBodySerializable where Key == String, Value: Serializable { + func serializedFormParameters(formatOverride: SerializableFormat?) throws -> [SerializedParameter] { + return try map { key, value in + return SerializedParameter(name: key, serialized: try value.serialize(with: formatOverride ?? .form(explode: false))) + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/PropertyWrappers.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/PropertyWrappers.swift new file mode 100755 index 000000000..bdfe692a5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/PropertyWrappers.swift @@ -0,0 +1,232 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +// MARK: - Wrappers + +/// An internal type used to aid in serializing request data and deserializing response data. +/// +/// > Important: This type should not be used directly. +@propertyWrapper public struct DecimalSerialized: Codable, Serializable where Value: DoubleConvertible { + // This property wrapper ensures that we (de)serialize values as Decimals to avoid floating-point rounding errors. + + public var wrappedValue: Value + + public init(wrappedValue: Value) { + self.wrappedValue = wrappedValue + } + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + wrappedValue = try Value.decodeValue(with: container) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + if let double = wrappedValue.toDouble() { + try container.encode(Decimal(double)) + } + } + + // MARK: - Serializable + + func serialize(with format: SerializableFormat) throws -> String { + return wrappedValue.toDouble().map { String($0) } ?? "" + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension DecimalSerialized: CustomStringConvertible where Value: CustomStringConvertible { + public var description: String { + return wrappedValue.description + } +} + +/// An internal type used to aid in serializing request data and deserializing response data. +/// +/// > Important: This type should not be used directly. +@propertyWrapper public struct DateTime: Codable, Serializable where Value: DateConvertible { + // This property wrapper ensures that we (de)serialize Swift Dates in the correct datetime format. + + public var wrappedValue: Value + + public init(wrappedValue: Value) { + self.wrappedValue = wrappedValue + } + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + wrappedValue = try Value.decodeValue(with: container, formatter: dateTimeFormatter) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + if let formatted = wrappedValue.formattedString(with: dateTimeFormatter) { + try container.encode(formatted) + } + } + + // MARK: - Serializable + + func serialize(with format: SerializableFormat) throws -> String { + return wrappedValue.formattedString(with: dateTimeFormatter) ?? "" + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension DateTime: CustomStringConvertible where Value: CustomStringConvertible { + public var description: String { + return wrappedValue.description + } +} + +/// An internal type used to aid in serializing request data and deserializing response data. +/// +/// > Important: This type should not be used directly. +@propertyWrapper public struct DateOnly: Codable, Serializable where Value: DateConvertible { + // This property wrapper ensures that we (de)serialize dates in the date-only format, as Date doesn't distinguish between these types. + + public var wrappedValue: Value + + public init(wrappedValue: Value) { + self.wrappedValue = wrappedValue + } + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + wrappedValue = try Value.decodeValue(with: container, formatter: dateOnlyFormatter) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + if let formatted = wrappedValue.formattedString(with: dateOnlyFormatter) { + try container.encode(formatted) + } + } + + // MARK: - Serializable + + func serialize(with format: SerializableFormat) throws -> String { + return wrappedValue.formattedString(with: dateOnlyFormatter) ?? "" + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension DateOnly: CustomStringConvertible where Value: CustomStringConvertible { + public var description: String { + return wrappedValue.description + } +} + +// MARK: - Formatters + +private let dateTimeFormatter = { + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" + return dateFormatter +}() + +private let dateOnlyFormatter = { + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "yyyy-MM-dd" + return dateFormatter +}() + +// MARK: - Helpers + +/// An internal type used to aid in serializing request data. +/// +/// > Important: This type should not be used directly. +public protocol DoubleConvertible { + func toDouble() -> Double? + static func decodeValue(with container: SingleValueDecodingContainer) throws -> Self +} + +extension Double: DoubleConvertible { + public static func decodeValue(with container: SingleValueDecodingContainer) throws -> Double { + return try container.decode(Double.self) + } + + public func toDouble() -> Double? { + return self + } +} + +extension Optional: DoubleConvertible where Wrapped == Double { + public static func decodeValue(with container: SingleValueDecodingContainer) throws -> Optional { + if container.decodeNil() { + return nil + } else { + return try container.decode(Double.self) + } + } + + public func toDouble() -> Double? { + return self + } +} + +/// An internal type used to aid in serializing request data. +/// +/// > Important: This type should not be used directly. +public protocol DateConvertible { + func toDate() -> Date? + func formattedString(with formatter: DateFormatter) -> String? + + static func decodeValue(with container: SingleValueDecodingContainer, formatter: DateFormatter) throws -> Self +} + +extension Date: DateConvertible { + public static func decodeValue(with container: SingleValueDecodingContainer, formatter: DateFormatter) throws -> Date { + let string = try container.decode(String.self) + guard let date = formatter.date(from: string) else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Invalid date string value '\(string)'" + ) + } + return date + } + + public func toDate() -> Date? { + return self + } + + public func formattedString(with formatter: DateFormatter) -> String? { + return formatter.string(from: self) + } +} + +extension Optional: DateConvertible where Wrapped == Date { + public static func decodeValue(with container: SingleValueDecodingContainer, formatter: DateFormatter) throws -> Optional { + if container.decodeNil() { + return nil + } else { + let string = try container.decode(String.self) + guard let date = formatter.date(from: string) else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Invalid date string value '\(string)'" + ) + } + return date + } + } + + public func toDate() -> Date? { + return self + } + + public func formattedString(with formatter: DateFormatter) -> String? { + return self.map { formatter.string(from: $0) } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/QueryParameters.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/QueryParameters.swift new file mode 100755 index 000000000..995720c24 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/QueryParameters.swift @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +func queryString(from queryParameters: [QueryParameter]) -> String { + return queryParameters + .sorted { qp1, qp2 in + if qp1.key == qp2.key { + return qp1.index < qp2.index + } + + // Lexicographically sort components. + for (c1, c2) in zip(qp1.key, qp2.key) { + if c1 < c2 { return true } + else if c1 > c2 { return false } + } + return true + }.compactMap { queryParam in + guard + let encodedName = percentEncode(string: queryParameterName(from: queryParam.key)), + let encodedValue = percentEncode(string: queryParam.serialized) + else { return nil } + return "\(encodedName)=\(encodedValue)" + }.joined(separator: "&") +} + +// Helps build nested and exploded query parameters. +class QueryParameterBuilder { + private var queryParameters: [QueryParameter] = [] + + func addQueryParameters(from serializable: Serializable?, named name: String, format: SerializableFormat, parameterDefaults: ParameterDefaults?) throws { + guard let serializable = serializable ?? parameterDefaults?.defaultQueryParameter(for: name) else { return } + if format.explode { + queryParameters.append( + contentsOf: try serializable + .serializeQueryParameters(with: format) + .mapKeys { parameterKey(from: $0, nameOverride: name, with: format) } + ) + } else { + queryParameters.append(QueryParameter(key: [name], serialized: try serializable.serialize(with: format))) + } + } + + func addJSONQueryParameter(named name: String, with encodable: Encodable?) throws { + guard let encodable, let encoded = try serializeEncodable(encodable) else { return } + queryParameters.append(QueryParameter(key: [name], serialized: encoded)) + } + + func build() -> [QueryParameter] { + return queryParameters + } +} + +extension Array where Element == QueryParameter { + func mapKeys(_ f: ([String]) -> [String]) -> [QueryParameter] { + return map { QueryParameter(key: f($0.key), serialized: $0.serialized, index: $0.index) } + } +} + +private func parameterKey(from key: [String], nameOverride: String, with format: SerializableFormat) -> [String] { + if format.isDeep { + return [nameOverride] + key + } else { + return key.isEmpty ? [nameOverride] : key + } +} + +private let allowedPercentEncodingCharacters = CharacterSet.alphanumerics.union(CharacterSet(charactersIn: "-.")) + +private func percentEncode(string: String) -> String? { + return string.addingPercentEncoding(withAllowedCharacters: allowedPercentEncodingCharacters) +} + +private func queryParameterName(from key: [String]) -> String { + guard let first = key.first else { return "" } + let rest = key.dropFirst() + return "\(first)\(rest.map { "[\($0)]" }.joined())" +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/SecurityParameters.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/SecurityParameters.swift new file mode 100755 index 000000000..c11c802cf --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/SecurityParameters.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +enum SecurityParameter { + case httpBasic(username: String?, password: String?) + case httpBearer(value: String?) + case apiKey(name: String, value: String?) + case oauth2(name: String, value: String?) + case openIdConnect(name: String, value: String?) +} + +protocol SecurityParameterProviding { + func securityParameters() -> [SecurityParameter] +} diff --git a/swift-client-sdk/Sources/OpenAPI/internal/serialization/Serializable.swift b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Serializable.swift new file mode 100755 index 000000000..e8b10e02d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/internal/serialization/Serializable.swift @@ -0,0 +1,213 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +enum QueryParameterSerializableStyle { + case form + case pipeDelimited + case deepObject +} + +enum SerializableFormat { + case path(explode: Bool) + case query(style: QueryParameterSerializableStyle, explode: Bool) + case header(explode: Bool) + case multipart + case form(explode: Bool) + + var explode: Bool { + switch self { + case .path(let explode), .query(_, let explode), .header(let explode), .form(let explode): + return explode + case .multipart: + return false + } + } + + var isDeep: Bool { + switch self { + case .path, .header, .multipart, .form: + return false + case .query(let style, _): + switch style { + case .form, .pipeDelimited: + return false + case .deepObject: + return true + } + } + } +} + +struct QueryParameter { + let key: [String] + let serialized: String + let index: Int + + init(key: [String], serialized: String) { + self.key = key + self.serialized = serialized + self.index = 0 + } + + init(key: [String], serialized: String, index: Int) { + self.key = key + self.serialized = serialized + self.index = index + } +} + +enum SerializationError: Swift.Error { + case failedToSerializeData + case missingRequiredRequestBody + case invalidSerializationParameter(type: String, format: String) +} + +protocol Serializable { + func serialize(with format: SerializableFormat) throws -> String + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] +} + +extension Serializable { + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [] + } +} + +// MARK: - Primitives + +extension NSNull: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return "null" + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension String: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return self + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension Int: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return String(self) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension Double: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return String(self) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension Bool: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return String(self) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension Data: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + guard let string = String(data: self, encoding: .ascii) else { + throw SerializationError.failedToSerializeData + } + return string + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } +} + +extension Optional: Serializable where Wrapped: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try self?.serialize(with: format) ?? "" + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + return try self?.serializeQueryParameters(with: format) ?? [] + } +} + +// MARK: - Collections + +extension Array: Serializable where Element: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + return try map { try $0.serialize(with: format) }.joined(separator: format.separator) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + if format.explode { + return try enumerated().map { index, value in + QueryParameter(key: [], serialized: try value.serialize(with: format), index: index) + } + } else { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } + } +} + +extension Dictionary: Serializable where Key == String, Value: Serializable { + func serialize(with format: SerializableFormat) throws -> String { + // Sort by keys first to make serialization deterministic. + return try map { key, value in + (key, value) + }.sorted { + $0.0 < $1.0 + }.map { (key, value) in + if format.explode { + return "\(key)=\(try value.serialize(with: format))" + } else { + return "\(key)\(format.separator)\(try value.serialize(with: format))" + } + }.joined(separator: format.separator) + } + + func serializeQueryParameters(with format: SerializableFormat) throws -> [QueryParameter] { + if format.explode { + return try flatMap { key, value in + try value.serializeQueryParameters(with: format).mapKeys { _ in [key] } + } + } else { + return [QueryParameter(key: [], serialized: try serialize(with: format))] + } + } +} + +// MARK: - Extensions + +extension SerializableFormat { + var separator: String { + switch self { + case .path, .header, .multipart, .form: + return "," + case .query(let style, _): + switch style { + case .form, .deepObject: + return "," + case .pipeDelimited: + return "|" + } + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/ModelScopes.swift b/swift-client-sdk/Sources/OpenAPI/models/ModelScopes.swift new file mode 100755 index 000000000..3bc183c7d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/ModelScopes.swift @@ -0,0 +1,18 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +/// Top-level type used for grouping shared models +/// +/// > Note: You do not need to interact with this type directly. +public enum Shared {} + +/// Top-level type used for grouping operations models +/// +/// > Note: You do not need to interact with this type directly. +public enum Operations {} + +/// Top-level type used for grouping callback models +/// +/// > Note: You do not need to interact with this type directly. +public enum Callbacks {} diff --git a/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.swift new file mode 100755 index 000000000..fb5c99ed4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Callbacks { + /// A model object + public struct IgnoredGenerationGetNotIgnoredCallbackRequestBody { + public let someProp: String? + + /// Creates an object with the specified parameters + /// + /// + public init(someProp: String? = nil) { + self.someProp = someProp + } + } +} + +extension Callbacks.IgnoredGenerationGetNotIgnoredCallbackRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case someProp + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.swift new file mode 100755 index 000000000..94db301b4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Callbacks { + /// A response model + public enum IgnoredGenerationGetNotIgnoredCallbackResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.swift new file mode 100755 index 000000000..8c854f99c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Callbacks { + /// A model object + public struct IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody { + public let someProp: String? + + /// Creates an object with the specified parameters + /// + /// + public init(someProp: String? = nil) { + self.someProp = someProp + } + } +} + +extension Callbacks.IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case someProp + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.swift new file mode 100755 index 000000000..f81b2ccab --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Callbacks { + /// A response model + public enum IgnoredGenerationGetSingledIgnoredCallbackOperationResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/AnchorTypesGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/AnchorTypesGetResponse.swift new file mode 100755 index 000000000..4e6bc129a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/AnchorTypesGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum AnchorTypesGetResponse { + case empty + case typeFromAnchor(Operations.TypeFromAnchor) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func typeFromAnchor() throws -> Operations.TypeFromAnchor { + guard case .typeFromAnchor(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalNewResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalNewResponse.swift new file mode 100755 index 000000000..42aeb75cc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalNewResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ApiKeyAuthGlobalNewResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalResponse.swift new file mode 100755 index 000000000..171eb3275 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ApiKeyAuthGlobalResponse { + case empty + case token(Operations.ApiKeyAuthGlobalToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.ApiKeyAuthGlobalToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalToken.swift new file mode 100755 index 000000000..de2bc7112 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthGlobalToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct ApiKeyAuthGlobalToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.ApiKeyAuthGlobalToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthResponse.swift new file mode 100755 index 000000000..6407fea8d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ApiKeyAuthResponse { + case empty + case token(Operations.ApiKeyAuthToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.ApiKeyAuthToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthSecurity.swift new file mode 100755 index 000000000..b9efa5e67 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum ApiKeyAuthSecurity { + case apiKeyAuth(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthToken.swift new file mode 100755 index 000000000..2c6b66c7c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ApiKeyAuthToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct ApiKeyAuthToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.ApiKeyAuthToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ArrayCircularReferenceGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ArrayCircularReferenceGetResponse.swift new file mode 100755 index 000000000..a468c9877 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ArrayCircularReferenceGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ArrayCircularReferenceGetResponse { + case empty + case arrayCircularReferenceObject([Shared.ArrayCircularReferenceObject]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func arrayCircularReferenceObject() throws -> [Shared.ArrayCircularReferenceObject] { + guard case .arrayCircularReferenceObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/AuthGlobalResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/AuthGlobalResponse.swift new file mode 100755 index 000000000..719591e46 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/AuthGlobalResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum AuthGlobalResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthNewResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthNewResponse.swift new file mode 100755 index 000000000..17e8c0d53 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthNewResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum BasicAuthNewResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthNewSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthNewSecurity.swift new file mode 100755 index 000000000..7f4a60245 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthNewSecurity.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct BasicAuthNewSecurity { + public let username: String + public let password: String + + /// Creates a security model with the specified parameters + /// + /// + public init(username: String, password: String) { + self.username = username + self.password = password + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthRequest.swift new file mode 100755 index 000000000..d1597e8e1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct BasicAuthRequest: APIValue { + public let passwd: String + public let user: String + + /// Creates a request model with the specified parameters + /// + /// + public init(passwd: String, user: String) { + self.passwd = passwd + self.user = user + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthResponse.swift new file mode 100755 index 000000000..fe2935074 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum BasicAuthResponse { + case empty + case user(Operations.BasicAuthUser) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func user() throws -> Operations.BasicAuthUser { + guard case .user(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthSecurity.swift new file mode 100755 index 000000000..16e316476 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthSecurity.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct BasicAuthSecurity { + public let username: String + public let password: String + + /// Creates a security model with the specified parameters + /// + /// + public init(username: String, password: String) { + self.username = username + self.password = password + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthUser.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthUser.swift new file mode 100755 index 000000000..233e22bf9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BasicAuthUser.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct BasicAuthUser { + public let authenticated: Bool + public let user: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, user: String) { + self.authenticated = authenticated + self.user = user + } + } +} + +extension Operations.BasicAuthUser: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case user + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthResponse.swift new file mode 100755 index 000000000..39380701a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum BearerAuthResponse { + case empty + case token(Operations.BearerAuthToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.BearerAuthToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthSecurity.swift new file mode 100755 index 000000000..dab20db11 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum BearerAuthSecurity { + case bearerAuth(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthToken.swift new file mode 100755 index 000000000..38d547aeb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/BearerAuthToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct BearerAuthToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.BearerAuthToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/CircularReferenceGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/CircularReferenceGetResponse.swift new file mode 100755 index 000000000..8cf92f7d4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/CircularReferenceGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum CircularReferenceGetResponse { + case empty + case validCircularReferenceObject(Shared.ValidCircularReferenceObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func validCircularReferenceObject() throws -> Shared.ValidCircularReferenceObject { + guard case .validCircularReferenceObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRequest.swift new file mode 100755 index 000000000..5443196b0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct ComponentBodyAndParamConflictRequest: APIValue { + public let simpleObject: Shared.SimpleObject + public let str: String + + /// Creates a request model with the specified parameters + /// + /// + public init(simpleObject: Shared.SimpleObject, str: String) { + self.simpleObject = simpleObject + self.str = str + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRes.swift new file mode 100755 index 000000000..043b5ee03 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRes.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ComponentBodyAndParamConflictRes { + public let args: [String: String] + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(args: [String: String], json: Shared.SimpleObject) { + self.args = args + self.json = json + } + } +} + +extension Operations.ComponentBodyAndParamConflictRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictResponse.swift new file mode 100755 index 000000000..3e434026c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ComponentBodyAndParamConflictResponse { + case empty + case res(Operations.ComponentBodyAndParamConflictRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.ComponentBodyAndParamConflictRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRequest.swift new file mode 100755 index 000000000..402578aea --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct ComponentBodyAndParamNoConflictRequest: APIValue { + public let paramStr: String + public let simpleObject: Shared.SimpleObject + + /// Creates a request model with the specified parameters + /// + /// + public init(paramStr: String, simpleObject: Shared.SimpleObject) { + self.paramStr = paramStr + self.simpleObject = simpleObject + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRes.swift new file mode 100755 index 000000000..ce4d6c998 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRes.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ComponentBodyAndParamNoConflictRes { + public let args: [String: String] + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(args: [String: String], json: Shared.SimpleObject) { + self.args = args + self.json = json + } + } +} + +extension Operations.ComponentBodyAndParamNoConflictRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictResponse.swift new file mode 100755 index 000000000..2d257dc67 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ComponentBodyAndParamNoConflictResponse { + case empty + case res(Operations.ComponentBodyAndParamNoConflictRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.ComponentBodyAndParamNoConflictRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsRequest.swift new file mode 100755 index 000000000..05faa5b27 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct ConflictingParamsRequest: APIValue { + public let strPathParameter: String + public let strQueryParameter: String + + /// Creates a request model with the specified parameters + /// + /// + public init(strPathParameter: String, strQueryParameter: String) { + self.strPathParameter = strPathParameter + self.strQueryParameter = strQueryParameter + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsRes.swift new file mode 100755 index 000000000..06c8bacb9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ConflictingParamsRes { + public let args: [String: String] + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String], url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.ConflictingParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsResponse.swift new file mode 100755 index 000000000..fab32b1c0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ConflictingParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ConflictingParamsResponse { + case empty + case res(Operations.ConflictingParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.ConflictingParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ConnectionErrorGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ConnectionErrorGetResponse.swift new file mode 100755 index 000000000..fe854a471 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ConnectionErrorGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ConnectionErrorGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileRequestBody.swift new file mode 100755 index 000000000..835f47f50 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileRequestBody.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct CreateFileRequestBody: APIValue { + public let file: Operations.CreateFileRequestBodyFile? + + /// Creates an object with the specified parameters + /// + /// + public init(file: Operations.CreateFileRequestBodyFile? = nil) { + self.file = file + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileRequestBodyFile.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileRequestBodyFile.swift new file mode 100755 index 000000000..567713380 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileRequestBodyFile.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct CreateFileRequestBodyFile: APIValue { + public let content: Data + public let file: String + + /// Creates an object with the specified parameters + /// + /// + public init(content: Data, file: String) { + self.content = content + self.file = file + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileResponse.swift new file mode 100755 index 000000000..999950046 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateFileResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum CreateFileResponse { + case empty + case fileResource(Shared.FileResource) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func fileResource() throws -> Shared.FileResource { + guard case .fileResource(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/CreateResourceResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateResourceResponse.swift new file mode 100755 index 000000000..ee37b80b8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/CreateResourceResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum CreateResourceResponse { + case empty + case exampleResource(Shared.ExampleResource) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func exampleResource() throws -> Shared.ExampleResource { + guard case .exampleResource(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DateParamWithDefaultRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DateParamWithDefaultRequest.swift new file mode 100755 index 000000000..d265cca77 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DateParamWithDefaultRequest.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DateParamWithDefaultRequest: APIValue { + /// A date parameter with a default value + @DateOnly + public private(set) var dateInput: Date + + /// Creates a request model with the specified parameters + /// + /// - Parameter dateInput: A date parameter with a default value + /// + public init(dateInput: Date) { + self._dateInput = DateOnly(wrappedValue: dateInput) + } + } +} +extension Operations.DateParamWithDefaultRequest { + var dateInputWrapper: DateOnly { + return _dateInput + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DateParamWithDefaultResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DateParamWithDefaultResponse.swift new file mode 100755 index 000000000..a66c09d31 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DateParamWithDefaultResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DateParamWithDefaultResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DateTimeParamWithDefaultRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DateTimeParamWithDefaultRequest.swift new file mode 100755 index 000000000..798d95534 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DateTimeParamWithDefaultRequest.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DateTimeParamWithDefaultRequest: APIValue { + /// A date time parameter with a default value + @DateTime + public private(set) var dateTimeInput: Date + + /// Creates a request model with the specified parameters + /// + /// - Parameter dateTimeInput: A date time parameter with a default value + /// + public init(dateTimeInput: Date) { + self._dateTimeInput = DateTime(wrappedValue: dateTimeInput) + } + } +} +extension Operations.DateTimeParamWithDefaultRequest { + var dateTimeInputWrapper: DateTime { + return _dateTimeInput + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DateTimeParamWithDefaultResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DateTimeParamWithDefaultResponse.swift new file mode 100755 index 000000000..6fb6b2673 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DateTimeParamWithDefaultResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DateTimeParamWithDefaultResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DecimalParamWithDefaultRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DecimalParamWithDefaultRequest.swift new file mode 100755 index 000000000..f7530d189 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DecimalParamWithDefaultRequest.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DecimalParamWithDefaultRequest: APIValue { + /// A decimal parameter with a default value + @DecimalSerialized + public private(set) var decimalInput: Double + + /// Creates a request model with the specified parameters + /// + /// - Parameter decimalInput: A decimal parameter with a default value + /// + public init(decimalInput: Double) { + self._decimalInput = DecimalSerialized(wrappedValue: decimalInput) + } + } +} +extension Operations.DecimalParamWithDefaultRequest { + var decimalInputWrapper: DecimalSerialized { + return _decimalInput + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DecimalParamWithDefaultResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DecimalParamWithDefaultResponse.swift new file mode 100755 index 000000000..7284e25ae --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DecimalParamWithDefaultResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DecimalParamWithDefaultResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRequest.swift new file mode 100755 index 000000000..e9dfa07ab --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DeepObjectQueryParamsMapRequest: APIValue { + public let mapParam: [String: String] + public let mapArrParam: [String: [String]]? + + /// Creates a request model with the specified parameters + /// + /// + public init(mapParam: [String: String], mapArrParam: [String: [String]]? = nil) { + self.mapParam = mapParam + self.mapArrParam = mapArrParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRes.swift new file mode 100755 index 000000000..a3cb088d5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct DeepObjectQueryParamsMapRes { + public let args: [String: Operations.DeepObjectQueryParamsMapResArgs] + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: Operations.DeepObjectQueryParamsMapResArgs], url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.DeepObjectQueryParamsMapRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResArgs.swift new file mode 100755 index 000000000..02e913b69 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResArgs.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum DeepObjectQueryParamsMapResArgs { + case string(String) + case array([String]) + } +} + +extension Operations.DeepObjectQueryParamsMapResArgs: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? [String](from: decoder) { + self = .array(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .array(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResponse.swift new file mode 100755 index 000000000..8602763e9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeepObjectQueryParamsMapResponse { + case empty + case res(Operations.DeepObjectQueryParamsMapRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.DeepObjectQueryParamsMapRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectObjArrParam.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectObjArrParam.swift new file mode 100755 index 000000000..8aaf8c954 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectObjArrParam.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + + public struct DeepObjectQueryParamsObjectObjArrParam: APIValue { + public let arr: [String]? + + /// Creates an object with the specified parameters + /// + /// + public init(arr: [String]? = nil) { + self.arr = arr + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRequest.swift new file mode 100755 index 000000000..02f45e1ba --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRequest.swift @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DeepObjectQueryParamsObjectRequest: APIValue { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objParam: Shared.SimpleObject + public let objArrParam: Operations.DeepObjectQueryParamsObjectObjArrParam? + + /// Creates a request model with the specified parameters + /// + /// - Parameter objParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(objParam: Shared.SimpleObject, objArrParam: Operations.DeepObjectQueryParamsObjectObjArrParam? = nil) { + self.objParam = objParam + self.objArrParam = objArrParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRes.swift new file mode 100755 index 000000000..53b88f932 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct DeepObjectQueryParamsObjectRes { + public let args: Operations.DeepObjectQueryParamsObjectResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.DeepObjectQueryParamsObjectResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.DeepObjectQueryParamsObjectRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResArgs.swift new file mode 100755 index 000000000..37081e9b8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResArgs.swift @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct DeepObjectQueryParamsObjectResArgs { + public let objArrParamArr: [String] + public let objParamAny: String + public let objParamBool: String + public let objParamBoolOpt: String + public let objParamDate: String + public let objParamDateTime: String + public let objParamEnum: String + public let objParamFloat32: String + public let objParamInt: String + public let objParamInt32: String + public let objParamInt32Enum: String + public let objParamIntEnum: String + public let objParamNum: String + public let objParamStr: String + public let objParamStrOpt: String + public let objParamBigint: String? + public let objParamBigintStr: String? + public let objParamDecimal: String? + public let objParamDecimalStr: String? + + /// Creates an object with the specified parameters + /// + /// + public init(objArrParamArr: [String], objParamAny: String, objParamBool: String, objParamBoolOpt: String, objParamDate: String, objParamDateTime: String, objParamEnum: String, objParamFloat32: String, objParamInt: String, objParamInt32: String, objParamInt32Enum: String, objParamIntEnum: String, objParamNum: String, objParamStr: String, objParamStrOpt: String, objParamBigint: String? = nil, objParamBigintStr: String? = nil, objParamDecimal: String? = nil, objParamDecimalStr: String? = nil) { + self.objArrParamArr = objArrParamArr + self.objParamAny = objParamAny + self.objParamBool = objParamBool + self.objParamBoolOpt = objParamBoolOpt + self.objParamDate = objParamDate + self.objParamDateTime = objParamDateTime + self.objParamEnum = objParamEnum + self.objParamFloat32 = objParamFloat32 + self.objParamInt = objParamInt + self.objParamInt32 = objParamInt32 + self.objParamInt32Enum = objParamInt32Enum + self.objParamIntEnum = objParamIntEnum + self.objParamNum = objParamNum + self.objParamStr = objParamStr + self.objParamStrOpt = objParamStrOpt + self.objParamBigint = objParamBigint + self.objParamBigintStr = objParamBigintStr + self.objParamDecimal = objParamDecimal + self.objParamDecimalStr = objParamDecimalStr + } + } +} + +extension Operations.DeepObjectQueryParamsObjectResArgs: Codable { + enum CodingKeys: String, CodingKey { + case objArrParamArr = "objArrParam[arr]" + case objParamAny = "objParam[any]" + case objParamBool = "objParam[bool]" + case objParamBoolOpt = "objParam[boolOpt]" + case objParamDate = "objParam[date]" + case objParamDateTime = "objParam[dateTime]" + case objParamEnum = "objParam[enum]" + case objParamFloat32 = "objParam[float32]" + case objParamInt = "objParam[int]" + case objParamInt32 = "objParam[int32]" + case objParamInt32Enum = "objParam[int32Enum]" + case objParamIntEnum = "objParam[intEnum]" + case objParamNum = "objParam[num]" + case objParamStr = "objParam[str]" + case objParamStrOpt = "objParam[strOpt]" + case objParamBigint = "objParam[bigint]" + case objParamBigintStr = "objParam[bigintStr]" + case objParamDecimal = "objParam[decimal]" + case objParamDecimalStr = "objParam[decimalStr]" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResponse.swift new file mode 100755 index 000000000..bf58628b1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeepObjectQueryParamsObjectResponse { + case empty + case res(Operations.DeepObjectQueryParamsObjectRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.DeepObjectQueryParamsObjectRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeleteResourceRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeleteResourceRequest.swift new file mode 100755 index 000000000..6eb37e7d4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeleteResourceRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DeleteResourceRequest: APIValue { + public let resourceId: String + + /// Creates a request model with the specified parameters + /// + /// + public init(resourceId: String) { + self.resourceId = resourceId + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeleteResourceResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeleteResourceResponse.swift new file mode 100755 index 000000000..bcac488a8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeleteResourceResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeleteResourceResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedFieldInSchemaPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedFieldInSchemaPostResponse.swift new file mode 100755 index 000000000..bddfc10e3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedFieldInSchemaPostResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeprecatedFieldInSchemaPostResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.swift new file mode 100755 index 000000000..2761eec30 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A successful response that contains a deprecatedObject sent in the request body + public struct DeprecatedObjectInSchemaGet200ApplicationJSON { + + @available(*, deprecated, message: "This object is deprecated") + public let json: Shared.DeprecatedObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter json: + /// + @available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.") + public init(json: Shared.DeprecatedObject? = nil) { + self.json = json + } + } +} + +extension Operations.DeprecatedObjectInSchemaGet200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGetResponse.swift new file mode 100755 index 000000000..59e64eb9f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeprecatedObjectInSchemaGetResponse { + case empty + case deprecatedObjectInSchemaGet200ApplicationJSONObject(Operations.DeprecatedObjectInSchemaGet200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func deprecatedObjectInSchemaGet200ApplicationJSONObject() throws -> Operations.DeprecatedObjectInSchemaGet200ApplicationJSON { + guard case .deprecatedObjectInSchemaGet200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetRequest.swift new file mode 100755 index 000000000..d69c308b3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetRequest.swift @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DeprecatedOperationNoCommentsGetRequest: APIValue { + + @available(*, deprecated, message: "This will be removed in a future release, please migrate away from it as soon as possible") + public let deprecatedParameter: String? + + /// Creates a request model with the specified parameters + /// + /// - Parameter deprecatedParameter: + /// + @available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.") + public init(deprecatedParameter: String? = nil) { + self.deprecatedParameter = deprecatedParameter + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetResponse.swift new file mode 100755 index 000000000..2d6e4e92d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeprecatedOperationNoCommentsGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetRequest.swift new file mode 100755 index 000000000..9b5b866af --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetRequest.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DeprecatedOperationWithCommentsGetRequest: APIValue { + /// This is a string parameter + @available(*, deprecated, renamed: "newParameter", message: "This parameter is deprecated") + public let deprecatedParameter: String? + /// This is a string parameter + public let newParameter: String? + + /// Creates a request model with the specified parameters + /// + /// - Parameter deprecatedParameter: This is a string parameter + /// - Parameter newParameter: This is a string parameter + /// + @available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.") + public init(deprecatedParameter: String? = nil, newParameter: String? = nil) { + self.deprecatedParameter = deprecatedParameter + self.newParameter = newParameter + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetResponse.swift new file mode 100755 index 000000000..d3e34e8cc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DeprecatedOperationWithCommentsGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamDuplicateParamResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamDuplicateParamResponse.swift new file mode 100755 index 000000000..97da46bdc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamDuplicateParamResponse.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct DuplicateParamDuplicateParamResponse { + public let url: String? + + /// Creates an object with the specified parameters + /// + /// + public init(url: String? = nil) { + self.url = url + } + } +} + +extension Operations.DuplicateParamDuplicateParamResponse: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamRequest.swift new file mode 100755 index 000000000..ce6f3baf5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct DuplicateParamRequest: APIValue { + public let duplicateParamRequest: String + + /// Creates a request model with the specified parameters + /// + /// + public init(duplicateParamRequest: String) { + self.duplicateParamRequest = duplicateParamRequest + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamResponse.swift new file mode 100755 index 000000000..7ca0a1214 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/DuplicateParamResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum DuplicateParamResponse { + case empty + case duplicateParamResponse(Operations.DuplicateParamDuplicateParamResponse) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func duplicateParamResponse() throws -> Operations.DuplicateParamDuplicateParamResponse { + guard case .duplicateParamResponse(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyObjectGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyObjectGetRequest.swift new file mode 100755 index 000000000..7977720da --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyObjectGetRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct EmptyObjectGetRequest: APIValue { + public let emptyObject: Shared.EmptyObjectParam + + /// Creates a request model with the specified parameters + /// + /// + public init(emptyObject: Shared.EmptyObjectParam) { + self.emptyObject = emptyObject + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyObjectGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyObjectGetResponse.swift new file mode 100755 index 000000000..cbd9aa3c3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyObjectGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum EmptyObjectGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.swift new file mode 100755 index 000000000..c0aac8e2b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct EmptyResponseObjectWithCommentGet200ApplicationOctetStream { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.EmptyResponseObjectWithCommentGet200ApplicationOctetStream: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGetResponse.swift new file mode 100755 index 000000000..b44e48b82 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum EmptyResponseObjectWithCommentGetResponse { + case empty + case body(Data) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func body() throws -> Data { + guard case .body(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FlattenedTypedObjectPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FlattenedTypedObjectPostRes.swift new file mode 100755 index 000000000..6daf0a69f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FlattenedTypedObjectPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FlattenedTypedObjectPostRes { + public let json: Shared.FlattenedTypedObject1 + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.FlattenedTypedObject1) { + self.json = json + } + } +} + +extension Operations.FlattenedTypedObjectPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FlattenedTypedObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FlattenedTypedObjectPostResponse.swift new file mode 100755 index 000000000..0ffb6768e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FlattenedTypedObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FlattenedTypedObjectPostResponse { + case empty + case res(Operations.FlattenedTypedObjectPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FlattenedTypedObjectPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayRequest.swift new file mode 100755 index 000000000..26639dcfb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct FormQueryParamsArrayRequest: APIValue { + public let arrParam: [String]? + public let arrParamExploded: [Int]? + + /// Creates a request model with the specified parameters + /// + /// + public init(arrParam: [String]? = nil, arrParamExploded: [Int]? = nil) { + self.arrParam = arrParam + self.arrParamExploded = arrParamExploded + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayRes.swift new file mode 100755 index 000000000..408d09f9a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FormQueryParamsArrayRes { + public let args: Operations.FormQueryParamsArrayResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.FormQueryParamsArrayResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.FormQueryParamsArrayRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayResArgs.swift new file mode 100755 index 000000000..2fc80e9ce --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayResArgs.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct FormQueryParamsArrayResArgs { + public let arrParam: String + public let arrParamExploded: [String] + + /// Creates an object with the specified parameters + /// + /// + public init(arrParam: String, arrParamExploded: [String]) { + self.arrParam = arrParam + self.arrParamExploded = arrParamExploded + } + } +} + +extension Operations.FormQueryParamsArrayResArgs: Codable { + enum CodingKeys: String, CodingKey { + case arrParam + case arrParamExploded + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayResponse.swift new file mode 100755 index 000000000..ea0871566 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FormQueryParamsArrayResponse { + case empty + case res(Operations.FormQueryParamsArrayRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FormQueryParamsArrayRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParam.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParam.swift new file mode 100755 index 000000000..d05e0f320 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParam.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + + public struct FormQueryParamsCamelObjectObjParam: APIValue { + public let encodedCount: String? + public let encodedTerm: String? + + /// Creates an object with the specified parameters + /// + /// + public init(encodedCount: String? = nil, encodedTerm: String? = nil) { + self.encodedCount = encodedCount + self.encodedTerm = encodedTerm + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParamExploded.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParamExploded.swift new file mode 100755 index 000000000..7ae7984d8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParamExploded.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + + public struct FormQueryParamsCamelObjectObjParamExploded: APIValue { + public let itemCount: String? + public let searchTerm: String? + + /// Creates an object with the specified parameters + /// + /// + public init(itemCount: String? = nil, searchTerm: String? = nil) { + self.itemCount = itemCount + self.searchTerm = searchTerm + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRequest.swift new file mode 100755 index 000000000..91a8c7650 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct FormQueryParamsCamelObjectRequest: APIValue { + public let objParamExploded: Operations.FormQueryParamsCamelObjectObjParamExploded + public let objParam: Operations.FormQueryParamsCamelObjectObjParam? + + /// Creates a request model with the specified parameters + /// + /// + public init(objParamExploded: Operations.FormQueryParamsCamelObjectObjParamExploded, objParam: Operations.FormQueryParamsCamelObjectObjParam? = nil) { + self.objParamExploded = objParamExploded + self.objParam = objParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRes.swift new file mode 100755 index 000000000..de9b326e9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FormQueryParamsCamelObjectRes { + public let args: Operations.FormQueryParamsCamelObjectResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.FormQueryParamsCamelObjectResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.FormQueryParamsCamelObjectRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResArgs.swift new file mode 100755 index 000000000..2854e607f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResArgs.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct FormQueryParamsCamelObjectResArgs { + public let itemCount: String + public let searchTerm: String + + /// Creates an object with the specified parameters + /// + /// + public init(itemCount: String, searchTerm: String) { + self.itemCount = itemCount + self.searchTerm = searchTerm + } + } +} + +extension Operations.FormQueryParamsCamelObjectResArgs: Codable { + enum CodingKeys: String, CodingKey { + case itemCount = "item_count" + case searchTerm = "search_term" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResponse.swift new file mode 100755 index 000000000..990909b07 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FormQueryParamsCamelObjectResponse { + case empty + case res(Operations.FormQueryParamsCamelObjectRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FormQueryParamsCamelObjectRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapRequest.swift new file mode 100755 index 000000000..a023b29c9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct FormQueryParamsMapRequest: APIValue { + public let mapParam: [String: String]? + public let mapParamExploded: [String: Int]? + + /// Creates a request model with the specified parameters + /// + /// + public init(mapParam: [String: String]? = nil, mapParamExploded: [String: Int]? = nil) { + self.mapParam = mapParam + self.mapParamExploded = mapParamExploded + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapRes.swift new file mode 100755 index 000000000..51cf80cdd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FormQueryParamsMapRes { + public let args: [String: String] + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String], url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.FormQueryParamsMapRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapResponse.swift new file mode 100755 index 000000000..c87c1cab0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsMapResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FormQueryParamsMapResponse { + case empty + case res(Operations.FormQueryParamsMapRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FormQueryParamsMapRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectRequest.swift new file mode 100755 index 000000000..714b8afc3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectRequest.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct FormQueryParamsObjectRequest: APIValue { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objParamExploded: Shared.SimpleObject + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objParam: Shared.SimpleObject? + + /// Creates a request model with the specified parameters + /// + /// - Parameter objParamExploded: A simple object that uses all our supported primitive types and enums and has optional properties. + /// - Parameter objParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(objParamExploded: Shared.SimpleObject, objParam: Shared.SimpleObject? = nil) { + self.objParamExploded = objParamExploded + self.objParam = objParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectRes.swift new file mode 100755 index 000000000..7a2b89fef --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FormQueryParamsObjectRes { + public let args: Operations.FormQueryParamsObjectResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.FormQueryParamsObjectResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.FormQueryParamsObjectRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectResArgs.swift new file mode 100755 index 000000000..dbed7f6fc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectResArgs.swift @@ -0,0 +1,84 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct FormQueryParamsObjectResArgs { + public let any: String + public let bool: String + public let date: String + public let dateTime: String + public let `enum`: String + public let float32: String + public let int: String + public let int32: String + public let int32Enum: String + public let intEnum: String + public let num: String + public let objParam: String + public let str: String + public let bigint: String? + public let bigintStr: String? + public let boolOpt: String? + public let decimal: String? + public let decimalStr: String? + public let intOptNull: String? + public let numOptNull: String? + public let strOpt: String? + + /// Creates an object with the specified parameters + /// + /// + public init(any: String, bool: String, date: String, dateTime: String, `enum`: String, float32: String, int: String, int32: String, int32Enum: String, intEnum: String, num: String, objParam: String, str: String, bigint: String? = nil, bigintStr: String? = nil, boolOpt: String? = nil, decimal: String? = nil, decimalStr: String? = nil, intOptNull: String? = nil, numOptNull: String? = nil, strOpt: String? = nil) { + self.any = any + self.bool = bool + self.date = date + self.dateTime = dateTime + self.`enum` = `enum` + self.float32 = float32 + self.int = int + self.int32 = int32 + self.int32Enum = int32Enum + self.intEnum = intEnum + self.num = num + self.objParam = objParam + self.str = str + self.bigint = bigint + self.bigintStr = bigintStr + self.boolOpt = boolOpt + self.decimal = decimal + self.decimalStr = decimalStr + self.intOptNull = intOptNull + self.numOptNull = numOptNull + self.strOpt = strOpt + } + } +} + +extension Operations.FormQueryParamsObjectResArgs: Codable { + enum CodingKeys: String, CodingKey { + case any + case bool + case date + case dateTime + case `enum` = "enum" + case float32 + case int + case int32 + case int32Enum + case intEnum + case num + case objParam + case str + case bigint + case bigintStr + case boolOpt + case decimal + case decimalStr + case intOptNull + case numOptNull + case strOpt + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectResponse.swift new file mode 100755 index 000000000..5e36331e0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FormQueryParamsObjectResponse { + case empty + case res(Operations.FormQueryParamsObjectRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FormQueryParamsObjectRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRequest.swift new file mode 100755 index 000000000..6d8d28284 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRequest.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct FormQueryParamsPrimitiveRequest: APIValue { + public let boolParam: Bool + public let intParam: Int + @DecimalSerialized + public private(set) var numParam: Double + public let strParam: String + + /// Creates a request model with the specified parameters + /// + /// + public init(boolParam: Bool, intParam: Int, numParam: Double, strParam: String) { + self.boolParam = boolParam + self.intParam = intParam + self._numParam = DecimalSerialized(wrappedValue: numParam) + self.strParam = strParam + } + } +} +extension Operations.FormQueryParamsPrimitiveRequest { + var numParamWrapper: DecimalSerialized { + return _numParam + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRes.swift new file mode 100755 index 000000000..df6238c3f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FormQueryParamsPrimitiveRes { + public let args: Operations.FormQueryParamsPrimitiveResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.FormQueryParamsPrimitiveResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.FormQueryParamsPrimitiveRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResArgs.swift new file mode 100755 index 000000000..b91e0d0dc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResArgs.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct FormQueryParamsPrimitiveResArgs { + public let boolParam: String + public let intParam: String + public let numParam: String + public let strParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(boolParam: String, intParam: String, numParam: String, strParam: String) { + self.boolParam = boolParam + self.intParam = intParam + self.numParam = numParam + self.strParam = strParam + } + } +} + +extension Operations.FormQueryParamsPrimitiveResArgs: Codable { + enum CodingKeys: String, CodingKey { + case boolParam + case intParam + case numParam + case strParam + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResponse.swift new file mode 100755 index 000000000..000318e35 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FormQueryParamsPrimitiveResponse { + case empty + case res(Operations.FormQueryParamsPrimitiveRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FormQueryParamsPrimitiveRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRequest.swift new file mode 100755 index 000000000..ccece8bfe --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct FormQueryParamsRefParamObjectRequest: APIValue { + public let refObjParam: Shared.RefQueryParamObj? + public let refObjParamExploded: Shared.RefQueryParamObjExploded? + + /// Creates a request model with the specified parameters + /// + /// + public init(refObjParam: Shared.RefQueryParamObj? = nil, refObjParamExploded: Shared.RefQueryParamObjExploded? = nil) { + self.refObjParam = refObjParam + self.refObjParamExploded = refObjParamExploded + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRes.swift new file mode 100755 index 000000000..5df405708 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct FormQueryParamsRefParamObjectRes { + public let args: Operations.FormQueryParamsRefParamObjectResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.FormQueryParamsRefParamObjectResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.FormQueryParamsRefParamObjectRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResArgs.swift new file mode 100755 index 000000000..c07b32f62 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResArgs.swift @@ -0,0 +1,36 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct FormQueryParamsRefParamObjectResArgs { + public let bool: String + public let int: String + public let num: String + public let refObjParam: String + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: String, int: String, num: String, refObjParam: String, str: String) { + self.bool = bool + self.int = int + self.num = num + self.refObjParam = refObjParam + self.str = str + } + } +} + +extension Operations.FormQueryParamsRefParamObjectResArgs: Codable { + enum CodingKeys: String, CodingKey { + case bool + case int + case num + case refObjParam + case str + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResponse.swift new file mode 100755 index 000000000..6aabc5984 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum FormQueryParamsRefParamObjectResponse { + case empty + case res(Operations.FormQueryParamsRefParamObjectRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.FormQueryParamsRefParamObjectRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GetDocumentationPerLanguageRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GetDocumentationPerLanguageRequest.swift new file mode 100755 index 000000000..15a0343b8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GetDocumentationPerLanguageRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct GetDocumentationPerLanguageRequest: APIValue { + /// The language parameter for this endpoint. + public let language: String + + /// Creates a request model with the specified parameters + /// + /// - Parameter language: The language parameter for this endpoint. + /// + public init(language: String) { + self.language = language + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GetDocumentationPerLanguageResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GetDocumentationPerLanguageResponse.swift new file mode 100755 index 000000000..d26ca946b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GetDocumentationPerLanguageResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GetDocumentationPerLanguageResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GetGlobalNameOverride200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GetGlobalNameOverride200ApplicationJSON.swift new file mode 100755 index 000000000..7ce4ca4a0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GetGlobalNameOverride200ApplicationJSON.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A successful response that contains the simpleObject sent in the request body + public struct GetGlobalNameOverride200ApplicationJSON { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject? = nil) { + self.json = json + } + } +} + +extension Operations.GetGlobalNameOverride200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GetGlobalNameOverrideResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GetGlobalNameOverrideResponse.swift new file mode 100755 index 000000000..1ad8fbdb8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GetGlobalNameOverrideResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GetGlobalNameOverrideResponse { + case empty + case getGlobalNameOverride200ApplicationJSONObject(Operations.GetGlobalNameOverride200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func getGlobalNameOverride200ApplicationJSONObject() throws -> Operations.GetGlobalNameOverride200ApplicationJSON { + guard case .getGlobalNameOverride200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GetResourceRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GetResourceRequest.swift new file mode 100755 index 000000000..ec6ae4b01 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GetResourceRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct GetResourceRequest: APIValue { + public let resourceId: String + + /// Creates a request model with the specified parameters + /// + /// + public init(resourceId: String) { + self.resourceId = resourceId + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GetResourceResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GetResourceResponse.swift new file mode 100755 index 000000000..b002c90b9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GetResourceResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GetResourceResponse { + case empty + case exampleResource(Shared.ExampleResource) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func exampleResource() throws -> Shared.ExampleResource { + guard case .exampleResource(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalBearerAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalBearerAuthResponse.swift new file mode 100755 index 000000000..ea4ff882d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalBearerAuthResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GlobalBearerAuthResponse { + case empty + case token(Operations.GlobalBearerAuthToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.GlobalBearerAuthToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalBearerAuthToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalBearerAuthToken.swift new file mode 100755 index 000000000..41f2e31e6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalBearerAuthToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct GlobalBearerAuthToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.GlobalBearerAuthToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetRequest.swift new file mode 100755 index 000000000..cfad0161b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct GlobalPathParameterGetRequest: APIValue { + public let globalPathParam: Int? + + /// Creates a request model with the specified parameters + /// + /// + public init(globalPathParam: Int? = nil) { + self.globalPathParam = globalPathParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetRes.swift new file mode 100755 index 000000000..e6ad88ba1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct GlobalPathParameterGetRes { + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(url: String) { + self.url = url + } + } +} + +extension Operations.GlobalPathParameterGetRes: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetResponse.swift new file mode 100755 index 000000000..511617945 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalPathParameterGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GlobalPathParameterGetResponse { + case empty + case res(Operations.GlobalPathParameterGetRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.GlobalPathParameterGetRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRequest.swift new file mode 100755 index 000000000..6e0078a3b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct GlobalsQueryParameterGetRequest: APIValue { + public let globalQueryParam: String? + + /// Creates a request model with the specified parameters + /// + /// + public init(globalQueryParam: String? = nil) { + self.globalQueryParam = globalQueryParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRes.swift new file mode 100755 index 000000000..a1796b95f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct GlobalsQueryParameterGetRes { + public let args: Operations.GlobalsQueryParameterGetResArgs + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.GlobalsQueryParameterGetResArgs) { + self.args = args + } + } +} + +extension Operations.GlobalsQueryParameterGetRes: Codable { + enum CodingKeys: String, CodingKey { + case args + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResArgs.swift new file mode 100755 index 000000000..f8d07ce4e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResArgs.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct GlobalsQueryParameterGetResArgs { + public let globalQueryParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(globalQueryParam: String) { + self.globalQueryParam = globalQueryParam + } + } +} + +extension Operations.GlobalsQueryParameterGetResArgs: Codable { + enum CodingKeys: String, CodingKey { + case globalQueryParam + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResponse.swift new file mode 100755 index 000000000..f8dc3696f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GlobalsQueryParameterGetResponse { + case empty + case res(Operations.GlobalsQueryParameterGetRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.GlobalsQueryParameterGetRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GroupFirstGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GroupFirstGetResponse.swift new file mode 100755 index 000000000..33eaecacd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GroupFirstGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GroupFirstGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/GroupSecondGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/GroupSecondGetResponse.swift new file mode 100755 index 000000000..96c4f7015 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/GroupSecondGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum GroupSecondGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayRequest.swift new file mode 100755 index 000000000..855107fc3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct HeaderParamsArrayRequest: APIValue { + public let xHeaderArray: [String] + + /// Creates a request model with the specified parameters + /// + /// + public init(xHeaderArray: [String]) { + self.xHeaderArray = xHeaderArray + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayRes.swift new file mode 100755 index 000000000..8394ed2e9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct HeaderParamsArrayRes { + public let headers: Operations.HeaderParamsArrayResHeaders + + /// Creates an object with the specified parameters + /// + /// + public init(headers: Operations.HeaderParamsArrayResHeaders) { + self.headers = headers + } + } +} + +extension Operations.HeaderParamsArrayRes: Codable { + enum CodingKeys: String, CodingKey { + case headers + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayResHeaders.swift new file mode 100755 index 000000000..09ace8515 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayResHeaders.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct HeaderParamsArrayResHeaders { + public let xHeaderArray: String + + /// Creates an object with the specified parameters + /// + /// + public init(xHeaderArray: String) { + self.xHeaderArray = xHeaderArray + } + } +} + +extension Operations.HeaderParamsArrayResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case xHeaderArray = "X-Header-Array" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayResponse.swift new file mode 100755 index 000000000..cefbe1b1a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum HeaderParamsArrayResponse { + case empty + case res(Operations.HeaderParamsArrayRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.HeaderParamsArrayRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapRequest.swift new file mode 100755 index 000000000..25e63b4b0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct HeaderParamsMapRequest: APIValue { + public let xHeaderMap: [String: String] + public let xHeaderMapExplode: [String: String] + + /// Creates a request model with the specified parameters + /// + /// + public init(xHeaderMap: [String: String], xHeaderMapExplode: [String: String]) { + self.xHeaderMap = xHeaderMap + self.xHeaderMapExplode = xHeaderMapExplode + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapRes.swift new file mode 100755 index 000000000..9fbe45d3a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct HeaderParamsMapRes { + public let headers: Operations.HeaderParamsMapResHeaders + + /// Creates an object with the specified parameters + /// + /// + public init(headers: Operations.HeaderParamsMapResHeaders) { + self.headers = headers + } + } +} + +extension Operations.HeaderParamsMapRes: Codable { + enum CodingKeys: String, CodingKey { + case headers + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapResHeaders.swift new file mode 100755 index 000000000..bcbdf40c5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapResHeaders.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct HeaderParamsMapResHeaders { + public let xHeaderMap: String + public let xHeaderMapExplode: String + + /// Creates an object with the specified parameters + /// + /// + public init(xHeaderMap: String, xHeaderMapExplode: String) { + self.xHeaderMap = xHeaderMap + self.xHeaderMapExplode = xHeaderMapExplode + } + } +} + +extension Operations.HeaderParamsMapResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case xHeaderMap = "X-Header-Map" + case xHeaderMapExplode = "X-Header-Map-Explode" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapResponse.swift new file mode 100755 index 000000000..2e06108ca --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsMapResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum HeaderParamsMapResponse { + case empty + case res(Operations.HeaderParamsMapRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.HeaderParamsMapRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectRequest.swift new file mode 100755 index 000000000..44218707a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectRequest.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct HeaderParamsObjectRequest: APIValue { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let xHeaderObj: Shared.SimpleObject + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let xHeaderObjExplode: Shared.SimpleObject + + /// Creates a request model with the specified parameters + /// + /// - Parameter xHeaderObj: A simple object that uses all our supported primitive types and enums and has optional properties. + /// - Parameter xHeaderObjExplode: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(xHeaderObj: Shared.SimpleObject, xHeaderObjExplode: Shared.SimpleObject) { + self.xHeaderObj = xHeaderObj + self.xHeaderObjExplode = xHeaderObjExplode + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectRes.swift new file mode 100755 index 000000000..2f67e20dc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct HeaderParamsObjectRes { + public let headers: Operations.HeaderParamsObjectResHeaders + + /// Creates an object with the specified parameters + /// + /// + public init(headers: Operations.HeaderParamsObjectResHeaders) { + self.headers = headers + } + } +} + +extension Operations.HeaderParamsObjectRes: Codable { + enum CodingKeys: String, CodingKey { + case headers + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectResHeaders.swift new file mode 100755 index 000000000..a5bd00001 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectResHeaders.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct HeaderParamsObjectResHeaders { + public let xHeaderObj: String + public let xHeaderObjExplode: String + + /// Creates an object with the specified parameters + /// + /// + public init(xHeaderObj: String, xHeaderObjExplode: String) { + self.xHeaderObj = xHeaderObj + self.xHeaderObjExplode = xHeaderObjExplode + } + } +} + +extension Operations.HeaderParamsObjectResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case xHeaderObj = "X-Header-Obj" + case xHeaderObjExplode = "X-Header-Obj-Explode" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectResponse.swift new file mode 100755 index 000000000..5c6ed098b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum HeaderParamsObjectResponse { + case empty + case res(Operations.HeaderParamsObjectRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.HeaderParamsObjectRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRequest.swift new file mode 100755 index 000000000..ba5bd9ed9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRequest.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct HeaderParamsPrimitiveRequest: APIValue { + public let xHeaderBoolean: Bool + public let xHeaderInteger: Int + @DecimalSerialized + public private(set) var xHeaderNumber: Double + public let xHeaderString: String + + /// Creates a request model with the specified parameters + /// + /// + public init(xHeaderBoolean: Bool, xHeaderInteger: Int, xHeaderNumber: Double, xHeaderString: String) { + self.xHeaderBoolean = xHeaderBoolean + self.xHeaderInteger = xHeaderInteger + self._xHeaderNumber = DecimalSerialized(wrappedValue: xHeaderNumber) + self.xHeaderString = xHeaderString + } + } +} +extension Operations.HeaderParamsPrimitiveRequest { + var xHeaderNumberWrapper: DecimalSerialized { + return _xHeaderNumber + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRes.swift new file mode 100755 index 000000000..9b635a157 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct HeaderParamsPrimitiveRes { + public let headers: Operations.HeaderParamsPrimitiveResHeaders + + /// Creates an object with the specified parameters + /// + /// + public init(headers: Operations.HeaderParamsPrimitiveResHeaders) { + self.headers = headers + } + } +} + +extension Operations.HeaderParamsPrimitiveRes: Codable { + enum CodingKeys: String, CodingKey { + case headers + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResHeaders.swift new file mode 100755 index 000000000..fc8488c2a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResHeaders.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct HeaderParamsPrimitiveResHeaders { + public let xHeaderBoolean: String + public let xHeaderInteger: String + public let xHeaderNumber: String + public let xHeaderString: String + + /// Creates an object with the specified parameters + /// + /// + public init(xHeaderBoolean: String, xHeaderInteger: String, xHeaderNumber: String, xHeaderString: String) { + self.xHeaderBoolean = xHeaderBoolean + self.xHeaderInteger = xHeaderInteger + self.xHeaderNumber = xHeaderNumber + self.xHeaderString = xHeaderString + } + } +} + +extension Operations.HeaderParamsPrimitiveResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case xHeaderBoolean = "X-Header-Boolean" + case xHeaderInteger = "X-Header-Integer" + case xHeaderNumber = "X-Header-Number" + case xHeaderString = "X-Header-String" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResponse.swift new file mode 100755 index 000000000..d549b1ba4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum HeaderParamsPrimitiveResponse { + case empty + case res(Operations.HeaderParamsPrimitiveRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.HeaderParamsPrimitiveRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoredGenerationGet200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoredGenerationGet200ApplicationJSON.swift new file mode 100755 index 000000000..e93ae3393 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoredGenerationGet200ApplicationJSON.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A successful response that contains the simpleObject sent in the request body + public struct IgnoredGenerationGet200ApplicationJSON { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject? = nil) { + self.json = json + } + } +} + +extension Operations.IgnoredGenerationGet200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoredGenerationGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoredGenerationGetResponse.swift new file mode 100755 index 000000000..75d636d18 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoredGenerationGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum IgnoredGenerationGetResponse { + case empty + case ignoredGenerationGet200ApplicationJSONObject(Operations.IgnoredGenerationGet200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func ignoredGenerationGet200ApplicationJSONObject() throws -> Operations.IgnoredGenerationGet200ApplicationJSON { + guard case .ignoredGenerationGet200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostApplicationJSON.swift new file mode 100755 index 000000000..be0b66634 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct IgnoresPostApplicationJSON { + public let callbackUrl: String? + public let testProp: String? + + /// Creates an object with the specified parameters + /// + /// + public init(callbackUrl: String? = nil, testProp: String? = nil) { + self.callbackUrl = callbackUrl + self.testProp = testProp + } + } +} + +extension Operations.IgnoresPostApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case callbackUrl + case testProp + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostRequest.swift new file mode 100755 index 000000000..af987968e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct IgnoresPostRequest: APIValue { + public let requestBody: Operations.IgnoresPostApplicationJSON + public let testParam: String? + + /// Creates a request model with the specified parameters + /// + /// + public init(requestBody: Operations.IgnoresPostApplicationJSON, testParam: String? = nil) { + self.requestBody = requestBody + self.testParam = testParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostResponse.swift new file mode 100755 index 000000000..c6d7c777e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/IgnoresPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum IgnoresPostResponse { + case empty + case httpBinSimpleJsonObject(Shared.HttpBinSimpleJsonObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func httpBinSimpleJsonObject() throws -> Shared.HttpBinSimpleJsonObject { + guard case .httpBinSimpleJsonObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequest.swift new file mode 100755 index 000000000..d5021580e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct InlineBodyAndParamConflictRequest: APIValue { + public let requestBody: Operations.InlineBodyAndParamConflictRequestBody + public let str: String + + /// Creates a request model with the specified parameters + /// + /// + public init(requestBody: Operations.InlineBodyAndParamConflictRequestBody, str: String) { + self.requestBody = requestBody + self.str = str + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequestBody.swift new file mode 100755 index 000000000..b5395a0c3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequestBody.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct InlineBodyAndParamConflictRequestBody { + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(str: String) { + self.str = str + } + } +} + +extension Operations.InlineBodyAndParamConflictRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case str + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRes.swift new file mode 100755 index 000000000..5382e881f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct InlineBodyAndParamConflictRes { + public let args: [String: String] + public let json: Operations.InlineBodyAndParamConflictResJson + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String], json: Operations.InlineBodyAndParamConflictResJson) { + self.args = args + self.json = json + } + } +} + +extension Operations.InlineBodyAndParamConflictRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResJson.swift new file mode 100755 index 000000000..546b88533 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResJson.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct InlineBodyAndParamConflictResJson { + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(str: String) { + self.str = str + } + } +} + +extension Operations.InlineBodyAndParamConflictResJson: Codable { + enum CodingKeys: String, CodingKey { + case str + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResponse.swift new file mode 100755 index 000000000..08287112e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum InlineBodyAndParamConflictResponse { + case empty + case res(Operations.InlineBodyAndParamConflictRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.InlineBodyAndParamConflictRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequest.swift new file mode 100755 index 000000000..c43c9df4a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct InlineBodyAndParamNoConflictRequest: APIValue { + public let paramStr: String + public let requestBody: Operations.InlineBodyAndParamNoConflictRequestBody + + /// Creates a request model with the specified parameters + /// + /// + public init(paramStr: String, requestBody: Operations.InlineBodyAndParamNoConflictRequestBody) { + self.paramStr = paramStr + self.requestBody = requestBody + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequestBody.swift new file mode 100755 index 000000000..d70082627 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequestBody.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct InlineBodyAndParamNoConflictRequestBody { + public let bodyStr: String + + /// Creates an object with the specified parameters + /// + /// + public init(bodyStr: String) { + self.bodyStr = bodyStr + } + } +} + +extension Operations.InlineBodyAndParamNoConflictRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case bodyStr + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRes.swift new file mode 100755 index 000000000..461fff539 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct InlineBodyAndParamNoConflictRes { + public let args: [String: String] + public let json: Operations.InlineBodyAndParamNoConflictResJson + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String], json: Operations.InlineBodyAndParamNoConflictResJson) { + self.args = args + self.json = json + } + } +} + +extension Operations.InlineBodyAndParamNoConflictRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResJson.swift new file mode 100755 index 000000000..859f4daa8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResJson.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct InlineBodyAndParamNoConflictResJson { + public let bodyStr: String + + /// Creates an object with the specified parameters + /// + /// + public init(bodyStr: String) { + self.bodyStr = bodyStr + } + } +} + +extension Operations.InlineBodyAndParamNoConflictResJson: Codable { + enum CodingKeys: String, CodingKey { + case bodyStr + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResponse.swift new file mode 100755 index 000000000..96d06ad0e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum InlineBodyAndParamNoConflictResponse { + case empty + case res(Operations.InlineBodyAndParamNoConflictRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.InlineBodyAndParamNoConflictRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectRequest.swift new file mode 100755 index 000000000..35057548a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectRequest.swift @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct JsonQueryParamsObjectRequest: APIValue { + public let deepObjParam: Shared.DeepObject + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let simpleObjParam: Shared.SimpleObject + + /// Creates a request model with the specified parameters + /// + /// - Parameter simpleObjParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(deepObjParam: Shared.DeepObject, simpleObjParam: Shared.SimpleObject) { + self.deepObjParam = deepObjParam + self.simpleObjParam = simpleObjParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectRes.swift new file mode 100755 index 000000000..b2b24d914 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct JsonQueryParamsObjectRes { + public let args: Operations.JsonQueryParamsObjectResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.JsonQueryParamsObjectResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.JsonQueryParamsObjectRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectResArgs.swift new file mode 100755 index 000000000..d710f8075 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectResArgs.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct JsonQueryParamsObjectResArgs { + public let deepObjParam: String + public let simpleObjParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(deepObjParam: String, simpleObjParam: String) { + self.deepObjParam = deepObjParam + self.simpleObjParam = simpleObjParam + } + } +} + +extension Operations.JsonQueryParamsObjectResArgs: Codable { + enum CodingKeys: String, CodingKey { + case deepObjParam + case simpleObjParam + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectResponse.swift new file mode 100755 index 000000000..7036295d9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/JsonQueryParamsObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum JsonQueryParamsObjectResponse { + case empty + case res(Operations.JsonQueryParamsObjectRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.JsonQueryParamsObjectRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseRequest.swift new file mode 100755 index 000000000..cadbd1aad --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseRequest.swift @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct MixedParametersCamelCaseRequest: APIValue { + public let headerParam: String + public let pathParam: String + public let queryStringParam: String + + /// Creates a request model with the specified parameters + /// + /// + public init(headerParam: String, pathParam: String, queryStringParam: String) { + self.headerParam = headerParam + self.pathParam = pathParam + self.queryStringParam = queryStringParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseRes.swift new file mode 100755 index 000000000..9ba15b60e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseRes.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct MixedParametersCamelCaseRes { + public let args: Operations.MixedParametersCamelCaseResArgs + public let headers: Operations.MixedParametersCamelCaseResHeaders + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.MixedParametersCamelCaseResArgs, headers: Operations.MixedParametersCamelCaseResHeaders, url: String) { + self.args = args + self.headers = headers + self.url = url + } + } +} + +extension Operations.MixedParametersCamelCaseRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case headers + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResArgs.swift new file mode 100755 index 000000000..a285c3437 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResArgs.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct MixedParametersCamelCaseResArgs { + public let queryStringParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(queryStringParam: String) { + self.queryStringParam = queryStringParam + } + } +} + +extension Operations.MixedParametersCamelCaseResArgs: Codable { + enum CodingKeys: String, CodingKey { + case queryStringParam = "query_string_param" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResHeaders.swift new file mode 100755 index 000000000..a570adfe7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResHeaders.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct MixedParametersCamelCaseResHeaders { + public let headerParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(headerParam: String) { + self.headerParam = headerParam + } + } +} + +extension Operations.MixedParametersCamelCaseResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case headerParam = "Header-Param" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResponse.swift new file mode 100755 index 000000000..ade07474b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MixedParametersCamelCaseResponse { + case empty + case res(Operations.MixedParametersCamelCaseRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.MixedParametersCamelCaseRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesRequest.swift new file mode 100755 index 000000000..799075035 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesRequest.swift @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct MixedParametersPrimitivesRequest: APIValue { + public let headerParam: String + public let pathParam: String + public let queryStringParam: String + + /// Creates a request model with the specified parameters + /// + /// + public init(headerParam: String, pathParam: String, queryStringParam: String) { + self.headerParam = headerParam + self.pathParam = pathParam + self.queryStringParam = queryStringParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesRes.swift new file mode 100755 index 000000000..9acc57bd3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesRes.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct MixedParametersPrimitivesRes { + public let args: Operations.MixedParametersPrimitivesResArgs + public let headers: Operations.MixedParametersPrimitivesResHeaders + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.MixedParametersPrimitivesResArgs, headers: Operations.MixedParametersPrimitivesResHeaders, url: String) { + self.args = args + self.headers = headers + self.url = url + } + } +} + +extension Operations.MixedParametersPrimitivesRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case headers + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResArgs.swift new file mode 100755 index 000000000..c8555da12 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResArgs.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct MixedParametersPrimitivesResArgs { + public let queryStringParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(queryStringParam: String) { + self.queryStringParam = queryStringParam + } + } +} + +extension Operations.MixedParametersPrimitivesResArgs: Codable { + enum CodingKeys: String, CodingKey { + case queryStringParam + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResHeaders.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResHeaders.swift new file mode 100755 index 000000000..8c69e3793 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResHeaders.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct MixedParametersPrimitivesResHeaders { + public let headerparam: String + + /// Creates an object with the specified parameters + /// + /// + public init(headerparam: String) { + self.headerparam = headerparam + } + } +} + +extension Operations.MixedParametersPrimitivesResHeaders: Codable { + enum CodingKeys: String, CodingKey { + case headerparam = "Headerparam" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResponse.swift new file mode 100755 index 000000000..482ceeba0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedParametersPrimitivesResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MixedParametersPrimitivesResponse { + case empty + case res(Operations.MixedParametersPrimitivesRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.MixedParametersPrimitivesRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsRequest.swift new file mode 100755 index 000000000..cdfefdf18 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsRequest.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct MixedQueryParamsRequest: APIValue { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let deepObjectParam: Shared.SimpleObject + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let formParam: Shared.SimpleObject + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let jsonParam: Shared.SimpleObject + + /// Creates a request model with the specified parameters + /// + /// - Parameter deepObjectParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// - Parameter formParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// - Parameter jsonParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(deepObjectParam: Shared.SimpleObject, formParam: Shared.SimpleObject, jsonParam: Shared.SimpleObject) { + self.deepObjectParam = deepObjectParam + self.formParam = formParam + self.jsonParam = jsonParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsRes.swift new file mode 100755 index 000000000..a8a40e4db --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct MixedQueryParamsRes { + public let args: [String: String] + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String], url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.MixedQueryParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsResponse.swift new file mode 100755 index 000000000..6522c3c4e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedQueryParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MixedQueryParamsResponse { + case empty + case res(Operations.MixedQueryParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.MixedQueryParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostRequestBody.swift new file mode 100755 index 000000000..cc196ac55 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostRequestBody.swift @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum MixedTypeOneOfPostRequestBody { + case string(String) + case integer(Int) + case simpleObject(Shared.SimpleObject) + } +} + +extension Operations.MixedTypeOneOfPostRequestBody: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + case .simpleObject(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostRes.swift new file mode 100755 index 000000000..00b47032c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct MixedTypeOneOfPostRes { + public let json: Operations.MixedTypeOneOfPostResJson + + /// Creates an object with the specified parameters + /// + /// + public init(json: Operations.MixedTypeOneOfPostResJson) { + self.json = json + } + } +} + +extension Operations.MixedTypeOneOfPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostResJson.swift new file mode 100755 index 000000000..64045a1b3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostResJson.swift @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum MixedTypeOneOfPostResJson { + case string(String) + case integer(Int) + case simpleObject(Shared.SimpleObject) + } +} + +extension Operations.MixedTypeOneOfPostResJson: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + case .simpleObject(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostResponse.swift new file mode 100755 index 000000000..e0e51b482 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MixedTypeOneOfPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MixedTypeOneOfPostResponse { + case empty + case res(Operations.MixedTypeOneOfPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.MixedTypeOneOfPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthResponse.swift new file mode 100755 index 000000000..1842cdc4f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MultipleMixedOptionsAuthResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthSecurity.swift new file mode 100755 index 000000000..3cbc2574c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthSecurity.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes a set of authentication methods. + public enum MultipleMixedOptionsAuthSecurity { + /// HTTP basic authentication parameters + case basic(Shared.SchemeBasicAuth) + case apiKeyAuthNew(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthResponse.swift new file mode 100755 index 000000000..e3642ddb2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MultipleMixedSchemeAuthResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthSecurity.swift new file mode 100755 index 000000000..cf4a1e90d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthSecurity.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct MultipleMixedSchemeAuthSecurity { + public let apiKeyAuthNew: String + public let basicAuth: Shared.SchemeBasicAuth + + /// Creates a security model with the specified parameters + /// + /// + public init(apiKeyAuthNew: String, basicAuth: Shared.SchemeBasicAuth) { + self.apiKeyAuthNew = apiKeyAuthNew + self.basicAuth = basicAuth + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.swift new file mode 100755 index 000000000..443395be3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MultipleOptionsWithMixedSchemesAuthResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.swift new file mode 100755 index 000000000..0550a3ad6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes a set of authentication methods. + public enum MultipleOptionsWithMixedSchemesAuthSecurity { + case option1(Operations.MultipleOptionsWithMixedSchemesAuthSecurityOption1) + case option2(Operations.MultipleOptionsWithMixedSchemesAuthSecurityOption2) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.swift new file mode 100755 index 000000000..a2701c208 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct MultipleOptionsWithMixedSchemesAuthSecurityOption1 { + public let apiKeyAuthNew: String + public let oauth2: String + + /// Creates a security model with the specified parameters + /// + /// + public init(apiKeyAuthNew: String, oauth2: String) { + self.apiKeyAuthNew = apiKeyAuthNew + self.oauth2 = oauth2 + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.swift new file mode 100755 index 000000000..32ddb21b0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct MultipleOptionsWithMixedSchemesAuthSecurityOption2 { + public let apiKeyAuthNew: String + public let basicAuth: Shared.SchemeBasicAuth + + /// Creates a security model with the specified parameters + /// + /// + public init(apiKeyAuthNew: String, basicAuth: Shared.SchemeBasicAuth) { + self.apiKeyAuthNew = apiKeyAuthNew + self.basicAuth = basicAuth + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.swift new file mode 100755 index 000000000..646144844 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MultipleOptionsWithSimpleSchemesAuthResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.swift new file mode 100755 index 000000000..0d17ec632 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes a set of authentication methods. + public enum MultipleOptionsWithSimpleSchemesAuthSecurity { + case option1(Operations.MultipleOptionsWithSimpleSchemesAuthSecurityOption1) + case option2(Operations.MultipleOptionsWithSimpleSchemesAuthSecurityOption2) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.swift new file mode 100755 index 000000000..ec55f77a8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct MultipleOptionsWithSimpleSchemesAuthSecurityOption1 { + public let apiKeyAuthNew: String + public let oauth2: String + + /// Creates a security model with the specified parameters + /// + /// + public init(apiKeyAuthNew: String, oauth2: String) { + self.apiKeyAuthNew = apiKeyAuthNew + self.oauth2 = oauth2 + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.swift new file mode 100755 index 000000000..c8c3716b5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct MultipleOptionsWithSimpleSchemesAuthSecurityOption2 { + public let apiKeyAuthNew: String + public let openIdConnect: String + + /// Creates a security model with the specified parameters + /// + /// + public init(apiKeyAuthNew: String, openIdConnect: String) { + self.apiKeyAuthNew = apiKeyAuthNew + self.openIdConnect = openIdConnect + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthResponse.swift new file mode 100755 index 000000000..92d1061a1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MultipleSimpleOptionsAuthResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthSecurity.swift new file mode 100755 index 000000000..a0fbac31d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthSecurity.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes a set of authentication methods. + public enum MultipleSimpleOptionsAuthSecurity { + case apiKeyAuthNew(String) + case oauth2(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthResponse.swift new file mode 100755 index 000000000..932c237ca --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum MultipleSimpleSchemeAuthResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthSecurity.swift new file mode 100755 index 000000000..524b77c41 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthSecurity.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct MultipleSimpleSchemeAuthSecurity { + public let apiKeyAuthNew: String + public let oauth2: String + + /// Creates a security model with the specified parameters + /// + /// + public init(apiKeyAuthNew: String, oauth2: String) { + self.apiKeyAuthNew = apiKeyAuthNew + self.oauth2 = oauth2 + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetEnumNameOverride.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetEnumNameOverride.swift new file mode 100755 index 000000000..1c7675945 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetEnumNameOverride.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// An enum type + public enum NameOverrideGetEnumNameOverride: String, Codable, APIValue { + case value1 = "value1" + case value2 = "value2" + case value3 = "value3" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetRequest.swift new file mode 100755 index 000000000..159f85340 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetRequest.swift @@ -0,0 +1,21 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct NameOverrideGetRequest: APIValue { + /// An enum type + public let testEnumQueryParam: Operations.NameOverrideGetEnumNameOverride + public let testQueryParam: String + + /// Creates a request model with the specified parameters + /// + /// - Parameter testEnumQueryParam: An enum type + /// + public init(testEnumQueryParam: Operations.NameOverrideGetEnumNameOverride, testQueryParam: String) { + self.testEnumQueryParam = testEnumQueryParam + self.testQueryParam = testQueryParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetResponse.swift new file mode 100755 index 000000000..9753ce988 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NameOverrideGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NameOverrideGetResponse { + case empty + case overriddenResponse(Operations.OverriddenResponse) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func overriddenResponse() throws -> Operations.OverriddenResponse { + guard case .overriddenResponse(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NestFirstGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NestFirstGetResponse.swift new file mode 100755 index 000000000..83b9589c1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NestFirstGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NestFirstGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NestedFirstGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NestedFirstGetResponse.swift new file mode 100755 index 000000000..b820c9da0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NestedFirstGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NestedFirstGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NestedGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NestedGetResponse.swift new file mode 100755 index 000000000..8e20943d1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NestedGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NestedGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NestedSecondGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NestedSecondGetResponse.swift new file mode 100755 index 000000000..e4aed9e5e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NestedSecondGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NestedSecondGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableObjectPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableObjectPostRes.swift new file mode 100755 index 000000000..8cc3279c4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableObjectPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct NullableObjectPostRes { + public let json: Shared.NullableObject + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.NullableObject) { + self.json = json + } + } +} + +extension Operations.NullableObjectPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableObjectPostResponse.swift new file mode 100755 index 000000000..9648077d7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableObjectPostResponse { + case empty + case res(Operations.NullableObjectPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.NullableObjectPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostRes.swift new file mode 100755 index 000000000..aa2cd759f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct NullableOneOfRefInObjectPostRes { + public let json: Shared.NullableOneOfRefInObject + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.NullableOneOfRefInObject) { + self.json = json + } + } +} + +extension Operations.NullableOneOfRefInObjectPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostResponse.swift new file mode 100755 index 000000000..45ea9b902 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableOneOfRefInObjectPostResponse { + case empty + case res(Operations.NullableOneOfRefInObjectPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.NullableOneOfRefInObjectPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRequestBody.swift new file mode 100755 index 000000000..abee39321 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRequestBody.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum NullableOneOfSchemaPostRequestBody { + case typedObject1(Shared.TypedObject1) + case typedObject2(Shared.TypedObject2) + } +} + +extension Operations.NullableOneOfSchemaPostRequestBody: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else if let value = try? Shared.TypedObject2(from: decoder) { + self = .typedObject2(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + case .typedObject2(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRes.swift new file mode 100755 index 000000000..609fe7d30 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct NullableOneOfSchemaPostRes { + public let json: Operations.NullableOneOfSchemaPostResJson + + /// Creates an object with the specified parameters + /// + /// + public init(json: Operations.NullableOneOfSchemaPostResJson) { + self.json = json + } + } +} + +extension Operations.NullableOneOfSchemaPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResJson.swift new file mode 100755 index 000000000..f43af29bd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResJson.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum NullableOneOfSchemaPostResJson { + case typedObject1(Shared.TypedObject1) + case typedObject2(Shared.TypedObject2) + } +} + +extension Operations.NullableOneOfSchemaPostResJson: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else if let value = try? Shared.TypedObject2(from: decoder) { + self = .typedObject2(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + case .typedObject2(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResponse.swift new file mode 100755 index 000000000..b1d508ff3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableOneOfSchemaPostResponse { + case empty + case res(Operations.NullableOneOfSchemaPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.NullableOneOfSchemaPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostRes.swift new file mode 100755 index 000000000..66af19ef3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct NullableOneOfTypeInObjectPostRes { + public let json: Shared.NullableOneOfTypeInObject + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.NullableOneOfTypeInObject) { + self.json = json + } + } +} + +extension Operations.NullableOneOfTypeInObjectPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostResponse.swift new file mode 100755 index 000000000..95c518345 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableOneOfTypeInObjectPostResponse { + case empty + case res(Operations.NullableOneOfTypeInObjectPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.NullableOneOfTypeInObjectPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBody.swift new file mode 100755 index 000000000..3f824d75e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBody.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct NullableRequiredEmptyObjectPostRequestBody { + public let nullableRequiredObj: Operations.NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj + public let requiredObj: Operations.NullableRequiredEmptyObjectPostRequestBodyRequiredObj + public let nullableOptionalObj: Operations.NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj? + + /// Creates an object with the specified parameters + /// + /// + public init(nullableRequiredObj: Operations.NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj, requiredObj: Operations.NullableRequiredEmptyObjectPostRequestBodyRequiredObj, nullableOptionalObj: Operations.NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj? = nil) { + self.nullableRequiredObj = nullableRequiredObj + self.requiredObj = requiredObj + self.nullableOptionalObj = nullableOptionalObj + } + } +} + +extension Operations.NullableRequiredEmptyObjectPostRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case nullableRequiredObj = "NullableRequiredObj" + case requiredObj = "RequiredObj" + case nullableOptionalObj = "NullableOptionalObj" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.swift new file mode 100755 index 000000000..0ea72fe58 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.swift new file mode 100755 index 000000000..19245a118 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.swift new file mode 100755 index 000000000..9c7d24702 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct NullableRequiredEmptyObjectPostRequestBodyRequiredObj { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.NullableRequiredEmptyObjectPostRequestBodyRequiredObj: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostResponse.swift new file mode 100755 index 000000000..e796d8cbe --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableRequiredEmptyObjectPostResponse { + case empty + case nullableRequiredEmptyObjectPost200ApplicationJSONString(String) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func nullableRequiredEmptyObjectPost200ApplicationJSONString() throws -> String { + guard case .nullableRequiredEmptyObjectPost200ApplicationJSONString(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBody.swift new file mode 100755 index 000000000..1cbca3198 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBody.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct NullableRequiredPropertyPostRequestBody { + public let nullableRequiredArray: [Double] + public let nullableRequiredEnum: Operations.NullableRequiredPropertyPostRequestBodyNullableRequiredEnum + public let nullableRequiredInt: Int + public let nullableOptionalInt: Int? + + /// Creates an object with the specified parameters + /// + /// + public init(nullableRequiredArray: [Double], nullableRequiredEnum: Operations.NullableRequiredPropertyPostRequestBodyNullableRequiredEnum, nullableRequiredInt: Int, nullableOptionalInt: Int? = nil) { + self.nullableRequiredArray = nullableRequiredArray + self.nullableRequiredEnum = nullableRequiredEnum + self.nullableRequiredInt = nullableRequiredInt + self.nullableOptionalInt = nullableOptionalInt + } + } +} + +extension Operations.NullableRequiredPropertyPostRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case nullableRequiredArray = "NullableRequiredArray" + case nullableRequiredEnum = "NullableRequiredEnum" + case nullableRequiredInt = "NullableRequiredInt" + case nullableOptionalInt = "NullableOptionalInt" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.swift new file mode 100755 index 000000000..6cafb4b25 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + public enum NullableRequiredPropertyPostRequestBodyNullableRequiredEnum: String, Codable, APIValue { + case first = "first" + case second = "second" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostResponse.swift new file mode 100755 index 000000000..219882d63 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredPropertyPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableRequiredPropertyPostResponse { + case empty + case nullableRequiredPropertyPost200ApplicationJSONString(String) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func nullableRequiredPropertyPost200ApplicationJSONString() throws -> String { + guard case .nullableRequiredPropertyPost200ApplicationJSONString(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostRequestBody.swift new file mode 100755 index 000000000..175fbb846 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostRequestBody.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct NullableRequiredSharedObjectPostRequestBody { + public let nullableRequiredObj: Shared.NullableObject + public let nullableOptionalObj: Shared.NullableObject? + + /// Creates an object with the specified parameters + /// + /// + public init(nullableRequiredObj: Shared.NullableObject, nullableOptionalObj: Shared.NullableObject? = nil) { + self.nullableRequiredObj = nullableRequiredObj + self.nullableOptionalObj = nullableOptionalObj + } + } +} + +extension Operations.NullableRequiredSharedObjectPostRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case nullableRequiredObj = "NullableRequiredObj" + case nullableOptionalObj = "NullableOptionalObj" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostResponse.swift new file mode 100755 index 000000000..05ad3e9ed --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableRequiredSharedObjectPostResponse { + case empty + case nullableRequiredSharedObjectPost200ApplicationJSONString(String) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func nullableRequiredSharedObjectPost200ApplicationJSONString() throws -> String { + guard case .nullableRequiredSharedObjectPost200ApplicationJSONString(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableTypedObjectPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableTypedObjectPostRes.swift new file mode 100755 index 000000000..b75f2a908 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableTypedObjectPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct NullableTypedObjectPostRes { + public let json: Shared.TypedObject1 + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.TypedObject1) { + self.json = json + } + } +} + +extension Operations.NullableTypedObjectPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/NullableTypedObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableTypedObjectPostResponse.swift new file mode 100755 index 000000000..140782049 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/NullableTypedObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum NullableTypedObjectPostResponse { + case empty + case res(Operations.NullableTypedObjectPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.NullableTypedObjectPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthNewResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthNewResponse.swift new file mode 100755 index 000000000..6cc9f18e8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthNewResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum Oauth2AuthNewResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthNewSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthNewSecurity.swift new file mode 100755 index 000000000..3dd31b306 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthNewSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum Oauth2AuthNewSecurity { + case oauth2(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthResponse.swift new file mode 100755 index 000000000..3b5be6b0c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum Oauth2AuthResponse { + case empty + case token(Operations.Oauth2AuthToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.Oauth2AuthToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthSecurity.swift new file mode 100755 index 000000000..0ccac15ab --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum Oauth2AuthSecurity { + case oauth2(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthToken.swift new file mode 100755 index 000000000..2faf1ac06 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2AuthToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct Oauth2AuthToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.Oauth2AuthToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideRequest.swift new file mode 100755 index 000000000..2524a4454 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct Oauth2OverrideRequest { + + /// Creates a request model + /// + /// + public init() { + } + } +} + +extension Operations.Oauth2OverrideRequest: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideResponse.swift new file mode 100755 index 000000000..2590daa8a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum Oauth2OverrideResponse { + case empty + case token(Operations.Oauth2OverrideToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.Oauth2OverrideToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideSecurity.swift new file mode 100755 index 000000000..78b7412ad --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum Oauth2OverrideSecurity { + case oauth2(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideToken.swift new file mode 100755 index 000000000..a67cc43df --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/Oauth2OverrideToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct Oauth2OverrideToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.Oauth2OverrideToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ObjectCircularReferenceGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ObjectCircularReferenceGetResponse.swift new file mode 100755 index 000000000..8d0139616 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ObjectCircularReferenceGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ObjectCircularReferenceGetResponse { + case empty + case objectCircularReferenceObject(Shared.ObjectCircularReferenceObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func objectCircularReferenceObject() throws -> Shared.ObjectCircularReferenceObject { + guard case .objectCircularReferenceObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OneOfCircularReferenceGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OneOfCircularReferenceGetResponse.swift new file mode 100755 index 000000000..dc698f7ce --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OneOfCircularReferenceGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum OneOfCircularReferenceGetResponse { + case empty + case oneOfCircularReferenceObject(Shared.OneOfCircularReferenceObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func oneOfCircularReferenceObject() throws -> Shared.OneOfCircularReferenceObject { + guard case .oneOfCircularReferenceObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthNewResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthNewResponse.swift new file mode 100755 index 000000000..03f4a27fd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthNewResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum OpenIdConnectAuthNewResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthNewSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthNewSecurity.swift new file mode 100755 index 000000000..3b75bbcb4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthNewSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum OpenIdConnectAuthNewSecurity { + case openIdConnect(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthResponse.swift new file mode 100755 index 000000000..d12a2ff1c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum OpenIdConnectAuthResponse { + case empty + case token(Operations.OpenIdConnectAuthToken) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func token() throws -> Operations.OpenIdConnectAuthToken { + guard case .token(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthSecurity.swift new file mode 100755 index 000000000..c4d3d65bb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthSecurity.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public enum OpenIdConnectAuthSecurity { + case openIdConnect(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthToken.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthToken.swift new file mode 100755 index 000000000..896b203ea --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OpenIdConnectAuthToken.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Successful authentication. + public struct OpenIdConnectAuthToken { + public let authenticated: Bool + public let token: String + + /// Creates an object with the specified parameters + /// + /// + public init(authenticated: Bool, token: String) { + self.authenticated = authenticated + self.token = token + } + } +} + +extension Operations.OpenIdConnectAuthToken: Codable { + enum CodingKeys: String, CodingKey { + case authenticated + case token + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/OverriddenResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/OverriddenResponse.swift new file mode 100755 index 000000000..ff5c77c37 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/OverriddenResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A successful response that contains the simpleObject sent in the request body + public struct OverriddenResponse { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject? = nil) { + self.json = json + } + } +} + +extension Operations.OverriddenResponse: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyRequestBody.swift new file mode 100755 index 000000000..099004460 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyRequestBody.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct PaginationCursorBodyRequestBody { + public let cursor: Int + + /// Creates an object with the specified parameters + /// + /// + public init(cursor: Int) { + self.cursor = cursor + } + } +} + +extension Operations.PaginationCursorBodyRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case cursor + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyRes.swift new file mode 100755 index 000000000..7194b05c5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PaginationCursorBodyRes { + public let numPages: Int + public let resultArray: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(numPages: Int, resultArray: [Int]) { + self.numPages = numPages + self.resultArray = resultArray + } + } +} + +extension Operations.PaginationCursorBodyRes: Codable { + enum CodingKeys: String, CodingKey { + case numPages + case resultArray + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyResponse.swift new file mode 100755 index 000000000..a200ddb19 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorBodyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PaginationCursorBodyResponse { + case empty + case res(Operations.PaginationCursorBodyRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PaginationCursorBodyRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsRequest.swift new file mode 100755 index 000000000..0d0bdddaf --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct PaginationCursorParamsRequest: APIValue { + public let cursor: Int + + /// Creates a request model with the specified parameters + /// + /// + public init(cursor: Int) { + self.cursor = cursor + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsRes.swift new file mode 100755 index 000000000..10c57b8f3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PaginationCursorParamsRes { + public let numPages: Int + public let resultArray: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(numPages: Int, resultArray: [Int]) { + self.numPages = numPages + self.resultArray = resultArray + } + } +} + +extension Operations.PaginationCursorParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case numPages + case resultArray + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsResponse.swift new file mode 100755 index 000000000..807087fa5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationCursorParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PaginationCursorParamsResponse { + case empty + case res(Operations.PaginationCursorParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PaginationCursorParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyRes.swift new file mode 100755 index 000000000..03dd8df1b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PaginationLimitOffsetOffsetBodyRes { + public let numPages: Int + public let resultArray: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(numPages: Int, resultArray: [Int]) { + self.numPages = numPages + self.resultArray = resultArray + } + } +} + +extension Operations.PaginationLimitOffsetOffsetBodyRes: Codable { + enum CodingKeys: String, CodingKey { + case numPages + case resultArray + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyResponse.swift new file mode 100755 index 000000000..faaf52665 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PaginationLimitOffsetOffsetBodyResponse { + case empty + case res(Operations.PaginationLimitOffsetOffsetBodyRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PaginationLimitOffsetOffsetBodyRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRequest.swift new file mode 100755 index 000000000..2ef7c9e22 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct PaginationLimitOffsetOffsetParamsRequest: APIValue { + public let limit: Int? + public let offset: Int? + + /// Creates a request model with the specified parameters + /// + /// + public init(limit: Int? = nil, offset: Int? = nil) { + self.limit = limit + self.offset = offset + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRes.swift new file mode 100755 index 000000000..00b50b97e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PaginationLimitOffsetOffsetParamsRes { + public let numPages: Int + public let resultArray: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(numPages: Int, resultArray: [Int]) { + self.numPages = numPages + self.resultArray = resultArray + } + } +} + +extension Operations.PaginationLimitOffsetOffsetParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case numPages + case resultArray + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsResponse.swift new file mode 100755 index 000000000..62e8b6ac4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PaginationLimitOffsetOffsetParamsResponse { + case empty + case res(Operations.PaginationLimitOffsetOffsetParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PaginationLimitOffsetOffsetParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyRes.swift new file mode 100755 index 000000000..cf7462b75 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PaginationLimitOffsetPageBodyRes { + public let numPages: Int + public let resultArray: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(numPages: Int, resultArray: [Int]) { + self.numPages = numPages + self.resultArray = resultArray + } + } +} + +extension Operations.PaginationLimitOffsetPageBodyRes: Codable { + enum CodingKeys: String, CodingKey { + case numPages + case resultArray + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyResponse.swift new file mode 100755 index 000000000..8df9036a2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PaginationLimitOffsetPageBodyResponse { + case empty + case res(Operations.PaginationLimitOffsetPageBodyRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PaginationLimitOffsetPageBodyRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRequest.swift new file mode 100755 index 000000000..ec16daced --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct PaginationLimitOffsetPageParamsRequest: APIValue { + public let page: Int + + /// Creates a request model with the specified parameters + /// + /// + public init(page: Int) { + self.page = page + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRes.swift new file mode 100755 index 000000000..a5cbb68dd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PaginationLimitOffsetPageParamsRes { + public let numPages: Int + public let resultArray: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(numPages: Int, resultArray: [Int]) { + self.numPages = numPages + self.resultArray = resultArray + } + } +} + +extension Operations.PaginationLimitOffsetPageParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case numPages + case resultArray + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsResponse.swift new file mode 100755 index 000000000..7abca1f26 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PaginationLimitOffsetPageParamsResponse { + case empty + case res(Operations.PaginationLimitOffsetPageParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PaginationLimitOffsetPageParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonRequest.swift new file mode 100755 index 000000000..c8b616806 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct PathParameterJsonRequest: APIValue { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let jsonObj: Shared.SimpleObject + + /// Creates a request model with the specified parameters + /// + /// - Parameter jsonObj: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(jsonObj: Shared.SimpleObject) { + self.jsonObj = jsonObj + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonRes.swift new file mode 100755 index 000000000..01a8b1a55 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PathParameterJsonRes { + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(url: String) { + self.url = url + } + } +} + +extension Operations.PathParameterJsonRes: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonResponse.swift new file mode 100755 index 000000000..ad8672ff4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PathParameterJsonResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PathParameterJsonResponse { + case empty + case res(Operations.PathParameterJsonRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PathParameterJsonRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRequest.swift new file mode 100755 index 000000000..dc7ba7181 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRequest.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct PipeDelimitedQueryParamsArrayRequest: APIValue { + public let arrParam: [String]? + public let arrParamExploded: [Int]? + public let mapParam: [String: String]? + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objParam: Shared.SimpleObject? + + /// Creates a request model with the specified parameters + /// + /// - Parameter objParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(arrParam: [String]? = nil, arrParamExploded: [Int]? = nil, mapParam: [String: String]? = nil, objParam: Shared.SimpleObject? = nil) { + self.arrParam = arrParam + self.arrParamExploded = arrParamExploded + self.mapParam = mapParam + self.objParam = objParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRes.swift new file mode 100755 index 000000000..ced054e05 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PipeDelimitedQueryParamsArrayRes { + public let args: Operations.PipeDelimitedQueryParamsArrayResArgs + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.PipeDelimitedQueryParamsArrayResArgs, url: String) { + self.args = args + self.url = url + } + } +} + +extension Operations.PipeDelimitedQueryParamsArrayRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResArgs.swift new file mode 100755 index 000000000..5097e8991 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResArgs.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct PipeDelimitedQueryParamsArrayResArgs { + public let arrParam: String + public let arrParamExploded: [String] + + /// Creates an object with the specified parameters + /// + /// + public init(arrParam: String, arrParamExploded: [String]) { + self.arrParam = arrParam + self.arrParamExploded = arrParamExploded + } + } +} + +extension Operations.PipeDelimitedQueryParamsArrayResArgs: Codable { + enum CodingKeys: String, CodingKey { + case arrParam + case arrParamExploded + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResponse.swift new file mode 100755 index 000000000..e25182f0d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PipeDelimitedQueryParamsArrayResponse { + case empty + case res(Operations.PipeDelimitedQueryParamsArrayRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PipeDelimitedQueryParamsArrayRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRequestBody.swift new file mode 100755 index 000000000..1ca592860 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRequestBody.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum PrimitiveTypeOneOfPostRequestBody { + case string(String) + case integer(Int) + case number(Double) + case bool(Bool) + } +} + +extension Operations.PrimitiveTypeOneOfPostRequestBody: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else if let value = try? Double(from: decoder) { + self = .number(value) + } else if let value = try? Bool(from: decoder) { + self = .bool(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + case .number(let value): + try value.encode(to: encoder) + case .bool(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRes.swift new file mode 100755 index 000000000..57337c063 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PrimitiveTypeOneOfPostRes { + public let json: Operations.PrimitiveTypeOneOfPostResJson + + /// Creates an object with the specified parameters + /// + /// + public init(json: Operations.PrimitiveTypeOneOfPostResJson) { + self.json = json + } + } +} + +extension Operations.PrimitiveTypeOneOfPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResJson.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResJson.swift new file mode 100755 index 000000000..8bab242aa --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResJson.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public enum PrimitiveTypeOneOfPostResJson { + case string(String) + case integer(Int) + case number(Double) + case bool(Bool) + } +} + +extension Operations.PrimitiveTypeOneOfPostResJson: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else if let value = try? Double(from: decoder) { + self = .number(value) + } else if let value = try? Bool(from: decoder) { + self = .bool(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + case .number(let value): + try value.encode(to: encoder) + case .bool(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResponse.swift new file mode 100755 index 000000000..0ba80c9da --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PrimitiveTypeOneOfPostResponse { + case empty + case res(Operations.PrimitiveTypeOneOfPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.PrimitiveTypeOneOfPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.swift new file mode 100755 index 000000000..2aa94973a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct PutAnythingIgnoredGeneration200ApplicationJSON { + public let json: String? + + /// Creates an object with the specified parameters + /// + /// + public init(json: String? = nil) { + self.json = json + } + } +} + +extension Operations.PutAnythingIgnoredGeneration200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/PutAnythingIgnoredGenerationResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/PutAnythingIgnoredGenerationResponse.swift new file mode 100755 index 000000000..2017e206f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/PutAnythingIgnoredGenerationResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum PutAnythingIgnoredGenerationResponse { + case empty + case putAnythingIgnoredGeneration200ApplicationJSONObject(Operations.PutAnythingIgnoredGeneration200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func putAnythingIgnoredGeneration200ApplicationJSONObject() throws -> Operations.PutAnythingIgnoredGeneration200ApplicationJSON { + guard case .putAnythingIgnoredGeneration200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.swift new file mode 100755 index 000000000..ecb629dec --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayCamelCaseResponse { + case empty + case simpleObjectCamelCases([Shared.SimpleObjectCamelCase]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func simpleObjectCamelCases() throws -> [Shared.SimpleObjectCamelCase] { + guard case .simpleObjectCamelCases(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.swift new file mode 100755 index 000000000..3d1cb9ff6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayObjCamelCaseResponse { + case empty + case arrObjValueCamelCase(Shared.ArrObjValueCamelCase) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func arrObjValueCamelCase() throws -> Shared.ArrObjValueCamelCase { + guard case .arrObjValueCamelCase(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.swift new file mode 100755 index 000000000..52c56d741 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayObjResponse { + case empty + case arrObjValue(Shared.ArrObjValue) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func arrObjValue() throws -> Shared.ArrObjValue { + guard case .arrObjValue(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.swift new file mode 100755 index 000000000..51175eb3a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse { + case empty + case arrs([[Shared.SimpleObjectCamelCase]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func arrs() throws -> [[Shared.SimpleObjectCamelCase]] { + guard case .arrs(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.swift new file mode 100755 index 000000000..024beeca9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse { + case empty + case arrs([[String]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func arrs() throws -> [[String]] { + guard case .arrs(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.swift new file mode 100755 index 000000000..ceaa662c3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayOfArrayResponse { + case empty + case arrs([[Shared.SimpleObject]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func arrs() throws -> [[Shared.SimpleObject]] { + guard case .arrs(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.swift new file mode 100755 index 000000000..719ac338c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse { + case empty + case maps([[String: Shared.SimpleObjectCamelCase]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func maps() throws -> [[String: Shared.SimpleObjectCamelCase]] { + guard case .maps(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.swift new file mode 100755 index 000000000..01f366558 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayOfMapResponse { + case empty + case maps([[String: Shared.SimpleObject]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func maps() throws -> [[String: Shared.SimpleObject]] { + guard case .maps(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.swift new file mode 100755 index 000000000..aa188dd22 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayOfPrimitiveResponse { + case empty + case strings([String]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func strings() throws -> [String] { + guard case .strings(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayResponse.swift new file mode 100755 index 000000000..4ff5dfaea --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonArrayResponse { + case empty + case simpleObjects([Shared.SimpleObject]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func simpleObjects() throws -> [Shared.SimpleObject] { + guard case .simpleObjects(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.swift new file mode 100755 index 000000000..d8b60afb4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostApplicationJsonDeepCamelCaseRes { + public let json: Shared.DeepObjectCamelCase? + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.DeepObjectCamelCase? = nil) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostApplicationJsonDeepCamelCaseRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.swift new file mode 100755 index 000000000..3f869a80f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonDeepCamelCaseResponse { + case empty + case res(Operations.RequestBodyPostApplicationJsonDeepCamelCaseRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostApplicationJsonDeepCamelCaseRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepRes.swift new file mode 100755 index 000000000..5d0ac1a67 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostApplicationJsonDeepRes { + public let json: Shared.DeepObject? + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.DeepObject? = nil) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostApplicationJsonDeepRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepResponse.swift new file mode 100755 index 000000000..14f565da7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonDeepResponse { + case empty + case res(Operations.RequestBodyPostApplicationJsonDeepRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostApplicationJsonDeepRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.swift new file mode 100755 index 000000000..2c30dce5b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapCamelCaseResponse { + case empty + case res([String: Shared.SimpleObjectCamelCase]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: Shared.SimpleObjectCamelCase] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.swift new file mode 100755 index 000000000..d1fa26ca5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapObjCamelCaseResponse { + case empty + case mapObjValueCamelCase(Shared.MapObjValueCamelCase) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func mapObjValueCamelCase() throws -> Shared.MapObjValueCamelCase { + guard case .mapObjValueCamelCase(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjResponse.swift new file mode 100755 index 000000000..15c1c7fe6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapObjResponse { + case empty + case mapObjValue(Shared.MapObjValue) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func mapObjValue() throws -> Shared.MapObjValue { + guard case .mapObjValue(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.swift new file mode 100755 index 000000000..6052a1a20 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse { + case empty + case res([String: [Shared.SimpleObjectCamelCase]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: [Shared.SimpleObjectCamelCase]] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.swift new file mode 100755 index 000000000..aa9714e3c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapOfArrayResponse { + case empty + case res([String: [Shared.SimpleObject]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: [Shared.SimpleObject]] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.swift new file mode 100755 index 000000000..5f8aa4195 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse { + case empty + case res([String: [String: Shared.SimpleObjectCamelCase]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: [String: Shared.SimpleObjectCamelCase]] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.swift new file mode 100755 index 000000000..77723e16f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse { + case empty + case res([String: [String: String]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: [String: String]] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.swift new file mode 100755 index 000000000..5c93a33ca --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapOfMapResponse { + case empty + case res([String: [String: Shared.SimpleObject]]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: [String: Shared.SimpleObject]] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.swift new file mode 100755 index 000000000..8188f122f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapOfPrimitiveResponse { + case empty + case res([String: String]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: String] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapResponse.swift new file mode 100755 index 000000000..81abf5756 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMapResponse { + case empty + case res([String: Shared.SimpleObject]) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> [String: Shared.SimpleObject] { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.swift new file mode 100755 index 000000000..4a1933ae6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostApplicationJsonMultipleJsonFilteredRes { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostApplicationJsonMultipleJsonFilteredRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.swift new file mode 100755 index 000000000..2b7ff3353 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonMultipleJsonFilteredResponse { + case empty + case res(Operations.RequestBodyPostApplicationJsonMultipleJsonFilteredRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostApplicationJsonMultipleJsonFilteredRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.swift new file mode 100755 index 000000000..93a9ec246 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostApplicationJsonSimpleCamelCaseRes { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObjectCamelCase + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObjectCamelCase) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostApplicationJsonSimpleCamelCaseRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.swift new file mode 100755 index 000000000..efaddc05f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonSimpleCamelCaseResponse { + case empty + case res(Operations.RequestBodyPostApplicationJsonSimpleCamelCaseRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostApplicationJsonSimpleCamelCaseRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleRes.swift new file mode 100755 index 000000000..15f036bce --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleRes.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostApplicationJsonSimpleRes { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostApplicationJsonSimpleRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleResponse.swift new file mode 100755 index 000000000..75ca1062d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostApplicationJsonSimpleResponse { + case empty + case res(Operations.RequestBodyPostApplicationJsonSimpleRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostApplicationJsonSimpleRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.swift new file mode 100755 index 000000000..10e7b9d84 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostComplexNumberTypes200ApplicationJSON { + public let json: Shared.ComplexNumberTypes + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.ComplexNumberTypes, url: String) { + self.json = json + self.url = url + } + } +} + +extension Operations.RequestBodyPostComplexNumberTypes200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesRequest.swift new file mode 100755 index 000000000..4ea414f9d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesRequest.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RequestBodyPostComplexNumberTypesRequest: APIValue { + public let complexNumberTypes: Shared.ComplexNumberTypes + public let pathBigInt: Int + public let pathBigIntStr: String + @DecimalSerialized + public private(set) var pathDecimal: Double + public let pathDecimalStr: String + public let queryBigInt: Int + public let queryBigIntStr: String + @DecimalSerialized + public private(set) var queryDecimal: Double + public let queryDecimalStr: String + + /// Creates a request model with the specified parameters + /// + /// + public init(complexNumberTypes: Shared.ComplexNumberTypes, pathBigInt: Int, pathBigIntStr: String, pathDecimal: Double, pathDecimalStr: String, queryBigInt: Int, queryBigIntStr: String, queryDecimal: Double, queryDecimalStr: String) { + self.complexNumberTypes = complexNumberTypes + self.pathBigInt = pathBigInt + self.pathBigIntStr = pathBigIntStr + self._pathDecimal = DecimalSerialized(wrappedValue: pathDecimal) + self.pathDecimalStr = pathDecimalStr + self.queryBigInt = queryBigInt + self.queryBigIntStr = queryBigIntStr + self._queryDecimal = DecimalSerialized(wrappedValue: queryDecimal) + self.queryDecimalStr = queryDecimalStr + } + } +} +extension Operations.RequestBodyPostComplexNumberTypesRequest { + var pathDecimalWrapper: DecimalSerialized { + return _pathDecimal + } + var queryDecimalWrapper: DecimalSerialized { + return _queryDecimal + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesResponse.swift new file mode 100755 index 000000000..9f73064e8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostComplexNumberTypesResponse { + case empty + case requestBodyPostComplexNumberTypes200ApplicationJSONObject(Operations.RequestBodyPostComplexNumberTypes200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostComplexNumberTypes200ApplicationJSONObject() throws -> Operations.RequestBodyPostComplexNumberTypes200ApplicationJSON { + guard case .requestBodyPostComplexNumberTypes200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.swift new file mode 100755 index 000000000..888397785 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostDefaultsAndConsts200ApplicationJSON { + public let json: Shared.DefaultsAndConstsOutput + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.DefaultsAndConstsOutput) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostDefaultsAndConsts200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConstsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConstsResponse.swift new file mode 100755 index 000000000..334f55b70 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConstsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostDefaultsAndConstsResponse { + case empty + case requestBodyPostDefaultsAndConsts200ApplicationJSONObject(Operations.RequestBodyPostDefaultsAndConsts200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostDefaultsAndConsts200ApplicationJSONObject() throws -> Operations.RequestBodyPostDefaultsAndConsts200ApplicationJSON { + guard case .requestBodyPostDefaultsAndConsts200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.swift new file mode 100755 index 000000000..3df9c7007 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostEmptyObject200ApplicationJSON { + public let empty: Operations.RequestBodyPostEmptyObject200ApplicationJSONEmpty? + public let emptyRespWithEmptyProperies: Operations.RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies? + + /// Creates an object with the specified parameters + /// + /// + public init(empty: Operations.RequestBodyPostEmptyObject200ApplicationJSONEmpty? = nil, emptyRespWithEmptyProperies: Operations.RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies? = nil) { + self.empty = empty + self.emptyRespWithEmptyProperies = emptyRespWithEmptyProperies + } + } +} + +extension Operations.RequestBodyPostEmptyObject200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case empty + case emptyRespWithEmptyProperies + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.swift new file mode 100755 index 000000000..61ca9ddbf --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostEmptyObject200ApplicationJSONEmpty { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.RequestBodyPostEmptyObject200ApplicationJSONEmpty: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.swift new file mode 100755 index 000000000..0d0813009 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBody.swift new file mode 100755 index 000000000..d1feb6f8e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBody.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostEmptyObjectRequestBody { + public let empty: Operations.RequestBodyPostEmptyObjectRequestBodyEmpty? + public let emptyWithEmptyProperties: Operations.RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties? + + /// Creates an object with the specified parameters + /// + /// + public init(empty: Operations.RequestBodyPostEmptyObjectRequestBodyEmpty? = nil, emptyWithEmptyProperties: Operations.RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties? = nil) { + self.empty = empty + self.emptyWithEmptyProperties = emptyWithEmptyProperties + } + } +} + +extension Operations.RequestBodyPostEmptyObjectRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case empty + case emptyWithEmptyProperties + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.swift new file mode 100755 index 000000000..af9080c6c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostEmptyObjectRequestBodyEmpty { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.RequestBodyPostEmptyObjectRequestBodyEmpty: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.swift new file mode 100755 index 000000000..6eaa4c38e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Operations.RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectResponse.swift new file mode 100755 index 000000000..a2f5d0aa3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostEmptyObjectResponse { + case empty + case requestBodyPostEmptyObject200ApplicationJSONObject(Operations.RequestBodyPostEmptyObject200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostEmptyObject200ApplicationJSONObject() throws -> Operations.RequestBodyPostEmptyObject200ApplicationJSON { + guard case .requestBodyPostEmptyObject200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepRes.swift new file mode 100755 index 000000000..003c5a06b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostFormDeepRes { + public let form: Operations.RequestBodyPostFormDeepResForm + + /// Creates an object with the specified parameters + /// + /// + public init(form: Operations.RequestBodyPostFormDeepResForm) { + self.form = form + } + } +} + +extension Operations.RequestBodyPostFormDeepRes: Codable { + enum CodingKeys: String, CodingKey { + case form + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResForm.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResForm.swift new file mode 100755 index 000000000..bce9324ea --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResForm.swift @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostFormDeepResForm { + public let arr: String + public let bool: String + public let int: String + public let map: String + public let num: String + public let obj: String + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(arr: String, bool: String, int: String, map: String, num: String, obj: String, str: String) { + self.arr = arr + self.bool = bool + self.int = int + self.map = map + self.num = num + self.obj = obj + self.str = str + } + } +} + +extension Operations.RequestBodyPostFormDeepResForm: Codable { + enum CodingKeys: String, CodingKey { + case arr + case bool + case int + case map + case num + case obj + case str + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResponse.swift new file mode 100755 index 000000000..0c65c490d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostFormDeepResponse { + case empty + case res(Operations.RequestBodyPostFormDeepRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostFormDeepRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveRes.swift new file mode 100755 index 000000000..f038d74f6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostFormMapPrimitiveRes { + public let form: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(form: [String: String]) { + self.form = form + } + } +} + +extension Operations.RequestBodyPostFormMapPrimitiveRes: Codable { + enum CodingKeys: String, CodingKey { + case form + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveResponse.swift new file mode 100755 index 000000000..7403389de --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostFormMapPrimitiveResponse { + case empty + case res(Operations.RequestBodyPostFormMapPrimitiveRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostFormMapPrimitiveRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift new file mode 100755 index 000000000..79ac0cac1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostFormSimpleRes { + public let form: Operations.RequestBodyPostFormSimpleResForm + + /// Creates an object with the specified parameters + /// + /// + public init(form: Operations.RequestBodyPostFormSimpleResForm) { + self.form = form + } + } +} + +extension Operations.RequestBodyPostFormSimpleRes: Codable { + enum CodingKeys: String, CodingKey { + case form + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResForm.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResForm.swift new file mode 100755 index 000000000..500a71c63 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResForm.swift @@ -0,0 +1,63 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostFormSimpleResForm { + public let any: String + public let bool: String + public let date: String + public let dateTime: String + public let `enum`: String + public let float32: String + public let int: String + public let int32: String + public let num: String + public let str: String + public let boolOpt: String? + public let intOptNull: String? + public let numOptNull: String? + public let strOpt: String? + + /// Creates an object with the specified parameters + /// + /// + public init(any: String, bool: String, date: String, dateTime: String, `enum`: String, float32: String, int: String, int32: String, num: String, str: String, boolOpt: String? = nil, intOptNull: String? = nil, numOptNull: String? = nil, strOpt: String? = nil) { + self.any = any + self.bool = bool + self.date = date + self.dateTime = dateTime + self.`enum` = `enum` + self.float32 = float32 + self.int = int + self.int32 = int32 + self.num = num + self.str = str + self.boolOpt = boolOpt + self.intOptNull = intOptNull + self.numOptNull = numOptNull + self.strOpt = strOpt + } + } +} + +extension Operations.RequestBodyPostFormSimpleResForm: Codable { + enum CodingKeys: String, CodingKey { + case any + case bool + case date + case dateTime + case `enum` = "enum" + case float32 + case int + case int32 + case num + case str + case boolOpt + case intOptNull + case numOptNull + case strOpt + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResponse.swift new file mode 100755 index 000000000..973dea777 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostFormSimpleResponse { + case empty + case res(Operations.RequestBodyPostFormSimpleRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostFormSimpleRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.swift new file mode 100755 index 000000000..f1d741681 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON { + public let data: String + public let json: [Int] + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: [Int]) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.swift new file mode 100755 index 000000000..3d31bc6ff --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON { + public let data: String + public let json: [Date] + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: [Date]) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.swift new file mode 100755 index 000000000..9f457ca34 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON { + public let data: String + public let json: [String] + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: [String]) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.swift new file mode 100755 index 000000000..7ee973894 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesBigInt200ApplicationJSON { + public let data: String + public let json: Int + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: Int) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesBigInt200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.swift new file mode 100755 index 000000000..e43ad2c18 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON { + public let data: String + public let json: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: String) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.swift new file mode 100755 index 000000000..b1681c333 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesBoolean200ApplicationJSON { + public let json: Bool + + /// Creates an object with the specified parameters + /// + /// + public init(json: Bool) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesBoolean200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.swift new file mode 100755 index 000000000..84ab84d7c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.swift @@ -0,0 +1,45 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesDate200ApplicationJSON { + public let data: String + @DateOnly + public private(set) var json: Date + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: Date) { + self.data = data + self._json = DateOnly(wrappedValue: json) + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesDate200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.data = try container.decode(String.self, forKey: .data) + self._json = try container.decode(DateOnly.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.data, forKey: .data) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.RequestBodyPostJSONDataTypesDate200ApplicationJSON { + var jsonWrapper: DateOnly { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.swift new file mode 100755 index 000000000..70f884320 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.swift @@ -0,0 +1,45 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesDateTime200ApplicationJSON { + public let data: String + @DateTime + public private(set) var json: Date + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: Date) { + self.data = data + self._json = DateTime(wrappedValue: json) + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesDateTime200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.data = try container.decode(String.self, forKey: .data) + self._json = try container.decode(DateTime.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.data, forKey: .data) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.RequestBodyPostJSONDataTypesDateTime200ApplicationJSON { + var jsonWrapper: DateTime { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.swift new file mode 100755 index 000000000..b90fa42df --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.swift @@ -0,0 +1,45 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesDecimal200ApplicationJSON { + public let data: String + @DecimalSerialized + public private(set) var json: Double + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: Double) { + self.data = data + self._json = DecimalSerialized(wrappedValue: json) + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesDecimal200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.data = try container.decode(String.self, forKey: .data) + self._json = try container.decode(DecimalSerialized.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.data, forKey: .data) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.RequestBodyPostJSONDataTypesDecimal200ApplicationJSON { + var jsonWrapper: DecimalSerialized { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.swift new file mode 100755 index 000000000..dc7104300 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON { + public let data: String + public let json: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: String) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.swift new file mode 100755 index 000000000..21b968522 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.swift @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesFloat32200ApplicationJSON { + @DecimalSerialized + public private(set) var json: Double + + /// Creates an object with the specified parameters + /// + /// + public init(json: Double) { + self._json = DecimalSerialized(wrappedValue: json) + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesFloat32200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self._json = try container.decode(DecimalSerialized.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.RequestBodyPostJSONDataTypesFloat32200ApplicationJSON { + var jsonWrapper: DecimalSerialized { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.swift new file mode 100755 index 000000000..9490edc34 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesInt32200ApplicationJSON { + public let json: Int + + /// Creates an object with the specified parameters + /// + /// + public init(json: Int) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesInt32200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.swift new file mode 100755 index 000000000..f0200039b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesInteger200ApplicationJSON { + public let json: Int + + /// Creates an object with the specified parameters + /// + /// + public init(json: Int) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesInteger200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.swift new file mode 100755 index 000000000..f2042a9c5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON { + public let data: String + public let json: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: [String: String]) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.swift new file mode 100755 index 000000000..cae09a69f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON { + public let data: String + public let json: [String: Date] + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: [String: Date]) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.swift new file mode 100755 index 000000000..470946956 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON { + public let data: String + public let json: [String: Double] + + /// Creates an object with the specified parameters + /// + /// + public init(data: String, json: [String: Double]) { + self.data = data + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.swift new file mode 100755 index 000000000..3e94a350a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.swift @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesNumber200ApplicationJSON { + @DecimalSerialized + public private(set) var json: Double + + /// Creates an object with the specified parameters + /// + /// + public init(json: Double) { + self._json = DecimalSerialized(wrappedValue: json) + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesNumber200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self._json = try container.decode(DecimalSerialized.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.RequestBodyPostJSONDataTypesNumber200ApplicationJSON { + var jsonWrapper: DecimalSerialized { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.swift new file mode 100755 index 000000000..768babe50 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostJSONDataTypesString200ApplicationJSON { + public let json: String + + /// Creates an object with the specified parameters + /// + /// + public init(json: String) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostJSONDataTypesString200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.swift new file mode 100755 index 000000000..9d16fa503 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesArrayBigIntResponse { + case empty + case requestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesArrayBigInt200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.swift new file mode 100755 index 000000000..b51fd3148 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesArrayDateResponse { + case empty + case requestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesArrayDate200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.swift new file mode 100755 index 000000000..ff11f8717 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesArrayDecimalStrResponse { + case empty + case requestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.swift new file mode 100755 index 000000000..784621200 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesBigIntResponse { + case empty + case requestBodyPostJSONDataTypesBigInt200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesBigInt200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesBigInt200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesBigInt200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesBigInt200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.swift new file mode 100755 index 000000000..b07b92d1b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesBigIntStrResponse { + case empty + case requestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesBigIntStr200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.swift new file mode 100755 index 000000000..75fb58e25 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesBooleanResponse { + case empty + case requestBodyPostJSONDataTypesBoolean200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesBoolean200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesBoolean200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesBoolean200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesBoolean200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateResponse.swift new file mode 100755 index 000000000..d560ff4e5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesDateResponse { + case empty + case requestBodyPostJSONDataTypesDate200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesDate200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesDate200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesDate200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesDate200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.swift new file mode 100755 index 000000000..91d597b51 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesDateTimeResponse { + case empty + case requestBodyPostJSONDataTypesDateTime200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesDateTime200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesDateTime200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesDateTime200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesDateTime200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.swift new file mode 100755 index 000000000..5156041c2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesDecimalResponse { + case empty + case requestBodyPostJSONDataTypesDecimal200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesDecimal200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesDecimal200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesDecimal200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesDecimal200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.swift new file mode 100755 index 000000000..57cc82ed1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesDecimalStrResponse { + case empty + case requestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesDecimalStr200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesFloat32Response.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesFloat32Response.swift new file mode 100755 index 000000000..83492c984 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesFloat32Response.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesFloat32Response { + case empty + case requestBodyPostJSONDataTypesFloat32200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesFloat32200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesFloat32200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesFloat32200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesFloat32200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesInt32Response.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesInt32Response.swift new file mode 100755 index 000000000..16379564a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesInt32Response.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesInt32Response { + case empty + case requestBodyPostJSONDataTypesInt32200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesInt32200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesInt32200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesInt32200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesInt32200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.swift new file mode 100755 index 000000000..8ebcb1a50 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesIntegerResponse { + case empty + case requestBodyPostJSONDataTypesInteger200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesInteger200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesInteger200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesInteger200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesInteger200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.swift new file mode 100755 index 000000000..4c65a5c6f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesMapBigIntStrResponse { + case empty + case requestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.swift new file mode 100755 index 000000000..18f372223 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesMapDateTimeResponse { + case empty + case requestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesMapDateTime200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.swift new file mode 100755 index 000000000..cf327d93b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesMapDecimalResponse { + case empty + case requestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesMapDecimal200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesNumberResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesNumberResponse.swift new file mode 100755 index 000000000..abba61152 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesNumberResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesNumberResponse { + case empty + case requestBodyPostJSONDataTypesNumber200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesNumber200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesNumber200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesNumber200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesNumber200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesStringResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesStringResponse.swift new file mode 100755 index 000000000..62dfb02ed --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesStringResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostJsonDataTypesStringResponse { + case empty + case requestBodyPostJSONDataTypesString200ApplicationJSONObject(Operations.RequestBodyPostJSONDataTypesString200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostJSONDataTypesString200ApplicationJSONObject() throws -> Operations.RequestBodyPostJSONDataTypesString200ApplicationJSON { + guard case .requestBodyPostJSONDataTypesString200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.swift new file mode 100755 index 000000000..f0762a473 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesComponentFilteredRes { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesComponentFilteredRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.swift new file mode 100755 index 000000000..85a6ec3c2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesComponentFilteredResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesComponentFilteredRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesComponentFilteredRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.swift new file mode 100755 index 000000000..c7c3d045e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON { + public let bool: Bool + @DecimalSerialized + public private(set) var num: Double + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, num: Double, str: String) { + self.bool = bool + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case bool + case num + case str + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.str = try container.decode(String.self, forKey: .str) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._num, forKey: .num) + try container.encode(self.str, forKey: .str) + } +} + +extension Operations.RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.swift new file mode 100755 index 000000000..8d382261b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesInlineFilteredRes { + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: AnyValue]? = nil) { + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesInlineFilteredRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.swift new file mode 100755 index 000000000..7ab84629a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesInlineFilteredResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesInlineFilteredRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesInlineFilteredRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.swift new file mode 100755 index 000000000..e6b39c1bb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesSplitApplicationJSON { + public let bool: Bool + @DecimalSerialized + public private(set) var num: Double + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, num: Double, str: String) { + self.bool = bool + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case bool + case num + case str + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.str = try container.decode(String.self, forKey: .str) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._num, forKey: .num) + try container.encode(self.str, forKey: .str) + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitApplicationJSON { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.swift new file mode 100755 index 000000000..06da28136 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded: APIValue { + public let bool3: Bool + @DecimalSerialized + public private(set) var num3: Double + public let str3: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool3: Bool, num3: Double, str3: String) { + self.bool3 = bool3 + self._num3 = DecimalSerialized(wrappedValue: num3) + self.str3 = str3 + } + } +} +extension Operations.RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded { + var num3Wrapper: DecimalSerialized { + return _num3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.swift new file mode 100755 index 000000000..3c7f08ae2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesSplitFormRes { + public let form: [String: AnyValue]? + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(form: [String: AnyValue]? = nil, json: [String: AnyValue]? = nil) { + self.form = form + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitFormRes: Codable { + enum CodingKeys: String, CodingKey { + case form + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.swift new file mode 100755 index 000000000..799871868 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesSplitFormResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesSplitFormRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesSplitFormRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.swift new file mode 100755 index 000000000..1eb32cb5b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesSplitJsonRes { + public let form: [String: AnyValue]? + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(form: [String: AnyValue]? = nil, json: [String: AnyValue]? = nil) { + self.form = form + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitJsonRes: Codable { + enum CodingKeys: String, CodingKey { + case form + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.swift new file mode 100755 index 000000000..20c38207a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesSplitJsonResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesSplitJsonRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesSplitJsonRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.swift new file mode 100755 index 000000000..74c64575d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesSplitMultipartFormData: APIValue { + public let bool2: Bool + @DecimalSerialized + public private(set) var num2: Double + public let str2: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool2: Bool, num2: Double, str2: String) { + self.bool2 = bool2 + self._num2 = DecimalSerialized(wrappedValue: num2) + self.str2 = str2 + } + } +} +extension Operations.RequestBodyPostMultipleContentTypesSplitMultipartFormData { + var num2Wrapper: DecimalSerialized { + return _num2 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.swift new file mode 100755 index 000000000..2347ab007 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesSplitMultipartRes { + public let form: [String: AnyValue]? + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(form: [String: AnyValue]? = nil, json: [String: AnyValue]? = nil) { + self.form = form + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitMultipartRes: Codable { + enum CodingKeys: String, CodingKey { + case form + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.swift new file mode 100755 index 000000000..1ef3f24db --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesSplitMultipartResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesSplitMultipartRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesSplitMultipartRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.swift new file mode 100755 index 000000000..440597ea1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesSplitParamApplicationJSON { + public let bool: Bool + @DecimalSerialized + public private(set) var num: Double + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, num: Double, str: String) { + self.bool = bool + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case bool + case num + case str + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.str = try container.decode(String.self, forKey: .str) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._num, forKey: .num) + try container.encode(self.str, forKey: .str) + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationJSON { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.swift new file mode 100755 index 000000000..690e07652 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded: APIValue { + public let bool3: Bool + @DecimalSerialized + public private(set) var num3: Double + public let str3: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool3: Bool, num3: Double, str3: String) { + self.bool3 = bool3 + self._num3 = DecimalSerialized(wrappedValue: num3) + self.str3 = str3 + } + } +} +extension Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded { + var num3Wrapper: DecimalSerialized { + return _num3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.swift new file mode 100755 index 000000000..8f4b86fa7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RequestBodyPostMultipleContentTypesSplitParamFormRequest: APIValue { + public let paramStr: String + public let requestBody: Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded + + /// Creates a request model with the specified parameters + /// + /// + public init(paramStr: String, requestBody: Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded) { + self.paramStr = paramStr + self.requestBody = requestBody + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.swift new file mode 100755 index 000000000..2b128c225 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesSplitParamFormRes { + public let args: [String: String]? + public let form: [String: AnyValue]? + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String]? = nil, form: [String: AnyValue]? = nil, json: [String: AnyValue]? = nil) { + self.args = args + self.form = form + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamFormRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case form + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.swift new file mode 100755 index 000000000..ae6457a69 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesSplitParamFormResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesSplitParamFormRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesSplitParamFormRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.swift new file mode 100755 index 000000000..cde9c7bc2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RequestBodyPostMultipleContentTypesSplitParamJsonRequest: APIValue { + public let paramStr: String + public let requestBody: Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationJSON + + /// Creates a request model with the specified parameters + /// + /// + public init(paramStr: String, requestBody: Operations.RequestBodyPostMultipleContentTypesSplitParamApplicationJSON) { + self.paramStr = paramStr + self.requestBody = requestBody + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.swift new file mode 100755 index 000000000..b5e9bc029 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesSplitParamJsonRes { + public let args: [String: String]? + public let form: [String: AnyValue]? + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String]? = nil, form: [String: AnyValue]? = nil, json: [String: AnyValue]? = nil) { + self.args = args + self.form = form + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case form + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.swift new file mode 100755 index 000000000..2dd54ae75 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesSplitParamJsonResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesSplitParamJsonRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.swift new file mode 100755 index 000000000..3c8b082a4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPostMultipleContentTypesSplitParamMultipartFormData: APIValue { + public let bool2: Bool + @DecimalSerialized + public private(set) var num2: Double + public let str2: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool2: Bool, num2: Double, str2: String) { + self.bool2 = bool2 + self._num2 = DecimalSerialized(wrappedValue: num2) + self.str2 = str2 + } + } +} +extension Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData { + var num2Wrapper: DecimalSerialized { + return _num2 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.swift new file mode 100755 index 000000000..6ae0d10e8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RequestBodyPostMultipleContentTypesSplitParamMultipartRequest: APIValue { + public let paramStr: String + public let requestBody: Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData + + /// Creates a request model with the specified parameters + /// + /// + public init(paramStr: String, requestBody: Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartFormData) { + self.paramStr = paramStr + self.requestBody = requestBody + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.swift new file mode 100755 index 000000000..1a877009f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostMultipleContentTypesSplitParamMultipartRes { + public let args: [String: String]? + public let form: [String: AnyValue]? + public let json: [String: AnyValue]? + + /// Creates an object with the specified parameters + /// + /// + public init(args: [String: String]? = nil, form: [String: AnyValue]? = nil, json: [String: AnyValue]? = nil) { + self.args = args + self.form = form + self.json = json + } + } +} + +extension Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case form + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.swift new file mode 100755 index 000000000..d29992d7d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostMultipleContentTypesSplitParamMultipartResponse { + case empty + case res(Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPostMultipleContentTypesSplitParamMultipartRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.swift new file mode 100755 index 000000000..b72952179 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.swift new file mode 100755 index 000000000..283c3543b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostNotNullableNotRequiredStringBodyResponse { + case empty + case requestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject(Operations.RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject() throws -> Operations.RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON { + guard case .requestBodyPostNotNullableNotRequiredStringBody200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullArray200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullArray200ApplicationJSON.swift new file mode 100755 index 000000000..51ff75ce8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullArray200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostNullArray200ApplicationJSON { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPostNullArray200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullArrayResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullArrayResponse.swift new file mode 100755 index 000000000..2e2648d3e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullArrayResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostNullArrayResponse { + case empty + case requestBodyPostNullArray200ApplicationJSONObject(Operations.RequestBodyPostNullArray200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostNullArray200ApplicationJSONObject() throws -> Operations.RequestBodyPostNullArray200ApplicationJSON { + guard case .requestBodyPostNullArray200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.swift new file mode 100755 index 000000000..39facc45f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostNullDictionary200ApplicationJSON { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPostNullDictionary200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullDictionaryResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullDictionaryResponse.swift new file mode 100755 index 000000000..7c57abf19 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullDictionaryResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostNullDictionaryResponse { + case empty + case requestBodyPostNullDictionary200ApplicationJSONObject(Operations.RequestBodyPostNullDictionary200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostNullDictionary200ApplicationJSONObject() throws -> Operations.RequestBodyPostNullDictionary200ApplicationJSON { + guard case .requestBodyPostNullDictionary200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.swift new file mode 100755 index 000000000..a9a89e185 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.swift new file mode 100755 index 000000000..f73043c4e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostNullableNotRequiredStringBodyResponse { + case empty + case requestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject(Operations.RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject() throws -> Operations.RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON { + guard case .requestBodyPostNullableNotRequiredStringBody200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.swift new file mode 100755 index 000000000..35c60484f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPostNullableRequiredStringBody200ApplicationJSON { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPostNullableRequiredStringBody200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.swift new file mode 100755 index 000000000..0478b672c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPostNullableRequiredStringBodyResponse { + case empty + case requestBodyPostNullableRequiredStringBody200ApplicationJSONObject(Operations.RequestBodyPostNullableRequiredStringBody200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func requestBodyPostNullableRequiredStringBody200ApplicationJSONObject() throws -> Operations.RequestBodyPostNullableRequiredStringBody200ApplicationJSON { + guard case .requestBodyPostNullableRequiredStringBody200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesRes.swift new file mode 100755 index 000000000..7b71ae922 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutBytesRes { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPutBytesRes: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesResponse.swift new file mode 100755 index 000000000..b1bf3f46d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutBytesResponse { + case empty + case res(Operations.RequestBodyPutBytesRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutBytesRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRequest.swift new file mode 100755 index 000000000..bfca34393 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RequestBodyPutBytesWithParamsRequest: APIValue { + public let queryStringParam: String + public let requestBody: Data + + /// Creates a request model with the specified parameters + /// + /// + public init(queryStringParam: String, requestBody: Data) { + self.queryStringParam = queryStringParam + self.requestBody = requestBody + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRes.swift new file mode 100755 index 000000000..a8ac772b8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutBytesWithParamsRes { + public let args: Operations.RequestBodyPutBytesWithParamsResArgs + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.RequestBodyPutBytesWithParamsResArgs, data: String) { + self.args = args + self.data = data + } + } +} + +extension Operations.RequestBodyPutBytesWithParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResArgs.swift new file mode 100755 index 000000000..f2ab8ba5f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResArgs.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutBytesWithParamsResArgs { + public let queryStringParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(queryStringParam: String) { + self.queryStringParam = queryStringParam + } + } +} + +extension Operations.RequestBodyPutBytesWithParamsResArgs: Codable { + enum CodingKeys: String, CodingKey { + case queryStringParam + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResponse.swift new file mode 100755 index 000000000..a44e9d173 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutBytesWithParamsResponse { + case empty + case res(Operations.RequestBodyPutBytesWithParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutBytesWithParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepRes.swift new file mode 100755 index 000000000..1cb4d1744 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutMultipartDeepRes { + public let form: Operations.RequestBodyPutMultipartDeepResForm + + /// Creates an object with the specified parameters + /// + /// + public init(form: Operations.RequestBodyPutMultipartDeepResForm) { + self.form = form + } + } +} + +extension Operations.RequestBodyPutMultipartDeepRes: Codable { + enum CodingKeys: String, CodingKey { + case form + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResForm.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResForm.swift new file mode 100755 index 000000000..bde8f0375 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResForm.swift @@ -0,0 +1,42 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartDeepResForm { + public let arr: String + public let bool: String + public let int: String + public let map: String + public let num: String + public let obj: String + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(arr: String, bool: String, int: String, map: String, num: String, obj: String, str: String) { + self.arr = arr + self.bool = bool + self.int = int + self.map = map + self.num = num + self.obj = obj + self.str = str + } + } +} + +extension Operations.RequestBodyPutMultipartDeepResForm: Codable { + enum CodingKeys: String, CodingKey { + case arr + case bool + case int + case map + case num + case obj + case str + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResponse.swift new file mode 100755 index 000000000..288a0946b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutMultipartDeepResponse { + case empty + case res(Operations.RequestBodyPutMultipartDeepRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutMultipartDeepRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.swift new file mode 100755 index 000000000..6f82a5217 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartDifferentFileNameRequestBody: APIValue { + public let differentFileName: Operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName? + + /// Creates an object with the specified parameters + /// + /// + public init(differentFileName: Operations.RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName? = nil) { + self.differentFileName = differentFileName + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.swift new file mode 100755 index 000000000..2b98a1c67 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName: APIValue { + public let content: Data + public let differentFileName: String + + /// Creates an object with the specified parameters + /// + /// + public init(content: Data, differentFileName: String) { + self.content = content + self.differentFileName = differentFileName + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRes.swift new file mode 100755 index 000000000..bb2f50ab4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutMultipartDifferentFileNameRes { + public let files: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(files: [String: String]) { + self.files = files + } + } +} + +extension Operations.RequestBodyPutMultipartDifferentFileNameRes: Codable { + enum CodingKeys: String, CodingKey { + case files + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.swift new file mode 100755 index 000000000..08b527fa9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutMultipartDifferentFileNameResponse { + case empty + case res(Operations.RequestBodyPutMultipartDifferentFileNameRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutMultipartDifferentFileNameRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBody.swift new file mode 100755 index 000000000..bcda7b37d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBody.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartFileRequestBody: APIValue { + public let file: Operations.RequestBodyPutMultipartFileRequestBodyFile? + + /// Creates an object with the specified parameters + /// + /// + public init(file: Operations.RequestBodyPutMultipartFileRequestBodyFile? = nil) { + self.file = file + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBodyFile.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBodyFile.swift new file mode 100755 index 000000000..ea7e3803a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBodyFile.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartFileRequestBodyFile: APIValue { + public let content: Data + public let file: String + + /// Creates an object with the specified parameters + /// + /// + public init(content: Data, file: String) { + self.content = content + self.file = file + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRes.swift new file mode 100755 index 000000000..ea0bdc889 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutMultipartFileRes { + public let files: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(files: [String: String]) { + self.files = files + } + } +} + +extension Operations.RequestBodyPutMultipartFileRes: Codable { + enum CodingKeys: String, CodingKey { + case files + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileResponse.swift new file mode 100755 index 000000000..5087a62e7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutMultipartFileResponse { + case empty + case res(Operations.RequestBodyPutMultipartFileRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutMultipartFileRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift new file mode 100755 index 000000000..701e9325c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutMultipartSimpleRes { + public let form: Operations.RequestBodyPutMultipartSimpleResForm + + /// Creates an object with the specified parameters + /// + /// + public init(form: Operations.RequestBodyPutMultipartSimpleResForm) { + self.form = form + } + } +} + +extension Operations.RequestBodyPutMultipartSimpleRes: Codable { + enum CodingKeys: String, CodingKey { + case form + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResForm.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResForm.swift new file mode 100755 index 000000000..905977916 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResForm.swift @@ -0,0 +1,63 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutMultipartSimpleResForm { + public let any: String + public let bool: String + public let date: String + public let dateTime: String + public let `enum`: String + public let float32: String + public let int: String + public let int32: String + public let num: String + public let str: String + public let boolOpt: String? + public let intOptNull: String? + public let numOptNull: String? + public let strOpt: String? + + /// Creates an object with the specified parameters + /// + /// + public init(any: String, bool: String, date: String, dateTime: String, `enum`: String, float32: String, int: String, int32: String, num: String, str: String, boolOpt: String? = nil, intOptNull: String? = nil, numOptNull: String? = nil, strOpt: String? = nil) { + self.any = any + self.bool = bool + self.date = date + self.dateTime = dateTime + self.`enum` = `enum` + self.float32 = float32 + self.int = int + self.int32 = int32 + self.num = num + self.str = str + self.boolOpt = boolOpt + self.intOptNull = intOptNull + self.numOptNull = numOptNull + self.strOpt = strOpt + } + } +} + +extension Operations.RequestBodyPutMultipartSimpleResForm: Codable { + enum CodingKeys: String, CodingKey { + case any + case bool + case date + case dateTime + case `enum` = "enum" + case float32 + case int + case int32 + case num + case str + case boolOpt + case intOptNull + case numOptNull + case strOpt + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResponse.swift new file mode 100755 index 000000000..4f5457777 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutMultipartSimpleResponse { + case empty + case res(Operations.RequestBodyPutMultipartSimpleRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutMultipartSimpleRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringRes.swift new file mode 100755 index 000000000..e356357f9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutStringRes { + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(data: String) { + self.data = data + } + } +} + +extension Operations.RequestBodyPutStringRes: Codable { + enum CodingKeys: String, CodingKey { + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringResponse.swift new file mode 100755 index 000000000..c6299853b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutStringResponse { + case empty + case res(Operations.RequestBodyPutStringRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutStringRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRequest.swift new file mode 100755 index 000000000..4ec1dd116 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RequestBodyPutStringWithParamsRequest: APIValue { + public let queryStringParam: String + public let requestBody: String + + /// Creates a request model with the specified parameters + /// + /// + public init(queryStringParam: String, requestBody: String) { + self.queryStringParam = queryStringParam + self.requestBody = requestBody + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRes.swift new file mode 100755 index 000000000..544f04ecf --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRes.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RequestBodyPutStringWithParamsRes { + public let args: Operations.RequestBodyPutStringWithParamsResArgs + public let data: String + + /// Creates an object with the specified parameters + /// + /// + public init(args: Operations.RequestBodyPutStringWithParamsResArgs, data: String) { + self.args = args + self.data = data + } + } +} + +extension Operations.RequestBodyPutStringWithParamsRes: Codable { + enum CodingKeys: String, CodingKey { + case args + case data + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResArgs.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResArgs.swift new file mode 100755 index 000000000..6a698b497 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResArgs.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct RequestBodyPutStringWithParamsResArgs { + public let queryStringParam: String + + /// Creates an object with the specified parameters + /// + /// + public init(queryStringParam: String) { + self.queryStringParam = queryStringParam + } + } +} + +extension Operations.RequestBodyPutStringWithParamsResArgs: Codable { + enum CodingKeys: String, CodingKey { + case queryStringParam + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResponse.swift new file mode 100755 index 000000000..2aafbcf9a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyPutStringWithParamsResponse { + case empty + case res(Operations.RequestBodyPutStringWithParamsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.RequestBodyPutStringWithParamsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadAndWriteResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadAndWriteResponse.swift new file mode 100755 index 000000000..c9e268e90 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadAndWriteResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyReadAndWriteResponse { + case empty + case readWriteObject(Shared.ReadWriteObjectOutput) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func readWriteObject() throws -> Shared.ReadWriteObjectOutput { + guard case .readWriteObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadOnlyInputResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadOnlyInputResponse.swift new file mode 100755 index 000000000..9397ae3ce --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadOnlyInputResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyReadOnlyInputResponse { + case empty + case readOnlyObject(Shared.ReadOnlyObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func readOnlyObject() throws -> Shared.ReadOnlyObject { + guard case .readOnlyObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadOnlyUnionResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadOnlyUnionResponse.swift new file mode 100755 index 000000000..1fce1cd8e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadOnlyUnionResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyReadOnlyUnionResponse { + case empty + case weaklyTypedOneOfReadOnlyObject(Shared.WeaklyTypedOneOfReadOnlyObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func weaklyTypedOneOfReadOnlyObject() throws -> Shared.WeaklyTypedOneOfReadOnlyObject { + guard case .weaklyTypedOneOfReadOnlyObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadWriteOnlyUnionResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadWriteOnlyUnionResponse.swift new file mode 100755 index 000000000..029bbac7b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyReadWriteOnlyUnionResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyReadWriteOnlyUnionResponse { + case empty + case weaklyTypedOneOfReadWriteObject(Shared.WeaklyTypedOneOfReadWriteObjectOutput) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func weaklyTypedOneOfReadWriteObject() throws -> Shared.WeaklyTypedOneOfReadWriteObjectOutput { + guard case .weaklyTypedOneOfReadWriteObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyOutputResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyOutputResponse.swift new file mode 100755 index 000000000..ec0a0a63a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyOutputResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyWriteOnlyOutputResponse { + case empty + case writeOnlyObject(Shared.WriteOnlyObjectOutput) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func writeOnlyObject() throws -> Shared.WriteOnlyObjectOutput { + guard case .writeOnlyObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyResponse.swift new file mode 100755 index 000000000..418bffe1c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyWriteOnlyResponse { + case empty + case readOnlyObject(Shared.ReadOnlyObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func readOnlyObject() throws -> Shared.ReadOnlyObject { + guard case .readOnlyObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyUnionResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyUnionResponse.swift new file mode 100755 index 000000000..76d5f105c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RequestBodyWriteOnlyUnionResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RequestBodyWriteOnlyUnionResponse { + case empty + case weaklyTypedOneOfWriteOnlyObject(Shared.WeaklyTypedOneOfWriteOnlyObjectOutput) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func weaklyTypedOneOfWriteOnlyObject() throws -> Shared.WeaklyTypedOneOfWriteOnlyObjectOutput { + guard case .weaklyTypedOneOfWriteOnlyObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.swift new file mode 100755 index 000000000..7d21e5cbb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON { + public let json: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: String]) { + self.json = json + } + } +} + +extension Operations.ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.swift new file mode 100755 index 000000000..654108e1c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyAdditionalPropertiesComplexNumbersPostResponse { + case empty + case responseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject(Operations.ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func responseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject() throws -> Operations.ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON { + guard case .responseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.swift new file mode 100755 index 000000000..4397ca503 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON { + public let json: [String: Date] + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: Date]) { + self.json = json + } + } +} + +extension Operations.ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.swift new file mode 100755 index 000000000..393f63a13 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyAdditionalPropertiesDatePostResponse { + case empty + case responseBodyAdditionalPropertiesDatePost200ApplicationJSONObject(Operations.ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func responseBodyAdditionalPropertiesDatePost200ApplicationJSONObject() throws -> Operations.ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON { + guard case .responseBodyAdditionalPropertiesDatePost200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.swift new file mode 100755 index 000000000..2de219549 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON { + public let json: [String: Shared.SimpleObject] + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: Shared.SimpleObject]) { + self.json = json + } + } +} + +extension Operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.swift new file mode 100755 index 000000000..8869cf309 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyAdditionalPropertiesObjectPostResponse { + case empty + case responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject(Operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject() throws -> Operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON { + guard case .responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.swift new file mode 100755 index 000000000..f10d3b61c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ResponseBodyAdditionalPropertiesPost200ApplicationJSON { + public let json: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: String]) { + self.json = json + } + } +} + +extension Operations.ResponseBodyAdditionalPropertiesPost200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPostResponse.swift new file mode 100755 index 000000000..1d030b86b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyAdditionalPropertiesPostResponse { + case empty + case responseBodyAdditionalPropertiesPost200ApplicationJSONObject(Operations.ResponseBodyAdditionalPropertiesPost200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func responseBodyAdditionalPropertiesPost200ApplicationJSONObject() throws -> Operations.ResponseBodyAdditionalPropertiesPost200ApplicationJSON { + guard case .responseBodyAdditionalPropertiesPost200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyBytesGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyBytesGetResponse.swift new file mode 100755 index 000000000..029b10a10 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyBytesGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyBytesGetResponse { + case empty + case bytes(Data) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func bytes() throws -> Data { + guard case .bytes(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersRequest.swift new file mode 100755 index 000000000..e74549aba --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersRequest.swift @@ -0,0 +1,25 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct ResponseBodyEmptyWithHeadersRequest: APIValue { + @DecimalSerialized + public private(set) var xNumberHeader: Double + public let xStringHeader: String + + /// Creates a request model with the specified parameters + /// + /// + public init(xNumberHeader: Double, xStringHeader: String) { + self._xNumberHeader = DecimalSerialized(wrappedValue: xNumberHeader) + self.xStringHeader = xStringHeader + } + } +} +extension Operations.ResponseBodyEmptyWithHeadersRequest { + var xNumberHeaderWrapper: DecimalSerialized { + return _xNumberHeader + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersResponse.swift new file mode 100755 index 000000000..62e502422 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyEmptyWithHeadersResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyJsonGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyJsonGetResponse.swift new file mode 100755 index 000000000..e28420a92 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyJsonGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyJsonGetResponse { + case empty + case httpBinSimpleJsonObject(Shared.HttpBinSimpleJsonObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func httpBinSimpleJsonObject() throws -> Shared.HttpBinSimpleJsonObject { + guard case .httpBinSimpleJsonObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyOptionalGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyOptionalGetResponse.swift new file mode 100755 index 000000000..86bb02384 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyOptionalGetResponse.swift @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyOptionalGetResponse { + case empty + case responseBodyOptionalGet200TextPlainString(String) + case typedObject1(Shared.TypedObject1) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func responseBodyOptionalGet200TextPlainString() throws -> String { + guard case .responseBodyOptionalGet200TextPlainString(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + + public func typedObject1() throws -> Shared.TypedObject1 { + guard case .typedObject1(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyReadOnlyResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyReadOnlyResponse.swift new file mode 100755 index 000000000..efa779ecd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyReadOnlyResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyReadOnlyResponse { + case empty + case readOnlyObject(Shared.ReadOnlyObject) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func readOnlyObject() throws -> Shared.ReadOnlyObject { + guard case .readOnlyObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyStringGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyStringGetResponse.swift new file mode 100755 index 000000000..58ba32d7d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyStringGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyStringGetResponse { + case empty + case html(String) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func html() throws -> String { + guard case .html(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyXmlGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyXmlGetResponse.swift new file mode 100755 index 000000000..0b77432a9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyXmlGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyXmlGetResponse { + case empty + case xml(String) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func xml() throws -> String { + guard case .xml(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.swift new file mode 100755 index 000000000..0cd787b43 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON { + public let json: Shared.ObjWithZeroValueComplexTypePtrs + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.ObjWithZeroValueComplexTypePtrs) { + self.json = json + } + } +} + +extension Operations.ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.swift new file mode 100755 index 000000000..8a5c2e771 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ResponseBodyZeroValueComplexTypePtrsPostResponse { + case empty + case responseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject(Operations.ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func responseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject() throws -> Operations.ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON { + guard case .responseBodyZeroValueComplexTypePtrsPost200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetRequest.swift new file mode 100755 index 000000000..22b8c6bf9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct RetriesGetRequest: APIValue { + public let requestId: String + public let numRetries: Int? + + /// Creates a request model with the specified parameters + /// + /// + public init(requestId: String, numRetries: Int? = nil) { + self.requestId = requestId + self.numRetries = numRetries + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetResponse.swift new file mode 100755 index 000000000..45b8d9695 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum RetriesGetResponse { + case empty + case retries(Operations.RetriesGetRetries) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func retries() throws -> Operations.RetriesGetRetries { + guard case .retries(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetRetries.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetRetries.swift new file mode 100755 index 000000000..4ecec719a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/RetriesGetRetries.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct RetriesGetRetries { + public let retries: Int + + /// Creates an object with the specified parameters + /// + /// + public init(retries: Int) { + self.retries = retries + } + } +} + +extension Operations.RetriesGetRetries: Codable { + enum CodingKeys: String, CodingKey { + case retries + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SelectGlobalServerResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SelectGlobalServerResponse.swift new file mode 100755 index 000000000..0dfb6a77e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SelectGlobalServerResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum SelectGlobalServerResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SelectServerWithIDResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SelectServerWithIDResponse.swift new file mode 100755 index 000000000..cc79b87e4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SelectServerWithIDResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum SelectServerWithIDResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithProtocolTemplateResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithProtocolTemplateResponse.swift new file mode 100755 index 000000000..8694d9b9d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithProtocolTemplateResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ServerWithProtocolTemplateResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithTemplatesGlobalResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithTemplatesGlobalResponse.swift new file mode 100755 index 000000000..6b92301b1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithTemplatesGlobalResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ServerWithTemplatesGlobalResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithTemplatesResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithTemplatesResponse.swift new file mode 100755 index 000000000..bb70a9d61 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ServerWithTemplatesResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ServerWithTemplatesResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/ServersByIDWithTemplatesResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/ServersByIDWithTemplatesResponse.swift new file mode 100755 index 000000000..fecda94b8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/ServersByIDWithTemplatesResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum ServersByIDWithTemplatesResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysRequest.swift new file mode 100755 index 000000000..185a41ee7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct SimplePathParameterArraysRequest: APIValue { + public let arrParam: [String] + + /// Creates a request model with the specified parameters + /// + /// + public init(arrParam: [String]) { + self.arrParam = arrParam + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysRes.swift new file mode 100755 index 000000000..7fc81734d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct SimplePathParameterArraysRes { + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(url: String) { + self.url = url + } + } +} + +extension Operations.SimplePathParameterArraysRes: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysResponse.swift new file mode 100755 index 000000000..4f079f4f4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterArraysResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum SimplePathParameterArraysResponse { + case empty + case res(Operations.SimplePathParameterArraysRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.SimplePathParameterArraysRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsRequest.swift new file mode 100755 index 000000000..17a1a8752 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsRequest.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct SimplePathParameterMapsRequest: APIValue { + public let mapParam: [String: String] + public let mapParamExploded: [String: Int] + + /// Creates a request model with the specified parameters + /// + /// + public init(mapParam: [String: String], mapParamExploded: [String: Int]) { + self.mapParam = mapParam + self.mapParamExploded = mapParamExploded + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsRes.swift new file mode 100755 index 000000000..0fb965ad8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct SimplePathParameterMapsRes { + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(url: String) { + self.url = url + } + } +} + +extension Operations.SimplePathParameterMapsRes: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsResponse.swift new file mode 100755 index 000000000..b0d72a0b0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterMapsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum SimplePathParameterMapsResponse { + case empty + case res(Operations.SimplePathParameterMapsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.SimplePathParameterMapsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsRequest.swift new file mode 100755 index 000000000..78b5b7a60 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsRequest.swift @@ -0,0 +1,23 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct SimplePathParameterObjectsRequest: APIValue { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objParam: Shared.SimpleObject + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objParamExploded: Shared.SimpleObject + + /// Creates a request model with the specified parameters + /// + /// - Parameter objParam: A simple object that uses all our supported primitive types and enums and has optional properties. + /// - Parameter objParamExploded: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(objParam: Shared.SimpleObject, objParamExploded: Shared.SimpleObject) { + self.objParam = objParam + self.objParamExploded = objParamExploded + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsRes.swift new file mode 100755 index 000000000..89c5e22c7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct SimplePathParameterObjectsRes { + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(url: String) { + self.url = url + } + } +} + +extension Operations.SimplePathParameterObjectsRes: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsResponse.swift new file mode 100755 index 000000000..22d213b14 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterObjectsResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum SimplePathParameterObjectsResponse { + case empty + case res(Operations.SimplePathParameterObjectsRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.SimplePathParameterObjectsRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRequest.swift new file mode 100755 index 000000000..86fa0b558 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRequest.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct SimplePathParameterPrimitivesRequest: APIValue { + public let boolParam: Bool + public let intParam: Int + @DecimalSerialized + public private(set) var numParam: Double + public let strParam: String + + /// Creates a request model with the specified parameters + /// + /// + public init(boolParam: Bool, intParam: Int, numParam: Double, strParam: String) { + self.boolParam = boolParam + self.intParam = intParam + self._numParam = DecimalSerialized(wrappedValue: numParam) + self.strParam = strParam + } + } +} +extension Operations.SimplePathParameterPrimitivesRequest { + var numParamWrapper: DecimalSerialized { + return _numParam + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRes.swift new file mode 100755 index 000000000..b3ac07503 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct SimplePathParameterPrimitivesRes { + public let url: String + + /// Creates an object with the specified parameters + /// + /// + public init(url: String) { + self.url = url + } + } +} + +extension Operations.SimplePathParameterPrimitivesRes: Codable { + enum CodingKeys: String, CodingKey { + case url + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesResponse.swift new file mode 100755 index 000000000..ed1c49bde --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum SimplePathParameterPrimitivesResponse { + case empty + case res(Operations.SimplePathParameterPrimitivesRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.SimplePathParameterPrimitivesRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetErrorRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetErrorRequest.swift new file mode 100755 index 000000000..5e260f85c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetErrorRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct StatusGetErrorRequest: APIValue { + public let statusCode: Int + + /// Creates a request model with the specified parameters + /// + /// + public init(statusCode: Int) { + self.statusCode = statusCode + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetErrorResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetErrorResponse.swift new file mode 100755 index 000000000..4d901cedc --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetErrorResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum StatusGetErrorResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.swift new file mode 100755 index 000000000..d34fb0598 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Not Implemented + public struct StatusGetXSpeakeasyErrors501ApplicationJSON { + public let code: String? + public let message: String? + public let type: Shared.ErrorType? + + /// Creates an object with the specified parameters + /// + /// + public init(code: String? = nil, message: String? = nil, type: Shared.ErrorType? = nil) { + self.code = code + self.message = message + self.type = type + } + } +} + +extension Operations.StatusGetXSpeakeasyErrors501ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case code + case message + case type + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsRequest.swift new file mode 100755 index 000000000..9abb45ba4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct StatusGetXSpeakeasyErrorsRequest: APIValue { + public let statusCode: Int + + /// Creates a request model with the specified parameters + /// + /// + public init(statusCode: Int) { + self.statusCode = statusCode + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsResponse.swift new file mode 100755 index 000000000..afdebfd83 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsResponse.swift @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum StatusGetXSpeakeasyErrorsResponse { + case empty + case error(Shared.Error) + case statusGetXSpeakeasyErrors501ApplicationJSONObject(Operations.StatusGetXSpeakeasyErrors501ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func error() throws -> Shared.Error { + guard case .error(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + + public func statusGetXSpeakeasyErrors501ApplicationJSONObject() throws -> Operations.StatusGetXSpeakeasyErrors501ApplicationJSON { + guard case .statusGetXSpeakeasyErrors501ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StronglyTypedOneOfPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StronglyTypedOneOfPostRes.swift new file mode 100755 index 000000000..ce3f86454 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StronglyTypedOneOfPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct StronglyTypedOneOfPostRes { + public let json: Shared.StronglyTypedOneOfObject + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.StronglyTypedOneOfObject) { + self.json = json + } + } +} + +extension Operations.StronglyTypedOneOfPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/StronglyTypedOneOfPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/StronglyTypedOneOfPostResponse.swift new file mode 100755 index 000000000..f589a2f1c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/StronglyTypedOneOfPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum StronglyTypedOneOfPostResponse { + case empty + case res(Operations.StronglyTypedOneOfPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.StronglyTypedOneOfPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRequest.swift new file mode 100755 index 000000000..a9fb682f3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct TelemetrySpeakeasyUserAgentGetRequest: APIValue { + public let userAgent: String + + /// Creates a request model with the specified parameters + /// + /// + public init(userAgent: String) { + self.userAgent = userAgent + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRes.swift new file mode 100755 index 000000000..b5ff611bb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct TelemetrySpeakeasyUserAgentGetRes { + public let headers: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(headers: [String: String]) { + self.headers = headers + } + } +} + +extension Operations.TelemetrySpeakeasyUserAgentGetRes: Codable { + enum CodingKeys: String, CodingKey { + case headers + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetResponse.swift new file mode 100755 index 000000000..a7ebb8a54 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum TelemetrySpeakeasyUserAgentGetResponse { + case empty + case res(Operations.TelemetrySpeakeasyUserAgentGetRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.TelemetrySpeakeasyUserAgentGetRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetryUserAgentGetRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetryUserAgentGetRes.swift new file mode 100755 index 000000000..68c4703c2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetryUserAgentGetRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct TelemetryUserAgentGetRes { + public let headers: [String: String] + + /// Creates an object with the specified parameters + /// + /// + public init(headers: [String: String]) { + self.headers = headers + } + } +} + +extension Operations.TelemetryUserAgentGetRes: Codable { + enum CodingKeys: String, CodingKey { + case headers + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetryUserAgentGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetryUserAgentGetResponse.swift new file mode 100755 index 000000000..77882502e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TelemetryUserAgentGetResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum TelemetryUserAgentGetResponse { + case empty + case res(Operations.TelemetryUserAgentGetRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.TelemetryUserAgentGetRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypeFromAnchor.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypeFromAnchor.swift new file mode 100755 index 000000000..2deb35bf9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypeFromAnchor.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A successful response that contains the simpleObject sent in the request body + public struct TypeFromAnchor { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let json: Shared.SimpleObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter json: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(json: Shared.SimpleObject? = nil) { + self.json = json + } + } +} + +extension Operations.TypeFromAnchor: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostRes.swift new file mode 100755 index 000000000..0259c0a57 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct TypedObjectNullableOneOfPostRes { + public let json: Shared.TypedObjectNullableOneOf + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.TypedObjectNullableOneOf) { + self.json = json + } + } +} + +extension Operations.TypedObjectNullableOneOfPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostResponse.swift new file mode 100755 index 000000000..b31591888 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum TypedObjectNullableOneOfPostResponse { + case empty + case res(Operations.TypedObjectNullableOneOfPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.TypedObjectNullableOneOfPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectOneOfPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectOneOfPostRes.swift new file mode 100755 index 000000000..2b4765406 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectOneOfPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct TypedObjectOneOfPostRes { + public let json: Shared.TypedObjectOneOf + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.TypedObjectOneOf) { + self.json = json + } + } +} + +extension Operations.TypedObjectOneOfPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectOneOfPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectOneOfPostResponse.swift new file mode 100755 index 000000000..de299ad8b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedObjectOneOfPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum TypedObjectOneOfPostResponse { + case empty + case res(Operations.TypedObjectOneOfPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.TypedObjectOneOfPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetObj.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetObj.swift new file mode 100755 index 000000000..8abbb488b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetObj.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + + public struct TypedParameterGenerationGetObj: APIValue { + public let bool: Bool + @DecimalSerialized + public private(set) var num: Double + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, num: Double, str: String) { + self.bool = bool + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + } + } +} +extension Operations.TypedParameterGenerationGetObj { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetRequest.swift new file mode 100755 index 000000000..7b256e676 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetRequest.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct TypedParameterGenerationGetRequest: APIValue { + public let bigint: Int? + @DateOnly + public private(set) var date: Date? + @DecimalSerialized + public private(set) var decimal: Double? + public let obj: Operations.TypedParameterGenerationGetObj? + + /// Creates a request model with the specified parameters + /// + /// + public init(bigint: Int? = nil, date: Date? = nil, decimal: Double? = nil, obj: Operations.TypedParameterGenerationGetObj? = nil) { + self.bigint = bigint + self._date = DateOnly(wrappedValue: date) + self._decimal = DecimalSerialized(wrappedValue: decimal) + self.obj = obj + } + } +} +extension Operations.TypedParameterGenerationGetRequest { + var dateWrapper: DateOnly { + return _date + } + var decimalWrapper: DecimalSerialized { + return _decimal + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetResponse.swift new file mode 100755 index 000000000..0bb534a61 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/TypedParameterGenerationGetResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum TypedParameterGenerationGetResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateNullRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateNullRes.swift new file mode 100755 index 000000000..bc9d852b6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateNullRes.swift @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct UnionDateNullRes { + @DateOnly + public private(set) var json: Date + + /// Creates an object with the specified parameters + /// + /// + public init(json: Date) { + self._json = DateOnly(wrappedValue: json) + } + } +} + +extension Operations.UnionDateNullRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self._json = try container.decode(DateOnly.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.UnionDateNullRes { + var jsonWrapper: DateOnly { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateNullResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateNullResponse.swift new file mode 100755 index 000000000..199e6c07b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateNullResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum UnionDateNullResponse { + case empty + case res(Operations.UnionDateNullRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.UnionDateNullRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeNullRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeNullRes.swift new file mode 100755 index 000000000..73858054c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeNullRes.swift @@ -0,0 +1,40 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct UnionDateTimeNullRes { + @DateTime + public private(set) var json: Date + + /// Creates an object with the specified parameters + /// + /// + public init(json: Date) { + self._json = DateTime(wrappedValue: json) + } + } +} + +extension Operations.UnionDateTimeNullRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self._json = try container.decode(DateTime.self, forKey: .json) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self._json, forKey: .json) + } +} + +extension Operations.UnionDateTimeNullRes { + var jsonWrapper: DateTime { + return _json + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeNullResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeNullResponse.swift new file mode 100755 index 000000000..1e592580e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UnionDateTimeNullResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum UnionDateTimeNullResponse { + case empty + case res(Operations.UnionDateTimeNullRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.UnionDateTimeNullRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UpdateResourceRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UpdateResourceRequest.swift new file mode 100755 index 000000000..8dbf43c2f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UpdateResourceRequest.swift @@ -0,0 +1,17 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct UpdateResourceRequest: APIValue { + public let resourceId: String + + /// Creates a request model with the specified parameters + /// + /// + public init(resourceId: String) { + self.resourceId = resourceId + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UpdateResourceResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UpdateResourceResponse.swift new file mode 100755 index 000000000..ad872f0f9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UpdateResourceResponse.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum UpdateResourceResponse { + case empty + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSON.swift new file mode 100755 index 000000000..6a617abe9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSON.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response body that contains the simpleObject sent in the request body + public struct UsageExamplePost200ApplicationJSON { + public let json: Operations.UsageExamplePost200ApplicationJSONJSON + + /// Creates an object with the specified parameters + /// + /// + public init(json: Operations.UsageExamplePost200ApplicationJSONJSON) { + self.json = json + } + } +} + +extension Operations.UsageExamplePost200ApplicationJSON: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSONJSON.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSONJSON.swift new file mode 100755 index 000000000..38264f4a8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSONJSON.swift @@ -0,0 +1,36 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A model object + public struct UsageExamplePost200ApplicationJSONJSON { + /// A set of strings with format values that lead to relevant examples being generated for them + public let fakerFormattedStrings: Shared.FakerFormattedStrings? + /// A set of strings with fieldnames that lead to relevant examples being generated for them + public let fakerStrings: Shared.FakerStrings? + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let simpleObject: Shared.SimpleObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter fakerFormattedStrings: A set of strings with format values that lead to relevant examples being generated for them + /// - Parameter fakerStrings: A set of strings with fieldnames that lead to relevant examples being generated for them + /// - Parameter simpleObject: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(fakerFormattedStrings: Shared.FakerFormattedStrings? = nil, fakerStrings: Shared.FakerStrings? = nil, simpleObject: Shared.SimpleObject? = nil) { + self.fakerFormattedStrings = fakerFormattedStrings + self.fakerStrings = fakerStrings + self.simpleObject = simpleObject + } + } +} + +extension Operations.UsageExamplePost200ApplicationJSONJSON: Codable { + enum CodingKeys: String, CodingKey { + case fakerFormattedStrings + case fakerStrings + case simpleObject + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostEnumParameter.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostEnumParameter.swift new file mode 100755 index 000000000..491486cee --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostEnumParameter.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// An enum type + public enum UsageExamplePostEnumParameter: String, Codable, APIValue { + case value1 = "value1" + case value2 = "value2" + case value3 = "value3" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostOptEnumParameter.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostOptEnumParameter.swift new file mode 100755 index 000000000..62b223936 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostOptEnumParameter.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// An enum type + public enum UsageExamplePostOptEnumParameter: String, Codable, APIValue { + case value1 = "value1" + case value2 = "value2" + case value3 = "value3" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostRequest.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostRequest.swift new file mode 100755 index 000000000..6bbd1fdf0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostRequest.swift @@ -0,0 +1,141 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request model + public struct UsageExamplePostRequest: APIValue { + /// An bigint parameter + public let bigintParameter: Int + /// An bigint parameter + public let bigintStrParameter: String + /// A boolean parameter + public let boolParameter: Bool + /// A date parameter + @DateOnly + public private(set) var dateParameter: Date + /// A date time parameter with a default value + @DateTime + public private(set) var dateTimeDefaultParameter: Date + /// A date time parameter + @DateTime + public private(set) var dateTimeParameter: Date + /// A decimal parameter + @DecimalSerialized + public private(set) var decimalParameter: Double + /// A decimal parameter + public let decimalStrParameter: String + /// A double parameter + @DecimalSerialized + public private(set) var doubleParameter: Double + /// An enum parameter + public let enumParameter: Operations.UsageExamplePostEnumParameter + /// A number parameter that contains a falsey example value + @DecimalSerialized + public private(set) var falseyNumberParameter: Double + /// A float32 parameter + @DecimalSerialized + public private(set) var float32Parameter: Double + /// A float parameter + @DecimalSerialized + public private(set) var floatParameter: Double + /// An int64 parameter + public let int64Parameter: Int + /// An integer parameter + public let intParameter: Int + /// A string parameter + public let strParameter: String + /// An bigint parameter + public let bigintParameterOptional: Int? + /// An bigint parameter + public let bigintStrParameterOptional: String? + /// A decimal parameter + @DecimalSerialized + public private(set) var decimalParameterOptional: Double? + /// A decimal parameter + public let decimalStrParameterOptional: String? + /// An enum parameter + public let optEnumParameter: Operations.UsageExamplePostOptEnumParameter? + /// A request body that contains fields with different formats for testing example generation + public let requestBody: Operations.UsageExamplePostRequestBody? + + /// Creates a request model with the specified parameters + /// + /// - Parameter bigintParameter: An bigint parameter + /// - Parameter bigintStrParameter: An bigint parameter + /// - Parameter boolParameter: A boolean parameter + /// - Parameter dateParameter: A date parameter + /// - Parameter dateTimeDefaultParameter: A date time parameter with a default value + /// - Parameter dateTimeParameter: A date time parameter + /// - Parameter decimalParameter: A decimal parameter + /// - Parameter decimalStrParameter: A decimal parameter + /// - Parameter doubleParameter: A double parameter + /// - Parameter enumParameter: An enum parameter + /// - Parameter falseyNumberParameter: A number parameter that contains a falsey example value + /// - Parameter float32Parameter: A float32 parameter + /// - Parameter floatParameter: A float parameter + /// - Parameter int64Parameter: An int64 parameter + /// - Parameter intParameter: An integer parameter + /// - Parameter strParameter: A string parameter + /// - Parameter bigintParameterOptional: An bigint parameter + /// - Parameter bigintStrParameterOptional: An bigint parameter + /// - Parameter decimalParameterOptional: A decimal parameter + /// - Parameter decimalStrParameterOptional: A decimal parameter + /// - Parameter optEnumParameter: An enum parameter + /// - Parameter requestBody: A request body that contains fields with different formats for testing example generation + /// + public init(bigintParameter: Int, bigintStrParameter: String, boolParameter: Bool, dateParameter: Date, dateTimeDefaultParameter: Date, dateTimeParameter: Date, decimalParameter: Double, decimalStrParameter: String, doubleParameter: Double, enumParameter: Operations.UsageExamplePostEnumParameter, falseyNumberParameter: Double, float32Parameter: Double, floatParameter: Double, int64Parameter: Int, intParameter: Int, strParameter: String, bigintParameterOptional: Int? = nil, bigintStrParameterOptional: String? = nil, decimalParameterOptional: Double? = nil, decimalStrParameterOptional: String? = nil, optEnumParameter: Operations.UsageExamplePostOptEnumParameter? = nil, requestBody: Operations.UsageExamplePostRequestBody? = nil) { + self.bigintParameter = bigintParameter + self.bigintStrParameter = bigintStrParameter + self.boolParameter = boolParameter + self._dateParameter = DateOnly(wrappedValue: dateParameter) + self._dateTimeDefaultParameter = DateTime(wrappedValue: dateTimeDefaultParameter) + self._dateTimeParameter = DateTime(wrappedValue: dateTimeParameter) + self._decimalParameter = DecimalSerialized(wrappedValue: decimalParameter) + self.decimalStrParameter = decimalStrParameter + self._doubleParameter = DecimalSerialized(wrappedValue: doubleParameter) + self.enumParameter = enumParameter + self._falseyNumberParameter = DecimalSerialized(wrappedValue: falseyNumberParameter) + self._float32Parameter = DecimalSerialized(wrappedValue: float32Parameter) + self._floatParameter = DecimalSerialized(wrappedValue: floatParameter) + self.int64Parameter = int64Parameter + self.intParameter = intParameter + self.strParameter = strParameter + self.bigintParameterOptional = bigintParameterOptional + self.bigintStrParameterOptional = bigintStrParameterOptional + self._decimalParameterOptional = DecimalSerialized(wrappedValue: decimalParameterOptional) + self.decimalStrParameterOptional = decimalStrParameterOptional + self.optEnumParameter = optEnumParameter + self.requestBody = requestBody + } + } +} +extension Operations.UsageExamplePostRequest { + var dateParameterWrapper: DateOnly { + return _dateParameter + } + var dateTimeDefaultParameterWrapper: DateTime { + return _dateTimeDefaultParameter + } + var dateTimeParameterWrapper: DateTime { + return _dateTimeParameter + } + var decimalParameterWrapper: DecimalSerialized { + return _decimalParameter + } + var decimalParameterOptionalWrapper: DecimalSerialized { + return _decimalParameterOptional + } + var doubleParameterWrapper: DecimalSerialized { + return _doubleParameter + } + var falseyNumberParameterWrapper: DecimalSerialized { + return _falseyNumberParameter + } + var float32ParameterWrapper: DecimalSerialized { + return _float32Parameter + } + var floatParameterWrapper: DecimalSerialized { + return _floatParameter + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostRequestBody.swift new file mode 100755 index 000000000..9fb8aff35 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostRequestBody.swift @@ -0,0 +1,36 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A request body that contains fields with different formats for testing example generation + public struct UsageExamplePostRequestBody { + /// A set of strings with format values that lead to relevant examples being generated for them + public let fakerFormattedStrings: Shared.FakerFormattedStrings? + /// A set of strings with fieldnames that lead to relevant examples being generated for them + public let fakerStrings: Shared.FakerStrings? + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let simpleObject: Shared.SimpleObject? + + /// Creates an object with the specified parameters + /// + /// - Parameter fakerFormattedStrings: A set of strings with format values that lead to relevant examples being generated for them + /// - Parameter fakerStrings: A set of strings with fieldnames that lead to relevant examples being generated for them + /// - Parameter simpleObject: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(fakerFormattedStrings: Shared.FakerFormattedStrings? = nil, fakerStrings: Shared.FakerStrings? = nil, simpleObject: Shared.SimpleObject? = nil) { + self.fakerFormattedStrings = fakerFormattedStrings + self.fakerStrings = fakerStrings + self.simpleObject = simpleObject + } + } +} + +extension Operations.UsageExamplePostRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case fakerFormattedStrings + case fakerStrings + case simpleObject + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostResponse.swift new file mode 100755 index 000000000..7dfb11f9c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum UsageExamplePostResponse { + case empty + case usageExamplePost200ApplicationJSONObject(Operations.UsageExamplePost200ApplicationJSON) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func usageExamplePost200ApplicationJSONObject() throws -> Operations.UsageExamplePost200ApplicationJSON { + guard case .usageExamplePost200ApplicationJSONObject(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostSecurity.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostSecurity.swift new file mode 100755 index 000000000..c29df2212 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/UsageExamplePostSecurity.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// Describes an authentication scheme. + public struct UsageExamplePostSecurity { + public let username: String + public let password: String + + /// Creates a security model with the specified parameters + /// + /// + public init(username: String, password: String) { + self.username = username + self.password = password + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostRes.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostRes.swift new file mode 100755 index 000000000..e52e1bc98 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostRes.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// OK + public struct WeaklyTypedOneOfPostRes { + public let json: Shared.WeaklyTypedOneOfObject + + /// Creates an object with the specified parameters + /// + /// + public init(json: Shared.WeaklyTypedOneOfObject) { + self.json = json + } + } +} + +extension Operations.WeaklyTypedOneOfPostRes: Codable { + enum CodingKeys: String, CodingKey { + case json + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostResponse.swift b/swift-client-sdk/Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostResponse.swift new file mode 100755 index 000000000..d3f0b4d1c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostResponse.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Operations { + /// A response model + public enum WeaklyTypedOneOfPostResponse { + case empty + case res(Operations.WeaklyTypedOneOfPostRes) + + var isEmpty: Bool { + if case .empty = self { + return true + } else { + return false + } + } + + public func res() throws -> Operations.WeaklyTypedOneOfPostRes { + guard case .res(let value) = self else { + throw OpenAPIError.missingResponseData + } + return value + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/AllOfToAllOf.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/AllOfToAllOf.swift new file mode 100755 index 000000000..94430275d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/AllOfToAllOf.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct AllOfToAllOf { + public let id: String? + + /// Creates an object with the specified parameters + /// + /// + public init(id: String? = nil) { + self.id = id + } + } +} + +extension Shared.AllOfToAllOf: Codable { + enum CodingKeys: String, CodingKey { + case id + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ArrObjValue.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ArrObjValue.swift new file mode 100755 index 000000000..b0b040742 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ArrObjValue.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ArrObjValue { + public let json: [Shared.SimpleObject]? + public let `required`: AnyValue? + + /// Creates an object with the specified parameters + /// + /// + public init(json: [Shared.SimpleObject]? = nil, `required`: AnyValue? = nil) { + self.json = json + self.`required` = `required` + } + } +} + +extension Shared.ArrObjValue: Codable { + enum CodingKeys: String, CodingKey { + case json + case `required` = "required" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ArrObjValueCamelCase.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ArrObjValueCamelCase.swift new file mode 100755 index 000000000..5870ad1ea --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ArrObjValueCamelCase.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ArrObjValueCamelCase { + public let json: [Shared.SimpleObjectCamelCase]? + public let `required`: AnyValue? + + /// Creates an object with the specified parameters + /// + /// + public init(json: [Shared.SimpleObjectCamelCase]? = nil, `required`: AnyValue? = nil) { + self.json = json + self.`required` = `required` + } + } +} + +extension Shared.ArrObjValueCamelCase: Codable { + enum CodingKeys: String, CodingKey { + case json + case `required` = "required" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ArrayCircularReferenceObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ArrayCircularReferenceObject.swift new file mode 100755 index 000000000..936b154aa --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ArrayCircularReferenceObject.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ArrayCircularReferenceObject { + public let circular: [Shared.ArrayCircularReferenceObject] + + /// Creates an object with the specified parameters + /// + /// + public init(circular: [Shared.ArrayCircularReferenceObject]) { + self.circular = circular + } + } +} + +extension Shared.ArrayCircularReferenceObject: Codable { + enum CodingKeys: String, CodingKey { + case circular + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBody.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBody.swift new file mode 100755 index 000000000..ecb4849e4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBody.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct AuthServiceRequestBody { + public let basicAuth: Shared.AuthServiceRequestBodyBasicAuth? + public let headerAuth: [Shared.AuthServiceRequestBodyHeaderAuth]? + + /// Creates an object with the specified parameters + /// + /// + public init(basicAuth: Shared.AuthServiceRequestBodyBasicAuth? = nil, headerAuth: [Shared.AuthServiceRequestBodyHeaderAuth]? = nil) { + self.basicAuth = basicAuth + self.headerAuth = headerAuth + } + } +} + +extension Shared.AuthServiceRequestBody: Codable { + enum CodingKeys: String, CodingKey { + case basicAuth + case headerAuth + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBodyBasicAuth.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBodyBasicAuth.swift new file mode 100755 index 000000000..ef473ede3 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBodyBasicAuth.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct AuthServiceRequestBodyBasicAuth { + public let username: String + public let password: String + + /// Creates an object with the specified parameters + /// + /// + public init(username: String, password: String) { + self.username = username + self.password = password + } + } +} + +extension Shared.AuthServiceRequestBodyBasicAuth: Codable { + enum CodingKeys: String, CodingKey { + case username + case password + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBodyHeaderAuth.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBodyHeaderAuth.swift new file mode 100755 index 000000000..bd01d7b4b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/AuthServiceRequestBodyHeaderAuth.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct AuthServiceRequestBodyHeaderAuth { + public let expectedValue: String + public let headerName: String + + /// Creates an object with the specified parameters + /// + /// + public init(expectedValue: String, headerName: String) { + self.expectedValue = expectedValue + self.headerName = headerName + } + } +} + +extension Shared.AuthServiceRequestBodyHeaderAuth: Codable { + enum CodingKeys: String, CodingKey { + case expectedValue + case headerName + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ComplexNumberTypes.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ComplexNumberTypes.swift new file mode 100755 index 000000000..96daba9fb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ComplexNumberTypes.swift @@ -0,0 +1,55 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ComplexNumberTypes { + public let bigint: Int + public let bigintStr: String + @DecimalSerialized + public private(set) var decimal: Double + public let decimalStr: String + + /// Creates an object with the specified parameters + /// + /// + public init(bigint: Int, bigintStr: String, decimal: Double, decimalStr: String) { + self.bigint = bigint + self.bigintStr = bigintStr + self._decimal = DecimalSerialized(wrappedValue: decimal) + self.decimalStr = decimalStr + } + } +} + +extension Shared.ComplexNumberTypes: Codable { + enum CodingKeys: String, CodingKey { + case bigint + case bigintStr + case decimal + case decimalStr + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bigint = try container.decode(Int.self, forKey: .bigint) + self.bigintStr = try container.decode(String.self, forKey: .bigintStr) + self._decimal = try container.decode(DecimalSerialized.self, forKey: .decimal) + self.decimalStr = try container.decode(String.self, forKey: .decimalStr) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.bigint, forKey: .bigint) + try container.encode(self.bigintStr, forKey: .bigintStr) + try container.encode(self._decimal, forKey: .decimal) + try container.encode(self.decimalStr, forKey: .decimalStr) + } +} + +extension Shared.ComplexNumberTypes { + var decimalWrapper: DecimalSerialized { + return _decimal + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObject.swift new file mode 100755 index 000000000..3b60a5d24 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObject.swift @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct DeepObject: APIValue { + public let any: Shared.DeepObjectAny + public let arr: [Shared.SimpleObject] + public let bool: Bool + public let int: Int + public let map: [String: Shared.SimpleObject] + @DecimalSerialized + public private(set) var num: Double + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let obj: Shared.SimpleObject + public let str: String + public let type: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter obj: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(any: Shared.DeepObjectAny, arr: [Shared.SimpleObject], bool: Bool, int: Int, map: [String: Shared.SimpleObject], num: Double, obj: Shared.SimpleObject, str: String, type: String? = nil) { + self.any = any + self.arr = arr + self.bool = bool + self.int = int + self.map = map + self._num = DecimalSerialized(wrappedValue: num) + self.obj = obj + self.str = str + self.type = type + } + } +} + +extension Shared.DeepObject: Codable { + enum CodingKeys: String, CodingKey { + case any + case arr + case bool + case int + case map + case num + case obj + case str + case type + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.any = try container.decode(Shared.DeepObjectAny.self, forKey: .any) + self.arr = try container.decode([Shared.SimpleObject].self, forKey: .arr) + self.bool = try container.decode(Bool.self, forKey: .bool) + self.int = try container.decode(Int.self, forKey: .int) + self.map = try container.decode([String: Shared.SimpleObject].self, forKey: .map) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.obj = try container.decode(Shared.SimpleObject.self, forKey: .obj) + self.str = try container.decode(String.self, forKey: .str) + self.type = try container.decodeIfPresent(String.self, forKey: .type) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.any, forKey: .any) + try container.encode(self.arr, forKey: .arr) + try container.encode(self.bool, forKey: .bool) + try container.encode(self.int, forKey: .int) + try container.encode(self.map, forKey: .map) + try container.encode(self._num, forKey: .num) + try container.encode(self.obj, forKey: .obj) + try container.encode(self.str, forKey: .str) + try container.encodeIfPresent(self.type, forKey: .type) + } +} + +extension Shared.DeepObject { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectAny.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectAny.swift new file mode 100755 index 000000000..74d49b068 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectAny.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum DeepObjectAny { + case simpleObject(Shared.SimpleObject) + case string(String) + } +} + +extension Shared.DeepObjectAny: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? String(from: decoder) { + self = .string(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .string(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectCamelCase.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectCamelCase.swift new file mode 100755 index 000000000..6991572d4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectCamelCase.swift @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct DeepObjectCamelCase { + public let anyVal: Shared.DeepObjectCamelCaseAnyVal + public let arrVal: [Shared.SimpleObjectCamelCase] + public let boolVal: Bool + public let intVal: Int + public let mapVal: [String: Shared.SimpleObjectCamelCase] + @DecimalSerialized + public private(set) var numVal: Double + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let objVal: Shared.SimpleObjectCamelCase + public let strVal: String + public let type: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter objVal: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(anyVal: Shared.DeepObjectCamelCaseAnyVal, arrVal: [Shared.SimpleObjectCamelCase], boolVal: Bool, intVal: Int, mapVal: [String: Shared.SimpleObjectCamelCase], numVal: Double, objVal: Shared.SimpleObjectCamelCase, strVal: String, type: String? = nil) { + self.anyVal = anyVal + self.arrVal = arrVal + self.boolVal = boolVal + self.intVal = intVal + self.mapVal = mapVal + self._numVal = DecimalSerialized(wrappedValue: numVal) + self.objVal = objVal + self.strVal = strVal + self.type = type + } + } +} + +extension Shared.DeepObjectCamelCase: Codable { + enum CodingKeys: String, CodingKey { + case anyVal = "any_val" + case arrVal = "arr_val" + case boolVal = "bool_val" + case intVal = "int_val" + case mapVal = "map_val" + case numVal = "num_val" + case objVal = "obj_val" + case strVal = "str_val" + case type + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.anyVal = try container.decode(Shared.DeepObjectCamelCaseAnyVal.self, forKey: .anyVal) + self.arrVal = try container.decode([Shared.SimpleObjectCamelCase].self, forKey: .arrVal) + self.boolVal = try container.decode(Bool.self, forKey: .boolVal) + self.intVal = try container.decode(Int.self, forKey: .intVal) + self.mapVal = try container.decode([String: Shared.SimpleObjectCamelCase].self, forKey: .mapVal) + self._numVal = try container.decode(DecimalSerialized.self, forKey: .numVal) + self.objVal = try container.decode(Shared.SimpleObjectCamelCase.self, forKey: .objVal) + self.strVal = try container.decode(String.self, forKey: .strVal) + self.type = try container.decodeIfPresent(String.self, forKey: .type) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.anyVal, forKey: .anyVal) + try container.encode(self.arrVal, forKey: .arrVal) + try container.encode(self.boolVal, forKey: .boolVal) + try container.encode(self.intVal, forKey: .intVal) + try container.encode(self.mapVal, forKey: .mapVal) + try container.encode(self._numVal, forKey: .numVal) + try container.encode(self.objVal, forKey: .objVal) + try container.encode(self.strVal, forKey: .strVal) + try container.encodeIfPresent(self.type, forKey: .type) + } +} + +extension Shared.DeepObjectCamelCase { + var numValWrapper: DecimalSerialized { + return _numVal + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectCamelCaseAnyVal.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectCamelCaseAnyVal.swift new file mode 100755 index 000000000..7758c7690 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectCamelCaseAnyVal.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum DeepObjectCamelCaseAnyVal { + case simpleObjectCamelCase(Shared.SimpleObjectCamelCase) + case string(String) + } +} + +extension Shared.DeepObjectCamelCaseAnyVal: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObjectCamelCase(from: decoder) { + self = .simpleObjectCamelCase(value) + } else if let value = try? String(from: decoder) { + self = .string(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObjectCamelCase(let value): + try value.encode(to: encoder) + case .string(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectWithType.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectWithType.swift new file mode 100755 index 000000000..57a1ccb41 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectWithType.swift @@ -0,0 +1,80 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct DeepObjectWithType { + public let any: Shared.DeepObjectWithTypeAny + public let arr: [Shared.SimpleObject] + public let bool: Bool + public let int: Int + public let map: [String: Shared.SimpleObject] + @DecimalSerialized + public private(set) var num: Double + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public let obj: Shared.SimpleObject + public let str: String + public let type: String? = "deepObjectWithType" + + /// Creates an object with the specified parameters + /// + /// - Parameter obj: A simple object that uses all our supported primitive types and enums and has optional properties. + /// + public init(any: Shared.DeepObjectWithTypeAny, arr: [Shared.SimpleObject], bool: Bool, int: Int, map: [String: Shared.SimpleObject], num: Double, obj: Shared.SimpleObject, str: String) { + self.any = any + self.arr = arr + self.bool = bool + self.int = int + self.map = map + self._num = DecimalSerialized(wrappedValue: num) + self.obj = obj + self.str = str + } + } +} + +extension Shared.DeepObjectWithType: Codable { + enum CodingKeys: String, CodingKey { + case any + case arr + case bool + case int + case map + case num + case obj + case str + case type + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.any = try container.decode(Shared.DeepObjectWithTypeAny.self, forKey: .any) + self.arr = try container.decode([Shared.SimpleObject].self, forKey: .arr) + self.bool = try container.decode(Bool.self, forKey: .bool) + self.int = try container.decode(Int.self, forKey: .int) + self.map = try container.decode([String: Shared.SimpleObject].self, forKey: .map) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.obj = try container.decode(Shared.SimpleObject.self, forKey: .obj) + self.str = try container.decode(String.self, forKey: .str) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.any, forKey: .any) + try container.encode(self.arr, forKey: .arr) + try container.encode(self.bool, forKey: .bool) + try container.encode(self.int, forKey: .int) + try container.encode(self.map, forKey: .map) + try container.encode(self._num, forKey: .num) + try container.encode(self.obj, forKey: .obj) + try container.encode(self.str, forKey: .str) + try container.encodeIfPresent(self.type, forKey: .type) + } +} + +extension Shared.DeepObjectWithType { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectWithTypeAny.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectWithTypeAny.swift new file mode 100755 index 000000000..bb77236f7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeepObjectWithTypeAny.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum DeepObjectWithTypeAny { + case simpleObject(Shared.SimpleObject) + case string(String) + } +} + +extension Shared.DeepObjectWithTypeAny: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? String(from: decoder) { + self = .string(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .string(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConsts.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConsts.swift new file mode 100755 index 000000000..25a8c640b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConsts.swift @@ -0,0 +1,211 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct DefaultsAndConsts { + public let constBigInt: Int + public let constBigIntStr: String + public let constBool: Bool + @DateOnly + public private(set) var constDate: Date + @DateTime + public private(set) var constDateTime: Date + @DecimalSerialized + public private(set) var constDecimal: Double + public let constDecimalStr: String + public let constEnumInt: Shared.DefaultsAndConstsConstEnumInt + public let constEnumStr: Shared.DefaultsAndConstsConstEnumStr + public let constInt: Int + @DecimalSerialized + public private(set) var constNum: Double + public let constStr: String + public let constStrNull: String + public let normalField: String + public let defaultBigInt: Int? + public let defaultBigIntStr: String? + public let defaultBool: Bool? + @DateOnly + public private(set) var defaultDate: Date? + @DateTime + public private(set) var defaultDateTime: Date? + @DecimalSerialized + public private(set) var defaultDecimal: Double? + public let defaultDecimalStr: String? + public let defaultEnumInt: Shared.DefaultsAndConstsDefaultEnumInt? + public let defaultEnumStr: Shared.DefaultsAndConstsDefaultEnumStr? + public let defaultInt: Int? + @DecimalSerialized + public private(set) var defaultNum: Double? + public let defaultStr: String? + public let defaultStrNullable: String? + public let defaultStrOptional: String? + + /// Creates an object with the specified parameters + /// + /// + public init(constBigInt: Int, constBigIntStr: String, constBool: Bool, constDate: Date, constDateTime: Date, constDecimal: Double, constDecimalStr: String, constEnumInt: Shared.DefaultsAndConstsConstEnumInt, constEnumStr: Shared.DefaultsAndConstsConstEnumStr, constInt: Int, constNum: Double, constStr: String, constStrNull: String, normalField: String, defaultBigInt: Int? = nil, defaultBigIntStr: String? = nil, defaultBool: Bool? = nil, defaultDate: Date? = nil, defaultDateTime: Date? = nil, defaultDecimal: Double? = nil, defaultDecimalStr: String? = nil, defaultEnumInt: Shared.DefaultsAndConstsDefaultEnumInt? = nil, defaultEnumStr: Shared.DefaultsAndConstsDefaultEnumStr? = nil, defaultInt: Int? = nil, defaultNum: Double? = nil, defaultStr: String? = nil, defaultStrNullable: String? = nil, defaultStrOptional: String? = nil) { + self.constBigInt = constBigInt + self.constBigIntStr = constBigIntStr + self.constBool = constBool + self._constDate = DateOnly(wrappedValue: constDate) + self._constDateTime = DateTime(wrappedValue: constDateTime) + self._constDecimal = DecimalSerialized(wrappedValue: constDecimal) + self.constDecimalStr = constDecimalStr + self.constEnumInt = constEnumInt + self.constEnumStr = constEnumStr + self.constInt = constInt + self._constNum = DecimalSerialized(wrappedValue: constNum) + self.constStr = constStr + self.constStrNull = constStrNull + self.normalField = normalField + self.defaultBigInt = defaultBigInt + self.defaultBigIntStr = defaultBigIntStr + self.defaultBool = defaultBool + self._defaultDate = DateOnly(wrappedValue: defaultDate) + self._defaultDateTime = DateTime(wrappedValue: defaultDateTime) + self._defaultDecimal = DecimalSerialized(wrappedValue: defaultDecimal) + self.defaultDecimalStr = defaultDecimalStr + self.defaultEnumInt = defaultEnumInt + self.defaultEnumStr = defaultEnumStr + self.defaultInt = defaultInt + self._defaultNum = DecimalSerialized(wrappedValue: defaultNum) + self.defaultStr = defaultStr + self.defaultStrNullable = defaultStrNullable + self.defaultStrOptional = defaultStrOptional + } + } +} + +extension Shared.DefaultsAndConsts: Codable { + enum CodingKeys: String, CodingKey { + case constBigInt + case constBigIntStr + case constBool + case constDate + case constDateTime + case constDecimal + case constDecimalStr + case constEnumInt + case constEnumStr + case constInt + case constNum + case constStr + case constStrNull + case normalField + case defaultBigInt + case defaultBigIntStr + case defaultBool + case defaultDate + case defaultDateTime + case defaultDecimal + case defaultDecimalStr + case defaultEnumInt + case defaultEnumStr + case defaultInt + case defaultNum + case defaultStr + case defaultStrNullable + case defaultStrOptional + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.constBigInt = try container.decode(Int.self, forKey: .constBigInt) + self.constBigIntStr = try container.decode(String.self, forKey: .constBigIntStr) + self.constBool = try container.decode(Bool.self, forKey: .constBool) + self._constDate = try container.decode(DateOnly.self, forKey: .constDate) + self._constDateTime = try container.decode(DateTime.self, forKey: .constDateTime) + self._constDecimal = try container.decode(DecimalSerialized.self, forKey: .constDecimal) + self.constDecimalStr = try container.decode(String.self, forKey: .constDecimalStr) + self.constEnumInt = try container.decode(Shared.DefaultsAndConstsConstEnumInt.self, forKey: .constEnumInt) + self.constEnumStr = try container.decode(Shared.DefaultsAndConstsConstEnumStr.self, forKey: .constEnumStr) + self.constInt = try container.decode(Int.self, forKey: .constInt) + self._constNum = try container.decode(DecimalSerialized.self, forKey: .constNum) + self.constStr = try container.decode(String.self, forKey: .constStr) + self.constStrNull = try container.decode(String.self, forKey: .constStrNull) + self.normalField = try container.decode(String.self, forKey: .normalField) + self.defaultBigInt = try container.decodeIfPresent(Int.self, forKey: .defaultBigInt) + self.defaultBigIntStr = try container.decodeIfPresent(String.self, forKey: .defaultBigIntStr) + self.defaultBool = try container.decodeIfPresent(Bool.self, forKey: .defaultBool) + self._defaultDate = try container.decodeIfPresent(DateOnly.self, forKey: .defaultDate) ?? DateOnly(wrappedValue: nil) + self._defaultDateTime = try container.decodeIfPresent(DateTime.self, forKey: .defaultDateTime) ?? DateTime(wrappedValue: nil) + self._defaultDecimal = try container.decodeIfPresent(DecimalSerialized.self, forKey: .defaultDecimal) ?? DecimalSerialized(wrappedValue: nil) + self.defaultDecimalStr = try container.decodeIfPresent(String.self, forKey: .defaultDecimalStr) + self.defaultEnumInt = try container.decodeIfPresent(Shared.DefaultsAndConstsDefaultEnumInt.self, forKey: .defaultEnumInt) + self.defaultEnumStr = try container.decodeIfPresent(Shared.DefaultsAndConstsDefaultEnumStr.self, forKey: .defaultEnumStr) + self.defaultInt = try container.decodeIfPresent(Int.self, forKey: .defaultInt) + self._defaultNum = try container.decodeIfPresent(DecimalSerialized.self, forKey: .defaultNum) ?? DecimalSerialized(wrappedValue: nil) + self.defaultStr = try container.decodeIfPresent(String.self, forKey: .defaultStr) + self.defaultStrNullable = try container.decodeIfPresent(String.self, forKey: .defaultStrNullable) + self.defaultStrOptional = try container.decodeIfPresent(String.self, forKey: .defaultStrOptional) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.constBigInt, forKey: .constBigInt) + try container.encode(self.constBigIntStr, forKey: .constBigIntStr) + try container.encode(self.constBool, forKey: .constBool) + try container.encode(self._constDate, forKey: .constDate) + try container.encode(self._constDateTime, forKey: .constDateTime) + try container.encode(self._constDecimal, forKey: .constDecimal) + try container.encode(self.constDecimalStr, forKey: .constDecimalStr) + try container.encode(self.constEnumInt, forKey: .constEnumInt) + try container.encode(self.constEnumStr, forKey: .constEnumStr) + try container.encode(self.constInt, forKey: .constInt) + try container.encode(self._constNum, forKey: .constNum) + try container.encode(self.constStr, forKey: .constStr) + try container.encode(self.constStrNull, forKey: .constStrNull) + try container.encode(self.normalField, forKey: .normalField) + try container.encodeIfPresent(self.defaultBigInt, forKey: .defaultBigInt) + try container.encodeIfPresent(self.defaultBigIntStr, forKey: .defaultBigIntStr) + try container.encodeIfPresent(self.defaultBool, forKey: .defaultBool) + if self.defaultDate != nil { + try container.encode(self._defaultDate, forKey: .defaultDate) + } + if self.defaultDateTime != nil { + try container.encode(self._defaultDateTime, forKey: .defaultDateTime) + } + if self.defaultDecimal != nil { + try container.encode(self._defaultDecimal, forKey: .defaultDecimal) + } + try container.encodeIfPresent(self.defaultDecimalStr, forKey: .defaultDecimalStr) + try container.encodeIfPresent(self.defaultEnumInt, forKey: .defaultEnumInt) + try container.encodeIfPresent(self.defaultEnumStr, forKey: .defaultEnumStr) + try container.encodeIfPresent(self.defaultInt, forKey: .defaultInt) + if self.defaultNum != nil { + try container.encode(self._defaultNum, forKey: .defaultNum) + } + try container.encodeIfPresent(self.defaultStr, forKey: .defaultStr) + try container.encodeIfPresent(self.defaultStrNullable, forKey: .defaultStrNullable) + try container.encodeIfPresent(self.defaultStrOptional, forKey: .defaultStrOptional) + } +} + +extension Shared.DefaultsAndConsts { + var constDateWrapper: DateOnly { + return _constDate + } + var constDateTimeWrapper: DateTime { + return _constDateTime + } + var constDecimalWrapper: DecimalSerialized { + return _constDecimal + } + var constNumWrapper: DecimalSerialized { + return _constNum + } + var defaultDateWrapper: DateOnly { + return _defaultDate + } + var defaultDateTimeWrapper: DateTime { + return _defaultDateTime + } + var defaultDecimalWrapper: DecimalSerialized { + return _defaultDecimal + } + var defaultNumWrapper: DecimalSerialized { + return _defaultNum + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumInt.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumInt.swift new file mode 100755 index 000000000..065c6454a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumInt.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsConstEnumInt: Int, Codable, APIValue { + case one = 1 + case two = 2 + case three = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumStr.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumStr.swift new file mode 100755 index 000000000..0d4440812 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumStr.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsConstEnumStr: String, Codable, APIValue { + case one = "one" + case two = "two" + case three = "three" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumInt.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumInt.swift new file mode 100755 index 000000000..aac40f4ee --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumInt.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsDefaultEnumInt: Int, Codable, APIValue { + case one = 1 + case two = 2 + case three = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumStr.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumStr.swift new file mode 100755 index 000000000..b4ba73e50 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumStr.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsDefaultEnumStr: String, Codable, APIValue { + case one = "one" + case two = "two" + case three = "three" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutput.swift new file mode 100755 index 000000000..6cca9b99d --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutput.swift @@ -0,0 +1,203 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct DefaultsAndConstsOutput { + public let constBigInt: Int + public let constBigIntStr: String + public let constBool: Bool + @DateOnly + public private(set) var constDate: Date + @DateTime + public private(set) var constDateTime: Date + @DecimalSerialized + public private(set) var constDecimal: Double + public let constDecimalStr: String + public let constEnumInt: Shared.DefaultsAndConstsOutputConstEnumInt + public let constEnumStr: Shared.DefaultsAndConstsOutputConstEnumStr + public let constInt: Int + @DecimalSerialized + public private(set) var constNum: Double + public let constStr: String + public let constStrNull: String + public let defaultBigInt: Int + public let defaultBigIntStr: String + public let defaultBool: Bool + @DateOnly + public private(set) var defaultDate: Date + @DateTime + public private(set) var defaultDateTime: Date + @DecimalSerialized + public private(set) var defaultDecimal: Double + public let defaultDecimalStr: String + public let defaultEnumInt: Shared.DefaultsAndConstsOutputDefaultEnumInt + public let defaultEnumStr: Shared.DefaultsAndConstsOutputDefaultEnumStr + public let defaultInt: Int + @DecimalSerialized + public private(set) var defaultNum: Double + public let defaultStr: String + public let defaultStrNullable: String + public let normalField: String + public let defaultStrOptional: String? + + /// Creates an object with the specified parameters + /// + /// + public init(constBigInt: Int, constBigIntStr: String, constBool: Bool, constDate: Date, constDateTime: Date, constDecimal: Double, constDecimalStr: String, constEnumInt: Shared.DefaultsAndConstsOutputConstEnumInt, constEnumStr: Shared.DefaultsAndConstsOutputConstEnumStr, constInt: Int, constNum: Double, constStr: String, constStrNull: String, defaultBigInt: Int, defaultBigIntStr: String, defaultBool: Bool, defaultDate: Date, defaultDateTime: Date, defaultDecimal: Double, defaultDecimalStr: String, defaultEnumInt: Shared.DefaultsAndConstsOutputDefaultEnumInt, defaultEnumStr: Shared.DefaultsAndConstsOutputDefaultEnumStr, defaultInt: Int, defaultNum: Double, defaultStr: String, defaultStrNullable: String, normalField: String, defaultStrOptional: String? = nil) { + self.constBigInt = constBigInt + self.constBigIntStr = constBigIntStr + self.constBool = constBool + self._constDate = DateOnly(wrappedValue: constDate) + self._constDateTime = DateTime(wrappedValue: constDateTime) + self._constDecimal = DecimalSerialized(wrappedValue: constDecimal) + self.constDecimalStr = constDecimalStr + self.constEnumInt = constEnumInt + self.constEnumStr = constEnumStr + self.constInt = constInt + self._constNum = DecimalSerialized(wrappedValue: constNum) + self.constStr = constStr + self.constStrNull = constStrNull + self.defaultBigInt = defaultBigInt + self.defaultBigIntStr = defaultBigIntStr + self.defaultBool = defaultBool + self._defaultDate = DateOnly(wrappedValue: defaultDate) + self._defaultDateTime = DateTime(wrappedValue: defaultDateTime) + self._defaultDecimal = DecimalSerialized(wrappedValue: defaultDecimal) + self.defaultDecimalStr = defaultDecimalStr + self.defaultEnumInt = defaultEnumInt + self.defaultEnumStr = defaultEnumStr + self.defaultInt = defaultInt + self._defaultNum = DecimalSerialized(wrappedValue: defaultNum) + self.defaultStr = defaultStr + self.defaultStrNullable = defaultStrNullable + self.normalField = normalField + self.defaultStrOptional = defaultStrOptional + } + } +} + +extension Shared.DefaultsAndConstsOutput: Codable { + enum CodingKeys: String, CodingKey { + case constBigInt + case constBigIntStr + case constBool + case constDate + case constDateTime + case constDecimal + case constDecimalStr + case constEnumInt + case constEnumStr + case constInt + case constNum + case constStr + case constStrNull + case defaultBigInt + case defaultBigIntStr + case defaultBool + case defaultDate + case defaultDateTime + case defaultDecimal + case defaultDecimalStr + case defaultEnumInt + case defaultEnumStr + case defaultInt + case defaultNum + case defaultStr + case defaultStrNullable + case normalField + case defaultStrOptional + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.constBigInt = try container.decode(Int.self, forKey: .constBigInt) + self.constBigIntStr = try container.decode(String.self, forKey: .constBigIntStr) + self.constBool = try container.decode(Bool.self, forKey: .constBool) + self._constDate = try container.decode(DateOnly.self, forKey: .constDate) + self._constDateTime = try container.decode(DateTime.self, forKey: .constDateTime) + self._constDecimal = try container.decode(DecimalSerialized.self, forKey: .constDecimal) + self.constDecimalStr = try container.decode(String.self, forKey: .constDecimalStr) + self.constEnumInt = try container.decode(Shared.DefaultsAndConstsOutputConstEnumInt.self, forKey: .constEnumInt) + self.constEnumStr = try container.decode(Shared.DefaultsAndConstsOutputConstEnumStr.self, forKey: .constEnumStr) + self.constInt = try container.decode(Int.self, forKey: .constInt) + self._constNum = try container.decode(DecimalSerialized.self, forKey: .constNum) + self.constStr = try container.decode(String.self, forKey: .constStr) + self.constStrNull = try container.decode(String.self, forKey: .constStrNull) + self.defaultBigInt = try container.decode(Int.self, forKey: .defaultBigInt) + self.defaultBigIntStr = try container.decode(String.self, forKey: .defaultBigIntStr) + self.defaultBool = try container.decode(Bool.self, forKey: .defaultBool) + self._defaultDate = try container.decode(DateOnly.self, forKey: .defaultDate) + self._defaultDateTime = try container.decode(DateTime.self, forKey: .defaultDateTime) + self._defaultDecimal = try container.decode(DecimalSerialized.self, forKey: .defaultDecimal) + self.defaultDecimalStr = try container.decode(String.self, forKey: .defaultDecimalStr) + self.defaultEnumInt = try container.decode(Shared.DefaultsAndConstsOutputDefaultEnumInt.self, forKey: .defaultEnumInt) + self.defaultEnumStr = try container.decode(Shared.DefaultsAndConstsOutputDefaultEnumStr.self, forKey: .defaultEnumStr) + self.defaultInt = try container.decode(Int.self, forKey: .defaultInt) + self._defaultNum = try container.decode(DecimalSerialized.self, forKey: .defaultNum) + self.defaultStr = try container.decode(String.self, forKey: .defaultStr) + self.defaultStrNullable = try container.decode(String.self, forKey: .defaultStrNullable) + self.normalField = try container.decode(String.self, forKey: .normalField) + self.defaultStrOptional = try container.decodeIfPresent(String.self, forKey: .defaultStrOptional) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.constBigInt, forKey: .constBigInt) + try container.encode(self.constBigIntStr, forKey: .constBigIntStr) + try container.encode(self.constBool, forKey: .constBool) + try container.encode(self._constDate, forKey: .constDate) + try container.encode(self._constDateTime, forKey: .constDateTime) + try container.encode(self._constDecimal, forKey: .constDecimal) + try container.encode(self.constDecimalStr, forKey: .constDecimalStr) + try container.encode(self.constEnumInt, forKey: .constEnumInt) + try container.encode(self.constEnumStr, forKey: .constEnumStr) + try container.encode(self.constInt, forKey: .constInt) + try container.encode(self._constNum, forKey: .constNum) + try container.encode(self.constStr, forKey: .constStr) + try container.encode(self.constStrNull, forKey: .constStrNull) + try container.encode(self.defaultBigInt, forKey: .defaultBigInt) + try container.encode(self.defaultBigIntStr, forKey: .defaultBigIntStr) + try container.encode(self.defaultBool, forKey: .defaultBool) + try container.encode(self._defaultDate, forKey: .defaultDate) + try container.encode(self._defaultDateTime, forKey: .defaultDateTime) + try container.encode(self._defaultDecimal, forKey: .defaultDecimal) + try container.encode(self.defaultDecimalStr, forKey: .defaultDecimalStr) + try container.encode(self.defaultEnumInt, forKey: .defaultEnumInt) + try container.encode(self.defaultEnumStr, forKey: .defaultEnumStr) + try container.encode(self.defaultInt, forKey: .defaultInt) + try container.encode(self._defaultNum, forKey: .defaultNum) + try container.encode(self.defaultStr, forKey: .defaultStr) + try container.encode(self.defaultStrNullable, forKey: .defaultStrNullable) + try container.encode(self.normalField, forKey: .normalField) + try container.encodeIfPresent(self.defaultStrOptional, forKey: .defaultStrOptional) + } +} + +extension Shared.DefaultsAndConstsOutput { + var constDateWrapper: DateOnly { + return _constDate + } + var constDateTimeWrapper: DateTime { + return _constDateTime + } + var constDecimalWrapper: DecimalSerialized { + return _constDecimal + } + var constNumWrapper: DecimalSerialized { + return _constNum + } + var defaultDateWrapper: DateOnly { + return _defaultDate + } + var defaultDateTimeWrapper: DateTime { + return _defaultDateTime + } + var defaultDecimalWrapper: DecimalSerialized { + return _defaultDecimal + } + var defaultNumWrapper: DecimalSerialized { + return _defaultNum + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumInt.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumInt.swift new file mode 100755 index 000000000..89a328fe8 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumInt.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsOutputConstEnumInt: Int, Codable, APIValue { + case one = 1 + case two = 2 + case three = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumStr.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumStr.swift new file mode 100755 index 000000000..168b31fe9 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumStr.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsOutputConstEnumStr: String, Codable, APIValue { + case one = "one" + case two = "two" + case three = "three" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumInt.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumInt.swift new file mode 100755 index 000000000..f0aa48365 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumInt.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsOutputDefaultEnumInt: Int, Codable, APIValue { + case one = 1 + case two = 2 + case three = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumStr.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumStr.swift new file mode 100755 index 000000000..ddbe8a2a1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumStr.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum DefaultsAndConstsOutputDefaultEnumStr: String, Codable, APIValue { + case one = "one" + case two = "two" + case three = "three" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedFieldInObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedFieldInObject.swift new file mode 100755 index 000000000..cf3cdae5e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedFieldInObject.swift @@ -0,0 +1,37 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct DeprecatedFieldInObject { + + @available(*, deprecated, message: "This enum is deprecated") + public let deprecatedEnum: Shared.DeprecatedFieldInObjectDeprecatedEnum? + + @available(*, deprecated, renamed: "newField", message: "This will be removed in a future release, please migrate away from it as soon as possible") + public let deprecatedField: String? + public let newField: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter deprecatedEnum: + /// - Parameter deprecatedField: + /// + @available(*, deprecated, message: "This initializer uses deprecated fields and will be removed in a future version.") + public init(deprecatedEnum: Shared.DeprecatedFieldInObjectDeprecatedEnum? = nil, deprecatedField: String? = nil, newField: String? = nil) { + self.deprecatedEnum = deprecatedEnum + self.deprecatedField = deprecatedField + self.newField = newField + } + } +} + +extension Shared.DeprecatedFieldInObject: Codable { + enum CodingKeys: String, CodingKey { + case deprecatedEnum + case deprecatedField + case newField + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedFieldInObjectDeprecatedEnum.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedFieldInObjectDeprecatedEnum.swift new file mode 100755 index 000000000..25dd013a4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedFieldInObjectDeprecatedEnum.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + + @available(*, deprecated, message: "This enum is deprecated") + public enum DeprecatedFieldInObjectDeprecatedEnum: String, Codable, APIValue { + case a = "a" + case b = "b" + case c = "c" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedObject.swift new file mode 100755 index 000000000..deeff471e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/DeprecatedObject.swift @@ -0,0 +1,26 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + + @available(*, deprecated, message: "This object is deprecated") + public struct DeprecatedObject { + public let str: String? + + /// Creates an object with the specified parameters + /// + /// + public init(str: String? = nil) { + self.str = str + } + } +} + +@available(*, deprecated) +extension Shared.DeprecatedObject: Codable { + enum CodingKeys: String, CodingKey { + case str + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/EmptyObjectParam.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/EmptyObjectParam.swift new file mode 100755 index 000000000..94f38ae0a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/EmptyObjectParam.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct EmptyObjectParam { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Shared.EmptyObjectParam: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/Enum.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/Enum.swift new file mode 100755 index 000000000..d2cb9167f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/Enum.swift @@ -0,0 +1,13 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A string based enum + public enum Enum: String, Codable, APIValue { + case one = "one" + case two = "two" + case three = "three" + case fourAndMore = "four_and_more" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/Error.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/Error.swift new file mode 100755 index 000000000..687a52a17 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/Error.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct Error { + public let code: String? + public let message: String? + public let type: Shared.ErrorType? + + /// Creates an object with the specified parameters + /// + /// + public init(code: String? = nil, message: String? = nil, type: Shared.ErrorType? = nil) { + self.code = code + self.message = message + self.type = type + } + } +} + +extension Shared.Error: Codable { + enum CodingKeys: String, CodingKey { + case code + case message + case type + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ErrorType.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ErrorType.swift new file mode 100755 index 000000000..92e0ac37e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ErrorType.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum ErrorType: String, Codable, APIValue { + case notFound = "not_found" + case invalid = "invalid" + case `internal` = "internal" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleBoat.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleBoat.swift new file mode 100755 index 000000000..cbcae7c05 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleBoat.swift @@ -0,0 +1,72 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ExampleBoat { + @DecimalSerialized + public private(set) var length: Double + public let name: String + public let type: Shared.ExampleBoatType + @DateTime + public private(set) var createdAt: Date? + @DateTime + public private(set) var updatedAt: Date? + + /// Creates an object with the specified parameters + /// + /// + public init(length: Double, name: String, type: Shared.ExampleBoatType, createdAt: Date? = nil, updatedAt: Date? = nil) { + self._length = DecimalSerialized(wrappedValue: length) + self.name = name + self.type = type + self._createdAt = DateTime(wrappedValue: createdAt) + self._updatedAt = DateTime(wrappedValue: updatedAt) + } + } +} + +extension Shared.ExampleBoat: Codable { + enum CodingKeys: String, CodingKey { + case length + case name + case type + case createdAt + case updatedAt + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self._length = try container.decode(DecimalSerialized.self, forKey: .length) + self.name = try container.decode(String.self, forKey: .name) + self.type = try container.decode(Shared.ExampleBoatType.self, forKey: .type) + self._createdAt = try container.decodeIfPresent(DateTime.self, forKey: .createdAt) ?? DateTime(wrappedValue: nil) + self._updatedAt = try container.decodeIfPresent(DateTime.self, forKey: .updatedAt) ?? DateTime(wrappedValue: nil) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self._length, forKey: .length) + try container.encode(self.name, forKey: .name) + try container.encode(self.type, forKey: .type) + if self.createdAt != nil { + try container.encode(self._createdAt, forKey: .createdAt) + } + if self.updatedAt != nil { + try container.encode(self._updatedAt, forKey: .updatedAt) + } + } +} + +extension Shared.ExampleBoat { + var createdAtWrapper: DateTime { + return _createdAt + } + var lengthWrapper: DecimalSerialized { + return _length + } + var updatedAtWrapper: DateTime { + return _updatedAt + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleBoatType.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleBoatType.swift new file mode 100755 index 000000000..aa1162bde --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleBoatType.swift @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum ExampleBoatType: String, Codable, APIValue { + case boat = "boat" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleCar.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleCar.swift new file mode 100755 index 000000000..7826f20c0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleCar.swift @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ExampleCar { + public let make: String + public let model: String + public let name: String + public let type: Shared.ExampleCarType + @DecimalSerialized + public private(set) var year: Double + @DateTime + public private(set) var createdAt: Date? + @DateTime + public private(set) var updatedAt: Date? + + /// Creates an object with the specified parameters + /// + /// + public init(make: String, model: String, name: String, type: Shared.ExampleCarType, year: Double, createdAt: Date? = nil, updatedAt: Date? = nil) { + self.make = make + self.model = model + self.name = name + self.type = type + self._year = DecimalSerialized(wrappedValue: year) + self._createdAt = DateTime(wrappedValue: createdAt) + self._updatedAt = DateTime(wrappedValue: updatedAt) + } + } +} + +extension Shared.ExampleCar: Codable { + enum CodingKeys: String, CodingKey { + case make + case model + case name + case type + case year + case createdAt + case updatedAt + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.make = try container.decode(String.self, forKey: .make) + self.model = try container.decode(String.self, forKey: .model) + self.name = try container.decode(String.self, forKey: .name) + self.type = try container.decode(Shared.ExampleCarType.self, forKey: .type) + self._year = try container.decode(DecimalSerialized.self, forKey: .year) + self._createdAt = try container.decodeIfPresent(DateTime.self, forKey: .createdAt) ?? DateTime(wrappedValue: nil) + self._updatedAt = try container.decodeIfPresent(DateTime.self, forKey: .updatedAt) ?? DateTime(wrappedValue: nil) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.make, forKey: .make) + try container.encode(self.model, forKey: .model) + try container.encode(self.name, forKey: .name) + try container.encode(self.type, forKey: .type) + try container.encode(self._year, forKey: .year) + if self.createdAt != nil { + try container.encode(self._createdAt, forKey: .createdAt) + } + if self.updatedAt != nil { + try container.encode(self._updatedAt, forKey: .updatedAt) + } + } +} + +extension Shared.ExampleCar { + var createdAtWrapper: DateTime { + return _createdAt + } + var updatedAtWrapper: DateTime { + return _updatedAt + } + var yearWrapper: DecimalSerialized { + return _year + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleCarType.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleCarType.swift new file mode 100755 index 000000000..c2ae0b7c4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleCarType.swift @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum ExampleCarType: String, Codable, APIValue { + case car = "car" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResource.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResource.swift new file mode 100755 index 000000000..def2b7ece --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResource.swift @@ -0,0 +1,103 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ExampleResource { + public let chocolates: [Shared.ExampleResourceChocolates] + public let id: String + public let name: String + public let vehicle: Shared.ExampleVehicle + public let arrayOfNumber: [Double]? + public let arrayOfString: [String]? + @DateTime + public private(set) var createdAt: Date? + public let enumNumber: Shared.ExampleResourceEnumNumber? + public let enumStr: Shared.ExampleResourceEnumStr? + public let mapOfInteger: [String: Int]? + public let mapOfString: [String: String]? + @DateTime + public private(set) var updatedAt: Date? + + /// Creates an object with the specified parameters + /// + /// + public init(chocolates: [Shared.ExampleResourceChocolates], id: String, name: String, vehicle: Shared.ExampleVehicle, arrayOfNumber: [Double]? = nil, arrayOfString: [String]? = nil, createdAt: Date? = nil, enumNumber: Shared.ExampleResourceEnumNumber? = nil, enumStr: Shared.ExampleResourceEnumStr? = nil, mapOfInteger: [String: Int]? = nil, mapOfString: [String: String]? = nil, updatedAt: Date? = nil) { + self.chocolates = chocolates + self.id = id + self.name = name + self.vehicle = vehicle + self.arrayOfNumber = arrayOfNumber + self.arrayOfString = arrayOfString + self._createdAt = DateTime(wrappedValue: createdAt) + self.enumNumber = enumNumber + self.enumStr = enumStr + self.mapOfInteger = mapOfInteger + self.mapOfString = mapOfString + self._updatedAt = DateTime(wrappedValue: updatedAt) + } + } +} + +extension Shared.ExampleResource: Codable { + enum CodingKeys: String, CodingKey { + case chocolates + case id + case name + case vehicle + case arrayOfNumber + case arrayOfString + case createdAt + case enumNumber + case enumStr + case mapOfInteger + case mapOfString + case updatedAt + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.chocolates = try container.decode([Shared.ExampleResourceChocolates].self, forKey: .chocolates) + self.id = try container.decode(String.self, forKey: .id) + self.name = try container.decode(String.self, forKey: .name) + self.vehicle = try container.decode(Shared.ExampleVehicle.self, forKey: .vehicle) + self.arrayOfNumber = try container.decodeIfPresent([Double].self, forKey: .arrayOfNumber) + self.arrayOfString = try container.decodeIfPresent([String].self, forKey: .arrayOfString) + self._createdAt = try container.decodeIfPresent(DateTime.self, forKey: .createdAt) ?? DateTime(wrappedValue: nil) + self.enumNumber = try container.decodeIfPresent(Shared.ExampleResourceEnumNumber.self, forKey: .enumNumber) + self.enumStr = try container.decodeIfPresent(Shared.ExampleResourceEnumStr.self, forKey: .enumStr) + self.mapOfInteger = try container.decodeIfPresent([String: Int].self, forKey: .mapOfInteger) + self.mapOfString = try container.decodeIfPresent([String: String].self, forKey: .mapOfString) + self._updatedAt = try container.decodeIfPresent(DateTime.self, forKey: .updatedAt) ?? DateTime(wrappedValue: nil) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.chocolates, forKey: .chocolates) + try container.encode(self.id, forKey: .id) + try container.encode(self.name, forKey: .name) + try container.encode(self.vehicle, forKey: .vehicle) + try container.encodeIfPresent(self.arrayOfNumber, forKey: .arrayOfNumber) + try container.encodeIfPresent(self.arrayOfString, forKey: .arrayOfString) + if self.createdAt != nil { + try container.encode(self._createdAt, forKey: .createdAt) + } + try container.encodeIfPresent(self.enumNumber, forKey: .enumNumber) + try container.encodeIfPresent(self.enumStr, forKey: .enumStr) + try container.encodeIfPresent(self.mapOfInteger, forKey: .mapOfInteger) + try container.encodeIfPresent(self.mapOfString, forKey: .mapOfString) + if self.updatedAt != nil { + try container.encode(self._updatedAt, forKey: .updatedAt) + } + } +} + +extension Shared.ExampleResource { + var createdAtWrapper: DateTime { + return _createdAt + } + var updatedAtWrapper: DateTime { + return _updatedAt + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceChocolates.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceChocolates.swift new file mode 100755 index 000000000..9c711454b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceChocolates.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ExampleResourceChocolates { + public let description: String + + /// Creates an object with the specified parameters + /// + /// + public init(description: String) { + self.description = description + } + } +} + +extension Shared.ExampleResourceChocolates: Codable { + enum CodingKeys: String, CodingKey { + case description + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceEnumNumber.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceEnumNumber.swift new file mode 100755 index 000000000..b9bf12e0e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceEnumNumber.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum ExampleResourceEnumNumber: Int, Codable, APIValue { + case one = 1 + case two = 2 + case three = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceEnumStr.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceEnumStr.swift new file mode 100755 index 000000000..3c79da9f0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleResourceEnumStr.swift @@ -0,0 +1,11 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum ExampleResourceEnumStr: String, Codable, APIValue { + case one = "one" + case two = "two" + case three = "three" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleVehicle.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleVehicle.swift new file mode 100755 index 000000000..b6de51505 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ExampleVehicle.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum ExampleVehicle { + case exampleBoat(Shared.ExampleBoat) + case exampleCar(Shared.ExampleCar) + } +} + +extension Shared.ExampleVehicle: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.ExampleBoat(from: decoder) { + self = .exampleBoat(value) + } else if let value = try? Shared.ExampleCar(from: decoder) { + self = .exampleCar(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .exampleBoat(let value): + try value.encode(to: encoder) + case .exampleCar(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/FakerFormattedStrings.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/FakerFormattedStrings.swift new file mode 100755 index 000000000..113f91863 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/FakerFormattedStrings.swift @@ -0,0 +1,111 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A set of strings with format values that lead to relevant examples being generated for them + public struct FakerFormattedStrings { + /// A field that will have an address generated as example + public let addressFormat: String? + /// A field that will have a directory path generated as example + public let directoryFormat: String? + /// A field that will have a domain name generated as example + public let domainFormat: String? + /// A field that will have an email address generated as example + public let emailFormat: String? + /// A field that will have a filename generated as example + public let filenameFormat: String? + /// A field that will have a file path generated as example + public let filepathFormat: String? + /// A field that will have a image url generated as example + public let imageFormat: String? + /// A field that will have an IPv4 address generated as example + public let ipv4Format: String? + /// A field that will have an IPv6 address generated as example + public let ipv6Format: String? + /// A field that will have a JSON generated as example + public let jsonFormat: String? + /// A field that will have a MAC address generated as example + public let macFormat: String? + /// A field that will have a fake password generated as example + public let passwordFormat: String? + /// A field that will have a phone number generated as example + public let phoneFormat: String? + /// A field that will have a timezone generated as example + public let timezoneFormat: String? + /// A field that will have random words generated as example + public let unknownFormat: String? + /// A field that will have a URL generated as example + public let urlFormat: String? + /// A field that will have a UUID generated as example + public let uuidFormat: String? + /// A field that will have a postal code generated as example + public let zipcodeFormat: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter addressFormat: A field that will have an address generated as example + /// - Parameter directoryFormat: A field that will have a directory path generated as example + /// - Parameter domainFormat: A field that will have a domain name generated as example + /// - Parameter emailFormat: A field that will have an email address generated as example + /// - Parameter filenameFormat: A field that will have a filename generated as example + /// - Parameter filepathFormat: A field that will have a file path generated as example + /// - Parameter imageFormat: A field that will have a image url generated as example + /// - Parameter ipv4Format: A field that will have an IPv4 address generated as example + /// - Parameter ipv6Format: A field that will have an IPv6 address generated as example + /// - Parameter jsonFormat: A field that will have a JSON generated as example + /// - Parameter macFormat: A field that will have a MAC address generated as example + /// - Parameter passwordFormat: A field that will have a fake password generated as example + /// - Parameter phoneFormat: A field that will have a phone number generated as example + /// - Parameter timezoneFormat: A field that will have a timezone generated as example + /// - Parameter unknownFormat: A field that will have random words generated as example + /// - Parameter urlFormat: A field that will have a URL generated as example + /// - Parameter uuidFormat: A field that will have a UUID generated as example + /// - Parameter zipcodeFormat: A field that will have a postal code generated as example + /// + public init(addressFormat: String? = nil, directoryFormat: String? = nil, domainFormat: String? = nil, emailFormat: String? = nil, filenameFormat: String? = nil, filepathFormat: String? = nil, imageFormat: String? = nil, ipv4Format: String? = nil, ipv6Format: String? = nil, jsonFormat: String? = nil, macFormat: String? = nil, passwordFormat: String? = nil, phoneFormat: String? = nil, timezoneFormat: String? = nil, unknownFormat: String? = nil, urlFormat: String? = nil, uuidFormat: String? = nil, zipcodeFormat: String? = nil) { + self.addressFormat = addressFormat + self.directoryFormat = directoryFormat + self.domainFormat = domainFormat + self.emailFormat = emailFormat + self.filenameFormat = filenameFormat + self.filepathFormat = filepathFormat + self.imageFormat = imageFormat + self.ipv4Format = ipv4Format + self.ipv6Format = ipv6Format + self.jsonFormat = jsonFormat + self.macFormat = macFormat + self.passwordFormat = passwordFormat + self.phoneFormat = phoneFormat + self.timezoneFormat = timezoneFormat + self.unknownFormat = unknownFormat + self.urlFormat = urlFormat + self.uuidFormat = uuidFormat + self.zipcodeFormat = zipcodeFormat + } + } +} + +extension Shared.FakerFormattedStrings: Codable { + enum CodingKeys: String, CodingKey { + case addressFormat + case directoryFormat + case domainFormat + case emailFormat + case filenameFormat + case filepathFormat + case imageFormat + case ipv4Format + case ipv6Format + case jsonFormat + case macFormat + case passwordFormat + case phoneFormat + case timezoneFormat + case unknownFormat + case urlFormat + case uuidFormat + case zipcodeFormat + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/FakerStrings.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/FakerStrings.swift new file mode 100755 index 000000000..c9b4e1b62 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/FakerStrings.swift @@ -0,0 +1,180 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A set of strings with fieldnames that lead to relevant examples being generated for them + public struct FakerStrings { + public let account: String? + public let address: String? + public let amount: String? + public let avatar: String? + public let city: String? + public let color: String? + public let comment: String? + public let company: String? + public let country: String? + public let countryCode: String? + public let currency: String? + public let datatype: String? + public let `default`: String? + public let description: String? + public let directory: String? + public let domainName: String? + public let emailAddr: String? + public let `extension`: String? + public let filename: String? + public let filepath: String? + public let filetype: String? + public let firstName: String? + public let fullName: String? + public let gender: String? + public let iban: String? + public let id: String? + public let iPv4: String? + public let iPv6: String? + public let job: String? + public let json: String? + public let key: String? + public let lastName: String? + public let latitude: String? + public let locale: String? + public let longitude: String? + public let mac: String? + public let manufacturer: String? + public let material: String? + public let middleName: String? + public let model: String? + public let password: String? + public let phone: String? + public let pin: String? + public let postalCode: String? + public let price: String? + public let product: String? + public let sex: String? + public let street: String? + public let timezone: String? + public let unit: String? + public let url: String? + public let username: String? + public let uuid: String? + + /// Creates an object with the specified parameters + /// + /// + public init(account: String? = nil, address: String? = nil, amount: String? = nil, avatar: String? = nil, city: String? = nil, color: String? = nil, comment: String? = nil, company: String? = nil, country: String? = nil, countryCode: String? = nil, currency: String? = nil, datatype: String? = nil, `default`: String? = nil, description: String? = nil, directory: String? = nil, domainName: String? = nil, emailAddr: String? = nil, `extension`: String? = nil, filename: String? = nil, filepath: String? = nil, filetype: String? = nil, firstName: String? = nil, fullName: String? = nil, gender: String? = nil, iban: String? = nil, id: String? = nil, iPv4: String? = nil, iPv6: String? = nil, job: String? = nil, json: String? = nil, key: String? = nil, lastName: String? = nil, latitude: String? = nil, locale: String? = nil, longitude: String? = nil, mac: String? = nil, manufacturer: String? = nil, material: String? = nil, middleName: String? = nil, model: String? = nil, password: String? = nil, phone: String? = nil, pin: String? = nil, postalCode: String? = nil, price: String? = nil, product: String? = nil, sex: String? = nil, street: String? = nil, timezone: String? = nil, unit: String? = nil, url: String? = nil, username: String? = nil, uuid: String? = nil) { + self.account = account + self.address = address + self.amount = amount + self.avatar = avatar + self.city = city + self.color = color + self.comment = comment + self.company = company + self.country = country + self.countryCode = countryCode + self.currency = currency + self.datatype = datatype + self.`default` = `default` + self.description = description + self.directory = directory + self.domainName = domainName + self.emailAddr = emailAddr + self.`extension` = `extension` + self.filename = filename + self.filepath = filepath + self.filetype = filetype + self.firstName = firstName + self.fullName = fullName + self.gender = gender + self.iban = iban + self.id = id + self.iPv4 = iPv4 + self.iPv6 = iPv6 + self.job = job + self.json = json + self.key = key + self.lastName = lastName + self.latitude = latitude + self.locale = locale + self.longitude = longitude + self.mac = mac + self.manufacturer = manufacturer + self.material = material + self.middleName = middleName + self.model = model + self.password = password + self.phone = phone + self.pin = pin + self.postalCode = postalCode + self.price = price + self.product = product + self.sex = sex + self.street = street + self.timezone = timezone + self.unit = unit + self.url = url + self.username = username + self.uuid = uuid + } + } +} + +extension Shared.FakerStrings: Codable { + enum CodingKeys: String, CodingKey { + case account + case address + case amount + case avatar + case city = "City" + case color + case comment + case company + case country + case countryCode = "country_code" + case currency + case datatype + case `default` = "default" + case description + case directory + case domainName + case emailAddr + case `extension` = "extension" + case filename + case filepath + case filetype + case firstName + case fullName + case gender + case iban = "IBAN" + case id = "ID" + case iPv4 = "IPv4" + case iPv6 = "IPv6" + case job + case json + case key + case lastName + case latitude + case locale + case longitude + case mac + case manufacturer + case material + case middleName + case model + case password + case phone + case pin + case postalCode = "postal-code" + case price + case product + case sex + case street + case timezone + case unit + case url + case username + case uuid + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/FileResource.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/FileResource.swift new file mode 100755 index 000000000..fd126b64a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/FileResource.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct FileResource { + public let id: String + + /// Creates an object with the specified parameters + /// + /// + public init(id: String) { + self.id = id + } + } +} + +extension Shared.FileResource: Codable { + enum CodingKeys: String, CodingKey { + case id + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/FlattenedTypedObject1.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/FlattenedTypedObject1.swift new file mode 100755 index 000000000..e0351ad80 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/FlattenedTypedObject1.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum FlattenedTypedObject1 { + case typedObject1(Shared.TypedObject1) + } +} + +extension Shared.FlattenedTypedObject1: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObject.swift new file mode 100755 index 000000000..a9ed286f0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObject.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct HttpBinSimpleJsonObject { + public let slideshow: Shared.HttpBinSimpleJsonObjectSlideshow + + /// Creates an object with the specified parameters + /// + /// + public init(slideshow: Shared.HttpBinSimpleJsonObjectSlideshow) { + self.slideshow = slideshow + } + } +} + +extension Shared.HttpBinSimpleJsonObject: Codable { + enum CodingKeys: String, CodingKey { + case slideshow + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshow.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshow.swift new file mode 100755 index 000000000..4d888822c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshow.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct HttpBinSimpleJsonObjectSlideshow { + public let author: String + public let date: String + public let slides: [Shared.HttpBinSimpleJsonObjectSlideshowSlides] + public let title: String + + /// Creates an object with the specified parameters + /// + /// + public init(author: String, date: String, slides: [Shared.HttpBinSimpleJsonObjectSlideshowSlides], title: String) { + self.author = author + self.date = date + self.slides = slides + self.title = title + } + } +} + +extension Shared.HttpBinSimpleJsonObjectSlideshow: Codable { + enum CodingKeys: String, CodingKey { + case author + case date + case slides + case title + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.swift new file mode 100755 index 000000000..effce622b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct HttpBinSimpleJsonObjectSlideshowSlides { + public let title: String + public let type: String + public let items: [String]? + + /// Creates an object with the specified parameters + /// + /// + public init(title: String, type: String, items: [String]? = nil) { + self.title = title + self.type = type + self.items = items + } + } +} + +extension Shared.HttpBinSimpleJsonObjectSlideshowSlides: Codable { + enum CodingKeys: String, CodingKey { + case title + case type + case items + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/LimitOffsetConfig.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/LimitOffsetConfig.swift new file mode 100755 index 000000000..6e62c37db --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/LimitOffsetConfig.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct LimitOffsetConfig { + public let limit: Int? + public let offset: Int? + public let page: Int? + + /// Creates an object with the specified parameters + /// + /// + public init(limit: Int? = nil, offset: Int? = nil, page: Int? = nil) { + self.limit = limit + self.offset = offset + self.page = page + } + } +} + +extension Shared.LimitOffsetConfig: Codable { + enum CodingKeys: String, CodingKey { + case limit + case offset + case page + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/MapObjValue.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/MapObjValue.swift new file mode 100755 index 000000000..a8b758535 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/MapObjValue.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct MapObjValue { + public let json: [String: Shared.SimpleObject]? + public let `required`: AnyValue? + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: Shared.SimpleObject]? = nil, `required`: AnyValue? = nil) { + self.json = json + self.`required` = `required` + } + } +} + +extension Shared.MapObjValue: Codable { + enum CodingKeys: String, CodingKey { + case json + case `required` = "required" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/MapObjValueCamelCase.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/MapObjValueCamelCase.swift new file mode 100755 index 000000000..f04acd474 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/MapObjValueCamelCase.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct MapObjValueCamelCase { + public let json: [String: Shared.SimpleObjectCamelCase]? + public let `required`: AnyValue? + + /// Creates an object with the specified parameters + /// + /// + public init(json: [String: Shared.SimpleObjectCamelCase]? = nil, `required`: AnyValue? = nil) { + self.json = json + self.`required` = `required` + } + } +} + +extension Shared.MapObjValueCamelCase: Codable { + enum CodingKeys: String, CodingKey { + case json + case `required` = "required" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/NullableObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableObject.swift new file mode 100755 index 000000000..e75d77847 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableObject.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct NullableObject { + public let `required`: Int + public let `optional`: String? + + /// Creates an object with the specified parameters + /// + /// + public init(`required`: Int, `optional`: String? = nil) { + self.`required` = `required` + self.`optional` = `optional` + } + } +} + +extension Shared.NullableObject: Codable { + enum CodingKeys: String, CodingKey { + case `required` = "required" + case `optional` = "optional" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObject.swift new file mode 100755 index 000000000..17828fbad --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObject.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct NullableOneOfRefInObject { + public let nullableOneOfOne: Shared.TypedObject1 + public let nullableOneOfTwo: Shared.NullableOneOfRefInObjectNullableOneOfTwo + public let oneOfOne: Shared.NullableOneOfRefInObjectOneOfOne + + /// Creates an object with the specified parameters + /// + /// + public init(nullableOneOfOne: Shared.TypedObject1, nullableOneOfTwo: Shared.NullableOneOfRefInObjectNullableOneOfTwo, oneOfOne: Shared.NullableOneOfRefInObjectOneOfOne) { + self.nullableOneOfOne = nullableOneOfOne + self.nullableOneOfTwo = nullableOneOfTwo + self.oneOfOne = oneOfOne + } + } +} + +extension Shared.NullableOneOfRefInObject: Codable { + enum CodingKeys: String, CodingKey { + case nullableOneOfOne = "NullableOneOfOne" + case nullableOneOfTwo = "NullableOneOfTwo" + case oneOfOne = "OneOfOne" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObjectNullableOneOfTwo.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObjectNullableOneOfTwo.swift new file mode 100755 index 000000000..bb4e02414 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObjectNullableOneOfTwo.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum NullableOneOfRefInObjectNullableOneOfTwo { + case typedObject1(Shared.TypedObject1) + case typedObject2(Shared.TypedObject2) + } +} + +extension Shared.NullableOneOfRefInObjectNullableOneOfTwo: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else if let value = try? Shared.TypedObject2(from: decoder) { + self = .typedObject2(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + case .typedObject2(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObjectOneOfOne.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObjectOneOfOne.swift new file mode 100755 index 000000000..6e5bf1085 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfRefInObjectOneOfOne.swift @@ -0,0 +1,28 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum NullableOneOfRefInObjectOneOfOne { + case typedObject1(Shared.TypedObject1) + } +} + +extension Shared.NullableOneOfRefInObjectOneOfOne: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfTypeInObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfTypeInObject.swift new file mode 100755 index 000000000..71f09cda1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfTypeInObject.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct NullableOneOfTypeInObject { + public let nullableOneOfOne: Bool + public let nullableOneOfTwo: Shared.NullableOneOfTypeInObjectNullableOneOfTwo + public let oneOfOne: Bool + + /// Creates an object with the specified parameters + /// + /// + public init(nullableOneOfOne: Bool, nullableOneOfTwo: Shared.NullableOneOfTypeInObjectNullableOneOfTwo, oneOfOne: Bool) { + self.nullableOneOfOne = nullableOneOfOne + self.nullableOneOfTwo = nullableOneOfTwo + self.oneOfOne = oneOfOne + } + } +} + +extension Shared.NullableOneOfTypeInObject: Codable { + enum CodingKeys: String, CodingKey { + case nullableOneOfOne = "NullableOneOfOne" + case nullableOneOfTwo = "NullableOneOfTwo" + case oneOfOne = "OneOfOne" + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfTypeInObjectNullableOneOfTwo.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfTypeInObjectNullableOneOfTwo.swift new file mode 100755 index 000000000..8eabba371 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/NullableOneOfTypeInObjectNullableOneOfTwo.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum NullableOneOfTypeInObjectNullableOneOfTwo { + case bool(Bool) + case integer(Int) + } +} + +extension Shared.NullableOneOfTypeInObjectNullableOneOfTwo: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Bool(from: decoder) { + self = .bool(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .bool(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ObjWithZeroValueComplexTypePtrs.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ObjWithZeroValueComplexTypePtrs.swift new file mode 100755 index 000000000..f92a0367f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ObjWithZeroValueComplexTypePtrs.swift @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ObjWithZeroValueComplexTypePtrs { + public let bigint: Int? + public let bigintStr: String? + /// A date property. + @DateOnly + public private(set) var date: Date? + /// A date-time property. + @DateTime + public private(set) var dateTime: Date? + @DecimalSerialized + public private(set) var decimal: Double? + + /// Creates an object with the specified parameters + /// + /// - Parameter date: A date property. + /// - Parameter dateTime: A date-time property. + /// + public init(bigint: Int? = nil, bigintStr: String? = nil, date: Date? = nil, dateTime: Date? = nil, decimal: Double? = nil) { + self.bigint = bigint + self.bigintStr = bigintStr + self._date = DateOnly(wrappedValue: date) + self._dateTime = DateTime(wrappedValue: dateTime) + self._decimal = DecimalSerialized(wrappedValue: decimal) + } + } +} + +extension Shared.ObjWithZeroValueComplexTypePtrs: Codable { + enum CodingKeys: String, CodingKey { + case bigint + case bigintStr + case date + case dateTime + case decimal + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bigint = try container.decodeIfPresent(Int.self, forKey: .bigint) + self.bigintStr = try container.decodeIfPresent(String.self, forKey: .bigintStr) + self._date = try container.decodeIfPresent(DateOnly.self, forKey: .date) ?? DateOnly(wrappedValue: nil) + self._dateTime = try container.decodeIfPresent(DateTime.self, forKey: .dateTime) ?? DateTime(wrappedValue: nil) + self._decimal = try container.decodeIfPresent(DecimalSerialized.self, forKey: .decimal) ?? DecimalSerialized(wrappedValue: nil) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(self.bigint, forKey: .bigint) + try container.encodeIfPresent(self.bigintStr, forKey: .bigintStr) + if self.date != nil { + try container.encode(self._date, forKey: .date) + } + if self.dateTime != nil { + try container.encode(self._dateTime, forKey: .dateTime) + } + if self.decimal != nil { + try container.encode(self._decimal, forKey: .decimal) + } + } +} + +extension Shared.ObjWithZeroValueComplexTypePtrs { + var dateWrapper: DateOnly { + return _date + } + var dateTimeWrapper: DateTime { + return _dateTime + } + var decimalWrapper: DecimalSerialized { + return _decimal + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ObjectCircularReferenceObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ObjectCircularReferenceObject.swift new file mode 100755 index 000000000..f625e0e54 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ObjectCircularReferenceObject.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public final class ObjectCircularReferenceObject { + public let circular: Shared.ObjectCircularReferenceObject? + + /// Creates an object with the specified parameters + /// + /// + public init(circular: Shared.ObjectCircularReferenceObject? = nil) { + self.circular = circular + } + } +} + +extension Shared.ObjectCircularReferenceObject: Codable { + enum CodingKeys: String, CodingKey { + case circular + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfCircularReferenceObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfCircularReferenceObject.swift new file mode 100755 index 000000000..946e0e641 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfCircularReferenceObject.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public final class OneOfCircularReferenceObject { + public let child: Shared.OneOfCircularReferenceObjectChild + + /// Creates an object with the specified parameters + /// + /// + public init(child: Shared.OneOfCircularReferenceObjectChild) { + self.child = child + } + } +} + +extension Shared.OneOfCircularReferenceObject: Codable { + enum CodingKeys: String, CodingKey { + case child + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfCircularReferenceObjectChild.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfCircularReferenceObjectChild.swift new file mode 100755 index 000000000..a5c76ac6f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfCircularReferenceObjectChild.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum OneOfCircularReferenceObjectChild { + case oneOfCircularReferenceObject(Shared.OneOfCircularReferenceObject) + case simpleObject(Shared.SimpleObject) + } +} + +extension Shared.OneOfCircularReferenceObjectChild: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.OneOfCircularReferenceObject(from: decoder) { + self = .oneOfCircularReferenceObject(value) + } else if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .oneOfCircularReferenceObject(let value): + try value.encode(to: encoder) + case .simpleObject(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTest.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTest.swift new file mode 100755 index 000000000..8db3bbfcd --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTest.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct OneOfGenerationStressTest { + public let any: AnyValue + public let nullableAny: AnyValue + public let oneOfFromArrayOfTypes: Shared.OneOfGenerationStressTestOneOfFromArrayOfTypes + public let oneOfSameType: Shared.OneOfGenerationStressTestOneOfSameType + + /// Creates an object with the specified parameters + /// + /// + public init(any: AnyValue, nullableAny: AnyValue, oneOfFromArrayOfTypes: Shared.OneOfGenerationStressTestOneOfFromArrayOfTypes, oneOfSameType: Shared.OneOfGenerationStressTestOneOfSameType) { + self.any = any + self.nullableAny = nullableAny + self.oneOfFromArrayOfTypes = oneOfFromArrayOfTypes + self.oneOfSameType = oneOfSameType + } + } +} + +extension Shared.OneOfGenerationStressTest: Codable { + enum CodingKeys: String, CodingKey { + case any + case nullableAny + case oneOfFromArrayOfTypes + case oneOfSameType + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfFromArrayOfTypes.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfFromArrayOfTypes.swift new file mode 100755 index 000000000..f75946cd7 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfFromArrayOfTypes.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum OneOfGenerationStressTestOneOfFromArrayOfTypes { + case string(String) + case integer(Int) + } +} + +extension Shared.OneOfGenerationStressTestOneOfFromArrayOfTypes: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType.swift new file mode 100755 index 000000000..3f7b9ed54 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum OneOfGenerationStressTestOneOfSameType { + case string(String) + case oneOfGenerationStressTestOneOfSameType2(Shared.OneOfGenerationStressTestOneOfSameType2) + } +} + +extension Shared.OneOfGenerationStressTestOneOfSameType: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Shared.OneOfGenerationStressTestOneOfSameType2(from: decoder) { + self = .oneOfGenerationStressTestOneOfSameType2(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .oneOfGenerationStressTestOneOfSameType2(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType2.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType2.swift new file mode 100755 index 000000000..f495e3c6b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType2.swift @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum OneOfGenerationStressTestOneOfSameType2: String, Codable, APIValue { + case latest = "latest" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/PrimitiveTypeUnion.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/PrimitiveTypeUnion.swift new file mode 100755 index 000000000..4beaee20b --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/PrimitiveTypeUnion.swift @@ -0,0 +1,53 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum PrimitiveTypeUnion { + case string(String) + case integer(Int) + case int32(Int) + case number(Double) + case float32(Double) + case bool(Bool) + } +} + +extension Shared.PrimitiveTypeUnion: Codable { + public init(from decoder: Decoder) throws { + if let value = try? String(from: decoder) { + self = .string(value) + } else if let value = try? Int(from: decoder) { + self = .integer(value) + } else if let value = try? Int(from: decoder) { + self = .int32(value) + } else if let value = try? Double(from: decoder) { + self = .number(value) + } else if let value = try? Double(from: decoder) { + self = .float32(value) + } else if let value = try? Bool(from: decoder) { + self = .bool(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .string(let value): + try value.encode(to: encoder) + case .integer(let value): + try value.encode(to: encoder) + case .int32(let value): + try value.encode(to: encoder) + case .number(let value): + try value.encode(to: encoder) + case .float32(let value): + try value.encode(to: encoder) + case .bool(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ReadOnlyObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadOnlyObject.swift new file mode 100755 index 000000000..0c51253d6 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadOnlyObject.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ReadOnlyObject { + public let bool: Bool + @DecimalSerialized + public private(set) var num: Double + public let string: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, num: Double, string: String) { + self.bool = bool + self._num = DecimalSerialized(wrappedValue: num) + self.string = string + } + } +} + +extension Shared.ReadOnlyObject: Codable { + enum CodingKeys: String, CodingKey { + case bool + case num + case string + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.string = try container.decode(String.self, forKey: .string) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._num, forKey: .num) + try container.encode(self.string, forKey: .string) + } +} + +extension Shared.ReadOnlyObject { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ReadOnlyObjectInput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadOnlyObjectInput.swift new file mode 100755 index 000000000..a3c438c22 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadOnlyObjectInput.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ReadOnlyObjectInput { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Shared.ReadOnlyObjectInput: Codable { +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ReadWriteObjectInput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadWriteObjectInput.swift new file mode 100755 index 000000000..34127c312 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadWriteObjectInput.swift @@ -0,0 +1,30 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ReadWriteObjectInput { + public let num1: Int + public let num2: Int + public let num3: Int + + /// Creates an object with the specified parameters + /// + /// + public init(num1: Int, num2: Int, num3: Int) { + self.num1 = num1 + self.num2 = num2 + self.num3 = num3 + } + } +} + +extension Shared.ReadWriteObjectInput: Codable { + enum CodingKeys: String, CodingKey { + case num1 + case num2 + case num3 + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ReadWriteObjectOutput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadWriteObjectOutput.swift new file mode 100755 index 000000000..0b82bc654 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ReadWriteObjectOutput.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ReadWriteObjectOutput { + public let num3: Int + public let sum: Int + + /// Creates an object with the specified parameters + /// + /// + public init(num3: Int, sum: Int) { + self.num3 = num3 + self.sum = sum + } + } +} + +extension Shared.ReadWriteObjectOutput: Codable { + enum CodingKeys: String, CodingKey { + case num3 + case sum + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/RefQueryParamObj.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/RefQueryParamObj.swift new file mode 100755 index 000000000..57d799b52 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/RefQueryParamObj.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct RefQueryParamObj: APIValue { + public let bool: Bool + public let int: Int + @DecimalSerialized + public private(set) var num: Double + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, int: Int, num: Double, str: String) { + self.bool = bool + self.int = int + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + } + } +} +extension Shared.RefQueryParamObj { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/RefQueryParamObjExploded.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/RefQueryParamObjExploded.swift new file mode 100755 index 000000000..0dcb85da1 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/RefQueryParamObjExploded.swift @@ -0,0 +1,29 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct RefQueryParamObjExploded: APIValue { + public let bool: Bool + public let int: Int + @DecimalSerialized + public private(set) var num: Double + public let str: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, int: Int, num: Double, str: String) { + self.bool = bool + self.int = int + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + } + } +} +extension Shared.RefQueryParamObjExploded { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SchemeBasicAuth.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SchemeBasicAuth.swift new file mode 100755 index 000000000..ce3e8d082 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SchemeBasicAuth.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct SchemeBasicAuth { + public let username: String + public let password: String + + /// Creates an object with the specified parameters + /// + /// + public init(username: String, password: String) { + self.username = username + self.password = password + } + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/Security.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/Security.swift new file mode 100755 index 000000000..771aaeb95 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/Security.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// Describes the available authentication methods when connecting to the API. + /// + /// > Note: Some API operations specify their own authentication methods. Refer to the documentation for each API operation to ensure you are passing the correct credentials. + /// + public enum Security { + case apiKeyAuth(String) + case apiKeyAuthNew(String) + case oauth2(String) + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObject.swift new file mode 100755 index 000000000..0cdac5c71 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObject.swift @@ -0,0 +1,191 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public struct SimpleObject: APIValue { + /// An any property. + public let any: AnyValue + /// A boolean property. + public let bool: Bool + /// A date property. + @DateOnly + public private(set) var date: Date + /// A date-time property. + @DateTime + public private(set) var dateTime: Date + /// A string based enum + public let `enum`: Shared.Enum + /// A float32 property. + @DecimalSerialized + public private(set) var float32: Double + /// An integer property. + public let int: Int + /// An int32 property. + public let int32: Int + /// An int32 enum property. + public let int32Enum: Shared.SimpleObjectInt32Enum + /// An integer enum property. + public let intEnum: Shared.SimpleObjectIntEnum + /// A number property. + @DecimalSerialized + public private(set) var num: Double + /// A string property. + public let str: String + public let bigint: Int? + public let bigintStr: String? + /// An optional boolean property. + public let boolOpt: Bool? + @DecimalSerialized + public private(set) var decimal: Double? + public let decimalStr: String? + /// An optional integer property will be null for tests. + public let intOptNull: Int? + /// An optional number property will be null for tests. + @DecimalSerialized + public private(set) var numOptNull: Double? + /// An optional string property. + public let strOpt: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter any: An any property. + /// - Parameter bool: A boolean property. + /// - Parameter date: A date property. + /// - Parameter dateTime: A date-time property. + /// - Parameter `enum`: A string based enum + /// - Parameter float32: A float32 property. + /// - Parameter int: An integer property. + /// - Parameter int32: An int32 property. + /// - Parameter int32Enum: An int32 enum property. + /// - Parameter intEnum: An integer enum property. + /// - Parameter num: A number property. + /// - Parameter str: A string property. + /// - Parameter boolOpt: An optional boolean property. + /// - Parameter intOptNull: An optional integer property will be null for tests. + /// - Parameter numOptNull: An optional number property will be null for tests. + /// - Parameter strOpt: An optional string property. + /// + public init(any: AnyValue, bool: Bool, date: Date, dateTime: Date, `enum`: Shared.Enum, float32: Double, int: Int, int32: Int, int32Enum: Shared.SimpleObjectInt32Enum, intEnum: Shared.SimpleObjectIntEnum, num: Double, str: String, bigint: Int? = nil, bigintStr: String? = nil, boolOpt: Bool? = nil, decimal: Double? = nil, decimalStr: String? = nil, intOptNull: Int? = nil, numOptNull: Double? = nil, strOpt: String? = nil) { + self.any = any + self.bool = bool + self._date = DateOnly(wrappedValue: date) + self._dateTime = DateTime(wrappedValue: dateTime) + self.`enum` = `enum` + self._float32 = DecimalSerialized(wrappedValue: float32) + self.int = int + self.int32 = int32 + self.int32Enum = int32Enum + self.intEnum = intEnum + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + self.bigint = bigint + self.bigintStr = bigintStr + self.boolOpt = boolOpt + self._decimal = DecimalSerialized(wrappedValue: decimal) + self.decimalStr = decimalStr + self.intOptNull = intOptNull + self._numOptNull = DecimalSerialized(wrappedValue: numOptNull) + self.strOpt = strOpt + } + } +} + +extension Shared.SimpleObject: Codable { + enum CodingKeys: String, CodingKey { + case any + case bool + case date + case dateTime + case `enum` = "enum" + case float32 + case int + case int32 + case int32Enum + case intEnum + case num + case str + case bigint + case bigintStr + case boolOpt + case decimal + case decimalStr + case intOptNull + case numOptNull + case strOpt + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.any = try container.decode(AnyValue.self, forKey: .any) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._date = try container.decode(DateOnly.self, forKey: .date) + self._dateTime = try container.decode(DateTime.self, forKey: .dateTime) + self.`enum` = try container.decode(Shared.Enum.self, forKey: .`enum`) + self._float32 = try container.decode(DecimalSerialized.self, forKey: .float32) + self.int = try container.decode(Int.self, forKey: .int) + self.int32 = try container.decode(Int.self, forKey: .int32) + self.int32Enum = try container.decode(Shared.SimpleObjectInt32Enum.self, forKey: .int32Enum) + self.intEnum = try container.decode(Shared.SimpleObjectIntEnum.self, forKey: .intEnum) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.str = try container.decode(String.self, forKey: .str) + self.bigint = try container.decodeIfPresent(Int.self, forKey: .bigint) + self.bigintStr = try container.decodeIfPresent(String.self, forKey: .bigintStr) + self.boolOpt = try container.decodeIfPresent(Bool.self, forKey: .boolOpt) + self._decimal = try container.decodeIfPresent(DecimalSerialized.self, forKey: .decimal) ?? DecimalSerialized(wrappedValue: nil) + self.decimalStr = try container.decodeIfPresent(String.self, forKey: .decimalStr) + self.intOptNull = try container.decodeIfPresent(Int.self, forKey: .intOptNull) + self._numOptNull = try container.decodeIfPresent(DecimalSerialized.self, forKey: .numOptNull) ?? DecimalSerialized(wrappedValue: nil) + self.strOpt = try container.decodeIfPresent(String.self, forKey: .strOpt) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.any, forKey: .any) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._date, forKey: .date) + try container.encode(self._dateTime, forKey: .dateTime) + try container.encode(self.`enum`, forKey: .`enum`) + try container.encode(self._float32, forKey: .float32) + try container.encode(self.int, forKey: .int) + try container.encode(self.int32, forKey: .int32) + try container.encode(self.int32Enum, forKey: .int32Enum) + try container.encode(self.intEnum, forKey: .intEnum) + try container.encode(self._num, forKey: .num) + try container.encode(self.str, forKey: .str) + try container.encodeIfPresent(self.bigint, forKey: .bigint) + try container.encodeIfPresent(self.bigintStr, forKey: .bigintStr) + try container.encodeIfPresent(self.boolOpt, forKey: .boolOpt) + if self.decimal != nil { + try container.encode(self._decimal, forKey: .decimal) + } + try container.encodeIfPresent(self.decimalStr, forKey: .decimalStr) + try container.encodeIfPresent(self.intOptNull, forKey: .intOptNull) + if self.numOptNull != nil { + try container.encode(self._numOptNull, forKey: .numOptNull) + } + try container.encodeIfPresent(self.strOpt, forKey: .strOpt) + } +} + +extension Shared.SimpleObject { + var dateWrapper: DateOnly { + return _date + } + var dateTimeWrapper: DateTime { + return _dateTime + } + var decimalWrapper: DecimalSerialized { + return _decimal + } + var float32Wrapper: DecimalSerialized { + return _float32 + } + var numWrapper: DecimalSerialized { + return _num + } + var numOptNullWrapper: DecimalSerialized { + return _numOptNull + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCase.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCase.swift new file mode 100755 index 000000000..fa5899fbb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCase.swift @@ -0,0 +1,186 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public struct SimpleObjectCamelCase { + /// An any property. + public let anyVal: AnyValue + /// A boolean property. + public let boolVal: Bool + /// A date-time property. + @DateTime + public private(set) var dateTimeVal: Date + /// A date property. + @DateOnly + public private(set) var dateVal: Date + /// A string based enum + public let enumVal: Shared.Enum + /// A float32 property. + @DecimalSerialized + public private(set) var float32Val: Double + /// An integer enum property. + public let intEnumVal: Shared.SimpleObjectCamelCaseIntEnumVal + /// An integer property. + public let intVal: Int + /// An int32 enum property. + public let int32EnumVal: Shared.SimpleObjectCamelCaseInt32EnumVal + /// An int32 property. + public let int32Val: Int + /// A number property. + @DecimalSerialized + public private(set) var numVal: Double + /// A string property. + public let strVal: String + public let bigintStrVal: String? + public let bigintVal: Int? + /// An optional boolean property. + public let boolOptVal: Bool? + @DecimalSerialized + public private(set) var decimalVal: Double? + /// An optional integer property will be null for tests. + public let intOptNullVal: Int? + /// An optional number property will be null for tests. + @DecimalSerialized + public private(set) var numOptNullVal: Double? + /// An optional string property. + public let strOptVal: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter anyVal: An any property. + /// - Parameter boolVal: A boolean property. + /// - Parameter dateTimeVal: A date-time property. + /// - Parameter dateVal: A date property. + /// - Parameter enumVal: A string based enum + /// - Parameter float32Val: A float32 property. + /// - Parameter intEnumVal: An integer enum property. + /// - Parameter intVal: An integer property. + /// - Parameter int32EnumVal: An int32 enum property. + /// - Parameter int32Val: An int32 property. + /// - Parameter numVal: A number property. + /// - Parameter strVal: A string property. + /// - Parameter boolOptVal: An optional boolean property. + /// - Parameter intOptNullVal: An optional integer property will be null for tests. + /// - Parameter numOptNullVal: An optional number property will be null for tests. + /// - Parameter strOptVal: An optional string property. + /// + public init(anyVal: AnyValue, boolVal: Bool, dateTimeVal: Date, dateVal: Date, enumVal: Shared.Enum, float32Val: Double, intEnumVal: Shared.SimpleObjectCamelCaseIntEnumVal, intVal: Int, int32EnumVal: Shared.SimpleObjectCamelCaseInt32EnumVal, int32Val: Int, numVal: Double, strVal: String, bigintStrVal: String? = nil, bigintVal: Int? = nil, boolOptVal: Bool? = nil, decimalVal: Double? = nil, intOptNullVal: Int? = nil, numOptNullVal: Double? = nil, strOptVal: String? = nil) { + self.anyVal = anyVal + self.boolVal = boolVal + self._dateTimeVal = DateTime(wrappedValue: dateTimeVal) + self._dateVal = DateOnly(wrappedValue: dateVal) + self.enumVal = enumVal + self._float32Val = DecimalSerialized(wrappedValue: float32Val) + self.intEnumVal = intEnumVal + self.intVal = intVal + self.int32EnumVal = int32EnumVal + self.int32Val = int32Val + self._numVal = DecimalSerialized(wrappedValue: numVal) + self.strVal = strVal + self.bigintStrVal = bigintStrVal + self.bigintVal = bigintVal + self.boolOptVal = boolOptVal + self._decimalVal = DecimalSerialized(wrappedValue: decimalVal) + self.intOptNullVal = intOptNullVal + self._numOptNullVal = DecimalSerialized(wrappedValue: numOptNullVal) + self.strOptVal = strOptVal + } + } +} + +extension Shared.SimpleObjectCamelCase: Codable { + enum CodingKeys: String, CodingKey { + case anyVal = "any_val" + case boolVal = "bool_val" + case dateTimeVal = "date_time_val" + case dateVal = "date_val" + case enumVal = "enum_val" + case float32Val = "float32_val" + case intEnumVal = "int_enum_val" + case intVal = "int_val" + case int32EnumVal = "int32_enum_val" + case int32Val = "int32_val" + case numVal = "num_val" + case strVal = "str_val" + case bigintStrVal = "bigint_str_val" + case bigintVal = "bigint_val" + case boolOptVal = "bool_opt_val" + case decimalVal = "decimal_val" + case intOptNullVal = "int_opt_null_val" + case numOptNullVal = "num_opt_null_val" + case strOptVal = "str_opt_val" + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.anyVal = try container.decode(AnyValue.self, forKey: .anyVal) + self.boolVal = try container.decode(Bool.self, forKey: .boolVal) + self._dateTimeVal = try container.decode(DateTime.self, forKey: .dateTimeVal) + self._dateVal = try container.decode(DateOnly.self, forKey: .dateVal) + self.enumVal = try container.decode(Shared.Enum.self, forKey: .enumVal) + self._float32Val = try container.decode(DecimalSerialized.self, forKey: .float32Val) + self.intEnumVal = try container.decode(Shared.SimpleObjectCamelCaseIntEnumVal.self, forKey: .intEnumVal) + self.intVal = try container.decode(Int.self, forKey: .intVal) + self.int32EnumVal = try container.decode(Shared.SimpleObjectCamelCaseInt32EnumVal.self, forKey: .int32EnumVal) + self.int32Val = try container.decode(Int.self, forKey: .int32Val) + self._numVal = try container.decode(DecimalSerialized.self, forKey: .numVal) + self.strVal = try container.decode(String.self, forKey: .strVal) + self.bigintStrVal = try container.decodeIfPresent(String.self, forKey: .bigintStrVal) + self.bigintVal = try container.decodeIfPresent(Int.self, forKey: .bigintVal) + self.boolOptVal = try container.decodeIfPresent(Bool.self, forKey: .boolOptVal) + self._decimalVal = try container.decodeIfPresent(DecimalSerialized.self, forKey: .decimalVal) ?? DecimalSerialized(wrappedValue: nil) + self.intOptNullVal = try container.decodeIfPresent(Int.self, forKey: .intOptNullVal) + self._numOptNullVal = try container.decodeIfPresent(DecimalSerialized.self, forKey: .numOptNullVal) ?? DecimalSerialized(wrappedValue: nil) + self.strOptVal = try container.decodeIfPresent(String.self, forKey: .strOptVal) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.anyVal, forKey: .anyVal) + try container.encode(self.boolVal, forKey: .boolVal) + try container.encode(self._dateTimeVal, forKey: .dateTimeVal) + try container.encode(self._dateVal, forKey: .dateVal) + try container.encode(self.enumVal, forKey: .enumVal) + try container.encode(self._float32Val, forKey: .float32Val) + try container.encode(self.intEnumVal, forKey: .intEnumVal) + try container.encode(self.intVal, forKey: .intVal) + try container.encode(self.int32EnumVal, forKey: .int32EnumVal) + try container.encode(self.int32Val, forKey: .int32Val) + try container.encode(self._numVal, forKey: .numVal) + try container.encode(self.strVal, forKey: .strVal) + try container.encodeIfPresent(self.bigintStrVal, forKey: .bigintStrVal) + try container.encodeIfPresent(self.bigintVal, forKey: .bigintVal) + try container.encodeIfPresent(self.boolOptVal, forKey: .boolOptVal) + if self.decimalVal != nil { + try container.encode(self._decimalVal, forKey: .decimalVal) + } + try container.encodeIfPresent(self.intOptNullVal, forKey: .intOptNullVal) + if self.numOptNullVal != nil { + try container.encode(self._numOptNullVal, forKey: .numOptNullVal) + } + try container.encodeIfPresent(self.strOptVal, forKey: .strOptVal) + } +} + +extension Shared.SimpleObjectCamelCase { + var dateTimeValWrapper: DateTime { + return _dateTimeVal + } + var dateValWrapper: DateOnly { + return _dateVal + } + var decimalValWrapper: DecimalSerialized { + return _decimalVal + } + var float32ValWrapper: DecimalSerialized { + return _float32Val + } + var numOptNullValWrapper: DecimalSerialized { + return _numOptNullVal + } + var numValWrapper: DecimalSerialized { + return _numVal + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCaseInt32EnumVal.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCaseInt32EnumVal.swift new file mode 100755 index 000000000..f4dc9a389 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCaseInt32EnumVal.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// An int32 enum property. + public enum SimpleObjectCamelCaseInt32EnumVal: Int, Codable, APIValue { + case fiftyFive = 55 + case sixtyNine = 69 + case oneHundredAndEightyOne = 181 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCaseIntEnumVal.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCaseIntEnumVal.swift new file mode 100755 index 000000000..99a56907c --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectCamelCaseIntEnumVal.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// An integer enum property. + public enum SimpleObjectCamelCaseIntEnumVal: Int, Codable, APIValue { + case first = 1 + case second = 2 + case third = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectInt32Enum.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectInt32Enum.swift new file mode 100755 index 000000000..f4f14e48a --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectInt32Enum.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// An int32 enum property. + public enum SimpleObjectInt32Enum: Int, Codable, APIValue { + case fiftyFive = 55 + case sixtyNine = 69 + case oneHundredAndEightyOne = 181 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectIntEnum.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectIntEnum.swift new file mode 100755 index 000000000..62d94c864 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectIntEnum.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// An integer enum property. + public enum SimpleObjectIntEnum: Int, Codable, APIValue { + case first = 1 + case second = 2 + case third = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithType.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithType.swift new file mode 100755 index 000000000..cac4a9645 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithType.swift @@ -0,0 +1,194 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A simple object that uses all our supported primitive types and enums and has optional properties. + public struct SimpleObjectWithType { + /// An any property. + public let any: AnyValue + /// A boolean property. + public let bool: Bool + /// A date property. + @DateOnly + public private(set) var date: Date + /// A date-time property. + @DateTime + public private(set) var dateTime: Date + /// A string based enum + public let `enum`: Shared.Enum + /// A float32 property. + @DecimalSerialized + public private(set) var float32: Double + /// An integer property. + public let int: Int + /// An int32 property. + public let int32: Int + /// An int32 enum property. + public let int32Enum: Shared.SimpleObjectWithTypeInt32Enum + /// An integer enum property. + public let intEnum: Shared.SimpleObjectWithTypeIntEnum + /// A number property. + @DecimalSerialized + public private(set) var num: Double + /// A string property. + public let str: String + public let type: String = "simpleObjectWithType" + public let bigint: Int? + public let bigintStr: String? + /// An optional boolean property. + public let boolOpt: Bool? + @DecimalSerialized + public private(set) var decimal: Double? + public let decimalStr: String? + /// An optional integer property will be null for tests. + public let intOptNull: Int? + /// An optional number property will be null for tests. + @DecimalSerialized + public private(set) var numOptNull: Double? + /// An optional string property. + public let strOpt: String? + + /// Creates an object with the specified parameters + /// + /// - Parameter any: An any property. + /// - Parameter bool: A boolean property. + /// - Parameter date: A date property. + /// - Parameter dateTime: A date-time property. + /// - Parameter `enum`: A string based enum + /// - Parameter float32: A float32 property. + /// - Parameter int: An integer property. + /// - Parameter int32: An int32 property. + /// - Parameter int32Enum: An int32 enum property. + /// - Parameter intEnum: An integer enum property. + /// - Parameter num: A number property. + /// - Parameter str: A string property. + /// - Parameter boolOpt: An optional boolean property. + /// - Parameter intOptNull: An optional integer property will be null for tests. + /// - Parameter numOptNull: An optional number property will be null for tests. + /// - Parameter strOpt: An optional string property. + /// + public init(any: AnyValue, bool: Bool, date: Date, dateTime: Date, `enum`: Shared.Enum, float32: Double, int: Int, int32: Int, int32Enum: Shared.SimpleObjectWithTypeInt32Enum, intEnum: Shared.SimpleObjectWithTypeIntEnum, num: Double, str: String, bigint: Int? = nil, bigintStr: String? = nil, boolOpt: Bool? = nil, decimal: Double? = nil, decimalStr: String? = nil, intOptNull: Int? = nil, numOptNull: Double? = nil, strOpt: String? = nil) { + self.any = any + self.bool = bool + self._date = DateOnly(wrappedValue: date) + self._dateTime = DateTime(wrappedValue: dateTime) + self.`enum` = `enum` + self._float32 = DecimalSerialized(wrappedValue: float32) + self.int = int + self.int32 = int32 + self.int32Enum = int32Enum + self.intEnum = intEnum + self._num = DecimalSerialized(wrappedValue: num) + self.str = str + self.bigint = bigint + self.bigintStr = bigintStr + self.boolOpt = boolOpt + self._decimal = DecimalSerialized(wrappedValue: decimal) + self.decimalStr = decimalStr + self.intOptNull = intOptNull + self._numOptNull = DecimalSerialized(wrappedValue: numOptNull) + self.strOpt = strOpt + } + } +} + +extension Shared.SimpleObjectWithType: Codable { + enum CodingKeys: String, CodingKey { + case any + case bool + case date + case dateTime + case `enum` = "enum" + case float32 + case int + case int32 + case int32Enum + case intEnum + case num + case str + case type + case bigint + case bigintStr + case boolOpt + case decimal + case decimalStr + case intOptNull + case numOptNull + case strOpt + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.any = try container.decode(AnyValue.self, forKey: .any) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._date = try container.decode(DateOnly.self, forKey: .date) + self._dateTime = try container.decode(DateTime.self, forKey: .dateTime) + self.`enum` = try container.decode(Shared.Enum.self, forKey: .`enum`) + self._float32 = try container.decode(DecimalSerialized.self, forKey: .float32) + self.int = try container.decode(Int.self, forKey: .int) + self.int32 = try container.decode(Int.self, forKey: .int32) + self.int32Enum = try container.decode(Shared.SimpleObjectWithTypeInt32Enum.self, forKey: .int32Enum) + self.intEnum = try container.decode(Shared.SimpleObjectWithTypeIntEnum.self, forKey: .intEnum) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.str = try container.decode(String.self, forKey: .str) + self.bigint = try container.decodeIfPresent(Int.self, forKey: .bigint) + self.bigintStr = try container.decodeIfPresent(String.self, forKey: .bigintStr) + self.boolOpt = try container.decodeIfPresent(Bool.self, forKey: .boolOpt) + self._decimal = try container.decodeIfPresent(DecimalSerialized.self, forKey: .decimal) ?? DecimalSerialized(wrappedValue: nil) + self.decimalStr = try container.decodeIfPresent(String.self, forKey: .decimalStr) + self.intOptNull = try container.decodeIfPresent(Int.self, forKey: .intOptNull) + self._numOptNull = try container.decodeIfPresent(DecimalSerialized.self, forKey: .numOptNull) ?? DecimalSerialized(wrappedValue: nil) + self.strOpt = try container.decodeIfPresent(String.self, forKey: .strOpt) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.any, forKey: .any) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._date, forKey: .date) + try container.encode(self._dateTime, forKey: .dateTime) + try container.encode(self.`enum`, forKey: .`enum`) + try container.encode(self._float32, forKey: .float32) + try container.encode(self.int, forKey: .int) + try container.encode(self.int32, forKey: .int32) + try container.encode(self.int32Enum, forKey: .int32Enum) + try container.encode(self.intEnum, forKey: .intEnum) + try container.encode(self._num, forKey: .num) + try container.encode(self.str, forKey: .str) + try container.encode(self.type, forKey: .type) + try container.encodeIfPresent(self.bigint, forKey: .bigint) + try container.encodeIfPresent(self.bigintStr, forKey: .bigintStr) + try container.encodeIfPresent(self.boolOpt, forKey: .boolOpt) + if self.decimal != nil { + try container.encode(self._decimal, forKey: .decimal) + } + try container.encodeIfPresent(self.decimalStr, forKey: .decimalStr) + try container.encodeIfPresent(self.intOptNull, forKey: .intOptNull) + if self.numOptNull != nil { + try container.encode(self._numOptNull, forKey: .numOptNull) + } + try container.encodeIfPresent(self.strOpt, forKey: .strOpt) + } +} + +extension Shared.SimpleObjectWithType { + var dateWrapper: DateOnly { + return _date + } + var dateTimeWrapper: DateTime { + return _dateTime + } + var decimalWrapper: DecimalSerialized { + return _decimal + } + var float32Wrapper: DecimalSerialized { + return _float32 + } + var numWrapper: DecimalSerialized { + return _num + } + var numOptNullWrapper: DecimalSerialized { + return _numOptNull + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithTypeInt32Enum.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithTypeInt32Enum.swift new file mode 100755 index 000000000..0251704a4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithTypeInt32Enum.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// An int32 enum property. + public enum SimpleObjectWithTypeInt32Enum: Int, Codable, APIValue { + case fiftyFive = 55 + case sixtyNine = 69 + case oneHundredAndEightyOne = 181 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithTypeIntEnum.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithTypeIntEnum.swift new file mode 100755 index 000000000..cc1ca5d8e --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/SimpleObjectWithTypeIntEnum.swift @@ -0,0 +1,12 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// An integer enum property. + public enum SimpleObjectWithTypeIntEnum: Int, Codable, APIValue { + case first = 1 + case second = 2 + case third = 3 + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/StronglyTypedOneOfObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/StronglyTypedOneOfObject.swift new file mode 100755 index 000000000..232680ba0 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/StronglyTypedOneOfObject.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum StronglyTypedOneOfObject { + case simpleObjectWithType(Shared.SimpleObjectWithType) + case deepObjectWithType(Shared.DeepObjectWithType) + } +} + +extension Shared.StronglyTypedOneOfObject: Codable { + enum DiscriminatorKey: CodingKey { + case type + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: DiscriminatorKey.self) + let discriminator = try container.decode(String.self, forKey: .type) + + switch discriminator { + case "simpleObjectWithType": + let value = try Shared.SimpleObjectWithType(from: decoder) + self = .simpleObjectWithType(value) + case "deepObjectWithType": + let value = try Shared.DeepObjectWithType(from: decoder) + self = .deepObjectWithType(value) + default: + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObjectWithType(let value): + try value.encode(to: encoder) + case .deepObjectWithType(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject1.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject1.swift new file mode 100755 index 000000000..446d1bda2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject1.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct TypedObject1 { + public let type: Shared.TypedObject1Type + public let value: String + + /// Creates an object with the specified parameters + /// + /// + public init(type: Shared.TypedObject1Type, value: String) { + self.type = type + self.value = value + } + } +} + +extension Shared.TypedObject1: Codable { + enum CodingKeys: String, CodingKey { + case type + case value + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject1Type.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject1Type.swift new file mode 100755 index 000000000..3b36bb271 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject1Type.swift @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum TypedObject1Type: String, Codable, APIValue { + case obj1 = "obj1" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject2.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject2.swift new file mode 100755 index 000000000..d54baa168 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject2.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct TypedObject2 { + public let type: Shared.TypedObject2Type + public let value: String + + /// Creates an object with the specified parameters + /// + /// + public init(type: Shared.TypedObject2Type, value: String) { + self.type = type + self.value = value + } + } +} + +extension Shared.TypedObject2: Codable { + enum CodingKeys: String, CodingKey { + case type + case value + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject2Type.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject2Type.swift new file mode 100755 index 000000000..6e1f28505 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject2Type.swift @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum TypedObject2Type: String, Codable, APIValue { + case obj2 = "obj2" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject3.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject3.swift new file mode 100755 index 000000000..2de0412f5 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject3.swift @@ -0,0 +1,27 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct TypedObject3 { + public let type: Shared.TypedObject3Type + public let value: String + + /// Creates an object with the specified parameters + /// + /// + public init(type: Shared.TypedObject3Type, value: String) { + self.type = type + self.value = value + } + } +} + +extension Shared.TypedObject3: Codable { + enum CodingKeys: String, CodingKey { + case type + case value + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject3Type.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject3Type.swift new file mode 100755 index 000000000..6c9a3f768 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObject3Type.swift @@ -0,0 +1,9 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + public enum TypedObject3Type: String, Codable, APIValue { + case obj3 = "obj3" + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObjectNullableOneOf.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObjectNullableOneOf.swift new file mode 100755 index 000000000..b9cddd8f2 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObjectNullableOneOf.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum TypedObjectNullableOneOf { + case typedObject1(Shared.TypedObject1) + case typedObject2(Shared.TypedObject2) + } +} + +extension Shared.TypedObjectNullableOneOf: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else if let value = try? Shared.TypedObject2(from: decoder) { + self = .typedObject2(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + case .typedObject2(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObjectOneOf.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObjectOneOf.swift new file mode 100755 index 000000000..a31d69236 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/TypedObjectOneOf.swift @@ -0,0 +1,38 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum TypedObjectOneOf { + case typedObject1(Shared.TypedObject1) + case typedObject2(Shared.TypedObject2) + case typedObject3(Shared.TypedObject3) + } +} + +extension Shared.TypedObjectOneOf: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.TypedObject1(from: decoder) { + self = .typedObject1(value) + } else if let value = try? Shared.TypedObject2(from: decoder) { + self = .typedObject2(value) + } else if let value = try? Shared.TypedObject3(from: decoder) { + self = .typedObject3(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .typedObject1(let value): + try value.encode(to: encoder) + case .typedObject2(let value): + try value.encode(to: encoder) + case .typedObject3(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/UnsupportedEnums.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/UnsupportedEnums.swift new file mode 100755 index 000000000..085ac3663 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/UnsupportedEnums.swift @@ -0,0 +1,45 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct UnsupportedEnums { + public let booleanEnum: Bool + @DecimalSerialized + public private(set) var numberEnum: Double + + /// Creates an object with the specified parameters + /// + /// + public init(booleanEnum: Bool, numberEnum: Double) { + self.booleanEnum = booleanEnum + self._numberEnum = DecimalSerialized(wrappedValue: numberEnum) + } + } +} + +extension Shared.UnsupportedEnums: Codable { + enum CodingKeys: String, CodingKey { + case booleanEnum + case numberEnum + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.booleanEnum = try container.decode(Bool.self, forKey: .booleanEnum) + self._numberEnum = try container.decode(DecimalSerialized.self, forKey: .numberEnum) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.booleanEnum, forKey: .booleanEnum) + try container.encode(self._numberEnum, forKey: .numberEnum) + } +} + +extension Shared.UnsupportedEnums { + var numberEnumWrapper: DecimalSerialized { + return _numberEnum + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/ValidCircularReferenceObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/ValidCircularReferenceObject.swift new file mode 100755 index 000000000..279f9d536 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/ValidCircularReferenceObject.swift @@ -0,0 +1,24 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct ValidCircularReferenceObject { + public let circular: [Shared.ValidCircularReferenceObject]? + + /// Creates an object with the specified parameters + /// + /// + public init(circular: [Shared.ValidCircularReferenceObject]? = nil) { + self.circular = circular + } + } +} + +extension Shared.ValidCircularReferenceObject: Codable { + enum CodingKeys: String, CodingKey { + case circular + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfObject.swift new file mode 100755 index 000000000..b5b811702 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfObject.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfObject { + case simpleObject(Shared.SimpleObject) + case deepObject(Shared.DeepObject) + } +} + +extension Shared.WeaklyTypedOneOfObject: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.DeepObject(from: decoder) { + self = .deepObject(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .deepObject(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObject.swift new file mode 100755 index 000000000..87ff84474 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObject.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfReadOnlyObject { + case simpleObject(Shared.SimpleObject) + case readOnlyObject(Shared.ReadOnlyObject) + } +} + +extension Shared.WeaklyTypedOneOfReadOnlyObject: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.ReadOnlyObject(from: decoder) { + self = .readOnlyObject(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .readOnlyObject(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObjectInput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObjectInput.swift new file mode 100755 index 000000000..475e71515 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObjectInput.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfReadOnlyObjectInput { + case simpleObject(Shared.SimpleObject) + case readOnlyObjectInput(Shared.ReadOnlyObjectInput) + } +} + +extension Shared.WeaklyTypedOneOfReadOnlyObjectInput: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.ReadOnlyObjectInput(from: decoder) { + self = .readOnlyObjectInput(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .readOnlyObjectInput(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectInput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectInput.swift new file mode 100755 index 000000000..0e0f35a4f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectInput.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfReadWriteObjectInput { + case simpleObject(Shared.SimpleObject) + case readWriteObjectInput(Shared.ReadWriteObjectInput) + } +} + +extension Shared.WeaklyTypedOneOfReadWriteObjectInput: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.ReadWriteObjectInput(from: decoder) { + self = .readWriteObjectInput(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .readWriteObjectInput(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectOutput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectOutput.swift new file mode 100755 index 000000000..bc4e0d064 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectOutput.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfReadWriteObjectOutput { + case simpleObject(Shared.SimpleObject) + case readWriteObjectOutput(Shared.ReadWriteObjectOutput) + } +} + +extension Shared.WeaklyTypedOneOfReadWriteObjectOutput: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.ReadWriteObjectOutput(from: decoder) { + self = .readWriteObjectOutput(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .readWriteObjectOutput(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObject.swift new file mode 100755 index 000000000..0f7dd94c4 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObject.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfWriteOnlyObject { + case simpleObject(Shared.SimpleObject) + case writeOnlyObject(Shared.WriteOnlyObject) + } +} + +extension Shared.WeaklyTypedOneOfWriteOnlyObject: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.WriteOnlyObject(from: decoder) { + self = .writeOnlyObject(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .writeOnlyObject(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObjectOutput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObjectOutput.swift new file mode 100755 index 000000000..8485e0056 --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObjectOutput.swift @@ -0,0 +1,33 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public enum WeaklyTypedOneOfWriteOnlyObjectOutput { + case simpleObject(Shared.SimpleObject) + case writeOnlyObjectOutput(Shared.WriteOnlyObjectOutput) + } +} + +extension Shared.WeaklyTypedOneOfWriteOnlyObjectOutput: Codable { + public init(from decoder: Decoder) throws { + if let value = try? Shared.SimpleObject(from: decoder) { + self = .simpleObject(value) + } else if let value = try? Shared.WriteOnlyObjectOutput(from: decoder) { + self = .writeOnlyObjectOutput(value) + } else { + throw OpenAPIError.failedToHandleResponse(.failedToDecodeResponse) + } + } + + public func encode(to encoder: Encoder) throws { + switch self { + case .simpleObject(let value): + try value.encode(to: encoder) + case .writeOnlyObjectOutput(let value): + try value.encode(to: encoder) + } + } +} + diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WriteOnlyObject.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WriteOnlyObject.swift new file mode 100755 index 000000000..1b44df0bb --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WriteOnlyObject.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct WriteOnlyObject { + public let bool: Bool + @DecimalSerialized + public private(set) var num: Double + public let string: String + + /// Creates an object with the specified parameters + /// + /// + public init(bool: Bool, num: Double, string: String) { + self.bool = bool + self._num = DecimalSerialized(wrappedValue: num) + self.string = string + } + } +} + +extension Shared.WriteOnlyObject: Codable { + enum CodingKeys: String, CodingKey { + case bool + case num + case string + } + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.bool = try container.decode(Bool.self, forKey: .bool) + self._num = try container.decode(DecimalSerialized.self, forKey: .num) + self.string = try container.decode(String.self, forKey: .string) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(self.bool, forKey: .bool) + try container.encode(self._num, forKey: .num) + try container.encode(self.string, forKey: .string) + } +} + +extension Shared.WriteOnlyObject { + var numWrapper: DecimalSerialized { + return _num + } +} diff --git a/swift-client-sdk/Sources/OpenAPI/models/shared/WriteOnlyObjectOutput.swift b/swift-client-sdk/Sources/OpenAPI/models/shared/WriteOnlyObjectOutput.swift new file mode 100755 index 000000000..bea97278f --- /dev/null +++ b/swift-client-sdk/Sources/OpenAPI/models/shared/WriteOnlyObjectOutput.swift @@ -0,0 +1,19 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Shared { + /// A model object + public struct WriteOnlyObjectOutput { + + /// Creates an object + /// + /// + public init() { + } + } +} + +extension Shared.WriteOnlyObjectOutput: Codable { +} + diff --git a/swift-client-sdk/Tests/OpenAPITests/testdata/testUpload.json b/swift-client-sdk/Tests/OpenAPITests/testdata/testUpload.json new file mode 100755 index 000000000..4539ea0d0 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testdata/testUpload.json @@ -0,0 +1,6 @@ +{ + "some": "json", + "to": "be", + "uploaded": "in", + "a": "file" +} diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/AuthTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/AuthTests.swift new file mode 100755 index 000000000..071d46e3f --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/AuthTests.swift @@ -0,0 +1,386 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class AuthTests: XCTestCase { + // Bit of a hack but do this once in a class-based test setup function so this is run once for the entire test suite. + // Doesn't work if only single test classes are run. + override class func setUp() { + do { + try resetTestRecords() + } catch { + print("Couldn't reset test record file") + } + } + + func testBasicAuth() async throws { + try recordTest(named: "auth-basic-auth") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.basicAuthNew( + request: .init( + basicAuth: .init( + username: "testUser", + password: "testPass" + ), + headerAuth: nil + ), + security: .init( + username: "testUser", + password: "testPass" + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testAPIKeyAuthGlobal() async throws { + try recordTest(named: "auth-api-key-auth-global") + + let client = Client(security: .apiKeyAuthNew("test_api_key")) + let response = try await client.authNew.apiKeyAuthGlobalNew( + request: .init( + basicAuth: nil, + headerAuth: [ + .init(expectedValue: "test_api_key", headerName: "x-api-key") + ] + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testAPIKeyAuthOperation() async throws { + try recordTest(named: "auth-api-key-auth-operation") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.auth.apiKeyAuth( + security: .apiKeyAuth("Bearer testToken") + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.token().authenticated, true) + XCTAssertEqual(try response.data.token().token, "testToken") + } + + func testBearerAuthOperationWithPrefix() async throws { + try recordTest(named: "auth-bearer-auth-operation-with-prefix") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.auth.bearerAuth( + security: .bearerAuth("Bearer testToken") + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.token().authenticated, true) + XCTAssertEqual(try response.data.token().token, "testToken") + } + + func testBearerAuthOperationWithoutPrefix() async throws { + try recordTest(named: "auth-bearer-auth-operation-without-prefix") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.auth.bearerAuth( + security: .bearerAuth("testToken") + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.token().authenticated, true) + XCTAssertEqual(try response.data.token().token, "testToken") + } + + func testOAuth2Auth() async throws { + try recordTest(named: "auth-oauth2-auth") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.oauth2AuthNew( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ) + ] + ), + security: .oauth2("Bearer testToken"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testOpenIDConnectAuth() async throws { + try recordTest(named: "auth-open-id-connect-auth") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.openIdConnectAuthNew( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ) + ] + ), + security: .openIdConnect("Bearer testToken"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleSimpleSchemeAuth() async throws { + try recordTest(named: "auth-multiple-simple-scheme-auth") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleSimpleSchemeAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ), + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ), + ] + ), + security: .init( + apiKeyAuthNew: "test_api_key", + oauth2: "Bearer testToken" + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedSchemeAuth() async throws { + try recordTest(named: "auth-multiple-mixed-scheme-auth") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleMixedSchemeAuth( + request: .init( + basicAuth: .init( + username: "testUser", + password: "testPass" + ), + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ) + ] + ), + security: .init( + apiKeyAuthNew: "test_api_key", + basicAuth: .init( + username: "testUser", + password: "testPass" + ) + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleSimpleOptionsAuthFirstOption() async throws { + try recordTest(named: "auth-multiple-simple-options-auth-first-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleSimpleOptionsAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ) + ] + ), + security: .apiKeyAuthNew("test_api_key"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleSimpleOptionsAuthSecondOption() async throws { + try recordTest(named: "auth-multiple-simple-options-auth-second-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleSimpleOptionsAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ) + ] + ), + security: .oauth2("Bearer testToken"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedOptionsAuthFirstOption() async throws { + try recordTest(named: "auth-multiple-mixed-options-auth-first-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleMixedOptionsAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ) + ] + ), + security: .apiKeyAuthNew("test_api_key"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedOptionsAuthSecondOption() async throws { + try recordTest(named: "auth-multiple-mixed-options-auth-second-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleMixedOptionsAuth( + request: .init( + basicAuth: .init( + username: "testUser", + password: "testPass" + ), + headerAuth: nil + ), + security: .basic( + .init( + username: "testUser", + password: "testPass" + ) + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedOptionsWithSimpleSchemesAuthFirstOption() async throws { + try recordTest(named: "auth-multiple-options-with-simple-schemes-auth-first-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleOptionsWithSimpleSchemesAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ), + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ), + ] + ), + security: .option1( + .init( + apiKeyAuthNew: "test_api_key", + oauth2: "Bearer testToken" + ) + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedOptionsWithSimpleSchemesAuthSecondOption() async throws { + try recordTest(named: "auth-multiple-options-with-simple-schemes-auth-second-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleOptionsWithSimpleSchemesAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ), + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ), + ] + ), + security: .option2( + .init( + apiKeyAuthNew: "test_api_key", + openIdConnect: "Bearer testToken" + ) + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedOptionsWithMixedSchemesAuthFirstOption() async throws { + try recordTest(named: "auth-multiple-options-with-mixed-schemes-auth-first-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleOptionsWithMixedSchemesAuth( + request: .init( + basicAuth: nil, + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ), + .init( + expectedValue: "Bearer testToken", + headerName: "Authorization" + ), + ] + ), + security: .option1( + .init( + apiKeyAuthNew: "test_api_key", + oauth2: "Bearer testToken" + ) + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testMultipleMixedOptionsWithMixedSchemesAuthSecondOption() async throws { + try recordTest(named: "auth-multiple-options-with-mixed-schemes-auth-second-option") + + let client = Client(security: .apiKeyAuth("")) + let response = try await client.authNew.multipleOptionsWithMixedSchemesAuth( + request: .init( + basicAuth: .init( + username: "testUser", + password: "testPass" + ), + headerAuth: [ + .init( + expectedValue: "test_api_key", + headerName: "x-api-key" + ), + ] + ), + security: .option2( + .init( + apiKeyAuthNew: "test_api_key", + basicAuth: .init( + username: "testUser", + password: "testPass" + ) + ) + ), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/FlatteningTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/FlatteningTests.swift new file mode 100755 index 000000000..33e099ee7 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/FlatteningTests.swift @@ -0,0 +1,90 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +import XCTest +@testable import OpenAPI + +class FlatteningTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + func testComponentBodyAndParamNoConflict() async throws { + try recordTest(named: "flattening-component-body-and-param-no-conflict") + + let object = createSimpleObject() + let response = try await client.flattening.componentBodyAndParamNoConflict( + request: .init( + paramStr: "param test", + simpleObject: object + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().args["paramStr"], "param test") + XCTAssertEqual(try response.data.res().json, object) + } + + func testComponentBodyAndParamConflict() async throws { + try recordTest(named: "flattening-component-body-and-param-conflict") + + let object = createSimpleObject() + let response = try await client.flattening.componentBodyAndParamConflict( + request: .init( + simpleObject: object, + str: "param test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().args["str"], "param test") + XCTAssertEqual(try response.data.res().json, object) + } + + func testInlineBodyAndParamConflict() async throws { + try recordTest(named: "flattening-inline-body-and-param-conflict") + + let response = try await client.flattening.inlineBodyAndParamConflict( + request: .init( + requestBody: .init( + str: "body test" + ), + str: "param test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().args["str"], "param test") + XCTAssertEqual(try response.data.res().json.str, "body test") + } + + func testInlineBodyAndParamNoConflict() async throws { + try recordTest(named: "flattening-inline-body-and-param-no-conflict") + + let response = try await client.flattening.inlineBodyAndParamNoConflict( + request: .init( + paramStr: "param test", + requestBody: .init( + bodyStr: "body test" + ) + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().args["paramStr"], "param test") + XCTAssertEqual(try response.data.res().json.bodyStr, "body test") + } + + func testConflictingParams() async throws { + try recordTest(named: "flattening-conflicting-params") + + let response = try await client.flattening.conflictingParams( + request: .init( + strPathParameter: "pathParam", + strQueryParameter: "queryParam" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/flattening/conflictingParams/pathParam?str=queryParam") + XCTAssertEqual(try response.data.res().args["str"], "queryParam") + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/GlobalsTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/GlobalsTests.swift new file mode 100755 index 000000000..5e7ccf2ff --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/GlobalsTests.swift @@ -0,0 +1,50 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class GlobalsTests: XCTestCase { + func testGlobalsQueryParameterGetUsesGlobal() async throws { + try recordTest(named: "globals-query-parameter-get-uses-global") + + let client = Client(globalParameters: GlobalParameters(globalQueryParam: "test"), security: .apiKeyAuth("api_key_here")) + let response = try await client.globals.globalsQueryParameterGet( + request: .init(globalQueryParam: nil) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().args.globalQueryParam, "test") + } + + func testGlobalsQueryParameterGetUsesLocal() async throws { + try recordTest(named: "globals-query-parameter-get-uses-local") + + let client = Client(globalParameters: GlobalParameters(globalQueryParam: "test"), security: .apiKeyAuth("api_key_here")) + let response = try await client.globals.globalsQueryParameterGet( + request: .init(globalQueryParam: "local") + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().args.globalQueryParam, "local") + } + + func testGlobalPathParameterGetUsesGlobal() async throws { + try recordTest(named: "globals-path-parameter-get-uses-global") + + let client = Client(globalParameters: GlobalParameters(globalPathParam: 1), security: .apiKeyAuth("api_key_here")) + let response = try await client.globals.globalPathParameterGet( + request: .init(globalPathParam: nil) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/globals/pathParameter/1") + } + + func testGlobalPathParameterGetUsesLocal() async throws { + try recordTest(named: "globals-path-parameter-get-uses-local") + + let client = Client(globalParameters: GlobalParameters(globalPathParam: 1), security: .apiKeyAuth("api_key_here")) + let response = try await client.globals.globalPathParameterGet( + request: .init(globalPathParam: 2) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/globals/pathParameter/2") + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/ParametersTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/ParametersTests.swift new file mode 100755 index 000000000..a8a090abf --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/ParametersTests.swift @@ -0,0 +1,427 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class ParameterTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + // MARK: - Path Parameters + + func testMixedParametersPrimitives() async throws { + try recordTest(named: "parameters-mixed-primitives") + + let response = try await client.parameters.mixedParametersPrimitives( + request: .init( + headerParam: "headerValue", + pathParam: "pathValue", + queryStringParam: "queryValue" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue", "Mixed path parameters should be serialized correctly") + XCTAssertEqual(try response.data.res().headers.headerparam, "headerValue") + XCTAssertEqual(try response.data.res().args.queryStringParam, "queryValue") + } + + func testSimplePathParameterPrimitives() async throws { + try recordTest(named: "parameters-simple-path-parameter-primitives") + + let response = try await client.parameters.simplePathParameterPrimitives( + request: .init( + boolParam: true, + intParam: 1, + numParam: 1.1, + strParam: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1", "Simple path parameters should be serialized correctly") + } + + func testSimplePathParameterObjects() async throws { + try recordTest(named: "parameters-simple-path-parameter-objects") + + let response = try await client.parameters.simplePathParameterObjects( + request: .init( + objParam: createSimpleObject(), + objParamExploded: createSimpleObject() + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/pathParams/obj/any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional/objExploded/any=any,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional") + } + + func testSimplePathParameterArrays() async throws { + try recordTest(named: "parameters-simple-path-parameter-arrays") + + let response = try await client.parameters.simplePathParameterArrays( + request: .init( + arrParam: ["test", "test2"] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/pathParams/arr/test,test2", "Array path parameters should be serialized correctly") + } + + func testSimplePathParameterMaps() async throws { + try recordTest(named: "parameters-simple-path-parameter-maps") + + let response = try await client.parameters.simplePathParameterMaps( + request: .init( + mapParam: ["test": "value", "test2": "value2"], + mapParamExploded: ["test": 1, "test2": 2] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2", "Map path parameters should be serialized correctly") + } + + func testPathParameterJSON() async throws { + try recordTest(named: "parameters-path-parameter-json") + + let response = try await client.parameters.pathParameterJson( + request: .init( + jsonObj: createSimpleObject() + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/pathParams/json/{\"any\":\"any\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000Z\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}", "JSON path parameters should be serialized correctly") + } + + // MARK: - Query Parameters + + func testFormQueryParamsPrimitive() async throws { + try recordTest(named: "parameters-form-query-params-primitive") + + let response = try await client.parameters.formQueryParamsPrimitive( + request: .init( + boolParam: true, + intParam: 1, + numParam: 1.1, + strParam: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().args.boolParam, "true") + XCTAssertEqual(try response.data.res().args.intParam, "1") + XCTAssertEqual(try response.data.res().args.numParam, "1.1") + XCTAssertEqual(try response.data.res().args.strParam, "test") + } + + func testFormQueryParamsObject() async throws { + try recordTest(named: "parameters-form-query-params-object") + + let response = try await client.parameters.formQueryParamsObject( + request: .init( + objParamExploded: createSimpleObject(), + objParam: createSimpleObject() + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/form/obj?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&objParam=any%2Cany%2Cbool%2Ctrue%2Cdate%2C2020-01-01%2CdateTime%2C2020-01-01T00%3A00%3A00.000Z%2Cenum%2Cone%2Cfloat32%2C1.1%2Cint%2C1%2Cint32%2C1%2Cint32Enum%2C55%2CintEnum%2C2%2Cnum%2C1.1%2Cstr%2Ctest%2CboolOpt%2Ctrue%2CstrOpt%2CtestOptional&str=test&strOpt=testOptional") + XCTAssertEqual(try response.data.res().args.str, "test") + XCTAssertEqual(try response.data.res().args.bool, "true") + XCTAssertEqual(try response.data.res().args.int, "1") + XCTAssertEqual(try response.data.res().args.num, "1.1") + XCTAssertEqual(try response.data.res().args.int32, "1") + XCTAssertEqual(try response.data.res().args.int32Enum, "55") + XCTAssertEqual(try response.data.res().args.intEnum, "2") + XCTAssertEqual(try response.data.res().args.float32, "1.1") + XCTAssertEqual(try response.data.res().args.enum, "one") + XCTAssertEqual(try response.data.res().args.any, "any") + XCTAssertEqual(try response.data.res().args.date, "2020-01-01") + XCTAssertEqual(try response.data.res().args.dateTime, "2020-01-01T00:00:00.000Z") + XCTAssertEqual(try response.data.res().args.boolOpt, "true") + XCTAssertEqual(try response.data.res().args.strOpt, "testOptional") + XCTAssertNil(try response.data.res().args.intOptNull) + XCTAssertNil(try response.data.res().args.numOptNull) + XCTAssertEqual(try response.data.res().args.objParam, "any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional") + } + + func testFormQueryParamsRefParamObject() async throws { + try recordTest(named: "parameters-form-query-params-ref-param-object") + + let response = try await client.parameters.formQueryParamsRefParamObject( + request: .init( + refObjParam: .init(bool: true, int: 1, num: 1.1, str: "test"), + refObjParamExploded: .init(bool: true, int: 1, num: 1.1, str: "test") + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/form/refParamObject?bool=true&int=1&num=1.1&refObjParam=bool%2Ctrue%2Cint%2C1%2Cnum%2C1.1%2Cstr%2Ctest&str=test") + XCTAssertEqual(try response.data.res().args.str, "test") + XCTAssertEqual(try response.data.res().args.bool, "true") + XCTAssertEqual(try response.data.res().args.int, "1") + XCTAssertEqual(try response.data.res().args.num, "1.1") + XCTAssertEqual(try response.data.res().args.refObjParam, "bool,true,int,1,num,1.1,str,test") + } + + func testFormQueryParamsArray() async throws { + try recordTest(named: "parameters-form-query-params-array") + + let response = try await client.parameters.formQueryParamsArray( + request: .init( + arrParam: ["test", "test2"], + arrParamExploded: [1, 2] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2") + XCTAssertEqual(try response.data.res().args.arrParam, "test,test2") + XCTAssertEqual(try response.data.res().args.arrParamExploded, ["1", "2"]) + } + + func testPipeDelimitedQueryParamsArray() async throws { + try recordTest(named: "parameters-pipe-query-params-array") + + let response = try await client.parameters.pipeDelimitedQueryParamsArray( + request: .init( + arrParam: ["test", "test2"], + arrParamExploded: [1, 2], + mapParam: [ + "key1": "val1", + "key2": "val2" + ], + objParam: createSimpleObject() + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/pipe/array?arrParam=test|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1|val1|key2|val2&objParam=any|any|bool|true|date|2020-01-01|dateTime|2020-01-01T00%3A00%3A00.000Z|enum|one|float32|1.1|int|1|int32|1|int32Enum|55|intEnum|2|num|1.1|str|test|boolOpt|true|strOpt|testOptional") + XCTAssertEqual(try response.data.res().args.arrParam, "test|test2") + XCTAssertEqual(try response.data.res().args.arrParamExploded, ["1", "2"]) + } + + func testFormQueryParamsMap() async throws { + try recordTest(named: "parameters-form-query-params-map") + + let response = try await client.parameters.formQueryParamsMap( + request: .init( + mapParam: [ + "test": "value", + "test2": "value2" + ], + mapParamExploded: [ + "test": 1, + "test2": 2 + ] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2") + XCTAssertEqual(try response.data.res().args["test"], "1") + XCTAssertEqual(try response.data.res().args["test2"], "2") + XCTAssertEqual(try response.data.res().args["mapParam"], "test,value,test2,value2") + } + + func testDeepObjectQueryParamsObject() async throws { + try recordTest(named: "parameters-deep-object-query-params-object") + + let response = try await client.parameters.deepObjectQueryParamsObject( + request: .init( + objParam: createSimpleObject(), + objArrParam: .init( + arr: ["test", "test2"] + ) + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/deepObject/obj?objArrParam[arr]=test&objArrParam[arr]=test2&objParam[any]=any&objParam[bool]=true&objParam[boolOpt]=true&objParam[date]=2020-01-01&objParam[dateTime]=2020-01-01T00%3A00%3A00.000Z&objParam[enum]=one&objParam[float32]=1.1&objParam[int]=1&objParam[int32]=1&objParam[int32Enum]=55&objParam[intEnum]=2&objParam[num]=1.1&objParam[str]=test&objParam[strOpt]=testOptional") + XCTAssertEqual(try response.data.res().args.objArrParamArr, ["test", "test2"]) + XCTAssertEqual(try response.data.res().args.objParamAny, "any") + XCTAssertEqual(try response.data.res().args.objParamBoolOpt, "true") + XCTAssertEqual(try response.data.res().args.objParamBool, "true") + XCTAssertEqual(try response.data.res().args.objParamDateTime, "2020-01-01T00:00:00.000Z") + XCTAssertEqual(try response.data.res().args.objParamDate, "2020-01-01") + XCTAssertEqual(try response.data.res().args.objParamEnum, "one") + XCTAssertEqual(try response.data.res().args.objParamFloat32, "1.1") + XCTAssertEqual(try response.data.res().args.objParamInt, "1") + XCTAssertEqual(try response.data.res().args.objParamInt32, "1") + XCTAssertEqual(try response.data.res().args.objParamInt32Enum, "55") + XCTAssertEqual(try response.data.res().args.objParamIntEnum, "2") + XCTAssertEqual(try response.data.res().args.objParamNum, "1.1") + XCTAssertEqual(try response.data.res().args.objParamStrOpt, "testOptional") + XCTAssertEqual(try response.data.res().args.objParamStr, "test") + } + + func testDeepObjectQueryParamsMap() async throws { + try recordTest(named: "parameters-deep-object-query-params-map") + + let response = try await client.parameters.deepObjectQueryParamsMap( + request: .init( + mapParam: [ + "test": "value", + "test2": "value2" + ], + mapArrParam: [ + "test": ["test", "test2"], + "test2": ["test3", "test4"] + ] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/deepObject/map?mapArrParam[test]=test&mapArrParam[test]=test2&mapArrParam[test2]=test3&mapArrParam[test2]=test4&mapParam[test]=value&mapParam[test2]=value2") + XCTAssertEqual(try response.data.res().args["mapArrParam[test]"]?.array(), ["test", "test2"]) + XCTAssertEqual(try response.data.res().args["mapArrParam[test2]"]?.array(), ["test3", "test4"]) + XCTAssertEqual(try response.data.res().args["mapParam[test]"]?.string(), "value") + XCTAssertEqual(try response.data.res().args["mapParam[test2]"]?.string(), "value2") + } + + func testJSONQueryParamsObject() async throws { + try recordTest(named: "parameters-json-query-params-object") + + let deepObject = try createDeepObject() + let simpleObject = createSimpleObject() + let response = try await client.parameters.jsonQueryParamsObject( + request: .init( + deepObjParam: deepObject, + simpleObjParam: simpleObject + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/json/obj?deepObjParam={\"any\"%3A{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}%2C\"arr\"%3A[{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}%2C{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}]%2C\"bool\"%3Atrue%2C\"int\"%3A1%2C\"map\"%3A{\"key\"%3A{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}}%2C\"num\"%3A1.1%2C\"obj\"%3A{\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}%2C\"str\"%3A\"test\"}&simpleObjParam={\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}") + + let encodedSimpleObject = (try? jsonEncoder().encode(simpleObject)).flatMap { String(data: $0, encoding: .utf8) } + XCTAssertEqual(try response.data.res().args.simpleObjParam, encodedSimpleObject) + let encodedDeepObject = (try? jsonEncoder().encode(deepObject)).flatMap { String(data: $0, encoding: .utf8) } + XCTAssertEqual(try response.data.res().args.deepObjParam, encodedDeepObject) + } + + func testMixedQueryParams() async throws { + try recordTest(named: "parameters-mixed-query-params") + + let simpleObject = createSimpleObject() + let response = try await client.parameters.mixedQueryParams( + request: .init( + deepObjectParam: simpleObject, + formParam: simpleObject, + jsonParam: simpleObject + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().url, "http://localhost:35123/anything/queryParams/mixed?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000Z&deepObjectParam[any]=any&deepObjectParam[bool]=true&deepObjectParam[boolOpt]=true&deepObjectParam[date]=2020-01-01&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000Z&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int]=1&deepObjectParam[int32]=1&deepObjectParam[int32Enum]=55&deepObjectParam[intEnum]=2&deepObjectParam[num]=1.1&deepObjectParam[str]=test&deepObjectParam[strOpt]=testOptional&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={\"any\"%3A\"any\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000Z\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}&num=1.1&str=test&strOpt=testOptional") + + let encodedSimpleObject = (try? jsonEncoder().encode(simpleObject)).flatMap { String(data: $0, encoding: .utf8) } + XCTAssertEqual(try response.data.res().args, [ + "any": "any", + "bool": "true", + "boolOpt": "true", + "date": "2020-01-01", + "dateTime": "2020-01-01T00:00:00.000Z", + "deepObjectParam[any]": "any", + "deepObjectParam[boolOpt]": "true", + "deepObjectParam[bool]": "true", + "deepObjectParam[dateTime]": "2020-01-01T00:00:00.000Z", + "deepObjectParam[date]": "2020-01-01", + "deepObjectParam[enum]": "one", + "deepObjectParam[float32]": "1.1", + "deepObjectParam[int32]": "1", + "deepObjectParam[int]": "1", + "deepObjectParam[int32Enum]": "55", + "deepObjectParam[intEnum]": "2", + "deepObjectParam[num]": "1.1", + "deepObjectParam[strOpt]": "testOptional", + "deepObjectParam[str]": "test", + "enum": "one", + "float32": "1.1", + "int": "1", + "int32": "1", + "int32Enum": "55", + "intEnum": "2", + "jsonParam": encodedSimpleObject ?? "", + "num": "1.1", + "str": "test", + "strOpt": "testOptional" + ]) + } + + // MARK: - Header Parameters + + func testHeaderParamsPrimitive() async throws { + try recordTest(named: "parameters-header-params-primitive") + + let response = try await client.parameters.headerParamsPrimitive( + request: .init( + xHeaderBoolean: true, + xHeaderInteger: 1, + xHeaderNumber: 1.1, + xHeaderString: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().headers.xHeaderBoolean, "true") + XCTAssertEqual(try response.data.res().headers.xHeaderInteger, "1") + XCTAssertEqual(try response.data.res().headers.xHeaderNumber, "1.1") + XCTAssertEqual(try response.data.res().headers.xHeaderString, "test") + } + + func testHeaderParamsObject() async throws { + try recordTest(named: "parameters-header-params-object") + + let response = try await client.parameters.headerParamsObject( + request: .init( + xHeaderObj: createSimpleObject(), + xHeaderObjExplode: createSimpleObject() + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().headers.xHeaderObj, "any,any,bool,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.000Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,boolOpt,true,strOpt,testOptional") + XCTAssertEqual(try response.data.res().headers.xHeaderObjExplode, "any=any,bool=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.000Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,boolOpt=true,strOpt=testOptional") + } + + func testHeaderParamsMap() async throws { + try recordTest(named: "parameters-header-params-map") + + let response = try await client.parameters.headerParamsMap( + request: .init( + xHeaderMap: [ + "key1": "value1", + "key2": "value2" + ], + xHeaderMapExplode: [ + "test1": "val1", + "test2": "val2" + ] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().headers.xHeaderMap, "key1,value1,key2,value2") + XCTAssertEqual(try response.data.res().headers.xHeaderMapExplode, "test1=val1,test2=val2") + } + + func testHeaderParamsArray() async throws { + try recordTest(named: "parameters-header-params-array") + + let response = try await client.parameters.headerParamsArray( + request: .init( + xHeaderArray: ["test1", "test2"] + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertFalse(response.data.isEmpty, "Response object should not be nil") + XCTAssertEqual(try response.data.res().headers.xHeaderArray, "test1,test2") + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/RequestBodiesTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/RequestBodiesTests.swift new file mode 100755 index 000000000..5e5da38d4 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/RequestBodiesTests.swift @@ -0,0 +1,607 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +import XCTest +@testable import OpenAPI + +class RequestBodiesTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + func testRequestBodyPostApplicationJSONSimple() async throws { + try recordTest(named: "request-bodies-post-application-json-simple") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonSimple( + request: object + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, object, "Serialized request body and response objects should be equal") + } + + func testRequestBodyPostApplicationJSONArray() async throws { + try recordTest(named: "request-bodies-post-application-json-array") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonArray( + request: [object], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.simpleObjects(), [object], "Serialized request body and response objects should be equal") + } + + func testRequestBodyPostApplicationJSONArrayOfArray() async throws { + try recordTest(named: "request-bodies-post-application-json-array-of-array") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonArrayOfArray( + request: [[object], [object]], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.arrs()[safelyIndexed: 0]?[safelyIndexed: 0], object) + XCTAssertEqual(try response.data.arrs()[safelyIndexed: 1]?[safelyIndexed: 0], object) + } + + func testRequestBodyPostApplicationJSONMap() async throws { + try recordTest(named: "request-bodies-post-application-json-map") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonMap( + request: [ + "mapElem1": object, + "mapElem2": object + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res()["mapElem1"], object) + XCTAssertEqual(try response.data.res()["mapElem2"], object) + } + + func testRequestBodyPostApplicationJSONMapOfMap() async throws { + try recordTest(named: "request-bodies-post-application-json-map-of-map") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonMapOfMap( + request: [ + "mapElem1": [ + "subMapElem1": object, + "subMapElem2": object, + ], + "mapElem2": [ + "subMapElem1": object, + "subMapElem2": object, + ] + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res()["mapElem1"]?["subMapElem1"], object) + XCTAssertEqual(try response.data.res()["mapElem1"]?["subMapElem2"], object) + XCTAssertEqual(try response.data.res()["mapElem2"]?["subMapElem1"], object) + XCTAssertEqual(try response.data.res()["mapElem2"]?["subMapElem2"], object) + } + + func testRequestBodyPostApplicationJSONMapOfArray() async throws { + try recordTest(named: "request-bodies-post-application-json-map-of-array") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonMapOfArray( + request: [ + "mapElem1": [object, object], + "mapElem2": [object, object] + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res()["mapElem1"]?[safelyIndexed: 0], object) + XCTAssertEqual(try response.data.res()["mapElem1"]?[safelyIndexed: 1], object) + XCTAssertEqual(try response.data.res()["mapElem2"]?[safelyIndexed: 0], object) + XCTAssertEqual(try response.data.res()["mapElem2"]?[safelyIndexed: 1], object) + } + + func testRequestBodyPostApplicationJSONArrayOfMap() async throws { + try recordTest(named: "request-bodies-post-application-json-array-of-map") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonArrayOfMap( + request: [ + ["mapElem1": object, "mapElem2": object], + ["mapElem1": object, "mapElem2": object], + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.maps()[safelyIndexed: 0]?["mapElem1"], object) + XCTAssertEqual(try response.data.maps()[safelyIndexed: 0]?["mapElem2"], object) + XCTAssertEqual(try response.data.maps()[safelyIndexed: 1]?["mapElem1"], object) + XCTAssertEqual(try response.data.maps()[safelyIndexed: 1]?["mapElem2"], object) + } + + func testRequestBodyPostApplicationJSONMapOfPrimitive() async throws { + try recordTest(named: "request-bodies-post-application-json-map-of-primitive") + + let response = try await client.requestBodies.requestBodyPostApplicationJsonMapOfPrimitive( + request: [ + "mapElem1": "hello", + "mapElem2": "world" + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res()["mapElem1"], "hello") + XCTAssertEqual(try response.data.res()["mapElem2"], "world") + } + + func testRequestBodyPostApplicationJSONArrayOfPrimitive() async throws { + try recordTest(named: "request-bodies-post-application-json-array-of-primitive") + + let response = try await client.requestBodies.requestBodyPostApplicationJsonArrayOfPrimitive( + request: ["hello", "world"], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.strings(), ["hello", "world"]) + } + + func testRequestBodyPostApplicationJSONMapOfMapOfPrimitive() async throws { + try recordTest(named: "request-bodies-post-application-json-map-of-map-of-primitive") + + let response = try await client.requestBodies.requestBodyPostApplicationJsonMapOfMapOfPrimitive( + request: [ + "mapElem1": [ + "subMapElem1": "foo", + "subMapElem2": "bar", + ], + "mapElem2": [ + "subMapElem1": "buzz", + "subMapElem2": "bazz", + ], + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res()["mapElem1"]?["subMapElem1"], "foo") + XCTAssertEqual(try response.data.res()["mapElem1"]?["subMapElem2"], "bar") + XCTAssertEqual(try response.data.res()["mapElem2"]?["subMapElem1"], "buzz") + XCTAssertEqual(try response.data.res()["mapElem2"]?["subMapElem2"], "bazz") + } + + func testRequestBodyPostApplicationJSONArrayOfArrayOfPrimitive() async throws { + try recordTest(named: "request-bodies-post-application-json-array-of-array-of-primitive") + + let response = try await client.requestBodies.requestBodyPostApplicationJsonArrayOfArrayOfPrimitive( + request: [ + ["foo", "bar"], + ["buzz", "bazz"] + ], + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.arrs(), [["foo", "bar"],["buzz", "bazz"]]) + } + + func testRequestBodyPostApplicationJSONArrayObject() async throws { + try recordTest(named: "request-bodies-post-application-json-array-object") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonArrayObj( + request: [object, object] + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.arrObjValue().json?.count, 2, "Response array should have 2 elements") + XCTAssertEqual(try response.data.arrObjValue().json?[safelyIndexed: 0], object) + XCTAssertEqual(try response.data.arrObjValue().json?[safelyIndexed: 1], object) + } + + func testRequestBodyPostApplicationJSONMapObject() async throws { + try recordTest(named: "request-bodies-post-application-json-map-object") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonMapObj( + request: [ + "mapElem1": object, + "mapElem2": object, + ] + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.mapObjValue().json?.count, 2, "Response array should have 2 elements") + XCTAssertEqual(try response.data.mapObjValue().json?["mapElem1"], object) + XCTAssertEqual(try response.data.mapObjValue().json?["mapElem2"], object) + } + + func testRequestBodyPostApplicationJSONDeep() async throws { + try recordTest(named: "request-bodies-post-application-json-deep") + + let object = try createDeepObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonDeep( + request: object + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json?.any, object.any) + XCTAssertEqual(try response.data.res().json?.arr, object.arr) + XCTAssertEqual(try response.data.res().json?.bool, object.bool) + XCTAssertEqual(try response.data.res().json?.int, object.int) + XCTAssertEqual(try response.data.res().json?.map, object.map) + XCTAssertEqual(try response.data.res().json?.num, object.num) + XCTAssertEqual(try response.data.res().json?.obj, object.obj) + XCTAssertEqual(try response.data.res().json?.str, object.str) + XCTAssertEqual(try response.data.res().json?.type, object.type) + } + + func testRequestBodyPostApplicationJSONMultipleJSONFiltered() async throws { + try recordTest(named: "request-bodies-post-application-json-multiple-json-filtered") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostApplicationJsonMultipleJsonFiltered( + request: object + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, object) + } + + func testRequestBodyPostMultipleContentTypesComponentFiltered() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-component-filtered") + + let object = createSimpleObject() + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesComponentFiltered( + request: object + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, object) + } + + func testRequestBodyPostMultipleContentTypesInlineFiltered() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-inline-filtered") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesInlineFiltered( + request: .init( + bool: true, + num: 1.1, + str: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json?["bool"]?.as(type: Bool.self), true) + XCTAssertEqual(try response.data.res().json?["num"]?.as(type: Double.self), 1.1) + XCTAssertEqual(try response.data.res().json?["str"]?.as(type: String.self), "test") + } + + func testRequestBodyPostMultipleContentTypesSplitJSON() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-split-json") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesSplitJson( + request: .init( + bool: true, + num: 1.1, + str: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json?["bool"]?.as(type: Bool.self), true) + XCTAssertEqual(try response.data.res().json?["num"]?.as(type: Double.self), 1.1) + XCTAssertEqual(try response.data.res().json?["str"]?.as(type: String.self), "test") + } + + func testRequestBodyPostMultipleContentTypesSplitMultipart() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-split-multipart") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesSplitMultipart( + request: .init( + bool2: true, + num2: 1.1, + str2: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form?["bool2"]?.as(type: String.self), "true") + XCTAssertEqual(try response.data.res().form?["num2"]?.as(type: String.self), "1.1") + XCTAssertEqual(try response.data.res().form?["str2"]?.as(type: String.self), "test") + } + + func testRequestBodyPostMultipleContentTypesSplitForm() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-split-form") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesSplitForm( + request: .init( + bool3: true, + num3: 1.1, + str3: "test" + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form?["bool3"]?.as(type: String.self), "true") + XCTAssertEqual(try response.data.res().form?["num3"]?.as(type: String.self), "1.1") + XCTAssertEqual(try response.data.res().form?["str3"]?.as(type: String.self), "test") + } + + func testRequestBodyPostMultipleContentTypesSplitJSONParam() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-split-json-with-param") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesSplitParamJson( + request: .init( + paramStr: "test param", + requestBody: .init( + bool: true, + num: 1.1, + str: "test body" + ) + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json?["bool"]?.as(type: Bool.self), true) + XCTAssertEqual(try response.data.res().json?["num"]?.as(type: Double.self), 1.1) + XCTAssertEqual(try response.data.res().json?["str"]?.as(type: String.self), "test body") + XCTAssertEqual(try response.data.res().args, ["paramStr": "test param"]) + } + + func testRequestBodyPostMultipleContentTypesSplitMultipartParam() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-split-multipart-with-param") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesSplitParamMultipart( + request: .init( + paramStr: "test param", + requestBody: .init( + bool2: true, + num2: 1.1, + str2: "test body" + ) + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form?["bool2"]?.as(type: String.self), "true") + XCTAssertEqual(try response.data.res().form?["num2"]?.as(type: String.self), "1.1") + XCTAssertEqual(try response.data.res().form?["str2"]?.as(type: String.self), "test body") + XCTAssertEqual(try response.data.res().args, ["paramStr": "test param"]) + } + + func testRequestBodyPostMultipleContentTypesSplitFormParam() async throws { + try recordTest(named: "request-bodies-post-multiple-content-types-split-form-with-param") + + let response = try await client.requestBodies.requestBodyPostMultipleContentTypesSplitParamForm( + request: .init( + paramStr: "test param", + requestBody: .init( + bool3: true, + num3: 1.1, + str3: "test body" + ) + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form?["bool3"]?.as(type: String.self), "true") + XCTAssertEqual(try response.data.res().form?["num3"]?.as(type: String.self), "1.1") + XCTAssertEqual(try response.data.res().form?["str3"]?.as(type: String.self), "test body") + XCTAssertEqual(try response.data.res().args, ["paramStr": "test param"]) + } + + func testRequestBodyPutMultipartSimple() async throws { + try recordTest(named: "request-bodies-put-multipart-simple") + + let response = try await client.requestBodies.requestBodyPutMultipartSimple( + request: createSimpleObject() + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form.any, "any") + XCTAssertEqual(try response.data.res().form.boolOpt, "true") + XCTAssertEqual(try response.data.res().form.bool, "true") + XCTAssertEqual(try response.data.res().form.dateTime, "2020-01-01T00:00:00.000Z") + XCTAssertEqual(try response.data.res().form.date, "2020-01-01") + XCTAssertEqual(try response.data.res().form.enum, "one") + XCTAssertEqual(try response.data.res().form.float32, "1.1") + XCTAssertEqual(try response.data.res().form.int, "1") + XCTAssertEqual(try response.data.res().form.int32, "1") + XCTAssertEqual(try response.data.res().form.num, "1.1") + XCTAssertEqual(try response.data.res().form.strOpt, "testOptional") + XCTAssertEqual(try response.data.res().form.str, "test") + } + + func testRequestBodyPutMultipartDeep() async throws { + try recordTest(named: "request-bodies-put-multipart-deep") + + let object = try createDeepObject() + let response = try await client.requestBodies.requestBodyPutMultipartDeep( + request: object + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form.arr, String(data: try jsonEncoder().encode(object.arr), encoding: .utf8)) + XCTAssertEqual(try response.data.res().form.bool, "true") + XCTAssertEqual(try response.data.res().form.int, "1") + XCTAssertEqual(try response.data.res().form.map, String(data: try jsonEncoder().encode(object.map), encoding: .utf8)) + XCTAssertEqual(try response.data.res().form.num, "1.1") + XCTAssertEqual(try response.data.res().form.obj, String(data: try jsonEncoder().encode(object.obj), encoding: .utf8)) + XCTAssertEqual(try response.data.res().form.str, "test") + } + + func testRequestBodyPutMultipartFile() async throws { + try recordTest(named: "request-bodies-put-multipart-file") + + let fileContents = try testUploadJSONContents() + let data = fileContents.data(using: .ascii) + XCTAssertNotNil(data, "Data for request should not be nil") + + if let data { + let response = try await client.requestBodies.requestBodyPutMultipartFile( + request: .init( + file: .init( + content: data, + file: fileContents + ) + ) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().files["file"], fileContents) + } + } + + func testRequestBodyPostFormSimple() async throws { + try recordTest(named: "request-bodies-post-form-simple") + + let response = try await client.requestBodies.requestBodyPostFormSimple( + request: createSimpleObject() + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form.any, "any") + XCTAssertEqual(try response.data.res().form.bool, "true") + XCTAssertEqual(try response.data.res().form.boolOpt, "true") + XCTAssertEqual(try response.data.res().form.date, "2020-01-01") + XCTAssertEqual(try response.data.res().form.dateTime, "2020-01-01T00:00:00.000Z") + XCTAssertEqual(try response.data.res().form.enum, "one") + XCTAssertEqual(try response.data.res().form.float32, "1.1") + XCTAssertEqual(try response.data.res().form.int, "1") + XCTAssertEqual(try response.data.res().form.int32, "1") + XCTAssertEqual(try response.data.res().form.num, "1.1") + XCTAssertEqual(try response.data.res().form.str, "test") + XCTAssertEqual(try response.data.res().form.strOpt, "testOptional") + } + + func testRequestBodyPostFormDeep() async throws { + try recordTest(named: "request-bodies-post-form-deep") + + let object = try createDeepObject() + let response = try await client.requestBodies.requestBodyPostFormDeep( + request: object + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form.arr, String(data: try jsonEncoder().encode(object.arr), encoding: .utf8)) + XCTAssertEqual(try response.data.res().form.bool, "true") + XCTAssertEqual(try response.data.res().form.int, "1") + XCTAssertEqual(try response.data.res().form.map, String(data: try jsonEncoder().encode(object.map), encoding: .utf8)) + XCTAssertEqual(try response.data.res().form.num, "1.1") + XCTAssertEqual(try response.data.res().form.obj, String(data: try jsonEncoder().encode(object.obj), encoding: .utf8)) + XCTAssertEqual(try response.data.res().form.str, "test") + } + + func testRequestBodyPostFormMapPrimitive() async throws { + try recordTest(named: "request-bodies-post-form-map-primitive") + + let dictionary = [ + "key1": "value1", + "key2": "value2", + "key3": "value3", + ] + let response = try await client.requestBodies.requestBodyPostFormMapPrimitive( + request: dictionary + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().form, dictionary) + } + + func testRequestBodyPutString() async throws { + try recordTest(named: "request-bodies-put-string") + + let string = "Hello World" + let response = try await client.requestBodies.requestBodyPutString( + request: string + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().data, string) + } + + func testRequestBodyPutBytes() async throws { + try recordTest(named: "request-bodies-put-bytes") + + let fileContents = try testUploadJSONContents() + let data = fileContents.data(using: .ascii) + XCTAssertNotNil(data, "Data for request should not be nil") + + if let data { + let response = try await client.requestBodies.requestBodyPutBytes( + request: data + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().data, fileContents) + } + } + + func testRequestBodyPutStringWithParams() async throws { + try recordTest(named: "request-bodies-put-string-with-params") + + let response = try await client.requestBodies.requestBodyPutStringWithParams( + request: .init(queryStringParam: "test param", requestBody: "Hello world") + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().data, "Hello world") + XCTAssertEqual(try response.data.res().args.queryStringParam, "test param") + } + + func testRequestBodyPutBytesWithParams() async throws { + try recordTest(named: "request-bodies-put-bytes-with-params") + + let fileContents = try testUploadJSONContents() + let data = fileContents.data(using: .ascii) + XCTAssertNotNil(data, "Data for request should not be nil") + + if let data { + let response = try await client.requestBodies.requestBodyPutBytesWithParams( + request: .init(queryStringParam: "test param", requestBody: data) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().data, fileContents) + XCTAssertEqual(try response.data.res().args.queryStringParam, "test param") + } + } + + func testRequestBodyEmptyObject() async throws { + try recordTest(named: "request-bodies-post-empty-object") + + let response = try await client.requestBodies.requestBodyPostEmptyObject( + request: .init(empty: nil, emptyWithEmptyProperties: nil) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testRequestBodyReadOnlyInput() async throws { + try recordTest(named: "request-bodies-read-only-input") + + let response = try await client.requestBodies.requestBodyReadOnlyInput( + request: .init(), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.readOnlyObject().bool, true) + XCTAssertEqual(try response.data.readOnlyObject().num, 1.0) + XCTAssertEqual(try response.data.readOnlyObject().string, "hello") + } + + func testRequestBodyWriteOnlyOutput() async throws { + try recordTest(named: "request-bodies-write-only-output") + + let response = try await client.requestBodies.requestBodyWriteOnlyOutput( + request: .init(bool: true, num: 1.0, string: "hello"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testRequestBodyWriteOnly() async throws { + try recordTest(named: "request-bodies-write-only") + + let response = try await client.requestBodies.requestBodyWriteOnly( + request: .init(bool: true, num: 1.0, string: "hello"), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.readOnlyObject().bool, true) + XCTAssertEqual(try response.data.readOnlyObject().num, 1.0) + XCTAssertEqual(try response.data.readOnlyObject().string, "hello") + } + + func testRequestBodyReadAndWrite() async throws { + try recordTest(named: "request-bodies-read-and-write") + + let response = try await client.requestBodies.requestBodyReadAndWrite( + request: .init(num1: 1, num2: 2, num3: 4), + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.readWriteObject().num3, 4) + XCTAssertEqual(try response.data.readWriteObject().sum, 7) + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/ResponseBodiesTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/ResponseBodiesTests.swift new file mode 100755 index 000000000..4031928a7 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/ResponseBodiesTests.swift @@ -0,0 +1,82 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +import XCTest +@testable import OpenAPI + +class ResponseBodiesTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + func testResponseBodyJSONGet() async throws { + try recordTest(named: "response-bodies-json-get") + + let response = try await client.responseBodyJsonGet() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.author, "Yours Truly") + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.date, "date of publication") + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.title, "Sample Slide Show") + + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.slides[safelyIndexed: 0]?.title, "Wake up to WonderWidgets!") + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.slides[safelyIndexed: 0]?.type, "all") + + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.slides[safelyIndexed: 1]?.title, "Overview") + XCTAssertEqual(try response.data.httpBinSimpleJsonObject().slideshow.slides[safelyIndexed: 1]?.type, "all") + XCTAssertEqual( + try response.data.httpBinSimpleJsonObject().slideshow.slides[safelyIndexed: 1]?.items, + ["Why WonderWidgets are great", "Who buys WonderWidgets"] + ) + } + + func testResponseBodyStringGet() async throws { + try recordTest(named: "response-bodies-string-get") + + let response = try await client.responseBodies.responseBodyStringGet() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.html(), "\n\n \n \n \n

Herman Melville - Moby-Dick

\n\n
\n

\n Availing himself of the mild, summer-cool weather that now reigned in these latitudes, and in preparation for the peculiarly active pursuits shortly to be anticipated, Perth, the begrimed, blistered old blacksmith, had not removed his portable forge to the hold again, after concluding his contributory work for Ahab's leg, but still retained it on deck, fast lashed to ringbolts by the foremast; being now almost incessantly invoked by the headsmen, and harpooneers, and bowsmen to do some little job for them; altering, or repairing, or new shaping their various weapons and boat furniture. Often he would be surrounded by an eager circle, all waiting to be served; holding boat-spades, pike-heads, harpoons, and lances, and jealously watching his every sooty movement, as he toiled. Nevertheless, this old man's was a patient hammer wielded by a patient arm. No murmur, no impatience, no petulance did come from him. Silent, slow, and solemn; bowing over still further his chronically broken back, he toiled away, as if toil were life itself, and the heavy beating of his hammer the heavy beating of his heart. And so it was.—Most miserable! A peculiar walk in this old man, a certain slight but painful appearing yawing in his gait, had at an early period of the voyage excited the curiosity of the mariners. And to the importunity of their persisted questionings he had finally given in; and so it came to pass that every one now knew the shameful story of his wretched fate. Belated, and not innocently, one bitter winter's midnight, on the road running between two country towns, the blacksmith half-stupidly felt the deadly numbness stealing over him, and sought refuge in a leaning, dilapidated barn. The issue was, the loss of the extremities of both feet. Out of this revelation, part by part, at last came out the four acts of the gladness, and the one long, and as yet uncatastrophied fifth act of the grief of his life's drama. He was an old man, who, at the age of nearly sixty, had postponedly encountered that thing in sorrow's technicals called ruin. He had been an artisan of famed excellence, and with plenty to do; owned a house and garden; embraced a youthful, daughter-like, loving wife, and three blithe, ruddy children; every Sunday went to a cheerful-looking church, planted in a grove. But one night, under cover of darkness, and further concealed in a most cunning disguisement, a desperate burglar slid into his happy home, and robbed them all of everything. And darker yet to tell, the blacksmith himself did ignorantly conduct this burglar into his family's heart. It was the Bottle Conjuror! Upon the opening of that fatal cork, forth flew the fiend, and shrivelled up his home. Now, for prudent, most wise, and economic reasons, the blacksmith's shop was in the basement of his dwelling, but with a separate entrance to it; so that always had the young and loving healthy wife listened with no unhappy nervousness, but with vigorous pleasure, to the stout ringing of her young-armed old husband's hammer; whose reverberations, muffled by passing through the floors and walls, came up to her, not unsweetly, in her nursery; and so, to stout Labor's iron lullaby, the blacksmith's infants were rocked to slumber. Oh, woe on woe! Oh, Death, why canst thou not sometimes be timely? Hadst thou taken this old blacksmith to thyself ere his full ruin came upon him, then had the young widow had a delicious grief, and her orphans a truly venerable, legendary sire to dream of in their after years; and all of them a care-killing competency.\n

\n
\n \n") + } + + func testResponseBodyXMLGet() async throws { + try recordTest(named: "response-bodies-xml-get") + + let response = try await client.responseBodies.responseBodyXmlGet() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.xml(), "\n\n\n\n\n\n \n \n Wake up to WonderWidgets!\n \n\n \n \n Overview\n Why WonderWidgets are great\n \n Who buys WonderWidgets\n \n\n") + } + + func testResponseBodyBytesGet() async throws { + try recordTest(named: "response-bodies-bytes-get") + + let response = try await client.responseBodies.responseBodyBytesGet() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.bytes().count, 100) + } + + func testResponseBodyReadOnly() async throws { + try recordTest(named: "response-bodies-read-only") + + let response = try await client.responseBodies.responseBodyReadOnly( + server: nil + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.readOnlyObject().bool, true) + XCTAssertEqual(try response.data.readOnlyObject().num, 1.0) + XCTAssertEqual(try response.data.readOnlyObject().string, "hello") + } + + func testResponseBodyEmptyWithHeaders() async throws { + try recordTest(named: "response-bodies-empty-with-headers") + + let response = try await client.responseBodies.responseBodyEmptyWithHeaders(request: .init( + xNumberHeader: 1.1, + xStringHeader: "hello" + )) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(response.headers?["X-String-Header"], "hello") + XCTAssertEqual(response.headers?["X-Number-Header"], "1.1") + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/ServerTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/ServerTests.swift new file mode 100755 index 000000000..41e8e5cb1 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/ServerTests.swift @@ -0,0 +1,188 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class ServerTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + func testSelectGlobalServerValid() async throws { + try recordTest(named: "servers-select-global-server-valid") + + let response = try await client.servers.selectGlobalServer() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testSelectGlobalServerBroken() async throws { + try recordTest(named: "servers-select-global-server-broken") + + client.use(server: .server2) + + let expectation = expectation(description: "API call with invalid server should throw error") + do { + _ = try await client.servers.selectGlobalServer() + } catch let error as OpenAPIError { + if case .failedToMakeNetworkRequest(let networkError) = error { + XCTAssertEqual((networkError as NSError).domain, NSURLErrorDomain) + XCTAssertEqual((networkError as NSError).code, -1003) + expectation.fulfill() + } else { + XCTFail("Expected error to be of type OpenAPIError.failedToMakeNetworkRequest()") + } + } + + // TODO: This can deadlock -- replace with `await fulfillment(...)` but this isn't supported on `macos-latest` in GH actions as it requires Xcode 14.3 + wait(for: [expectation], timeout: 3.0) + } + + func testSelectServerWithIDDefault() async throws { + try recordTest(named: "servers-select-server-with-id-default") + + client.use(server: .server1) + + let response = try await client.servers.selectServerWithID(server: nil) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testSelectServerWithIDValid() async throws { + try recordTest(named: "servers-select-server-with-id-valid") + + client.use(server: .server1) + + let response = try await client.servers.selectServerWithID(server: .valid) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testSelectServerWithIDBroken() async throws { + try recordTest(named: "servers-select-server-with-id-broken") + + client.use(server: .server1) + + let expectation = expectation(description: "API call with broken server URL should throw error") + do { + _ = try await client.servers.selectServerWithID(server: .broken) + } catch let error as OpenAPIError { + if case .failedToMakeNetworkRequest(let networkError) = error { + XCTAssertEqual((networkError as NSError).domain, NSURLErrorDomain) + XCTAssertEqual((networkError as NSError).code, -1003) + expectation.fulfill() + } else { + XCTFail("Expected error to be of type OpenAPIError.failedToMakeNetworkRequest()") + } + } + + // TODO: This can deadlock -- replace with `await fulfillment(...)` but this isn't supported on `macos-latest` in GH actions as it requires Xcode 14.3 + wait(for: [expectation], timeout: 3.0) + } + + func testServerWithTemplatesGlobal() async throws { + try recordTest(named: "servers-server-with-templates-global") + + client.use(server: .server3(hostname: "localhost", port: "35123")) + + let response = try await client.servers.serverWithTemplatesGlobal() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testServerWithTemplatesGlobalDefaults() async throws { + try recordTest(named: "servers-server-with-templates-global-defaults") + + client.use(server: .server3()) + + let response = try await client.servers.serverWithTemplatesGlobal() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testServerWithTemplatesGlobalEnum() async throws { + try recordTest(named: "servers-server-with-templates-global-enum") + + client.use(server: .server4(something: .somethingElseAgain)) + + let response = try await client.servers.serverWithTemplatesGlobal() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testServerWithTemplates() async throws { + try recordTest(named: "servers-server-with-templates") + + let response = try await client.servers.serverWithTemplates( + server: .server1(hostname: "localhost", port: "35123") + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testServerWithTemplatesDefaults() async throws { + try recordTest(named: "servers-server-with-templates-defaults") + + let response = try await client.servers.serverWithTemplates(server: nil) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testServerByIDWithTemplates() async throws { + try recordTest(named: "servers-server-by-id-with-templates") + + let response = try await client.servers.serversByIDWithTemplates(server: nil) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testGlobalServerWithTemplatedProtocol() async throws { + try recordTest(named: "servers-global-server-with-templated-protocol") + + client.use(server: .server5(hostname: "localhost", port: "35123", protocol: "http")) + let response = try await client.servers.selectGlobalServer() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testGlobalServerWithInvalidTemplatedProtocol() async throws { + try recordTest(named: "servers-global-server-with-invalid-templated-protocol") + + client.use(server: .server5(hostname: "localhost", port: "35123", protocol: "invalid")) + + let expectation = expectation(description: "API call with invalid server URL should throw error") + do { + _ = try await client.servers.selectGlobalServer() + } catch let error as OpenAPIError { + if case .failedToMakeNetworkRequest(let networkError) = error { + XCTAssertEqual((networkError as NSError).domain, NSURLErrorDomain) + XCTAssertEqual((networkError as NSError).code, -1002) + expectation.fulfill() + } else { + XCTFail("Expected error to be of type OpenAPIError.failedToMakeNetworkRequest()") + } + } + + // TODO: This can deadlock -- replace with `await fulfillment(...)` but this isn't supported on `macos-latest` in GH actions as it requires Xcode 14.3 + wait(for: [expectation], timeout: 3.0) + } + + func testServerWithProtocolTemplate() async throws { + try recordTest(named: "servers-server-with-protocol-template") + + let response = try await client.servers.serverWithProtocolTemplate(server: .main(hostname: "localhost", port: "35123", protocol: "http")) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + } + + func testServerWithInvalidProtocolTemplate() async throws { + try recordTest(named: "servers-server-with-invalid-protocol-template") + + let expectation = expectation(description: "API call with invalid server URL should throw error") + do { + _ = try await client.servers.serverWithProtocolTemplate(server: .main(hostname: "localhost", port: "35123", protocol: "invalid")) + } catch let error as OpenAPIError { + if case .failedToMakeNetworkRequest(let networkError) = error { + XCTAssertEqual((networkError as NSError).domain, NSURLErrorDomain) + XCTAssertEqual((networkError as NSError).code, -1002) + expectation.fulfill() + } else { + XCTFail("Expected error to be of type OpenAPIError.failedToMakeNetworkRequest()") + } + } + + // TODO: This can deadlock -- replace with `await fulfillment(...)` but this isn't supported on `macos-latest` in GH actions as it requires Xcode 14.3 + wait(for: [expectation], timeout: 3.0) + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/TelemetryTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/TelemetryTests.swift new file mode 100755 index 000000000..95e9d0001 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/TelemetryTests.swift @@ -0,0 +1,32 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class TelemetryTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + func testTelemetryUserAgentGet() async throws { + try recordTest(named: "telemetry-user-agent-get") + + let response = try await client.telemetry.telemetryUserAgentGet() + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().headers["X-Speakeasy-User-Agent"], "speakeasy-sdk/swift 0.0.1 internal 0.1.0 OpenAPI") + } + + func testTelemetrySpeakeasyUserAgentGet() async throws { + try recordTest(named: "telemetry-speakeasy-user-agent-get") + + let userAgent = "test user agent" + let response = try await client.telemetry.telemetrySpeakeasyUserAgentGet( + request: .init(userAgent: userAgent) + ) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().headers["User-Agent"], userAgent) + XCTAssertEqual(try response.data.res().headers["X-Speakeasy-User-Agent"], "speakeasy-sdk/swift 0.0.1 internal 0.1.0 OpenAPI") + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/TestObjects.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/TestObjects.swift new file mode 100755 index 000000000..f129967f5 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/TestObjects.swift @@ -0,0 +1,309 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation +@testable import OpenAPI + +enum TestObjectsError: Error { + case unexpectedResultType +} +func createSimpleObject() -> Shared.SimpleObject { + return .init( + any: AnyValue("any"), + bool: true, + date: createSampleDate(), + dateTime: createSampleDate(), + enum: .one, + float32: 1.1, + int: 1, + int32: 1, + int32Enum: .fiftyFive, + intEnum: .second, + num: 1.1, + str: "test", + bigint: nil, + bigintStr: nil, + boolOpt: true, + intOptNull: nil, + numOptNull: nil, + strOpt: "testOptional" + ) +} + +func createDeepObject() throws -> Shared.DeepObject { + return .init( + any: .simpleObject(createSimpleObject()), + arr: [createSimpleObject(), createSimpleObject()], + bool: true, + int: 1, + map: ["key": createSimpleObject()], + num: 1.1, + obj: createSimpleObject(), + str: "test", + type: nil + ) +} + +func createSampleDate() -> Date { + var components = DateComponents() + components.year = 2020 + components.month = 1 + components.day = 1 + components.hour = 0 + components.minute = 0 + components.second = 0 + return Calendar.current.date(from: components)! +} + +// MARK: - Equatable + +extension Shared.SimpleObject: Equatable { + public static func == (lhs: Shared.SimpleObject, rhs: Shared.SimpleObject) -> Bool { + return lhs.any == rhs.any && + lhs.bool == rhs.bool && + lhs.date == rhs.date && + lhs.dateTime == rhs.dateTime && + lhs.enum == rhs.enum && + lhs.float32 == rhs.float32 && + lhs.int == rhs.int && + lhs.int32 == rhs.int32 && + lhs.int32Enum == rhs.int32Enum && + lhs.intEnum == rhs.intEnum && + lhs.num == rhs.num && + lhs.str == rhs.str && + lhs.boolOpt == rhs.boolOpt && + lhs.intOptNull == rhs.intOptNull && + lhs.numOptNull == rhs.numOptNull && + lhs.strOpt == rhs.strOpt + } +} + +extension Shared.DeepObject: Equatable { + public static func == (lhs: Shared.DeepObject, rhs: Shared.DeepObject) -> Bool { + return lhs.any == rhs.any && + lhs.arr == rhs.arr && + lhs.bool == rhs.bool && + lhs.int == rhs.int && + lhs.map == rhs.map && + lhs.num == rhs.num && + lhs.obj == rhs.obj && + lhs.str == rhs.str && + lhs.type == rhs.type + } +} + +extension Shared.SimpleObjectWithType: Equatable { + public static func == (lhs: Shared.SimpleObjectWithType, rhs: Shared.SimpleObjectWithType) -> Bool { + return lhs.any == rhs.any && + lhs.bool == rhs.bool && + lhs.date == rhs.date && + lhs.dateTime == rhs.dateTime && + lhs.`enum` == rhs.`enum` && + lhs.float32 == rhs.float32 && + lhs.int == rhs.int && + lhs.int32 == rhs.int32 && + lhs.int32Enum == rhs.int32Enum && + lhs.intEnum == rhs.intEnum && + lhs.num == rhs.num && + lhs.str == rhs.str && + lhs.type == rhs.type && + lhs.bigint == rhs.bigint && + lhs.bigintStr == rhs.bigintStr && + lhs.boolOpt == rhs.boolOpt && + lhs.intOptNull == rhs.intOptNull && + lhs.numOptNull == rhs.numOptNull && + lhs.strOpt == rhs.strOpt + } +} + +extension Shared.DeepObjectWithType: Equatable { + public static func == (lhs: Shared.DeepObjectWithType, rhs: Shared.DeepObjectWithType) -> Bool { + return lhs.any == rhs.any && + lhs.arr == rhs.arr && + lhs.bool == rhs.bool && + lhs.int == rhs.int && + lhs.map == rhs.map && + lhs.num == rhs.num && + lhs.obj == rhs.obj && + lhs.str == rhs.str && + lhs.type == rhs.type + } +} + +extension Shared.TypedObject1: Equatable { + public static func == (lhs: Shared.TypedObject1, rhs: Shared.TypedObject1) -> Bool { + return lhs.type == rhs.type && lhs.value == rhs.value + } +} + +extension Shared.TypedObject2: Equatable { + public static func == (lhs: Shared.TypedObject2, rhs: Shared.TypedObject2) -> Bool { + return lhs.type == rhs.type && lhs.value == rhs.value + } +} + +extension Shared.TypedObject3: Equatable { + public static func == (lhs: Shared.TypedObject3, rhs: Shared.TypedObject3) -> Bool { + return lhs.type == rhs.type && lhs.value == rhs.value + } +} + +// MARK: - Union Types + +extension Shared.DeepObjectAny: Equatable { + public static func == (lhs: Shared.DeepObjectAny, rhs: Shared.DeepObjectAny) -> Bool { + switch (lhs, rhs) { + case (.simpleObject(let simpleObject1), .simpleObject(let simpleObject2)): + return simpleObject1 == simpleObject2 + case (.string(let string1), .string(let string2)): + return string1 == string2 + default: + return false + } + } +} + +extension Shared.DeepObjectWithTypeAny: Equatable { + public static func == (lhs: Shared.DeepObjectWithTypeAny, rhs: Shared.DeepObjectWithTypeAny) -> Bool { + switch (lhs, rhs) { + case (.simpleObject(let simpleObject1), .simpleObject(let simpleObject2)): + return simpleObject1 == simpleObject2 + case (.string(let string1), .string(let string2)): + return string1 == string2 + default: + return false + } + } +} + +extension Shared.StronglyTypedOneOfObject: Equatable { + public static func == (lhs: Shared.StronglyTypedOneOfObject, rhs: Shared.StronglyTypedOneOfObject) -> Bool { + switch (lhs, rhs) { + case (.simpleObjectWithType(let simpleObject1), .simpleObjectWithType(let simpleObject2)): + return simpleObject1 == simpleObject2 + case (.deepObjectWithType(let deepObject1), .deepObjectWithType(let deepObject2)): + return deepObject1 == deepObject2 + default: + return false + } + } +} + +extension Shared.WeaklyTypedOneOfObject: Equatable { + public static func == (lhs: Shared.WeaklyTypedOneOfObject, rhs: Shared.WeaklyTypedOneOfObject) -> Bool { + switch (lhs, rhs) { + case (.simpleObject(let simpleObject1), .simpleObject(let simpleObject2)): + return simpleObject1 == simpleObject2 + case (.deepObject(let deepObject1), .deepObject(let deepObject2)): + return deepObject1 == deepObject2 + default: + return false + } + } +} + +extension Shared.TypedObjectOneOf: Equatable { + public static func == (lhs: Shared.TypedObjectOneOf, rhs: Shared.TypedObjectOneOf) -> Bool { + switch (lhs, rhs) { + case (.typedObject1(let object1), .typedObject1(let object2)): + return object1 == object2 + case (.typedObject2(let object1), .typedObject2(let object2)): + return object1 == object2 + case (.typedObject3(let object1), .typedObject3(let object2)): + return object1 == object2 + default: + return false + } + } +} + +extension Operations.PrimitiveTypeOneOfPostResJson: Equatable { + public static func == (lhs: Operations.PrimitiveTypeOneOfPostResJson, rhs: Operations.PrimitiveTypeOneOfPostResJson) -> Bool { + switch (lhs, rhs) { + case (.string(let value1), .string(let value2)): + return value1 == value2 + case (.integer(let value1), .integer(let value2)): + return value1 == value2 + case (.number(let value1), .number(let value2)): + return value1 == value2 + case (.bool(let value1), .bool(let value2)): + return value1 == value2 + default: + return false + } + } +} + +extension Operations.MixedTypeOneOfPostResJson: Equatable { + public static func == (lhs: Operations.MixedTypeOneOfPostResJson, rhs: Operations.MixedTypeOneOfPostResJson) -> Bool { + switch (lhs, rhs) { + case (.string(let value1), .string(let value2)): + return value1 == value2 + case (.integer(let value1), .integer(let value2)): + return value1 == value2 + case (.simpleObject(let value1), .simpleObject(let value2)): + return value1 == value2 + default: + return false + } + } +} + +extension Shared.StronglyTypedOneOfObject { + func simpleObjectWithType() throws -> Shared.SimpleObjectWithType { + switch self { + case .simpleObjectWithType(let object): + return object + case .deepObjectWithType: + throw TestObjectsError.unexpectedResultType + } + } + + func deepObjectWithType() throws -> Shared.DeepObjectWithType { + switch self { + case .simpleObjectWithType: + throw TestObjectsError.unexpectedResultType + case .deepObjectWithType(let object): + return object + } + } +} + +extension Shared.WeaklyTypedOneOfObject { + func simpleObject() throws -> Shared.SimpleObject { + switch self { + case .simpleObject(let object): + return object + case .deepObject: + throw TestObjectsError.unexpectedResultType + } + } + + func deepObject() throws -> Shared.DeepObject { + switch self { + case .simpleObject: + throw TestObjectsError.unexpectedResultType + case .deepObject(let object): + return object + } + } +} + +extension Operations.DeepObjectQueryParamsMapResArgs { + func string() throws -> String { + switch self { + case .string(let string): + return string + case .array: + throw TestObjectsError.unexpectedResultType + } + } + + func array() throws -> [String] { + switch self { + case .array(let array): + return array + case .string: + throw TestObjectsError.unexpectedResultType + } + } +} diff --git a/swift-client-sdk/Tests/OpenAPITests/testsprimary/UnionsTests.swift b/swift-client-sdk/Tests/OpenAPITests/testsprimary/UnionsTests.swift new file mode 100755 index 000000000..62dbd3adf --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testsprimary/UnionsTests.swift @@ -0,0 +1,170 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class UnionsTests: XCTestCase { + var client: Client! + + override func setUp() { + client = Client(security: .apiKeyAuth("api_key_here")) + } + + func testStronglyTypedOneOfPostBasic() async throws { + try recordTest(named: "unions-strongly-typed-one-of-post-basic") + + let object = Shared.SimpleObjectWithType( + any: AnyValue("any"), + bool: true, + date: createSampleDate(), + dateTime: createSampleDate(), + enum: .one, + float32: 1.1, + int: 1, + int32: 1, + int32Enum: .fiftyFive, + intEnum: .second, + num: 1.1, + str: "test" + ) + + let response = try await client.unions.stronglyTypedOneOfPost(request: .simpleObjectWithType(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .simpleObjectWithType(object)) + } + + func testStronglyTypedOneOfPostDeep() async throws { + try recordTest(named: "unions-strongly-typed-one-of-post-deep") + + let object = Shared.DeepObjectWithType( + any: .simpleObject(createSimpleObject()), + arr: [createSimpleObject(), createSimpleObject()], + bool: true, + int: 1, + map: ["key": createSimpleObject()], + num: 1.1, + obj: createSimpleObject(), + str: "test" + ) + + let response = try await client.unions.stronglyTypedOneOfPost(request: .deepObjectWithType(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json.deepObjectWithType().any, object.any) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().arr, object.arr) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().bool, object.bool) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().int, object.int) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().map, object.map) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().num, object.num) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().obj, object.obj) + XCTAssertEqual(try response.data.res().json.deepObjectWithType().str, object.str) + } + + func testWeaklyTypedOneOfPostBasic() async throws { + try recordTest(named: "unions-weakly-typed-one-of-post-basic") + + let object = createSimpleObject() + let response = try await client.unions.weaklyTypedOneOfPost(request: .simpleObject(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .simpleObject(object)) + } + + func testWeaklyTypedOneOfPostDeep() async throws { + try recordTest(named: "unions-weakly-typed-one-of-post-deep") + + let object = try createDeepObject() + let response = try await client.unions.weaklyTypedOneOfPost(request: .deepObject(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json.deepObject().any, object.any) + XCTAssertEqual(try response.data.res().json.deepObject().arr, object.arr) + XCTAssertEqual(try response.data.res().json.deepObject().bool, object.bool) + XCTAssertEqual(try response.data.res().json.deepObject().int, object.int) + XCTAssertEqual(try response.data.res().json.deepObject().map, object.map) + XCTAssertEqual(try response.data.res().json.deepObject().num, object.num) + XCTAssertEqual(try response.data.res().json.deepObject().obj, object.obj) + XCTAssertEqual(try response.data.res().json.deepObject().str, object.str) + } + + func testTypedObjectOneOfPostObj1() async throws { + try recordTest(named: "unions-typed-object-one-of-post-obj1") + + let object = Shared.TypedObject1(type: .obj1, value: "") + let response = try await client.unions.typedObjectOneOfPost(request: .typedObject1(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .typedObject1(object)) + } + + func testTypedObjectOneOfPostObj2() async throws { + try recordTest(named: "unions-typed-object-one-of-post-obj2") + + let object = Shared.TypedObject2(type: .obj2, value: "") + let response = try await client.unions.typedObjectOneOfPost(request: .typedObject2(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .typedObject2(object)) + } + + func testTypedObjectOneOfPostObj3() async throws { + try recordTest(named: "unions-typed-object-one-of-post-obj3") + + let object = Shared.TypedObject3(type: .obj3, value: "") + let response = try await client.unions.typedObjectOneOfPost(request: .typedObject3(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .typedObject3(object)) + } + + func testPrimitiveTypeOneOfPostString() async throws { + try recordTest(named: "unions-primitive-type-one-of-post-string") + + let response = try await client.unions.primitiveTypeOneOfPost(request: .string("test")) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .string("test")) + } + + func testPrimitiveTypeOneOfPostInteger() async throws { + try recordTest(named: "unions-primitive-type-one-of-post-integer") + + let response = try await client.unions.primitiveTypeOneOfPost(request: .integer(111)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .integer(111)) + } + + func testPrimitiveTypeOneOfPostNumber() async throws { + try recordTest(named: "unions-primitive-type-one-of-post-number") + + let response = try await client.unions.primitiveTypeOneOfPost(request: .number(22.2)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .number(22.2)) + } + + func testPrimitiveTypeOneOfPostBoolean() async throws { + try recordTest(named: "unions-primitive-type-one-of-post-boolean") + + let response = try await client.unions.primitiveTypeOneOfPost(request: .bool(true)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .bool(true)) + } + + func testMixedTypeOneOfPostString() async throws { + try recordTest(named: "unions-mixed-type-one-of-post-string") + + let response = try await client.unions.mixedTypeOneOfPost(request: .string("test")) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .string("test")) + } + + func testMixedTypeOneOfPostInteger() async throws { + try recordTest(named: "unions-mixed-type-one-of-post-integer") + + let response = try await client.unions.mixedTypeOneOfPost(request: .integer(111)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .integer(111)) + } + + func testMixedTypeOneOfPostObject() async throws { + try recordTest(named: "unions-mixed-type-one-of-post-object") + + let object = createSimpleObject() + let response = try await client.unions.mixedTypeOneOfPost(request: .simpleObject(object)) + XCTAssertEqual(response.statusCode, 200, "Request should succeed") + XCTAssertEqual(try response.data.res().json, .simpleObject(object)) + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/testssimple_security/AuthTest.swift b/swift-client-sdk/Tests/OpenAPITests/testssimple_security/AuthTest.swift new file mode 100755 index 000000000..deb2a2500 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/testssimple_security/AuthTest.swift @@ -0,0 +1,16 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import XCTest +@testable import OpenAPI + +class AuthTests: XCTestCase { + // Bit of a hack but do this once in a class-based test setup function so this is run once for the entire test suite. + // Doesn't work if only single test classes are run. + override class func setUp() { + do { + try resetTestRecords() + } catch { + print("Couldn't reset test record file") + } + } +} \ No newline at end of file diff --git a/swift-client-sdk/Tests/OpenAPITests/utils/TestData.swift b/swift-client-sdk/Tests/OpenAPITests/utils/TestData.swift new file mode 100755 index 000000000..0440dab52 --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/utils/TestData.swift @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +func testUploadJSONRelativeFilePath() -> String { + return "testdata/testUpload.json" +} + +func testUploadJSONContents() throws -> String { + let testDataURL = URL(fileURLWithPath: #filePath) + .deletingLastPathComponent() + .deletingLastPathComponent() + .appendingPathComponent(testUploadJSONRelativeFilePath()) + return try String(contentsOf: testDataURL) +} diff --git a/swift-client-sdk/Tests/OpenAPITests/utils/TestRecording.swift b/swift-client-sdk/Tests/OpenAPITests/utils/TestRecording.swift new file mode 100755 index 000000000..c2307565b --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/utils/TestRecording.swift @@ -0,0 +1,43 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +enum TestRecordingError: Swift.Error { + case dataConversion +} + +func resetTestRecords() throws { + try FileManager.default.removeItem(at: testRecordFileURL()) +} + +func recordTest(named name: String) throws { + guard let line = "\(name)\n".data(using: .utf8) else { + throw TestRecordingError.dataConversion + } + + let fileURL = testRecordFileURL() + + if FileManager.default.fileExists(atPath: fileURL.path) { + let fileHandle = try FileHandle(forWritingTo: fileURL) + if #available(iOS 13.4, *) { + try fileHandle.seekToEnd() + try fileHandle.write(contentsOf: line) + } else { + fileHandle.seekToEndOfFile() + fileHandle.write(line) + } + try fileHandle.close() + } else { + try line.write(to: fileURL) + } +} + +fileprivate func testRecordFileURL() -> URL { + return URL(fileURLWithPath: #filePath) + .deletingLastPathComponent() + .deletingLastPathComponent() + .deletingLastPathComponent() + .deletingLastPathComponent() + .appendingPathComponent("test-swift-record.txt") +} + diff --git a/swift-client-sdk/Tests/OpenAPITests/utils/TestUtils.swift b/swift-client-sdk/Tests/OpenAPITests/utils/TestUtils.swift new file mode 100755 index 000000000..3876fb59a --- /dev/null +++ b/swift-client-sdk/Tests/OpenAPITests/utils/TestUtils.swift @@ -0,0 +1,10 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +import Foundation + +extension Array { + subscript(safelyIndexed index: Int) -> Element? { + guard index >= 0 && index < count else { return nil } + return self[index] + } +} diff --git a/swift-client-sdk/USAGE.md b/swift-client-sdk/USAGE.md new file mode 100755 index 000000000..a08104eed --- /dev/null +++ b/swift-client-sdk/USAGE.md @@ -0,0 +1,168 @@ + + + +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.generation.getGlobalNameOverride() + +switch response.data { +case .getGlobalNameOverride200ApplicationJSONObject(let getGlobalNameOverride200ApplicationJSONObject): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + + +## Second +Do this second +```swift +import Foundation +import OpenAPI + +let client = Client(security: .apiKeyAuth("Token YOUR_API_KEY")) + +let response = try await client.generation.usageExamplePost( + request: Operations.UsageExamplePostRequest( + bigintParameter: 168827, + bigintStrParameter: "string", + boolParameter: false, + dateParameter: Date(), + dateTimeDefaultParameter: Date(), + dateTimeParameter: Date(), + decimalParameter: 2679.33, + decimalStrParameter: "string", + doubleParameter: 5223.72, + enumParameter: .value1, + falseyNumberParameter: 0, + float32Parameter: 6946.59, + floatParameter: 2286.22, + int64Parameter: 102975, + intParameter: 566999, + strParameter: "example 1", + bigintParameterOptional: 569663, + bigintStrParameterOptional: "string", + decimalParameterOptional: 2642.95, + decimalStrParameterOptional: "string", + optEnumParameter: .value3, + requestBody: Operations.UsageExamplePostRequestBody( + fakerFormattedStrings: Shared.FakerFormattedStrings( + addressFormat: "4470 Bennett Forest", + directoryFormat: "/lib", + domainFormat: "ornate-courthouse.org", + emailFormat: "Sofia_Gulgowski29@yahoo.com", + filenameFormat: "southwest.mp2a", + filepathFormat: "/usr/green_target.z4", + imageFormat: "https://loremflickr.com/640/480", + ipv4Format: "116.31.181.178", + ipv6Format: "73ac:9ee2:348d:76c3:164a:258b:e7e1:3586", + jsonFormat: "{key: 42822, key1: null, key2: \"string\"}", + macFormat: "7d:ac:95:a0:15:23", + passwordFormat: "eWzdveK0sHokC9n", + phoneFormat: "1-340-562-2122 x175", + timezoneFormat: "Asia/Yekaterinburg", + unknownFormat: "string", + urlFormat: "https://wilted-cytoplasm.biz", + uuidFormat: "e0f62de2-e2d4-47a9-bf10-0f753b9b364b", + zipcodeFormat: "73625" + ), + fakerStrings: Shared.FakerStrings( + account: "68772663", + address: "192 Lind Route", + amount: "654.25", + avatar: "https://loremflickr.com/640/480", + city: "Ashleytown", + color: "turquoise", + comment: "Andy shoes are designed to keeping in mind durability as well as trends, the most stylish range of shoes & sandals", + company: "Schultz, Schaefer and Will", + country: "Venezuela", + countryCode: "PT", + currency: "Hryvnia", + datatype: "datetime", + `default`: "string", + description: "Profit-focused systematic initiative", + directory: "/etc/periodic", + domainName: "shimmering-cloudburst.com", + emailAddr: "Monserrat_Dare8@yahoo.com", + `extension`: "jpg", + filename: "malawi.mpg4", + filepath: "/srv/androgyne_forge.sql", + filetype: "image", + firstName: "Sven", + fullName: "Nathan Mosciski", + gender: "Male to female transsexual woman", + iban: "AZ39AEBC00680065007140036325", + id: "", + iPv4: "39.115.3.112", + iPv6: "4e65:3f13:113d:0305:fb1e:2e9e:e6a2:42a1", + job: "International Metrics Administrator", + json: "{key: 91937, key1: null, key2: \"string\"}", + key: "", + lastName: "Bergnaum", + latitude: "16.9358", + locale: "ar", + longitude: "-80.3158", + mac: "55:a8:ca:17:df:8f", + manufacturer: "Smart", + material: "Metal", + middleName: "Greer", + model: "Fortwo", + password: "8AXYBy71wIwgEZJ", + phone: "1-960-553-5269 x5671", + pin: "2662", + postalCode: "70476", + price: "100.00", + product: "Awesome Fresh Table", + sex: "female", + street: "Penelope Terrace", + timezone: "Australia/Hobart", + unit: "degree Celsius", + url: "http://absolute-barbecue.org", + username: "Casimer17", + uuid: "1b7b6969-fc72-49e9-b1c7-ed9281fd55b6" + ), + simpleObject: Shared.SimpleObject( + any: AnyValue("any"), + bool: true, + date: Date(), + dateTime: Date(), + `enum`: .one, + float32: 1.1, + int: 1, + int32: 1, + int32Enum: .oneHundredAndEightyOne, + intEnum: .second, + num: 1.1, + str: "test", + bigint: 8821239038968084, + bigintStr: "9223372036854775808", + boolOpt: true, + decimal: 3.141592653589793, + decimalStr: "3.14159265358979344719667586", + intOptNull: 69000, + numOptNull: 4369.7, + strOpt: "testOptional" + ) + ) + ), + security: Operations.UsageExamplePostSecurity(username: "YOUR_USERNAME", password: "YOUR_PASSWORD") +) + +switch response.data { +case .usageExamplePost200ApplicationJSONObject(let usageExamplePost200ApplicationJSONObject): + // Handle response + break +case .empty: + // Handle empty response + break +} + +``` + \ No newline at end of file diff --git a/swift-client-sdk/files.gen b/swift-client-sdk/files.gen new file mode 100755 index 000000000..cf2c6f642 --- /dev/null +++ b/swift-client-sdk/files.gen @@ -0,0 +1,813 @@ +Sources/OpenAPI/internal/api/_AuthAPI.swift +Sources/OpenAPI/internal/api/_AuthNewAPI.swift +Sources/OpenAPI/internal/api/_DocumentationAPI.swift +Sources/OpenAPI/internal/api/_ErrorsAPI.swift +Sources/OpenAPI/internal/api/_FirstAPI.swift +Sources/OpenAPI/internal/api/_FlatteningAPI.swift +Sources/OpenAPI/internal/api/_GenerationAPI.swift +Sources/OpenAPI/internal/api/_GlobalsAPI.swift +Sources/OpenAPI/internal/api/_NestFirstAPI.swift +Sources/OpenAPI/internal/api/_NestedAPI.swift +Sources/OpenAPI/internal/api/_NestedFirstAPI.swift +Sources/OpenAPI/internal/api/_NestedSecondAPI.swift +Sources/OpenAPI/internal/api/_PaginationAPI.swift +Sources/OpenAPI/internal/api/_ParametersAPI.swift +Sources/OpenAPI/internal/api/_RequestBodiesAPI.swift +Sources/OpenAPI/internal/api/_ResourceAPI.swift +Sources/OpenAPI/internal/api/_ResponseBodiesAPI.swift +Sources/OpenAPI/internal/api/_RetriesAPI.swift +Sources/OpenAPI/internal/api/_SecondAPI.swift +Sources/OpenAPI/internal/api/_ServersAPI.swift +Sources/OpenAPI/internal/api/_TelemetryAPI.swift +Sources/OpenAPI/internal/api/_UnionsAPI.swift +Sources/OpenAPI/configuration/GlobalServer.swift +Sources/OpenAPI/configuration/GlobalParameters.swift +Sources/OpenAPI/Client.swift +Package.swift +Sources/OpenAPI/AnyValue.swift +Sources/OpenAPI/internal/api/Client+OpenAPI.swift +Sources/OpenAPI/internal/client/Response.swift +Sources/OpenAPI/internal/client/Servers.swift +Sources/OpenAPI/internal/client/URLRequestBuilder.swift +Sources/OpenAPI/internal/client/URLRequestConfiguration.swift +Sources/OpenAPI/internal/extensions/HTTPURLResponse+ContentType.swift +Sources/OpenAPI/internal/extensions/String+ContentType.swift +Sources/OpenAPI/internal/extensions/String+ParameterSubstitution.swift +Sources/OpenAPI/internal/serialization/Form.swift +Sources/OpenAPI/internal/serialization/JSON.swift +Sources/OpenAPI/internal/serialization/Maps.swift +Sources/OpenAPI/internal/serialization/Parameters.swift +Sources/OpenAPI/internal/serialization/PropertyWrappers.swift +Sources/OpenAPI/internal/serialization/QueryParameters.swift +Sources/OpenAPI/internal/serialization/SecurityParameters.swift +Sources/OpenAPI/internal/serialization/Serializable.swift +Sources/OpenAPI/OpenAPIError.swift +Sources/OpenAPI/OpenAPI.swift +Tests/OpenAPITests/utils/TestData.swift +Tests/OpenAPITests/utils/TestRecording.swift +Tests/OpenAPITests/utils/TestUtils.swift +Tests/OpenAPITests/testdata/testUpload.json +Tests/OpenAPITests/testsprimary/AuthTests.swift +Tests/OpenAPITests/testsprimary/FlatteningTests.swift +Tests/OpenAPITests/testsprimary/GlobalsTests.swift +Tests/OpenAPITests/testsprimary/ParametersTests.swift +Tests/OpenAPITests/testsprimary/RequestBodiesTests.swift +Tests/OpenAPITests/testsprimary/ResponseBodiesTests.swift +Tests/OpenAPITests/testsprimary/ServerTests.swift +Tests/OpenAPITests/testsprimary/TelemetryTests.swift +Tests/OpenAPITests/testsprimary/TestObjects.swift +Tests/OpenAPITests/testsprimary/UnionsTests.swift +Tests/OpenAPITests/testssimple_security/AuthTest.swift +../../testprojects/swift/.gitignore +../../testprojects/swift/Package.swift +Sources/OpenAPI/models/ModelScopes.swift +Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackRequestBody.swift +Sources/OpenAPI/models/callbacks/IgnoredGenerationGetNotIgnoredCallbackResponse.swift +Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationRequestBody.swift +Sources/OpenAPI/models/callbacks/IgnoredGenerationGetSingledIgnoredCallbackOperationResponse.swift +Sources/OpenAPI/models/operations/AnchorTypesGetResponse.swift +Sources/OpenAPI/models/operations/ApiKeyAuthGlobalNewResponse.swift +Sources/OpenAPI/models/operations/ApiKeyAuthGlobalResponse.swift +Sources/OpenAPI/models/operations/ApiKeyAuthGlobalToken.swift +Sources/OpenAPI/models/operations/ApiKeyAuthResponse.swift +Sources/OpenAPI/models/operations/ApiKeyAuthSecurity.swift +Sources/OpenAPI/internal/models/ApiKeyAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/ApiKeyAuthToken.swift +Sources/OpenAPI/models/operations/ArrayCircularReferenceGetResponse.swift +Sources/OpenAPI/models/operations/AuthGlobalResponse.swift +Sources/OpenAPI/models/operations/BasicAuthNewResponse.swift +Sources/OpenAPI/models/operations/BasicAuthNewSecurity.swift +Sources/OpenAPI/internal/models/BasicAuthNewSecurity+Serialization.swift +Sources/OpenAPI/models/operations/BasicAuthRequest.swift +Sources/OpenAPI/internal/models/BasicAuthRequest+Serialization.swift +Sources/OpenAPI/models/operations/BasicAuthResponse.swift +Sources/OpenAPI/models/operations/BasicAuthSecurity.swift +Sources/OpenAPI/internal/models/BasicAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/BasicAuthUser.swift +Sources/OpenAPI/models/operations/BearerAuthResponse.swift +Sources/OpenAPI/models/operations/BearerAuthSecurity.swift +Sources/OpenAPI/internal/models/BearerAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/BearerAuthToken.swift +Sources/OpenAPI/models/operations/CircularReferenceGetResponse.swift +Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRequest.swift +Sources/OpenAPI/internal/models/ComponentBodyAndParamConflictRequest+Serialization.swift +Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictRes.swift +Sources/OpenAPI/models/operations/ComponentBodyAndParamConflictResponse.swift +Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRequest.swift +Sources/OpenAPI/internal/models/ComponentBodyAndParamNoConflictRequest+Serialization.swift +Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictRes.swift +Sources/OpenAPI/models/operations/ComponentBodyAndParamNoConflictResponse.swift +Sources/OpenAPI/models/operations/ConflictingParamsRequest.swift +Sources/OpenAPI/internal/models/ConflictingParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/ConflictingParamsRes.swift +Sources/OpenAPI/models/operations/ConflictingParamsResponse.swift +Sources/OpenAPI/models/operations/ConnectionErrorGetResponse.swift +Sources/OpenAPI/models/operations/CreateFileRequestBody.swift +Sources/OpenAPI/internal/models/CreateFileRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/CreateFileRequestBodyFile.swift +Sources/OpenAPI/internal/models/CreateFileRequestBodyFile+Serialization.swift +Sources/OpenAPI/models/operations/CreateFileResponse.swift +Sources/OpenAPI/models/operations/CreateResourceResponse.swift +Sources/OpenAPI/models/operations/DateParamWithDefaultRequest.swift +Sources/OpenAPI/internal/models/DateParamWithDefaultRequest+Serialization.swift +Sources/OpenAPI/models/operations/DateParamWithDefaultResponse.swift +Sources/OpenAPI/models/operations/DateTimeParamWithDefaultRequest.swift +Sources/OpenAPI/internal/models/DateTimeParamWithDefaultRequest+Serialization.swift +Sources/OpenAPI/models/operations/DateTimeParamWithDefaultResponse.swift +Sources/OpenAPI/models/operations/DecimalParamWithDefaultRequest.swift +Sources/OpenAPI/internal/models/DecimalParamWithDefaultRequest+Serialization.swift +Sources/OpenAPI/models/operations/DecimalParamWithDefaultResponse.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRequest.swift +Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapRequest+Serialization.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapRes.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResArgs.swift +Sources/OpenAPI/internal/models/DeepObjectQueryParamsMapResArgs+Serialization.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsMapResponse.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectObjArrParam.swift +Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectObjArrParam+Serialization.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRequest.swift +Sources/OpenAPI/internal/models/DeepObjectQueryParamsObjectRequest+Serialization.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectRes.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResArgs.swift +Sources/OpenAPI/models/operations/DeepObjectQueryParamsObjectResponse.swift +Sources/OpenAPI/models/operations/DeleteResourceRequest.swift +Sources/OpenAPI/internal/models/DeleteResourceRequest+Serialization.swift +Sources/OpenAPI/models/operations/DeleteResourceResponse.swift +Sources/OpenAPI/models/operations/DeprecatedFieldInSchemaPostResponse.swift +Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGet200ApplicationJSON.swift +Sources/OpenAPI/models/operations/DeprecatedObjectInSchemaGetResponse.swift +Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetRequest.swift +Sources/OpenAPI/internal/models/DeprecatedOperationNoCommentsGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/DeprecatedOperationNoCommentsGetResponse.swift +Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetRequest.swift +Sources/OpenAPI/internal/models/DeprecatedOperationWithCommentsGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/DeprecatedOperationWithCommentsGetResponse.swift +Sources/OpenAPI/models/operations/DuplicateParamDuplicateParamResponse.swift +Sources/OpenAPI/models/operations/DuplicateParamRequest.swift +Sources/OpenAPI/internal/models/DuplicateParamRequest+Serialization.swift +Sources/OpenAPI/models/operations/DuplicateParamResponse.swift +Sources/OpenAPI/models/operations/EmptyObjectGetRequest.swift +Sources/OpenAPI/internal/models/EmptyObjectGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/EmptyObjectGetResponse.swift +Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGet200ApplicationOctetStream.swift +Sources/OpenAPI/internal/models/EmptyResponseObjectWithCommentGet200ApplicationOctetStream+Serialization.swift +Sources/OpenAPI/models/operations/EmptyResponseObjectWithCommentGetResponse.swift +Sources/OpenAPI/models/operations/FlattenedTypedObjectPostRes.swift +Sources/OpenAPI/models/operations/FlattenedTypedObjectPostResponse.swift +Sources/OpenAPI/models/operations/FormQueryParamsArrayRequest.swift +Sources/OpenAPI/internal/models/FormQueryParamsArrayRequest+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsArrayRes.swift +Sources/OpenAPI/models/operations/FormQueryParamsArrayResArgs.swift +Sources/OpenAPI/models/operations/FormQueryParamsArrayResponse.swift +Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParam.swift +Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParam+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectObjParamExploded.swift +Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectObjParamExploded+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRequest.swift +Sources/OpenAPI/internal/models/FormQueryParamsCamelObjectRequest+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectRes.swift +Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResArgs.swift +Sources/OpenAPI/models/operations/FormQueryParamsCamelObjectResponse.swift +Sources/OpenAPI/models/operations/FormQueryParamsMapRequest.swift +Sources/OpenAPI/internal/models/FormQueryParamsMapRequest+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsMapRes.swift +Sources/OpenAPI/models/operations/FormQueryParamsMapResponse.swift +Sources/OpenAPI/models/operations/FormQueryParamsObjectRequest.swift +Sources/OpenAPI/internal/models/FormQueryParamsObjectRequest+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsObjectRes.swift +Sources/OpenAPI/models/operations/FormQueryParamsObjectResArgs.swift +Sources/OpenAPI/models/operations/FormQueryParamsObjectResponse.swift +Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRequest.swift +Sources/OpenAPI/internal/models/FormQueryParamsPrimitiveRequest+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveRes.swift +Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResArgs.swift +Sources/OpenAPI/models/operations/FormQueryParamsPrimitiveResponse.swift +Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRequest.swift +Sources/OpenAPI/internal/models/FormQueryParamsRefParamObjectRequest+Serialization.swift +Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectRes.swift +Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResArgs.swift +Sources/OpenAPI/models/operations/FormQueryParamsRefParamObjectResponse.swift +Sources/OpenAPI/models/operations/GetDocumentationPerLanguageRequest.swift +Sources/OpenAPI/internal/models/GetDocumentationPerLanguageRequest+Serialization.swift +Sources/OpenAPI/models/operations/GetDocumentationPerLanguageResponse.swift +Sources/OpenAPI/models/operations/GetGlobalNameOverride200ApplicationJSON.swift +Sources/OpenAPI/models/operations/GetGlobalNameOverrideResponse.swift +Sources/OpenAPI/models/operations/GetResourceRequest.swift +Sources/OpenAPI/internal/models/GetResourceRequest+Serialization.swift +Sources/OpenAPI/models/operations/GetResourceResponse.swift +Sources/OpenAPI/models/operations/GlobalBearerAuthResponse.swift +Sources/OpenAPI/models/operations/GlobalBearerAuthToken.swift +Sources/OpenAPI/models/operations/GlobalPathParameterGetRequest.swift +Sources/OpenAPI/internal/models/GlobalPathParameterGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/GlobalPathParameterGetRes.swift +Sources/OpenAPI/models/operations/GlobalPathParameterGetResponse.swift +Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRequest.swift +Sources/OpenAPI/internal/models/GlobalsQueryParameterGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/GlobalsQueryParameterGetRes.swift +Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResArgs.swift +Sources/OpenAPI/models/operations/GlobalsQueryParameterGetResponse.swift +Sources/OpenAPI/models/operations/GroupFirstGetResponse.swift +Sources/OpenAPI/models/operations/GroupSecondGetResponse.swift +Sources/OpenAPI/models/operations/HeaderParamsArrayRequest.swift +Sources/OpenAPI/internal/models/HeaderParamsArrayRequest+Serialization.swift +Sources/OpenAPI/models/operations/HeaderParamsArrayRes.swift +Sources/OpenAPI/models/operations/HeaderParamsArrayResHeaders.swift +Sources/OpenAPI/models/operations/HeaderParamsArrayResponse.swift +Sources/OpenAPI/models/operations/HeaderParamsMapRequest.swift +Sources/OpenAPI/internal/models/HeaderParamsMapRequest+Serialization.swift +Sources/OpenAPI/models/operations/HeaderParamsMapRes.swift +Sources/OpenAPI/models/operations/HeaderParamsMapResHeaders.swift +Sources/OpenAPI/models/operations/HeaderParamsMapResponse.swift +Sources/OpenAPI/models/operations/HeaderParamsObjectRequest.swift +Sources/OpenAPI/internal/models/HeaderParamsObjectRequest+Serialization.swift +Sources/OpenAPI/models/operations/HeaderParamsObjectRes.swift +Sources/OpenAPI/models/operations/HeaderParamsObjectResHeaders.swift +Sources/OpenAPI/models/operations/HeaderParamsObjectResponse.swift +Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRequest.swift +Sources/OpenAPI/internal/models/HeaderParamsPrimitiveRequest+Serialization.swift +Sources/OpenAPI/models/operations/HeaderParamsPrimitiveRes.swift +Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResHeaders.swift +Sources/OpenAPI/models/operations/HeaderParamsPrimitiveResponse.swift +Sources/OpenAPI/models/operations/IgnoredGenerationGet200ApplicationJSON.swift +Sources/OpenAPI/models/operations/IgnoredGenerationGetResponse.swift +Sources/OpenAPI/models/operations/IgnoresPostApplicationJSON.swift +Sources/OpenAPI/models/operations/IgnoresPostRequest.swift +Sources/OpenAPI/internal/models/IgnoresPostRequest+Serialization.swift +Sources/OpenAPI/models/operations/IgnoresPostResponse.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequest.swift +Sources/OpenAPI/internal/models/InlineBodyAndParamConflictRequest+Serialization.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRequestBody.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamConflictRes.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResJson.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamConflictResponse.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequest.swift +Sources/OpenAPI/internal/models/InlineBodyAndParamNoConflictRequest+Serialization.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRequestBody.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictRes.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResJson.swift +Sources/OpenAPI/models/operations/InlineBodyAndParamNoConflictResponse.swift +Sources/OpenAPI/models/operations/JsonQueryParamsObjectRequest.swift +Sources/OpenAPI/internal/models/JsonQueryParamsObjectRequest+Serialization.swift +Sources/OpenAPI/models/operations/JsonQueryParamsObjectRes.swift +Sources/OpenAPI/models/operations/JsonQueryParamsObjectResArgs.swift +Sources/OpenAPI/models/operations/JsonQueryParamsObjectResponse.swift +Sources/OpenAPI/models/operations/MixedParametersCamelCaseRequest.swift +Sources/OpenAPI/internal/models/MixedParametersCamelCaseRequest+Serialization.swift +Sources/OpenAPI/models/operations/MixedParametersCamelCaseRes.swift +Sources/OpenAPI/models/operations/MixedParametersCamelCaseResArgs.swift +Sources/OpenAPI/models/operations/MixedParametersCamelCaseResHeaders.swift +Sources/OpenAPI/models/operations/MixedParametersCamelCaseResponse.swift +Sources/OpenAPI/models/operations/MixedParametersPrimitivesRequest.swift +Sources/OpenAPI/internal/models/MixedParametersPrimitivesRequest+Serialization.swift +Sources/OpenAPI/models/operations/MixedParametersPrimitivesRes.swift +Sources/OpenAPI/models/operations/MixedParametersPrimitivesResArgs.swift +Sources/OpenAPI/models/operations/MixedParametersPrimitivesResHeaders.swift +Sources/OpenAPI/models/operations/MixedParametersPrimitivesResponse.swift +Sources/OpenAPI/models/operations/MixedQueryParamsRequest.swift +Sources/OpenAPI/internal/models/MixedQueryParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/MixedQueryParamsRes.swift +Sources/OpenAPI/models/operations/MixedQueryParamsResponse.swift +Sources/OpenAPI/models/operations/MixedTypeOneOfPostRequestBody.swift +Sources/OpenAPI/internal/models/MixedTypeOneOfPostRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/MixedTypeOneOfPostRes.swift +Sources/OpenAPI/models/operations/MixedTypeOneOfPostResJson.swift +Sources/OpenAPI/internal/models/MixedTypeOneOfPostResJson+Serialization.swift +Sources/OpenAPI/models/operations/MixedTypeOneOfPostResponse.swift +Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthResponse.swift +Sources/OpenAPI/models/operations/MultipleMixedOptionsAuthSecurity.swift +Sources/OpenAPI/internal/models/MultipleMixedOptionsAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthResponse.swift +Sources/OpenAPI/models/operations/MultipleMixedSchemeAuthSecurity.swift +Sources/OpenAPI/internal/models/MultipleMixedSchemeAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthResponse.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurity.swift +Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption1.swift +Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption1+Serialization.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithMixedSchemesAuthSecurityOption2.swift +Sources/OpenAPI/internal/models/MultipleOptionsWithMixedSchemesAuthSecurityOption2+Serialization.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthResponse.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurity.swift +Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption1.swift +Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption1+Serialization.swift +Sources/OpenAPI/models/operations/MultipleOptionsWithSimpleSchemesAuthSecurityOption2.swift +Sources/OpenAPI/internal/models/MultipleOptionsWithSimpleSchemesAuthSecurityOption2+Serialization.swift +Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthResponse.swift +Sources/OpenAPI/models/operations/MultipleSimpleOptionsAuthSecurity.swift +Sources/OpenAPI/internal/models/MultipleSimpleOptionsAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthResponse.swift +Sources/OpenAPI/models/operations/MultipleSimpleSchemeAuthSecurity.swift +Sources/OpenAPI/internal/models/MultipleSimpleSchemeAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/NameOverrideGetEnumNameOverride.swift +Sources/OpenAPI/internal/models/NameOverrideGetEnumNameOverride+Serialization.swift +Sources/OpenAPI/models/operations/NameOverrideGetRequest.swift +Sources/OpenAPI/internal/models/NameOverrideGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/NameOverrideGetResponse.swift +Sources/OpenAPI/models/operations/NestFirstGetResponse.swift +Sources/OpenAPI/models/operations/NestedFirstGetResponse.swift +Sources/OpenAPI/models/operations/NestedGetResponse.swift +Sources/OpenAPI/models/operations/NestedSecondGetResponse.swift +Sources/OpenAPI/models/operations/NullableObjectPostRes.swift +Sources/OpenAPI/models/operations/NullableObjectPostResponse.swift +Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostRes.swift +Sources/OpenAPI/models/operations/NullableOneOfRefInObjectPostResponse.swift +Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRequestBody.swift +Sources/OpenAPI/models/operations/NullableOneOfSchemaPostRes.swift +Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResJson.swift +Sources/OpenAPI/models/operations/NullableOneOfSchemaPostResponse.swift +Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostRes.swift +Sources/OpenAPI/models/operations/NullableOneOfTypeInObjectPostResponse.swift +Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBody.swift +Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj.swift +Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableOptionalObj+Serialization.swift +Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj.swift +Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyNullableRequiredObj+Serialization.swift +Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostRequestBodyRequiredObj.swift +Sources/OpenAPI/internal/models/NullableRequiredEmptyObjectPostRequestBodyRequiredObj+Serialization.swift +Sources/OpenAPI/models/operations/NullableRequiredEmptyObjectPostResponse.swift +Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBody.swift +Sources/OpenAPI/models/operations/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum.swift +Sources/OpenAPI/internal/models/NullableRequiredPropertyPostRequestBodyNullableRequiredEnum+Serialization.swift +Sources/OpenAPI/models/operations/NullableRequiredPropertyPostResponse.swift +Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostRequestBody.swift +Sources/OpenAPI/models/operations/NullableRequiredSharedObjectPostResponse.swift +Sources/OpenAPI/models/operations/NullableTypedObjectPostRes.swift +Sources/OpenAPI/models/operations/NullableTypedObjectPostResponse.swift +Sources/OpenAPI/models/operations/Oauth2AuthNewResponse.swift +Sources/OpenAPI/models/operations/Oauth2AuthNewSecurity.swift +Sources/OpenAPI/internal/models/Oauth2AuthNewSecurity+Serialization.swift +Sources/OpenAPI/models/operations/Oauth2AuthResponse.swift +Sources/OpenAPI/models/operations/Oauth2AuthSecurity.swift +Sources/OpenAPI/internal/models/Oauth2AuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/Oauth2AuthToken.swift +Sources/OpenAPI/models/operations/Oauth2OverrideRequest.swift +Sources/OpenAPI/internal/models/Oauth2OverrideRequest+Serialization.swift +Sources/OpenAPI/models/operations/Oauth2OverrideResponse.swift +Sources/OpenAPI/models/operations/Oauth2OverrideSecurity.swift +Sources/OpenAPI/internal/models/Oauth2OverrideSecurity+Serialization.swift +Sources/OpenAPI/models/operations/Oauth2OverrideToken.swift +Sources/OpenAPI/models/operations/ObjectCircularReferenceGetResponse.swift +Sources/OpenAPI/models/operations/OneOfCircularReferenceGetResponse.swift +Sources/OpenAPI/models/operations/OpenIdConnectAuthNewResponse.swift +Sources/OpenAPI/models/operations/OpenIdConnectAuthNewSecurity.swift +Sources/OpenAPI/internal/models/OpenIdConnectAuthNewSecurity+Serialization.swift +Sources/OpenAPI/models/operations/OpenIdConnectAuthResponse.swift +Sources/OpenAPI/models/operations/OpenIdConnectAuthSecurity.swift +Sources/OpenAPI/internal/models/OpenIdConnectAuthSecurity+Serialization.swift +Sources/OpenAPI/models/operations/OpenIdConnectAuthToken.swift +Sources/OpenAPI/models/operations/OverriddenResponse.swift +Sources/OpenAPI/models/operations/PaginationCursorBodyRequestBody.swift +Sources/OpenAPI/models/operations/PaginationCursorBodyRes.swift +Sources/OpenAPI/models/operations/PaginationCursorBodyResponse.swift +Sources/OpenAPI/models/operations/PaginationCursorParamsRequest.swift +Sources/OpenAPI/internal/models/PaginationCursorParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/PaginationCursorParamsRes.swift +Sources/OpenAPI/models/operations/PaginationCursorParamsResponse.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyRes.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetBodyResponse.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRequest.swift +Sources/OpenAPI/internal/models/PaginationLimitOffsetOffsetParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsRes.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetOffsetParamsResponse.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyRes.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetPageBodyResponse.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRequest.swift +Sources/OpenAPI/internal/models/PaginationLimitOffsetPageParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsRes.swift +Sources/OpenAPI/models/operations/PaginationLimitOffsetPageParamsResponse.swift +Sources/OpenAPI/models/operations/PathParameterJsonRequest.swift +Sources/OpenAPI/internal/models/PathParameterJsonRequest+Serialization.swift +Sources/OpenAPI/models/operations/PathParameterJsonRes.swift +Sources/OpenAPI/models/operations/PathParameterJsonResponse.swift +Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRequest.swift +Sources/OpenAPI/internal/models/PipeDelimitedQueryParamsArrayRequest+Serialization.swift +Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayRes.swift +Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResArgs.swift +Sources/OpenAPI/models/operations/PipeDelimitedQueryParamsArrayResponse.swift +Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRequestBody.swift +Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostRes.swift +Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResJson.swift +Sources/OpenAPI/internal/models/PrimitiveTypeOneOfPostResJson+Serialization.swift +Sources/OpenAPI/models/operations/PrimitiveTypeOneOfPostResponse.swift +Sources/OpenAPI/models/operations/PutAnythingIgnoredGeneration200ApplicationJSON.swift +Sources/OpenAPI/models/operations/PutAnythingIgnoredGenerationResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayObjResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayOfPrimitiveResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfArrayResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfMapResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayOfPrimitiveResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonArrayResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonDeepResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapObjResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfArrayResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapOfPrimitiveResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfMapResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapOfPrimitiveResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMapResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonMultipleJsonFilteredResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleCamelCaseResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostApplicationJsonSimpleResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypes200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesRequest.swift +Sources/OpenAPI/internal/models/RequestBodyPostComplexNumberTypesRequest+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostComplexNumberTypesResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConsts200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostDefaultsAndConstsResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmpty.swift +Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmpty+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies.swift +Sources/OpenAPI/internal/models/RequestBodyPostEmptyObject200ApplicationJSONEmptyRespWithEmptyProperies+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBody.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmpty.swift +Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmpty+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties.swift +Sources/OpenAPI/internal/models/RequestBodyPostEmptyObjectRequestBodyEmptyWithEmptyProperties+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostEmptyObjectResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormDeepRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResForm.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormDeepResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormMapPrimitiveResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResForm.swift +Sources/OpenAPI/models/operations/RequestBodyPostFormSimpleResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayBigInt200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDate200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesArrayDecimalStr200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigInt200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBigIntStr200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesBoolean200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDate200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDateTime200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimal200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesDecimalStr200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesFloat32200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInt32200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesInteger200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapBigIntStr200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDateTime200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesMapDecimal200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesNumber200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJSONDataTypesString200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayBigIntResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDateResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesArrayDecimalStrResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBigIntStrResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesBooleanResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDateTimeResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesDecimalStrResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesFloat32Response.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesInt32Response.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesIntegerResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapBigIntStrResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDateTimeResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesMapDecimalResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesNumberResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostJsonDataTypesStringResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesComponentFilteredResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesInlineFilteredResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitApplicationXWwwFormUrlencoded+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitFormResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitJsonResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartFormData.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitMultipartFormData+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitMultipartResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRequest.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamFormRequest+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamFormResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRequest.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamJsonRequest+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamJsonResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartFormData+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest.swift +Sources/OpenAPI/internal/models/RequestBodyPostMultipleContentTypesSplitParamMultipartRequest+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartRes.swift +Sources/OpenAPI/models/operations/RequestBodyPostMultipleContentTypesSplitParamMultipartResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBody200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostNotNullableNotRequiredStringBodyResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullArray200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullArrayResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullDictionary200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullDictionaryResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBody200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullableNotRequiredStringBodyResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBody200ApplicationJSON.swift +Sources/OpenAPI/models/operations/RequestBodyPostNullableRequiredStringBodyResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutBytesRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutBytesResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRequest.swift +Sources/OpenAPI/internal/models/RequestBodyPutBytesWithParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResArgs.swift +Sources/OpenAPI/models/operations/RequestBodyPutBytesWithParamsResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResForm.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDeepResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBody.swift +Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName.swift +Sources/OpenAPI/internal/models/RequestBodyPutMultipartDifferentFileNameRequestBodyDifferentFileName+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartDifferentFileNameResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBody.swift +Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBody+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRequestBodyFile.swift +Sources/OpenAPI/internal/models/RequestBodyPutMultipartFileRequestBodyFile+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartFileResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResForm.swift +Sources/OpenAPI/models/operations/RequestBodyPutMultipartSimpleResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutStringRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutStringResponse.swift +Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRequest.swift +Sources/OpenAPI/internal/models/RequestBodyPutStringWithParamsRequest+Serialization.swift +Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsRes.swift +Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResArgs.swift +Sources/OpenAPI/models/operations/RequestBodyPutStringWithParamsResponse.swift +Sources/OpenAPI/models/operations/RequestBodyReadAndWriteResponse.swift +Sources/OpenAPI/models/operations/RequestBodyReadOnlyInputResponse.swift +Sources/OpenAPI/models/operations/RequestBodyReadOnlyUnionResponse.swift +Sources/OpenAPI/models/operations/RequestBodyReadWriteOnlyUnionResponse.swift +Sources/OpenAPI/models/operations/RequestBodyWriteOnlyOutputResponse.swift +Sources/OpenAPI/models/operations/RequestBodyWriteOnlyResponse.swift +Sources/OpenAPI/models/operations/RequestBodyWriteOnlyUnionResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPost200ApplicationJSON.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesComplexNumbersPostResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePost200ApplicationJSON.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesDatePostResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesObjectPostResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPost200ApplicationJSON.swift +Sources/OpenAPI/models/operations/ResponseBodyAdditionalPropertiesPostResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyBytesGetResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersRequest.swift +Sources/OpenAPI/internal/models/ResponseBodyEmptyWithHeadersRequest+Serialization.swift +Sources/OpenAPI/models/operations/ResponseBodyEmptyWithHeadersResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyJsonGetResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyOptionalGetResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyReadOnlyResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyStringGetResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyXmlGetResponse.swift +Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPost200ApplicationJSON.swift +Sources/OpenAPI/models/operations/ResponseBodyZeroValueComplexTypePtrsPostResponse.swift +Sources/OpenAPI/models/operations/RetriesGetRequest.swift +Sources/OpenAPI/internal/models/RetriesGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/RetriesGetResponse.swift +Sources/OpenAPI/models/operations/RetriesGetRetries.swift +Sources/OpenAPI/models/operations/SelectGlobalServerResponse.swift +Sources/OpenAPI/models/operations/SelectServerWithIDResponse.swift +Sources/OpenAPI/models/operations/ServerWithProtocolTemplateResponse.swift +Sources/OpenAPI/models/operations/ServerWithTemplatesGlobalResponse.swift +Sources/OpenAPI/models/operations/ServerWithTemplatesResponse.swift +Sources/OpenAPI/models/operations/ServersByIDWithTemplatesResponse.swift +Sources/OpenAPI/models/operations/SimplePathParameterArraysRequest.swift +Sources/OpenAPI/internal/models/SimplePathParameterArraysRequest+Serialization.swift +Sources/OpenAPI/models/operations/SimplePathParameterArraysRes.swift +Sources/OpenAPI/models/operations/SimplePathParameterArraysResponse.swift +Sources/OpenAPI/models/operations/SimplePathParameterMapsRequest.swift +Sources/OpenAPI/internal/models/SimplePathParameterMapsRequest+Serialization.swift +Sources/OpenAPI/models/operations/SimplePathParameterMapsRes.swift +Sources/OpenAPI/models/operations/SimplePathParameterMapsResponse.swift +Sources/OpenAPI/models/operations/SimplePathParameterObjectsRequest.swift +Sources/OpenAPI/internal/models/SimplePathParameterObjectsRequest+Serialization.swift +Sources/OpenAPI/models/operations/SimplePathParameterObjectsRes.swift +Sources/OpenAPI/models/operations/SimplePathParameterObjectsResponse.swift +Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRequest.swift +Sources/OpenAPI/internal/models/SimplePathParameterPrimitivesRequest+Serialization.swift +Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesRes.swift +Sources/OpenAPI/models/operations/SimplePathParameterPrimitivesResponse.swift +Sources/OpenAPI/models/operations/StatusGetErrorRequest.swift +Sources/OpenAPI/internal/models/StatusGetErrorRequest+Serialization.swift +Sources/OpenAPI/models/operations/StatusGetErrorResponse.swift +Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrors501ApplicationJSON.swift +Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsRequest.swift +Sources/OpenAPI/internal/models/StatusGetXSpeakeasyErrorsRequest+Serialization.swift +Sources/OpenAPI/models/operations/StatusGetXSpeakeasyErrorsResponse.swift +Sources/OpenAPI/models/operations/StronglyTypedOneOfPostRes.swift +Sources/OpenAPI/models/operations/StronglyTypedOneOfPostResponse.swift +Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRequest.swift +Sources/OpenAPI/internal/models/TelemetrySpeakeasyUserAgentGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetRes.swift +Sources/OpenAPI/models/operations/TelemetrySpeakeasyUserAgentGetResponse.swift +Sources/OpenAPI/models/operations/TelemetryUserAgentGetRes.swift +Sources/OpenAPI/models/operations/TelemetryUserAgentGetResponse.swift +Sources/OpenAPI/models/operations/TypeFromAnchor.swift +Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostRes.swift +Sources/OpenAPI/models/operations/TypedObjectNullableOneOfPostResponse.swift +Sources/OpenAPI/models/operations/TypedObjectOneOfPostRes.swift +Sources/OpenAPI/models/operations/TypedObjectOneOfPostResponse.swift +Sources/OpenAPI/models/operations/TypedParameterGenerationGetObj.swift +Sources/OpenAPI/internal/models/TypedParameterGenerationGetObj+Serialization.swift +Sources/OpenAPI/models/operations/TypedParameterGenerationGetRequest.swift +Sources/OpenAPI/internal/models/TypedParameterGenerationGetRequest+Serialization.swift +Sources/OpenAPI/models/operations/TypedParameterGenerationGetResponse.swift +Sources/OpenAPI/models/operations/UnionDateNullRes.swift +Sources/OpenAPI/models/operations/UnionDateNullResponse.swift +Sources/OpenAPI/models/operations/UnionDateTimeNullRes.swift +Sources/OpenAPI/models/operations/UnionDateTimeNullResponse.swift +Sources/OpenAPI/models/operations/UpdateResourceRequest.swift +Sources/OpenAPI/internal/models/UpdateResourceRequest+Serialization.swift +Sources/OpenAPI/models/operations/UpdateResourceResponse.swift +Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSON.swift +Sources/OpenAPI/models/operations/UsageExamplePost200ApplicationJSONJSON.swift +Sources/OpenAPI/models/operations/UsageExamplePostEnumParameter.swift +Sources/OpenAPI/internal/models/UsageExamplePostEnumParameter+Serialization.swift +Sources/OpenAPI/models/operations/UsageExamplePostOptEnumParameter.swift +Sources/OpenAPI/internal/models/UsageExamplePostOptEnumParameter+Serialization.swift +Sources/OpenAPI/models/operations/UsageExamplePostRequest.swift +Sources/OpenAPI/internal/models/UsageExamplePostRequest+Serialization.swift +Sources/OpenAPI/models/operations/UsageExamplePostRequestBody.swift +Sources/OpenAPI/models/operations/UsageExamplePostResponse.swift +Sources/OpenAPI/models/operations/UsageExamplePostSecurity.swift +Sources/OpenAPI/internal/models/UsageExamplePostSecurity+Serialization.swift +Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostRes.swift +Sources/OpenAPI/models/operations/WeaklyTypedOneOfPostResponse.swift +Sources/OpenAPI/models/shared/AllOfToAllOf.swift +Sources/OpenAPI/models/shared/ArrObjValue.swift +Sources/OpenAPI/models/shared/ArrObjValueCamelCase.swift +Sources/OpenAPI/models/shared/ArrayCircularReferenceObject.swift +Sources/OpenAPI/models/shared/AuthServiceRequestBody.swift +Sources/OpenAPI/models/shared/AuthServiceRequestBodyBasicAuth.swift +Sources/OpenAPI/models/shared/AuthServiceRequestBodyHeaderAuth.swift +Sources/OpenAPI/models/shared/ComplexNumberTypes.swift +Sources/OpenAPI/models/shared/DeepObject.swift +Sources/OpenAPI/internal/models/DeepObject+Serialization.swift +Sources/OpenAPI/models/shared/DeepObjectAny.swift +Sources/OpenAPI/internal/models/DeepObjectAny+Serialization.swift +Sources/OpenAPI/models/shared/DeepObjectCamelCase.swift +Sources/OpenAPI/models/shared/DeepObjectCamelCaseAnyVal.swift +Sources/OpenAPI/internal/models/DeepObjectCamelCaseAnyVal+Serialization.swift +Sources/OpenAPI/models/shared/DeepObjectWithType.swift +Sources/OpenAPI/models/shared/DeepObjectWithTypeAny.swift +Sources/OpenAPI/internal/models/DeepObjectWithTypeAny+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConsts.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumInt.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumInt+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsConstEnumStr.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsConstEnumStr+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumInt.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumInt+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsDefaultEnumStr.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsDefaultEnumStr+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsOutput.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumInt.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumInt+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsOutputConstEnumStr.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsOutputConstEnumStr+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumInt.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumInt+Serialization.swift +Sources/OpenAPI/models/shared/DefaultsAndConstsOutputDefaultEnumStr.swift +Sources/OpenAPI/internal/models/DefaultsAndConstsOutputDefaultEnumStr+Serialization.swift +Sources/OpenAPI/models/shared/DeprecatedFieldInObject.swift +Sources/OpenAPI/models/shared/DeprecatedFieldInObjectDeprecatedEnum.swift +Sources/OpenAPI/internal/models/DeprecatedFieldInObjectDeprecatedEnum+Serialization.swift +Sources/OpenAPI/models/shared/DeprecatedObject.swift +Sources/OpenAPI/models/shared/EmptyObjectParam.swift +Sources/OpenAPI/internal/models/EmptyObjectParam+Serialization.swift +Sources/OpenAPI/models/shared/Enum.swift +Sources/OpenAPI/internal/models/Enum+Serialization.swift +Sources/OpenAPI/models/shared/Error.swift +Sources/OpenAPI/models/shared/ErrorType.swift +Sources/OpenAPI/internal/models/ErrorType+Serialization.swift +Sources/OpenAPI/models/shared/ExampleBoat.swift +Sources/OpenAPI/models/shared/ExampleBoatType.swift +Sources/OpenAPI/internal/models/ExampleBoatType+Serialization.swift +Sources/OpenAPI/models/shared/ExampleCar.swift +Sources/OpenAPI/models/shared/ExampleCarType.swift +Sources/OpenAPI/internal/models/ExampleCarType+Serialization.swift +Sources/OpenAPI/models/shared/ExampleResource.swift +Sources/OpenAPI/models/shared/ExampleResourceChocolates.swift +Sources/OpenAPI/models/shared/ExampleResourceEnumNumber.swift +Sources/OpenAPI/internal/models/ExampleResourceEnumNumber+Serialization.swift +Sources/OpenAPI/models/shared/ExampleResourceEnumStr.swift +Sources/OpenAPI/internal/models/ExampleResourceEnumStr+Serialization.swift +Sources/OpenAPI/models/shared/ExampleVehicle.swift +Sources/OpenAPI/models/shared/FakerFormattedStrings.swift +Sources/OpenAPI/models/shared/FakerStrings.swift +Sources/OpenAPI/models/shared/FileResource.swift +Sources/OpenAPI/models/shared/FlattenedTypedObject1.swift +Sources/OpenAPI/models/shared/HttpBinSimpleJsonObject.swift +Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshow.swift +Sources/OpenAPI/models/shared/HttpBinSimpleJsonObjectSlideshowSlides.swift +Sources/OpenAPI/models/shared/LimitOffsetConfig.swift +Sources/OpenAPI/models/shared/MapObjValue.swift +Sources/OpenAPI/models/shared/MapObjValueCamelCase.swift +Sources/OpenAPI/models/shared/NullableObject.swift +Sources/OpenAPI/models/shared/NullableOneOfRefInObject.swift +Sources/OpenAPI/models/shared/NullableOneOfRefInObjectNullableOneOfTwo.swift +Sources/OpenAPI/models/shared/NullableOneOfRefInObjectOneOfOne.swift +Sources/OpenAPI/models/shared/NullableOneOfTypeInObject.swift +Sources/OpenAPI/models/shared/NullableOneOfTypeInObjectNullableOneOfTwo.swift +Sources/OpenAPI/internal/models/NullableOneOfTypeInObjectNullableOneOfTwo+Serialization.swift +Sources/OpenAPI/models/shared/ObjWithZeroValueComplexTypePtrs.swift +Sources/OpenAPI/models/shared/ObjectCircularReferenceObject.swift +Sources/OpenAPI/models/shared/OneOfCircularReferenceObject.swift +Sources/OpenAPI/models/shared/OneOfCircularReferenceObjectChild.swift +Sources/OpenAPI/internal/models/OneOfCircularReferenceObjectChild+Serialization.swift +Sources/OpenAPI/models/shared/OneOfGenerationStressTest.swift +Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfFromArrayOfTypes.swift +Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfFromArrayOfTypes+Serialization.swift +Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType.swift +Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType+Serialization.swift +Sources/OpenAPI/models/shared/OneOfGenerationStressTestOneOfSameType2.swift +Sources/OpenAPI/internal/models/OneOfGenerationStressTestOneOfSameType2+Serialization.swift +Sources/OpenAPI/models/shared/PrimitiveTypeUnion.swift +Sources/OpenAPI/internal/models/PrimitiveTypeUnion+Serialization.swift +Sources/OpenAPI/models/shared/ReadOnlyObject.swift +Sources/OpenAPI/models/shared/ReadOnlyObjectInput.swift +Sources/OpenAPI/internal/models/ReadOnlyObjectInput+Serialization.swift +Sources/OpenAPI/models/shared/ReadWriteObjectInput.swift +Sources/OpenAPI/models/shared/ReadWriteObjectOutput.swift +Sources/OpenAPI/models/shared/RefQueryParamObj.swift +Sources/OpenAPI/internal/models/RefQueryParamObj+Serialization.swift +Sources/OpenAPI/models/shared/RefQueryParamObjExploded.swift +Sources/OpenAPI/internal/models/RefQueryParamObjExploded+Serialization.swift +Sources/OpenAPI/models/shared/SchemeBasicAuth.swift +Sources/OpenAPI/internal/models/SchemeBasicAuth+Serialization.swift +Sources/OpenAPI/models/shared/Security.swift +Sources/OpenAPI/internal/models/Security+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObject.swift +Sources/OpenAPI/internal/models/SimpleObject+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObjectCamelCase.swift +Sources/OpenAPI/models/shared/SimpleObjectCamelCaseInt32EnumVal.swift +Sources/OpenAPI/internal/models/SimpleObjectCamelCaseInt32EnumVal+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObjectCamelCaseIntEnumVal.swift +Sources/OpenAPI/internal/models/SimpleObjectCamelCaseIntEnumVal+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObjectInt32Enum.swift +Sources/OpenAPI/internal/models/SimpleObjectInt32Enum+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObjectIntEnum.swift +Sources/OpenAPI/internal/models/SimpleObjectIntEnum+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObjectWithType.swift +Sources/OpenAPI/models/shared/SimpleObjectWithTypeInt32Enum.swift +Sources/OpenAPI/internal/models/SimpleObjectWithTypeInt32Enum+Serialization.swift +Sources/OpenAPI/models/shared/SimpleObjectWithTypeIntEnum.swift +Sources/OpenAPI/internal/models/SimpleObjectWithTypeIntEnum+Serialization.swift +Sources/OpenAPI/models/shared/StronglyTypedOneOfObject.swift +Sources/OpenAPI/models/shared/TypedObject1.swift +Sources/OpenAPI/models/shared/TypedObject1Type.swift +Sources/OpenAPI/internal/models/TypedObject1Type+Serialization.swift +Sources/OpenAPI/models/shared/TypedObject2.swift +Sources/OpenAPI/models/shared/TypedObject2Type.swift +Sources/OpenAPI/internal/models/TypedObject2Type+Serialization.swift +Sources/OpenAPI/models/shared/TypedObject3.swift +Sources/OpenAPI/models/shared/TypedObject3Type.swift +Sources/OpenAPI/internal/models/TypedObject3Type+Serialization.swift +Sources/OpenAPI/models/shared/TypedObjectNullableOneOf.swift +Sources/OpenAPI/models/shared/TypedObjectOneOf.swift +Sources/OpenAPI/models/shared/UnsupportedEnums.swift +Sources/OpenAPI/models/shared/ValidCircularReferenceObject.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfObject.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfObject+Serialization.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObject.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObject+Serialization.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadOnlyObjectInput.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadOnlyObjectInput+Serialization.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectInput.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectInput+Serialization.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfReadWriteObjectOutput.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfReadWriteObjectOutput+Serialization.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObject.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObject+Serialization.swift +Sources/OpenAPI/models/shared/WeaklyTypedOneOfWriteOnlyObjectOutput.swift +Sources/OpenAPI/internal/models/WeaklyTypedOneOfWriteOnlyObjectOutput+Serialization.swift +Sources/OpenAPI/models/shared/WriteOnlyObject.swift +Sources/OpenAPI/models/shared/WriteOnlyObjectOutput.swift +Sources/OpenAPI/internal/models/WriteOnlyObjectOutput+Serialization.swift +USAGE.md +Sources/OpenAPI/OpenAPI.docc/OpenAPI.md +.gitattributes \ No newline at end of file diff --git a/swift-client-sdk/gen.yaml b/swift-client-sdk/gen.yaml new file mode 100755 index 000000000..2fd3c5d8f --- /dev/null +++ b/swift-client-sdk/gen.yaml @@ -0,0 +1,35 @@ +configVersion: 1.0.0 +management: + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d + docVersion: 0.1.0 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 +generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git + sdkClassName: SDK + singleTagPerOp: false +features: + swift: + core: 2.89.0 + deprecations: 2.81.1 + docs: 0.0.3 + enums: 2.81.1 + examples: 2.81.3 + globalSecurity: 2.81.1 + globalServerURLs: 2.82.0 + globals: 2.81.2 + groups: 2.81.2 + ignores: 2.81.1 + includes: 2.81.1 + inputOutputModels: 2.81.1 + methodSecurity: 2.82.0 + methodServerURLs: 3.0.0 + nameOverrides: 2.81.1 + serverIDs: 2.81.1 +swift: + version: 0.1.0 + author: Speakeasy + description: Swift Client SDK Generated by Speakeasy + packageName: OpenAPI + published: true + repoSubDirectory: swift-client-sdk diff --git a/typescript-client-sdk/README.md b/typescript-client-sdk/README.md index ded2f11a6..23c3ad58f 100755 --- a/typescript-client-sdk/README.md +++ b/typescript-client-sdk/README.md @@ -89,21 +89,22 @@ import { RFCDate } from "openapi/dist/sdk/types"; }, }, bigintParameter: 168827, - bigintStrParameter: "Gasoline Sleek", + bigintStrParameter: "string", boolParameter: false, - dateParameter: new RFCDate("2021-04-23"), - dateTimeParameter: new Date("2022-09-13T20:44:04.193Z"), - decimalParameter: 1952.32, - decimalStrParameter: "Shoes Brockton", - doubleParameter: 1062.86, + dateParameter: new RFCDate("2022-05-05"), + dateTimeDefaultParameter: new Date("2023-06-11T00:39:45.412Z"), + dateTimeParameter: new Date("2022-07-22T13:16:48.221Z"), + decimalParameter: 2679.33, + decimalStrParameter: "string", + doubleParameter: 5223.72, enumParameter: UsageExamplePostEnumParameter.Value1, falseyNumberParameter: 0, - float32Parameter: 2346.82, - floatParameter: 5954.85, - int64Parameter: 215216, - intParameter: 834441, + float32Parameter: 6946.59, + floatParameter: 2286.22, + int64Parameter: 102975, + intParameter: 566999, optEnumParameter: UsageExamplePostOptEnumParameter.Value3, - strParameter: "example 2", + strParameter: "example 1", }, operationSecurity ); @@ -176,6 +177,9 @@ import { RFCDate } from "openapi/dist/sdk/types"; * [anchorTypesGet](docs/sdks/generation/README.md#anchortypesget) * [arrayCircularReferenceGet](docs/sdks/generation/README.md#arraycircularreferenceget) * [circularReferenceGet](docs/sdks/generation/README.md#circularreferenceget) +* [dateParamWithDefault](docs/sdks/generation/README.md#dateparamwithdefault) +* [dateTimeParamWithDefault](docs/sdks/generation/README.md#datetimeparamwithdefault) +* [decimalParamWithDefault](docs/sdks/generation/README.md#decimalparamwithdefault) * [deprecatedFieldInSchemaPost](docs/sdks/generation/README.md#deprecatedfieldinschemapost) * [deprecatedObjectInSchemaGet](docs/sdks/generation/README.md#deprecatedobjectinschemaget) * [~~deprecatedOperationNoCommentsGet~~](docs/sdks/generation/README.md#deprecatedoperationnocommentsget) - :warning: **Deprecated** @@ -228,6 +232,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; * [deepObjectQueryParamsObject](docs/sdks/parameters/README.md#deepobjectqueryparamsobject) * [duplicateParam](docs/sdks/parameters/README.md#duplicateparam) * [formQueryParamsArray](docs/sdks/parameters/README.md#formqueryparamsarray) +* [formQueryParamsCamelObject](docs/sdks/parameters/README.md#formqueryparamscamelobject) * [formQueryParamsMap](docs/sdks/parameters/README.md#formqueryparamsmap) * [formQueryParamsObject](docs/sdks/parameters/README.md#formqueryparamsobject) * [formQueryParamsPrimitive](docs/sdks/parameters/README.md#formqueryparamsprimitive) @@ -343,6 +348,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; * [responseBodyAdditionalPropertiesComplexNumbersPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiescomplexnumberspost) * [responseBodyAdditionalPropertiesDatePost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesdatepost) +* [responseBodyAdditionalPropertiesObjectPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiesobjectpost) * [responseBodyAdditionalPropertiesPost](docs/sdks/responsebodies/README.md#responsebodyadditionalpropertiespost) * [responseBodyBytesGet](docs/sdks/responsebodies/README.md#responsebodybytesget) * [responseBodyEmptyWithHeaders](docs/sdks/responsebodies/README.md#responsebodyemptywithheaders) @@ -386,6 +392,8 @@ import { RFCDate } from "openapi/dist/sdk/types"; * [stronglyTypedOneOfPost](docs/sdks/unions/README.md#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](docs/sdks/unions/README.md#typedobjectnullableoneofpost) * [typedObjectOneOfPost](docs/sdks/unions/README.md#typedobjectoneofpost) +* [unionDateNull](docs/sdks/unions/README.md#uniondatenull) +* [unionDateTimeNull](docs/sdks/unions/README.md#uniondatetimenull) * [weaklyTypedOneOfPost](docs/sdks/unions/README.md#weaklytypedoneofpost) @@ -458,7 +466,7 @@ The following global parameters are available. The required parameters must be s -## Example +## Example #1 ```typescript import { SDK } from "openapi"; @@ -481,6 +489,32 @@ import { GlobalPathParameterGetRequest } from "openapi/dist/sdk/models/operation } })(); +``` + + +## Example #2 + +```typescript +import { SDK } from "openapi"; +import { GlobalsQueryParameterGetRequest } from "openapi/dist/sdk/models/operations"; + +(async () => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); + const globalQueryParam: string = "string"; + + const res = await sdk.globals.globalsQueryParameterGet(globalQueryParam); + + if (res.statusCode == 200) { + // handle response + } +})(); + ``` diff --git a/typescript-client-sdk/USAGE.md b/typescript-client-sdk/USAGE.md index 73c1ca75f..4ebc6b17e 100755 --- a/typescript-client-sdk/USAGE.md +++ b/typescript-client-sdk/USAGE.md @@ -72,21 +72,22 @@ import { RFCDate } from "openapi/dist/sdk/types"; }, }, bigintParameter: 168827, - bigintStrParameter: "Gasoline Sleek", + bigintStrParameter: "string", boolParameter: false, - dateParameter: new RFCDate("2021-04-23"), - dateTimeParameter: new Date("2022-09-13T20:44:04.193Z"), - decimalParameter: 1952.32, - decimalStrParameter: "Shoes Brockton", - doubleParameter: 1062.86, + dateParameter: new RFCDate("2022-05-05"), + dateTimeDefaultParameter: new Date("2023-06-11T00:39:45.412Z"), + dateTimeParameter: new Date("2022-07-22T13:16:48.221Z"), + decimalParameter: 2679.33, + decimalStrParameter: "string", + doubleParameter: 5223.72, enumParameter: UsageExamplePostEnumParameter.Value1, falseyNumberParameter: 0, - float32Parameter: 2346.82, - floatParameter: 5954.85, - int64Parameter: 215216, - intParameter: 834441, + float32Parameter: 6946.59, + floatParameter: 2286.22, + int64Parameter: 102975, + intParameter: 566999, optEnumParameter: UsageExamplePostOptEnumParameter.Value3, - strParameter: "example 2", + strParameter: "example 1", }, operationSecurity ); diff --git a/typescript-client-sdk/__tests__primary/parameter.test.ts b/typescript-client-sdk/__tests__primary/parameter.test.ts index 9af26b276..5a528f16e 100755 --- a/typescript-client-sdk/__tests__primary/parameter.test.ts +++ b/typescript-client-sdk/__tests__primary/parameter.test.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ -import {createDeepObject, createSimpleObject} from "./helpers"; +import { createDeepObject, createSimpleObject } from "./helpers"; import { recordTest } from "./common_helpers"; import { expect, test } from "@jest/globals"; @@ -10,479 +10,498 @@ import { expect, test } from "@jest/globals"; import { SDK } from "../src/sdk"; test("Test Mixed Parameters Primitives", async () => { - recordTest("parameters-mixed-primitives"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.mixedParametersPrimitives( - "headerValue", - "pathValue", - "queryValue" - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue"); - expect(res.res!.headers.headerparam).toBe("headerValue"); - expect(res.res!.args.queryStringParam).toBe("queryValue"); + recordTest("parameters-mixed-primitives"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.mixedParametersPrimitives( + "headerValue", + "pathValue", + "queryValue" + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/mixedParams/path/pathValue?queryStringParam=queryValue" + ); + expect(res.res!.headers.headerparam).toBe("headerValue"); + expect(res.res!.args.queryStringParam).toBe("queryValue"); }); test("Test Mixed Parameters Camel Case", async () => { - recordTest("parameters-camel-case"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.mixedParametersCamelCase( - "headerValue", - "pathValue", - "queryValue" - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/mixedParams/path/pathValue/camelcase?query_string_param=queryValue"); - expect(res.res!.headers.headerParam).toBe("headerValue"); - expect(res.res!.args.queryStringParam).toBe("queryValue"); + recordTest("parameters-camel-case"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.mixedParametersCamelCase( + "headerValue", + "pathValue", + "queryValue" + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/mixedParams/path/pathValue/camelcase?query_string_param=queryValue" + ); + expect(res.res!.headers.headerParam).toBe("headerValue"); + expect(res.res!.args.queryStringParam).toBe("queryValue"); }); test("Test Simple Path Parameter Primitives", async () => { - recordTest("parameters-simple-path-parameter-primitives"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.simplePathParameterPrimitives( - true, - 1, - 1.1, - "test" - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1" - ); + recordTest("parameters-simple-path-parameter-primitives"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.simplePathParameterPrimitives( + true, + 1, + 1.1, + "test" + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/pathParams/str/test/bool/true/int/1/num/1.1" + ); }); test("Test Simple Path Parameter Objects", async () => { - recordTest("parameters-simple-path-parameter-objects"); + recordTest("parameters-simple-path-parameter-objects"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const res = await sdk.parameters.simplePathParameterObjects( - createSimpleObject(), - createSimpleObject() - ); + const res = await sdk.parameters.simplePathParameterObjects( + createSimpleObject(), + createSimpleObject() + ); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/pathParams/obj/any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional/objExploded/any=any,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional" - ); + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/pathParams/obj/any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional/objExploded/any=any,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional" + ); }); test("Test Simple Path Parameter Arrays", async () => { - recordTest("parameters-simple-path-parameter-arrays"); + recordTest("parameters-simple-path-parameter-arrays"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const res = await sdk.parameters.simplePathParameterArrays(["test", "test2"]); + const res = await sdk.parameters.simplePathParameterArrays(["test", "test2"]); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/pathParams/arr/test,test2" - ); + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/pathParams/arr/test,test2" + ); }); test("Test Simple Path Parameter Maps", async () => { - recordTest("parameters-simple-path-parameter-maps"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.simplePathParameterMaps( - { - test: "value", - test2: "value2", - }, - { - test: 1, - test2: 2, - } - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2" - ); + recordTest("parameters-simple-path-parameter-maps"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.simplePathParameterMaps( + { + test: "value", + test2: "value2", + }, + { + test: 1, + test2: 2, + } + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/pathParams/map/test,value,test2,value2/mapExploded/test=1,test2=2" + ); }); test("Test Path Parameter JSON", async () => { - recordTest("parameters-path-parameter-json"); + recordTest("parameters-path-parameter-json"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const res = await sdk.parameters.pathParameterJson(createSimpleObject()); + const res = await sdk.parameters.pathParameterJson(createSimpleObject()); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - 'http://localhost:35123/anything/pathParams/json/{"any":"any","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.001Z","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"}' - ); + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + 'http://localhost:35123/anything/pathParams/json/{"any":"any","bool":true,"boolOpt":true,"date":"2020-01-01","dateTime":"2020-01-01T00:00:00.001Z","enum":"one","float32":1.1,"int":1,"int32":1,"int32Enum":55,"intEnum":2,"num":1.1,"str":"test","strOpt":"testOptional"}' + ); }); test("Test Form Query Params Primitive", async () => { - recordTest("parameters-form-query-params-primitive"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.formQueryParamsPrimitive( - true, - 1, - 1.1, - "test" - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/form/primitive?boolParam=true&intParam=1&numParam=1.1&strParam=test" - ); - expect(res.res!.args.boolParam).toBe("true"); - expect(res.res!.args.intParam).toBe("1"); - expect(res.res!.args.numParam).toBe("1.1"); - expect(res.res!.args.strParam).toBe("test"); + recordTest("parameters-form-query-params-primitive"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.formQueryParamsPrimitive( + true, + 1, + 1.1, + "test" + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/form/primitive?boolParam=true&intParam=1&numParam=1.1&strParam=test" + ); + expect(res.res!.args.boolParam).toBe("true"); + expect(res.res!.args.intParam).toBe("1"); + expect(res.res!.args.numParam).toBe("1.1"); + expect(res.res!.args.strParam).toBe("test"); }); test("Test Form Query Params Object", async () => { - recordTest("parameters-form-query-params-object"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.formQueryParamsObject( - createSimpleObject(), - createSimpleObject() - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/form/obj?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&str=test&strOpt=testOptional&objParam=any%2Cany%2Cbool%2Ctrue%2CboolOpt%2Ctrue%2Cdate%2C2020-01-01%2CdateTime%2C2020-01-01T00%3A00%3A00.001Z%2Cenum%2Cone%2Cfloat32%2C1.1%2Cint%2C1%2Cint32%2C1%2Cint32Enum%2C55%2CintEnum%2C2%2Cnum%2C1.1%2Cstr%2Ctest%2CstrOpt%2CtestOptional" - ); - expect(res.res!.args.any).toBe("any"); - expect(res.res!.args.bool).toBe("true"); - expect(res.res!.args.boolOpt).toBe("true"); - expect(res.res!.args.date).toBe("2020-01-01"); - expect(res.res!.args.dateTime).toBe("2020-01-01T00:00:00.001Z"); - expect(res.res!.args.enum).toBe("one"); - expect(res.res!.args.float32).toBe("1.1"); - expect(res.res!.args.int).toBe("1"); - expect(res.res!.args.int32).toBe("1"); - expect(res.res!.args.int32Enum).toBe("55"); - expect(res.res!.args.intEnum).toBe("2"); - expect(res.res!.args.num).toBe("1.1"); - expect(res.res!.args.str).toBe("test"); - expect(res.res!.args.strOpt).toBe("testOptional"); - expect(res.res!.args.intOptNull).toBeUndefined(); - expect(res.res!.args.numOptNull).toBeUndefined(); - expect(res.res!.args.objParam).toBe( - "any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional" - ); + recordTest("parameters-form-query-params-object"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.formQueryParamsObject( + createSimpleObject(), + createSimpleObject() + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/form/obj?any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&str=test&strOpt=testOptional&objParam=any%2Cany%2Cbool%2Ctrue%2CboolOpt%2Ctrue%2Cdate%2C2020-01-01%2CdateTime%2C2020-01-01T00%3A00%3A00.001Z%2Cenum%2Cone%2Cfloat32%2C1.1%2Cint%2C1%2Cint32%2C1%2Cint32Enum%2C55%2CintEnum%2C2%2Cnum%2C1.1%2Cstr%2Ctest%2CstrOpt%2CtestOptional" + ); + expect(res.res!.args.any).toBe("any"); + expect(res.res!.args.bool).toBe("true"); + expect(res.res!.args.boolOpt).toBe("true"); + expect(res.res!.args.date).toBe("2020-01-01"); + expect(res.res!.args.dateTime).toBe("2020-01-01T00:00:00.001Z"); + expect(res.res!.args.enum).toBe("one"); + expect(res.res!.args.float32).toBe("1.1"); + expect(res.res!.args.int).toBe("1"); + expect(res.res!.args.int32).toBe("1"); + expect(res.res!.args.int32Enum).toBe("55"); + expect(res.res!.args.intEnum).toBe("2"); + expect(res.res!.args.num).toBe("1.1"); + expect(res.res!.args.str).toBe("test"); + expect(res.res!.args.strOpt).toBe("testOptional"); + expect(res.res!.args.intOptNull).toBeUndefined(); + expect(res.res!.args.numOptNull).toBeUndefined(); + expect(res.res!.args.objParam).toBe( + "any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional" + ); +}); + +test("Test Form Query Params Camel Object", async () => { + recordTest("parameters-form-query-params-camel-object"); + + const sdk = new SDK({}); + const response = await sdk.parameters.formQueryParamsCamelObject( + { searchTerm: "foo", itemCount: "10" }, + { encodedTerm: "bar", encodedCount: "11" } + ); + + expect(response.statusCode).toBeDefined(); + expect(response.statusCode).toBe(200); + expect(response.res!.url).toBe( + "http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&search_term=foo&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar" + ); + expect(response.res!.args.searchTerm).toEqual("foo"); + expect(response.res!.args.itemCount).toEqual("10"); }); test("Test Form Query Params Ref Param Object", async () => { - recordTest("parameters-form-query-params-ref-param-object"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.formQueryParamsRefParamObject( - { - bool: true, - int: 1, - num: 1.1, - str: "test", - }, - { - bool: true, - int: 1, - num: 1.1, - str: "test", - } - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/form/refParamObject?refObjParam=bool%2Ctrue%2Cint%2C1%2Cnum%2C1.1%2Cstr%2Ctest&bool=true&int=1&num=1.1&str=test" - ); - expect(res.res!.args.bool).toBe("true"); - expect(res.res!.args.int).toBe("1"); - expect(res.res!.args.num).toBe("1.1"); - expect(res.res!.args.str).toBe("test"); - expect(res.res!.args.refObjParam).toBe("bool,true,int,1,num,1.1,str,test"); + recordTest("parameters-form-query-params-ref-param-object"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.formQueryParamsRefParamObject( + { + bool: true, + int: 1, + num: 1.1, + str: "test", + }, + { + bool: true, + int: 1, + num: 1.1, + str: "test", + } + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/form/refParamObject?refObjParam=bool%2Ctrue%2Cint%2C1%2Cnum%2C1.1%2Cstr%2Ctest&bool=true&int=1&num=1.1&str=test" + ); + expect(res.res!.args.bool).toBe("true"); + expect(res.res!.args.int).toBe("1"); + expect(res.res!.args.num).toBe("1.1"); + expect(res.res!.args.str).toBe("test"); + expect(res.res!.args.refObjParam).toBe("bool,true,int,1,num,1.1,str,test"); }); test("Test Form Query Params Array", async () => { - recordTest("parameters-form-query-params-array"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.formQueryParamsArray( - ["test", "test2"], - [1, 2] - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2" - ); - expect(res.res!.args.arrParam).toBe("test,test2"); - expect(res.res!.args.arrParamExploded).toStrictEqual(["1", "2"]); + recordTest("parameters-form-query-params-array"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.formQueryParamsArray( + ["test", "test2"], + [1, 2] + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/form/array?arrParam=test%2Ctest2&arrParamExploded=1&arrParamExploded=2" + ); + expect(res.res!.args.arrParam).toBe("test,test2"); + expect(res.res!.args.arrParamExploded).toStrictEqual(["1", "2"]); }); - test("Test PipeDelimited Query Params Array", async () => { - recordTest("parameters-pipe-query-params-array"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.pipeDelimitedQueryParamsArray( - ["test", "test2"], - [1, 2], - {key1: "val1", key2: "val2"}, - createSimpleObject() - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/pipe/array?arrParam=test|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1|val1|key2|val2&objParam=any|any|bool|true|boolOpt|true|date|2020-01-01|dateTime|2020-01-01T00%3A00%3A00.001Z|enum|one|float32|1.1|int|1|int32|1|int32Enum|55|intEnum|2|num|1.1|str|test|strOpt|testOptional" - ); - expect(res.res!.args.arrParam).toBe("test|test2"); - expect(res.res!.args.arrParamExploded).toStrictEqual(["1", "2"]); + recordTest("parameters-pipe-query-params-array"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.pipeDelimitedQueryParamsArray( + ["test", "test2"], + [1, 2], + { key1: "val1", key2: "val2" }, + createSimpleObject() + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/pipe/array?arrParam=test|test2&arrParamExploded=1&arrParamExploded=2&mapParam=key1|val1|key2|val2&objParam=any|any|bool|true|boolOpt|true|date|2020-01-01|dateTime|2020-01-01T00%3A00%3A00.001Z|enum|one|float32|1.1|int|1|int32|1|int32Enum|55|intEnum|2|num|1.1|str|test|strOpt|testOptional" + ); + expect(res.res!.args.arrParam).toBe("test|test2"); + expect(res.res!.args.arrParamExploded).toStrictEqual(["1", "2"]); }); test("Test Form Query Params Map", async () => { - recordTest("parameters-form-query-params-map"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.formQueryParamsMap( - { - test: "value", - test2: "value2", - }, - { - test: 1, - test2: 2, - } - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2" - ); - expect(res.res!.args.mapParam).toBe("test,value,test2,value2"); + recordTest("parameters-form-query-params-map"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.formQueryParamsMap( + { + test: "value", + test2: "value2", + }, + { + test: 1, + test2: 2, + } + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2" + ); + expect(res.res!.args.mapParam).toBe("test,value,test2,value2"); }); test("Test Deep Object Query Params Object", async () => { - recordTest("parameters-deep-object-query-params-object"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.deepObjectQueryParamsObject( - createSimpleObject(), - { - arr: ["test", "test2"], - } - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/deepObject/obj?objParam[any]=any&objParam[bool]=true&objParam[boolOpt]=true&objParam[date]=2020-01-01&objParam[dateTime]=2020-01-01T00%3A00%3A00.001Z&objParam[enum]=one&objParam[float32]=1.1&objParam[int]=1&objParam[int32]=1&objParam[int32Enum]=55&objParam[intEnum]=2&objParam[num]=1.1&objParam[str]=test&objParam[strOpt]=testOptional&objArrParam[arr]=test&objArrParam[arr]=test2" - ); - expect(res.res!.args.objParamAny).toBe("any"); - expect(res.res!.args.objParamBool).toBe("true"); - expect(res.res!.args.objParamBoolOpt).toBe("true"); - expect(res.res!.args.objParamDate).toBe("2020-01-01"); - expect(res.res!.args.objParamDateTime).toBe("2020-01-01T00:00:00.001Z"); - expect(res.res!.args.objParamEnum).toBe("one"); - expect(res.res!.args.objParamFloat32).toBe("1.1"); - expect(res.res!.args.objParamInt).toBe("1"); - expect(res.res!.args.objParamInt32).toBe("1"); - expect(res.res!.args.objParamInt32Enum).toBe("55"); - expect(res.res!.args.objParamIntEnum).toBe("2"); - expect(res.res!.args.objParamNum).toBe("1.1"); - expect(res.res!.args.objParamStr).toBe("test"); - expect(res.res!.args.objParamStrOpt).toBe("testOptional"); - expect(res.res!.args.objArrParamArr).toStrictEqual(["test", "test2"]); + recordTest("parameters-deep-object-query-params-object"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.deepObjectQueryParamsObject( + createSimpleObject(), + { + arr: ["test", "test2"], + } + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/deepObject/obj?objParam[any]=any&objParam[bool]=true&objParam[boolOpt]=true&objParam[date]=2020-01-01&objParam[dateTime]=2020-01-01T00%3A00%3A00.001Z&objParam[enum]=one&objParam[float32]=1.1&objParam[int]=1&objParam[int32]=1&objParam[int32Enum]=55&objParam[intEnum]=2&objParam[num]=1.1&objParam[str]=test&objParam[strOpt]=testOptional&objArrParam[arr]=test&objArrParam[arr]=test2" + ); + expect(res.res!.args.objParamAny).toBe("any"); + expect(res.res!.args.objParamBool).toBe("true"); + expect(res.res!.args.objParamBoolOpt).toBe("true"); + expect(res.res!.args.objParamDate).toBe("2020-01-01"); + expect(res.res!.args.objParamDateTime).toBe("2020-01-01T00:00:00.001Z"); + expect(res.res!.args.objParamEnum).toBe("one"); + expect(res.res!.args.objParamFloat32).toBe("1.1"); + expect(res.res!.args.objParamInt).toBe("1"); + expect(res.res!.args.objParamInt32).toBe("1"); + expect(res.res!.args.objParamInt32Enum).toBe("55"); + expect(res.res!.args.objParamIntEnum).toBe("2"); + expect(res.res!.args.objParamNum).toBe("1.1"); + expect(res.res!.args.objParamStr).toBe("test"); + expect(res.res!.args.objParamStrOpt).toBe("testOptional"); + expect(res.res!.args.objArrParamArr).toStrictEqual(["test", "test2"]); }); test("Test Deep Object Query Params Map", async () => { - recordTest("parameters-deep-object-query-params-map"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.deepObjectQueryParamsMap( - { - test: "value", - test2: "value2", - }, - { - test: ["test", "test2"], - test2: ["test3", "test4"], - } - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - "http://localhost:35123/anything/queryParams/deepObject/map?mapParam[test]=value&mapParam[test2]=value2&mapArrParam[test]=test&mapArrParam[test]=test2&mapArrParam[test2]=test3&mapArrParam[test2]=test4" - ); - expect(res.res!.args).toEqual({ - "mapParam[test]": "value", - "mapParam[test2]": "value2", - "mapArrParam[test]": ["test", "test2"], - "mapArrParam[test2]": ["test3", "test4"], - }); + recordTest("parameters-deep-object-query-params-map"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.deepObjectQueryParamsMap( + { + test: "value", + test2: "value2", + }, + { + test: ["test", "test2"], + test2: ["test3", "test4"], + } + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + "http://localhost:35123/anything/queryParams/deepObject/map?mapParam[test]=value&mapParam[test2]=value2&mapArrParam[test]=test&mapArrParam[test]=test2&mapArrParam[test2]=test3&mapArrParam[test2]=test4" + ); + expect(res.res!.args).toEqual({ + "mapParam[test]": "value", + "mapParam[test2]": "value2", + "mapArrParam[test]": ["test", "test2"], + "mapArrParam[test2]": ["test3", "test4"], + }); }); test("Test JSON Query Params Object", async () => { - recordTest("parameters-json-query-params-object"); + recordTest("parameters-json-query-params-object"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const simpleObj = createSimpleObject(); - const deepObject = createDeepObject(); + const simpleObj = createSimpleObject(); + const deepObject = createDeepObject(); - const res = await sdk.parameters.jsonQueryParamsObject(deepObject, simpleObj); + const res = await sdk.parameters.jsonQueryParamsObject(deepObject, simpleObj); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - 'http://localhost:35123/anything/queryParams/json/obj?deepObjParam={"any"%3A{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"arr"%3A[{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}]%2C"bool"%3Atrue%2C"int"%3A1%2C"map"%3A{"key"%3A{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}}%2C"num"%3A1.1%2C"obj"%3A{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"str"%3A"test"}&simpleObjParam={"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}' - ); - expect(res.res!.args.simpleObjParam).toEqual(JSON.stringify(simpleObj)); - expect(res.res!.args.deepObjParam).toEqual(JSON.stringify(deepObject)); + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + 'http://localhost:35123/anything/queryParams/json/obj?deepObjParam={"any"%3A{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"arr"%3A[{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}]%2C"bool"%3Atrue%2C"int"%3A1%2C"map"%3A{"key"%3A{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}}%2C"num"%3A1.1%2C"obj"%3A{"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}%2C"str"%3A"test"}&simpleObjParam={"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}' + ); + expect(res.res!.args.simpleObjParam).toEqual(JSON.stringify(simpleObj)); + expect(res.res!.args.deepObjParam).toEqual(JSON.stringify(deepObject)); }); test("Test Mixed Query Params", async () => { - recordTest("parameters-mixed-query-params"); - - const sdk = new SDK({}); - - const obj = createSimpleObject(); - - const res = await sdk.parameters.mixedQueryParams(obj, obj, obj); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.url).toBe( - 'http://localhost:35123/anything/queryParams/mixed?deepObjectParam[any]=any&deepObjectParam[bool]=true&deepObjectParam[boolOpt]=true&deepObjectParam[date]=2020-01-01&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.001Z&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int]=1&deepObjectParam[int32]=1&deepObjectParam[int32Enum]=55&deepObjectParam[intEnum]=2&deepObjectParam[num]=1.1&deepObjectParam[str]=test&deepObjectParam[strOpt]=testOptional&any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&str=test&strOpt=testOptional&jsonParam={"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}' - ); - expect(res.res!.args).toEqual({ - any: "any", - bool: "true", - boolOpt: "true", - date: "2020-01-01", - dateTime: "2020-01-01T00:00:00.001Z", - "deepObjectParam[any]": "any", - "deepObjectParam[boolOpt]": "true", - "deepObjectParam[bool]": "true", - "deepObjectParam[dateTime]": "2020-01-01T00:00:00.001Z", - "deepObjectParam[date]": "2020-01-01", - "deepObjectParam[enum]": "one", - "deepObjectParam[float32]": "1.1", - "deepObjectParam[int32]": "1", - "deepObjectParam[int]": "1", - "deepObjectParam[int32Enum]": "55", - "deepObjectParam[intEnum]": "2", - "deepObjectParam[num]": "1.1", - "deepObjectParam[strOpt]": "testOptional", - "deepObjectParam[str]": "test", - enum: "one", - float32: "1.1", - int: "1", - int32: "1", - int32Enum: "55", - intEnum: "2", - jsonParam: JSON.stringify(obj), - num: "1.1", - str: "test", - strOpt: "testOptional", - }); + recordTest("parameters-mixed-query-params"); + + const sdk = new SDK({}); + + const obj = createSimpleObject(); + + const res = await sdk.parameters.mixedQueryParams(obj, obj, obj); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.url).toBe( + 'http://localhost:35123/anything/queryParams/mixed?deepObjectParam[any]=any&deepObjectParam[bool]=true&deepObjectParam[boolOpt]=true&deepObjectParam[date]=2020-01-01&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.001Z&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int]=1&deepObjectParam[int32]=1&deepObjectParam[int32Enum]=55&deepObjectParam[intEnum]=2&deepObjectParam[num]=1.1&deepObjectParam[str]=test&deepObjectParam[strOpt]=testOptional&any=any&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.001Z&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&num=1.1&str=test&strOpt=testOptional&jsonParam={"any"%3A"any"%2C"bool"%3Atrue%2C"boolOpt"%3Atrue%2C"date"%3A"2020-01-01"%2C"dateTime"%3A"2020-01-01T00%3A00%3A00.001Z"%2C"enum"%3A"one"%2C"float32"%3A1.1%2C"int"%3A1%2C"int32"%3A1%2C"int32Enum"%3A55%2C"intEnum"%3A2%2C"num"%3A1.1%2C"str"%3A"test"%2C"strOpt"%3A"testOptional"}' + ); + expect(res.res!.args).toEqual({ + any: "any", + bool: "true", + boolOpt: "true", + date: "2020-01-01", + dateTime: "2020-01-01T00:00:00.001Z", + "deepObjectParam[any]": "any", + "deepObjectParam[boolOpt]": "true", + "deepObjectParam[bool]": "true", + "deepObjectParam[dateTime]": "2020-01-01T00:00:00.001Z", + "deepObjectParam[date]": "2020-01-01", + "deepObjectParam[enum]": "one", + "deepObjectParam[float32]": "1.1", + "deepObjectParam[int32]": "1", + "deepObjectParam[int]": "1", + "deepObjectParam[int32Enum]": "55", + "deepObjectParam[intEnum]": "2", + "deepObjectParam[num]": "1.1", + "deepObjectParam[strOpt]": "testOptional", + "deepObjectParam[str]": "test", + enum: "one", + float32: "1.1", + int: "1", + int32: "1", + int32Enum: "55", + intEnum: "2", + jsonParam: JSON.stringify(obj), + num: "1.1", + str: "test", + strOpt: "testOptional", + }); }); // test("Test Header Params Primitive", async () => { - recordTest("parameters-header-params-primitive"); + recordTest("parameters-header-params-primitive"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const res = await sdk.parameters.headerParamsPrimitive(true, 1, 1.1, "test"); + const res = await sdk.parameters.headerParamsPrimitive(true, 1, 1.1, "test"); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.headers.xHeaderBoolean).toBe("true"); - expect(res.res!.headers.xHeaderInteger).toBe("1"); - expect(res.res!.headers.xHeaderNumber).toBe("1.1"); - expect(res.res!.headers.xHeaderString).toBe("test"); + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.headers.xHeaderBoolean).toBe("true"); + expect(res.res!.headers.xHeaderInteger).toBe("1"); + expect(res.res!.headers.xHeaderNumber).toBe("1.1"); + expect(res.res!.headers.xHeaderString).toBe("test"); }); test("Test Header Params Object", async () => { - recordTest("parameters-header-params-object"); + recordTest("parameters-header-params-object"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const obj = createSimpleObject(); + const obj = createSimpleObject(); - const res = await sdk.parameters.headerParamsObject(obj, obj); + const res = await sdk.parameters.headerParamsObject(obj, obj); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.headers.xHeaderObj).toBe( - "any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional" - ); - expect(res.res!.headers.xHeaderObjExplode).toBe( - "any=any,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional" - ); + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.headers.xHeaderObj).toBe( + "any,any,bool,true,boolOpt,true,date,2020-01-01,dateTime,2020-01-01T00:00:00.001Z,enum,one,float32,1.1,int,1,int32,1,int32Enum,55,intEnum,2,num,1.1,str,test,strOpt,testOptional" + ); + expect(res.res!.headers.xHeaderObjExplode).toBe( + "any=any,bool=true,boolOpt=true,date=2020-01-01,dateTime=2020-01-01T00:00:00.001Z,enum=one,float32=1.1,int=1,int32=1,int32Enum=55,intEnum=2,num=1.1,str=test,strOpt=testOptional" + ); }); test("Test Header Params Map", async () => { - recordTest("parameters-header-params-map"); - - const sdk = new SDK({}); - - const res = await sdk.parameters.headerParamsMap( - { - key1: "value1", - key2: "value2", - }, - { - test1: "val1", - test2: "val2", - } - ); - - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.headers.xHeaderMap).toBe("key1,value1,key2,value2"); - expect(res.res!.headers.xHeaderMapExplode).toBe("test1=val1,test2=val2"); + recordTest("parameters-header-params-map"); + + const sdk = new SDK({}); + + const res = await sdk.parameters.headerParamsMap( + { + key1: "value1", + key2: "value2", + }, + { + test1: "val1", + test2: "val2", + } + ); + + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.headers.xHeaderMap).toBe("key1,value1,key2,value2"); + expect(res.res!.headers.xHeaderMapExplode).toBe("test1=val1,test2=val2"); }); test("Test Header Params Array", async () => { - recordTest("parameters-header-params-array"); + recordTest("parameters-header-params-array"); - const sdk = new SDK({}); + const sdk = new SDK({}); - const res = await sdk.parameters.headerParamsArray(["test1", "test2"]); + const res = await sdk.parameters.headerParamsArray(["test1", "test2"]); - expect(res.statusCode).toBeDefined(); - expect(res.statusCode).toBe(200); - expect(res.res!.headers.xHeaderArray).toBe("test1,test2"); -}); \ No newline at end of file + expect(res.statusCode).toBeDefined(); + expect(res.statusCode).toBe(200); + expect(res.res!.headers.xHeaderArray).toBe("test1,test2"); +}); diff --git a/typescript-client-sdk/__tests__primary/telemetry.test.ts b/typescript-client-sdk/__tests__primary/telemetry.test.ts index 8d6704ec5..204c3e621 100755 --- a/typescript-client-sdk/__tests__primary/telemetry.test.ts +++ b/typescript-client-sdk/__tests__primary/telemetry.test.ts @@ -21,7 +21,7 @@ test("Test Telemetry User Agent Get", async () => { expect(res.statusCode).toBeDefined(); expect(res.statusCode).toBe(200); expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe( - "speakeasy-sdk/typescript 1.39.1 2.154.1 0.1.0 openapi" + "speakeasy-sdk/typescript 1.40.0 2.171.0 0.1.0 openapi" ); }); @@ -39,6 +39,6 @@ test("Test Telemetry Speakeasy User Agent Get", async () => { expect(res.statusCode).toBe(200); expect(res.res?.headers["User-Agent"]).toBe(userAgent); expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe( - "speakeasy-sdk/typescript 1.39.1 2.154.1 0.1.0 openapi" + "speakeasy-sdk/typescript 1.40.0 2.171.0 0.1.0 openapi" ); }); diff --git a/typescript-client-sdk/docs/models/errors/errort.md b/typescript-client-sdk/docs/models/errors/errort.md index b261d2d97..517f2ed84 100755 --- a/typescript-client-sdk/docs/models/errors/errort.md +++ b/typescript-client-sdk/docs/models/errors/errort.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `code` | *string* | :heavy_minus_sign: | N/A | -| `message` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `code` | *string* | :heavy_minus_sign: | N/A | +| `message` | *string* | :heavy_minus_sign: | N/A | +| `type` | [ErrorType](../../models/errors/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/errors/errortype.md b/typescript-client-sdk/docs/models/errors/errortype.md new file mode 100755 index 000000000..6a9154969 --- /dev/null +++ b/typescript-client-sdk/docs/models/errors/errortype.md @@ -0,0 +1,10 @@ +# ErrorType + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `NotFound` | not_found | +| `Invalid` | invalid | +| `Internal` | internal | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md b/typescript-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md index 88111a681..49b86d376 100755 --- a/typescript-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md +++ b/typescript-client-sdk/docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md @@ -9,4 +9,5 @@ Not Implemented | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `code` | *string* | :heavy_minus_sign: | N/A | -| `message` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `message` | *string* | :heavy_minus_sign: | N/A | +| `type` | [ErrorType](../../models/errors/errortype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md b/typescript-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md new file mode 100755 index 000000000..09aeecb78 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/dateparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `dateInput` | [RFCDate](../../types/rfcdate.md) | :heavy_check_mark: | A date parameter with a default value | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md b/typescript-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md new file mode 100755 index 000000000..422d1065c --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/dateparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md b/typescript-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md new file mode 100755 index 000000000..4c5fdaf8e --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/datetimeparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DateTimeParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `dateTimeInput` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | A date time parameter with a default value | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md b/typescript-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md new file mode 100755 index 000000000..c8ae7e1ca --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/datetimeparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DateTimeParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md b/typescript-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md new file mode 100755 index 000000000..166459324 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/decimalparamwithdefaultrequest.md @@ -0,0 +1,8 @@ +# DecimalParamWithDefaultRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `decimalInput` | *number* | :heavy_check_mark: | A decimal parameter with a default value | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md b/typescript-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md new file mode 100755 index 000000000..ae09de962 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/decimalparamwithdefaultresponse.md @@ -0,0 +1,10 @@ +# DecimalParamWithDefaultResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md new file mode 100755 index 000000000..e697700d9 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparam.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParam + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `encodedCount` | *string* | :heavy_minus_sign: | N/A | 11 | +| `encodedTerm` | *string* | :heavy_minus_sign: | N/A | bar | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md new file mode 100755 index 000000000..6ca24282d --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectobjparamexploded.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectObjParamExploded + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `itemCount` | *string* | :heavy_minus_sign: | N/A | 10 | +| `searchTerm` | *string* | :heavy_minus_sign: | N/A | foo | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md new file mode 100755 index 000000000..6f3883688 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectrequest.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `objParamExploded` | [FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [FormQueryParamsCamelObjectObjParam](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md new file mode 100755 index 000000000..cad08fc62 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectres.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectRes + +OK + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `args` | [FormQueryParamsCamelObjectResArgs](../../models/operations/formqueryparamscamelobjectresargs.md) | :heavy_check_mark: | N/A | | +| `url` | *string* | :heavy_check_mark: | N/A | http://localhost:35123/anything/queryParams/form/camelObj?item_count=10&obj_param=encoded_count%2C11%2Cencoded_term%2Cbar&search_term=foo | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md new file mode 100755 index 000000000..4b29bf886 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectresargs.md @@ -0,0 +1,9 @@ +# FormQueryParamsCamelObjectResArgs + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `itemCount` | *string* | :heavy_check_mark: | N/A | 10 | +| `searchTerm` | *string* | :heavy_check_mark: | N/A | foo | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md new file mode 100755 index 000000000..a9137b95d --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/formqueryparamscamelobjectresponse.md @@ -0,0 +1,11 @@ +# FormQueryParamsCamelObjectResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [FormQueryParamsCamelObjectRes](../../models/operations/formqueryparamscamelobjectres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md b/typescript-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md new file mode 100755 index 000000000..6e699a997 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md @@ -0,0 +1,10 @@ +# ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + +OK + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `json` | Record | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md b/typescript-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md new file mode 100755 index 000000000..86e86a4c7 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md @@ -0,0 +1,11 @@ +# ResponseBodyAdditionalPropertiesObjectPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject` | [ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON](../../models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/uniondatenullres.md b/typescript-client-sdk/docs/models/operations/uniondatenullres.md new file mode 100755 index 000000000..cfada3f0b --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/uniondatenullres.md @@ -0,0 +1,10 @@ +# UnionDateNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `json` | [RFCDate](../../types/rfcdate.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/uniondatenullresponse.md b/typescript-client-sdk/docs/models/operations/uniondatenullresponse.md new file mode 100755 index 000000000..723ddb7cb --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/uniondatenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateNullResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionDateNullRes](../../models/operations/uniondatenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/uniondatetimenullres.md b/typescript-client-sdk/docs/models/operations/uniondatetimenullres.md new file mode 100755 index 000000000..3f4a942e8 --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/uniondatetimenullres.md @@ -0,0 +1,10 @@ +# UnionDateTimeNullRes + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `json` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/uniondatetimenullresponse.md b/typescript-client-sdk/docs/models/operations/uniondatetimenullresponse.md new file mode 100755 index 000000000..ff68c570b --- /dev/null +++ b/typescript-client-sdk/docs/models/operations/uniondatetimenullresponse.md @@ -0,0 +1,11 @@ +# UnionDateTimeNullResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `res` | [UnionDateTimeNullRes](../../models/operations/uniondatetimenullres.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/typescript-client-sdk/docs/models/operations/usageexamplepostrequest.md b/typescript-client-sdk/docs/models/operations/usageexamplepostrequest.md index c1a7e5ceb..acaedc559 100755 --- a/typescript-client-sdk/docs/models/operations/usageexamplepostrequest.md +++ b/typescript-client-sdk/docs/models/operations/usageexamplepostrequest.md @@ -12,6 +12,7 @@ | `bigintStrParameterOptional` | *string* | :heavy_minus_sign: | An bigint parameter | | | `boolParameter` | *boolean* | :heavy_check_mark: | A boolean parameter | | | `dateParameter` | [RFCDate](../../types/rfcdate.md) | :heavy_check_mark: | A date parameter | | +| `dateTimeDefaultParameter` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | A date time parameter with a default value | | | `dateTimeParameter` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | A date time parameter | | | `decimalParameter` | *number* | :heavy_check_mark: | A decimal parameter | | | `decimalParameterOptional` | *number* | :heavy_minus_sign: | A decimal parameter | | diff --git a/typescript-client-sdk/docs/sdks/auth/README.md b/typescript-client-sdk/docs/sdks/auth/README.md index bc9f70547..fa72c44ef 100755 --- a/typescript-client-sdk/docs/sdks/auth/README.md +++ b/typescript-client-sdk/docs/sdks/auth/README.md @@ -103,8 +103,8 @@ import { BasicAuthRequest, BasicAuthSecurity } from "openapi/dist/sdk/models/ope globalPathParam: 100, globalQueryParam: "some example global query param", }); -const passwd: string = "minus"; -const user: string = "Architect"; +const passwd: string = "string"; +const user: string = "string"; const operationSecurity: BasicAuthSecurity = { password: "YOUR_PASSWORD", username: "YOUR_USERNAME", diff --git a/typescript-client-sdk/docs/sdks/authnew/README.md b/typescript-client-sdk/docs/sdks/authnew/README.md index 87b5d2247..6d37d8deb 100755 --- a/typescript-client-sdk/docs/sdks/authnew/README.md +++ b/typescript-client-sdk/docs/sdks/authnew/README.md @@ -42,8 +42,8 @@ import { SDK } from "openapi"; }, headerAuth: [ { - expectedValue: "Highway", - headerName: "deliver payment", + expectedValue: "string", + headerName: "string", }, ], }); @@ -91,8 +91,8 @@ import { SDK } from "openapi"; }, headerAuth: [ { - expectedValue: "idolized", - headerName: "female Virginia primary", + expectedValue: "string", + headerName: "string", }, ], }); @@ -142,8 +142,8 @@ const operationSecurity: BasicAuthNewSecurity = { }, headerAuth: [ { - expectedValue: "integrate", - headerName: "bandwidth uselessly", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -193,8 +193,8 @@ const operationSecurity: MultipleMixedOptionsAuthSecurity = { }, headerAuth: [ { - expectedValue: "thong Scandium worse", - headerName: "Durham Tesla", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -248,8 +248,8 @@ const operationSecurity: MultipleMixedSchemeAuthSecurity = { }, headerAuth: [ { - expectedValue: "services indigo", - headerName: "Wooden Jewelery", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -302,8 +302,8 @@ const operationSecurity: MultipleOptionsWithMixedSchemesAuthSecurity = { }, headerAuth: [ { - expectedValue: "Gourde", - headerName: "Van Granite East", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -356,8 +356,8 @@ const operationSecurity: MultipleOptionsWithSimpleSchemesAuthSecurity = { }, headerAuth: [ { - expectedValue: "compressing", - headerName: "sievert Diesel", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -407,8 +407,8 @@ const operationSecurity: MultipleSimpleOptionsAuthSecurity = { }, headerAuth: [ { - expectedValue: "payment Usability sievert", - headerName: "yum Northwest metrics", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -459,8 +459,8 @@ const operationSecurity: MultipleSimpleSchemeAuthSecurity = { }, headerAuth: [ { - expectedValue: "microchip Southeast", - headerName: "Future Corners Electronic", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -510,8 +510,8 @@ const operationSecurity: Oauth2AuthNewSecurity = { }, headerAuth: [ { - expectedValue: "Sunrise", - headerName: "male", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); @@ -561,8 +561,8 @@ const operationSecurity: OpenIdConnectAuthNewSecurity = { }, headerAuth: [ { - expectedValue: "bypassing furthermore", - headerName: "bypass brilliant tesla", + expectedValue: "string", + headerName: "string", }, ], }, operationSecurity); diff --git a/typescript-client-sdk/docs/sdks/documentation/README.md b/typescript-client-sdk/docs/sdks/documentation/README.md index afaf314fd..e9035ff16 100755 --- a/typescript-client-sdk/docs/sdks/documentation/README.md +++ b/typescript-client-sdk/docs/sdks/documentation/README.md @@ -27,7 +27,7 @@ import { GetDocumentationPerLanguageRequest } from "openapi/dist/sdk/models/oper globalPathParam: 100, globalQueryParam: "some example global query param", }); -const language: string = "hack"; +const language: string = "string"; const res = await sdk.documentation.getDocumentationPerLanguage(language); diff --git a/typescript-client-sdk/docs/sdks/flattening/README.md b/typescript-client-sdk/docs/sdks/flattening/README.md index d3cd45e0d..df588bd4b 100755 --- a/typescript-client-sdk/docs/sdks/flattening/README.md +++ b/typescript-client-sdk/docs/sdks/flattening/README.md @@ -51,7 +51,7 @@ const simpleObject: SimpleObject = { str: "test", strOpt: "testOptional", }; -const str: string = "Minivan"; +const str: string = "string"; const res = await sdk.flattening.componentBodyAndParamConflict(simpleObject, str); @@ -93,7 +93,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const paramStr: string = "ick"; +const paramStr: string = "string"; const simpleObject: SimpleObject = { any: "any", bigint: 8821239038968084, @@ -153,8 +153,8 @@ import { ConflictingParamsRequest } from "openapi/dist/sdk/models/operations"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const strPathParameter: string = "kilogram"; -const strQueryParameter: string = "Cloned"; +const strPathParameter: string = "string"; +const strQueryParameter: string = "string"; const res = await sdk.flattening.conflictingParams(strPathParameter, strQueryParameter); @@ -195,9 +195,9 @@ import { InlineBodyAndParamConflictRequest, InlineBodyAndParamConflictRequestBod globalQueryParam: "some example global query param", }); const requestBody: InlineBodyAndParamConflictRequestBody = { - str: "Progressive", + str: "string", }; -const str: string = "until"; +const str: string = "string"; const res = await sdk.flattening.inlineBodyAndParamConflict(requestBody, str); @@ -238,9 +238,9 @@ import { InlineBodyAndParamNoConflictRequest, InlineBodyAndParamNoConflictReques globalQueryParam: "some example global query param", }); const requestBody: InlineBodyAndParamNoConflictRequestBody = { - bodyStr: "dynamic expedite", + bodyStr: "string", }; -const paramStr: string = "Forward"; +const paramStr: string = "string"; const res = await sdk.flattening.inlineBodyAndParamNoConflict(requestBody, paramStr); diff --git a/typescript-client-sdk/docs/sdks/generation/README.md b/typescript-client-sdk/docs/sdks/generation/README.md index 6d88e232e..6eb47121d 100755 --- a/typescript-client-sdk/docs/sdks/generation/README.md +++ b/typescript-client-sdk/docs/sdks/generation/README.md @@ -10,6 +10,9 @@ Endpoints for purely testing valid generation behavior. * [anchorTypesGet](#anchortypesget) * [arrayCircularReferenceGet](#arraycircularreferenceget) * [circularReferenceGet](#circularreferenceget) +* [dateParamWithDefault](#dateparamwithdefault) +* [dateTimeParamWithDefault](#datetimeparamwithdefault) +* [decimalParamWithDefault](#decimalparamwithdefault) * [deprecatedFieldInSchemaPost](#deprecatedfieldinschemapost) * [deprecatedObjectInSchemaGet](#deprecatedobjectinschemaget) * [~~deprecatedOperationNoCommentsGet~~](#deprecatedoperationnocommentsget) - :warning: **Deprecated** @@ -133,6 +136,124 @@ import { SDK } from "openapi"; **Promise<[operations.CircularReferenceGetResponse](../../models/operations/circularreferencegetresponse.md)>** +## dateParamWithDefault + +### Example Usage + +```typescript +import { SDK } from "openapi"; +import { DateParamWithDefaultRequest } from "openapi/dist/sdk/models/operations"; +import { RFCDate } from "openapi/dist/sdk/types"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); +const dateInput: RFCDate = new RFCDate("2021-11-30"); + + const res = await sdk.generation.dateParamWithDefault(dateInput); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `dateInput` | [RFCDate](../../types/rfcdate.md) | :heavy_check_mark: | A date parameter with a default value | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.DateParamWithDefaultResponse](../../models/operations/dateparamwithdefaultresponse.md)>** + + +## dateTimeParamWithDefault + +### Example Usage + +```typescript +import { SDK } from "openapi"; +import { DateTimeParamWithDefaultRequest } from "openapi/dist/sdk/models/operations"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); +const dateTimeInput: Date = new Date("2023-02-09T21:53:21.077Z"); + + const res = await sdk.generation.dateTimeParamWithDefault(dateTimeInput); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `dateTimeInput` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | A date time parameter with a default value | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.DateTimeParamWithDefaultResponse](../../models/operations/datetimeparamwithdefaultresponse.md)>** + + +## decimalParamWithDefault + +### Example Usage + +```typescript +import { SDK } from "openapi"; +import { DecimalParamWithDefaultRequest } from "openapi/dist/sdk/models/operations"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); +const decimalInput: number = 4060.06; + + const res = await sdk.generation.decimalParamWithDefault(decimalInput); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `decimalInput` | *number* | :heavy_check_mark: | A decimal parameter with a default value | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.DecimalParamWithDefaultResponse](../../models/operations/decimalparamwithdefaultresponse.md)>** + + ## deprecatedFieldInSchemaPost ### Example Usage @@ -225,7 +346,7 @@ import { DeprecatedOperationNoCommentsGetRequest } from "openapi/dist/sdk/models globalPathParam: 100, globalQueryParam: "some example global query param", }); -const deprecatedParameter: string = "Account"; +const deprecatedParameter: string = "string"; const res = await sdk.generation.deprecatedOperationNoCommentsGet(deprecatedParameter); @@ -268,8 +389,8 @@ import { DeprecatedOperationWithCommentsGetRequest } from "openapi/dist/sdk/mode globalPathParam: 100, globalQueryParam: "some example global query param", }); -const deprecatedParameter: string = "Account"; -const newParameter: string = "actuating"; +const deprecatedParameter: string = "string"; +const newParameter: string = "string"; const res = await sdk.generation.deprecatedOperationWithCommentsGet(deprecatedParameter, newParameter); @@ -458,7 +579,7 @@ import { IgnoresPostApplicationJSON, IgnoresPostRequest } from "openapi/dist/sdk globalQueryParam: "some example global query param", }); const requestBody: IgnoresPostApplicationJSON = {}; -const testParam: string = "Bike"; +const testParam: string = "string"; const res = await sdk.generation.ignoresPost(requestBody, testParam); @@ -618,7 +739,7 @@ const decimal: number = 3346.96; const obj: TypedParameterGenerationGetObj = { bool: false, num: 4778.06, - str: "Progressive Riyal male", + str: "string", }; const res = await sdk.generation.typedParameterGenerationGet(bigint, date, decimal, obj); @@ -700,21 +821,22 @@ const operationSecurity: UsageExamplePostSecurity = { }, }, bigintParameter: 168827, - bigintStrParameter: "Gasoline Sleek", + bigintStrParameter: "string", boolParameter: false, - dateParameter: new RFCDate("2021-04-23"), - dateTimeParameter: new Date("2022-09-13T20:44:04.193Z"), - decimalParameter: 1952.32, - decimalStrParameter: "Shoes Brockton", - doubleParameter: 1062.86, + dateParameter: new RFCDate("2022-05-05"), + dateTimeDefaultParameter: new Date("2023-06-11T00:39:45.412Z"), + dateTimeParameter: new Date("2022-07-22T13:16:48.221Z"), + decimalParameter: 2679.33, + decimalStrParameter: "string", + doubleParameter: 5223.72, enumParameter: UsageExamplePostEnumParameter.Value1, falseyNumberParameter: 0, - float32Parameter: 2346.82, - floatParameter: 5954.85, - int64Parameter: 215216, - intParameter: 834441, + float32Parameter: 6946.59, + floatParameter: 2286.22, + int64Parameter: 102975, + intParameter: 566999, optEnumParameter: UsageExamplePostOptEnumParameter.Value3, - strParameter: "example 2", + strParameter: "example 1", }, operationSecurity); if (res.statusCode == 200) { diff --git a/typescript-client-sdk/docs/sdks/globals/README.md b/typescript-client-sdk/docs/sdks/globals/README.md index 8d835338a..4cc8e19b6 100755 --- a/typescript-client-sdk/docs/sdks/globals/README.md +++ b/typescript-client-sdk/docs/sdks/globals/README.md @@ -65,7 +65,7 @@ import { GlobalsQueryParameterGetRequest } from "openapi/dist/sdk/models/operati globalPathParam: 100, globalQueryParam: "some example global query param", }); -const globalQueryParam: string = "Tricycle"; +const globalQueryParam: string = "string"; const res = await sdk.globals.globalsQueryParameterGet(globalQueryParam); diff --git a/typescript-client-sdk/docs/sdks/parameters/README.md b/typescript-client-sdk/docs/sdks/parameters/README.md index 3d57bf590..88120ee30 100755 --- a/typescript-client-sdk/docs/sdks/parameters/README.md +++ b/typescript-client-sdk/docs/sdks/parameters/README.md @@ -11,6 +11,7 @@ Endpoints for testing parameters. * [deepObjectQueryParamsObject](#deepobjectqueryparamsobject) * [duplicateParam](#duplicateparam) * [formQueryParamsArray](#formqueryparamsarray) +* [formQueryParamsCamelObject](#formqueryparamscamelobject) * [formQueryParamsMap](#formqueryparamsmap) * [formQueryParamsObject](#formqueryparamsobject) * [formQueryParamsPrimitive](#formqueryparamsprimitive) @@ -166,7 +167,7 @@ import { DuplicateParamRequest } from "openapi/dist/sdk/models/operations"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const duplicateParamRequest: string = "Parks"; +const duplicateParamRequest: string = "string"; const res = await sdk.parameters.duplicateParam(duplicateParamRequest); @@ -236,6 +237,57 @@ const arrParamExploded: number[] = [ **Promise<[operations.FormQueryParamsArrayResponse](../../models/operations/formqueryparamsarrayresponse.md)>** +## formQueryParamsCamelObject + +### Example Usage + +```typescript +import { SDK } from "openapi"; +import { + FormQueryParamsCamelObjectObjParam, + FormQueryParamsCamelObjectObjParamExploded, + FormQueryParamsCamelObjectRequest, +} from "openapi/dist/sdk/models/operations"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); +const objParamExploded: FormQueryParamsCamelObjectObjParamExploded = { + itemCount: "10", + searchTerm: "foo", +}; +const objParam: FormQueryParamsCamelObjectObjParam = { + encodedCount: "11", + encodedTerm: "bar", +}; + + const res = await sdk.parameters.formQueryParamsCamelObject(objParamExploded, objParam); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `objParamExploded` | [operations.FormQueryParamsCamelObjectObjParamExploded](../../models/operations/formqueryparamscamelobjectobjparamexploded.md) | :heavy_check_mark: | N/A | +| `objParam` | [operations.FormQueryParamsCamelObjectObjParam](../../models/operations/formqueryparamscamelobjectobjparam.md) | :heavy_minus_sign: | N/A | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.FormQueryParamsCamelObjectResponse](../../models/operations/formqueryparamscamelobjectresponse.md)>** + + ## formQueryParamsMap ### Example Usage @@ -520,8 +572,8 @@ import { HeaderParamsMapRequest } from "openapi/dist/sdk/models/operations"; globalQueryParam: "some example global query param", }); const xHeaderMap: Record = { - "key1": "value1", "key2": "value2", + "key1": "value1", }; const xHeaderMapExplode: Record = { "test1": "val1", diff --git a/typescript-client-sdk/docs/sdks/requestbodies/README.md b/typescript-client-sdk/docs/sdks/requestbodies/README.md index 55b07e900..ab833ac31 100755 --- a/typescript-client-sdk/docs/sdks/requestbodies/README.md +++ b/typescript-client-sdk/docs/sdks/requestbodies/README.md @@ -637,7 +637,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPostApplicationJsonArrayOfArrayOfPrimitive([ [ - "yellow", + "string", ], ]); @@ -681,7 +681,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; const res = await sdk.requestBodies.requestBodyPostApplicationJsonArrayOfMap([ { - "Southeast": { + "key": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", @@ -744,7 +744,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; const res = await sdk.requestBodies.requestBodyPostApplicationJsonArrayOfMapCamelCase([ { - "culpa": { + "key": { anyVal: "any example", boolOptVal: true, boolVal: true, @@ -802,7 +802,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonArrayOfPrimitive([ - "bit", + "string", ]); if (res.statusCode == 200) { @@ -993,7 +993,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonDeepCamelCase({ - anyVal: "Cambridgeshire", + anyVal: "string", arrVal: [ { anyVal: "any example", @@ -1015,9 +1015,9 @@ import { RFCDate } from "openapi/dist/sdk/types"; }, ], boolVal: false, - intVal: 206440, + intVal: 66469, mapVal: { - "Palladium": { + "key": { anyVal: "any example", boolOptVal: true, boolVal: true, @@ -1036,7 +1036,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; strVal: "example", }, }, - numVal: 1379.45, + numVal: 9629.09, objVal: { anyVal: "any example", boolOptVal: true, @@ -1055,7 +1055,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; strOptVal: "optional example", strVal: "example", }, - strVal: "Music Djibouti solid", + strVal: "string", }); if (res.statusCode == 200) { @@ -1096,7 +1096,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMap({ - "Bentley": { + "key": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", @@ -1157,7 +1157,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapCamelCase({ - "archive": { + "key": { anyVal: "any example", boolOptVal: true, boolVal: true, @@ -1216,7 +1216,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapObj({ - "larder": { + "key": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", @@ -1276,7 +1276,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapObjCamelCase({ - "female": { + "key": { anyVal: "any example", boolOptVal: true, boolVal: true, @@ -1334,7 +1334,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapOfArray({ - "Loan": [ + "key": [ { any: "any", bigint: 8821239038968084, @@ -1397,7 +1397,7 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapOfArrayCamelCase({ - "nonstop": [ + "key": [ { anyVal: "any example", boolOptVal: true, @@ -1458,8 +1458,8 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapOfMap({ - "Senior": { - "vice": { + "key": { + "key": { any: "any", bigint: 8821239038968084, bigintStr: "9223372036854775808", @@ -1521,8 +1521,8 @@ import { RFCDate } from "openapi/dist/sdk/types"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapOfMapCamelCase({ - "Home": { - "plum": { + "key": { + "key": { anyVal: "any example", boolOptVal: true, boolVal: true, @@ -1580,8 +1580,8 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapOfMapOfPrimitive({ - "turquoise": { - "collaboration": "Officer", + "key": { + "key": "string", }, }); @@ -1622,7 +1622,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostApplicationJsonMapOfPrimitive({ - "equally": "whereas", + "key": "string", }); if (res.statusCode == 200) { @@ -1836,18 +1836,18 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPostComplexNumberTypes({ complexNumberTypes: { bigint: 765757, - bigintStr: "Metal calculating Lamborghini", - decimal: 9373.95, - decimalStr: "Royce", + bigintStr: "string", + decimal: 9344.87, + decimalStr: "string", }, - pathBigInt: 958218, - pathBigIntStr: "male ASCII", - pathDecimal: 1464.39, - pathDecimalStr: "Lancaster hertz young", - queryBigInt: 338976, - queryBigIntStr: "Northwest", - queryDecimal: 3970.19, - queryDecimalStr: "Toyota", + pathBigInt: 250514, + pathBigIntStr: "string", + pathDecimal: 6831.11, + pathDecimalStr: "string", + queryBigInt: 500580, + queryBigIntStr: "string", + queryDecimal: 7419.03, + queryDecimalStr: "string", }); if (res.statusCode == 200) { @@ -1894,19 +1894,19 @@ import { RFCDate } from "openapi/dist/sdk/types"; const res = await sdk.requestBodies.requestBodyPostDefaultsAndConsts({ constBigInt: 559205, - constBigIntStr: "Chief", + constBigIntStr: "string", constBool: false, - constDate: new RFCDate("2021-05-03"), - constDateTime: new Date("2023-07-14T17:39:00.984Z"), - constDecimal: 2995.45, - constDecimalStr: "invoice Cotton", - constEnumInt: DefaultsAndConstsConstEnumInt.Two, - constEnumStr: DefaultsAndConstsConstEnumStr.One, - constInt: 788517, - constNum: 639.73, - constStr: "Dong Dysprosium", - constStrNull: "Kids quarrelsome", - normalField: "Cab Lane", + constDate: new RFCDate("2021-09-13"), + constDateTime: new Date("2022-12-15T04:16:08.794Z"), + constDecimal: 9160.69, + constDecimalStr: "string", + constEnumInt: DefaultsAndConstsConstEnumInt.One, + constEnumStr: DefaultsAndConstsConstEnumStr.Three, + constInt: 299545, + constNum: 4612.63, + constStr: "string", + constStrNull: "string", + normalField: "string", }); if (res.statusCode == 200) { @@ -2134,7 +2134,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostFormMapPrimitive({ - "complexity": "SUV", + "key": "string", }); if (res.statusCode == 200) { @@ -2309,7 +2309,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostJsonDataTypesArrayDecimalStr([ - "Group East incentivize", + "string", ]); if (res.statusCode == 200) { @@ -2384,7 +2384,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPostJsonDataTypesBigIntStr("pixel gray"); + const res = await sdk.requestBodies.requestBodyPostJsonDataTypesBigIntStr("string"); if (res.statusCode == 200) { // handle response @@ -2569,7 +2569,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPostJsonDataTypesDecimalStr("gadzooks Luxurious"); + const res = await sdk.requestBodies.requestBodyPostJsonDataTypesDecimalStr("string"); if (res.statusCode == 200) { // handle response @@ -2718,7 +2718,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostJsonDataTypesMapBigIntStr({ - "Nepal": "Creative", + "key": "string", }); if (res.statusCode == 200) { @@ -2757,7 +2757,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostJsonDataTypesMapDateTime({ - "quantify": new Date("2022-02-12T21:23:09.538Z"), + "key": new Date("2022-09-03T18:52:14.477Z"), }); if (res.statusCode == 200) { @@ -2796,7 +2796,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostJsonDataTypesMapDecimal({ - "Inverse": 9134.24, + "key": 3472.82, }); if (res.statusCode == 200) { @@ -2871,7 +2871,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPostJsonDataTypesString("Gasoline"); + const res = await sdk.requestBodies.requestBodyPostJsonDataTypesString("string"); if (res.statusCode == 200) { // handle response @@ -2969,7 +2969,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesInlineFiltered({ bool: false, num: 3558.41, - str: "South expiate aha", + str: "string", }); if (res.statusCode == 200) { @@ -3013,9 +3013,9 @@ import { const requestBody: RequestBodyPostMultipleContentTypesSplitParamApplicationXWwwFormUrlencoded = { bool3: false, num3: 8693.24, - str3: "Compatible", + str3: "string", }; -const paramStr: string = "Architect"; +const paramStr: string = "string"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamForm(requestBody, paramStr); @@ -3061,9 +3061,9 @@ import { const requestBody: RequestBodyPostMultipleContentTypesSplitParamApplicationJSON = { bool: false, num: 9771.91, - str: "South networks", + str: "string", }; -const paramStr: string = "Brand"; +const paramStr: string = "string"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamJson(requestBody, paramStr); @@ -3109,9 +3109,9 @@ import { const requestBody: RequestBodyPostMultipleContentTypesSplitParamMultipartFormData = { bool2: false, num2: 7000.76, - str2: "Ball Southwest", + str2: "string", }; -const paramStr: string = "Ergonomic"; +const paramStr: string = "string"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesSplitParamMultipart(requestBody, paramStr); @@ -3154,7 +3154,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesSplitForm({ bool3: false, num3: 7842.07, - str3: "Cab encryption SMTP", + str3: "string", }); if (res.statusCode == 200) { @@ -3195,7 +3195,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesSplitJson({ bool: false, num: 2445.56, - str: "hew frictionless Hybrid", + str: "string", }); if (res.statusCode == 200) { @@ -3236,7 +3236,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPostMultipleContentTypesSplitMultipart({ bool2: false, num2: 2079.2, - str2: "cyan", + str2: "string", }); if (res.statusCode == 200) { @@ -3274,7 +3274,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPostNotNullableNotRequiredStringBody("Chicken"); + const res = await sdk.requestBodies.requestBodyPostNotNullableNotRequiredStringBody("string"); if (res.statusCode == 200) { // handle response @@ -3312,7 +3312,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostNullArray([ - "simple", + "string", ]); if (res.statusCode == 200) { @@ -3351,7 +3351,7 @@ import { SDK } from "openapi"; }); const res = await sdk.requestBodies.requestBodyPostNullDictionary({ - "Intersex": "robust", + "key": "string", }); if (res.statusCode == 200) { @@ -3389,7 +3389,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPostNullableNotRequiredStringBody("Michigan"); + const res = await sdk.requestBodies.requestBodyPostNullableNotRequiredStringBody("string"); if (res.statusCode == 200) { // handle response @@ -3426,7 +3426,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPostNullableRequiredStringBody("Mouse"); + const res = await sdk.requestBodies.requestBodyPostNullableRequiredStringBody("string"); if (res.statusCode == 200) { // handle response @@ -3501,7 +3501,7 @@ import { RequestBodyPutBytesWithParamsRequest } from "openapi/dist/sdk/models/op globalQueryParam: "some example global query param", }); const requestBody: Uint8Array = "o%jIWe4_P6" as bytes <<<>>>; -const queryStringParam: string = "Huntington"; +const queryStringParam: string = "string"; const res = await sdk.requestBodies.requestBodyPutBytesWithParams(requestBody, queryStringParam); @@ -3693,7 +3693,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPutMultipartDifferentFileName({ differentFileName: { content: "Y}'H[5/Z[," as bytes <<<>>>, - differentFileName: "West Tunisian", + differentFileName: "string", }, }); @@ -3735,7 +3735,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyPutMultipartFile({ file: { content: "OJa,v`.FW-" as bytes <<<>>>, - file: "bandwidth Sedan", + file: "string", }, }); @@ -3832,7 +3832,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyPutString("meh"); + const res = await sdk.requestBodies.requestBodyPutString("string"); if (res.statusCode == 200) { // handle response @@ -3869,8 +3869,8 @@ import { RequestBodyPutStringWithParamsRequest } from "openapi/dist/sdk/models/o globalPathParam: 100, globalQueryParam: "some example global query param", }); -const requestBody: string = "SMTP"; -const queryStringParam: string = "Unbranded"; +const requestBody: string = "string"; +const queryStringParam: string = "string"; const res = await sdk.requestBodies.requestBodyPutStringWithParams(requestBody, queryStringParam); @@ -3990,7 +3990,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyReadOnlyUnion("Kids"); + const res = await sdk.requestBodies.requestBodyReadOnlyUnion("string"); if (res.statusCode == 200) { // handle response @@ -4028,7 +4028,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyReadWriteOnlyUnion("thoughtfully"); + const res = await sdk.requestBodies.requestBodyReadWriteOnlyUnion("string"); if (res.statusCode == 200) { // handle response @@ -4069,7 +4069,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyWriteOnly({ bool: false, num: 3888.42, - string: "Herminio", + string: "string", }); if (res.statusCode == 200) { @@ -4111,7 +4111,7 @@ import { SDK } from "openapi"; const res = await sdk.requestBodies.requestBodyWriteOnlyOutput({ bool: false, num: 3867.69, - string: "quas", + string: "string", }); if (res.statusCode == 200) { @@ -4150,7 +4150,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.requestBodies.requestBodyWriteOnlyUnion("Fitness"); + const res = await sdk.requestBodies.requestBodyWriteOnlyUnion("string"); if (res.statusCode == 200) { // handle response diff --git a/typescript-client-sdk/docs/sdks/resource/README.md b/typescript-client-sdk/docs/sdks/resource/README.md index cbf96f500..039923f4b 100755 --- a/typescript-client-sdk/docs/sdks/resource/README.md +++ b/typescript-client-sdk/docs/sdks/resource/README.md @@ -28,7 +28,7 @@ import { SDK } from "openapi"; const res = await sdk.resource.createFile({ file: { content: "`'$Z`(L/RH" as bytes <<<>>>, - file: "Rap National", + file: "string", }, }); @@ -73,22 +73,22 @@ import { ExampleResourceEnumNumber, ExampleResourceEnumStr } from "openapi/dist/ 1867.47, ], arrayOfString: [ - "Sodium", + "string", ], chocolates: [ { - description: "Cross-group didactic system engine", + description: "Re-engineered asynchronous array", }, ], id: "", mapOfInteger: { - "Pula": 173199, + "key": 271791, }, mapOfString: { - "an": "South", + "key": "string", }, - name: "Cotton", - vehicle: "withdrawal", + name: "string", + vehicle: "string", }); if (res.statusCode == 200) { @@ -126,7 +126,7 @@ import { DeleteResourceRequest } from "openapi/dist/sdk/models/operations"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const resourceId: string = "Reggae"; +const resourceId: string = "string"; const res = await sdk.resource.deleteResource(resourceId); @@ -165,7 +165,7 @@ import { GetResourceRequest } from "openapi/dist/sdk/models/operations"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const resourceId: string = "Home"; +const resourceId: string = "string"; const res = await sdk.resource.getResource(resourceId); @@ -204,7 +204,7 @@ import { UpdateResourceRequest } from "openapi/dist/sdk/models/operations"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const resourceId: string = "International"; +const resourceId: string = "string"; const res = await sdk.resource.updateResource(resourceId); diff --git a/typescript-client-sdk/docs/sdks/responsebodies/README.md b/typescript-client-sdk/docs/sdks/responsebodies/README.md index 69201f16f..744a7c753 100755 --- a/typescript-client-sdk/docs/sdks/responsebodies/README.md +++ b/typescript-client-sdk/docs/sdks/responsebodies/README.md @@ -9,6 +9,7 @@ Endpoints for testing response bodies. * [responseBodyAdditionalPropertiesComplexNumbersPost](#responsebodyadditionalpropertiescomplexnumberspost) * [responseBodyAdditionalPropertiesDatePost](#responsebodyadditionalpropertiesdatepost) +* [responseBodyAdditionalPropertiesObjectPost](#responsebodyadditionalpropertiesobjectpost) * [responseBodyAdditionalPropertiesPost](#responsebodyadditionalpropertiespost) * [responseBodyBytesGet](#responsebodybytesget) * [responseBodyEmptyWithHeaders](#responsebodyemptywithheaders) @@ -35,7 +36,7 @@ import { SDK } from "openapi"; }); const res = await sdk.responseBodies.responseBodyAdditionalPropertiesComplexNumbersPost({ - "ASCII": "Wagon Account cultivate", + "key": "string", }); if (res.statusCode == 200) { @@ -74,7 +75,7 @@ import { SDK } from "openapi"; }); const res = await sdk.responseBodies.responseBodyAdditionalPropertiesDatePost({ - "Bedfordshire": new RFCDate("2021-04-22"), + "key": new RFCDate("2021-03-16"), }); if (res.statusCode == 200) { @@ -96,6 +97,66 @@ import { SDK } from "openapi"; **Promise<[operations.ResponseBodyAdditionalPropertiesDatePostResponse](../../models/operations/responsebodyadditionalpropertiesdatepostresponse.md)>** +## responseBodyAdditionalPropertiesObjectPost + +### Example Usage + +```typescript +import { SDK } from "openapi"; +import { Enum, SimpleObjectInt32Enum, SimpleObjectIntEnum } from "openapi/dist/sdk/models/shared"; +import { RFCDate } from "openapi/dist/sdk/types"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); + + const res = await sdk.responseBodies.responseBodyAdditionalPropertiesObjectPost({ + "key": { + any: "any", + bigint: 8821239038968084, + bigintStr: "9223372036854775808", + bool: true, + boolOpt: true, + date: new RFCDate("2020-01-01"), + dateTime: new Date("2020-01-01T00:00:00.000000001Z"), + decimal: 3.141592653589793, + decimalStr: "3.14159265358979344719667586", + enum: Enum.One, + float32: 1.1, + int: 1, + int32: 1, + int32Enum: SimpleObjectInt32Enum.FiftyFive, + intEnum: SimpleObjectIntEnum.Second, + num: 1.1, + str: "test", + strOpt: "testOptional", + }, + }); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `request` | [Record](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.ResponseBodyAdditionalPropertiesObjectPostResponse](../../models/operations/responsebodyadditionalpropertiesobjectpostresponse.md)>** + + ## responseBodyAdditionalPropertiesPost ### Example Usage @@ -113,7 +174,7 @@ import { SDK } from "openapi"; }); const res = await sdk.responseBodies.responseBodyAdditionalPropertiesPost({ - "Ergonomic": "Carolina", + "key": "string", }); if (res.statusCode == 200) { @@ -188,7 +249,7 @@ import { ResponseBodyEmptyWithHeadersRequest } from "openapi/dist/sdk/models/ope globalQueryParam: "some example global query param", }); const xNumberHeader: number = 1751.8; -const xStringHeader: string = "Tigard"; +const xStringHeader: string = "string"; const res = await sdk.responseBodies.responseBodyEmptyWithHeaders(xNumberHeader, xStringHeader); diff --git a/typescript-client-sdk/docs/sdks/retries/README.md b/typescript-client-sdk/docs/sdks/retries/README.md index 36baa9439..6ab0eb96d 100755 --- a/typescript-client-sdk/docs/sdks/retries/README.md +++ b/typescript-client-sdk/docs/sdks/retries/README.md @@ -25,8 +25,8 @@ import { RetriesGetRequest } from "openapi/dist/sdk/models/operations"; globalPathParam: 100, globalQueryParam: "some example global query param", }); -const requestId: string = "Cambridgeshire"; -const numRetries: number = 496130; +const requestId: string = "string"; +const numRetries: number = 75342; const res = await sdk.retries.retriesGet(requestId, numRetries); diff --git a/typescript-client-sdk/docs/sdks/sdk/README.md b/typescript-client-sdk/docs/sdks/sdk/README.md index 996a4f862..ff6a25dac 100755 --- a/typescript-client-sdk/docs/sdks/sdk/README.md +++ b/typescript-client-sdk/docs/sdks/sdk/README.md @@ -29,7 +29,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.sdk.putAnythingIgnoredGeneration("bus"); + const res = await sdk.sdk.putAnythingIgnoredGeneration("string"); if (res.statusCode == 200) { // handle response diff --git a/typescript-client-sdk/docs/sdks/telemetry/README.md b/typescript-client-sdk/docs/sdks/telemetry/README.md index 0273232fe..fb1e5cd92 100755 --- a/typescript-client-sdk/docs/sdks/telemetry/README.md +++ b/typescript-client-sdk/docs/sdks/telemetry/README.md @@ -26,7 +26,7 @@ import { TelemetrySpeakeasyUserAgentGetRequest } from "openapi/dist/sdk/models/o globalPathParam: 100, globalQueryParam: "some example global query param", }); -const userAgent: string = "Bentley"; +const userAgent: string = "string"; const res = await sdk.telemetry.telemetrySpeakeasyUserAgentGet(userAgent); diff --git a/typescript-client-sdk/docs/sdks/unions/README.md b/typescript-client-sdk/docs/sdks/unions/README.md index 831a7e962..92b41704d 100755 --- a/typescript-client-sdk/docs/sdks/unions/README.md +++ b/typescript-client-sdk/docs/sdks/unions/README.md @@ -17,6 +17,8 @@ Endpoints for testing union types. * [stronglyTypedOneOfPost](#stronglytypedoneofpost) * [typedObjectNullableOneOfPost](#typedobjectnullableoneofpost) * [typedObjectOneOfPost](#typedobjectoneofpost) +* [unionDateNull](#uniondatenull) +* [unionDateTimeNull](#uniondatetimenull) * [weaklyTypedOneOfPost](#weaklytypedoneofpost) ## flattenedTypedObjectPost @@ -35,7 +37,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.flattenedTypedObjectPost("Legacy"); + const res = await sdk.unions.flattenedTypedObjectPost("string"); if (res.statusCode == 200) { // handle response @@ -72,7 +74,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.mixedTypeOneOfPost("SAS"); + const res = await sdk.unions.mixedTypeOneOfPost("string"); if (res.statusCode == 200) { // handle response @@ -113,10 +115,10 @@ import { TypedObject1Type } from "openapi/dist/sdk/models/shared"; const res = await sdk.unions.nullableOneOfRefInObjectPost({ nullableOneOfOne: { type: TypedObject1Type.Obj1, - value: "Global Alexandria administration", + value: "string", }, - nullableOneOfTwo: "Arbor", - oneOfOne: "PCI", + nullableOneOfTwo: "string", + oneOfOne: "string", }); if (res.statusCode == 200) { @@ -154,7 +156,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.nullableOneOfSchemaPost("deliquesce"); + const res = await sdk.unions.nullableOneOfSchemaPost("string"); if (res.statusCode == 200) { // handle response @@ -193,7 +195,7 @@ import { SDK } from "openapi"; const res = await sdk.unions.nullableOneOfTypeInObjectPost({ nullableOneOfOne: false, - nullableOneOfTwo: "Smart", + nullableOneOfTwo: "string", oneOfOne: false, }); @@ -235,7 +237,7 @@ import { TypedObject1Type } from "openapi/dist/sdk/models/shared"; const res = await sdk.unions.nullableTypedObjectPost({ type: TypedObject1Type.Obj1, - value: "Bike", + value: "string", }); if (res.statusCode == 200) { @@ -273,7 +275,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.primitiveTypeOneOfPost("Grocery"); + const res = await sdk.unions.primitiveTypeOneOfPost("string"); if (res.statusCode == 200) { // handle response @@ -310,7 +312,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.stronglyTypedOneOfPost("spicy"); + const res = await sdk.unions.stronglyTypedOneOfPost("string"); if (res.statusCode == 200) { // handle response @@ -347,7 +349,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.typedObjectNullableOneOfPost("Agender"); + const res = await sdk.unions.typedObjectNullableOneOfPost("string"); if (res.statusCode == 200) { // handle response @@ -384,7 +386,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.typedObjectOneOfPost("shrivel"); + const res = await sdk.unions.typedObjectOneOfPost("string"); if (res.statusCode == 200) { // handle response @@ -405,6 +407,80 @@ import { SDK } from "openapi"; **Promise<[operations.TypedObjectOneOfPostResponse](../../models/operations/typedobjectoneofpostresponse.md)>** +## unionDateNull + +### Example Usage + +```typescript +import { SDK } from "openapi"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); + + const res = await sdk.unions.unionDateNull(new RFCDate("2022-11-25")); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `request` | [RFCDate](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.UnionDateNullResponse](../../models/operations/uniondatenullresponse.md)>** + + +## unionDateTimeNull + +### Example Usage + +```typescript +import { SDK } from "openapi"; + +(async() => { + const sdk = new SDK({ + security: { + apiKeyAuth: "Token YOUR_API_KEY", + }, + globalPathParam: 100, + globalQueryParam: "some example global query param", + }); + + const res = await sdk.unions.unionDateTimeNull(new Date("2022-04-12T19:39:53.907Z")); + + if (res.statusCode == 200) { + // handle response + } +})(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `request` | [Date](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | + + +### Response + +**Promise<[operations.UnionDateTimeNullResponse](../../models/operations/uniondatetimenullresponse.md)>** + + ## weaklyTypedOneOfPost ### Example Usage @@ -421,7 +497,7 @@ import { SDK } from "openapi"; globalQueryParam: "some example global query param", }); - const res = await sdk.unions.weaklyTypedOneOfPost("Unbranded"); + const res = await sdk.unions.weaklyTypedOneOfPost("string"); if (res.statusCode == 200) { // handle response diff --git a/typescript-client-sdk/files.gen b/typescript-client-sdk/files.gen index 726ea0e3a..443671386 100755 --- a/typescript-client-sdk/files.gen +++ b/typescript-client-sdk/files.gen @@ -93,6 +93,9 @@ src/sdk/models/operations/inlinebodyandparamnoconflict.ts src/sdk/models/operations/anchortypesget.ts src/sdk/models/operations/arraycircularreferenceget.ts src/sdk/models/operations/circularreferenceget.ts +src/sdk/models/operations/dateparamwithdefault.ts +src/sdk/models/operations/datetimeparamwithdefault.ts +src/sdk/models/operations/decimalparamwithdefault.ts src/sdk/models/operations/deprecatedfieldinschemapost.ts src/sdk/models/operations/deprecatedobjectinschemaget.ts src/sdk/models/operations/deprecatedoperationnocommentsget.ts @@ -123,6 +126,7 @@ src/sdk/models/operations/deepobjectqueryparamsmap.ts src/sdk/models/operations/deepobjectqueryparamsobject.ts src/sdk/models/operations/duplicateparam.ts src/sdk/models/operations/formqueryparamsarray.ts +src/sdk/models/operations/formqueryparamscamelobject.ts src/sdk/models/operations/formqueryparamsmap.ts src/sdk/models/operations/formqueryparamsobject.ts src/sdk/models/operations/formqueryparamsprimitive.ts @@ -229,6 +233,7 @@ src/sdk/models/operations/getresource.ts src/sdk/models/operations/updateresource.ts src/sdk/models/operations/responsebodyadditionalpropertiescomplexnumberspost.ts src/sdk/models/operations/responsebodyadditionalpropertiesdatepost.ts +src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.ts src/sdk/models/operations/responsebodyadditionalpropertiespost.ts src/sdk/models/operations/responsebodybytesget.ts src/sdk/models/operations/responsebodyemptywithheaders.ts @@ -257,6 +262,8 @@ src/sdk/models/operations/primitivetypeoneofpost.ts src/sdk/models/operations/stronglytypedoneofpost.ts src/sdk/models/operations/typedobjectnullableoneofpost.ts src/sdk/models/operations/typedobjectoneofpost.ts +src/sdk/models/operations/uniondatenull.ts +src/sdk/models/operations/uniondatetimenull.ts src/sdk/models/operations/weaklytypedoneofpost.ts src/sdk/models/operations/putanythingignoredgeneration.ts src/sdk/models/operations/responsebodyjsonget.ts @@ -303,6 +310,7 @@ src/sdk/models/shared/oneofgenerationstresstest.ts src/sdk/models/shared/unsupportedenums.ts src/sdk/models/shared/index.ts src/sdk/models/errors/error.ts +src/sdk/models/errors/errortype.ts src/sdk/models/errors/statusgetxspeakeasyerrors.ts src/sdk/models/errors/index.ts src/sdk/models/callbacks/ignoredgenerationget.ts @@ -387,6 +395,13 @@ docs/models/operations/typefromanchor.md docs/models/operations/anchortypesgetresponse.md docs/models/operations/arraycircularreferencegetresponse.md docs/models/operations/circularreferencegetresponse.md +docs/types/rfcdate.md +docs/models/operations/dateparamwithdefaultrequest.md +docs/models/operations/dateparamwithdefaultresponse.md +docs/models/operations/datetimeparamwithdefaultrequest.md +docs/models/operations/datetimeparamwithdefaultresponse.md +docs/models/operations/decimalparamwithdefaultrequest.md +docs/models/operations/decimalparamwithdefaultresponse.md docs/models/operations/deprecatedfieldinschemapostresponse.md docs/models/operations/deprecatedobjectinschemaget200applicationjson.md docs/models/operations/deprecatedobjectinschemagetresponse.md @@ -412,7 +427,6 @@ docs/models/operations/nameoverridegetresponse.md docs/models/operations/objectcircularreferencegetresponse.md docs/models/operations/oneofcircularreferencegetresponse.md docs/models/operations/typedparametergenerationgetobj.md -docs/types/rfcdate.md docs/models/operations/typedparametergenerationgetrequest.md docs/models/operations/typedparametergenerationgetresponse.md docs/models/operations/usageexamplepostsecurity.md @@ -465,6 +479,12 @@ docs/models/operations/formqueryparamsarrayrequest.md docs/models/operations/formqueryparamsarrayresargs.md docs/models/operations/formqueryparamsarrayres.md docs/models/operations/formqueryparamsarrayresponse.md +docs/models/operations/formqueryparamscamelobjectobjparamexploded.md +docs/models/operations/formqueryparamscamelobjectobjparam.md +docs/models/operations/formqueryparamscamelobjectrequest.md +docs/models/operations/formqueryparamscamelobjectresargs.md +docs/models/operations/formqueryparamscamelobjectres.md +docs/models/operations/formqueryparamscamelobjectresponse.md docs/models/operations/formqueryparamsmaprequest.md docs/models/operations/formqueryparamsmapres.md docs/models/operations/formqueryparamsmapresponse.md @@ -713,6 +733,8 @@ docs/models/operations/responsebodyadditionalpropertiescomplexnumberspost200appl docs/models/operations/responsebodyadditionalpropertiescomplexnumberspostresponse.md docs/models/operations/responsebodyadditionalpropertiesdatepost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiesdatepostresponse.md +docs/models/operations/responsebodyadditionalpropertiesobjectpost200applicationjson.md +docs/models/operations/responsebodyadditionalpropertiesobjectpostresponse.md docs/models/operations/responsebodyadditionalpropertiespost200applicationjson.md docs/models/operations/responsebodyadditionalpropertiespostresponse.md docs/models/operations/responsebodybytesgetresponse.md @@ -759,6 +781,10 @@ docs/models/operations/typedobjectnullableoneofpostres.md docs/models/operations/typedobjectnullableoneofpostresponse.md docs/models/operations/typedobjectoneofpostres.md docs/models/operations/typedobjectoneofpostresponse.md +docs/models/operations/uniondatenullres.md +docs/models/operations/uniondatenullresponse.md +docs/models/operations/uniondatetimenullres.md +docs/models/operations/uniondatetimenullresponse.md docs/models/operations/weaklytypedoneofpostres.md docs/models/operations/weaklytypedoneofpostresponse.md docs/models/operations/putanythingignoredgeneration200applicationjson.md @@ -830,6 +856,7 @@ docs/models/shared/alloftoallof.md docs/models/shared/oneofgenerationstresstest.md docs/models/shared/unsupportedenums.md docs/models/errors/errort.md +docs/models/errors/errortype.md docs/models/errors/statusgetxspeakeasyerrors501applicationjson.md docs/models/callbacks/ignoredgenerationgetsingledignoredcallbackoperationresponse.md docs/models/callbacks/ignoredgenerationgetsingledignoredcallbackoperationrequestbody.md diff --git a/typescript-client-sdk/gen.yaml b/typescript-client-sdk/gen.yaml index bf0da5ea6..1c62fd564 100755 --- a/typescript-client-sdk/gen.yaml +++ b/typescript-client-sdk/gen.yaml @@ -1,21 +1,22 @@ configVersion: 1.0.0 management: - docChecksum: d6c132f7bde6e79f0552a47119432f96 + docChecksum: 3f790c65afe8341dde1d7807cdaa1c4d docVersion: 0.1.0 - speakeasyVersion: 1.99.0 - generationVersion: 2.154.1 + speakeasyVersion: 1.107.0 + generationVersion: 2.171.0 generation: + repoURL: https://github.com/speakeasy-api/openapi-generation-tests.git sdkClassName: SDK singleTagPerOp: false features: typescript: acceptHeaders: 2.81.1 - core: 2.90.4 + core: 2.94.0 deprecations: 2.81.1 - docs: 0.3.3 + docs: 0.3.4 enums: 2.81.1 - errors: 2.81.4 - examples: 2.81.2 + errors: 2.81.7 + examples: 2.81.3 flattening: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 @@ -27,13 +28,15 @@ features: methodSecurity: 2.82.0 methodServerURLs: 2.82.0 nameOverrides: 2.81.1 - pagination: 2.81.1 + pagination: 2.81.2 retries: 2.82.1 serverIDs: 2.81.1 typescript: - version: 1.39.1 + version: 1.40.0 author: Speakeasy clientServerStatusCodesAsErrors: true flattenGlobalSecurity: false + installationURL: https://gitpkg.now.sh/speakeasy-api/openapi-generation-tests/typescript-client-sdk maxMethodParams: 5 packageName: openapi + repoSubDirectory: typescript-client-sdk diff --git a/typescript-client-sdk/package-lock.json b/typescript-client-sdk/package-lock.json index 671178cfa..a2c815217 100755 --- a/typescript-client-sdk/package-lock.json +++ b/typescript-client-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "openapi", - "version": "1.39.1", + "version": "1.40.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openapi", - "version": "1.39.1", + "version": "1.40.0", "dependencies": { "axios": "^1.1.3", "class-transformer": "^0.5.1", diff --git a/typescript-client-sdk/package.json b/typescript-client-sdk/package.json index 3c7a5defe..36c94cc0e 100755 --- a/typescript-client-sdk/package.json +++ b/typescript-client-sdk/package.json @@ -1,6 +1,6 @@ { "name": "openapi", - "version": "1.39.1", + "version": "1.40.0", "author": "Speakeasy", "scripts": { "prepare": "tsc --build", diff --git a/typescript-client-sdk/src/internal/utils/queryparams.ts b/typescript-client-sdk/src/internal/utils/queryparams.ts index 90f565369..0279e006a 100755 --- a/typescript-client-sdk/src/internal/utils/queryparams.ts +++ b/typescript-client-sdk/src/internal/utils/queryparams.ts @@ -135,7 +135,8 @@ function noExplodeSerializer(params: Record, delimiter = ","): stri if (qpDecorator == null) return; - return `${paramKey}${delimiter}${valToString(value[paramKey])}`; + const key = qpDecorator.ParamName || paramKey + return `${key}${delimiter}${valToString(value[paramKey])}`; }) .join(delimiter); query.push(`${key}=${encodeURIComponent(values)}`); @@ -177,9 +178,8 @@ function formSerializerExplode(params: Record): string { if (qpDecorator == null) return; - return `${paramKey}=${encodeURIComponent( - valToString(value[paramKey]) - )}`; + const key = qpDecorator.ParamName || paramKey; + return `${key}=${encodeURIComponent(valToString(value[paramKey]))}`; }) .join("&") ); diff --git a/typescript-client-sdk/src/internal/utils/security.ts b/typescript-client-sdk/src/internal/utils/security.ts index 8f183b416..5071b33af 100755 --- a/typescript-client-sdk/src/internal/utils/security.ts +++ b/typescript-client-sdk/src/internal/utils/security.ts @@ -179,7 +179,7 @@ function parseSecuritySchemeValue( properties.headers[securityDecorator.Name] = value; break; case "oauth2": - properties.headers[securityDecorator.Name] = value; + properties.headers[securityDecorator.Name] = value.toLowerCase().startsWith("bearer ") ? value : `Bearer ${value}`; break; case "http": switch (schemeDecorator.SubType) { diff --git a/typescript-client-sdk/src/sdk/generation.ts b/typescript-client-sdk/src/sdk/generation.ts index 6761e847f..b71b237a9 100755 --- a/typescript-client-sdk/src/sdk/generation.ts +++ b/typescript-client-sdk/src/sdk/generation.ts @@ -240,6 +240,198 @@ export class Generation { return res; } + async dateParamWithDefault( + dateInput: RFCDate, + config?: AxiosRequestConfig + ): Promise { + const req = new operations.DateParamWithDefaultRequest({ + dateInput: dateInput, + }); + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/dateParamWithDefault"; + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { ...config?.headers, ...properties.headers }; + const queryParams: string = utils.serializeQueryParams(req, this.sdkConfiguration.globals); + headers["Accept"] = "*/*"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url + queryParams, + method: "get", + headers: headers, + responseType: "arraybuffer", + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.DateParamWithDefaultResponse = + new operations.DateParamWithDefaultResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + switch (true) { + case httpRes?.status == 204: + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + httpRes?.data, + httpRes + ); + } + + return res; + } + + async dateTimeParamWithDefault( + dateTimeInput: Date, + config?: AxiosRequestConfig + ): Promise { + const req = new operations.DateTimeParamWithDefaultRequest({ + dateTimeInput: dateTimeInput, + }); + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/dateTimeParamWithDefault"; + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { ...config?.headers, ...properties.headers }; + const queryParams: string = utils.serializeQueryParams(req, this.sdkConfiguration.globals); + headers["Accept"] = "*/*"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url + queryParams, + method: "get", + headers: headers, + responseType: "arraybuffer", + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.DateTimeParamWithDefaultResponse = + new operations.DateTimeParamWithDefaultResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + switch (true) { + case httpRes?.status == 204: + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + httpRes?.data, + httpRes + ); + } + + return res; + } + + async decimalParamWithDefault( + decimalInput: number, + config?: AxiosRequestConfig + ): Promise { + const req = new operations.DecimalParamWithDefaultRequest({ + decimalInput: decimalInput, + }); + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/decimalParamWithDefault"; + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { ...config?.headers, ...properties.headers }; + const queryParams: string = utils.serializeQueryParams(req, this.sdkConfiguration.globals); + headers["Accept"] = "*/*"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url + queryParams, + method: "get", + headers: headers, + responseType: "arraybuffer", + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.DecimalParamWithDefaultResponse = + new operations.DecimalParamWithDefaultResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + switch (true) { + case httpRes?.status == 204: + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + httpRes?.data, + httpRes + ); + } + + return res; + } + async deprecatedFieldInSchemaPost( req: shared.DeprecatedFieldInObject, config?: AxiosRequestConfig diff --git a/typescript-client-sdk/src/sdk/models/errors/error.ts b/typescript-client-sdk/src/sdk/models/errors/error.ts index b84bd0b1b..8b3ab688b 100755 --- a/typescript-client-sdk/src/sdk/models/errors/error.ts +++ b/typescript-client-sdk/src/sdk/models/errors/error.ts @@ -3,6 +3,7 @@ */ import { SpeakeasyMetadata } from "../../../internal/utils"; +import { ErrorType } from "./errortype"; import { Expose } from "class-transformer"; export class ErrorT extends Error { @@ -14,6 +15,10 @@ export class ErrorT extends Error { @Expose({ name: "message" }) message: string; + @SpeakeasyMetadata() + @Expose({ name: "type" }) + type?: ErrorType; + constructor(err?: ErrorT) { super(); if (err) { diff --git a/typescript-client-sdk/src/sdk/models/errors/errortype.ts b/typescript-client-sdk/src/sdk/models/errors/errortype.ts new file mode 100755 index 000000000..c56e2a45d --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/errors/errortype.ts @@ -0,0 +1,9 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +export enum ErrorType { + NotFound = "not_found", + Invalid = "invalid", + Internal = "internal", +} diff --git a/typescript-client-sdk/src/sdk/models/errors/index.ts b/typescript-client-sdk/src/sdk/models/errors/index.ts index fff64e3c7..73be3c73d 100755 --- a/typescript-client-sdk/src/sdk/models/errors/index.ts +++ b/typescript-client-sdk/src/sdk/models/errors/index.ts @@ -3,6 +3,7 @@ */ export * from "./error"; +export * from "./errortype"; export * from "./statusgetxspeakeasyerrors"; export * from "./sdkerror"; diff --git a/typescript-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.ts b/typescript-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.ts index 380013f47..49e441553 100755 --- a/typescript-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.ts +++ b/typescript-client-sdk/src/sdk/models/errors/statusgetxspeakeasyerrors.ts @@ -3,6 +3,7 @@ */ import { SpeakeasyMetadata } from "../../../internal/utils"; +import { ErrorType } from "./errortype"; import { AxiosResponse } from "axios"; import { classToPlain, Exclude, Expose } from "class-transformer"; @@ -25,6 +26,10 @@ export class StatusGetXSpeakeasyErrors501ApplicationJSON extends Error { @Expose({ name: "message" }) message: string; + @SpeakeasyMetadata() + @Expose({ name: "type" }) + type?: ErrorType; + constructor(err?: StatusGetXSpeakeasyErrors501ApplicationJSON) { super(); if (err) { diff --git a/typescript-client-sdk/src/sdk/models/operations/dateparamwithdefault.ts b/typescript-client-sdk/src/sdk/models/operations/dateparamwithdefault.ts new file mode 100755 index 000000000..0352bd48e --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/dateparamwithdefault.ts @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { RFCDate } from "../../types"; +import { AxiosResponse } from "axios"; + +export class DateParamWithDefaultRequest extends SpeakeasyBase { + /** + * A date parameter with a default value + */ + @SpeakeasyMetadata({ data: "queryParam, style=form;explode=true;name=dateInput" }) + dateInput: RFCDate; +} + +export class DateParamWithDefaultResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/datetimeparamwithdefault.ts b/typescript-client-sdk/src/sdk/models/operations/datetimeparamwithdefault.ts new file mode 100755 index 000000000..e9d1e5917 --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/datetimeparamwithdefault.ts @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { AxiosResponse } from "axios"; + +export class DateTimeParamWithDefaultRequest extends SpeakeasyBase { + /** + * A date time parameter with a default value + */ + @SpeakeasyMetadata({ data: "queryParam, style=form;explode=true;name=dateTimeInput" }) + dateTimeInput: Date; +} + +export class DateTimeParamWithDefaultResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/decimalparamwithdefault.ts b/typescript-client-sdk/src/sdk/models/operations/decimalparamwithdefault.ts new file mode 100755 index 000000000..f629e2ef2 --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/decimalparamwithdefault.ts @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { AxiosResponse } from "axios"; + +export class DecimalParamWithDefaultRequest extends SpeakeasyBase { + /** + * A decimal parameter with a default value + */ + @SpeakeasyMetadata({ data: "queryParam, style=form;explode=true;name=decimalInput" }) + decimalInput: number; +} + +export class DecimalParamWithDefaultResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/formqueryparamscamelobject.ts b/typescript-client-sdk/src/sdk/models/operations/formqueryparamscamelobject.ts new file mode 100755 index 000000000..a6b501ca1 --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/formqueryparamscamelobject.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { AxiosResponse } from "axios"; +import { Expose, Type } from "class-transformer"; + +export class FormQueryParamsCamelObjectObjParamExploded extends SpeakeasyBase { + @SpeakeasyMetadata({ data: "queryParam, name=item_count" }) + itemCount?: string; + + @SpeakeasyMetadata({ data: "queryParam, name=search_term" }) + searchTerm?: string; +} + +export class FormQueryParamsCamelObjectObjParam extends SpeakeasyBase { + @SpeakeasyMetadata({ data: "queryParam, name=encoded_count" }) + encodedCount?: string; + + @SpeakeasyMetadata({ data: "queryParam, name=encoded_term" }) + encodedTerm?: string; +} + +export class FormQueryParamsCamelObjectRequest extends SpeakeasyBase { + @SpeakeasyMetadata({ data: "queryParam, style=form;explode=true;name=obj_param_exploded" }) + objParamExploded: FormQueryParamsCamelObjectObjParamExploded; + + @SpeakeasyMetadata({ data: "queryParam, style=form;explode=false;name=obj_param" }) + objParam?: FormQueryParamsCamelObjectObjParam; +} + +export class FormQueryParamsCamelObjectResArgs extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "item_count" }) + itemCount: string; + + @SpeakeasyMetadata() + @Expose({ name: "search_term" }) + searchTerm: string; +} + +/** + * OK + */ +export class FormQueryParamsCamelObjectRes extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "args" }) + @Type(() => FormQueryParamsCamelObjectResArgs) + args: FormQueryParamsCamelObjectResArgs; + + @SpeakeasyMetadata() + @Expose({ name: "url" }) + url: string; +} + +export class FormQueryParamsCamelObjectResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; + + /** + * OK + */ + @SpeakeasyMetadata() + res?: FormQueryParamsCamelObjectRes; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/index.ts b/typescript-client-sdk/src/sdk/models/operations/index.ts index 2067e224a..c51032e6c 100755 --- a/typescript-client-sdk/src/sdk/models/operations/index.ts +++ b/typescript-client-sdk/src/sdk/models/operations/index.ts @@ -18,6 +18,9 @@ export * from "./conflictingparams"; export * from "./connectionerrorget"; export * from "./createfile"; export * from "./createresource"; +export * from "./dateparamwithdefault"; +export * from "./datetimeparamwithdefault"; +export * from "./decimalparamwithdefault"; export * from "./deepobjectqueryparamsmap"; export * from "./deepobjectqueryparamsobject"; export * from "./deleteresource"; @@ -30,6 +33,7 @@ export * from "./emptyobjectget"; export * from "./emptyresponseobjectwithcommentget"; export * from "./flattenedtypedobjectpost"; export * from "./formqueryparamsarray"; +export * from "./formqueryparamscamelobject"; export * from "./formqueryparamsmap"; export * from "./formqueryparamsobject"; export * from "./formqueryparamsprimitive"; @@ -170,6 +174,7 @@ export * from "./requestbodywriteonlyoutput"; export * from "./requestbodywriteonlyunion"; export * from "./responsebodyadditionalpropertiescomplexnumberspost"; export * from "./responsebodyadditionalpropertiesdatepost"; +export * from "./responsebodyadditionalpropertiesobjectpost"; export * from "./responsebodyadditionalpropertiespost"; export * from "./responsebodybytesget"; export * from "./responsebodyemptywithheaders"; @@ -198,6 +203,8 @@ export * from "./telemetryuseragentget"; export * from "./typedobjectnullableoneofpost"; export * from "./typedobjectoneofpost"; export * from "./typedparametergenerationget"; +export * from "./uniondatenull"; +export * from "./uniondatetimenull"; export * from "./updateresource"; export * from "./usageexamplepost"; export * from "./weaklytypedoneofpost"; diff --git a/typescript-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.ts b/typescript-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.ts new file mode 100755 index 000000000..455590e8f --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/responsebodyadditionalpropertiesobjectpost.ts @@ -0,0 +1,53 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { objectToClass, SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import * as shared from "../shared"; +import { AxiosResponse } from "axios"; +import { Expose, Transform } from "class-transformer"; + +/** + * OK + */ +export class ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON extends SpeakeasyBase { + @SpeakeasyMetadata({ elemType: shared.SimpleObject }) + @Expose({ name: "json" }) + @Transform( + ({ value }) => { + const obj: Record = {}; + for (const key in value) { + obj[key] = objectToClass(value[key], shared.SimpleObject); + } + return obj; + }, + { toClassOnly: true } + ) + json: Record; +} + +export class ResponseBodyAdditionalPropertiesObjectPostResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; + + /** + * OK + */ + @SpeakeasyMetadata() + responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject?: ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/uniondatenull.ts b/typescript-client-sdk/src/sdk/models/operations/uniondatenull.ts new file mode 100755 index 000000000..77718bf4c --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/uniondatenull.ts @@ -0,0 +1,45 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { RFCDate } from "../../types"; +import { AxiosResponse } from "axios"; +import { Expose, Transform, Type } from "class-transformer"; + +/** + * OK + */ +export class UnionDateNullRes extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "json" }) + @Type(() => String) + @Transform(({ value }) => new RFCDate(value), { toClassOnly: true }) + json: RFCDate; +} + +export class UnionDateNullResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; + + /** + * OK + */ + @SpeakeasyMetadata() + res?: UnionDateNullRes; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/uniondatetimenull.ts b/typescript-client-sdk/src/sdk/models/operations/uniondatetimenull.ts new file mode 100755 index 000000000..1432c27da --- /dev/null +++ b/typescript-client-sdk/src/sdk/models/operations/uniondatetimenull.ts @@ -0,0 +1,43 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils"; +import { AxiosResponse } from "axios"; +import { Expose, Transform } from "class-transformer"; + +/** + * OK + */ +export class UnionDateTimeNullRes extends SpeakeasyBase { + @SpeakeasyMetadata() + @Expose({ name: "json" }) + @Transform(({ value }) => new Date(value), { toClassOnly: true }) + json: Date; +} + +export class UnionDateTimeNullResponse extends SpeakeasyBase { + /** + * HTTP response content type for this operation + */ + @SpeakeasyMetadata() + contentType: string; + + /** + * HTTP response status code for this operation + */ + @SpeakeasyMetadata() + statusCode: number; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @SpeakeasyMetadata() + rawResponse?: AxiosResponse; + + /** + * OK + */ + @SpeakeasyMetadata() + res?: UnionDateTimeNullRes; +} diff --git a/typescript-client-sdk/src/sdk/models/operations/usageexamplepost.ts b/typescript-client-sdk/src/sdk/models/operations/usageexamplepost.ts index 087e13951..64b371a09 100755 --- a/typescript-client-sdk/src/sdk/models/operations/usageexamplepost.ts +++ b/typescript-client-sdk/src/sdk/models/operations/usageexamplepost.ts @@ -108,6 +108,14 @@ export class UsageExamplePostRequest extends SpeakeasyBase { @SpeakeasyMetadata({ data: "queryParam, style=form;explode=true;name=dateParameter" }) dateParameter: RFCDate; + /** + * A date time parameter with a default value + */ + @SpeakeasyMetadata({ + data: "queryParam, style=form;explode=true;name=dateTimeDefaultParameter", + }) + dateTimeDefaultParameter: Date; + /** * A date time parameter */ diff --git a/typescript-client-sdk/src/sdk/parameters.ts b/typescript-client-sdk/src/sdk/parameters.ts index 1e1847cf1..4f8189c12 100755 --- a/typescript-client-sdk/src/sdk/parameters.ts +++ b/typescript-client-sdk/src/sdk/parameters.ts @@ -341,6 +341,86 @@ export class ParametersT { return res; } + async formQueryParamsCamelObject( + objParamExploded: operations.FormQueryParamsCamelObjectObjParamExploded, + objParam?: operations.FormQueryParamsCamelObjectObjParam, + config?: AxiosRequestConfig + ): Promise { + const req = new operations.FormQueryParamsCamelObjectRequest({ + objParamExploded: objParamExploded, + objParam: objParam, + }); + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/queryParams/form/camelObj"; + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { ...config?.headers, ...properties.headers }; + const queryParams: string = utils.serializeQueryParams(req, this.sdkConfiguration.globals); + headers["Accept"] = "application/json"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url + queryParams, + method: "get", + headers: headers, + responseType: "arraybuffer", + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.FormQueryParamsCamelObjectResponse = + new operations.FormQueryParamsCamelObjectResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + const decodedRes = new TextDecoder().decode(httpRes?.data); + switch (true) { + case httpRes?.status == 200: + if (utils.matchContentType(contentType, `application/json`)) { + res.res = utils.objectToClass( + JSON.parse(decodedRes), + operations.FormQueryParamsCamelObjectRes + ); + } else { + throw new errors.SDKError( + "unknown content-type received: " + contentType, + httpRes.status, + decodedRes, + httpRes + ); + } + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + decodedRes, + httpRes + ); + } + + return res; + } + async formQueryParamsMap( mapParam?: Record, mapParamExploded?: Record, diff --git a/typescript-client-sdk/src/sdk/responsebodies.ts b/typescript-client-sdk/src/sdk/responsebodies.ts index 6cb966b9b..24af352c5 100755 --- a/typescript-client-sdk/src/sdk/responsebodies.ts +++ b/typescript-client-sdk/src/sdk/responsebodies.ts @@ -210,6 +210,98 @@ export class ResponseBodies { return res; } + async responseBodyAdditionalPropertiesObjectPost( + req: Record, + config?: AxiosRequestConfig + ): Promise { + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = + baseURL.replace(/\/$/, "") + "/anything/responseBodies/additionalPropertiesObject"; + + let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; + + try { + [reqBodyHeaders, reqBody] = utils.serializeRequestBody(req, "request", "json"); + } catch (e: unknown) { + if (e instanceof Error) { + throw new Error(`Error serializing request body, cause: ${e.message}`); + } + } + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { + ...reqBodyHeaders, + ...config?.headers, + ...properties.headers, + }; + if (reqBody == null) throw new Error("request body is required"); + headers["Accept"] = "application/json"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url, + method: "post", + headers: headers, + responseType: "arraybuffer", + data: reqBody, + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.ResponseBodyAdditionalPropertiesObjectPostResponse = + new operations.ResponseBodyAdditionalPropertiesObjectPostResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + const decodedRes = new TextDecoder().decode(httpRes?.data); + switch (true) { + case httpRes?.status == 200: + if (utils.matchContentType(contentType, `application/json`)) { + res.responseBodyAdditionalPropertiesObjectPost200ApplicationJSONObject = + utils.objectToClass( + JSON.parse(decodedRes), + operations.ResponseBodyAdditionalPropertiesObjectPost200ApplicationJSON + ); + } else { + throw new errors.SDKError( + "unknown content-type received: " + contentType, + httpRes.status, + decodedRes, + httpRes + ); + } + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + decodedRes, + httpRes + ); + } + + return res; + } + async responseBodyAdditionalPropertiesPost( req: Record, config?: AxiosRequestConfig diff --git a/typescript-client-sdk/src/sdk/sdk.ts b/typescript-client-sdk/src/sdk/sdk.ts index c977068d5..17b4ac5c1 100755 --- a/typescript-client-sdk/src/sdk/sdk.ts +++ b/typescript-client-sdk/src/sdk/sdk.ts @@ -130,9 +130,9 @@ export class SDKConfiguration { serverDefaults: any; language = "typescript"; openapiDocVersion = "0.1.0"; - sdkVersion = "1.39.1"; - genVersion = "2.154.1"; - userAgent = "speakeasy-sdk/typescript 1.39.1 2.154.1 0.1.0 openapi"; + sdkVersion = "1.40.0"; + genVersion = "2.171.0"; + userAgent = "speakeasy-sdk/typescript 1.40.0 2.171.0 0.1.0 openapi"; globals: any; retryConfig?: utils.RetryConfig; public constructor(init?: Partial) { diff --git a/typescript-client-sdk/src/sdk/unions.ts b/typescript-client-sdk/src/sdk/unions.ts index d6171cb35..4982460b1 100755 --- a/typescript-client-sdk/src/sdk/unions.ts +++ b/typescript-client-sdk/src/sdk/unions.ts @@ -7,6 +7,7 @@ import * as errors from "./models/errors"; import * as operations from "./models/operations"; import * as shared from "./models/shared"; import { SDKConfiguration } from "./sdk"; +import { RFCDate } from "./types"; import { AxiosInstance, AxiosRequestConfig, AxiosResponse, RawAxiosRequestHeaders } from "axios"; /** @@ -932,6 +933,184 @@ export class Unions { return res; } + async unionDateNull( + req: RFCDate, + config?: AxiosRequestConfig + ): Promise { + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/unionDateNull"; + + let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; + + try { + [reqBodyHeaders, reqBody] = utils.serializeRequestBody(req, "request", "json"); + } catch (e: unknown) { + if (e instanceof Error) { + throw new Error(`Error serializing request body, cause: ${e.message}`); + } + } + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { + ...reqBodyHeaders, + ...config?.headers, + ...properties.headers, + }; + if (reqBody == null) throw new Error("request body is required"); + headers["Accept"] = "application/json"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url, + method: "post", + headers: headers, + responseType: "arraybuffer", + data: reqBody, + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.UnionDateNullResponse = new operations.UnionDateNullResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + const decodedRes = new TextDecoder().decode(httpRes?.data); + switch (true) { + case httpRes?.status == 200: + if (utils.matchContentType(contentType, `application/json`)) { + res.res = utils.objectToClass( + JSON.parse(decodedRes), + operations.UnionDateNullRes + ); + } else { + throw new errors.SDKError( + "unknown content-type received: " + contentType, + httpRes.status, + decodedRes, + httpRes + ); + } + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + decodedRes, + httpRes + ); + } + + return res; + } + + async unionDateTimeNull( + req: Date, + config?: AxiosRequestConfig + ): Promise { + const baseURL: string = utils.templateUrl( + this.sdkConfiguration.serverURL, + this.sdkConfiguration.serverDefaults + ); + const url: string = baseURL.replace(/\/$/, "") + "/anything/unionDateTimeNull"; + + let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; + + try { + [reqBodyHeaders, reqBody] = utils.serializeRequestBody(req, "request", "json"); + } catch (e: unknown) { + if (e instanceof Error) { + throw new Error(`Error serializing request body, cause: ${e.message}`); + } + } + const client: AxiosInstance = this.sdkConfiguration.defaultClient; + let globalSecurity = this.sdkConfiguration.security; + if (typeof globalSecurity === "function") { + globalSecurity = await globalSecurity(); + } + if (!(globalSecurity instanceof utils.SpeakeasyBase)) { + globalSecurity = new shared.Security(globalSecurity); + } + const properties = utils.parseSecurityProperties(globalSecurity); + const headers: RawAxiosRequestHeaders = { + ...reqBodyHeaders, + ...config?.headers, + ...properties.headers, + }; + if (reqBody == null) throw new Error("request body is required"); + headers["Accept"] = "application/json"; + + headers["x-speakeasy-user-agent"] = this.sdkConfiguration.userAgent; + + const httpRes: AxiosResponse = await client.request({ + validateStatus: () => true, + url: url, + method: "post", + headers: headers, + responseType: "arraybuffer", + data: reqBody, + ...config, + }); + + const contentType: string = httpRes?.headers?.["content-type"] ?? ""; + + if (httpRes?.status == null) { + throw new Error(`status code not found in response: ${httpRes}`); + } + + const res: operations.UnionDateTimeNullResponse = new operations.UnionDateTimeNullResponse({ + statusCode: httpRes.status, + contentType: contentType, + rawResponse: httpRes, + }); + const decodedRes = new TextDecoder().decode(httpRes?.data); + switch (true) { + case httpRes?.status == 200: + if (utils.matchContentType(contentType, `application/json`)) { + res.res = utils.objectToClass( + JSON.parse(decodedRes), + operations.UnionDateTimeNullRes + ); + } else { + throw new errors.SDKError( + "unknown content-type received: " + contentType, + httpRes.status, + decodedRes, + httpRes + ); + } + break; + case (httpRes?.status >= 400 && httpRes?.status < 500) || + (httpRes?.status >= 500 && httpRes?.status < 600): + throw new errors.SDKError( + "API error occurred", + httpRes.status, + decodedRes, + httpRes + ); + } + + return res; + } + async weaklyTypedOneOfPost( req: any, config?: AxiosRequestConfig